Skip to main content

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
0 answers
22 views

Rounding dimensions to specific decimal places [duplicate]

In How to typeout dimensions in mm?, a custom command is suggested to typeset dimensions in a given unit. Sometimes, it is desirable to typeset the length to one or two decimal places I want an output ...
Al-Motasem Aldaoudeyeh's user avatar
2 votes
0 answers
37 views

Printing out the page size and margins

I am trying to print out the values of the parameters related to the paper dimensions and margins: \documentclass[12pt, a4paper]{report} \usepackage[ width=150mm, top=25mm, bottom=25mm, ...
raf's user avatar
  • 785
1 vote
1 answer
54 views

Shape around empty box in every page

I want to leave an empty box of fixed dimensions in the upper right corner of every page. Something of the kind that you obtain with the following code: \documentclass[oneside,12pt]{book} \usepackage{...
brad's user avatar
  • 527
1 vote
1 answer
32 views

Units of "minimum size" when drawing a named rectangle in TikZ

When drawing a rectangle using \node and minimum width/height, the size of the resulting rectangle is different from one drawn with \draw … rectangle …. I need the \node so I can refer to it by name. ...
Peter Frings's user avatar
0 votes
0 answers
40 views

Geometry package page dimensions do not scale properly

I am trying to create a latex document on overleaf web editor, there are fixed requirements for the dimensions of the document and when I use the geometry package and set those dimensions and then ...
jones871's user avatar
0 votes
1 answer
61 views

Can't seem to be able to draw very small TikZ shapes?

I'm trying to draw small labels fitting circles, or at least proportional to them. But I just can't seem to make them smaller than this for some reason: I get that there might be a physical limit to ...
psygo's user avatar
  • 438
5 votes
1 answer
107 views

Font encoding affects \box_wd:N calculation

I have written a simple function to calculate the width of a line of text and display it using tikz: \documentclass{article} %\usepackage{mathpazo} \usepackage{domitian} \usepackage[T1]{fontenc} %\let\...
Ted Black's user avatar
  • 495
0 votes
0 answers
72 views

\includegraphics Dimension Too Large

I was trying to insert a .pdf image in my Latex Document and I was getting the dimension too large error. But I found out that Latex automatically resizes the image to the max it can support. After ...
Rishi Suman's user avatar
3 votes
2 answers
118 views

Problem with alignment with wrapfigure

I have this compilable MWE: \documentclass[a4paper,12pt]{article} \usepackage[italian]{babel} \usepackage[utf8]{inputenc} \usepackage{mathtools,amssymb} \usepackage[top=2.5cm,bottom=2.2cm,left=1.5cm,...
Sebastiano's user avatar
  • 56.7k
0 votes
1 answer
48 views

tikz - custom page dimensions, background image & centered text

I have an image (983x983 pixels) that I want to use as the background of my standalone document. I then want to add text on top of it, centered. When I do \documentclass[border=0pt]{standalone} \...
ituriel's user avatar
  • 79
3 votes
2 answers
441 views

How to scale \includegraphics to exact width and height?

I have an image foo.jpg. I would like to scale it into a box of an exact size, say 100pt wide by 200pt high. I may want to scale the axes independently, or I may want to preserve the aspect ratio and ...
Taylor R Campbell's user avatar
2 votes
3 answers
264 views

How to set the exact width and height of tikzpicture with pgfplots?

The pgfplots axis environment has options width and height to specify the approximate width and height of the picture drawn, but the resulting box is not exactly as wide or high as specified—it may be ...
Taylor R Campbell's user avatar
0 votes
1 answer
43 views

Locally adjust a dimension written into aux

I am writing some code that makes use of a dimension (termed \shape below) that gets adjusted several times over the course of the code. The value \shape has by the time the code is finished is what ...
Noah J's user avatar
  • 515
3 votes
2 answers
259 views

Default units in expl3

So I have produced code, which I think is kind of a hack, but it seems to work so far in my testing. I have setup a new expl3 function that sets a dimen variable. If the input for the dimen expression ...
User23456234's user avatar
  • 1,886
0 votes
0 answers
12 views

Different Behaviors of Dimensions of a Graphics Object and Pic

I am trying to create a plot with tikz (using PlotNeuralNet), and I would like to make an included image of the same dimension for the height of the cube (a representation of convolutional layers) I ...
sr__'s user avatar
  • 1
3 votes
1 answer
113 views

Make code retrieve a dimensional value from later on in the code?

Suppose that I have a dimension (call it \shape) whose value is to change locally several times throughout a piece of code. Suppose also that I have defined a command (called \shifter in the code that ...
Noah J's user avatar
  • 515
0 votes
1 answer
25 views

Make contents of several tabularx environments' corresponding columns flush

I am in a situation in which it seems desirable to use multiple tabularx environments to feign a single one. But I would like for the contents of their right-most columns to be flush left with each ...
Noah J's user avatar
  • 515
0 votes
1 answer
50 views

Can I use memoir in G5 format?

I'm writing my dissertation using memoir. It will be printed in G5 format (169mm × 239mm). How can I set memoir to use these custom dimensions, while keeping margins etc beautiful? I understand that ...
Anna's user avatar
  • 837
0 votes
0 answers
55 views

Latex \layout dotted lines meaning

I'm using the geometry and layout packages to set and preview my final layout in my latex document. What are the dotted lines (1 and 2) representing and how do you move them? If I set the hmargin and ...
Alexandre Huot's user avatar
1 vote
1 answer
43 views

I need to include some SEM images, 1,024x768 pixels in size into a multicol article im writing, i get the dimension too large error

I already tried using width = \textwidth and width = \linewidth, also i tried scaling the image but it appears all over the text. \documentclass[a4paper,12pt]{article} \usepackage[spanish]{babel} % ...
Enrique González's user avatar
1 vote
1 answer
108 views

Remove Left and Right margin in order to get a bigger table

I need to enlarge this table until it touches the right and left side of the A4 page. In a nutshell I should remove the margins on the sides. It's my first time using latex and I've tried several ...
io_boh's user avatar
  • 125
2 votes
1 answer
62 views

Line from lower left to upper right corner of page with metapost

I have this example where I want to draw a line in the background from corner to opposite corner of the page using metapost, The problem is that the line does not reach both ends, and I cannot figure ...
Salim Bou's user avatar
  • 17.1k
1 vote
1 answer
49 views

Table within the page

I'm using a package of Rstudio that gives me tables in Latex code. Unfortunately, the table that I get is huge and goes outside the edges of the page. I've already tried \small but it is not enough. ...
io_boh's user avatar
  • 125
0 votes
1 answer
57 views

Dimension too large error for rectangle in pgfplots

I have a plot of time series. Now I want to highlight certain regions using rectangles. Since the rectangle should cover the whole plot and I used enlarge limits, I tried to work around this using rel ...
Excelsior's user avatar
  • 2,322
1 vote
0 answers
50 views

"\setlength" vs "equal" [duplicate]

This is a very general question. Apparently a duplicate of: Other than syntax what is the difference between \dimen0= and \setlength{}{}? What is the difference between \fboxsep=1cm and \setlength{\...
Vincent Krebs's user avatar
1 vote
0 answers
202 views

Beamer - Fitting multiline title into a single one

I am trying to adjust a multiline title into a single line. I found the length of the text and check if it is larger than \linewidth or \textwidth. Both dimensions gave larger values than expected. ...
M. Al Jumaily's user avatar
2 votes
2 answers
111 views

expl3 / set length to average charwidth

I have a function that calculates the average character width. The function calculates the width as expected, but I can't use it in setlength. I've tried around and tried solutions I've googled, but I ...
alexBer's user avatar
  • 33
0 votes
0 answers
79 views

using typearea and octavo to create Golden-Ratio-compliant books at lulu.com

I have a number of books with various page counts that I want to have printed and bound by lulu.com, and I'd like to make them as Golden-Ratio-compliant as I can. In order to do this, I'm using the ...
Joel Derfner's user avatar
0 votes
0 answers
60 views

Tikz: Dimension too large -- is there a workaround?

I've created a complex drawing in Tikz (~1MB of text in total). This drawing is too large. LuaLaTeX aborts with the error "Dimension too large". Normally, the advice is to simply scale down ...
mafu's user avatar
  • 205
1 vote
1 answer
49 views

Column separator extends above text if the column is not the first item in the document

I previously asked a question about the divider line sticking up above the text in columns. The solution posed: \setlength\topskip{7pt} works beautifully, but only if the column is the very first ...
jejwood's user avatar
  • 37
1 vote
1 answer
188 views

Column separator extend above text

I am working on a bilingual document with parallel text, occasionally interupted by monolingual sections (i.e. spanning the whole page width) in between. Each time the parallel text begins, the line I ...
jejwood's user avatar
  • 37
1 vote
0 answers
22 views

Listing the Dimensions of an Antenna in a Paper using the Latex [duplicate]

I have been trying to insert the table of dimensions of an antenna in a latex code. I used the code { \begin{table}[h] \centering \begin{tabular}{l | l | l | l | l} Reference Number & BW (GhHz) &...
Kawther Hamad's user avatar
1 vote
1 answer
107 views

Describing the Dimensions of an Antenna using Latex

I have been trying to insert the table of dimensions of an antenna in a latex code. I used the code \begin{table}[h] \centering \begin{tabular}{l | l | l | l | l} Reference Number & BW (GhHz) &...
Kawther Hamad's user avatar
0 votes
1 answer
52 views

How to obtain the numerical value of a dimension object with respect to an arbitrary dimension, in TikZ?

Does TikZ provide a way of obtaining the numerical value of a dimension object with respect to an arbitrary dimension? If so, great. If not, would you please help me debug the following attempt to ...
Evan Aad's user avatar
  • 11.1k
0 votes
1 answer
207 views

How to position a TikZ node in an arbitrary position inside a beamer slide's main area

The following question is related to this one. I'd like to be able to position a TikZ node in an arbitrary position inside the "main area" of a beamer slide, i.e. inside the white rectangle ...
Evan Aad's user avatar
  • 11.1k
0 votes
1 answer
78 views

Extend the height of parbox

I have the following command that prints text in the margins: \DeclareRobustCommand{\solutionpage}[1]{\marginpar{% \colorbox{lightgray}{\protect\parbox[t]{\dimexpr\marginparwidth-2\fboxsep}{~Proof ...
tush's user avatar
  • 1,147
3 votes
2 answers
143 views

Pspicture to Cover the Entire Page

I am working on a book whose geometrical page dimensions (W x H) are 4" x 6". For one page, I would like to perfectly display a 4" x 6" pspicture. Consider the following code: \...
DDS's user avatar
  • 9,768
2 votes
1 answer
94 views

How does LaTeX calculate dimensions?

Please consider the following MWE: \documentclass{article} \begin{document} \makeatletter \@tempdima9.5bp \the\@tempdima\\ \@tempdimb=1bp\relax \@tempdima9.5\@tempdimb \the\@tempdima \end{document} ...
Lupino's user avatar
  • 2,762
2 votes
1 answer
85 views

Dimension too large with long caption?

I'm having trouble with a figure with a long caption that fills most of (but not all of) a page. Here's a MWE that reproduces the issue with lorem ipsum text that's about the same length. \...
Dan's user avatar
  • 23
2 votes
1 answer
83 views

parbox inner vertical-align "b" causes unexpected vertical white space

In the following codes, I put something into a lrbox named mybox. Then the content of the box is typeset by a parbox with three inner vertical-align modes - c, t and b. For t and c, the typeset is ...
lyl's user avatar
  • 2,747
3 votes
2 answers
162 views

Difference between \skipeval and \dimeval

What is the difference between \skipeval and \dimeval? They appear to produce the same result, but perhaps \dimeval removes the glue? \rule{\dimeval{ \linewidth plus 1cm minus 1cm - 1cm}}{1pt} a\\ \...
likethevegetable's user avatar
5 votes
1 answer
130 views

Tweaking an Initfamily Do-It-Yourself Colored Lettrine

The following code mimics Steven B. Segletes' answer to the question posed in Adding a Letter to an Image in a Do-It-Yourself Lettrine: \documentclass[12pt]{book} \usepackage{yfonts,xcolor,scalerel,...
DDS's user avatar
  • 9,768
1 vote
1 answer
178 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, ...
PLY's user avatar
  • 149
1 vote
1 answer
44 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 ...
mzm's user avatar
  • 11
0 votes
1 answer
110 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} \...
lyl's user avatar
  • 2,747
1 vote
3 answers
895 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) -- (...
stargazer45's user avatar
1 vote
1 answer
577 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 \...
lyl's user avatar
  • 2,747
1 vote
0 answers
85 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 ...
rsomebodyinparis's user avatar
0 votes
0 answers
159 views

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

This question was closed under the pretext that it "needs details or clarity." In my opinion the question is clear, and I don't see what details might be missing. Also the single user who ...
Evan Aad's user avatar
  • 11.1k
0 votes
0 answers
32 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 ...
Michael Dorner's user avatar

1
2 3 4 5 6