Linked Questions

95 votes
3 answers
160k views

Formatting section titles

Forgive the stupid simplicity of this question, and please feel free to refer me to an older answer. I'm not quite familiar enough with LaTeX terminology to have found it. All I want to do is set a ...
Brian Hamilton's user avatar
51 votes
7 answers
28k views

How to colour multiple paragraphs?

I have a set of commands in my document's preamble that look like this: \newcommand{\nathaniel}[1]{\textcolor{blue}{[#1]}} \newcommand{\anotherAuthor}[1]{\textcolor{darkgreen}{[#1]}} They are to ...
N. Virgo's user avatar
  • 4,289
13 votes
2 answers
4k views

How to leave horizontal mode?

There is this question: How do I leave horizontal mode? - but there is no answer no how to leave horizontal mode. I know there is a command \leavevmode (Function and usage of \leavevmode); the post ...
sdaau's user avatar
  • 17.1k
14 votes
2 answers
2k views

How can I ensure that an environment always starts on a new line? (a new paragraph / horizontal box)?

Sometimes when creating environments, you want to ensure that they always start new paragraph when two environments appear immediately after one another eat up spaces generally idiot-proof (which, ...
Jonathan Komar's user avatar
24 votes
1 answer
5k views

Align marginpar with beginning of paragraph

Is there a way to align a marginpar with the beginning of a paragraph, without cluttering the text of the paragraph? If I do the following, the marginpar lines up with the last line of the first ...
B3ret's user avatar
  • 733
8 votes
3 answers
4k views

\phantom inside tabularx

I tried to improve the alignment in the following table using a \hphantom: \documentclass{article} \usepackage{tabularx} \begin{document} \begin{tabularx}{\linewidth}{p{2.8cm} X} 1/00\,--\,2/00 ...
mafp's user avatar
  • 19.1k
13 votes
2 answers
3k views

Vertically misaligned margin note

I'm trying to use a \marginnote along with a specified \parskip. However, I'm having an alignment issue. With the code in the group with the \parskip the margin note is misaligned with the text on the ...
s0rce's user avatar
  • 1,170
12 votes
1 answer
3k views

Do I need \leavevmode for centering figures?

I have an image I'd like horizontally centered on the page. Currently, I'm using the following code (which does work) under pdflatex: \usepackage{float} ... \begin{figure}[H] \begin{center} \...
Electrons_Ahoy's user avatar
9 votes
1 answer
3k views

Strange behaviour of titlesec, with colored titlerule

With the following MWE, i get the Section title underlined in black : \documentclass[12pt]{article} \usepackage[explicit]{titlesec} \usepackage[dvipsnames]{xcolor} \titleformat{\section}% {\large\...
Loic Rosnay's user avatar
  • 8,157
3 votes
3 answers
906 views

Scale text (\scalebox) in Plain TeX/XeTeX to make it narrower

I've been looking up stuff and searching through the Internet for a few hours now. Basically, I need to do something like this, which I can do in LaTeX with the graphicx package: \scalebox{.7}[1.0]{...
Ainar-G's user avatar
  • 237
7 votes
1 answer
2k views

How to best set chapter title color in the memoir class's Hansen style?

I am tinkering with the Hansen chapter style for the memoir class, as reviewed and listed in texblog. The Hansen style is unfortunately not discussed in the memoir class documentation. I changed it ...
Andreas's user avatar
  • 1,274
2 votes
2 answers
5k views

Adding indentation after setting \setlength\parindent{0pt}'

I am looking for a way to add an indentation after setting \parindent to 0. I tried a suitable amount of search, but none really seemed to meet my needs. I tried to change the command \indent by ...
James C's user avatar
  • 121
6 votes
1 answer
2k views

Wrapfigure apparently creating dummy space on a following page

The example below is a newsletter with two news items. The first item has a wrapfigure to include a graphic. The second does not But the resulting PDF (made with PDFLaTeX) has a blank area close to ...
DavidT's user avatar
  • 707
9 votes
1 answer
571 views

Use case for pdfTeX's \quitvmode

While reading one of Lev's answers, I encountered a pdfTeX primitive \quitvmode that I have never noticed before. The pdfTeX manual states that this causes TeX to leave (internal) vertical mode and ...
TH.'s user avatar
  • 62.6k
3 votes
1 answer
2k views

How to color the font of a single row in a table, while using a paragraph column?

I tried to color the text of the headers of my tables. Sadly it doesn't work properly as soon as you use it with paragraph columns. Below is my MWE presented. The header in the first table is as I ...
Arno Nym's user avatar

15 30 50 per page