# Tag Info

6

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat}{3} \text{zero:}\, & 0 = & \, + 2 - 2 \\ \text{one:} \, & 0 = & \, + 2 - 2 \\ & & \, + 2 - 2 \end{alignat} \end{document}

6

There are several things that you should do: Use a display-style math environment, like $...$. Use the cases environment to typeset mathematical cases. Use a \parbox to allow your text to be typeset on several lines. This said, you can do this: \[y_{pij}^{mk} = \begin{cases} 1, & \parbox{5cm}{If the robot loads or uloades a part to/from machine ...

5

You could test for hmode: \documentclass{article} \usepackage{fouriernc} \begin{document} \parbox{\linewidth}{\centering % your input ... \ifhmode \\ \fi blalal } \end{document}

4

I'd recommend -- note the plural form of "Lemma" (choose either "Lemmas" or "Lemmata"): By Lemmas~\ref{fundamental}, \ref{goldbach} and~\ref{riemann} it follows that ... Even better, load the cleveref package and write By \cref{fundamental,,goldbach,riemann} it follows that ... and let LaTeX generate By Lemmas 1, 2 and 3 it follows that ... There ...

4

Try this: \documentclass[12pt,twoside]{book} \usepackage[a4paper, hmargin={2.5cm, 2.5cm}, vmargin={2.5cm, 2.5cm},bindingoffset=6mm]{geometry} \usepackage{amsmath} \usepackage{mathtools} \usepackage{tabularx} \usepackage{subcaption} \usepackage{booktabs} \begin{document} ...

4

You can get by with providing a single & alignment point. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \text{zero}:\quad 0 = &+ 2 -2 \\ \text{one}:\quad 0 = &+ 2 -2 \\ &+ 2 -2 \end{align} \end{document}

3

\\ must not be inside \textbf, because the multi-line feature works similar to a table (tabular, array). The formatting \textbf{bold\\text} must be applied in both rows: \textbf{bold}\\\textbf{text} Full example: \documentclass[a4paper,landscape]{article} \usepackage{tikz} \usetikzlibrary{ positioning, shapes.multipart, shapes.geometric, arrows, ...

3

I would suggest inserting an appropriate line-break inbetween two manually-separated \lstinline statements. That is, ... \noindent\lstinline{template<class UIntType, UIntType a, UIntType c, UIntType m>} \par \lstinline{class linear_congruential_engine} ... You may want to add some spaces at the start of the second \lstinline, if needed.

2

Hard to guess what layout you are looking for, but this reduces the width to 1in to make line wrapping more likely and uses ragged2e to allow ragged right and hyphenation. I also deleted the two \\ that were generating underfull hbox warnings. \documentclass{article} \usepackage[left=60pt,top=60pt,right=60pt,bottom=60pt]{geometry} \usepackage{xcolor} ...

2

\documentclass{article} \usepackage{tcolorbox} \tcbuselibrary{breakable} \usepackage{lipsum} \newcounter{theoInt} \newcommand\numtheo{\stepcounter{theoInt}\arabic{theoInt}} \newenvironment{cframed} {\begin{tcolorbox}[breakable,% colback=gray!6,titlerule=0pt, title after break=\emph{Theorem \numtheo{} cont.}, colbacktitle=white, ...

2

\documentclass{article} \usepackage[paperwidth=12cm,paperheight=10cm]{geometry}%for testing purposes \usepackage{amsthm} \usepackage{thmtools} \usepackage{tcolorbox} \tcbuselibrary{breakable} \usepackage{lipsum} \makeatletter \declaretheoremstyle[ headfont=\normalfont\bfseries, notefont=\mdseries, notebraces={(}{)}, bodyfont=\normalfont, ...

2

Please have a look to the following code. Please see that I used some code from this question, see acepted answer . MWE: \RequirePackage{filecontents} \begin{filecontents*}{\jobname.bib} @BOOK{indreboe1951, AUTHOR = {Gustav Indreb\o}, TITLE = {Norsk m\aa lsoga}, YEAR = {1951}, LOCATION = {Bergen}, PUBLISHER = {John Grieg}, URL ...

2

I recently ran into a similar issue where my section title was being split across two lines, but only one or two words were ending up on the second line. I wanted to manually insert a line break so that I could balance it better. I ended up using non-breaking spaces to force the line break to happen earlier instead: \section{this is a very long title I ...

2

Here is a quick hack for moving the equation "up" so that it is on the same line as the "some text". This is done with a new environment itemequation that adjusts for the newline. If the text is too long, however, the equation will write over the top of the text. On the other hand, it not clear from the question what should happen in such cases. Here is ...

2

I define a new environment, inlineEq, which puts the equation on the same line as the current text, centred w.r.t. remaining white space on the line. It can be referenced. \documentclass{report} \usepackage{mathtools, amsfonts} \usepackage{lipsum} \newenvironment{inlineEq}[1]{% #1\vspace*{-1\baselineskip}\equation\phantom{\mbox{#1}}}% {\endequation} ...

2

Replace "some text" with a \parbox. The \parbox will wrap automatically, or linebreaks \\ can be manually added. \documentclass{memoir} \usepackage{graphicx} \begin{document} \begin{figure}[h] \centering \includegraphics[width=0.4\columnwidth]{example-image} \put(-80,20){\parbox{.5in}{some text}} \end{figure} \end{document} Alternately, ...

2

Use justification=RaggedRight (it might require two LaTeX runs). Be careful with end-of-lines. \documentclass[11pt, twoside]{report} \usepackage{caption} \usepackage{subfig} \usepackage{ragged2e} \usepackage[demo]{graphicx} \begin{document} \begin{figure} \captionsetup[subfigure]{format=hang,singlelinecheck=false,justification=RaggedRight} ...

2

You can use one of the horizontal boxes, for example \mbox, as that will not allow linebreaks. For more examples of horizontal boxes, see @egreg's answer here. Although \mbox prevents linebreaks, it will have the side effect of not stretching or shrinking with the rest of the text, see @egreg's answer here for a solution to such a problem. So a "quick, easy ...

2

breqn will break at all non hidden relation symbols. \documentclass{article} \usepackage{breqn} \DeclareFlexSymbol{\mywedge}{Rel}{bin}{5E} \DeclareFlexSymbol{\myvee}{Rel}{bin}{5F} \begin{document} \begin{dmath}[number={$S_{1,19}$}] p_{19,a} \hiderel{<} p_{1,a} \myvee p_{19,a} + p_{19,b} \hiderel{<} p_{1,a} + p_{1,b} \myvee p_{19,a} \hiderel{=} ...

2

Some examples and solutions: \documentclass{article} \usepackage{varwidth} \usepackage{parskip} \begin{document} \texttt{line 1\\line 2} \emph{line 1\\line 2} But: \mbox{line 1\\line 2} \fbox{line 1\\line2} Solutions: \fbox{\parbox{5cm}{line 1\\line 2}} % or environment minipage % varwidth is like minipage, but truncates the lines if possible: ...

1

I could not get things to compile, so I converted to Latin text and compiled with pdflatex. But, since your background lines did not require autowrapping, I suggest the use of the stackengine package: \documentclass[12pt,sanskrit]{memoir} \usepackage[b6paper]{geometry} \usepackage{graphicx} \usepackage[pages=some]{background} %\usepackage{xunicode} ...

1

Try it out: \documentclass[11pt]{article} \textwidth=3cm \begin{document} blub xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx \hfuzz=40pt blub xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx \emergencystretch=1em blub xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx \end{document}

1

The \fancybreak command as defined in the code wants an argument. In your usage the argument turns out to be \par (because of the empty line), which produces \noindent\parbox{\linewidth}{\centering\par} and therefore a paragraph (with nothing in it except for the \noindent. You want just space, so you can define \makeatletter \newcommand{\novelbreak}{% ...

1

For example: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation*} \left\{% \begin{array}{ll} 1 & \text{\parbox[t][][t]{0.8\textwidth}{If the robot loads or uploads a part to/from machine $m$ in position $p$ and gripper one holds a part that should be loaded on machine $i\in \mathcal{M}$ and gripper ...

1

A simple code with flalign* and the dcases* environment from mathtools: \documentclass{article} \usepackage{mathtools} \usepackage[showframe]{geometry} \begin{document} \begin{flalign*} & y_{pij}^{mk}=\begin{dcases*} 1, & \parbox[t]{0.863\linewidth}{ If the robot loads or uloades a part to/from machine $m$ in position $p$ and gripper one holds ...

1

By putting it into a box that allows line breaks. For instance like a \vbox, you could also use a \vtop box to allow for this. The problem is that you need to get out of horizontal mode where a normal \hbox only allows single lines up to \hsize in width. \documentclass{article} \begin{document} \mbox{\vbox{\noindent line1\\line2}} ...

1

Assuming you want every new concept to start at a new line, you can do like this. \documentclass{sig-alternate-05-2015} \usepackage[english]{babel} \usepackage{etoolbox} \makeatletter \patchcmd{\ccsdesc@parse}{\textbullet}{\par\noindent\textbullet}{}{} \makeatother \begin{document} \begin{CCSXML} <ccs2012> <concept> ...

1

First: your given code has nothing to with class moderncv, so I deleted the tag moderncv. Second: Looking at the given code the best practice seems to be to add a linebreak to start the doi number in the next line. But that yould cause great spaces in the line before. so the best way is to add also a command \hfill to get no big spaces and no warning ...

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