5
votes
1answer
51 views

Relationship of \\, \newline, \raggedright, \RaggedRight, and parindent

I'm trying to understand if there is anyway to get \\, when in \raggedright or \RaggedRight, to produce a new line that is not indented, while \parindent or \RaggedRightParindent are set in order to ...
1
vote
0answers
18 views

Line break after \hfill [duplicate]

I hope this question is not a trivial one, but I was not able to find any answer to that. I found out that sometimes when I put an \hfill command in order to align some text to the right, there is a ...
3
votes
1answer
35 views

References spilling out of margin in bibliography

I have a search for this problem but all I could find was the case of reference citations in document spilling over, not the bibliography. Quite simple problem I hope... In my bibliography some of ...
4
votes
2answers
88 views

Align split equation to the margins

How to align a two-lined equation such that the first line left aligns with the surrounding text and the second line right aligns with the surrounding text? Example (where the pipes denote the left ...
6
votes
1answer
109 views

Is there a standard for automatic line-breaking for text with various alignment types?

The context is that I'd like to not have to manually choose newlines and rather eyeball the length of text and possibly specify the number of lines or horizontal width the text should take up. I'm ...
9
votes
1answer
140 views

How to float something right even if it wraps down a line?

I have a situation where I have some data in section headings (and sometimes normal paragraphs} that needs to be: floated right not split across lines I was able to accomplish this for most cases ...
9
votes
2answers
122 views

Preventing line shrinking with raggedright

Sometimes with \raggedright, if a line is too long, but only slighly so, it will be shrunk instead of broken up. Here is an example: \documentclass{article} \raggedright \begin{document} This is a ...
3
votes
2answers
71 views

I want to force a justification to both sides after using \newline

\documentclass[11pt,a4paper]{article} \usepackage[cp1250]{inputenc} \begin{document} \noindent In year 1000 somebody wrote something\footnote{\emph{something}} because he wanted to. Some thought he is ...
15
votes
5answers
249 views

Behavior of \\ inside center environment

While trying to compile a title page for my dissertation I realized that I do not understand the behavior of \\. Consider the following MWE \documentclass{memoir} \begin{document} \begin{center} ...
0
votes
1answer
59 views

page layout for function description

I write an SDK manual in which I would like describe function using the following layout, but I have a carriage return I don't want. Parameters * unsigned int * string Return Value ...
4
votes
1answer
122 views

Left-aligning URL with line breaks in bibliography

URLs break fine in my bibliography. My problem is that they are justified which creates a gap between "URL:" and the URL itself (see below). Is there a way to left align only the URL? I am using ...
5
votes
2answers
848 views

Figure caption alignment screwed when using line break

I am having trouble with figure captions when I need a manual line break. \documentclass[A4]{book} \usepackage{subfig} \usepackage[top=35mm, bottom=38mm, inner=40mm, outer=24mm]{geometry} ...
0
votes
1answer
64 views

How to justify a very long ciphertext and corresponding plaintext in Latex? [duplicate]

I have a very long ciphertext and corresponding plaintext both are of 680 alphabets without space to print in a latex document. I have not found any way to make justify it in internet. Any Ideas ...
7
votes
2answers
98 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. ...
55
votes
1answer
6k 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 ...
2
votes
1answer
428 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 ...
5
votes
2answers
156 views

Justify “orphans” to the right margin

I'm typesetting a book with some song lyrics, but at some points, the verses have too many words to fit on the page -- so they overflow and spill over to the next line. To make this read better I want ...
2
votes
1answer
109 views

Linebreak without justification if remaining Text doesn't fit [duplicate]

I have a text (justified block paragraph) with an author attribution. If the last line of the text has enough space left to fit the author attribution and some space, then it should be put into that ...
5
votes
1answer
155 views

How to align this long equation which out put from Mathematica

I use Mathematica, and use the command TeXForm from Mathematica, I get \{\{x\to -19,y\to 4,z\to 11,t\to -14,m\to 11,n\to 19\},\{x\to -19,y\to 4,z\to 11,t\to 19,m\to 11,n\to ...
6
votes
1answer
221 views

biblatex: no linebreaks in name lists when typesetting ragged-right

When typesetting a bibliography \raggedright, biblatex seems to have trouble breaking a line between an author's first/last/middle names (and, if multiple authors are present, between two authors). ...
7
votes
4answers
156 views

Justify long line with no spaces but a lot of hyphens

% !TEX TS-program = xelatex % !TEX encoding = UTF-8 Unicode \documentclass[11pt]{memoir} \usepackage{fontspec} \usepackage{showframe} %%% Book Layout %%% \setstocksize{4in}{5.75in} ...
8
votes
2answers
740 views

\RaggedRight makes document longer

I have a document carefully written to fit in 4 pages; but when I added a \raggedright (or \RaggedRight with use of the ragged2e package) the length gets longer. Furthermore, suddenly the output ...
3
votes
1answer
248 views

No correct centering when a line break is used

I have a centering environment inside a figure. In this environment, I have a text written in a footnotesize style. If I make a line break (\\) in the text, then the text is not centered correctly ...
1
vote
1answer
231 views

Problem with sizing side-by-side minipages

I've been writing up my resume in LaTeX (for the flashiness and also to get better with LaTeX), and I've been having some trouble with one of the macros I wrote, called \nrccolstring. \nrccolstring ...
23
votes
4answers
607 views

unexpected interaction between \raggedright and \parshape

While answering Random start of line, I came upon a strange interaction between \raggedright and \parshape. If a ragged-right paragraph ends in a short line, this line will be "the most ragged". ...
3
votes
1answer
298 views

Aligning two text boxes with a few lines

Here are the two text boxes: \begin{tabular}{l@{}} Date: 3 Jan. 2500 \\ Place: Moon \\ \end{tabular} \null\hfill\begin{tabular}{l@{}} Prof. Neil Armstrong \\ Department of Moon ...
2
votes
1answer
198 views

issues after verbatim section

I'm havin an issue which I cannot solve. If I have a subsubsection containing text with a verbatim section in between, the first line after the verbatim section is not aligned properly. If I put a ...
13
votes
1answer
249 views

Box around raggedright links spanning two lines extends to right margin

I need to use boxed links and ragged right text. The problem is that when a link spans two lines, though the link is broken correctly (when using pdflatex) the box around the linked text extends until ...
8
votes
1answer
2k views

LaTeX Centering newline in subfloat caption

I have these images with their title beneath: I want to add some information below, like this: The good news is, I'm able to do it. The last screenshot is from my pdf previewer. ...
5
votes
1answer
321 views

Different alignment for table number and caption

I have a table whose table number should be right-aligned and its caption should be center-aligned on the next line like this: Table 1 Caption ...
9
votes
1answer
221 views

Using discretionary linebreaks in centering environment

I am having trouble with the interaction between discretionary line breaks and centering. I have defined macros for math mode that contain discretionary line breaks to help TeX lay out inline ...
3
votes
3answers
393 views

Table growing with content and automated line break

I would like to have a tabular or something similar with one cell and the following behavior: The cell grows vertically and horizontally to fit the content of the cell but no more than \linewidth ...
1
vote
1answer
362 views

LaTeX + Django templating and margin run on text

I am rendering LaTeX templates with Django template tags in them and for testing when I put a very long string of text, no matter if I used \raggedright, or \sloppy, the text always seems to run into ...
7
votes
1answer
319 views

Right-aligned line-break with long verses in verse

I'm happily using the verse environment to typeset French poetry. However, I'm unsatisfied with the behavior of long-line breaks (when the verse is too long to fit on the page). The verse behavior is ...
7
votes
1answer
1k views

Table of contents (minitoc, parttoc) and line breaks

I have to make a table of contents for each part of a book document. I use minitoc package, and \parttoc command. I have line breaks (\\) in the chapters and sections titles in both [] and {} ...
2
votes
1answer
323 views

Oddly wide spaces in subsection title

I have a problem, this is what it looks like: And this is the code: \subsection{Bakterienst\"amme und Anzuchtbedingungen} Where does the huge whitespace come from?
15
votes
4answers
878 views

How can I make (La)TeX prefer to fill centered lines

My thesis formatting requirements ask for multiline chapter and section titles to be a maximum of 4.5 inches wide with any subsequent lines being wrapped such that they are sucessively shorter, ...
3
votes
2answers
318 views

Figure with long list of predicates and conjunctions (\wedge)

I have a figure with a long list of predicates connected with \wedge, here is the code: \begin{figure}[h] \small{ $ Defined\_in(subject\_state, concrete\_subject) ...
2
votes
2answers
722 views

bibtex large spacing

I couldn't find a solution to my problem searching. Apologies if it has been asked before. My problem is: on a few of my bibliography entries, there are massive spaces in the text to pad out the ...
6
votes
2answers
2k views

Line break in the table item

I am creating table in LaTeX and I need to get the text to perform line break automaticaly when it's too long. And if possible, I'd like to get the text alignment to the left. Is it possible to handle ...
8
votes
2answers
1k views

ragged2e: “newcommands” option produces “underfull \hbox” warnings

The ragged2e package provides the commands \Centering, \RaggedRight and \RaggedLeft for setting ragged text while allowing hyphenation. The package offers a newcommands option that sets the standard ...
19
votes
3answers
1k views

LaTeX word wrapping poorly

LaTeX is not word wrapping this anything close to sanely: \documentclass{article} \usepackage{graphicx} \usepackage{wrapfig} \usepackage{geometry} \usepackage{lipsum} \geometry{margin=1in} ...
14
votes
2answers
10k views

\hfill after linebreak

I have a simple text. Right after the end of the text I use \hfill to get some words right aligned. \documentclass[11pt]{article} \begin{document} Lorem ipsum dolor sit amet, consetetur ...
23
votes
2answers
8k views

Line breaking of URLs in bibliographies

I have a problem with the line break of an URL. The URL can´t break correct and extends into the border. I´ve tried some things. Amongst others I loaded the package breakurl, but without any success. ...
6
votes
3answers
5k views

Insert a symbol at the end of line

I want to insert a symbol (\Box) at the end of the line.
21
votes
1answer
6k views

Underfull \hbox in bibliography

I am getting lots of "Underfull \hbox" warnings that point to the *.bbl file. It looks like these messages appear only when URLs are very long, like in the below example: @techreport{nistguidesec, ...