Questions tagged [line-breaking]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
46 views

Automatic line break in tabularx environment

I'm trying to get a table that automatically inserts a line-break so some very long text can fit in the cell, instead of overflowing to the margins like it's doing now. I tried with \makecell but didn'...
2
votes
2answers
109 views

How do I reproduce the numbered items in a Beamer list in text?

I wrote a theorem in beamer with \enumerate. Then I need to write "Idea of proof of 1", with "1" which should be written the same way it appears in the theorem, ie a blue dot with ...
1
vote
1answer
40 views

Fix Overfull Line in Bibliography [duplicate]

I have an overfull line in my bibliography (BibLaTeX) that I can't get rid of, see the image below. I would assume that this behavior is caused by the hyphenated double word "Password-Scrambling&...
1
vote
1answer
45 views

Lyx new equation line

I have written the above expression in lyx using command+ return for new lines. But if I need only two equations as shown, how can I delete the rest 4 rows!!!
0
votes
1answer
65 views

How can remove the horizontal line in the end of overleaf template?

I'm working on an expose (research proposal) and I selected this template in overleaf which is 2 columns. now the problem is I want to include bibliography right after \section{References} but from ...
0
votes
1answer
44 views

Line breaks for items while wrapping images with a list

I am trying to create a list with figure on the right side in beamer but the sentence breaks at unusual places. \begin{frame}{Protocol} \begin{wrapfigure}{R}{0.2\textwidth} ...
4
votes
3answers
294 views

How to automatically linebreak an inline math formula?

Here is an example of a parbox that produces both an underfull and an overfull warning: \parbox{100pt}{A set of comparison triplets \(T = \{ (i,j,l) | z_i \;is\; more\; similar\; to\; z_j\; than\; z_l\...
0
votes
2answers
31 views

move the text to a new line inside a tabular of text and figure

hi I have a piece of code that looks like this in tabular: \usepackage{mwe} \begin{tabular} (1) & \includegraphics[width=0.2\textwidth]{images/some_image.png} & He thinks: $``$Maybe, the ...
1
vote
0answers
58 views

table of figures failing to break only one caption line out of dozens of caption lines

I have a list of figures that breaks dozens of figure caption lines according to the margin settings, except for this one line of this one figure caption. If I add a word to the figure caption the ...
2
votes
3answers
139 views

How to get the titles broken into multiple lines for multicolumn and multirow?

I am using below code, \begin{table} \centering \caption{Before\strut} \begin{tabular}{|l|l|l|l|l|l|l|l|} \hline \multirow{2}{*}{Ser.} & \multirow{2}{*}{$V_{tune}$ (V)} & ...
0
votes
1answer
22 views

tagging package and subfigures: faulty vertical alignment

I'm using the great tagged package to compile my document using graphics of different qualities and/or file formats. The MWE \documentclass{article} \usepackage{subcaption} \usepackage{graphicx} \...
1
vote
1answer
24 views

How to break long citations on a multirow tabular environment?

so I have the following table which I intend to show a summary of some research papers: \documentclass[qualidr]{ppgco} %Não altere o comando seguinte. O título de seu trabalho será especificado mais ...
0
votes
1answer
30 views

\kern after \linebreak doesn't work

MWE: \documentclass[a4paper]{article} \usepackage[margin=30mm]{geometry} \usepackage{xcolor} \begin{document} \noindent this is good that is food this is good that is food this is good that is food ...
1
vote
1answer
34 views

Line breaks in non-clickable URls inside itemize-environment?

I want to list som URLs within an itemize-environment. I would like to break long URLs into several lines, either anywhere in the link, or at locations I specify. I've tried using the breaklinks ...
1
vote
1answer
26 views

Mark where a line break should go IF the line needs breaking

I want to paragraph-break a text at a specific spot, but only if the text is too long for the line. In the MWE below, the first text fits the line width, but the second does not. Of course, I could ...
2
votes
2answers
65 views

\baselineskip not working on array

I want to add a linebreak with distance proportional to \baselineskip in array environment, in order to make my document more stable to format change. However, it seems as \baselineskip is zero in ...
0
votes
1answer
34 views

Version of \smash that still stretches, shrinks and allows linebreaks

Is it possible to set the height, depth or total height — optionally — of some content in a paragraph to zero while still allowing its white spaces to stretch or shrink and linebreaks to occur? Maybe ...
1
vote
2answers
44 views

A version of `\ignorespaces` that doesn't overspill the line

I’m using commands based on the tabular environment to align pairs of words in a linguistics book. After some pairs, I use \ignorespaces to suppress spacing, but this causes lines to overspill. Is ...
0
votes
1answer
33 views

How to prevent biburlnumpenalty to create orphans in DOI

I'm writing my thesis and use the ext-authoryear stile with biblatex. (Unfortunately I have to make a lot of manual adjustments to fulfill the committee's "style" requirements.) In my ...
3
votes
1answer
124 views

Equation break in align equations in beamer

Question: Here I am working on an example in which I have some equations for which I am using align. The problem is, can I get next equation on next slide without writing new align environment? Second ...
3
votes
3answers
39 views

Can Latex automatically break words at a certain special character (underscore) in the whole document?

I have a large document that includes many tables like this one. I would like the filenames to break in several lines so that they fit in the column. Is there a way to tell Latex it can break all ...
2
votes
2answers
131 views

New line (line breaking) does not work for \tcbox

I put some text into a box using \tcbox. I then intend to create a new line in the box as follows: \tcbox{% \begin{small} \begin{concmath} first line\\ % here a new ...
3
votes
2answers
44 views

Insert text except whenever it will be placed at the end of a line

Is it possible have a command insert some text except in the case that it will be placed at the end of a line? Here’s a simple (LuaLaTeX) example: \documentclass{scrartcl} \usepackage{polyglossia} \...
0
votes
1answer
30 views

multiple breaklines symbols for minted

I would like to allow minted to break lines after either ., , or a space. Currently I could only break lines either after , or before . How can I allow more characters? \documentclass{article} \...
2
votes
1answer
90 views

How to add the automatic line-break in multicolumn cell

I have created a table, and I have fixed its width, but the problem when I write a long text, the text breaks the line, I want to add an automatic line break when the text should respect the width of ...
1
vote
0answers
27 views

Square from \end{proof} displaying incorrectly

Often, when I'm ending my proofs, the square generated by \end-proof is coming in new line for no reason. I'm using the vanilla proof environment with a couple enumerates and a lot of text inside. And ...
0
votes
1answer
44 views

Get rid of extra horizontal space between words in bibliography

There is additional horizontal whitespace between words in my bibliography entries. I assume latex does this to align line breaks. But this whitespace is too large. I want to remove the extra ...
0
votes
1answer
24 views

Overfull Title in a Poster

I'm trying to create a poster with tikzposter, and when I put the title (I know it's too big) it went off the page. I had already tried with \\, \ linebreak, \ vspace(4mm) (I know the last one is not ...
2
votes
5answers
290 views

latex table: include '\n' in a table cell?

\begin{table} \begin{tabular}{l | l | c | c } Name & Hex & dezimal & C-char \\ <cr> & 0x0D & 13 & '\\r' \\ % should read '\r' <lf> ...
4
votes
2answers
431 views

split a long email adress at the “@”

In a document of mine I would like to give people the option of filling in their email adress. However, for some exceptionally long email adresses the text box can be larger than the tikzpicture node ...
2
votes
3answers
164 views

Ignore double \newline on page break

When I want two paragraphs of text to be separated by an empty line in between, I use: \newline \newline However, I would like that extra empty line to be ignored if it happens that the page breaks ...
0
votes
2answers
64 views

minted does not break lines based on breakbefore

I want minted to break lines after ".", so I use breakbefore=. and breakbytokenanywhere=true but minted still breaks the line before "." instead of after. What am I missing? \documentclass{article} \...
2
votes
2answers
143 views

Newline or line break in Tikz

So I am trying to follow this this link to break up the text in two lines. Here is my code: \documentclass[12pt]{article} \usepackage{float} \usepackage[margin=1in]{geometry} \usepackage{tikz} \...
1
vote
1answer
42 views

Linebreaking in tikz table

I want to have a line break in the text that I write inside a tikz table(example here A minimalist block in latex beamer). The latex code I have is: \documentclass[10pt]{beamer} \usepackage{...
1
vote
0answers
51 views

Custom table layout for variable description

What do I want to do I want to create a table for presenting a lot of variables in a clear way. Each class does get its own table containing up to one hundred variables, so the the table has to be ...
0
votes
0answers
31 views

bibitem doesn't assume line-break

I just started using thebibliography environment. It is not big deal so I decided to stay with this functionality, without using any .bib file. I am struggling with the following lines : \begin{...
3
votes
2answers
303 views

How to avoid this error defining a \newcommand?

I want to define this macro: \newcommand{stackonetwo}{\begin{smallmatrix} 1 \\ 2 \end{smallmatrix}} But I think the compiler doesn't like \\ inside the new command. It returns the error Missing ...
1
vote
2answers
91 views

Extremely LONG equation with large fraction

I am trying to type this extremely long equation without success. I got this result out of Mathematica and copied it. For some reason, the parentheses are not changing their shape according to the ...
0
votes
1answer
21 views

How do I indent after a line break command, in case the line before the line break is at least a certain length?

I want to an auto indentation after using the line break command, in case the line before the line break command has at least a certain lenght (in best case relative to my page width). Example: bla ...
0
votes
1answer
36 views

Add Unbreaking Space in BibLaTeX: `\setunit{\addunbreakingspace}`?

I use biblatex for my bibliographies. I have two items at the end, let's call them Y and Z. (The exact details of what these are is not important.) Currently I separate them with a space via \setunit{\...
1
vote
1answer
100 views

\medskip after every paragraph

After every paragraph I write, I use \medskip all the time e.g. \begin{document} test test test \medskip test test test \end{document} Is there a way to automate this so I don't need to type in \...
0
votes
0answers
46 views

Linebreak before a link

In German, abbreviations can be part of compound words that need to be hyphenated, like "Java-API". My problem is that when I write Java-\gls{api}, I never get a line break after the hyphen. I ...
1
vote
1answer
31 views

\newpage not working in article class

I'm having an error with my code but i don't know why. Please help me with this: \documentclass[12pt]{article} \usepackage[a4paper]{geometry} \usepackage{graphicx} \usepackage{booktabs} \usepackage[...
0
votes
0answers
33 views

How to automatically convert blank lines to something else

I want to convert blank lines to \\[0.2cm] automatically TextText Text TextTextText TextTextText Text Text is what i copy paste inside the document but i do not want any indent and a specific gap ...
1
vote
1answer
294 views

Overleaf editor automatically inserts an inconvenient line break in the middle of a word or sentence after apostrophes and accents

I have a problem which I believe to be linked to the Overleaf editor. I am writing a document in book format, in French. As I usually write articles in English, I copy here the beginning of the ...
1
vote
2answers
46 views

Long footnote stretches out width of columns

I'm new to LaTeX and ran into a problem with formatting my table. I would like to have a long footnote underneath the table that starts a new line as soon as it reaches the border of the last column ...
1
vote
0answers
44 views

Long word didn't hyphenate

I'm sure it would be quite easy to answer it but currently, I'm sorry that I couldn't to do that, I'm using beamer packages are given below there is a word that used "demonstrated" I'm trying to break ...
0
votes
0answers
36 views

How to format the output for an bibliographic entry?

I would like my References to be formatted as the following: Author(s) Title Journal ref, or publishers information Doi or/& ISBN Year How could I do that? I am using BibTeX with natbib. Sorry ...
0
votes
0answers
29 views

How to break lines in your citation using Bibtex?

I've been having problems with LaTeX not automatically breaking the line (specifically for contents of the title field in entries of type @book) in my bibliography. I have tried everything to fix this ...
2
votes
3answers
106 views

How (!)within the same paragraph(!) to have places where lines are allowed to be too wide and places where lines are not allowed to be too wide?

Assume you have \macroA in a way where \macroA{⟨TeX number-quantity denoting amount⟩} produces an amount of characters A. Assume you have \macroB in a way where \macroB{⟨TeX ...

1 2
3
4 5
49