Linked Questions

9
votes
2answers
3k views

When does LaTex add indentation at the start of a paragraph?

Sometimes a paragraph starts with an indentation (which could be turned off with \noindent) but sometimes it does not. For example, I have currently an article where the section content is not ...
13
votes
2answers
4k views

Downsides of using \par instead of two new lines

Coming from an HTML background using <p> to mark paragraphs I consequently use \par to mark paragraphs instead of using two consecutive blank lines. This feels more semantic (of course I realize ...
11
votes
4answers
703 views

Why is the use of a doubleslash as a newline indicator outside of tabular bad

I recall seeing some comments that using a \\ to start a new line is a really bad idea outside of tabular type of environments. What are the reasons for this?
10
votes
2answers
306 views

Looking for an (old?) problem with \\

(No, I'm not looking for a solution. I'm really looking for a problem.) I remember that, a long time ago, I encountered a situation where the \\ (newline) command would insert a blank line if the ...
6
votes
2answers
3k views

What are the differences between \par\vspace{2cm}\noindent and \\[2cm]?

I am designing a titlepage for my report and I am a bit confused in deciding to use either \par\vspace{2cm}\noindent or \\[2cm] (for example). Shortly speaking, what are the differences between \par\...
4
votes
2answers
18k views

How to increase the space between text and a table?

Here is my code: Volume of the hall V = 1500 $m^3$ \\ \noindent \begin{tabular}{| c | c | c |} \hline \textit{Surface} & \textit{Area ($m^2)$} & \textit{Coefficient of absorption}\\ \hline ...
2
votes
2answers
3k views

How to reduce the blank space between paragraphs

Whenever I need to start a new paragraph I do the following \documentclass[11pt,a4paper]{report} \usepackage{amsmath,amsfonts,amssymb,amsthm,blindtext,epsfig,epstopdf,titling,url,array,xspace} \...
2
votes
1answer
1k views

Is \\[<len>] as bad as \\ for new lines?

I have heard on multiple occasions that one should rather not use \\ to force new lines, unless one uses it in environments like tabular or align, and it is advised to use \par instead. How about ...
3
votes
1answer
6k views

Error: \item is invalid in math mode

I would like to put a vertical bar in my regex expression but I keep getting an error when I put in \mid. Can you help? \item \textbf{Give a regular expression for the language accepted by the ...
3
votes
2answers
846 views

How to remove space after the description label and add after the whole description?

I have the following tex source: Lorem ipsum dolor Lorem ipsum dolorLorem ipsum dolorLorem ipsum dolorLorem ipsum dolorLorem ipsum dolorLorem ipsum dolorLorem ipsum dolorLorem ipsum dolorLorem ...
3
votes
1answer
8k views

Underfull hbox error using \newline and \hfill\break

I am trying to remove warnings/errors from the document I am writing that includes underfull (and overfull) \hboxs from the code below. Why does \newline and \hfill\break produce this warning? Aren't ...
6
votes
1answer
1k views

Fine-tune styles and fonts

I'm using the Fourier package to set the fonts in my document, but I'm not very happy with the settings it employs: As I later found out, the sans-serif font above is the Computer Modern Sans—...
1
vote
2answers
1k views

Multiple subtitle

I am new to latex. This is my document. And my code is as follows: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \title{Symplectic Geometry in Classical Mechanics} \author{} \...
2
votes
1answer
3k views

How to align figures vertically within a minipage?

I'm having trouble to define vertical spacing within a minipage, as \vspace seems to behave in a special way within it. For instance, in the example below I'd like to set the vertical spacing between ...
5
votes
3answers
132 views

Evaluate expression/macro at the end

Suppose you have a document where you want to mention how many sections there are in the beginning. For example, something like this: \documentclass{article} \begin{document} Abstract\\There are ......

15 30 50 per page