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

learn more… | top users | synonyms (1)

2
votes
1answer
115 views

How do I fit authors into a single line?

How do I fit authors into a single line? \title{An example} \author{Multiple authors with long name will be splited into two lines} \begin{document} \begin{frame} \titlepage \end{frame} I use ...
3
votes
0answers
58 views

Need linebreak when \fbox exceeds the text area

Need to align a "fbox", when exceeds the text area. MWE: \documentclass{article} \begin{document} Blah \fbox{Text within box in horizontal line} Blah ... Blah \fbox{Text within box in horizontal ...
5
votes
1answer
90 views

Problem with line breaking citation with bibtex

I'm having troubles with the the appropriate line breaking of my references with BibTeX with the author-date format. The problem is that each reference is cited in the format "(Author, Year)". When ...
4
votes
1answer
64 views

Avoid linebreaks when going from Emacs/Vim to Texshop?

I'm editing .tex files in Texshop, that others are editing in Vim or Emacs. However, when I open their files, I only get 10-12 words per line, so that there are very frequent line breaks. I believe ...
6
votes
2answers
94 views

Line break after \section number

I need to have a line break after \section number (I use Roman numbers), like: I Section ... some text ... II Section I've tried \renewcommand{\thesection}{\Roman{section}\\}, but it only creates ...
4
votes
2answers
139 views

Tabbing alignment and over-length sentence auto line break

【Question】When using "tabbing" under math mode with cases, how can I achieved the following at the same time: (1) alignment in cases by "tabbing" (2) over length element such as a long sentence in ...
2
votes
0answers
21 views

Bibliography with each entry not on a new line? [duplicate]

Is it possible to get Biblatex (or bibtex, I can change) to put out a citation with each entry not on a new line? Right now I have something that looks like: 1. Katz, M. J.; Ramnial, T.; Yu, H.-Z.; ...
2
votes
3answers
272 views

how to maintain text justification after forcing a new line

How to break a line of text (\newline or \\) and still maintain justification for its texts?
4
votes
2answers
62 views

Linebreaking in a correct manner

So this might be a really basic question, but I couldn't find anything about it. In my amateur style of LaTeX typesetting, I sometimes want linebreaks in random places for various reasons. I usually ...
2
votes
1answer
80 views

Auto line break in tabbing

When inserting contents into table cells, is there any simple, direct solution to make the content-line break automatically just like the paragraph showing above? i.e., I what the "cccc cc cc...." ...
3
votes
1answer
67 views

fancyref's \fref produces a line which is to long

I have the problem, that the line, where I have a \fref, is longer than the lines in the rest of the document. I am using KOMA Script with latexmk and xelatex, to generate the document. I have ...
2
votes
0answers
33 views

Enforce automatic breaking of long lines and and indent broken lines

I have many tex documents like that below which I want to translate with pdflatex. The files are the output of a vim-plugin which generates formatted output from vim's internal syntax highlighting. ...
2
votes
0answers
29 views

Widow numbers and \cite seprated from the previous words

I did search for this (even asked for help in meta), but found nothing. Sometimes I need to use tilde ~ to keep things looking good in situations I fell latex should do it automatically. Examples: ...
2
votes
1answer
44 views

Bash script between report lines - Line Breaking

I'm using the following commands to introduce bash script text in the middle of a report: \newcommand{\shellcmd}[1]{\\\indent\indent\texttt{\footnotesize\# #1}\\} \begin{document} \noindent ...
2
votes
1answer
27 views

I am having some trouble making a newline in itemize section, unfortunately \newline \parbox \par or \\ is not working

\documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{banking} \moderncvcolor{blue} \usepackage[utf8]{inputenc} \...
4
votes
1answer
69 views

Prevent a new line before a theorem

Is there any way not to start a new line for a theorem? For example, in the following example, I would like the word Theorem to be on the same line as the number 1. \documentclass[12pt,letterpaper]{...
2
votes
0answers
18 views

There is no line here to end. What's the error? [duplicate]

Ans7)As we can see from the automata itself that it is $\epsilon$- NFA so we need to convert it into a NFA and then to a DFA.\\ The Transition table is:\\ \begin{center} \begin{tabular}{|c|c|c|} \...
1
vote
0answers
15 views

How do I stop \write and \message from inserting a newline at 80 characters? [duplicate]

I have the following file: \immediate\write16{abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKL 80 char split is right here -><- this is on the next line} \message{...
1
vote
0answers
16 views

Eliminate \hbox badness in multiple verse-like environment [duplicate]

This is a question dealing with underfull \hbox badness when newlines are entered using \\. \documentclass[12pt]{memoir} \usepackage{lipsum} \usepackage{polyglossia} % the multilingual support ...
2
votes
1answer
147 views

Line break in qtree edge labels

I am using tikz-qtree to create a (horizontal) game tree. While I have managed to create line breaks in the node labels, this does not seem to work for the edge labels, see MWE below. My questions ...
1
vote
0answers
126 views

Small Line Inserted into Sharelatex

I'm trying to figure out how to insert a small straight and horizontal line segment into a Sharelatex text file. Any ideas?
5
votes
1answer
72 views

Horizontal alignment issues and differences using \\ and \newline in the text

This minimal example shows the behaviour I am wondering about: \documentclass[11pt]{book} \usepackage[english]{babel} \usepackage[a4paper]{geometry} \begin{document} \frontmatter \pagestyle{plain} ...
1
vote
0answers
17 views

phantom does linebreak instead of invisible math mode character [duplicate]

I have the following two lines: $\Rightarrow$ Generate $\mathbb{G}^n$ and check the existence of a homomorphism\\ from $\mathbb{G}^n$ to $\mathbb{G}$! I want the second line to start exactly under ...
6
votes
1answer
148 views

itemize, mbox and unwanted line break

I have a slide in the beamer package with an itemize environment where some items slightly are too wide to fit in one line (according to LaTeX' automatic line break system). This is the code: \...
3
votes
1answer
82 views

Problem with long URL

I have the problem with long URLs. They are not broken in an appropiate way for my thesis because they fill in the whole line and by doing so violating the rim constraint. For example I have the ...
2
votes
3answers
113 views

Prevent line break of dash inital words — hyphenation problems

As my question hasn't been answered yet, I decided to rephrase it. I will try to simply the working example and specify my question. I'm writing a dictionary that contains grammatical forms which are ...
7
votes
1answer
113 views

Listing creation fails with “dimension too large” given a large block of characters

When creating a code listing, we recently ran into a strange error from the listings package. Specifically, listings bails out on a large block of text. Here's a minimal working example: \...
4
votes
1answer
75 views

Why does it appear in english?

I have used the following commands: \begin{proof} \begin{enumerate}[i.] \item \begin{description} \item[Βάση επαγωγής] : Για $m=2$ έχουμε $X_2(a)+\alpha (a)Y_2(a)=(\alpha (a))^2=a\alpha (a)+1$. ...
4
votes
2answers
180 views

How to align lines and automaticaly break the lines if they are too long?

I'm trying to align in LaTeX all equal signs, but I'm encountering a problem. If the line is too long it won't automatically break. My code at the moment: \begin{align*} n &= \text{number of ...
2
votes
2answers
51 views

Indexing of equation

I have this code: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather*} \max\nolimits_X \min\nolimits_{\vec{Y}} F(X, \vec{Y})) = \sup\nolimits_{X} (\inf\nolimits_{\vec{Y}} ...
5
votes
2answers
156 views

How to make the align environment break at the right place?

I need to break an align environment. Is it possible to give hints to LaTeX about where to break or, better, where not to break? Here is a example: \documentclass{article} \usepackage[paperwidth=...
9
votes
3answers
777 views

Why does TeX break the line between — and ,?

I have the following \hbox, and if I unbox it and put it to a paragraph (or when I just type aaa --, bbb or aaa --\nobreak, bbb), TeX is breaking the line between -- and ,. > \box0= \hbox(6.88875+...
3
votes
1answer
64 views

New line in equation

I have such code: \begin{equation*} max_X (min_{\vec{Y}} F(X, \vec{Y})) = sup_{X} (inf_{\vec{Y}} F(X, \vec{Y})) = \Gamma_1, \newline min_{\vec{Y}} (max_X F(X, \vec{Y})) = inf_{\vec{Y}}...
2
votes
1answer
157 views

Ifx and end of line [closed]

Can anyone shed some light on this? I have an interesting problem involving the "There's no line here to end" error. EDIT: Variables. I did not think to include this as I thought there was only one ...
2
votes
0answers
71 views

How to avoid orphan line between two figures?

I have a annoying line between two fingers, I would like to avoid this: I have tried to change the paragraph location before the second figure, but even though I still have an orphan line at the ...
1
vote
1answer
77 views

Linebreak in definition heading (theorem package) [duplicate]

I have a problem with a too long line in the theorem environment. The following example shows the problem, I need a line break in the heading, but there is none. Any suggestions? \documentclass[...
2
votes
2answers
64 views

How to break lines automatically when there are inline code format?

My TeX have a lot of inline code to compile, so sometimes the output of PDF seems like this: The outlined part is coded in {\tt set_task_state(current_state)}, How to automatically break the line ...
4
votes
3answers
648 views

How to start half way down a page or skip some whitespace in a page?

In latex, one can use the command \newpage to skip to a new page. Is there a similar method of skipping to the next half way point in a page? (Whether this be halfway down the current page or just ...
2
votes
1answer
82 views

Defining default vertical space for newline command

Is there a way to alter the default vertical spacing for the \\ line break command? I am aware of the optional vertical spacing parameter for it, as well as the \smallskip,\medskip and \bigskip but ...
3
votes
1answer
66 views

Preventing algorithm2e linebreaks

I want to include inline code examples such as if i < n then i++ and else i--. I'm using the following LaTeX: \documentclass{article} \usepackage{algorithmic} \usepackage{algorithm2e} \begin{...
1
vote
1answer
100 views

Multirow reacting to rownumber instead of linenumber

I'm trying to create a table in LaTeX which contains a multirow as height as the rest of the table. This table appears lots of times in my document. The problem is that the second row can contain ...
3
votes
1answer
51 views

Biblatex linebreaks inside \cite

I'm currently confronted with some problems regarding linebreaks inside citations. I'm using biblatex with a biber backend. config: \usepackage[hidelinks,breaklinks]{hyperref} \usepackage{csquotes} ...
2
votes
0answers
58 views

Resolving troubles with line breaking in paragraph

I am working on a larger project with text I cannot alter at all, so I obviously run into various troubles with overfull and underfull hboxes &c. Therefore I've created the following macro (using ...
4
votes
1answer
161 views

Breakings URLs with biblatex

I know that biblatex offers various options to tune the breaking of URLs in the bibliography, but in the following example nothing seems to work: \begin{filecontents}{\jobname.bib} @book{...
2
votes
1answer
40 views

Suppressing the newline when entering an environment

Is there anyway to suppress the newline that is inserted when beginning an environment? For example, I would like \noindent{\bf 1.}\begin{verbatim}some code\end{verbatim} to appear as a single ...
2
votes
4answers
57 views

Add line break to one line of a multi-line equation

I am writing an equation consisting of many lines, however, one particular line is very long and I want to break into a new line. For example: \begin{equation} \begin{aligned} & \text{...
2
votes
2answers
149 views

Typeset output from Maxima using input{}, specifically left justify

First of all, apologies if there is an answer for this already. I'm outputting symbolic results from Maxima using tex(<output>,"filename")$, which leaves me with an expression with $$ on each ...
2
votes
1answer
125 views

How to force citations within text width

I am using the named bibliography style with the following citation formulation provided by karlkoeller: \makeatletter \let\@internalcite\cite \def\cite{\def\citeauthoryear##1##2{##1, ##2}\@...
1
vote
2answers
74 views

Left-align text in math-mode and break equations

I have the following MWE \documentclass[11pt, a4paper]{article} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{amsfonts, amsmath, amssymb, amsfonts} \begin{document} \begin{align} \...
2
votes
1answer
91 views

How to create a blank line between lines without using \\

In my tex document I have an ungodly amount of \\ from when I first started writing tex files. (~5000 in total) Right now I am trying to delete all of them. I want to just have a blank line between ...