Questions tagged [strut]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 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 ...
user avatar
2 votes
4 answers
56 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[\...
user avatar
  • 243
1 vote
1 answer
63 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 ...
user avatar
  • 11
0 votes
1 answer
49 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 ...
user avatar
  • 558
0 votes
2 answers
86 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} \...
user avatar
  • 977
4 votes
2 answers
238 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 ...
user avatar
  • 1,491
2 votes
2 answers
163 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....
user avatar
  • 1,491
-1 votes
1 answer
147 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, ...
user avatar
1 vote
2 answers
192 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 ...
user avatar
  • 115
0 votes
1 answer
133 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 ...
user avatar
0 votes
0 answers
136 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 ...
user avatar
  • 218
6 votes
2 answers
400 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} \...
user avatar
  • 4,263
0 votes
1 answer
63 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 ...
user avatar
1 vote
1 answer
223 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 ...
user avatar
  • 2,860
4 votes
1 answer
742 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 ...
user avatar
  • 2,239
2 votes
1 answer
89 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}\...
user avatar
4 votes
1 answer
384 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 ...
user avatar
  • 73
6 votes
1 answer
488 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 ...
user avatar
3 votes
1 answer
586 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 \...
user avatar
  • 253
11 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 ...
user avatar
  • 48.8k
8 votes
2 answers
1k 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 ...
user avatar
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 ...
user avatar
65 votes
2 answers
28k 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?
user avatar
  • 11.3k
55 votes
5 answers
9k 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 ...
user avatar
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 ...
user avatar
  • 12.4k
35 votes
1 answer
4k 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\...
user avatar
17 votes
6 answers
7k 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 (...
user avatar
9 votes
1 answer
4k 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 ...
user avatar