# Tag Info

0

 is not latex syntax, but if you do use it it is essentially the same as $...$ and that is a single line display, you can not use \\ to get multiple lines. Use the amsmath package and an align or similar enviornment for multi-line displays. It was rather hard to guess the intended layout but something like \documentclass{article} \usepackage{amsmath,...

1

Not at all a list environment, but maybe enough: \documentclass{amsart} \usepackage{parskip,lipsum} \def\case#1{\par\noindent\hangindent2em{Case % {\em #1}:}\hfill\mbox{}\linebreak} \begin{document} \case{\lipsum[3][1]} \lipsum[2][1-3] \case{\lipsum[8][2] Ad hoc finis} \lipsum[2][1-3] \case{\lipsum[3][1-2]} \lipsum[2][1-3] \end{document}

1

The issue is a \penalty which is inserted after the label to ensure that a break is done there if the label fills an entire line. This is normally desirable, but since you also add a \penalty (through \\) you end up allowing two linebreaks. This can be avoided by removing the existing \penalty using \unpenalty. This requires you to use \leavevmode instead of ...

3

Classical solution of given task is \nobreak\hfil\penalty0 \hfilneg. If the line is not broken in the \peanlty0 then \hfil+\hfilneg results to nothing. If the line is broken in \peanlty0 then \hfil is used at the end of the first line but \hfilneg is discarded because it is "discarable item" (from TeX point of view).

0

I propose surrounding your \url with glue and use \allowbreak (mentioned in the comments). Specifically, \hspace{\stretch{.001}}\allowbreak\url{___}\hspace{\stretch{1000}}\mbox{} should suffice. Warning: this answer assumes the url is placed at the end of the \bibitem.

0

To get "automatic line breaks" in table entries, you'd need to use the p{some-width-here} (paragraph) column specification.

1

As mentioned in Manual/automatic line breaks and text alignment in TikZ nodes, if you have e.g. align=left in the node options you can use \\ to add line breaks. In your case that means yticklabel style={align=right} for the ticklabels, and nodes={align=left} inside the legend style for the legend entries. \documentclass{article} \usepackage{pgfplots} \...

0

There is a spurious space in the \extrasngerman call \documentclass[british,ngerman]{article} \usepackage[T1]{fontenc} \usepackage{babel} \addto\extrasngerman{% \def\equationautorefname~#1\null{(#1)\null} %Reference to equations in parentheses }% \begin{document} A\selectlanguage{ngerman}B\selectlanguage{british}C \end{document} The space before the %...

1

The problem is that breaklines is basically a hyphenation, only without hyphen. TeX tries hard to avoid that too many lines are hyphenated and so is very happy to find a space where is can inserts a line break without hyphenation. Imho it would make sense to set the relevant demerits to zero for listing: \makeatletter \lst@AddToHook{InitVars}{\...

0

\\ denotes a new line and <return><return> denotes a new paragraph, as each of these is only two characters it is hard to imagine a less verbose markup that distinguishes the two cases. \documentclass{article} \usepackage{parskip} \begin{document} line one line one line one line one\\ line two line two line two line two line two\\ line three ...

3


1

Since version 5.1 of algorithm2e it provides l-commands; from the change log/release notes in the algorithm2e documentation: l commands (the ones as \lIf) can now be used with a star. If done, no end of line are done, so you can enclose l command into another one. For example, you can write: \lForEach{$i$}{\lIf*{foo}{bar}}. Note that when you use a star, ...

Top 50 recent answers are included