6
votes
1answer
174 views

Macro to calculate \baselineskip for given font

I want to write a macro that returns the \baselineskip multiplied with a fixed value for a given font spec. That seems to be harder than I would imagine... after some fiddling I came up with this: ...
3
votes
2answers
178 views

Changing line spacing within a new command

I have a command written as follows: \documentclass[12pt]{book} \usepackage{setspace} \newcommand{\statshyp}[2]{\noindent \hangindent=1cm \hangafter=0 \begin{singlespace*} \textbf{#1}: \emph{#2} ...
11
votes
1answer
370 views

Defining variants of \small and \large that use \normalsize's line spacing

As a partial workaround for grid typesetting, I'd like to define variants of \small and \large that behave like their standard counterparts except that they use the line spacing of \normalsize. I know ...
7
votes
3answers
3k views

How to redefine the caption command with optional arguments

I'm writing a thesis that has double spacing on by default throughout the document. However, captions on figures need to be singlepaced. I can do that like this \normalsize \singlespace \caption{ ...
2
votes
1answer
528 views

Context-sensitive newline macro

I'd like to write a new command putOnNewLine such that \putOnNewLine{ABC} puts ABC on a new line, with exactly one line's vertical space separating it from what has gone before. It must also ...