Tag Info

Hot answers tagged

19

\sloppy is a latex macro that does \def\sloppy{% \tolerance 9999% \emergencystretch 3em% \hfuzz .5\p@ \vfuzz\hfuzz} \fussy sets the values back to the latex defaults \def\fussy{% \emergencystretch\z@ \tolerance 200% \hfuzz .1\p@ \vfuzz\hfuzz} \tolerance sets the maximum "badness" that tex is allowed to use while setting the paragraph, ...


5

As mentioned in the answer to the other question, this is basically achieved by not using \fussy which sets \tolerance so affects all paragraphs, but by just setting \emergencystretch which only affects paragraphs that would otherwise have had over full lines.


4

You can use \substack or \subarray from amsmath. With \subarray you can control the justification. \[ \int_{\substack{\text{One line} \\ \text{Second line}}} \text{Loss}\left(\text{Foo, Bar} \vert \alpha\right) \] \[ \int_{\begin{subarray}{l}\text{One line} \\ \text{Second line} \end {subarray}} \text{Loss}\left(\text{Foo, Bar} \vert \alpha\right) \]


3

First, you need at most \displaystyle per line but you are probably better off using \[...\] or an equation environment. Secondly, to get the spacing right around operators rather than using \text it is better to use \DeclareMathOperator{\tr}{tr} from the amsmath package. Next, I suspect that what you really want here is to put everything into an ...


3

The aligned environment from amsmath is also a good option: \begin{equation} \begin{aligned} F ={} & \{F_{x} \in F_{c} : (|S| > |C|) \\ & \cap (\mathrm{minPixels} < |S| < \mathrm{maxPixels}) \\ & \cap (|S_{\mathrm{conected}}| > |S| - \epsilon)\} \end{aligned} \end{equation}


3

Your table is very long, consequently it is very difficult to put in text width of document. With some tweaks I obtain the following: For it I reduce size of fonts to \scriptsize, than instead of tabular I use \tabularx and define it width with temporary width of text. Also I define new column type L, which left aligned multi line content of cell. With ...


2

TeX excels at laying out a page with well-formed paragraphs, so let the program do what it does best. Leave a blank line between paragraphs in your source code. TeX interprets the blank line as a \par instruction, so you don't need to write that command explicitly. The \\ command is simply not intended for use in ordinary text; instead it is used in tabular ...


2

Note: This answer has been thoroughly edited (by its original author) in order to straighten it. As it happens, the way in which the standard book class, or the LaTeX kernel, implement the \l@chapter command, or, respectively, the \@dottedtocline command, makes it possible that such unfortunate line breaks may occasionally occur in the table of contents (or ...


2

Hard to guess what output you want, three alternatives: \documentclass{article} \begin{document} \begin{description} \item[In nature,] clustering is a mechanism for solving diversity and complexity things from simple and basic elements. In IT field: is a good concept and technique to use existing component hardware or software to accomplish ...


2

You have added \flushleft that disables justification. Hence remove it. \documentclass{book} \usepackage{ragged2e} \begin{document} \pagestyle{empty} %No headings for the first pages. \tableofcontents \pagestyle{plain} %\flushleft %%<- remove \clearpage \chapter*{Dedication} \addcontentsline{toc}{chapter}{Dedication} %\begin{Dedication} ...


2

\Centering tries to be kind and avoids redefining \\ so \\ is safe to use in the first column but not the second. this just tells \Centering not to worry about the tabular version of \\. Unrelated, but don't use [h!]. \documentclass{article} \usepackage{array,booktabs} \usepackage{tabularx} \usepackage{ragged2e} \usepackage{hhline} \newcolumntype{x}[1] ...


2

\begin{center} {\huge {\fontfamily{pzc}\selectfont } Introduction générale } \end{center} \newline After \end{center} TeX is already in vertical mode (between paragraphs) so the \newline is in error, simply delete it. You also need to delete the {} around \huge otherwise the linespacing will be incorrect (it will be based on the normal font size) finally ...


2

use the parbox within multicolumn (adding 3 columns gives 7.6cm) like this: \documentclass[a4paper,12pt]{book} \usepackage[left=1.5cm,right=1cm,top=3cm,bottom=1.5cm,marginparwidth=5.5cm,marginparsep=1cm,outer=8cm]{geometry} \usepackage{array} \usepackage{longtable} \usepackage{showframe} \usepackage{multicol} \usepackage{multirow} \begin{document} ...


1

You can add few {} and \phatoms to align. \documentclass{article} \usepackage{amsmath} \allowdisplaybreaks \begin{document} \begin{align} \pi^{(1)}_{i j} & = {}-\frac{1}{4}\eta^{\lambda \sigma} \left( \eta^{\mu \alpha}\eta^{\nu \beta} + \eta^{\mu \beta}\eta^{\nu \alpha} \right) \biggl\{ \frac{1}{2}\delta_{\lambda 0}( \delta_{\mu i}\delta_{\nu j} ...


1

You should use split inside equation for this: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{split} \pi^{(1)}_{i j} ={}& -\frac{1}{4}\eta^{\lambda \sigma} ( \eta^{\mu \alpha}\eta^{\nu \beta} + \eta^{\mu \beta}\eta^{\nu \alpha} ) \biggl\{ \frac{1}{2}\delta_{\lambda 0}( \delta_{\mu i}\delta_{\nu j} + \delta_{\mu ...


1

I have failed to reproduce the problem you are reporting. After corrections, I could compile with no further change and the output looked ok: I am only guessing here but I think you might be facing a problem of hyphenation. In fact, I was able to get and output similar to yours placing the word 'Networks' into an \mbox{}. Try writing the chapter name ...


1

I'd define a command and use the \xspace command to take care of spaces following that command. In the example below I have added a variant for the second paragraph where I use \small for GAD65 because I believe it looks better to typeset acronyms a little smaller. I'm using \sloppy as the unbreakability of GAD65 leads otherwise to overfull lines. ...



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