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},...

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

285 questions
9
votes
2 answers

Measure 'real' height of lines/rows (as multiples of \baselineskip)

I am trying to measure the height of a few lines while the lines are set. I thought the 'real' height of a line is the baselineskip, e.g. 14.5pt for a 12p document. However, when I set the text in vbox to measure its height I get 10.7pt for one line…
Jörg
  • 7,653
7
votes
2 answers

How can I easily display the dimensions of the text body?

I want to design an image filling the whole page using Illustrator, with the right dpi and dimensions. To accomplish this, I need to know the precise dimensions of the text body (Numbers 7 and 8 in the image below). How can I easily accomplish this?…
Eekhoorn
  • 3,567
7
votes
2 answers

Convert dimension to integer number of mm

I'm using \zsavepos to record the position of a box on the page and then writing the position to the box. It works fine but the functions I've got give measurements in mm to quite a few decimal places - I only need it to an integer number of…
tornadof3
  • 349
  • 1
  • 8
6
votes
0 answers

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}|} ... However, I am not sure what \dimexpr…
mhdadk
  • 181
5
votes
1 answer

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 \small, \large, and any command that declares size.…
azetina
  • 28,884
3
votes
1 answer

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 follows) that effects these changes. Then, is it…
Noah J
  • 515
3
votes
2 answers

A problem with the dimension of the pages of a book

I am typesetting a book in mathematics and I have a problem with the dimension of its pages. My publisher wants me to prepare the book in A4 format and also the size of the texts in each pages be 13*21 cm. To do this, I have…
Darya
2
votes
1 answer

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} which prints 9.53561pt 9.5355pt Why is…
Lupino
  • 2,772
2
votes
1 answer

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 that produces a LaTeX document (let us call it…
2
votes
1 answer

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 was not completely the case). I've measured 18mm…
2
votes
2 answers

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…
1010011010
  • 6,357
1
vote
0 answers

Listing the Dimensions of an Antenna in a Paper using the 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) & Antenna size (mm3) & Gain & Notched Bands (GHz)…
1
vote
1 answer

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) & Antenna size (mm3) & Gain & Notched Bands (GHz)…