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
0 votes
1 answer
41 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
  • 443
3 votes
2 answers
203 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,475
0 votes
0 answers
10 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
103 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
  • 443
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
  • 443
0 votes
1 answer
24 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
  • 267
0 votes
0 answers
24 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
38 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
49 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
  • 25
2 votes
1 answer
50 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
  • 16.8k
0 votes
0 answers
22 views

pagetotal does not reset after page break [duplicate]

Consider this example \documentclass[12pt]{article} \usepackage{lipsum} \begin{document} \section{1} \lipsum[1-4] \the\pagetotal \end{document} The last page shows The ...
Raphael's user avatar
  • 554
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
  • 25
0 votes
1 answer
51 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,282
1 vote
0 answers
45 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
85 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
104 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
49 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
50 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
37 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
89 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
0 votes
1 answer
75 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
46 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
  • 10.8k
0 votes
1 answer
148 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
  • 10.8k
0 votes
1 answer
48 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,093
3 votes
2 answers
112 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: \...
mlchristians's user avatar
  • 7,756
2 votes
1 answer
66 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,620
1 vote
1 answer
53 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
  • 13
2 votes
1 answer
66 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,677
3 votes
2 answers
124 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
109 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,...
mlchristians's user avatar
  • 7,756
1 vote
1 answer
130 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
39 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
88 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,677
1 vote
3 answers
549 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
244 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,677
1 vote
0 answers
79 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
  • 10.8k
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
3 votes
1 answer
327 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 ...
Physor's user avatar
  • 421
2 votes
0 answers
105 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 ...
Matthias Arras's user avatar
0 votes
1 answer
40 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\...
Weißer Kater's user avatar
3 votes
1 answer
188 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 ...
projetmbc's user avatar
  • 13.4k
4 votes
2 answers
99 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
50 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[...
cis's user avatar
  • 7,497
1 vote
0 answers
53 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 ...
susis strolch's user avatar
6 votes
0 answers
2k 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}|} ....
mhdadk's user avatar
  • 161
3 votes
1 answer
162 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:...
Denis Bitouzé's user avatar
0 votes
0 answers
33 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={...
Shaurya Goyal's user avatar
3 votes
0 answers
94 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 (...
user239702's user avatar

1
2 3 4 5 6