Linked Questions

177
votes
20answers
144k views

Why should I use LaTeX?

I have heard a lot about LaTeX, but never used it myself. It is mainly used for typesetting professional research papers. But I am not writing research papers. Is LaTeX for me? If yes, why should I ...
131
votes
4answers
553k views

How to add an empty line between paragraphs?

I have two sections which I'd like to separate by an empty line. Every time I press Enter, LyX removes that empty line between paragraphs. How do I prevent this?
28
votes
2answers
2k views

What is a primitive, a macro, and how do they compare?

The title pretty much says it all. If it helps, I found myself asking this question when reading this post about \par vs. \\.
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
700 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 ...
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 ...
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\...
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—...
6
votes
2answers
3k views

Using \\ to Start New Line [duplicate]

When I was initially learning to use LaTeX, the professor who taught me the basics instructed me to use \\ as a way to end a previous line and start a new line of text. However, many of the veteran ...
5
votes
3answers
130 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 ......
4
votes
1answer
211 views

LaTeX: Why \\ causes no paragraph break for fully justified text, but does so for \raggedright, \raggedleft, and \centering?

Note: This question is not about getting a desired visual effect in pdf, it is concerned with LaTeX/TeX internal algorithm. In the following code, presence of \\ sometimes produces a new internal tex-...
4
votes
2answers
138 views

Help with a \newcommand not working with autonum

I am writing my thesis. To write math formulas I created the command \eq as follows. \newcommand{\eq}[1]{ \begin{equation} \begin{split} #1 \end{split} \end{equation}} However, now I want to ...
4
votes
1answer
8k views

Should I use \\ to end a line or a paragraph? [duplicate]

I am somewhat confused as to how to approach the following issue. In my thesis is have a lot of text and want to group this is using line breaks and paragraphs. Up to now I have been using \\ to ...
4
votes
2answers
57 views

Reducing the width of children in a tree

I wish to reduce the width between the children in a tree. Look at the image given below: The right child of F is getting hidden due to left child negation(r).This is how my latex file looks like as ...

15 30 50 per page
1
2 3 4 5