Debian Codegraph @

texmf-dist/doc/latex/skb/user-guide/repository/example-article.tex

raw
1 \opt{text}{\skbheading{A Simple Article}}
2
3 Take the article that describes the state of the art in protocols. Remember, we
4 have all the contents for that in our \skbem[code]{repository} directory.
5 We go the directory that has the published articles
6 \skbem[code]{published/articles} and create a new file say
7 \skbem[code]{protocols.tex} \opt{note}{as shown on this slide and the following two slides}.
8
9 \opt{text}{\lstinputlisting[style=generic,language=TeX]{\skbfileroot{examples/example}}}
10
11 The article uses the class \skbem[code]{skbarticle}. That class will load the \skbacft{A3DS:SKB} package and
12 the memoir class and do all settings we need. It prepares the title page and
13 prints the table of contents like any other \LaTeX~article. It uses \cmd{\skbinput}
14 to load files from the repository. The first one is loaded without requesting a level.
15 In other words, there is some text right at the beginning of our article, without
16 any special heading, like an abstract.
17
18 Then we do start the section 'Introduction' and collect a few files with their heading
19 categorised as sub-sections. Reading the directory and file names, we can already guess
20 what the introduction will be doing: it introduces general protocol concepts with regard
21 to data encoding, protocol message formats, protocols themselves and protocol services.
22 The last block loads four files with headings categorised as sections.
23 Using the directory names, we see that the remaining article
24 describes the protocols \ac{OMG:GIOP} defined by the \ac{organisation:OMG}, \ac{IETF:SNMP} by the
25 \ac{organisation:IETF}, \ac{ITU:CMIP} by the \ac{organisation:ITU} and finally \ac{W3C:HTTP} by the
26 \ac{organisation:W3C}.
27
28 Finally, we load acronyms and bebliography and finishing the article.
29 This example will create a table of contents similar to this:
30
31 \lstinputlisting[style=generic]{\skbfileroot{examples/example-toc}}
32
33 Job done. Now we can use \LaTeX~or PDF-\LaTeX~to compile our article.