Tag Info

New answers tagged

2

As detailed in the DocStrip manual, the design of DocStrip is such that you are expected to set \BaseDirectory (as TeX can't know where you want to install to) and\UseTDS (to activate mapping of your \usedir lines to the approach TDS structure). Those lines are intended most likely to go into a docstrip.cfg file rather than into the .ins file(s) themselves. ...


0

You can set the hyphenation penalty. \hyphenpenalty=10000 removes the hyphenation completely. Instead you can set it to your required tolerance by decreasing the number from 10000 to any other number.


2

This is just an add to christian Hupfer's answer, in case, there is long title of chapter (but i think it is bad idea: long text in uppercase) \documentclass[12pt,tocnosub,fancy,offcenter]{uiucecethesis09} \usepackage{geometry} \geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in} \usepackage{blindtext} \usepackage{xpatch} \makeatletter ...


4

The 'offending' code is a \llap in the \@makechapterhead macro, within the \if@thesisfancy branch, causing the left indentation into the margin. This can be removed by applying a patch at the relevant place. Edit This does not work if the chapter title is longer than the textwidth (minus the width of the chapter number figure) (so far) ...


1

I assume that OP only wants to include some multiple choice questions typed like in exam class, i.e., a questions environment similar to enumerate but with \question[points] command instead of \item; and a multiple choice environment (oneparchoices) which is similar to an inline enumerate with \choice instead of \item. Both environments can be build with ...


5

This means that the class file is IETBook.cls but has the line \ProvidesClass{book} presumably just copied without thought from the standard book class. Or possibly it uses \input{book.cls} instead of \LoadClass{book} which would make a similar warning. As it's a publisher supplied class there is not much you can do other than complain to them ...


9

The texlive package database has a one line description of each (texlive) package, derived I think from the ctan catalogue. $ pwd /usr/local/texlive/2014/tlpkg for i in `grep -l '\.cls' tlpobj/* ` ;do echo "";grep "^\(name\|shortdesc\| *texmf-dist.*\.cls\)" $i| sed -e "s@texmf.*/@@" ; done > cls.txt produces a file with 588 */.cls references that ...


2

The tables and figures must go after \end{article}. In both cases the caption must precede the object. \documentclass{pnastwo} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \begin{article} Table~\ref{test} \end{article} \begin{table} \caption{TESTING} \label{test} \begin{tabular}{ccc} \hline testing & testing & testing \\ ...


3

All floats must be after \end{article}, using the starred form if two-column mode is used. This is clearly stated in the instruction manual: \documentclass[final]{pnastwo} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \begin{article} In Table~\ref{test} we see \end{article} \begin{table*} \caption{TESTING} \label{test} ...


3

Both starred and regular chapters in book class have 50pt space from the top of the page. If you want to get rid of them add the following in your preamble \usepackage{xpatch} \makeatletter \xpatchcmd{\@makechapterhead}{\vspace*{50\p@}}{}{}{} \xpatchcmd{\@makeschapterhead}{\vspace*{50\p@}}{}{}{} \makeatother If you want some other distance, you can add ...


4

The \begin{article}...\end{article} environment wrapper inside the body is needed for a twocolumn setup (strangely enough, however) The document class can be found at PNAS Author site \documentclass{pnastwo} \author{Miss Ann Elk\affil{1}{Ministry of Silly Walks}} \title{On Brontosaurs} \usepackage{blindtext} \begin{document} \maketitle \begin{article} ...


4

There is a strange interaction between svjour and mathdesign: they fight each other over \mathcal and you lose. Use a different name: \DeclareMathAlphabet{\mcal}{OMS}{cmsy}{m}{n} \SetMathAlphabet{\mcal}{bold}{OMS}{cmsy}{b}{n} Example (with svjour3, but it should be the same): \documentclass{svjour3} \usepackage[garamond]{mathdesign} ...


5

Surely you have declared your lemma numbering to be within section numbering, that is, something like \newtheorem{lem}{Lemma}[section] In fact, the following MWE \documentclass{article} \newtheorem{lem}{Lemma}[section] \begin{document} \begin{lem} Hello \end{lem} \end{document} produces Instead, you have to define it to not follow any existing ...


0

as Johannes_B said \makeatletter \def\theparagraph{\thesubsubsection.\@arabic\c@paragraph} \def\paragraph{\@startsection{paragraph}{4}{\z@}% {3.25ex \@plus1ex \@minus.2ex}% {-1em}% {\normalfont\normalsize\bfseries}} \makeatother


5

Just change the definition of the three fixed fonts to use the default encoding. \documentclass[12pt,a4paper]{letter-classic} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[icelandic,ngerman,english]{babel} \usepackage{lmodern} %\selectlanguage{english} %% main language of the letter (not necessary) ...


4

The glyphs do not seem to be available with Computer Modern Sans Serif in OT1 encoding. The class defines three different switches, ssf, nsf and bsf, for small, normal and big cmss fonts, but all of them in OT1 encoding. T1 encoding (or Cork encoding) was developed to handle glyphs of western european alphabets. Simply declaring the switches in the document ...



Top 50 recent answers are included