Linked Questions
23 questions linked to/from Function and usage of \leavevmode
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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}
\...
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\...
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]{...
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 ...
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 ...
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 ...
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 ...
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 ...