{line-breaking} is about how (La)TeX breaks paragraphs into lines and how those breaks can be influenced.

learn more… | top users | synonyms (1)

4
votes
1answer
137 views

Hyphenate long acronyms

I'm using the package acronym but I have a problem. I have a very long acronym "ADD1/SREBP1". I defined it like this: \acro{srebp}[ADD1/\-SREBP1]{adipocyte determination-and differentiation-dependent ...
1
vote
1answer
194 views

Can not force \newline within \longtable

\begin{table}[htbp] \begin{tabular}{p{3cm}|p{1.5cm}|p{8cm}} A \newline B & C \newline D & E \\ \end{tabular} I tried creating a table as shown in the above MWE, the table is longer than 1 ...
3
votes
1answer
149 views

Multiline Inferences / Rules / Axioms in Bussproofs

I have a proof that I need to set in LaTeX, and to do so I am using the bussproofs package. However my proof has large amounts of free text in it, which makes the proof overly wide. Is there a way to ...
1
vote
1answer
446 views

Break a subfigure set in two lines

Is it possible to break a figure block made by three subfigures in two lines? I would like to maintain the first subfigure on the first line and the other subfigures on the second line. ...
15
votes
3answers
587 views

Rounded box around placeholder text that supports line breaking

I want to draw a rounded box around a piece of text like that: The left and right borders should be half circles and line breaking should be supported. This my code so far: \setuppapersize[A7] ...
9
votes
2answers
162 views

How to get listings that both feature line breaking of long identifiers and keywords highlighting?

I'm currently writing a book chapter in bioinformatics, and I would like to provide my readers some useful command lines to invoke recent software. To that purpose, I'm using the listings package to ...
3
votes
1answer
68 views

output generated macro content with newline

I would like to debug a latex macro, but I do not really know how. I got the following MWE which replaces the \\ in a string. I would like to print the value of generated string to check the result. ...
3
votes
1answer
125 views

How to wrap section titles when using wordlike?

I have a template based on the wordlike package. When I have a long section title, it extends beyond the edge of the page instead of wrapping to a newline (like this). Here's the code: ...
3
votes
1answer
103 views

How to add two force line breaks in cell

I would like to add two force line breaks in a cell. Using an answer from this question I can add one force line break. Can you help to add two line breaks using similar function like ...
5
votes
1answer
92 views

Make less space between lines on a table

I have a big table where I need to use multiple lines on each cell. The table is too big though so I need the space between lines on each cell to be smaller. I found on another post that I could use ...
7
votes
2answers
71 views

Line break in macro

I have defined a macro in my document as \newcommand{\FSeq}[2]{\ensuremath #1_1, #1_2, \ldots, #1_#2} The problem is that surpasses the margin usually. Is there anyway to solve this problem? I ...
5
votes
2answers
145 views

Special line breaking problem in my bibliography

The following is how my bibliography entry looks: Lagrange, Joseph-Louis (1773/1775). “Recherchesd’arithmétique”. In: Œvres.Vol.3. Hildesheim: Georg Olms Verlag, 695–795 The problem is: vertically, ...
7
votes
2answers
90 views

Why \\ increases interline spacing before the command in center environment?

This is about the effect of the line breaking command "\\" in center environment. It appears that the command has the effect of increasing the interline spacing of text appearing before the command. ...
4
votes
1answer
70 views

White spaces in report

My editor produces a new paragraph every time I omit a line with pressing 2 times enter. I would like to turn this function off and begin new paragraphs only with explicit \par command. Does ...
2
votes
1answer
182 views

Line break “no line to end”

I would like to know how to force a gap say in this instance: \subsection{$K\nsubseteq L$}<br> [Line break here]<br> In the next three results that follow, ... Naively using \newline or ...
44
votes
1answer
3k views

Manual/automatic line breaks and text alignment in TikZ nodes

How can I insert a line break in a TikZ node? Simply putting \\ where I want the break doesn't work (see MWE). Is there a way to make lines break automatically at some specified width? And can I ...
1
vote
1answer
72 views

Two hyphenation problems with non-language items

The first hyphenation problem occurs with the double-word "algébrico-géometriques", which is in French, and I'm writing in English. Unfortunately, I already tried different variants of ...
0
votes
0answers
34 views

Badbox in TexnicCenter.. How to solve it? [duplicate]

After compiling my Project in Latex, I got 206 badboxes of all the types you want. However, I can only see the reference of the Badbox, for example: Underfull \hbox (badness 1607) in paragraph at ...
4
votes
3answers
97 views

How to break words at paragraph width?

I have a few long nonsensical words I'd like to break at the same place as the other words. How do I do it? Example below. The text quoted is: As an example of the two first properties, the ...
2
votes
1answer
383 views

When wrapping text around an image, latex fills the bottom line first, not the top. How do I fix this?

I am using the wrapfig package in LaTeX, and in some areas, it is working fine to wrap the text around the image. However here it is breaking the lines in a weird way, and extending the blank area ...
2
votes
1answer
107 views

List all sections in TOC in one line wrapped [duplicate]

How can I list all sections under a chapter in TOC, in one (wrapped) line (without pagenumber is fine)? Thanks. Expected,: Chapter 1 .................................................... 10 section ...
2
votes
1answer
197 views

Verbatim Linebreaks

I would like to enable automatic line breaking in Verbatim environment; besides I do not want to use lstlisting as it will not have exactly the same font shapes as Verbatim and some other special ...
6
votes
2answers
76 views

Start the content of an item on a new line after the item label in enumerate environment

How to have the full content of an enumerate item to start on a new line below the item label and number, and aligned to the left margin of the document ? This question is closely related to this ...
14
votes
3answers
909 views

Help on dealing with items divided with slash

I am using a number of items in text that are divided with a slash. For example dates in different calendars or names of locations, such as 585/1190~CE (the first number is the year in Islamic lunar ...
5
votes
2answers
134 views

Conditional linebreak in align environment

I have a large document to typeset in two different page formats. Some of the equation lines are too long in the small format so I wanted to break some equation lines conditioned on whether the macro ...
2
votes
1answer
1k views

Breaking words at the end of line

LaTeX tends to break words at the end of the line when that causes better typography. Great. I'd like to have some sort of influence on where the words are broken, though. For example, LaTeX ...
5
votes
1answer
167 views

Newline Not Working Inside \pbox After Using \selectfont Command

I have the following command defined for a custom row of a two-column tabularx table with column specifiers rX: \newcommand{\pbrow}[2]{\pbox[t]{\linewidth}{#1} & \pbox[t]{\linewidth}{#2} \\} ...
9
votes
2answers
178 views

stacking text for cryptography

What is the best way to stack long passages of (fixed-wdith) text on top of each other? I am writing exercises and solutions for a cryptography class and would like to be able to have plaintext above ...
4
votes
1answer
131 views

How to keep section titles together with the content in ConTeXt?

I found many places in my document where the subsection titles are places alone at the bottom of the page with the content on the next page, like this: ____________ ____________ | | ...
30
votes
2answers
1k views

TeX assistance in writing hidden acrostics

Here's a fun challenge. Try to come up with (and code) techniques through which (La)TeX can help authors to incorporate acrostics in their writing. The definition from Wikipedia: An acrostic is a ...
3
votes
1answer
288 views

Tabstop and line wrap inside itemize

What I am trying to achieve: some list: - some text - Def.: Some long text which should both automatically wrap to a new line and be tabbed as displayed here. - some sublist * with the ...
0
votes
0answers
23 views

Biblatex url in new line [duplicate]

How do I force biblatex to print a url in a new line? I'm using biblatex with bibtex8. greetz
5
votes
2answers
80 views

Boxes of zero height, depth and width unexpectedly affecting document spacing

I was adding some mark up for a roughdraft of a document I'm working on. But when I eliminated the mark up, the spacing and linebreaks came out differ. My intention was to create boxes of zero ...
2
votes
1answer
80 views

Line break in math environment

I've typed this: $A,A+k,A+2k,\ldots,A+nk,B$, kde $k$ je \textit{krok} and the line breaks in the middle of A+2k. Is it OK or should I break the line manually before this expression?
4
votes
2answers
141 views

custom word-wrapping in tablecolumns with fixed width

I have a somewhat special problem. I want to create a fixed-width table column (for example by using the p{0.2\textwidth} column-type). But in the column are really (!) long words, containing mostly ...
7
votes
1answer
204 views

Acronym generates abnormal spacing

I'm using the acronym package but I just realized that it has some problem with spacing. It is the last version (2012). Every time an acronym starts a new line, at the end of the previous line there ...
2
votes
1answer
101 views

breaking many long numbered equations

I am having trouble with listing a couple of hundreds of long equations. Most of them need to be broken. The equations should be numbered. I tried many things such as eqnarray in combination with ...
6
votes
1answer
914 views

Wrapping text inside framebox

I would like to wrap the text inside a \framebox, such that it continues on the next line instead of running out of the margins. A minimum working example: \documentclass[]{report} \begin{document} ...
0
votes
1answer
132 views

Long codes using listing or mcode which do not break into 2 pages

I'm using the mcode package for including my codes into my documents, but the problem is that when my codes are too long, and they need more than one page the program tries to keep them in one page, ...
2
votes
1answer
113 views

How to place multiple lines of text in the headers in ConTeXt?

I am using this to place headers within my document: \setupheadertexts[{Birds of South America \getmarking[chapter]}][][][] I tried to place the title on a different line, using \\, \crlf, \vskip, ...
0
votes
0answers
111 views

Some algorithm2e questions (line wrap, indentation, lists)

I already had a question about algorithm2e here: algorithm2e indentation / line break I have continued using algorithm2e, but I have multiple problems now: First, I need a finer control over the ...
2
votes
1answer
199 views

Extra } or missing \right

I'm having this error each time i try to build the file "Missing \right or extra } error". I tried to figure it out but I could not know in which part is the error. I need break line because without ...
1
vote
1answer
242 views

linebreak fails for long lines in list of figures

When lines becoms long and there are many ~-characters (eg for citing) latex fails to break the line in the list of figures and prints into the margin. any ideas how to "force" a break before the ...
0
votes
0answers
25 views

URLs out of page margin [duplicate]

I am writing a report in LaTeX. I am done with all of the work. Last thing that is remaining is that some of my references are going out of the margins and I don't know how to handle them. I Googled ...
3
votes
1answer
177 views

hyperref line break problem

I am using xelatex and I have the following warnings: !!!** WARNING ** Annotation out of page boundary.!!! !!!** WARNING ** Current page's MediaBox: [0 0 597.6 842.4]!!! !!!** WARNING ** Annotation: ...
3
votes
2answers
93 views

Using \color in a paragraph column inside a tabular environment results in a line break [duplicate]

Some of my documents are compiled into multiple outputs. Some Versions contain certain parts, while other versions contain only a placeholder. For this purpose I have a macro \markup that colors its ...
8
votes
2answers
778 views

Why \allowbreak is not working?

So, here's the code I have: \usepackage{amsthm} \begin{theorem} ...could be now considered as an algebraic structure $DB_E = \left\langle \mathbb{S},\allowbreak \mathbb{E},\allowbreak f,\allowbreak ...
2
votes
1answer
128 views

Long name of Chapter in TOC. Doesn't work \\ for a new line

For a \documentclass{report}, how can I make a long chapter name to wrap onto a second line in TOC ? For example :
2
votes
1answer
393 views

Tabbing and line-wrapping

I'm making a CV. I use the tabbing environment so that my sections start with a 1cm indent, and I can also right-justify dates. For example: Education University of Coolness ...
4
votes
2answers
179 views

How to merge marginpars to avoid overflows?

I am using margins to print keywords but sometimes the number of keywords in a paragraph become too many and they appear beside the next paragraphs. To avoid this issue, I thought maybe they could be ...