Debian Codegraph @

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

raw
1 \documentclass[pagesize=auto]{scrartcl}
2
3 \usepackage{fixltx2e}
4 \usepackage{etex}
5 \usepackage{xspace}
6 \usepackage{lmodern}
7 \usepackage[T1]{fontenc}
8 \usepackage{textcomp}
9 \usepackage{booktabs}
10 \usepackage{microtype}
11 \usepackage[unicode=true]{hyperref}
12
13 \newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{<#1>}}}
14 \newcommand*{\pkg}[1]{\textsf{#1}}
15 \newcommand*{\cls}[1]{\textsf{#1}}
16 \newcommand*{\cs}[1]{\texttt{\textbackslash#1}}
17 \makeatletter
18 \newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}}
19 \makeatother
20 \newcommand*{\env}[1]{\texttt{#1}}
21 \newcommand*{\opt}[1]{\texttt{#1}}
22 \newcommand*{\meta}[1]{\textlangle\textsl{#1}\textrangle}
23 \newcommand*{\marg}[1]{\texttt{\{}\meta{#1}\texttt{\}}}
24 \newcommand*{\oarg}[1]{\texttt{[}\meta{#1}\texttt{]}}
25 \newcommand*{\BibTeX}{Bib\kern-0.08em\TeX\@\xspace}
26 \newcommand*{\BigTeX}{Big\kern-0.08em\TeX\@\xspace}
27
28 \pdfstringdefDisableCommands{%
29 \def\BibTeX{BibTeX\xspace}%
30 \def\BigTeX{BigTeX\space}%
31 }
32
33 \addtokomafont{title}{\rmfamily}
34
35 \title{The \pkg{excludeonly} package}
36 \author{Dan Luecking \mail{[email protected]}\and Donald Arseneau \mail{[email protected]}}
37 \date{2003/03/14}
38
39
40 \begin{document}
41
42 \maketitle
43
44 \noindent
45 This software is contributed to the public domain.
46
47
48 \section{Usage:}
49
50 In the document preamble, ``\verb+\excludeonly{+\meta{aaa}\verb+,+\meta{bbb}\verb+}+'' will prevent files
51 \texttt{\meta{aaa}.tex} and \texttt{\meta{bbb}.tex} from being typeset by \cmd{\include}\marg{aaa} and \cmd{\include}\marg{bbb}.
52 If both \cmd{\includeonly} and \cmd{\excludeonly} are used, then only the files
53 permitted by both declarations are used:
54 %
55 \begin{flushleft}
56 \verb+\includeonly{+\meta{aaa}\verb+,+\meta{bbb}\verb+}+\\
57 \verb+\excludeonly{+\meta{bbb}\verb+,+\meta{ccc}\verb+}+
58 \end{flushleft}
59 %
60 results in only \meta{aaa} being included.
61 This behavior contradicts the name ``exclude only'' but the name is
62 desirable anyway to show the relationship with \cmd{\includeonly}.
63
64 In case it is actually desireable that \cmd{\excludeonly} lives up
65 to its name, and causes \emph{all} parts to be included, except those
66 explicitly listed for exclusion, there is an \opt{[only]} package option
67 %
68 \begin{verbatim}
69 \usepackage[only]{excludeonly}
70 \end{verbatim}
71 %
72 The effect of this is to override any \cmd{\includeonly} commands.
73
74
75 \section{Conflicts:}
76
77 This package redefines the internal \cmd{\@include} command, so it could
78 conflict with other redefinitions. Known conflicts are with document
79 classes ``\cls{paper.cls}'' and ``\cls{thesis.cls}'' by Wenzel Matiaske.
80
81 A different method for implementing \cmd{\excludeonly} would be to
82 redefine \cmd{\@setckpt} to compile a file-inclusion list (\cmd{\@partlist})
83 that accounts for exclusions. Surprisingly, several packages
84 redefine \cmd{\@setckpt}, so this alternative would have more conflicts.
85
86 \end{document}
87
88
89
90
91