# Tag Info

1


3


3

According to the description on page 170 of the TeXbook, automatic glue around math atoms can be “conditional”, that is, inserted only in display and text styles: Here 0, 1, 2, and 3 stand for no space, thin space, medium space, and thick space, respectively; the table entry is parenthesized if the space is to be inserted only in display and text styles, ...

3

As explained by egreg in his first comment, \min et. al. have the correct spacing when followed by a delimiter, because by intention, they operate on a set of values (over which to take the minimum). As you use it, \min_u G(u) + F(Ku) the expression is itself ambiguous, and the natural parsing as "minimum of G(u), plus...oh wait" causes some dissonance ...

1

Temporary solution. This one just checks if there is a subscript next to it. Nothing more. \documentclass{scrartcl} \usepackage{mathtools} \makeatletter \def\raremin{\@ifnextchar_\@rareminsub\@raremin} \def\@rareminsub_#1{\min_{#1}\,} \def\@raremin{\min\,} \makeatother \begin{document} $\raremin_u G(u) + F(Ku)$ $\raremin_u G(u) + F(Ku)$ \end{document} ...

1

\documentclass[12pt, a4paper]{article} \usepackage{blindtext} \begin{document} \blindtext[3] Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobor- tis facilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi nec ante. Donec ullamcorper, felis non sodales commodo, lec- tus velit ultrices augue, a dignissim nibh ...

7


1

Well, with the lack of judgement of a mere user: \documentclass[12pt, a4paper]{article} \makeatletter \newcommand*{\NoBreakPar}{\vspace{\baselineskip}\par\nobreak\@afterheading} \makeatother \begin{document} Let's see the following list:\NoBreakPar \begin{itemize} \item First. \item Second. \item Third. \end{itemize} ...

2

When TeX typesets a paragraph, it removes space at the end of the last line: see for example TeX by Topic: After the last element of the paragraph TeX implicitly inserts the equivalent of \unskip \penalty10000 \hskip\parfillskip With a footnote input such as \footnote{ Some text. } the result is that the space TeX adds for the end-of-line is ...

3

You should use \cftafterequtitle to place your EQUATION...PAGE headings, and set an appropriate length \cftafterequtitleskip to establish the distance between the entire heading and your first entry (see section 2.2 Changing the titles in the tocloft documentation): \documentclass{article} \usepackage[paper=a6paper,margin=2cm]{geometry}% Just for this ...

6

The caption package defines a macro called \DeclareCaptionLabelSeparator, which takes two arguments. The first argument is the name of the label separator, and the second argument is what you want the separator to actually be. So, you can declare your own label separator to use instead of the newline separator, which will then allow you to retain setting ...

4

Your question is massively underspecified so we'll have to guess, but assuming you are making each algorithm a separate float then it will be governed by the float parameters. These are set by the class (which you haven't said which you are using) but in article the main ones are \setcounter{topnumber}{2} \renewcommand\topfraction{.7} ...

2

You should be using \text for the case descriptions: \text{\mathbf{if} $$a=1$$} etc. (normal use would not have bold though). The mathtools package (which loads and extends amsmath) provides a convenient environment dcases* which does two useful things: the first column is display style mathematics the second is automatically enclosed in \text{...} In ...

3

Don't use operatorname! Use \text or more accurately \text{if } with the trailing space. I'm not sure what you are trying to do with your fourth case but the embedded aligned environment strikes me as wrong...but as I don't know what you intended I can't recommend a fix. Btw, in this situation I would use \text but if you really want boldface then use ...

3

This is not dissimilar to Werner's answer but the item labels do not spill back into the margin. That is, if you add align=left, the item numbers will be flush left and aligned with the text area rather than to the left of the text area. I find this theoretically more satisfying but admit this is likely irrational! I've also set the paragraph indent for the ...

4

A leftmargin of 0pt and non-zero itemindent works: \documentclass{article} \usepackage{enumitem,lipsum} \begin{document} \lipsum[1] \begin{enumerate}[leftmargin=0pt,itemindent=2em] \item \lipsum[2] \item \lipsum[4] \end{enumerate} \lipsum[3] \end{document} Vertical spacing between items can be set via itemsep.

3

\footnoterule is defined (in latex.ltx) to occupy exactly the height of the rule vertically: \def\footnoterule{\kern-3\p@ \hrule \@width 2in \kern 2.6\p@} % the \hrule is .4pt high as you have already discovered, \footnotesep is inserted above every footnote on a page. i think the most reliable way of inserting additional space just below the footnote ...

0

\documentclass{beamer} \newcommand\itemshape[1]{% \setbeamertemplate{itemize item}[#1]% \usebeamertemplate{itemize item}% } \begin{document} \begin{frame} \begin{description}[align=right] \item[\itemshape{circle} First Item] Description of first item \item[\itemshape{circle} Second Item] Description of second item ...

0

Perhaps, you can try this: \documentclass{article} \usepackage{listliketab} \begin{document} \storestyleof{itemize} \begin{listliketab} \begin{tabular}{Llll} \textbullet & Parameter & and the text should continue at the same "tab space" \\ \textbullet & Variable & so it looks like this \\ \end{tabular} ...

0

Maybe you need this: \newdimen\savedprevdepth \vbox{ \hbox{X} \savedprevdepth=\prevdepth \hrule \prevdepth=\savedprevdepth \hbox{Y} } \bye Explanation: \prevdepth primitive register is set to the depth of the last box in the vertical list. It is set to magic value -1000pt when the vertical list is empty or when the \hrule is inserted to the vertical ...

1

Actually this is not a property that is unique to \hbox. The happens due the default spacing defined above and below the \hrule construct. You can change the spacing manually by using the \kern command. \vbox{ \hbox{X} \hrule \kern2pt %change the pts according to your needs \hbox{Y} } Alternatively, you could also define a macro for this.

4

Quoting from the TeXbook, page 79 (last single dangerous bend) Exception: No interline glue is inserted before or after a rule box. You can also inhibit interline glue by saying \nointerlineskip between boxes. In the case without the rule, the interline glue is added as usual: compute the sum s of the depth of the upper line and the height of the ...

2

By default a tabular is vertically centred which means its height is a lot bigger than \baselineskip so TeX can not preserve baselineskip spacing after too close:\\% so will use \lineskip glue instead, and throw you off the baseline grid. If you use \begin{tabular}[t] then alignment will be based on the baseline of the first row of the table which gives you ...

4

Using just standard svjour commands and exploiting the fact that \spnewtheorem*{foo}{Foo}{}{} stores Foo as the expansion of \fooname: \documentclass[smallextended,envcountsame,envcountsect]{svjour3} \smartqed % flush right qed marks, e.g. at end of proof \spnewtheorem*{xproof}{}{\itshape}{\rmfamily}% the label is assigned later \newcommand\xprooftitle{} ...

Top 50 recent answers are included