Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [glue]

The tag has no usage guidance.

18
votes
2answers
1k views

can glue be colored?

When I'm fine-tuning the design of my documents in LaTeX/XeLaTeX, it's sometimes helpful to use color to highlight the location and size of my fixed spacing. For example, I sometimes temporarily ...
1
vote
2answers
54 views

Where is glue employed in lists and quotes, and how can I suppress it?

I have a PDF compiled with LaTeX that contains lists and quotes. My settings result in the lines not being on the same height when I view the PDF in double-page-mode as soon as I employ lists and ...
2
votes
0answers
14 views

How to add vertical stretchable glue to tables?

Is it possible to add stretchable vertical glue to rows of a tabular (I actually use tabularx) environment? I've looked at tabularht, but if I have understood right, this allows me to specify a total ...
0
votes
1answer
20 views

how to add glue to a custom section header

I have generated a customized section heading style as follows: \newcommand\ueber[1]{\vspace{0.2cm}\normalsize\itshape #1 \vspace{0.05cm}\normalfont} So far, it works fine. However, I don't know how ...
3
votes
1answer
29 views

How to glue center environment to the trailing text?

After getting the solution to my first problem thanks to egreg, I have came across the second one: very often I am in a situation when I want that the center environment is glued (no page break) to ...
3
votes
1answer
42 views

How to glue center environment to the text?

I have very often a situation when I want that the center environment is glued to the preceding text, something like that: Some text % \begin{center} \begin{tikzpicture} some commands \end{...
5
votes
2answers
34 views

Form consisting of boxes. How to glue par-/frameboxes?

I was given the following to fill in, however the template was given in a word file and it is really awful to edit in and format properly. I've tried to recreate it in Latex. My attempt is the ...
0
votes
1answer
88 views

How to “glue” two “boxes”?

I have a command \sectionExercise{...} that produce a title followed by a thick horizontal line. This command is always followed by a minipage : \begin{exo}...\end{exo} Sometimes, there is a column ...
11
votes
1answer
307 views

TeXbook - Chapter 12: Glue - Exercise 12.8

Exercise 12.8 Assume that \box1 is 1 pt high, 1 pt deep, and 1 pt wide; \box2 is 2 pt high, 2 pt deep, and 2 pt wide. A third box is formed by saying \setbox3=\hbox to3pt{\hfil\lower3pt\box1\hskip-...
9
votes
3answers
144 views

Make non-breakable spaces (~) visible in the PDF and preserve their glue

I use several tools to ease my editing process and line and layout optimization. I would like to see in the PDF where I already placed non-breakable spaces ~ to better understand why certain ...
14
votes
1answer
497 views

(La)TeX vs other typesetting systems: the glue

Short background Once a latex document is seen, almost everyone want to start using it. Then, as it is difficult to use, one get interested in the comparison to other typesetting systems like Word ...
13
votes
0answers
165 views

What explains this discrepancy between LuaTeX and other engines?

I answered a question about hyphenating already-hyphenated words (like “already-hyphenated”, or “often-hungry”), and this came up. Consider the following input file (uncomment the first three lines if ...
5
votes
1answer
121 views

Is it possible to have non-french spacing without extra stretch?

I like that (La)TeX by default puts extra space between sentences, but I find that the default settings, at for most fonts, can make inter-sentence spaces too "stretchy" compared to regular spaces ...
14
votes
2answers
474 views

What's the difference between \hfil and \hskip0cm plus 1fil?

What's the difference between \hfil and \hskip0cm plus 1fil? In both cases, a glue token is created that skips by zero, but with 1fil of stretchability. If you use \hbox spread 4cm{\hfil test \...
0
votes
2answers
34 views

Splitting a table cell between right and left alignment with colored rows

I'm trying to make a table that's essentially a feature matrix. Entries are grouped, and each group is a set of completions to a sentence. Because of space constraints, I'm trying to keep the start of ...
3
votes
1answer
174 views

\\*[…] with plus/minus stretch

\\*[...] seems not to allow for plus/minus stretch: in a longtable where \\*[3ex] works, \\*[3ex plus 2ex minus 1ex] causes the error ! Missing = inserted for \ifdim. <to be read again> ...
1
vote
2answers
316 views

Beamer presentation without stretching of vertical spaces

Currently I am updating and extending my beamer themes. Thereby I also want to solve a spacing problem, which is sometimes quite annoying. Think of the following example: \documentclass[t]{beamer} % ...
3
votes
2answers
104 views

Boxes and glue: hand-setting letter header

I tried to set a letter header by hand, using two vboxes inside an hbox. I expected the right side of the second to align with the right margin, but that is not what happened. What am I missing? \...
3
votes
2answers
108 views

Horizontal glue with bigfoot para style

How can I make the horizontal strechability between the footnotes infinite, so that they become evenly aligned at the right margin? \documentclass{scrbook} \textheight=.4\textheight \usepackage{...
9
votes
1answer
174 views

When does a glue node have type `xspaceskip` in LuaTeX?

I am using TeX Live 2017, and the current luatex documentation of glue nodes says that the subtype field of a glue node has the following possible values: 0 = userskip, 1 = lineskip, 2 = ...
4
votes
1answer
76 views

Beamer itemize vspacing glue?

I use a lot of itemized bullet points in presentations. Ideally, beamer would know that when I use many bullets, space needs to be tighter than when I just a a few bullet points...sort of like glue. ...
14
votes
1answer
139 views

Fractions' stretch and shrink [duplicate]

When TeX shrinks an equation, it only uses the shrink component of glue "at the outer level". For instance, numerator/denominator of fractions are not shrunk, as shown by the example below: first I ...
5
votes
2answers
265 views

Does TeX use Hookean physical springs to represent positive and negative glue? [duplicate]

What does \hskip 60pt plus 100pt minus 100pt mean? I used to think of this as a mechanical spring with natural width and some string constant k. But, I know that it is not exactly so, since the plus ...
12
votes
2answers
210 views

Access to the parts of glue registry

This might be a silly question, but I can't seem to be able to find the answer anywhere: suppose I have this simple plain TeX code: \newskip\myskip \myskip = 10pt plus 4pt minus 2pt Now, how can I ...
1
vote
1answer
82 views

How to know the width and fill the glue space between two characters when using XeTeXinterchartoks

I am trying to replace the glue space with a stretched version of a glyph in Xetex, using Xetexinterchartoks. Below is a sample: \documentclass[10pt,a4paper]{article} \usepackage{graphicx} \...
2
votes
0answers
76 views

Height of TikZ Graph with Plus/Minus Tolerance

I am attempting to put a TikZ graph in a paper I'm writing and have the height of the graph be a height with a plus/minus tolerance. An MWE is shown below: \begin{minipage}{\columnwidth} \begin{...