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

learn more… | top users | synonyms

3
votes
1answer
26 views

Looking to distinguish between a scale factor and a dimension

I'd like to be able to define a macro, say, \def\testit{<something>} and then test to see what <something> is. If <something> is a dimension (e.g, 4in) then I can do \resizebox{4in}...
2
votes
2answers
60 views

What is the difference between ‘truemm’ and ‘mm’ etc.? [duplicate]

Sometimes I see the use of truemm (or true mm) instead of mm (same for other units). So I’m wondering what is the difference between these? Or: Why are some units false?
2
votes
2answers
94 views

List of Unused \newbox, \newcount, \newdimen, \newskip, etc

Want a appropriate command to list out unused Box, Counter, Dimension, Skip from the CLS/STY file.
5
votes
2answers
79 views

How to pass a variable to the minimum size key in tikz

I want to pass a variable to the minimum size key of a node, but it doesn't work. Here is what I tried: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \...
1
vote
0answers
29 views

chapter title layout

I am trying to define the first page of the chapter. At the moment I have been able to do this: but I can't increase the dimension of the name of the chapter and I would like to put a blue line ...
0
votes
0answers
47 views

latex Dimension too large

\begin{figure}[H] \begin{tikzpicture}[scale=2] \begin{axis}[ title={Supply of industrial robots}, xlabel={Years}, ylabel={.000 of units}, xmin=2000, xmax=2018, ymin=0, ymax=400, ...
3
votes
1answer
64 views

How to make a figure spread over twocolumns?

I have the following figure: \documentclass[conference]{IEEEtran} \usepackage[brazilian]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{scalefnt} \usepackage{graphicx} \...
3
votes
1answer
89 views

Fonts design parameters (descendent, cap height, etc): are they available in some register?

I am trying to sample the available fonts in "detail", and I wrote a small LaTeX document to have a visual comparison of fonts, with the main characteristics highlighted. I have a couple of problems ...
1
vote
1answer
47 views

Decrease page margins

I have found a very neat template for a cv. The problem is that I cannot regulate the dimension of the single column, resulting in way too much space wasted on the sides of the page. I would love to ...
3
votes
1answer
39 views

Why do I need \fp_to_dim:n in my dimension expression?

I’m trying to use an expel floating point variable (\l_@@_last_machine_row_x_fp) inside a calculation of a dimension (\l_@@_bar_width_dim). In the following code \BarA works (with a solution from this ...
2
votes
1answer
55 views

How can I minimise errors arising from TikZ pictures involving too large dimensions?

What general strategies are available for minimising the occurrence of errors concerning too large dimensions in PGF/TikZ? The following is an example but I'm less interested in a fix for this ...
0
votes
0answers
22 views

Getting “Dimension is too large error”, and when I resize the images it prints a black block [duplicate]

I recently reinstalled my setup with the latest version of miktex and Texnic Center, and a set of figures I had stopped working. This is the code I'm using: \begin{figure*}[ht!] \centering \subfloat[...
7
votes
1answer
119 views

Listing creation fails with “dimension too large” given a large block of characters

When creating a code listing, we recently ran into a strange error from the listings package. Specifically, listings bails out on a large block of text. Here's a minimal working example: \...
2
votes
0answers
46 views

Box height in tabular

I have this macro \code that produces a box. And I want to create a tabular "environment" that acts like enumerate except it puts the items into a grid. \documentclass{article} \usepackage{tabularx} ...
2
votes
2answers
100 views

Is it possible to store the height and width of an imported document in variables and adjust the page to fit it (reverse-engineering layouts)?

For example, let's say that I use the pdfpages package and import a PDF. Is there any way (without using an external scripting language like Python) to access the dimensions of the PDF? Can I pass ...
4
votes
2answers
105 views

How to typeout dimensions in mm?

\typeout{***This vertical space will be \the\textheight} prints ***This vertical space will be 153.64488pt Is it possible to print \the\textheight in mm?
2
votes
1answer
50 views

6x9 document class?

How do I explicitly define my documentclass to be 6x9 (i.e., typical book style)? \documentclass{article} %Russian-specific packages %-------------------------------------- \usepackage[T2A]{fontenc} ...
1
vote
1answer
60 views

! Dimension too large. in x-y plot

I am trying to do a simple x-y plot. However, I have no idea what I am doing, which result in the duplicates to be no helpful for me. I was based on this tutorial. Can you help please? \documentclass{...
9
votes
3answers
507 views

Third grade spiral in TikZ - dimension too large

I'm trying to draw a smooth third grade spiral (r^3 = a^3\cdot \varphi) over $60\times 60$mm grid and I'm getting the "Dimension too large"-error if I set $a > 320$ but I need to fill the grid area ...
1
vote
1answer
241 views

Crop A4 to specific paper size

I want to send a document to a publisher. The publisher prints books with the dimensions of the pages being 16.5cm x 23.5cm. Thus I am now layouting the final document with the help of the crop ...
8
votes
4answers
597 views

How to interpret the page layout in LaTeX using layout package?

I have used package layout to generate the page layout figure for both article and amsart class. It's quite curious that although different in values, the patterns for those two layouts are quite the ...
6
votes
3answers
206 views

How can I determine the height and depth of a “multi-line” `\ooalign`?

How can I determine the height and depth of a "multi-line" \ooalign? \ooalign{\relax\cr% \noalign{\vskip-2ex}X\cr% \noalign{\vskip+2ex}\cr% \noalign{\vskip+1ex}X\cr% ...
3
votes
1answer
138 views

Change height of a box, recalculate rubber lengths

I'm using \setbox and \usebox to define a box, measure its default dimensions and render it later. During rendering, sometimes there is more vertical space available than measured initially, and I'd ...
3
votes
1answer
116 views

Fermi--Dirac in pgfplots, dimension too lage

I'm trying to draw a plot of the Fermi-Dirac distribution, for which I'd like to show a few lines of varied temperate (T). My code works for this, except for zero temperature, it results in a ...
3
votes
1answer
50 views

Computation of size in titlespacing

Consider the following example: \documentclass[11pt,a4paper]{book} \usepackage{lipsum} \usepackage{titlesec} \newlength{\textsize} \makeatletter \setlength{\textsize}{\f@size pt} \makeatother \...
3
votes
1answer
148 views

How to configure complex options for graphics groups in LyX

I have a document with several images from a few different sources. I'd like to indicate different formatting options for each source. I understand I can use graphics groups for this, but I don't know ...
1
vote
1answer
467 views

The commands \wd, \tp and \ht in TikZ/PGF

What does these commands, \wd, \tp and \ht stand for? I assumed that they are from TikZ and PGF, because I haven't seen them elsewhere. I think the \wd stands for "width" and the \ht stands for "...
5
votes
1answer
178 views

How to know the *best* figure dimensions

How do I know which dimensions are best for the figures I want to include in my book? I know about \textwidth, \linewidth, etc. but is there an automatic way to adjust the figures in an appropriate ...
8
votes
1answer
93 views

Is it possible to adjust the “quantization” of allowable skip lengths?

In plain TeX and derivative formats, the concept of stretchable/shrinkable length, AKA a glue or a skip or a rubber length exists, in general defined as <dimen> plus <stretch-dimen> minus ...
2
votes
1answer
185 views

How can I print a length in centimeters? [duplicate]

(I am a new to LaTeX.) I'm trying to print a length in centimeters. Here is my code: \documentclass{article} \begin{document} \newdimen\mylength \mylength=1in \the\mylength \end{document} And here ...
1
vote
3answers
283 views

Multirow and rotated column headers

I want to typeset a table with rotatetd column headers (so far it works) stretching over multiple rows. The problem seems to be that multirow does not adjust the tables row heights, thus I have to do ...
8
votes
1answer
386 views

Why am I getting a division by zero error?

I was experimenting with the answer I got to an earlier questions of mine: A better notation to denote arcs for an American high school textbook I wrote a new command as \documentclass{article} \...
6
votes
1answer
194 views

How can I readjust TikZ's dimension variables to fit mid-document dimension change?

Question How can I readjust TikZ's dimension variables to fit a mid-document dimension change as in this example and using the TikZ drawing from here. Problem TikZ coordinates are not where they ...
3
votes
0answers
152 views

Tikz: Error “dimension too large” when decorating arc [closed]

I'm drawing circles with arrows on in 3D. To do this I'm using decorations, and drawing the circles in halves so that I could change the colours later and draw an arrow penetrating them while keeping ...
6
votes
2answers
327 views

Convert dimension to integer number of mm

I'm using \zsavepos to record the position of a box on the page and then writing the position to the box. It works fine but the functions I've got give measurements in mm to quite a few decimal places ...
6
votes
2answers
251 views

TeX/LaTeX: Macro for getting a length as number

I would like to write a macro getlengthin to get a length or dimen as floating point number in a specified unit. Here is what I have created so far: \documentclass{article} \usepackage[nomessages]{...
3
votes
1answer
63 views

Read graphics dimensions

I'm putting sets of graphics (i.e. figures and graphs) aligned in sets of rows using caption and subcaption packages. As figures and graphs doesn't have same with/height ratio the captions in rows are ...
7
votes
2answers
260 views

How to show dimension values in scaled points

TeX stores dimensions internally in scaled points but operation \the expands to the corresponding value in points. Can we avoid the conversion and get the more precise, "original" value instead?
3
votes
1answer
99 views

Is there a platform-independent way of specifying page dimensions in TeX?

This is partially a follow-up to this question since the answer mentioned tex as executing the "original Knuth TeX". So far, I have seen that the following will work in TeX, but is ignored by pdftex....
6
votes
1answer
267 views

Overcome 'Dimension too large' when using the forest package with a lot of nodes

I am drawing a genealogical tree with the forest package in which I have approximately 50 nodes. I have reached a point where I get the message "Dimension too large" when I try to add another node. I ...
6
votes
1answer
121 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
250 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 ...
6
votes
1answer
227 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
455 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} \usepackage{bm}...
2
votes
1answer
93 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
169 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: \...
16
votes
2answers
4k views

Reduce vertical size of tikz plot

The following code generates a color mapped plot. I would like to reduce the vertical size however, and cannot figure out how. Can anyone give me a hint? \documentclass[a4paper,twocolumn]{article} \...
5
votes
1answer
441 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. \documentclass[...
3
votes
1answer
139 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: \...
2
votes
2answers
82 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} \...