Debian Codegraph @

texmf-dist/doc/latex/xhfill/xhfill-doc.tex

raw
1 %% $Id: xhfill-doc.tex 501 2011-05-14 09:41:09Z herbert $
2 \documentclass[12pt]{article}
3 \usepackage[T1]{fontenc}
4 \usepackage[scaled=0.85]{beramono}
5 \usepackage{berasans}
6 \usepackage{beraserif}
7 \usepackage{xhfill}
8 \let\FileVersion\fileversion
9 \usepackage{listings}
10 \lstset{language=[LaTeX]TEX,basicstyle=\ttfamily\small,%
11 extendedchars=true,numbers=left,numberstyle=\tiny,%
12 xleftmargin=2em,breaklines=true}
13
14 \newcommand{\xfill}[2][1ex]{{%
15 \dimen0=#2\advance\dimen0 by #1
16 \leaders\hrule height \dimen0 depth -#1\hfill%
17 }}
18 \newcommand{\xfilll}[2][1ex]{%
19 \dimen0=#2\advance\dimen0 by #1%
20 \leaders\hrule height \dimen0 depth -#1\hfill%
21 }
22
23 \begin{document}
24 \title{Package \texttt{xhfill}\\v\FileVersion}
25 \author{Herbert Vo\ss}
26 \date{\today}
27 \maketitle
28 blah\xfill{1pt}blub
29 \begin{lstlisting}
30 blah\xfill{1pt}blub
31 \end{lstlisting}
32
33 blah\xfill{3pt}blub
34 \begin{lstlisting}
35 blah\xfill{3pt}blub
36 \end{lstlisting}
37
38 blah\xfill[0pt]{4pt}blub
39 \begin{lstlisting}
40 blah\xfill[0pt]{4pt}blub
41 \end{lstlisting}
42
43 blah\xfill[-12pt]{12pt}blub
44 \begin{lstlisting}
45 blah\xfill[-12pt]{12pt}blub
46 \end{lstlisting}
47
48 blah\xfilll{1pt}blub
49 \begin{lstlisting}
50 blah\xfilll{1pt}blub
51 \end{lstlisting}
52 blah\xfilll{1pt}blub
53 \begin{lstlisting}
54 blah\xfilll{1pt}blub
55 \end{lstlisting}
56
57 blah\xfilll[0pt]{4pt}blub
58 \begin{lstlisting}
59 blah\xfilll[0pt]{4pt}blub
60 \end{lstlisting}
61
62 blah\xfilll[-12pt]{12pt}blub
63 \begin{lstlisting}
64 blah\xfilll[-12pt]{12pt}blub
65 \end{lstlisting}
66
67 blah\xrfill{1pt}[blue]blub blah\xrfill{2pt}[cyan]blub
68 \begin{lstlisting}
69 blah\xrfill{1pt}[blue]blub blah\xrfill{2pt}[cyan]blub
70 \end{lstlisting}
71
72 laber\xrfill[0pt]{4pt}[green]blub blub
73 \begin{lstlisting}
74 laber\xrfill[0pt]{4pt}[green]blub blub
75 \end{lstlisting}
76
77 blah\xrfill[-1ex]{1pt}[red]blub
78 \begin{lstlisting}
79 blah\xrfill[-1ex]{1pt}[red]blub
80 \end{lstlisting}
81
82 blah \xhrulefill{cyan}{1cm} blub
83 \begin{lstlisting}
84 blah \xhrulefill{cyan}{1cm} blub
85 \end{lstlisting}
86
87 blah \xhrectanglefill{0.5cm}{1pt} blubber
88 \begin{lstlisting}
89 blah \xhrectanglefill{0.5cm}{1pt} blubber
90 \end{lstlisting}
91
92 blah\xdotfill{1pt}[blue]blah\xdotfill{2pt}[red]blub
93 \begin{lstlisting}
94 blah\xdotfill{1pt}[blue]blah\xdotfill{2pt}[red]blub
95 \end{lstlisting}
96
97
98 \subsection*{The code}
99
100 \lstinputlisting{xhfill.sty}
101
102
103 \end{document}