|
|
@ -9,7 +9,7 @@ but for two other documentclass options, namely,
|
|
|
|
|
|
|
|
|
|
|
|
The `.dtx` file is the source, in combination with the `.ins` file.
|
|
|
|
The `.dtx` file is the source, in combination with the `.ins` file.
|
|
|
|
|
|
|
|
|
|
|
|
**Step 1**: generate the `.sty` file using TeX.
|
|
|
|
**Step 1**: generate the `.sty` file using TeX: `tex ifprintedition.ins`
|
|
|
|
```
|
|
|
|
```
|
|
|
|
taha@luxor:/usr/local/texlive/texmf-local/tex/latex/ifprintedition
|
|
|
|
taha@luxor:/usr/local/texlive/texmf-local/tex/latex/ifprintedition
|
|
|
|
$ tex ifprintedition.ins
|
|
|
|
$ tex ifprintedition.ins
|
|
|
@ -65,7 +65,7 @@ is very annoying.
|
|
|
|
> the interactive confirmation step.
|
|
|
|
> the interactive confirmation step.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Step 2**: generate PDF documentation from `dtx` using LaTeX.
|
|
|
|
**Step 2**: generate PDF documentation from `dtx` using LaTeX: `pdflatex ifprintedition.dtx`
|
|
|
|
```
|
|
|
|
```
|
|
|
|
taha@luxor:/usr/local/texlive/texmf-local/tex/latex/ifprintedition
|
|
|
|
taha@luxor:/usr/local/texlive/texmf-local/tex/latex/ifprintedition
|
|
|
|
$ pdflatex ifprintedition.dtx
|
|
|
|
$ pdflatex ifprintedition.dtx
|
|
|
@ -97,7 +97,7 @@ Now is a good time to edit the `% \CheckSum{0}` line in the `dtx` file
|
|
|
|
with the correct number.
|
|
|
|
with the correct number.
|
|
|
|
|
|
|
|
|
|
|
|
> Note, during development you might want to reset to `\CheckSum{0}` to
|
|
|
|
> Note, during development you might want to reset to `\CheckSum{0}` to
|
|
|
|
> avoid compilation errors.
|
|
|
|
> avoid compilation errors and having to reset it manually on every re-compile.
|
|
|
|
|
|
|
|
|
|
|
|
And you might want to use `latexmk -pdf ...` instead of `pdflatex ...`
|
|
|
|
And you might want to use `latexmk -pdf ...` instead of `pdflatex ...`
|
|
|
|
to run the requisite number of compilations and also generate index, etc.
|
|
|
|
to run the requisite number of compilations and also generate index, etc.
|
|
|
@ -141,3 +141,4 @@ You will need to set something similar in your own documentclass for the
|
|
|
|
+ https://tex.stackexchange.com/questions/34175/how-do-i-create-a-latex-package
|
|
|
|
+ https://tex.stackexchange.com/questions/34175/how-do-i-create-a-latex-package
|
|
|
|
+ https://www.overleaf.com/learn/latex/Writing_your_own_package
|
|
|
|
+ https://www.overleaf.com/learn/latex/Writing_your_own_package
|
|
|
|
+ https://tex.stackexchange.com/questions/21909/classes-and-packages-whats-the-difference
|
|
|
|
+ https://tex.stackexchange.com/questions/21909/classes-and-packages-whats-the-difference
|
|
|
|
|
|
|
|
+ https://tex.stackexchange.com/questions/74941/add-option-to-class-with-command
|
|
|
|