2
votes
1answer
280 views

newlfm package missing documented \greettoskipbefore command

While writing a letter using newlfm, I tried using the \greettoskipbefore command from page 8 of the manual and I received an "undefined control sequence" error. Looking at the source, it looks like ...
3
votes
1answer
78 views

How to get the available space for an image

I want to design a figure (in a external graphics editor, e.g, Illustrator) to exactly fit (without scaling!) the whole available space on an empty page of my document minus the caption of the figure. ...
2
votes
1answer
252 views

Local scoping of textfloatsep

I was wondering if you can set the scope of \textfloatsep locally. I have found an old thread on Google groups, which points out that you couldn't. Has that changed by now? So what I want to do is ...
6
votes
3answers
95 views

A version of \smash that interpolates between the true height/depth and the text-height/depth of the current line

I have a paragraph of text that includes a "deep" math symbol, one that dips below the ordinary bottom of the text a little. Originally I had nothing below that symbol; it was near the end of the ...
5
votes
2answers
269 views

Measuring line length, using \hfill to justify text, wrapping and right justifying if space too small

I am a lecturer and have an issue when compiling test and exam questions. The questions will be in an enumerate environment and look something like this, where the marks shown in brackets are right ...
25
votes
1answer
387 views

Using elastic lengths — when do they work?

I was wondering why elastic lengths like \fill seem to work only under certain conditions. For instance if I write A \hspace{\fill} B I get A left aligned, B right aligned as wanted. If however ...
1
vote
1answer
386 views

How can one produce spaces of arbitrary (fixed or relative) width that (do or don't) linebreak?

Adobe InDesign lets me insert a wide variety of spaces: over half a dozen spaces that allow for a line break (let's assume for the purpose of this question that they disappear in case of a line ...
9
votes
2answers
260 views

Compute remaining horizontal space in align environment

I use align* often and sometimes it is preferable to add text to the right hand side of an equation instead of using \intertext, or \shortintertext, which tends to interrupt the math flow. This is ...
10
votes
1answer
2k views

How do I set \itemsep to rubber length?

I know that I can set \itemsep to any length like this, \setlength{\itemsep}{0pt} But if I want to set \itemsep to a rubber length (e.g. \bigskip), how do I do this? \setlength{\itemsep}{\bigskip} ...
7
votes
1answer
206 views

\parskip stretches more than expected

I wonder if I get something wrong with TeX’s glue concept. If define a length to be 2pt plus 1pt minus 1pt I expect that the length should be exactly 2pt where possible an if not it should be between ...
21
votes
2answers
24k views

What is the difference between \hspace*{\fill} and \hfill?

In the memoir manual on page 183 ,this example is given: \begin{figure} \centering \hspace*{\fill} {ILLUSTRATION 1} \hfill {ILLUSTRATION 2} \hspace*{\fill} \caption{Example float with two ...
6
votes
2answers
936 views

medskipamount, default value in article class

What is the default value of medskipamount in the article class? I have not been able to locate this information. Is there some database where default values of various parameters can be accessed?
18
votes
2answers
2k views

How to preserve the same parskip in minipage

I have following structure: \begin{document} Paragraph1. Paragraph2. \begin{minipage} Some paragraph1. Some paragraph2. \end{minipage} \end{document} How can I make the same spacing between ...
83
votes
2answers
55k views

Lengths and when to use them

There are many lengths in LaTeX. For instance, \enskip, \enspace, \quad, \parskip, \smallskip, ... Some of them are mostly used for vertical spacing, some others are mostly used for horizontal ...
2
votes
2answers
1k views

Length parameter for vertical skip space in a math environment?

I learned here that I can use \\[<len>] to explicitly set the vertical skip space between lines, e.g., <len> set to 3ex. I'd like to set <len> to, say, 2-times the normal length in ...
2
votes
3answers
375 views

Make a length negative

I was wondering if there is a way to have a \negate command which makes lengths negative. So you could do things like: \newlength{\negativeabovecaptionskip} ...
3
votes
1answer
2k views

A new paragraph followed by a big skip

Here is the code I am using to place a heading with a line above and below the text, from this post. \newcommand{\rheading}[1] { \par \bigskip \hrule height 1pt \kern 5pt \hbox to ...
9
votes
2answers
720 views

Does {1em} mean {1em plus0pt minus0pt}?

Is plus0pt and minus0pt automatically added if I write, e.g., \setlength{\abovedisplayskip}{1em} \setlength{\jot}{0pt} \setlength{\parsep}{0pt} ...