# Tag Info

36

put it into braces {...}, then it will be a math atom and not broken at the end of the line. ${v_{initial} = \SI{1000}{m/s}}$ the prevent an overfull box use \sloppy: \documentclass{article} \usepackage{siunitx} \begin{document} {\sloppy A text with an inline equation which is broken in to two parts but is not wanted right here ${v_{initial} = ... 22 I think you can justly regard this strange behaviour as kind of a bug in TeX's sub- and superscript positioning algorithm; it doesn't make sense that both the sub- and the superscript are raised. See below for some suggestions on how to fix the problem. At the end I offer a new positioning algorithm, and I compare it with the old algorithm. (Sorry for the ... 17 Images are added with a zero depth, i.e. they sit on the baseline. It depends very much on the situation (and personal taste) what the "ideal" placement of a particular image is. So no, there is no way to automatically get-it-just-right (TM). Note that \raisebox allows the use of \height, \depth, \width and \totalheight (=height+depth) which represent the ... 15 TeX features a special primitive for this very case. However, you will have to specify code for all four math styles: \mathchoice{display}{text}{script}{scriptscript} See TeX by Topic for more information. 15 I'm sure you are looking for the holtpolt package and its command \polter, like in the following example: \documentclass{standalone} \usepackage{holtpolt} \begin{document} $a_0+\polter{1}{a_1}+\polter{1}{a_2}+\cdots+\polter{1}{a_n}+\cdots$ \end{document} 15 The enumitem package has an inline option which implements inline versions of the standard lists using starred versions of the basic list environments. As with other enumitem lists, labels and (horizontal) spacing can be set with key values as well as custom settings for the elements between the list items (typically punctuation). \documentclass{article} ... 14 You can directly tell where the baseline should meet the picture using the baseline option \documentclass{article} \usepackage{tikz} \begin{document} the distance \tikz[baseline=-0.5ex]{ \draw [|-|] (0,0) -- (5ex,0); } overarching the activities \end{document} 14 A couple of versions, you probably need to fiddle with the spacing to get exactly what you need but: \documentclass{article} \def\cFrac#1#2{% \begin{array}{@{}c@{}}\multicolumn{1}{c|}{#1}\\% \hline\multicolumn{1}{|c}{#2}\end{array}} \def\cFracB#1#2{% \vcenter{\hbox{\strut$#1$\,\vrule}\hrule\hbox{\strut\vrule\,$#2$}}} \begin{document}$ A + ...

14

The default positions of sub and superscripts are closer to the baseline in textstyle as TeX tries to maximise the chance that the expression does not disturb the paragraph line spacing. Your first example is the standard setting for inline math, however with the larger scripts caused by the subscripting, TeX has to move them further apart. This is ...

13

You can use \rotatebox (from the graphicx package) with the origin=c option instead; a little example: \documentclass{article} \usepackage{graphicx} \begin{document} A\rotatebox{90}{B}C A\rotatebox{270}{B}C A\rotatebox[origin=c]{270}{B}C \end{document}

12

Using ${....}$ does indeed prevent a formula from being broken across lines but at the cost that you freeze up all spacing within the formula at its natural width. If you write $a=b+c$ then LaTeX generates the following list for you: \mathon \OML/cmm/m/it/10 a \glue(\thickmuskip) 2.77771 plus 2.77771 \OT1/cmr/m/n/10 = \penalty 500 \glue(\thickmuskip) ...

12

I'm not sure if this is a good idea or not (imagine a new reader searching for equation 2.1, for example), but the following seems to do what you want; note that I've used refstepcounter to increment the equation counter. \documentclass{article} \usepackage{amsmath} \begin{document} The equation $a+1=b~\refstepcounter{equation}(\theequation)\label{myeq}$ ...

12

\raisebox will do. The height of the contents of \raisebox is available as \height. The tabular environment puts struts with factor \arraystretch in the rows. Since the first line of your tabular only contains normal text, the strut is very likely larger (and probably larger than the extend of the curly brace). Then the argument of \raisbox can be calculated ...

11


7

\documentclass[a4paper]{article} \usepackage{multirow,bigdelim} \begin{document} \begin{enumerate} \item \begin{tabular}[t]{ll} First line & \rdelim{\}}{3}{2.5cm}[Text]\\ Second line\\ Third line \end{tabular} \item foo \end{enumerate} \end{document}

Only top voted, non community-wiki answers of a minimum length are eligible