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
0answers
27 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 ...
10
votes
1answer
367 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 ...
4
votes
2answers
106 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 ...
7
votes
1answer
77 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, ...
4
votes
2answers
138 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 ...
4
votes
1answer
60 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)....
0
votes
0answers
23 views

How to control white-space dimensions around author block with authblk and geometry?

I am trying to control the white-space dimensions around my author block using authblk and geometry. How can I control the distance between the top margin and the title, the title and the author list,...
4
votes
2answers
55 views

“Dimension too large” error with tikz graphic using tikzmark when document gets too many pages

I use this code (fixed by marmot :) ...), which worked perfectly until a point where my document got too many pages. At a given point I get a "Dimension too large" error. It uses code that tests if a ...
4
votes
2answers
200 views

Problem when applying foreach loop

I'm trying to find the minimum x coordinate in a set of TikZ coordinates. Consider this code \documentclass[tikz]{standalone} \usetikzlibrary{positioning} \newdimen\x \newdimen\xmin \xmin=10000pt \...
2
votes
0answers
42 views

bp (PostScript point) pica?

A few months ago I noticed while inspecting some of my LaTeX-generated PDFs that the font sizes used were not what I had specified. I went to check the source file, but all my font sizes were just how ...
1
vote
1answer
17 views

First line to always start at fixed location independent of anything that comes before it

I created my MWE with the help of this Q&A. Issue: I think it works great, the only issue is that the length down from the top of the page that the lipsum paragraph starts at in the first page ...
17
votes
1answer
373 views

Spacing difference when using boxes

On the left (obtained from the MWE below), I do not use boxes for the title nor the body text and the title and the text appears to be in the correct spot. However, when I attempt to use \...
1
vote
1answer
142 views

Drawing grid lines to show vertical position of text [closed]

I have text where I want to adjust the space above the first line. I want to overlay grid lines to show where the vertical position of the text is. The MWE below with the following line commented is ...
2
votes
1answer
97 views

How to put a reaction scheme from chemfig inside a TikZ picture?

I am trying to include a chemical reaction from the chemfig package into this picture of a cloud using the following code: \documentclass{amsart} \usepackage{chemfig} \usepackage{tikz} \...
0
votes
0answers
25 views

Document with page dimensions (esp. height) determined by size of image to be included (how to create)?

I am working on an enormous project that will be completed in several stages. The first step is to compile many screenshots or other images into a single document, where there would be one image per ...
1
vote
2answers
229 views

Scale images in proportion to textwidth

[I rewrite this post to address the questions posed in the comments.] First I formulate what I want to accomplish as clearly as I can. After that, I explain why I want to do that. My question: How ...
2
votes
1answer
70 views

The width of the widest character, relatively to the font settings

I write a software that generates LaTeX code. For various reasons, I'd like to know the width of the largest character, relatively to the current font settings. As a developer, I wrote a Perl script ...
2
votes
1answer
101 views

How TeX does its scale factor calculation? [duplicate]

With the following example \documentclass{article} \begin{document} \dimen0=1sp \dimen1=0.5\dimen0 \dimen2=0.99999\dimen0 \dimen3=0.999992\dimen0 \dimen4=0.999993\dimen0 \count255=\dimen0 \the\...
2
votes
2answers
30 views

subscripts dimension and position compared to old style subscripts

Good afternoon. I'n new in LaTex world and I have some trouble with subscripts and superscript dimensions. I have already searched on the web but found nothing that suits my problem. Here is an image ...
0
votes
1answer
362 views

Dimension too large with width=0.75\textwidth

I am trying to insert a picture with text next to it (not caption) using xymatrix in a document but despite that I set the width of the picture plus text to 0.75 of the text width I get dimensions too ...
1
vote
1answer
55 views

How can I get the max height of a group boxes in an environment without incrementing a counter?

Here I use three macros \a, \b, \c which are captured into \BODY. I measure the height of \BODY and set the height \nodeboxht register to its result. This ensure the height of all boxes match the ...
4
votes
2answers
139 views

How can I dynamically set the box height to the max height of a group of boxes?

What is a technique I might use to have TeX calculate the max height of a group of boxes and then typeset all boxes using that height? I'd like to automatically have TeX detect the middle box and set ...
10
votes
3answers
550 views

How to ensure two standalone documents have same dimensions

I've made two standalone documents that ought to be the same dimensions (page size), but pdfinfo reports the page sizes (dimensions) as being slightly different, and I can't for the life of me see why....
4
votes
2answers
102 views

TikZ miscalculates some intersections, dimension too large

I want to draw some arcs inside a circle: they go from angle (120i+30)/2^j to (120i+90)/2^j for all i,j. I compute them with TikZ as follows: \documentclass{minimal} \usepackage{tikz} %\usepackage{fp}...
3
votes
2answers
205 views

How can I show the height of the tcolorbox?

MWE \documentclass{article} \usepackage{tcolorbox} \begin{document} \begin{tcolorbox} Bla Bla \begin{tcolorbox} Bla Bla \end{tcolorbox} \end{tcolorbox} \end{document} How ...
5
votes
3answers
207 views

Divide integers and get a floating point number (for a pstricks coordinate)

I'm making a picture with pstricks and would like to plot points whose coordinates are fractions a/c, b/c, where a, b, and c run over certain ranges. I tried using \numexpr but it rounds down. I ...
3
votes
5answers
192 views

Lengths and coordinates in TikZ arcs [duplicate]

It has always bothered me that it's so hard to draw TikZ arcs by specifying the centre of the arc. Then I thought I have a good workaround by using the TikZ library math. Let's use it to draw an arc ...
4
votes
3answers
482 views

I can't use `\width` as the argument for `\parbox` or `minipage`

I can't use \width as the argument for \parbox or minipage. MWE: \documentclass{article} \begin{document} Bla \begin{minipage}{\width}{test}\end{minipage} \end{document} To my understanding, ...
16
votes
2answers
487 views

How to have a background which exactly fits the text height/depth?

I tried with a background starting from text anchor or from base anchor, and with a colorbox without sep, but the top of the "S" and the bottom of the "p" are a little bit above of the background ...
2
votes
1answer
65 views

How can I get precise horizontal margins the manual way?

It seems that I am getting imprecise values for my left and right margins. What magic is geometry doing that I am not? My intended paper size was A4 (but as discussed in the comments and answer, this ...
2
votes
1answer
84 views

l3 dimension problem

Background: I'm trying to typeset a two-sided document where both visible pages should be similarly spaced. Therefore I've implemented a custom auxiliary file that stores the height (saving will not ...
3
votes
1answer
310 views

PGF Dimension too large

I am trying to create mental math worksheets that extend math facts from 6*7=___ to something like 6*700000=_________. Apparently, though PGF and/or TeX cannot handle numbers bigger than around ...
2
votes
1answer
98 views

Problem hyperref package Slide document

I experience some problem with the hyperref package. When I add it, all my document slides to the right and all the content is sliced by the border page. In figure an example of my problem Here a MWE:...
1
vote
2answers
697 views

How do I get the height and depth of a box as a dimension? [duplicate]

In order to avoid misalignment issues with tikz nodes I have decided to set the options text height and text depth so that all nodes have the same height and depth as a normal line of text. According ...
1
vote
2answers
72 views

Default dimensions sections name in book class

Which are the default dimensions for the title of the sections chapter, section, subsection and so on for the book class?
1
vote
1answer
207 views

Getting bookcover dimensions right

I have to follow this template: MWE: \documentclass[spinewidth=11mm,coverwidth=180mm,coverheight=276mm,flapwidth=0mm,dvipsnames,svgnames,marklength=0mm]{bookcover} \begin{document} Foo \end{...
4
votes
2answers
114 views

How can I create a box which extends to the end of the line?

I want to create a (par)box which starts wherever I am right now and extends to the end of the line. I noticed this related question: Get current position in the line / get space until end of line ...
9
votes
1answer
2k views

Is \textheight in beamer slides with a title wrong? [duplicate]

The problem I have is simple to describe: the height of a beamer slide title does not seem to be subtracted from \textheight, leaving me with no idea how much space is left for the actual content. A ...
2
votes
1answer
70 views

Dimension too large problem in automated tex TikZ files

I'm fairly new to LaTeX/TikZ and I have written a python script that generates .tex files for our dependency graphs. The problem is that I encountered two errors or warnings when I compile these ....
1
vote
0answers
162 views

Change the distance dimension of a line as a decoration in TikZ

How I can change the distance dimension like the picture below. In the \dim={add dim, distance} have two parameter I want to add 1 parameter for distance of dimesion like picture 1 , and rolate the ...
6
votes
2answers
1k views

Divide two lengths

How do I divide two lengths and get a length out? \documentclass{article} \newlength\A \newlength\B \newlength\C \setlength\A{10pt} \setlength\B{5pt} \setlength\C{\dimexpr\A/\B\relax} \begin{document}...
13
votes
2answers
227 views

Access to the parts of glue registry

This might be a silly question, but I can't seem to be able to find the answer anywhere: suppose I have this simple plain TeX code: \newskip\myskip \myskip = 10pt plus 4pt minus 2pt Now, how can I ...
6
votes
1answer
920 views

Simple explanations for \dimexpr and dimensions in general

I have read carefully the etex manual to understand the syntax of dimexpr and numexpr but my limited comprehension remains limited... The expression "\dimexpr" appears only 3 times in the mentioned ...
6
votes
1answer
1k views

How do I set the circle radius in a Forest tree drawing?

I have following code to generate a tree using the forest package: \documentclass{standalone} \usepackage{forest} \begin{document} \begin{forest} for tree={circle,draw} [A [B [C ...
1
vote
1answer
213 views

Dimensions too large + multiple pictures [closed]

I've been searching for a solution for hours how - including this forum. Maybe somebody can point me in the right direction, it's getting really frustrating. Basically I want to do the same thing as: ...
1
vote
1answer
60 views

Unintended memoir layout

I'm having trouble fine-tuning the page layout in a memoir document. %LuaLaTeX \documentclass[oneside,12pt]{memoir} \settypeblocksize{8.5in}{4.125in}{*} \setlrmargins{1.25in}{*}{*} \setulmargins{1....
0
votes
1answer
45 views

specifying dimensions of document to match size of text / math environment

How set the dimensions of the space allocated to an environment? e.g. if I wanted a single equation $x^2 + y^2 = R^2$ to be centred in an area exactly 5cm high and 10cm long, how might I do this? I ...
3
votes
1answer
658 views

How to define fixed height for block in tikzposter

Is there a way to set the height of a (text body) block in tikzposter? Based on this answer I tried to do the following: \newcommand{\mtblock}[1]{% \setbox\blockbox\vbox{#1}% \parbox[t][\htblockbox][...
2
votes
1answer
222 views

Why does TikZ \foreach not work correctly with dimensions?

Why does TikZ \foreach not work correctly with dimensions? Here are two examples: \documentclass[tikz,margin=5pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} % normal \...
1
vote
2answers
179 views

Shift by ex units in 3d tikz

In 2D coordinates (red image), I can use ex units to shift a node: \path (1,0) ++ (1.0ex,0) node {$x$}; But, when attempting to do the same thing with 3D coordinates (blue image), \path (1,0,0) ++ (...