# Tag Info

9

You should not be using \left...\right construct for things spanning over one line but fixed sized delimiters as \Biggl...\Biggr. I've also corrected some errors and removed some more unneeded \left...\right. \documentclass{article} \usepackage{amsmath} \begin{document} \label{testequation} \begin{split} d_{m}^{\sim \phi}\left(A,f\right) ...

7

TeX automatically adds penalties after binary operations and relation symbols, but only at the outer level of a formula (for instance, not for formulas inside a {...} group or between \left and \right; also the arguments to \mathbin and similar commands make a subformula). The value of these penalties is stored in the parameters \binoppenalty and ...

6

The end of paragraph command (from \par or a blank line) attempts to remove any space at the end of the paragraph (before it does the linebreaking) by doing an \unskip operation. However the insert node for the marginpar protects the interword space so it doesn't get removed. If you are unlucky you get a linebreak and the last line of the paragraph only has ...

5

There are several issues with your code: The construct \vphantom{\sum_{i=1;i\neq pi}^{length\left(R\right)}} needs to be in the first line, not the second line, in order to assure equal heights of the enclosing parentheses. However, in the present case, the use of (properly delimited/terminated \left and \right will result in parentheses that are by far ...

5

Certainly: \documentclass{article} \begin{document} \[ %\begin{array}{*{20}{r}} \begin{array}{|*{3}{r|}} % because later only 3 columns % {}| & A |& B \\ {} & A & B \\ \hline % A_1| & {one|} & {two} \\ A_1& {one} & {two} \\ % B_2| & {three|} & {four} \\ B_2 & {three} & {four} \\ \hline ...

5

You should use \addvspace rather than \vspace then the space will combine with space for in text environments such as center or quote. However your space here is coming from a float. Normally floats are top or bottom of a page, in which case the space before your heading would be discarded at the page break. The extra space here is coming because it is an h ...

5

It is possible, but it requires some hacking at the internal code of algorithm2e.sty. Add the following lines inside your algorithm if you want this behavior locally, or in the preamble if you want it to be global: \makeatletter \renewcommand{\algocf@@@block}[2]{#1\ifArgumentEmpty{#2}{\relax}{\KwSty{\HiLi\@algocf@endoption{#2}}\strut\par}} \makeatother ...

4

Having labels like this is really a misuse of the label system, labels are intended to be short symbolic names, but anyway \documentclass{article} \usepackage{showkeys} \renewcommand*\showkeyslabelformat[1]{% \fbox{\parbox[t]{\marginparwidth}{\raggedright\normalfont\small\ttfamily#1}}} \begin{document} \begin{figure}[ht] \centering \rule{1cm}{1cm} ...

4

You can fix it using \newline instead of \\. \documentclass{moderncv} \moderncvstyle{classic} \moderncvcolor{blue} \name{John}{Doe} \begin{document} \section{References} \cvlistdoubleitem{Prof. Charles Xavier}{Prof. John Frink \newline Trinity College, Cambridge} \end{document} Output:

4

you've already separated the different elements, providing spaces between the distinct equations comprising each language and separately coding these equations as math (even though the space between the first two is, probably inadvertently, omitted). unfortunately, these spaces don't fall in a place that is optimal for tex to break the line. the ultimate ...

3

Placing the content of the address in a \parbox{<width>}{<content>} can be a quick hack. Something like the following may help: \address{\parbox{0.4\linewidth}{% 1985 Storm Lane, Troy, NY 12180\\ % 1985 Storm Lane, Troy, NY 12180} }

3

Don't use \boldsymbol but \bm from the bm package. \documentclass{exam} \usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry} \usepackage{multicol} \usepackage{amsmath} \usepackage{bm} \setlength\columnsep{46pt} \begin{document} \begin{multicols*}{2} \begin{questions} \question The points with position vectors ...

3

If you replace the \linebreak macro calls with \newline-s, the bad boxes will go away. That's because the \linebreak command causes LaTeX to stretch the line so it extends to the right margin. And this can't be done by stretching the whitespaces only if you have one word... Changing the alignment in the cells (eg. to \raggedright) could also remove the bad ...

3

Overfull boxes mean that some text is wider than its specified box (either it's a one line box with too much stuff in it, or a multi-line parbox, but TeX could not linebreak at an acceptable place) Underfull boxes mean that there are boxes with not enough content or stretchable white space glue to fill its specified width. Either a one line box with not ...

2

sloppypar initiates a paragraph, which you can also achieve by leaving a blank line: \documentclass{article} \begin{document} \begin{itemize} \item[about] Foo\\ Lorem ipsum dolor sit amet, consectetur, adipisci velit \item[about] sort rules(...) \begin{sloppypar} Lorem ipsum dolor sit amet, consectetur, adipisci velit ...

2

It is because you can not split a square root. One way of resolve the problem is to use ()^{1/m} instead of \sqrt[m]{}: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{split} d_{m}^{\phi}\left(A,f\right) = \left( \mid A\left(pi\right) - f\left(pi\right)\mid^{4} + \sum_{i=1;i\neq pi}^{length\left(R\right)} \mid ...

2

There seems to be problems with the matrix environment, but the array environment seems to do what you seem to want. It would be nice to know what that arrangement is supposed to mean. Anyway: \documentclass{article} \usepackage{proof} \begin{document} \infer{D}{\begin{array}{@{}c@{}c@{}c@{}} &A&\\B&&C\end{array}} \end{document} produces ...

2

Code (only the problem code in question are provided) \question The points with position vectors\ $\displaystyle \boldsymbol{61i + 2j}$, $\displaystyle \boldsymbol{10i-9j,\,ai-12j }$ \ are collinear, if\ $\displaystyle \boldsymbol{a = }$ \begin{choices} \choice 1 \choice 2 \choice 3 \choice 4 \end{choices}

2

Under the line class option for res, \\ is redefined to be , . This can be seen when viewing the definition of \@linename, used to print the resume title under the line option: \def\@linename{\begingroup \def\\{, } {\namefont\@name} \vskip 2pt \fullline \vskip 2pt % where do you live? \@ifundefined{@addressone}{% % do nothing }{% ...

2

Making the numbers bold does not make sense here. Usually only the vectors (including unit vectors) need bold faces. Instead of making a vector bold, we can also use \vec for vectors in general or \hat for unit vectors. Without bold \documentclass{exam} \usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry} ...

2

The easiest thing is just to use non-breakable spaces ~: \documentclass{elsarticle} \author{Stormy~Kilduff} \author{Rosann~Ursery} \author{Sebrina~Bucklew} \author{Lashaun~Valerius} \author{Sebrina~Bucklew} \author{Lashaun~Valerius} \begin{document} \maketitle \end{document}

1

Not using \url, but \href, the URL is not visible anyway, so the suggestion in regard to employing tinyurl is relevant as it does avoid the ugliness of the URL in the text. Much better, I find, to make an appropriate part of the text active, as in \href{URL}{active in context text}. This way, the URL is not visible in the print out either.

1

The lines of the first cell of the second line doesn't fill the hbox-es (3 bad boxes). Same at the third cell for one line (1 bad box). Using \raggedright can make these bad boxes go away without the real change of output. This is because the box is small but the words are long: you can't really use justification when you have 1 word per line. (If you have a ...

1

I'm new to this package, but perhaps the following may be close to what you're after: \documentclass{article} \usepackage{clrscode3e} \begin{document} \begin{codebox} \Procname{$\proc{ConnectTwoSamplePoints}(Graph, S1, S2, connectionCostMat, cost)$} \li cost[S1][S2] $= \infty$ \li \Comment cost holds the length of the shortest path between S1 and S2 \li ...

1

The amsmath package provides "split" see http://www.tug.org/teTeX/tetex-texmfdist/doc/latex/amsmath/amsldoc.pdf, page 3 ff. A nice example can be found on http://www.latex-community.org/forum/viewtopic.php?f=46&t=3916

1

The vertical space you are seeing derives from the fact that the text before the itemize is on its own paragraph (since the itemize starts a new block). A solution based on nested lists: \documentclass{article} \usepackage{enumitem} \newlist{docFunction}{description}{1} \setlist[docFunction,1]{labelwidth=3cm,labelsep=0cm,leftmargin=3cm} ...

1

You can use the lstlisting environment from the listings package to do this. It is a verbatim environment, meaning that everything in it is printed exactly as written, including whitespace, braces, backslashes etc. You can configure it to allow for wrapping of long lines (breaklines=true), and set an indentation with xleftmargin=<length>. This way you ...

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