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.
478
questions
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&...
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):
...
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 ...
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:
\...
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 ...
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\}
\]...
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{...
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 ...
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 ...
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)). ...
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 ...
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{...
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
...
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 ...
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 ...