Questions tagged [strut]
The strut tag has no usage guidance.
31
questions
0
votes
1
answer
31
views
Parbox with multiple baselineskip height
I'm defining a chapter style, and I'd like to print the chapter title within a \parbox. I'd like the \parbox take a vertical space which is in any case an exact multiple of \baselineskip.
In the ...
0
votes
1
answer
40
views
How can I equalize the height of class boxes in a pgf-umlcd diagram?
I have the following simple class diagram in pdf-umlcd:
\documentclass{article}
\usepackage{pgf-umlcd}
\begin{document}
\begin{tikzpicture}
\begin{class}
[text width=2cm]
{Ah}
...
0
votes
1
answer
131
views
tikz node, auto-strut to drop descenders
I am using a (huge) tikz picture to emulate a fillable form. As a result, the text in the nodes has to line up.
To handle descenders, I have created a strut that "drops" the text back to ...
0
votes
0
answers
63
views
Increase line spacing around inline maths (opposite of smash/strut) / Add padding around inline maths
Very simply, inline maths (particularly display style) doesn't offer much padding between lines. I know that there has been a lot of commentary on using commands such as \smash and \strut to do the ...
2
votes
4
answers
264
views
How to change spacing in array (block matrices) [duplicate]
I want to add a certain spacing s.t. the the partial derivative symbols don't touch the line. Here is the code I have so far.
\begin{align*}
\mathrm{D}_{}F(\textbf{x}_{0}, \textbf{y}_{0}) =
\left[\...
3
votes
1
answer
957
views
What kind of Undefined control sequence error is this and what is the solution?
I am using overleaf and getting following Error massage:
\f@nch@och ->\conftitle
\strut
l.176
The control sequence at the end of the top line
of your error message ...
0
votes
1
answer
161
views
Add vertical strut to Beamer Metropolis' footer
The beamer theme metropolis includes an option to show frame numbers as a fraction of total frames. But it does not add a vertical strut for the eventuality that someone (me!!) would add additional ...
0
votes
2
answers
186
views
The vertical spacing between the first and the second line in the section formatted with \titleformat
Why is the vertical spacing between the first and the second line in the section greater than the vertical spacing between the rest of the section in this MWE?
\documentclass[12pt]{article}
\...
4
votes
2
answers
363
views
On the effect of \mathstrut
On page 1004/1318 of Tikz manual there is an example using \mathstrut.
I added more lines to the code to investigate what \mathstrut really does. I found that it makes the characters more aligned ...
2
votes
2
answers
225
views
How to find \mathstrut belongs to which package in ctan.org?
I like to read about \mathstrut in ctan.org. I went there in ctan.org and hit browser then packages but I could not find anything about \mathstrut. Would you help me where to find \mathstrut in ctan....
-1
votes
1
answer
377
views
Adding a strut at the top/bottom of large equations
I woud like to typeset a very long equation that includes two large brackets that dynamically adjust heights depending on their contents. The typical way is to use \left[ \right]
As you see above, ...
1
vote
2
answers
438
views
Right-aligning using \strut and \hfill, inconsistent results
I'm writing an exam and using a \marks macro with \strut and \hfill to show the marks available for each question right-aligned, bold and in square brackets. But sometimes it doesn't put it on the ...
0
votes
1
answer
475
views
How to set a fixed baseline that doesn't stretch for ascenders or descenders?
Given many lines of text from a parameter or \input file, that contain end-of-line tags, ascenders and descenders:
\documentclass{minimal}
\begin{document}
% Some Code <Here> to disable TeX ...
0
votes
0
answers
154
views
Longtabu produces strange row heights
I would like to create a longtable using the longtabu environment from the tabu package. However, if the text in a column needs more than one line, the height of the corresponding row gets too small ...
7
votes
2
answers
655
views
Relationship between strut and baselineskip
Here, it is said that a strut is defined as:
\rule[-.3\baselineskip]{0pt}{\baselineskip}
However, if I do:
\newlength{\strutheight}
\settoheight{\strutheight}{\strut}\printlength{\strutheight}
\...
0
votes
1
answer
75
views
Align left margin note with displaystyle math
For one of the packages I'm making, I want to denote part problems in the left margin. I don't want to use e.g. \reversemarginpar since this is up to the user to define. Exercises are always going to ...
1
vote
1
answer
268
views
Vertical alignment of pgfgantt calendar
The pgfgantt package is generally pretty good about vertically aligning labels, but its \gantttitlecalendar[options]{calendar lines} command doesn't seem to do this automatically. This is easily seen ...
4
votes
1
answer
1k
views
Adjusting vertical space in tables with brackets, braces or other delimiters
This question is based on a problem that arises in a solution to Inserting a small vertical space in a table.
The spacing between rows in a table is often too small. A good way to fix this is using ...
2
votes
1
answer
105
views
Reserving space to find out whether a tabular will end up on odd or even page
I have a large number (~1200) of single-row tabular environments which include figures. Depending on odd or even page, I want to change the order of the columns. I'm now using \Needspace{value}\...
4
votes
1
answer
447
views
First word hyphenation in parbox with strut
I've a problem with parbox spacing in combination with hyphenation. What I like to achieve is setting parboxes in a tabular-like way as key value pairs. So I have two parboxes with a given width per ...
6
votes
1
answer
555
views
aligning several trees to the baseline
I want to have the following trees aligned to the baseline. There is a problem which is probably due to the "g" in some of the trees. How do I get these trees aligned? I tried \strut, but this somehow ...
3
votes
1
answer
618
views
tabu: adding struts before and after cell content
I am using tabu package to easily typeset my tables. So, there are few problems that i have solved:
vertical spacing (from cell content to borders) is less than line height and line depth, so i use \...
12
votes
4
answers
3k
views
Why is `\strut` working in these scenarios?
\strut seems to be a powerful command to get the interlinear spacing correct; particularly, when working with text in \parboxs or minipages. But it's also nice in contexts in which LaTeX is setting ...
8
votes
2
answers
2k
views
Ensuring a paragraph uses at least a given height?
I'm making a custom document class based on memoir, and I don't know how to implement the chapter precis so that it does what I want (the chapter precis is a small optional paragraph that follows ...
10
votes
1
answer
1k
views
Can I assume that the \ht+\dp of a strutbox == \baselineskip?
In Context, as long as the interline space is set through the
proper interface, it is safe to assume that (tex.box.strutbox.height
+ tex.box.strutbox.depth) == tex.baselineskip.width. This relation
is ...
76
votes
2
answers
34k
views
Strutting around: What's the difference between \strut, \mathstrut and \vphantom?
What's the difference between \strut, \mathstrut and \vphantom? When would I prefer one of them to the others, and why?
64
votes
5
answers
11k
views
Confused with TeX terminology: height, depth, width
The LaTeX reference card states for example
\strut box w/ ht and depth of “(”, zero width
I came to see text as a two dimensional feature, but I must be missing out on something...
(following was ...
7
votes
1
answer
6k
views
Invisible character equal to the height of capital letters [duplicate]
Possible Duplicate:
How do I create an invisible character?
How can I insert an invisible character (similar to \strut) which has a width of zero (won't impact word or letter spacing) and has a ...
36
votes
1
answer
5k
views
Definition of \strut explained
Can anyone explain me the fine details of the \strut macro. Why is the box \copyied in mathmode but \unhcopyied otherwise?
% latex.ltx, line 484, but identical in plainTeX
\def\strut{\relax\ifmmode\...
18
votes
6
answers
9k
views
Set \strut height
I'm using quite a few \colorbox and \colorfbox in a document but they weren't sitting at the same heights (because some words contained g and this seemed to push the box down.
The solution I found (...
9
votes
1
answer
5k
views
strut and strutbox
The definition of a \strut in LaTeX is given in the source as:
211 \newbox\strutbox
212 \def\strut{\relax\ifmmode\copy\strutbox\else\unhcopy\strutbox\fi}
Shoudn't a \strutbox, give an empty box? AS ...