884 views

### Is it true that when using \newline to stay in horizontal mode, the information will be on the same page?

I read here that using \newline keeps horizontal mode engaged. Is it true, then, that when I opt for \newline in for example \noindent\rule{\textwidth}{\heavyrulewidth}\newline Here is some text. ...
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-...
1k views

### Vertically align two separate TikZ figures below each other using the subfig package

The following minimal working example does not vertically align two rectangles drawn by TikZ. The result can be found here. Somehow the second rectangle seems bolded, but that is not the case when I ...
1k views

### Referencing formula before defining it

I'm writing a scientific article and I would like to reference a formula before it appears in the text. In principle it should work, the problem is that I want to use the hyperref package, so that I ...
515 views

### Package clash between amsthm and lineno

I found a clash between packages amsthm and lineno. Below is some sample code. Does anyone know what I should do to avoid this ? \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{...
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{split} #1 \end{split}$$} However, now I want to ...
792 views

### Why am I getting underfull and overfull errors?

I am trying to compile the following code: \documentclass{article} \usepackage{graphicx,algpseudocode,algorithm,multirow,hyperref,subfig,cancel,natbib,epstopdf,xspace} \begin{document} \clubpenalty=...
897 views

### KOMA-Script - paragraph new line without space and parskip

I am currently writing my master thesis with KOMA-Class srcreprt and I am a little bit weird about blank lines in paragraphs, parskips and sectioning vertical space. As I have learned usage of \\ as ...
221 views

### How to increase linestretch in inline-enumeration with enumitem?

I would like to increase the linespread within a group. Namely, the linespread within an inline-enumeration. For this purpose, I have the following code. \documentclass[]{article} \parindent 0cm \...
421 views

### Paragraph not indenting properly

Paragraph not indenting properly. Here is the code I'm using \documentclass[a4paper,10pt]{article} %----------------------------------------------------------- \usepackage{geometry} \usepackage{url}...
662 views

### Have paragraphs with spacing between them inside “flushleft”

In my LaTeX document, I'd like to have two paragraphs which are separated by some smaller vertical spacing. When I use the following code, this works just as intended, automatically: \documentclass[...
987 views

### longtable vertical space

If I make longtable, how can I remove the spacing between preceding text and it? Tabular doesn't have this spacing. This example should make clear to you what I'm asking: \documentclass[a4paper]{...
549 views

### How to use amsmath environment \Bmatrix inside a glossary?

I´d like to use the following environment from amsmath-package for a glossary-entry but latex fails (TexStudio with pdflatex): \begin{Bmatrix}...\end{Bmatrix} Here is my MWE: \documentclass{scrbook}...