{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

6
votes
1answer
38 views

Why is a varwidth incorrectly vertically centered by \raisebox{-0.5\height}?

I was creating a pseudocode/JavaScript comparison table, and wanted to typeset algorithms written with the algorithm2e package vertically centered in table cells. Out-of-the box, algorithm2e can't do ...
3
votes
1answer
37 views

Thickness of math arrows

I'm making a poster with a0poster and pxfonts package for math fonts. I'm using tikz-cd for diagrams and I'm adjusting the line width for arrows and the arrow tips with \tikzcdset{arrows={line ...
3
votes
0answers
77 views

How to get box dimensions within lualatex

I'm new to lualatex, which looks phenomenal. I wonder what the easiest way is to access the dimensions of a box from within lualatex. I intend to use it in more complicated situations than this (as ...
2
votes
1answer
58 views

Thickness and alignment of curly braces for block matrix dimensions

I need to create block matrices with the dimensions in the right. The blocks of the matrices are of different dimensions. Here is a MWE: \documentclass{article} \usepackage{easybmat} ...
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 ...
2
votes
1answer
44 views

Tikzcd graph gives me: Typesetting problem in main.tex Too wide error

I made a graph which looks good in the pdf. But now latex keeps telling me it's too wide and I have no idea how to compress this thing. \[ \begin{tikzcd} ...
3
votes
2answers
60 views

\newdimen in LaTeX is 0pt after assignment, why?

In the below example, I print out the two dimens in the subfigure captions. Surprisingly (to me), the first one prints correctly but the second one is somehow zero pts. Here is the MWE: ...
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 ...
4
votes
1answer
116 views

How to use margins in calculations?

I'd like to have a rule that has for example the width of \paperwidth-\leftmargin-\rightmargin. I tried to use \dimexpr, but apparently I do something wrong, because it does not work. ...
2
votes
2answers
50 views

Dimensional calculations use newdimen - LaTeX reads over parts of my equation

I am trying to do a dimensional calculation, but LaTeX reads over parts of my equation. How do I correctly calculate BLLa here? Sorry for the not that minimum example. \documentclass{article} ...
3
votes
1answer
53 views

tcolorbox doesn't print offset correctly? [closed]

Edit: It turned out to be my PDF viewer. So I made this little tcolorbox and the distance between each subsequent pair of rules does not match for all rules: The code I have is this: ...
5
votes
3answers
117 views

How to measure the minimum width or height of several boxes?

I know we can get the maximum width or height of several boxes via: \setbox0=\vbox{\hbox{a}\hbox{b}\hbox{c}} The maximum width is \the\wd0 \setbox0=\hbox{\hbox{a}\hbox{b}\hbox{c}} The maximum height ...
8
votes
1answer
165 views

This elliptical-orbit diagram compiled fine with TikZ 2.10 but fails with TikZ 3.0. Why?

I borrowed some code on Kepler's 2nd Law from the linked post here on TeX answered by Tosco. I haven't compiled the document it is in awhile but needed today. When I did, I was told dimension too ...
1
vote
1answer
88 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 ...
5
votes
2answers
180 views

Error: “Dimension too large…” when plotting EXPONENTIALS with TikZ

Despite having read answers to 4-5 relate questions, I still can't get why my code does not compile. Here it is: \documentclass[11pt,twoside]{book} \usepackage[paperheight=24cm, paperwidth=35cm, ...
3
votes
1answer
160 views

Dimension too large in pgf plot

I am trying to create a pgf plot which includes (among others) a constant function f(x)=1. My x-axis should be restricted to some range (see below), and there is also a restriction on the y-axis. This ...
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 ...
9
votes
1answer
101 views

What is the cleanest way to adjust the dimensions (height, depth, width to the left and right) of a symbol?

Every once in a while the nominal (i.e. declared) dimensions of a symbol are not identical to the actual ones. This can be intentional or not, but sometimes it is inconvenient. The dimensions of ...
4
votes
1answer
488 views

Usage of the \dimexpr command

I have MiKTeX 2.3 and its version of e-TeX does not support \dimexpr command. I do not want to update this MiKTeX now and wonder, is it possible to define the \dimexpr command, probably with use of ...
2
votes
0answers
62 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 ...
2
votes
0answers
79 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, ...
3
votes
1answer
486 views

'Dimension too large' error in animate package

I am using the animate package to include a series of images into a PDF (like a small movie), which usually works fine, however, now I am running into an ! Dimension too large. <recently read> ...
5
votes
2answers
54 views

How to use the width of some text in \dim_compare:nTF directly?

Is it possible to use the width of some text directly inside of a <dimension expression>. I found this way using a temporary box but it seems not very elegant … \documentclass{article} ...
9
votes
1answer
539 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} ...
9
votes
4answers
261 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 ...
13
votes
3answers
633 views

In a tikzpicture, how can I “shift” by a multiple of the current x-vector (say)?

Suppose that I have a tikzpicture begun like this: \begin{tikzpicture}[x = 20mm, y = 10mm] Now let us suppose that I want to put a subpart of the picture inside a "scope" environment and I want all ...
2
votes
1answer
228 views

pgfplots “dimension too large” with 3D graphic from external source

I want to include a 3D plot that I created in R. The plot is prepared according to the example given for Matlab in the pgfplots manual. I cropped the whitespace around the saved png, added ...
4
votes
0answers
454 views

bigfoot - Dimension too large (I can't work with sizes bigger than about 19 feet.)

My MWE is below. I can produce the following output in nonstopmode... ... but I see these errors in the log: ! Dimension too large. \FN@normaloutput ...\tw@ \fi \fi \ifdim \FN@vsize ...
15
votes
2answers
1k views

Golden ratio typography in TeX

Chris Pearson makes a number of claims in his article Secret Symphony: The Ultimate Guide to Readable Web Typography, which I find fascinating, and I would like to know: are the formulas he proposes ...
6
votes
0answers
131 views

How to visualize dimensions of frame components in beamer?

Is there a package to visualize dimension of all frame components (head/footline, sidebars, navigation bar etc) in beamer? I tried to search for something similar to layout package, but did not ...
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
1answer
151 views

Adding constant to function (vspace) argument?

How can I get Latex to add a constant to a value as part of a \vspace argument? Here's my minimal example: \documentclass{article} \usepackage{calc} \begin{document} ab %\vspace{20mm+10mm} ...
5
votes
2answers
188 views

Why does pgf not understand relative dimensions (ex, em, sp)?

The below MWE draws a number of rectangles using low-level pgf commands, each specified with a different unit that Latex understands. However, pgf doesn't seem to be able to determine the relative ...
5
votes
1answer
75 views

Access paper dimensions

How can I access the paper dimension that are in use when compiling a document? In other words, I am looking for a command that returns the width and height of the paper used (so that the returned ...
7
votes
1answer
789 views

How can I determine the height of a minipage?

If I have a minipage \begin{minipage}{5cm} content \end{minipage} How can I determine its height and save this value as a length?
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 ...
5
votes
2answers
416 views

Table with several dimensions

I have several dimensions to put in a table in LaTeX, these are actually results of an experiment. I am not sure what is the best way to do it in LaTeX. Here is a snapshot of one of the possibilities: ...
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); ...
17
votes
2answers
321 views

Defining a dimension with or without @

If I am writing a TeX package (as one can find such on CTAN), there are following approaches to define a new dimension length that should be changeable by a user of that package. Approach A: Define ...
25
votes
3answers
774 views

@tempdima, reserved@a, @tempcnta, what else?

I'm aware that some "temporary" LaTeX dimensions etc. exist. I would, however, like to know all of them. I know \reserved@a (macro), \@tempdima (dimension) and \@tempcnta (counter).
26
votes
1answer
636 views

What does different \fontdimen<num> mean

I know that \fontdimen<num> returns some dimensions associated with the current font. What are they?
19
votes
1answer
1k views

References for \dimexpr \numexpr

I'm not really sure whether this is the right place to ask this question, but here I go.... Over the holiday I've been taking time to read through a lot of the Q&A here. I've been running across ...
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 ...
6
votes
1answer
7k 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 ...
13
votes
4answers
596 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 / ...
4
votes
2answers
522 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 ...
6
votes
2answers
498 views

Measure 'real' height of lines/rows (as multiples of \baselineskip)

I am trying to measure the height of a few lines while the lines are set. I thought the 'real' height of a line is the baselineskip, e.g. 14.5pt for a 12p document. However, when I set the text in ...
5
votes
1answer
262 views

Measuring TikZ leaves and using measurements to set sibling distance?

TL;DR Summary: Is there some way to measure the width of a leaf node and pass this measurement back up the tree to be used in setting sibling distance? (One might want to do a similar thing for ...
5
votes
1answer
151 views

Retrieve em-width from another font

I’m trying to align verbatim segments with their outputs. Consider this MWE: \documentclass{article} \usepackage{lmodern} \usepackage{fancyvrb} ...
11
votes
2answers
247 views

Other than syntax what is the difference between \dimen0= and \setlength{}{}?

I have been browsing around for a while trying to find an answer to the above question, and I have found some similar questions along with there answers, so I already have a vague idea how to answer ...