Linked Questions

170 votes
3 answers
54k views

Which measurement units should one use in LaTeX?

There are various measurement units that one can use (such as pt, mm, in, em, ex etc.) for specifying lengths and heights. For font-based units (em and ex) the actual spacing will vary slightly ...
Steve's user avatar
  • 2,519
16 votes
4 answers
2k views

How to position letters *exactly* above each other?

I'm trying to stack bold capital letters, like in the example below. There should be no white space between letters and letters also should not overlap. Some letters should be stretched tall or short. ...
u17's user avatar
  • 5,006
19 votes
3 answers
7k views

The perfect pdfcrop

I need a "perfect" pdfcrop, one that crops exactly to the edge of the figure or text for alignment issues as a graphic in other programs. I'm aware of the standalone package, and have gone through ...
Hooked's user avatar
  • 4,056
19 votes
2 answers
17k views

Squiggly arrows in tikz

Is it possible to get a path in tikz that looks like \rightsquigarrow?
user avatar
3 votes
2 answers
2k views

Title spacing and margins in moderncv

I just noted something weird with my resume written in moderncv (obviously): the \firstname{} is typeset slightly outside the page margins. This is most visible on the left margin, but upon close zoom ...
Holene's user avatar
  • 6,950
4 votes
1 answer
1k views

canonical units for defining white space in a beamer presentation?

When using \hspace and \vspace, I often run into a decision of which units to use. In many examples I see the use of ex, cm, mm, pt, in, and so on. I also use .1\textwidth or .1\textheight. I wonder ...
hatmatrix's user avatar
  • 2,913
2 votes
1 answer
2k views

Symbol not in line with text

I'm using this solution of this question for printing a warning sign. But the text and the Symbol are vertically not correct algigned aligned in my special case. I want to have the same lower ...
user69453's user avatar
  • 956
5 votes
2 answers
194 views

Bicolor text: height of expressions

I'd like to put bicolored text. This is what I did \newlength\myl \newlength\myh \newcommand{\bicolor}[1]{ \setlength{\myl}{0pt-\widthof{#1}}% \setlength{\myh}{\heightof{#1}}% \raisebox{0.5\myh}{\...
Enredanrestos's user avatar
2 votes
1 answer
656 views

\settoheight is slightly shorter than actual height

I am trying to set a length to the height of a heading. I have the following snippet. % heading height \settoheight{\headingh}{\Huge{\textbf{\heading}}} \centering\Huge\textbf{\heading}\rule{0.1mm}{\...
user110971's user avatar
4 votes
2 answers
459 views

Decoration markings don't extend bounding box

How come decoration markings don't extend a TikZ picture's bounding box and how can I change this? Consider this example where the arrow markings are partially cropped. \documentclass[tikz]{...
Janosh's user avatar
  • 4,090
1 vote
2 answers
516 views

determine current font height

There are many answers here which explain how to obtain the size of the current font (\f@size) and others which explain how to obtain the height of a given character (\settoheight) in the current font....
A. Donda's user avatar
  • 674
1 vote
2 answers
575 views

How to define the height of text in cm

I know the question I am going to ask is similar to others posted here. However, I still can not find the right answer. I have checked: How to export a math formula with a beautiful, high resolution ...
Choguerrero's user avatar
7 votes
1 answer
336 views

TikZ: Text matching the steps of a grid and thus the height of a rectangle in TikZ?

Let's assume I have a TikZ drawing: there are two rectangles of different heights next to each rectangle there is some text to be added (e.g. A and Z) the upper text has to be scalable in the way ...
phil-elkabat's user avatar
  • 2,135
4 votes
1 answer
120 views

TikZ style to set scale relative to letter height using \settoheight

I'd like to have a style to make my drawings exactly as tall as a capital letter, in order to draw things in a line of text, even if the drawing command is used in a block of text with a different ...
Fritz's user avatar
  • 6,323
2 votes
1 answer
86 views

Left vertical alignment of characters

In the following MCE, the characters don't start at the same (left) vertical line (look at the horizontal rule of "T"). \documentclass{article} \usepackage[showframe]{geometry} \ifpdftex \...
Denis Bitouzé's user avatar

15 30 50 per page