All Questions
111
questions
0
votes
1
answer
81
views
Box that doesn't affect the vertical spacing of the main document
Consider the following example:
\documentclass{article}
\begin{document}
Text A.
\vspace*{5cm}
Text B
\end{document}
Now I want to change this to
\documentclass{article}
\usepackage{environ}
\...
1
vote
0
answers
48
views
New environment as a single box [closed]
I am making my new environment for headings. It is as follows:
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\begin{document}
\newlength{\headspace}
\setlength{\headspace}{3mm ...
3
votes
2
answers
96
views
Extra horizontal spacing of zero width box
I would like to add a pair of gray quotation marks around the text without affecting the surrounded text. For this I tried to use \makebox with zero width. However, I was still getting:
To my ...
0
votes
1
answer
115
views
Why smash doesn't suppress the horizontal space of subscript with sum?
I try to understand the smash command, and I made a simple example :
\documentclass{article}
\usepackage{amsmath,amssymb, amsfonts, mathtools}
\begin{document}
\begin{equation*}
\sum_{\...
2
votes
2
answers
235
views
Scale a letter but it keeps the original space
La\scale{T}eX is a high-quality typesetting system;
it includes features designed for the production of technical and scientific documentation. LaTeX is the de facto standard for the communication ...
2
votes
1
answer
83
views
parbox inner vertical-align "b" causes unexpected vertical white space
In the following codes, I put something into a lrbox named mybox. Then the content of the box is typeset by a parbox with three inner vertical-align modes - c, t and b. For t and c, the typeset is ...
6
votes
2
answers
627
views
Get height of the current box
I'm curious how does \vrule determine the height of the current box?
\documentclass{article}
\usepackage{amsmath}
\[
\Big(
~
\vrule width.7pt
~
\Big)
\]
this image was created by ...
3
votes
2
answers
540
views
How to control horizontal spacing between tcolorboxes?
Similar question but for vertical spacing here: Unwanted vertical separation between tcolorboxes
I would like to know how to control the horizontal spacing between tcolorboxes.
MWE:
\documentclass{...
2
votes
1
answer
171
views
How do I increase the spacing before and after the empheq environment (with tcolorbox)?
I want to ask a question on how to properly increase the spacing before and after the boxes set inside an empheq environment. Here's my MWE that I compiled using LuaLaTeX.
\documentclass{scrbook}[DIV=...
4
votes
1
answer
92
views
Why does TeX stretch more than the plus component and it's OK?
The code is as follows:
\newlength{\stretchable}
\newlength{\fixed}
\setlength{\stretchable}{2cm plus 6cm}
\setlength{\fixed}{8cm}
\hbox to 10cm{|\hfil|} % the sample of a 10cm hspace
\...
1
vote
1
answer
73
views
conditional vertical space-command within environment
I am trying to find a way to get LaTeX to insert a different amount of vertical space depending on how much text there is in a specific environment:
For two single lines I'd like one kind of space (...
3
votes
0
answers
160
views
When should I use `\par` and when should I use `\hrule height 0pt`?
I commonly run into issues with controlling the exact amount of space between two environments.
Recently, for example, I was trying to understand how to insert a horizontal rule between two boxes ...
1
vote
1
answer
113
views
Equivalent of \pdfsavepos for a box?
Suppose I typeset some text using an environment that places it in a box with a width that I specify. (I don't really care if this is a minipage, tabular, or something else.) I want to write the ...
1
vote
2
answers
349
views
Using post_linebreak_filter in LuaTeX to set height and depth of boxes
After reading this answer
Automatically prevent extra line spacing because of math
by David Carlisle, I experimented with the code to get grid typesetting. My approach: The height of a line is always (...
7
votes
2
answers
341
views
Positioning punctuation to the bottom right of an equation
I'm writing a paper with tikz-based equations that look like this:
I like to have punctuation after equations, but I think it would look better and be less confusing if the punctuation was at the ...