# Tag Info

1

The spacing you are getting is due to the way you have specified the fontsize: the \fontsize arguments are the actual fontsize and the leading which is (roughly) the height of a line. (See What exactly is leading? for extensive discussion.) You've made this 36 pt in your sectioning commands, which means each line is approximately 3 times the character ...

1

In the present case, since you're already loading the dcolumn package, you could simply (i) define a new column type named d that does decimal alignment of the numbers and (ii) replace the c specification with d{3.6}. Doing so will ensure that the numeric columns all have the same width. Separately, since you're loading the booktabs package, you may also ...

2

Apart from reminding about the verse environment (and the package with the same name that provides some enhancements), I want to suggest using a special environment for this: the advantage is greater flexibility. In the example I show that by just modifying the definition of \poet you get a different effect without acting on all poems. ...

4

To answer your question, in an array or tabular environment, line spacing is done by placing a strut in every row of height and depth given by \arraystretch times the height and depth of the strut produced by an ordinary \strut commmand. Thus, you can get the desired value (under normal circumstances) with something like \newlength\mylen ...

3

You have few options. First one is to add the equation in a row of its own: \documentclass[12pt]{report} \usepackage{amsmath, amssymb, amsthm} \usepackage{lipsum} \usepackage{tikz} \usetikzlibrary{shadows} \newcommand*\squared[1]{\tikz[baseline=(char.base)]{\node[shape=rectangle, draw, inner color = white, drop shadow = {opaque, black}, inner sep=3pt, ...

6

If you don't need to cope with line breaks, it's just an application of the calc package: \documentclass{article} \usepackage{calc} \newcommand{\printtowidth}[2]{% \makebox[\widthof{#1}]{#2}% } \begin{document} Some words before abc def ghi and some words after. Some words before \printtowidth{abc def ghi}{xyz} and some words after. \end{document} ...

3

The eqparbox package is perhaps what you're after: it defines variants of the usual box commands, eqparbox, eqmakebox, eqframebox, that accept a tag instead of the width parameter. All boxes with the same tag will have the width of the longest text, and an eqboxwidth{tag} length is defined and can be used in defining the width of another box. If one wants ...

6

\documentclass[a5paper]{article} \usepackage{xcolor} \def\someText{And now follows some text to show the distance of lines. The value is saved in \texttt{\textbackslash baselineskip}.} \begin{document} \the\baselineskip%%% The current distance between two baselines \vbox to 0pt {\hbox to 0pt {\textcolor{red}{\rule[0pt]{1cm}{\baselineskip}}}} \someText ...

7

This would typically be measured from the baseline of one line to the baseline of another, or given by \baselineskip, and depends on the font size loaded/specified as well as the font size current active. For example, with the following \baselineskips are associated with the respective default font sizes loaded with the class: 10pt default font implies a ...

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 ...

Top 50 recent answers are included