Questions tagged [leaders]

Leaders are the TeX primitives used for creating repetitions of a box to fill up a space, for example in the Table of Contents. Questions about the usage of the TeX primitives \leaders, \cleaders, and \xleaders should be tagged with {leaders}.

Filter by
Sorted by
Tagged with
1
vote
1answer
58 views

Custom notation table with page reference

I would like to combine this question with this one. The goal is to build a list of notation with the following properties the symbol is on the left in a column with fixed width the description is ...
3
votes
1answer
44 views

Too few/too many uses of box register in leaders

I'm playing a bit with TeX's leaders and ran into a problem I don't understand. Given the following example code: \documentclass{article} \begin{document} \def\bul{% \begingroup \setbox0=\...
6
votes
1answer
193 views

\dotfill but slightly lowered below line

I am using \dotfill to create space for "fill in the blanks" but I do not like that the dots are exactly on the line. I would like the dots to be slightly below line. Is this possible? \documentclass{...
10
votes
2answers
311 views

How to align consecutive \leaders properly?

I’m trying to build a construct with a box of a fixed filled with \leaders followed by \leaders with \hfill. However at the moment there is a little gap between these two making the pattern irregular, ...
3
votes
1answer
181 views

Align leaders to the right end of the enclosing hbox?

Suppose I have an alignment with two columns of centered text. How can I add a \dotfill between these two columns? If I do this \vbox{\halign{% \hfil#\leaders\hbox to 5pt{\hfil.\hfil}\hskip 20pt ...
5
votes
1answer
120 views

Always display leaders, even when I have a line break

Consider this code: \def\leaderfill{\leaders\hbox to 1mm{\hss.\hss}\hfill} \vbox{\noindent\hsize 3.4cm Alpha adslf adsf kalsdf\leaderfill 1123} \bye The output is But I'd like to have dots before ...
7
votes
1answer
228 views

\overstrike in ConTeXt, can it overstrike leaders?

I have the something similar to the following: \setuppapersize[A6][A6] \starttext \overstrike{Hello\hfill world!} % Works OK Hello\leaders\hbox{.}\hfill world! % Works OK, nothing special \...
2
votes
1answer
377 views

Alignment of \dotfill or \(c/x)leaders to page numbers wtih different amount of digits

I need to create something similar to Table of Contents manually. For that I need dot leaders to go from text of the "chapter" to page number of this "chapter". I tried to use either \dotfill, \...
3
votes
1answer
1k views

\leaders when at the start of the line

I'm encountering an issue where I have \leaders that occasionally fall at the beginning of the line and as a result, there are no leaders appearing. I have for example: \hsize 9.2cm Lorem ipsum ...
7
votes
1answer
537 views

Equivalent Leaders construction

What is the equivalent construction of \leaders\hrule height 1pt depth 1 pt\hskip 20pt \relax in terms of the following construction or something similar \leaders\hbox{\vrule height 1pt depth 1pt}\...
1
vote
2answers
712 views

list with dot leaders

I would like to create to create list with dot leaders.Each entry into the list essentially contains four parts: a number, a description, dot leaders and lastly another number. I want it to look like ...
3
votes
1answer
174 views

randomly color leaders

After reading a bit on random coloring in LaTeX, I had the idea to use randomly colored leaders in a document. I came up with the following piece of code, which was stolen and modified from the \...
3
votes
1answer
262 views

Leaders in tocloft with minimum width

How can I redefine the leader in tocloft so that it is has a minimum length? The background is that I always want leaders in TOC to appear with at least two dots, forcing line breaks in titles if ...
0
votes
1answer
65 views

White marks around leaders in PDF

Why are there white bars between the leaders and each of the rules in this code when compiled with LuaTeX to a PDF file? When compiled (with LuaTeX) to a DVI file no white bars can be seen. a \vrule ...
4
votes
1answer
176 views

Make \leaders repeat a string at least a given number of times

Using the glossaries and glossary-longragged packages (In a memoir document) as well as a custom style I found by Googling: \newglossarystyle{dottedlocations}{% \glossarystyle{list}% \...
6
votes
2answers
2k views

How to align dotfill to the right

I use the following command below to make my list of nomenclature to look like the list of contents, but I am a bit disturbed by the fact that the dots between the text belonging to a symbol in the ...
7
votes
1answer
566 views

Multiple vertical rules along text – by using \leaders?

I want to draw individual vertical rules on the left side of consecutive paragraphs/vertical boxes covering the vertical skips. In my case for every paragraph/vertical box, there can be different ...
10
votes
2answers
336 views

leaders and evaluation order

I made this simple latex file : \documentclass{minimal} \usepackage{tikz} \newcommand\randdot{% \tikz{\pgfmathsetmacro{\r}{0.01+0.05*random()}\fill (0,0) circle (\r);}\ } \begin{document} \randdot\...
10
votes
1answer
1k views

Why \leaders and \mkern works strangely in different font size?

I can hardly determine a good title for this question, I'm sorry. Minimal test code: \documentclass{minimal} \usepackage{lipsum} \begin{document} foo {\fontsize{18}{18}\leaders\hbox{$\mkern 10000mu.\...