Questions tagged [dimensions]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
76 views

Positioning relative to page in XeLaTeX with package background and 'nested' tikzpictures 'dimension too large'

Context For a personal project I would like to have a tikzpicture on every page that borders the text and all that is on there. I started with LuaLaTeX and wanted to add only a few Chinese characters, ...
user avatar
  • 137
1 vote
1 answer
34 views

Distinguish between number and length [duplicate]

In my job, I need a macro to distinguish between number and length. Length here means, for example: (1) \textwidth, \parindent, etc (2) \newdimen\mylena \mylena=10cm (3) \def\mylenb{2in} (4) 5.2in I ...
user avatar
  • 11
0 votes
1 answer
40 views

Height of \parbox can not be assigned with condition?

I want to assign the height of my \parbox with condition, as I did below, but fail. Why and how to deal with it? Code: \documentclass[a4paper]{article} \usepackage{etoolbox} \usepackage{geometry} \...
user avatar
  • 2,159
1 vote
3 answers
59 views

dimensions too large

I'm getting the error "Dimensions too large" while they are not. MWE: \documentclass[border=1mm]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[-latex] (-1,0) -- (...
user avatar
1 vote
1 answer
34 views

Different effect of "height" arg in \vrule

\documentclass[a4paper]{article} \usepackage{xcolor} \usepackage{geometry} \geometry{showframe} \geometry{left=1cm,right=1cm,top=1cm,bottom=1cm} \begin{document} \parindent0pt \fboxsep0pt \...
user avatar
  • 2,159
1 vote
0 answers
54 views

Dimension too large dblfnote

I am trying to compile a document (with XeLatex) contaning extremely long footnotes. It would be interesting to me to have double-column footnotes. When I try to use dbflnote package, I encounter a ...
user avatar
1 vote
0 answers
23 views

How to access the height of the display area of a beamer presentation, sans header, footer, and navigation strip?

Consider the following LaTeX code for a simple beamer presentation. The code is saved in the file presentation.tex. \documentclass{beamer} \usetheme{Warsaw} \usepackage[T1]{fontenc} \begin{document} \...
user avatar
  • 8,684
0 votes
0 answers
31 views

Vertical line causes 'dimension too large' error [duplicate]

For the following plot (with time axis) I would like to add a bold, red vertical line at index 2010-01-01. But I always run into a Dimension too large error. How can I solve this issue? Here is the ...
user avatar
2 votes
1 answer
89 views

How to get (measure) the height or the width of an object?

If I want to specify the dimension of some object like rule{<width>}{<height>}, such that these dimensions are those of other objects, then how can I get (measure) the height and width of ...
user avatar
  • 213
2 votes
0 answers
60 views

Extending dimensioning command \Cote to draw annotation to the side/margin in technical drawings

I'm trying to annotate a technical drawing made in tikz. Following the elegant work of Tarass, I needed to be able to annotate to the side like depicted below because my annotation text can be longer ...
user avatar
0 votes
1 answer
30 views

How to use \lastnamedcs?

Please look at this short MWE: % Plain LuaTeX \ifcsname b@selineskip\endcsname \else \expandafter\newdimen\lastnamedcs \lastnamedcs\normalbaselineskip \fi \expandafter\the\csname b@selineskip\...
user avatar
3 votes
1 answer
155 views

Calculate the lengths of rules (in LaTeX3?)

I don't think this hard to do but I 'am a real noob with calculations and dimensions. In the code above I would like to calculate automatically the dimensions of the left and right rules such as ...
user avatar
  • 11.4k
4 votes
2 answers
78 views

Putting \the\wd inside a group makes it produce 0.0pt

The following is a minimal example demonstrating some behavior of latex that I don't understand. I'm using xelatex, but the behavior in pdflatex seems to be the same. \documentclass{article} \...
user avatar
0 votes
0 answers
49 views

TikZ: Very high document gives 'Dimension too large'

I have a problem, that my document becomes to high, if I set N=118 nodes with below=7cm of \N.north ---> ! Dimension too large. ---> What could I do?` \documentclass{article} %\documentclass[...
user avatar
  • 6,217
1 vote
0 answers
40 views

datatool sorting problem - wrong data type?

I created a very small DB with datatool to store two values at each line of the table. First a running ID and second a generated dimension (converted to mm) which I calculated of the width of each ...
user avatar
1 vote
0 answers
337 views

What exactly is \dimexpr?

I've seen \dimexpr used in the context of setting the width of the columns of a two-column table: \newlength\q \setlength\q{\dimexpr .5\textwidth -2\tabcolsep} \noindent\begin{tabular}{|p{\q}|p{\q}|} ....
user avatar
  • 111
3 votes
1 answer
103 views

Why (e.g.) a \strutbox and a (expl3) \vbox_set:Nn box containing this \strutbox don't have the same height?

As shown by the following MCE, a \strutbox and a (expl3) \vbox_set:Nn box containing this \strutbox don't have the same height. Why? \documentclass{article} \begin{document} \ExplSyntaxOn \vbox_set:...
user avatar
0 votes
0 answers
31 views

Dimension error in pgfplots graph

This is my code. It shows a dimension too large error. I have spent a lot of time trying to solve this but have had no success. PLease help me out \begin{tikzpicture} \begin{axis}[ title={...
user avatar
3 votes
0 answers
62 views

Dimension too large when using path to include graphics

Im trying to include an image as xy-plane on z=0. See mwe. ymax is supposed to be 1500. But when I change ymax to 1500, the domain, (axis cs:7.5,75,0) coordinate (P) to (axis cs:7.5,750,0) coordinate (...
user avatar
4 votes
2 answers
163 views

To which em do 18mu correspond?

I am a bit puzzled about the output of this code \mathsurround=0pt 1)% \setbox0=\hbox{$\mkern18mu$} \number\wd0 2)% \setbox0=\hbox{$\kern1em$} \number\wd0 3) \number\fontdimen6\textfont0 4) \...
user avatar
  • 25.4k
2 votes
1 answer
57 views

Dimensions of nodes

In the following picture, I would like to use the same width for the rounded rectangles and the same height for the arrows (take a look at the last ones). To do that I need to store the dimensions of ...
user avatar
  • 11.4k
0 votes
2 answers
38 views

Table with predefined dimensions and horizontally and vertically centered cells

I have a hard time making a table that would have predefined dimensions (the whole page) and cells centered horizontally and vertically. I have found solutions for each of those problems individually,...
user avatar
1 vote
1 answer
40 views

Dimension too large for a simple cubic formula

This is the plot I'm working on: \documentclass{book} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ axis lines=center, samples=200, xlabel={\(x\)...
user avatar
2 votes
1 answer
61 views

In definition of \pgfpicture why \pgf@picmaxx and \pgf@picmaxy are negative and what exactly this 16000pt value?

The definition of pgfpicture macro from pgfcorescopes.code.tex \def\pgfpicture{% \begingroup% \pgfpicturetrue% \global\advance\pgf@picture@serial@count by1\relax% \edef\pgfpictureid{...
user avatar
  • 16k
1 vote
1 answer
143 views

LuaLaTeX: Find true height of multicols environment (series of vboxes) using node library

How to find the true height (and other dimensions) of contents of multicols environment in mini-page using LuaTeX node library? So far in my experiments with luatex node library, I have been able to ...
user avatar
  • 1,228
1 vote
1 answer
226 views

pgfplots Figure with fixed Width

How can I create a standalone pgfplots figure with set total dimensions, including axis labels and legend entries? If I set plot dimensions with width=5cm, height=5cm, pgfplots only gives me a total ...
user avatar
1 vote
1 answer
104 views

Problems with page layout dimensions in the memoir class

Recently, when defining the layout geometry for my doctoral thesis, I faced the following problem: the dimensions informed by me, which I will call virtual dimensions, do not correspond to the ...
user avatar
  • 177
2 votes
0 answers
43 views

Dimensions too large in smooth decorated plot

Why do I get a dimension too large error in the following example and how can I fix it: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.markings} \begin{document} \begin{...
user avatar
  • 27.8k
1 vote
1 answer
130 views

Dimension too large in 3D geometry in tikz

I am facing a compilation error in a weird way. I have trimmed my code to the maximum but still my MWE is not too small, so I'll focus first on the weird part : \foreach \j in {0,1,...,5}{ ...
user avatar
  • 1,100
0 votes
1 answer
46 views

How to properly halve the inter-line distance in a math block environment

... of amsmath or mathtools? In other words, how to properly halve \jot? Options: \setlength{\jot}{.5\jot\relax} \setlength{\jot}{\dimexpr.5\jot\relax} \setlength{\jot}{\dimexpr\jot*.5\relax} \...
user avatar
6 votes
3 answers
343 views

\somepenalty=10000 vs. \somepenalty 10000 vs. \somepenalty10000

Replacing the equality symbol with a space below or omitting the symbol at all \documentclass{article} \pagestyle{empty} \usepackage{lipsum} \begin{document} \interlinepenalty=10000 % or \...
user avatar
0 votes
0 answers
16 views

pgfplots: use dimensions instead of ticks [duplicate]

I need to build a graphic in pgfplots with symbolic distances between the keypoints, as shown in the figure below. I know how to use symbolic coords, but if I was to represent the x coordinates as ...
user avatar
0 votes
0 answers
58 views

Titling package gives "Undefined control sequence" error when using a macro that defines a dimen in the title

I have a macro that defines a new dimension (details have been stripped away for the MWE; in the actual command, I want to store an old value in the new one so I can modify it temporarily and then ...
user avatar
  • 615
0 votes
1 answer
197 views

Setting margins with minimal header and footer

I am working on an exam paper and am having difficulty setting up the margins. I need a set margin throughout the document utilizing maximum space possible. I dont want the header and footer to be ...
user avatar
1 vote
1 answer
37 views

Dimensioning of a drawing stops working with some label package options

I want to dimensioning a drawing with tikz, this includes angles. I found this answer that worked pretty well for me, but when I include the babel package in my document, there were some problems, ...
user avatar
  • 181
2 votes
0 answers
84 views

`! Dimension too large` error using `kik-android` template

I am using this template (kik-android.cls, now whatsapp.cls): Showcase of beautiful typography done in TeX & friends as a guide to write a document using pdflatex mode. Since I am on pdflatex I ...
user avatar
  • 3,039
1 vote
1 answer
102 views

PDF's page layout and dimensions not good for printing

So now that I have a 600+ page PDF (book) on my hands, I'd like to get a print out of it -- never thought I would. Turns out that the PDF's page formatting is not right for the print-on-demand service ...
user avatar
0 votes
0 answers
31 views

Making LaTeX document with fixed dimensions

I am trying to create a document that has a fixed dimension of 1024 pixels x 512 pixels. Here is an attempt so far: \documentclass[11pt]{article} \usepackage{geometry} \usepackage{lipsum} \usepackage{...
user avatar
  • 1,329
0 votes
0 answers
178 views

Tikz: Dimension Too Large

I'm currently working on my Thesis using Overleaf and TexMaker. As I include a few high res images that i exported via matlab2tikz, they are very big and detailed. Recently I encountered an error in ...
user avatar
  • 95
2 votes
1 answer
146 views

LuaLaTeX glyph dimension correctness depends on font extension

I am writing a package that requires extracting dimensions of certain glyphs. The package would support both xelatex & lualatex. In my testing, xelatex always returns accurate glyph dimensions ...
user avatar
  • 1,228
0 votes
1 answer
55 views

TikZ: decorate stroke thickness throws 'Dimenson too large' but looks fine (ditto marks)

I've working on some florishes on my ditto mark macro (see Tikz: use latex length for length of path (ditto marks)). Namely, using variable thickness for the strokes. Below it is implemented as the ...
user avatar
  • 969
2 votes
1 answer
626 views

Avoid "Illegal unit of measure (pt inserted)" when dealing with LaTeX lengths

My goal is to link to external video files in beamer presentations rather then embedding them directly into the PDF (e.g., with media9 package) to keep the size as small as possible. I use the ...
user avatar
3 votes
1 answer
914 views

pgfplots: How to set true dimensions of axis

I would like to have axis dimensions in real TeX units. \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ xmin=0, xmax=1, ymin=0, ...
user avatar
0 votes
0 answers
43 views

Continue to next page without limits and without "Dimension too large"

I have been wondering if there is a way to control the size (height and width) that a tikzpicture environment can support for drawing and I have often seen only undefined answers being cited. I'm ...
user avatar
1 vote
0 answers
227 views

Scratch Paper Setup

I often use latex to write out scratch work, but I enjoy having lots of freedom when I write. Is there a way to have a document that expands as a write in any direction? I've found that you can make ...
user avatar
10 votes
1 answer
393 views

How do I change my LaTex document to follow some Word requirements?

I am writing my thesis in LaTex and I am strictly required to write: With Times New Roman 12 pt (which I have read 12pt in Word is different from 12pt in LaTex) One and a half line spacing All the ...
user avatar
4 votes
2 answers
159 views

Why appending box dimensions to a sequence (in a loop) makes that sequence only contain duplicates of last dimension?

Loop steps from 1 through 9. Each step puts current index digit of the loop into a box and extracts the digit's width. The width is then appended as dimension value to a sequence. Although the ...
user avatar
  • 3,616
8 votes
1 answer
109 views

Can I defend against "Dimension too large" errors?

I'm trying to debug the error in "Dimension too large" error with too many tikzmarks which involves getting a Dimension too large error (duh). I have my suspicions as to what is causing it, ...
user avatar
4 votes
2 answers
205 views

Why doesn't \dim_eval:n return appropriate result and behaves weirdly?

All I needed to do is divide 300pt by 5mm to get result either in pt or in mm units. But I got something else. \documentclass[varwidth]{standalone} \usepackage{expl3} \begin{document} \ExplSyntaxOn ...
user avatar
  • 3,616
4 votes
1 answer
284 views

"Dimension too large" error with too many tikzmarks

This is a follow up to the discussion here. Andrew provided a patch for the problem that when the page number go too large it created the problem (see his and Ulrike's answers in the linked question)....
user avatar
  • 2,174

1
2 3 4 5