Skip to main content

Questions tagged [lengths]

{lengths} is for questions dealing with measurements in TeX. If your question is about the spacing between document elements, use {spacing} instead.

0 votes
1 answer
68 views

Getting the Maximum Width of a List of Items

I'm trying to write a command to get the maximum width of a (comma separated) list of items, for example \myLengthCommand{lorem,ipsum,lorem ipsum} should return the width of the text "lorem ipsum&...
Dave's user avatar
  • 317
0 votes
2 answers
70 views

compute a scale factor for use in includegraphics

I want to compute a scale factor for use in includegraphics. I want to do this using the declarations from xparse. What I have so far (based mostly on https://tex.stackexchange.com/a/437494/293199): ...
troy's user avatar
  • 89
0 votes
3 answers
116 views

What does a lenght=3pt 2 mean? [closed]

What does it mean if a lenght is set to, for instance, length=3pt 2? I noticed it's not the same as lenght=3.2pt... I'm sorry to ask such a trivial question, but I looked here and there, and I didn't ...
Garulfo's user avatar
  • 193
2 votes
2 answers
74 views

Automating drawing horizontal lines until the end of the page

I have a page filled with text (arbitrary vertical height) and would like to fill the rest of the page with horizontal lines. So far my solution is to manually adjust how many lines are drawn: \...
Marius Hofert's user avatar
1 vote
1 answer
70 views

How to measure the length of the last line? (LuaLaTeX)

I would like to make a command which, like some environments for equations, has a vertical space at the start of it which depends on whether the length of the line in the previous paragraph exceeds a ...
B Legrand's user avatar
  • 433
1 vote
2 answers
64 views

How to decrease the length of the vertical line in the array environment globally?

First a minimal working sample is as follows. \documentclass{amsart} %\delimitershortfall=10pt \delimiterfactor=000 \begin{document} \[ S=\left\{x~ \begin{array}{|l} \frac{m}{n} \end{array} \right\} \]...
M. Logic's user avatar
  • 4,333
1 vote
1 answer
60 views

Drawing a Non-Jagged Grid Outline

I'm trying to create an outline for my TikZ grid with thicker lines, but there doesn't seem to be any correction for the edges, so things get jagged: \documentclass{article} \usepackage{tikz} \begin{...
psygo's user avatar
  • 438
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
0 votes
1 answer
77 views

`Illegal unit of measure (pt inserted)` despite measurement calculations?

After following the tips in this answer by @JasperHabricht, I'm trying to improve the following macro, but all I get is Illegal unit of measure (pt inserted), despite the measurement calculations ...
psygo's user avatar
  • 438
2 votes
1 answer
77 views

How to do length calculations with based on a `\foreach` array

I'm trying to improve the readability of my \drawHoshis macro by creating variables for the x and y coordinates, besides also running a calculation with a minus inside parentheses (e.g. x * (y - 1)). ...
psygo's user avatar
  • 438
0 votes
0 answers
95 views

Detect if something is a length?

Is there a way in LaTeX to detect if something is a length with a function of the form: \NewDocumentCommand\iflength{m m m}{%CODE HERE%} where: the first parameter is the thing to be tested the ...
Vincent's user avatar
  • 5,327
4 votes
1 answer
195 views

Negative `\widthof` doesn't work?

I am basically reasking the same question as here, which hasn't had any definitive answer even yet. I restate the problem. The MWE \documentclass{book} \usepackage{calc} \begin{document} \hspace{...
Atom's user avatar
  • 665
2 votes
1 answer
32 views

Disabling all rubber in a beamer frame

Situations like the following cause wiggling text: \documentclass{beamer} \begin{document} \begin{frame}[t] \begin{itemize} \itemsep=2.5pt \item<1-> Many ...
Bubaya's user avatar
  • 2,549
1 vote
0 answers
39 views

How to match subfigure height to other subfigure?

I am trying to have two subfigures with significantly different aspect ratios have the same height by calculating the height for one of them then using that height for the other, following the method ...
sandwich's user avatar
0 votes
2 answers
45 views

Make length persistent between subfigures

I am trying to have two subfigures have the same height and have defined a length for this purpose, but the length gets set to zero between them. My understanding is that this is tied to the subfigure ...
sandwich's user avatar

15 30 50 per page
1
2 3 4 5
32