|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T m
Length: 4628 (0x1214) Types: TextFile Names: »macros.latex«
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12 └─⟦af5ba6c8e⟧ »unix3.0/DVIWARE.tar.Z« └─⟦ca79c7339⟧ └─⟦this⟧ »DVIware/laser-setters/dvi-to-ps/TeXPS/doc/macros.latex«
% MACROS % ====== % Some frequently used macros % =========================== \def\mac #1{{\tt\char'134 #1}} \def\tildetext{{\rm \char'176}} \def\texbook{\TeX{}book} \def\TeXbook{\TeX{}book} \def\OpeningBraceTT{{\tt\char`\{}} \def\ClosingBraceTT{{\tt\char`\}}} { \catcode`\~ = 12 \gdef\Tilde{~} } % Either "page" or "p." \def\PageShortForm{p.} \def\PagesShortForm{pp.} % \LabelX % ======= % #1: if it's NOT empty it is assumed to be a label which is saved. % if it's empty nothing happens. \def\LabelX #1{% \if\EmptyStringConditional{#1}% \else \gdef\SavedLabel{#1}% \fi } % Referenc macros. % ================ \def\page #1{% \if\StringsEqualConditional{#1}{,}% \page{},% \else \if\StringsEqualConditional{#1}{.}% \page{}.% \else \if\StringsEqualConditional{#1}{)}% \page{})% \else \LabelX{#1}% \PageShortForm~\pageref{\SavedLabel}% \fi \fi \fi } \def\see #1{% \LabelX{#1}% see \SectionRef{}, \page{}% } \def\See #1{% \LabelX{#1}% See \SectionRef{}, \page{}% } \def\ChapterRef #1{% \LabelX{#1}% Chapter~\ref{\SavedLabel}% } \def\SectionRef #1{% \LabelX{#1}% Section~\ref{\SavedLabel}% } \let\Section = \SectionRef \def\ItemRef #1{% \LabelX{#1}% item~\ref{\SavedLabel}% } \def\FigRef #1{% \LabelX{#1}% Fig.~\ref{\SavedLabel}% } % \FigureRef at the beginning of a sentence. \def\FigureRef #1{% \LabelX{#1}% Figure~\ref{\SavedLabel}% } \def\TableRef #1{% \LabelX{#1}% Table~\ref{\SavedLabel}% } \def\AppendixRef #1{% \LabelX{#1}% Appendix~\ref{\SavedLabel}% } \def\PagesRef #1#2{% \LabelX{#1}% \PagesShortForm~\pageref{\SavedLabel}--\pageref{#2}% } % Logos % ===== % \PS: Postscript logo \def\PS{{\sc Post\-Script}} % Metafont logo \font\MetafontLogoFont = logo10 scaled \magstep0 \def\MF{{\MetafontLogoFont METAFONT}} % AmSTeX logo \def\textfontii{\the\textfont2} \def\AmSTeX{{\textfontii A}\kern-.1667em\lower.5ex\hbox {\textfontii M}\kern-.125em{\textfontii S}-\TeX} % Hyphenation correction % ====================== \hyphenation{Ad-di-son-Wes-ley} % % Bibliography Stuff % ================== % The handling of the bibliography is done according to the % document about a bibliography system which I have written. % Define an environment which is suitable for printing it. \newenvironment{biblio}{\list{}{ \setlength{\leftmargin}{4.0cm} \setlength{\itemindent}{0.0cm} \setlength{\labelwidth}{4.0cm} \setlength{\labelsep}{0.0cm} \setlength{\baselineskip}{12pt} }}{\endlist} % % \BibRef{Knuth 84}{Donald Knuth, Sorting and Searching}{Important Book} % ====================================================================== % Define command which prints the references. There are two % commands - either print it with or print it without the auxiliary % text (.Z.... which contains comments). \def\BibRef #1#2#3{\item[{#1\hfill}] #2} % (part of the general macros) % \Bref % ===== % #1: Author % #2: Year % #3: a, b, c if there is such! \def\Bref #1#2#3{#1 (19#2#3)} % \bref: the command which allows you to cite something \def\bref #1{[#1]} % Stretch factors for spacing of one line and two lines % ===================================================== % \newcommand{\spone}{0.9} % \newcommand{\sptwo}{1.4} % The spacing change business...... % ================================= % This is a cludge according to the LaTeX manual because it uses % \edef. But it did not work with a \def. % \os: one line spacing % \ds: double line spacinb % \newcommand{\os}{\edef\baselinestretch{\spone}\Large\normalsize} % \newcommand{\ds}{\edef\baselinestretch{\sptwo}\Large\normalsize} \input {spacing.latex} % Environments which change the value of \parskip. \newenvironment {parskipzero}{\setlength{\parskip}{0pt plus 2pt}}{\par} % Print the name of the include file. \makeatletter % \def\nameincludefile{\@tempb} \makeatother % Print name of include file, date and time. % \def\time{\the\time} % \def\fileanddate{\nameincludefile:\today:\time} % \SoucePrintFigure % ================= % The source for the examples printed with this macro must be % generated with \BeginVerbWrite % #1: label. #1-verb for the source, #1-print for printing % #2: caption. \def\SourcePrintFigure #1#2{% \message{\string\SourcePrintFigure: label is "#1"} \begin{figure} \VerbAsVerb \caption[#2, source]{#2, source (output in Fig.~\protect\ref{#1-print}, p.~\protect\pageref{#1-print})} \label{#1-verb} \end{figure} \begin{figure} {\par\VerbAsSource\par} \caption[#2, printed]{#2, printed (source in Fig.~\protect\ref{#1-verb}, p.~\protect\pageref{#1-verb})} \label{#1-print} \end{figure} }