| 1 |
\opt{text}{\skbheading{Separate Content from Structure: the Repository Folder}} |
| 2 |
|
| 3 |
Now, separating the structure from the content first. The structure of a |
| 4 |
document (we stay with classic text documents like articles, books, etc. |
| 5 |
for a while) is words in sentences in paragraphs in (sub-) sections in |
| 6 |
chapters (if its a book, of not only sections)\footnote{One very |
| 7 |
meticulous person might add 'characters' and mention that there are more |
| 8 |
ways to think about a document's structure. But that person is not me. The |
| 9 |
structure I used fits the purpose (as of now), if it doesn't anymore I |
| 10 |
will look further.}. We collect sentences and paragraphs but separate them |
| 11 |
from headings. \LaTeX~is doing that already with the macros for chapters and |
| 12 |
sections. We go one step further and provide a generic way to identify a |
| 13 |
heading with the \skbacft{A3DS:SKB} macro \cmd{\setheading}. This allows to select the appropriate |
| 14 |
\LaTeX~heading level at a later stage having the context of that later stage in mind |
| 15 |
(i.e. it might be a section in an article but a chapter in a book). Now we create |
| 16 |
a structure for the resulting files in our repository, adding meaningful names to |
| 17 |
the directories and files. Obviously the names of these folders should provide some |
| 18 |
idea about the general characterisation of the files they contain. Example? Well, if you collect |
| 19 |
information from \acs{SDO} the top folder |
| 20 |
could be named \skbem[code]{sdo} and the sub-folders using the |
| 21 |
respective \ac{SDO} acronyms, such as \skbem[code]{omg} for the \skbacft{organisation:OMG} and |
| 22 |
\skbem[code]{ieee} for the \skbacft{organisation:IEEE} and \skbem[code]{ietf} for the |
| 23 |
\skbacft{organisation:IETF}. We put all this in a folder named repository, making it explicit |
| 24 |
that here is were we find all our normative content. |
| 25 |
\opt{text}{The following example}\opt{note}{This slide} shows how that looks like. |
| 26 |
|
| 27 |
\opt{text}{ |
| 28 |
\begin{longtable}{|>{}p{0.945\textwidth} >{}p{1pt}|} |
| 29 |
\hline |
| 30 |
\rowcolor[gray]{.9} |
| 31 |
\skbinput[from=fig]{dirtree/repository} |
| 32 |
& \\ |
| 33 |
\hline |
| 34 |
\end{longtable} |
| 35 |
\addtocounter{table}{-1} |
| 36 |
} |
| 37 |
|
| 38 |
The result: we have a structure of files, containing our 'stuff', |
| 39 |
integrated in a structure of folders that allows us to find it (the better |
| 40 |
this structure the more helpful it is, and remember this is a 'personal' |
| 41 |
repository, so your personal flavour is king). |