diff options
author | Karl Berry <karl@freefriends.org> | 2012-02-28 00:34:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-02-28 00:34:17 +0000 |
commit | 3896a3ce963e514325035018b02583376d23aa6c (patch) | |
tree | b846e8081e3808d61fe8cc83f7c52da20cd1b473 /Master/texmf-dist/doc/luatex/lua-visual-debug/lvdebug-doc.tex | |
parent | 1c9cfa88a38e47a75fd3a9d1cb19d81330927028 (diff) |
lua-visual-debug generic (24feb12)
git-svn-id: svn://tug.org/texlive/trunk@25517 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/luatex/lua-visual-debug/lvdebug-doc.tex')
-rw-r--r-- | Master/texmf-dist/doc/luatex/lua-visual-debug/lvdebug-doc.tex | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/luatex/lua-visual-debug/lvdebug-doc.tex b/Master/texmf-dist/doc/luatex/lua-visual-debug/lvdebug-doc.tex new file mode 100644 index 00000000000..3655b96c1d1 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/lua-visual-debug/lvdebug-doc.tex @@ -0,0 +1,49 @@ +\documentclass{article} +\usepackage{graphicx,listings,lmodern} +\newcommand\LuaLaTeX{Lua\LaTeX} + +\newcommand*\pgsmall{\fontsize{8.5}{8.7}\selectfont\ttfamily} +\lstset{basicstyle=\pgsmall, + basewidth=0.55em, + columns=fullflexible, + breakautoindent=true, + breaklines=true, + prebreak=, + postbreak=\mbox{$\hookrightarrow$}, +} + +\begin{document} +\title{The lua-visual-debug package (V0.2)} +\author{Patrick Gundlach} +% \address{patrick@gundla.ch} +\maketitle +\section{About} + +This package aids debugging your \TeX\ and \LaTeX\ document by drawing rectangles around boxes and rules where glue is inserted. Other items are marked as well: kerns, hyphenation points and penalties. + +\section{How to use} + +When you load the package \texttt{lua-visual-debug} in your \LuaLaTeX\ document (or use \verb|\input lua-visual-debug.sty| in plain \TeX), Lua\TeX\ will highlight boxes, penalties, glues and kerns in the PDF. This package requires you to process the document with \LaTeX\ (plain and LaTeX formats). + +\section{A \LaTeX\ example} +\lstinputlisting[language=tex]{sample.tex} + +\noindent yields \vspace{5mm} + +\noindent \includegraphics[width=\textwidth]{sample-crop.pdf} + +\section{A plain \TeX\ example} + +\lstinputlisting[language=tex]{sample-plain.tex} + +\noindent yields \vspace{5mm} + +\noindent \includegraphics{sample-plain-crop.pdf} + + +\section{Copying} + +Copyright 2012 Patrick Gundlach (patrick@gundla.ch), licensed under the MIT license. See the Lua file for details. + + +\end{document} |