New answers tagged

1 vote

text on multiple lines inside tikz baseline with node

Use \\ with align option in the node. \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame} \tikz[baseline]{ \node[draw=black, align=center] (t1) { Test Test \\ Test Test Test ...
user avatar
1 vote
Accepted

force line breaks in long character strings that contain highlighted text (seqsplit does not work here)

You can coerce soul to cooperate, but without seqsplit. \documentclass{scrreprt} \usepackage{soul} \usepackage{xcolor} \ExplSyntaxOn \NewDocumentCommand{\seqsplit}{om} { \group_begin: \...
user avatar
  • 984k
1 vote
Accepted

Test if Current Color is Black (with line breaks)

When you do \newcommand*{\TypsetInBlueOnlyIfCurrentColorIsBlack}[1]{% ... } you are telling LaTeX that the argument to \TypsetInBlueOnlyIfCurrentColorIsBlack cannot contain blank lines (or \par). ...
user avatar
  • 984k
5 votes
Accepted

Why isn't every space between words a feasible breakpoint?

Let's try and compute the badness. The text Mr.~Drofnats---or ``R. J.,'' as has a width of 125.88911pt, to which we add 20pt because of \parindent. The \hsize is 469.75499pt, so we need to stretch ...
user avatar
  • 984k
8 votes

Why isn't every space between words a feasible breakpoint?

No, not every break can be reached without badness exceeding the tolerance: they would require too much stretching. You can try it out yourself: just insert a \break to force the break. \...
user avatar
  • 42.3k
0 votes

How to add a forced line break inside a table cell

It's been a long time, but now you can just use Optex without any packages: \thistable{\tabskipl=0pt plus1fil \tabskipr=\tabskipl} % center the able \table{p{5cm\fC}c}{%\fC centers cell \crll Here\...
user avatar
1 vote

Split a huge matrix across lines to fit on page

I'm not sure this is a good idea, but it accomplishes what you want. You can use the trimclip package to literally cut your huge matrix into two pieces. Then use the multline environment to place the ...
user avatar
  • 19.9k
0 votes

How to break long text in black box in tcolorbox?

With minipage \documentclass{article} \usepackage[most]{tcolorbox} \tcbset{ boxsep=4pt, left=0pt,right=0pt,top=0pt,bottom=0pt, colframe=white,colback=black, ...
user avatar
  • 493
2 votes

Split a huge matrix across lines to fit on page

Even if you render the (unnumbered) equation in landscape format -- say, with the help of the rotating package and its sidewaysfigure environment -- you'll still need to round the numbers from 4 to 3 ...
user avatar
  • 435k
1 vote
Accepted

Automatic line breaking of boxes

You need to use \global before \setbox, because \foreach from pgf does each loop-step in a group. The local setting is forgotten when the group is leaved. And you want to use \penalty0 in order to ...
user avatar
  • 51.9k
0 votes

Biblatex: Removing underlining of journal title and enabling line break of it

Although the MWE in the question does not show it, the comments indicate that in the real document the ulem package was used. This causes underlining of text that is displayed with \emph, which is ...
user avatar
3 votes

Indentation in Beamer Frametitle

With that clues, the answer only can be "stop doing whatever you are doing to change the default output": \documentclass[12pt]{beamer} \usetheme{Goettingen} \begin{document} \begin{...
user avatar
  • 72.9k
4 votes

Why does LaTeX neither break at nor hyphenate after a "user kern"?

Kerns are mostly used for correcting unsightly clashes between letters; for instance, the italic correction is a kern that can be used to break ligatures, where you usually don't want line breaks. ...
user avatar
  • 984k
3 votes

Why does LaTeX neither break at nor hyphenate after a "user kern"?

I think this is as good of an explanation as one can get from the TeXbook. \ddanger According to the rules above, there's an important distinction between implicit and explicit kerns, because \TeX\ ...
user avatar
0 votes

How can I split an equation over two (or more) lines

Kind of a hack solution (uses \hspace) from me which however, sticks to the amsmath alignat environment in order to maintain the alignment between the first and any further lines of the split ...
user avatar
0 votes

Using seqsplit and truncate together

The common way to do it is using package hyperref, where you replace your commands simply by \url{someURL}. \documentclass{article} \usepackage{booktabs} \usepackage{tabularx} %\usepackage{seqsplit}...
user avatar
  • 1,405
0 votes

References spilling out of margin in bibliography

In my case \newgeometry solved the problem. Something like this: \newgeometry{top=32mm, bottom=27mm, left=40mm,right=15mm} \bibliography{ref} also you can try this: %SHIFT HORIZONTAL MARGIN ON EVEN/...
user avatar
  • 1
0 votes

Beamer: extra blank line between display math and enumerate

Placing a negative \vspace works. \documentclass{beamer} \begin{document} \begin{frame} \begin{columns}[t] \begin{column}{.5\linewidth} Assume \[ f+g=h \] \vspace{...
user avatar
  • 147
2 votes
Accepted

line height varies with wrapping text

Do not use \\[ ] as an inter-paragraph spacing, typeset proper paragraphs, ending them before changing the type size. And use ragged2e and a proper language set-up: \documentclass[11pt,a4paper]{...
user avatar
  • 28.8k
0 votes

Suppress black box at end of line

Fixing the illness directly, not the symptoms The black boxes usually occur alongside the error: Overfull \hbox (3.14159pt too wide) in paragraph at lines 41--42 This usually means that there is too ...
user avatar

Top 50 recent answers are included