Questions about TeX's length units.

learn more… | top users | synonyms

23
votes
2answers
630 views

Why does a TeX point differ from a Desktop Publishing point?

From this answer to Why does PDFLaTeX and XeLaTeX generates 11.955 font size for 12pt documentclass option?, I found out that PDF and TeX have different ideas about the size of the point (pt). A TeX ...
8
votes
1answer
146 views

mathtools with mu = Illegal unit?

I'm trying to change medmuskip while using mathtools: \documentclass{article} \usepackage{mathtools} \setlength{\medmuskip}{0mu} \begin{document} \end{document} But this results in an error: ! ...
1
vote
0answers
39 views

What are the unit of measurement in Tikz? [duplicate]

I want to know what are the units of measurement (of length) in tikz are available. I know that pt, in, mm like units are available , but what more are allowed in tikz? I work sometimes with qss ...
19
votes
1answer
411 views

Is there an `ex` unit equivalent for the capital 'X' in LaTeX

In LaTeX, the ex unit represents the height of a lowercase 'x' in the current font. Is there a length in LaTeX that represents the height of a capital 'X'?
4
votes
2answers
98 views

Set length to the line height of a particular font

How to define new length using : \newlength{...} \setlength{...}{...} and equal to the line height of a particular font (for example \tiny\ttfamily) Note : I want a solution which does not involve ...
5
votes
4answers
164 views

Cutting corners - how to delete 1 pt (0.3515 mm) or so

There is no way to reformulate the sentence. When I for example delete the letter "i" within the sentence, I'm good, everything fits perfectly. So I was thinking about cutting the corners of blank ...
15
votes
3answers
268 views

How to print a length accurately and with user-controlled rounding?

Tried the printlen package, but it seems to not understand what 2.5in means: \documentclass{minimal} \usepackage{printlen} \uselengthunit{in} \begin{document} \newlength{\advertwidth} ...
12
votes
2answers
850 views

How do I convert pt/in/cm/mm to em/ex as they are defined at a given point in the document?

I am using various macros that I have fine-tuned with units like pt and cm. I use those macros normally in certain places (say, in main body text or in footnote text). To properly generalize those ...
21
votes
2answers
1k views

Where do the values of 1em and 1ex come from?

In my answer to “Which measurement units should one use in LaTeX?” I explore the values of 1em and 1ex for different fonts using both TFM fonts and the font mechanisms of XeLaTeX that uses non-TFM ...
6
votes
2answers
649 views

Which unit of measurement for textwidth?

Which unit of measurement should I use to specify \textwidth? I used to specify \textheight in cm but read in some doc that one should always use multiples of \baselineskip. Indeed, the output ...
10
votes
3answers
2k views

Nominal values for \parindent and other paragraph metrics

In memoir, when I run \documentclass{memoir} \begin{document} \showthe\parindent \end{document} I get: 17.62482 pt My questions are : Why that value? This number seems to capture something ...
2
votes
3answers
271 views

How to add a unit to a command argument?

Currently I set up a box of given length #1 and width #2 like this: \newcommand{\mybox}[2]{ This is a box of #1 by #2 centimeters: \framebox{\hbox to #1cm {\vbox to #2cm}} } % Usage: ...
28
votes
1answer
5k views

What are the possible dimensions / sizes / units LaTeX understands?

I know there are different ways of expressing sizes or dimensions in LaTeX such as points (pt), inches (in) and ex. As some commands, such as \hspace understand all of them, I would like to have a ...
14
votes
4answers
2k views

Conversion pt to mm or cm

Is there any way how to convert pt to mm or cm in plain TeX?
14
votes
1answer
405 views

Measuring the distance from text to the top of the page

How can I obtain a measurement from the baseline of any line of text in a document to top of the body of text on a page?
19
votes
3answers
9k views

Setting a document in MS Word-12pt (12bp)

Warning If you're looking for advice how to make your document look like it's been written in Word, this is most likely not the question you're looking for. This question is mostly of theoretical ...
9
votes
1answer
562 views

How does PDF or PDF Viewer define a rounding rule for stroke thickness?

I defined a sequence of line segments of different thickness each as follows. \documentclass{article} \usepackage{multido} \parindent=0sp \begin{document} ...
2
votes
2answers
291 views

What unit should we use when working with (La)TeX and PSTricks to minimize conversion error?

I want to minimize conversion error when working with PSTricks and (La)TeX. The conversion error really affects the accuracy of bounding box, the thickness of LaTeX's \fbox and the thickness of ...
13
votes
2answers
986 views

Globally redefining 1 pt to 1/72 in (PostScript point) and other similar changes

Introduction TeX point (1 pt in TeX) equals 1/72.27 in (= 2540/7227 mm ≈ 0.35145980351 mm). Quoting part of Traditional American point system section from Wikipedia's Point (typography) entry: In ...
-2
votes
2answers
4k views

Latex commands for a specific page format [closed]

I am writing a report for which my University has given the following guidelines (Clearly, it was intended for use with Microsoft Windows). Project reports should be typed only on one side of the ...
47
votes
8answers
9k views

What are the various units (ex, em, in, pt, bp, dd, pc) expressed in mm?

How can one determine the length of the different units (measured 1ex, 1em, 1in, 1pt, 1bp, 1dd, 1pc) in mm?
85
votes
3answers
9k 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 ...