Debian Codegraph @

texmf-dist/doc/latex/makegobbler/README.md

raw
1
2 # Table of Contents
3
4 1. [Purpose](#org42e0afd)
5 2. [Installation](#org3f8d4b6)
6 1. [Installation from CTAN](#org9d14a52)
7 2. [Installation from the SVN report](#org215c06a)
8 3. [Project page & bug reports](#org11eab36)
9 4. [Request for help](#orga576a2a)
10 5. [License](#org708a5d6)
11
12
13
14 <a id="org42e0afd"></a>
15
16 # Purpose
17
18 The purpose of the `makegobbler` package is to make easy to gobble (drop) or ungobble
19 (keep) some part of your LaTeX source code, conditionally or unconditionally. The part
20 that is to be gobbled/ungobbled is delimited with a user-defined delimiter control
21 sequence.
22
23
24 <a id="org3f8d4b6"></a>
25
26 # Installation
27
28 Below `TEXMF_INSTALL_DIR` environment variable points at the TEXMF directory desired for installation.
29
30
31 <a id="org9d14a52"></a>
32
33 ## Installation from CTAN
34
35 One can use the following bash script to get and install the package
36 from CTAN, you will need tools like `wget`, `latexmk`, `perl` (to run
37 `latexmk`) and a LaTeX distro :
38
39 # make a temp dir for easier cleanup
40 work_dir=$(mktemp -d /tmp/makegobbler-install.XXXXXX)
41 pushd $work_dir
42 # get the paquetage
43 wget https://mirror.ctan.org/macros/latex/contrib/makegobbler.zip
44 # unzip
45 unzip makegobbler.zip
46 cd makegobbler
47 # set TEXMF_INSTALL_DIR to the installation target TEXMF
48 [ -d "$TEXMF_INSTALL_DIR" ] || TEXMF_INSTALL_DIR=$(HOME)/texmf
49 pdftex makegobbler.ins
50 mkdir -p "$TEXMF_INSTALL_DIR/tex/latex/makegobbler"
51 cp makegobbler.sty "$TEXMF_INSTALL_DIR/tex/latex/makegobbler"
52 # doc generation, skip if you don't want to recompile the manual
53 latexmk -pdf makegobbler.dtx
54 mkdir -p "$TEXMF_INSTALL_DIR/doc/latex/makegobbler"
55 cp makegobbler.pdf "$TEXMF_INSTALL_DIR/doc/latex/makegobbler/makegobbler-doc.pdf"
56 # cleanup
57 popd
58 rm -fr $work_dir
59
60
61 <a id="org215c06a"></a>
62
63 ## Installation from the SVN report
64
65 If you wish the very latest dev version possibly not yet released to
66 CTAN &#x2014; at your own perils &#x2014; then you may use the following
67 script. You will need a `svn` client, as well as GNU make.
68
69 # make a temp dir for easier cleanup
70 work_dir=$(mktemp -d /tmp/makegobbler-install.XXXXXX)
71 pushd $work_dir
72 # get the package source
73 svn checkout https://svn.gnu.org.ua/sources/latex-makegobbler/trunk .
74 # set TEXMF_INSTALL_DIR to the installation target TEXMF
75 [ -d "$TEXMF_INSTALL_DIR" ] || TEXMF_INSTALL_DIR=$(HOME)/texmf
76 export TEXMF_INSTALL_DIR
77 # make is GNUmake
78 make install README_EXT=org
79 # cleanup
80 popd
81 rm -fr $work_dir
82
83
84 <a id="org11eab36"></a>
85
86 # Project page & bug reports
87
88 - Project page : <https://puszcza.gnu.org.ua/projects/latex-makegobbler>
89 - Please submit bug reports here : <https://puszcza.gnu.org.ua/bugs/?group=latex-makegobbler>
90
91
92 <a id="orga576a2a"></a>
93
94 # Request for help
95
96 Any volunteer to translate the manual to your favorite language is welcome.
97
98
99 <a id="org708a5d6"></a>
100
101 # License
102
103 Le package is dual licensed.
104
105 - [LPPL 1.3c license](https://ctan.org/license/lppl1.3c)
106 - [CeCILL v2 license](https://cecill.info/licences/Licence_CeCILL_V2-fr.html)
107