Questions about TeX's length units.

learn more… | top users | synonyms

5
votes
4answers
152 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 ...
14
votes
3answers
247 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} ...
7
votes
2answers
551 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
652 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 ...
5
votes
2answers
545 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 ...
9
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
250 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: ...
21
votes
1answer
4k 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
1k views

Conversion pt to mm or cm

Is there any way how to convert pt to mm or cm in plain TeX?
13
votes
1answer
353 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?
17
votes
3answers
7k 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
512 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
268 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 ...
12
votes
2answers
808 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 ...
-1
votes
2answers
3k 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 ...
43
votes
8answers
6k 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?
78
votes
3answers
7k 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 ...