% \iffalse meta-comment % $Header$ % % $Log$ % % \fi % \CheckSum{37} % \def\fileversion{1.0} % \def\filedate{26 May 97} % \def\docdate{26 May 97} % % \changes{v1.0}{26 May 97}{First release} % % \MakeShortVerb{\|} % % \title{Putting ``dangerous bend'' symbols in the margin of difficult % tutorial questions.} % \author{Nick Urbanik} % \maketitle % \begin{abstract} % Use this to indicate which tutorial questions are more difficult (or % less relevant to the core syllabus!) % \end{abstract} %\StopEventually{} % \section{Producing the documentation} % Here is a short driver program that can be extracted with the \LaTeX2e % |docstrip| program. % \begin{macrocode} %<*driver> \documentclass{article}% \usepackage{a4,doc} \EnableCrossrefs % Make a full index. \CodelineIndex % Index by line numbers rather than by page. \RecordChanges % Show change history. \begin{document} \DocInput{dbend.dtx} \PrintIndex \PrintChanges % \end{macrocode} % Now tell the people what they need to do next to get the index and % change list: % \begin{macrocode} \message{Next, to make the index and changes list for this documentation:} \message{2. makeindx -s gind.ist dbend} \message{3. makeindx -s gglo.ist -o dbend.gls dbend.glo} \message{Finally, run this file through LaTeX once more.} % \end{macrocode} % % \begin{macrocode} \end{document} % % \end{macrocode} % \begin{macrocode} %<*package> \ProvidesPackage{dbend}[97/05/26 ver 1.0 Creates dangerous bend in the margin] % \end{macrocode} % % It's all in Don Knuth's \texttt{manfnt} font. % \begin{macrocode} \font\manual=manfnt % \end{macrocode} % The |dbend| macro puts the double bend symbol right there, but it % has greater depth than the \texttt{manfnt.tfm} file indicates, so it % overwrites what comes below it, but it does not change the line spacing. % \begin{macrocode} \def\dbend{{\manual\char127}} % \end{macrocode} % % \DescribeMacro{bend} % The |bend| macro puts the double bend symbol right there, hopefully % not overwriting any other text. However, it can increase the line % spacing for that line. % \begin{macrocode} \newcommand*{\bend}{\parbox[t][4.3ex][t]{1.5em}{\dbend\vfill}} %\newcommand*{\tricky}{\llap{\dbend\hspace*{15mm}}} % \end{macrocode} % \DescribeMacro{tricky} % The |tricky| macro takes no arguments. It simply places the double % bend symbol from Don Knuth's \TeX{}book and places it in the margin. % \begin{macrocode} \newcommand*{\tricky}{\makebox[0pt][r]{\dbend\hspace*{15mm}}} % % \end{macrocode} % % This |\endinput| command prevents anything else from being read by % |docstrip|, such as the character table. % \begin{macrocode} \endinput % \end{macrocode} % \Finale