{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

6
votes
1answer
321 views

How to declare variable sizes in tikz to let LaTeX decide how to fill the page

LaTeX sometimes does some tricks to fill lines to the end, to fill pages up to the bottom and to prevent pages only containing a single line of text. When I create some tikzpictures there are ...
3
votes
1answer
51 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 ...
11
votes
1answer
10k views

Image from \includegraphics showing in wrong image size

When I use the following to embed an image: \begin{figure}[htb] \centering \includegraphics{my_image} \caption{blaaa} \label{fig:blaaa} \end{figure} whereas my_image is a JPG file, the ...
6
votes
1answer
594 views

bigfoot - Dimension too large (I can't work with sizes bigger than about 19 feet.) [closed]

My MWE is below. I can produce the following output in nonstopmode... ... but I see these errors in the log: ! Dimension too large. \FN@normaloutput ...\tw@ \fi \fi \ifdim \FN@vsize ...
6
votes
3answers
1k views

Error: “Dimension too large…” when plotting EXPONENTIALS with TikZ

Despite having read answers to 4-5 relate questions, I still can't get why my code does not compile. Here it is: \documentclass[11pt,twoside]{book} \usepackage[paperheight=24cm, paperwidth=35cm, ...
4
votes
1answer
222 views

Resize figures that are too high or too wide in LyX?

I would like to know how to define a preamble in Lyx to resize the width and the height if the figure is too wide or high. I've already tried this: \usepackage{graphicx} % Determine if the image is ...
3
votes
1answer
2k views

Background image from tikzpicture does not fit the whole page

For a poster, I would like to have an image fill the whole page. This image is supposed to be drawn within a tikz environment as my other content. However, graphicx seems to fail at rescaling when the ...
3
votes
1answer
335 views

Maximizing page usage for a table

I'm printing a table enclosing 4 other data tables, one per page, and would like to maximize the space available by reducing the margins as much as possible. I still need the page number, but wonder ...
2
votes
1answer
1k views

how to get the size of a \pgfdeclareimage

Basically I want to use a TikZ node to frame a pgfimage, so later on, I will add more and connect them as I see fit. I have this: \pgfdeclareimage[width=10em]{image1}{images/image1} ...
29
votes
1answer
6k views

What are the possible dimensions / sizes / units LaTeX understands?

I know there are different ways of expressing sizes or dimensions in LaTeX such as points (pt), inches (in) and ex. As some commands, such as \hspace understand all of them, I would like to have a ...
0
votes
0answers
28 views

Lines with `shorten >` don't count towards image size [duplicate]

I use the technique mentioned here to extend a line through two points: using shorten > and shorten < with negative values. However, the part of the lines that is generated by theses shorten ...
2
votes
1answer
387 views

Avoid figures encroaching on page numbers with LyX

I'm using LyX and have figures in floats and wraps but some of them are too high on the page when converted to PDF and overlap with page numbers. Is there a way to avoid this and respect the text ...
3
votes
0answers
125 views

LyX enlarging inserted images

I have a problem with inserting images in my thesis that I write with LyX. Images in exported pdf are always larger than they actually are. Here is what it looks like in the editor, that's the real ...
3
votes
1answer
647 views

Setting image size in html output of tex4ht

I have a complex document which I'm trying to convert to html with tex4ht and TeXLive under Ubuntu, but I'm not able to coherently control the image size of jpg and eps images. In html output, jpg ...
4
votes
1answer
447 views

How to make CircuitTikZ symbols smaller

Is there a way to make symbols of the CircuitTikz package smaller (like ports). Using small/tiny as argument doesn't help.
5
votes
1answer
165 views

Adjusting box height to the document bottom

I made a command that prints a gray rectangle in my document. I can use this command typing: \notes{100}, where 100 is the vertical size of the box. \newcommand{\notes}[1]{ ...
5
votes
1answer
2k views

Big table with rotated column labels using booktabs

I'm trying to get a big table to fit into my document using the booktabs package, but it is too wide. An example of a couple of rows of the table is given below. I'm using the ...
4
votes
1answer
298 views

How to make a symbol adjust its size globally and locally

In the following code I have created a bullseye symbol. What I want to do is to allow its size to change dynamically both globally (document class option say 10pt, 11pt or 12pt) or locally by using ...
3
votes
1answer
125 views

Change part of table column size

I would like to know if there is a way, that I can resize part of a column, while keeping the rest the same size. Such that I would get this: Column ___| ___| ___| _______| _______| _______| I ...
3
votes
3answers
162 views

Size of circle path vs. circle node in \pgfdeclareshape?

I'm trying to "overload" a rectangle node as a custom shape, such that it has a circle on its south west corner. In the MWE below, I use \circsize to set the size of the circle - and for testing ...
3
votes
1answer
880 views

Varying edge thickness

A couple of months back, I had asked a question regarding an elegant way of drawing a somewhat sophisticated graph. Thanks to the community I received tremendous help. To avoid repeating the whole ...
5
votes
2answers
103 views

ConTeXt TABLEs, how to automatically fit table size with text with \setupTABLE

When I type something like \bTABLE \bTR\bTD abc\eTD\bTD abcdefg\eTD\eTR \bTR\bTD 123456789\eTD\bTD 1234\eTD\eTR \eTABLE in ConTeXt, it automatically sets the column widths to fit the text contained ...
6
votes
2answers
177 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} ...
6
votes
2answers
3k views

How to set equal size of cells in tabular environment when \multicolumn extend the size of above cell?

The code example is shown as follows: \documentclass{article} \usepackage{latexsym} \usepackage{bm} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \begin{document} \begin{center} ...
6
votes
1answer
282 views

Automatic width setting in LyX

Is there any preference setting so that LyX automatically adjusts images width to \linewidth when they are added, instead of doing so by hand whenever a new image is inserted?
6
votes
1answer
138 views

Use dimensions \totalheight \depth for inline TikZ drawing

I want to use the current text's dimensional properties for constructing an inline TikZ image, such as an icon. The properties I have in mind for use are \height \depth \totalheight as described ...
7
votes
1answer
380 views

Custom TikZ node with svg path not clipped

I would like to make a custom node shape with a small picture (on north east) using the svg directive of TikZ, because the picture comes from a svg path. As you can see with this simple code, the ...
9
votes
2answers
138 views

Auto-Range for size of figures?

Is it possible to give figures a "range" for their size? For example from .3\textwidth to .5\textwidth or 5cm +- 10% or 5 cm +- 0.1\textwidth. You give a range for all images and TeX chooses the ...
37
votes
2answers
32k views

How to change the size of nodes?

How is it possible to change the size of a node, for example: \begin{tikzpicture} \draw node[fill,circle]{} (0,0);% \end{tikzpicture} How to make the circle smaller or larger?
5
votes
2answers
358 views

Typesetting digraph with weighted edges, varying vertex size, multiple lines in vertex

I would like to draw the graph displayed in the following picture with TikZ and also do some modifications: Firstly I want to carry the labels of the nodes to the inside as a second line. For ...
5
votes
1answer
254 views

How to resize Feynman diagrams drawn with FeynMF / FeynMP (and their labels)?

This seems like an easy question, but I haven't found any hints on this, so: How do I resize the output of FeynMF and the labels within it? I use it like this: \begin{enumerate} \item Feynman ...
11
votes
1answer
3k views

Trim image by number of pixels

Is it possible to trim an image by a certain number of pixels rather than a length? I have a set of images that I'm including, and in one figure, a trim of 135 on the bottom works nicely, but a ...
7
votes
2answers
143 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
84 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 ...
6
votes
1answer
80 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
68 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
71 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 ...
3
votes
0answers
102 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
115 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} ...
2
votes
1answer
63 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
79 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: ...
42
votes
3answers
5k views

Dimensioning of a technical drawing in TikZ

Is there is an easy way to mark dimensions in a technical drawing with TikZ? Is there a library or something? Edit I am using XeLaTeX. Update I chose Martin's answer because it serves me well ...
4
votes
1answer
150 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. ...
2
votes
2answers
64 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} ...
3
votes
1answer
80 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: ...
6
votes
3answers
154 views

How to measure the minimum width or height of several boxes?

I know we can get the maximum width or height of several boxes via: \setbox0=\vbox{\hbox{a}\hbox{b}\hbox{c}} The maximum width is \the\wd0 \setbox0=\hbox{\hbox{a}\hbox{b}\hbox{c}} The maximum height ...
8
votes
1answer
185 views

This elliptical-orbit diagram compiled fine with TikZ 2.10 but fails with TikZ 3.0. Why?

I borrowed some code on Kepler's 2nd Law from the linked post here on TeX answered by Tosco. I haven't compiled the document it is in awhile but needed today. When I did, I was told dimension too ...
2
votes
1answer
160 views

Svmono and "real page dimensions''

I'm writing a document with the Springer's template svmono. Clearly the margins and more generally the page layout is automatically setted. Despite this, the output file is displayed as an A4 pdf ...
4
votes
1answer
667 views

Dimension too large in pgf plot

I am trying to create a pgf plot which includes (among others) a constant function f(x)=1. My x-axis should be restricted to some range (see below), and there is also a restriction on the y-axis. This ...
0
votes
0answers
28 views

How does 'right=of' and 'right of=' work, and what does 'node distance=' do? [duplicate]

I have three variants of the same code and I varied the following three cases: right of= together with node dimension=1.6cm -- looks fine right=of together with node dimension=1.6cm -- nodes too ...