summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/xhfill/xhfill-doc.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-05-14 22:30:24 +0000
committerKarl Berry <karl@freefriends.org>2011-05-14 22:30:24 +0000
commit937f42e344ee749b7fa0b175ad026955bf90c9fd (patch)
treef3198ff78f5db3d1d4addf4544ee838e37d6fe3c /Master/texmf-dist/doc/latex/xhfill/xhfill-doc.tex
parent636ed5625494c64416dcd3a484300de499e07b10 (diff)
new latex package xhfill 1.00 (13may11)
git-svn-id: svn://tug.org/texlive/trunk@22475 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/xhfill/xhfill-doc.tex')
-rw-r--r--Master/texmf-dist/doc/latex/xhfill/xhfill-doc.tex102
1 files changed, 102 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/xhfill/xhfill-doc.tex b/Master/texmf-dist/doc/latex/xhfill/xhfill-doc.tex
new file mode 100644
index 00000000000..0e8e19d521b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/xhfill/xhfill-doc.tex
@@ -0,0 +1,102 @@
+\documentclass[12pt]{article}
+\usepackage[T1]{fontenc}
+\usepackage[scaled=0.85]{beramono}
+\usepackage{berasans}
+\usepackage{beraserif}
+\usepackage{xhfill}
+\let\FileVersion\fileversion
+\usepackage{listings}
+\lstset{language=[LaTeX]TEX,basicstyle=\ttfamily\small,%
+ extendedchars=true,numbers=left,numberstyle=\tiny,%
+ xleftmargin=2em,breaklines=true}
+
+\newcommand{\xfill}[2][1ex]{{%
+ \dimen0=#2\advance\dimen0 by #1
+ \leaders\hrule height \dimen0 depth -#1\hfill%
+}}
+\newcommand{\xfilll}[2][1ex]{%
+ \dimen0=#2\advance\dimen0 by #1%
+ \leaders\hrule height \dimen0 depth -#1\hfill%
+}
+
+\begin{document}
+\title{Package \texttt{xhfill}\\v\FileVersion}
+\author{Herbert Vo\ss}
+\date{\today}
+\maketitle
+blah\xfill{1pt}blub
+\begin{lstlisting}
+blah\xfill{1pt}blub
+\end{lstlisting}
+
+blah\xfill{3pt}blub
+\begin{lstlisting}
+blah\xfill{3pt}blub
+\end{lstlisting}
+
+blah\xfill[0pt]{4pt}blub
+\begin{lstlisting}
+blah\xfill[0pt]{4pt}blub
+\end{lstlisting}
+
+blah\xfill[-12pt]{12pt}blub
+\begin{lstlisting}
+blah\xfill[-12pt]{12pt}blub
+\end{lstlisting}
+
+blah\xfilll{1pt}blub
+\begin{lstlisting}
+blah\xfilll{1pt}blub
+\end{lstlisting}
+blah\xfilll{1pt}blub
+\begin{lstlisting}
+blah\xfilll{1pt}blub
+\end{lstlisting}
+
+blah\xfilll[0pt]{4pt}blub
+\begin{lstlisting}
+blah\xfilll[0pt]{4pt}blub
+\end{lstlisting}
+
+blah\xfilll[-12pt]{12pt}blub
+\begin{lstlisting}
+blah\xfilll[-12pt]{12pt}blub
+\end{lstlisting}
+
+blah\xrfill{1pt}[blue]blub blah\xrfill{2pt}[cyan]blub
+\begin{lstlisting}
+blah\xrfill{1pt}[blue]blub blah\xrfill{2pt}[cyan]blub
+\end{lstlisting}
+
+laber\xrfill[0pt]{4pt}[green]blub blub
+\begin{lstlisting}
+laber\xrfill[0pt]{4pt}[green]blub blub
+\end{lstlisting}
+
+blah\xrfill[-1ex]{1pt}[red]blub
+\begin{lstlisting}
+blah\xrfill[-1ex]{1pt}[red]blub
+\end{lstlisting}
+
+blah \xhrulefill{cyan}{1cm} blub
+\begin{lstlisting}
+blah \xhrulefill{cyan}{1cm} blub
+\end{lstlisting}
+
+blah \xhrectanglefill{0.5cm}{1pt} blubber
+\begin{lstlisting}
+blah \xhrectanglefill{0.5cm}{1pt} blubber
+\end{lstlisting}
+
+blah\xdotfill{1pt}[blue]blah\xdotfill{2pt}[red]blub
+\begin{lstlisting}
+blah\xdotfill{1pt}[blue]blah\xdotfill{2pt}[red]blub
+\end{lstlisting}
+
+
+\subsection*{The code}
+
+\lstinputlisting{xhfill.sty}
+
+
+\end{document}