{dimensions} is used for questions addressing issues related with measurements in TeX. This tag can be used with specific tags like {height}, {size}, {units},...

learn more… | top users | synonyms

44
votes
2answers
15k views

No room for a new \dimen

I have this error message: ! No room for a new \dimen . \ch@ck ...\else \errmessage {No room for a new #3} \fi which I can not find a cure for.
26
votes
1answer
641 views

What does different \fontdimen<num> mean

I know that \fontdimen<num> returns some dimensions associated with the current font. What are they?
39
votes
3answers
4k views

Dimensioning of a technical drawing in TikZ

Is there is an easy way to mark dimensions in a technical drawing with TikZ? Is there a library or something? Edit I am using XeLaTeX. Update I chose Martin's answer because it serves me well ...
27
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 ...
4
votes
2answers
527 views

Get a includegraphic to stick in the same place for several beamer slides

I am working with a presentation where I want a sequence of slides with a figure that changes slightly for each slide. I want the figure to to stay in the same place for many slides and I want to ...
13
votes
4answers
608 views

Dividing dimensions to get a count

Is there a way to divide two dimens and get a count? For example, if I have a box that doesn't fit on a single page, and I want to know the number of pages I'd need for the box (i.e., \heightofbox / ...
29
votes
5answers
2k views

Confused with TeX terminology: height, depth, width

The LaTeX reference card states for example \strut box w/ ht and depth of “(”, zero width I came to see text as a two dimensional feature, but I must be missing out on something... (following ...
20
votes
3answers
1k views

Draw dimension of a line as a decoration in TikZ

Is it possible to define in TikZ a new decoration or something like that, such that it is possible to write something like: \draw[dim={text,above}] (A) -- (B); \draw[dim={text,below}] (C) -- (D); ...
9
votes
1answer
540 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} ...
13
votes
1answer
2k views

Determine height and depth of letters relative to the font size

I would like to scale graphical elements (like images, tikz and tikz-timing diagrams) relative to the font size, so that they have the same height as an normal uppercase letter (i.e. X or M; I noticed ...
20
votes
2answers
3k views

What are the differences between \newdimen, \newskip and \newlength?

What are the differences between \newdimen, \newskip, and\newlength? When should I use each of them? Please give me a non-trivial example for each case.
4
votes
2answers
773 views

Is there a command to convert cm to bp?

I want to convert a length in cm (centimeter) to bp (big point). Is there a command to convert cm to bp?
9
votes
2answers
110 views

Do assignments need to be appended by % to remove the trailing white spaces?

The following shows code snippet taken from multido.tex. I noticed assignments are not ended with %. See \dimen@=#1\advance\dimen@#2 in \def\multido@step@d#1#2{% \dimen@=#1\advance\dimen@#2 ...
4
votes
2answers
110 views

How can I easily display the dimensions of the text body?

I want to design an image filling the whole page using Illustrator, with the right dpi and dimensions. To accomplish this, I need to know the precise dimensions of the text body (Numbers 7 and 8 in ...
2
votes
1answer
209 views

How to set the width of the label of a description to the width of a string of text in ConTeXt?

I am using \startdesc{} to create a label and description environment, e.g.: \startdesc{(label)} This is some text in a sentence. \stopdesc \startdesc{(another label)} This is some more text ...
1
vote
1answer
90 views

Svmono and "real page dimensions''

I'm writing a document with the Springer's template svmono. Clearly the margins and more generally the page layout is automatically setted. Despite this, the output file is displayed as an A4 pdf ...
6
votes
1answer
8k views

\colorbox{color}{text} without increasing the height and width of the cell in a table

When using \colorbox{color}{text} to put background color for the text in a table, the text with background color seems to take more space and makes the respective cell higher and wider. Is there a ...
12
votes
2answers
4k views

Dimension too large while plotting with pgfplots

I have the following pgfplots code: \begin{tikzpicture} \begin{axis}[domain=-8:2] \foreach \i in {-10,-9.8,...,10} {\addplot+[smooth] {-x/\i+\i};}% \end{axis} \end{tikzpicture} I need several ...
10
votes
1answer
556 views

What is the right way to set a dimension parameter?

In the TeXbook Knuth set parameters for dimensions mostly as follows: \parskip=3pt Other package authors define such parameters without using the equal sign \parskip30pt Many later authors use ...
2
votes
0answers
80 views

break line at comma inside listings [closed]

I'm trying to do some listings environments, but I'm encountering problems. The ideal output is this: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,⤦ ⤷ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
9
votes
2answers
807 views

What is the plain TeX equivalent of \settowidth?

The \settowidth command, which sets a width equal to the width of some text, is described at Get width of a given text as length and How to set the width of the label of a description to the width of ...
9
votes
4answers
263 views

Depth and height confusion

I create two equations: $x \notin \mathbb{N}$; and $x \in \mathbb{N}$. As it turns out, both have the same depth value: Depth = 0.39098pt Height = 7.5pt Depth = 0.39098pt Height = 6.88889pt ...
4
votes
2answers
770 views

How to rotate a picture in 3 dimensions?

I have a picture like this: I want to use this picture rotated like this (inline with the text as well as separately): Is there a way to achieve this?
3
votes
0answers
68 views

Output a document containing a single vertical-infinite page [duplicate]

Possible Duplicate: Automate Fixed Width Page, length > some minimum length, but only as long as needed Is there a way to output a document containing a SINGLE page (that contains the ...
3
votes
1answer
867 views

including tif/eps/pdf fails due to bounding box/dimensions

when inserting an image into my *.tex-file, I get the error Dimension too large the command was (reduced to the important lines) \begin{figure}[tbp] \includegraphics{graphics/3-1-23} \end{figure} ...
3
votes
1answer
170 views

Force stringification of a length

I'm trying to include a background image of the correct size based on the two variables \IApaperheight and \IApaperwidth. To do this, I'm converting the lengths to a rounded text value and ...
2
votes
0answers
63 views

TikZ Dimension too large Matrix Transform

I'm working on some matrix transformation code, and I keep getting ! Dimension too large. I traced it down to the following simple example. The problem does not occur when 2e-17 is replaced with ...
0
votes
0answers
26 views

How does 'right=of' and 'right of=' work, and what does 'node distance=' do? [duplicate]

I have three variants of the same code and I varied the following three cases: right of= together with node dimension=1.6cm -- looks fine right=of together with node dimension=1.6cm -- nodes too ...
0
votes
1answer
213 views

How should I express my length calculation to minimize rounding errors?

I have an input file as follows. % Test.tex \documentclass{article} \usepackage{pstricks} \psset { linewidth=0.01 } \newcommand\All{0.1} \newcommand\Left{-\All} \newcommand\Right{\All} ...