| 1 |
%% |
| 2 |
%% This is file `xtrex5.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% extract.dtx (with options: `xtrex5') |
| 8 |
%% |
| 9 |
%% --------------------------------------- |
| 10 |
%% Copyright (C) 2004-2019 Hendri Adriaens |
| 11 |
%% --------------------------------------- |
| 12 |
%% |
| 13 |
%% This work may be distributed and/or modified under the |
| 14 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 15 |
%% of this license or (at your option) any later version. |
| 16 |
%% The latest version of this license is in |
| 17 |
%% http://www.latex-project.org/lppl.txt |
| 18 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 19 |
%% version 2003/12/01 or later. |
| 20 |
%% |
| 21 |
%% This work has the LPPL maintenance status "maintained". |
| 22 |
%% |
| 23 |
%% This Current Maintainer of this work is Hendri Adriaens. |
| 24 |
%% |
| 25 |
%% This work consists of the file extract.dtx and the derived files |
| 26 |
%% extract.sty, xtrex1.tex, xtrex2.tex, xtrex3.tex, xtrex4.tex, |
| 27 |
%% xtrex5.tex, xtrex6.tex and xtrex7.tex. |
| 28 |
%% |
| 29 |
%% The following files constitute the extract package and must be |
| 30 |
%% distributed as a whole: readme, extract.dtx, extract.pdf and |
| 31 |
%% extract.sty. |
| 32 |
%% |
| 33 |
\documentclass{article} |
| 34 |
\usepackage[ |
| 35 |
active, |
| 36 |
generate=file, |
| 37 |
copydocumentclass=false, |
| 38 |
extract-labels=type-a, |
| 39 |
line-labels={type-a,type-c}, |
| 40 |
line-nrs=3 |
| 41 |
]{extract} |
| 42 |
\begin{extract}[type-a] |
| 43 |
\documentclass{article} |
| 44 |
\end{extract} |
| 45 |
\begin{extract}[type-b] |
| 46 |
\documentclass{book} |
| 47 |
\end{extract} |
| 48 |
\begin{document} |
| 49 |
\parindent0pt |
| 50 |
\extractline[type-a]line 1\\ |
| 51 |
\extractline*line 2\\ |
| 52 |
\extractline line 3\\ |
| 53 |
\extractline*[type-a]line 4\\ |
| 54 |
\extractline*[type-c]line 5\\ |
| 55 |
\extractline line 6\\ |
| 56 |
\end{document} |
| 57 |
\endinput |
| 58 |
%% |
| 59 |
%% End of file `xtrex5.tex'. |