Debian Codegraph @

texmf-dist/doc/latex/skb/user-guide/repository/separate/separate-parts-baf.tex

raw
1 \opt{text}{\skbheading{Bibliography, Acronyms and Figures}}
2
3 So the combination of \LaTeX~and \BibTeX~already helps us for this separation.
4 Using the acronym package, we can extend this to acronyms. Looking into the highly
5 common re-use of figures, we should look into this as well. Let's take the organisation
6 of bibliographic information as a template. I store them using \BibTeX and process them
7 with the biblatex package (but that is not critical for now). My \BibTeX database is in
8 a special folder (we can call it \skbem[code]{references} for the moment) and it uses
9 a file structure that helps me to find information. This structure is based on the \BibTeX
10 and biblatex classification, i.e. inproceedings, article, book, thesis, standard, etc.
11
12 Now, I can do the same for figures: put them into a special folder (we can call it
13 \skbem[code]{figures} for the moment), which contains the source of the figures and the
14 generated formats I need for my documents (usually \skbacft{ISO:PDF}, some \skbacft{ISO:PNG}). Now I can reference these
15 figures from the repository as well as for other use cases, such as web publishing or
16 presentations\footnote{My figures are exclusively in \skbacft{W3C:SVG} using inkscape (www.inkscape.org).
17 This has the advantage of a standardised, text-based format with many export options. All my
18 figures are in a single root folder, structured very similar to the
19 document folders created above, but separated from it. This makes re-use of figures very easy.}.
20
21 Last not least, the \skbem[code]{acronym} package
22 allows for an automatic handling of acronyms, including list of acronyms.
23 It is very similar to {\scshape Bib\TeX} in that it will only show the
24 acronyms used in a document out of a (potentially large) database.
25
26 One might also want to create other specific structures, such as for programming code. Dont'
27 stop yourself, it's easier to combine things later (if the separation is not effective) than
28 to separate things that are hugely integrated into each other. For one of my internal projects,
29 a parser generation environment based on \skbacft{ANTLR}, I created a special folder for the EBNF specifications
30 along with railroad diagrams. Now I can use them in my book and my papers.
31
32 Now we name the folders for the separated content. This is straight forward, although you might want
33 to use different names (don't worry, the skb supports that). We add to the already created repository
34 folder the things we need for figures (\skbem[code]{figures}) and combine acronyms and \BibTeX in a
35 folder called \skbem[code]{database}, separating the data from all other content~\footnote{Now, the
36 reason for the database folder and it's structure
37 is that the whole \skbacft{A3DS:SKB} contains more databases, all of which reside here. If you want to simply apply this
38 to \LaTeX~documents you might want to use a different strutural approach.}.%
39 \opt{note}{This slide shows the resulting directory structure}%
40 \opt{text}{
41 Now the directory structure looks like this:
42 \begin{longtable}{|>{}p{0.945\textwidth} >{}p{1pt}|}
43 \hline
44 \rowcolor[gray]{.9}
45 \skbinput[from=fig]{dirtree/baf}
46 & \\
47 \hline
48 \end{longtable}
49 \addtocounter{table}{-1}
50 }
51
52 What did we do so far? We did separate the different parts of our
53 documents. The more clinical you are, the better the result will be. But
54 please note: separate as much as you should, not as you could. If you
55 don't find a reason for separating 'stuff', then don't do it!