Debian Codegraph @

texmf-dist/doc/latex/ijsra/ijsra.tex

raw
1 \documentclass[
2 % year=2016,
3 % month=October,
4 % number=1,
5 % volume=2,
6 ]{ijsra}
7 \def\IJSRAidentifier{\currfilebase}
8 %--------Author’s names------------
9 \def\authorone{Lukas C. Bossert}
10 %-------Biographical information-------------
11 \def\bioone{The coding of this documentclass is done at \href{https://github.com/LukasCBossert/documentclass-ijsra}{https://github.com/LukasCBossert/documentclass-ijsra}
12 \alertwarning{Please know that this documentation may be deprecated since all developments are written down it the wiki of the journal’s repository: \url{https://github.com/LukasCBossert/ijsra/wiki}.}}
13 %-------Title-------------
14 \def\maintitle{The \texttt{ijsra}-class, Version \IJSRAversion\ -- \IJSRAversiondate}
15 \def\shorttitle{\maintitle}
16 \def\abstract{This is a documentation of the class \texttt{ijsra} which is used for the
17 \emph{International Journal of Student Research in Archaeology}.
18 Read this documentation carefully.
19 When you start editing do it according to the structure shown in \cref{document}.}
20 %------University/Institution--------------
21 \def\affilone{digitales-altertum|de}
22 %--------Email------------
23 \def\cmail{[email protected]}
24 %\def\keywordname{}
25 \def\keywords{documentclass, \LaTeX , IJSRA}
26 %--------------------------------------------------------------
27
28
29 \begin{filecontents}{\IJSRAidentifier.bib}
30
31 @Book{Winckelmann2006,
32 title = {History of the Art of Antiquity},
33 publisher = {Getty Research Institute},
34 year = {2006},
35 author = {Winckelmann, J. J.},
36 location = {Los Angeles},
37 origdate = {1764},
38 related = {Winckelmann1764},
39 relatedtype = {translationof},
40 translator = {Mallgrave, Harry Francis},
41 }
42
43 @Book{Winckelmann1764,
44 title = {Geschichte der Kunst des Alterthums},
45 publisher = {Walther},
46 year = {1764},
47 author = {Winckelmann, J. J.},
48 location = {Dresden},
49 }
50
51
52 @Incollection{Orengo2015,
53 author = {Orengo, H.},
54 title = {Open Source GIS and Geospatial Software in Archaeology},
55 subtitle = {Towards Their Integration into Everyday Archaeological Practice},
56 pages = {64--82},
57 editor = {Wilson, A. T. and Edwards, B.},
58 booktitle = {Open Source Archaeology},
59 booksubtitle = {Ethics and Practice},
60 publisher = {deGruyter Open},
61 location = {Warsaw},
62 year = {2015},
63 }
64
65 @Article{Pikirayi2015,
66 author = {Pikirayi, I.},
67 title = {The Future of Archaeology in Africa},
68 journaltitle = {Antiquity},
69 volume = {89},
70 pages = {531--541},
71 year = {2015},
72 issue = {345},
73 }
74
75 @Article{Bossert-ijsra,
76 author = {Lukas C. Bossert},
77 title = {›ijsra‹ -- bib\LaTeX-style which is used for the \emph{International Journal of Student Research in Archaeology}},
78 subtitle = {Version: 0.1},
79 url = {http://www.ctan.org/pkg/biblatex-ijsra},
80 keywords = {latex},
81 year ={2016},
82 note = {https://github.com/LukasCBossert/biblatex-ijsra},
83 owner = {Lukas C. Bossert},
84 timestamp = {2016-07-04},
85 }
86
87 \end{filecontents}
88
89 \lstMakeShortInline[style=code]|
90 \IJSRAopening
91
92
93 %\IJSRAseparator
94
95 \lettrine{E}{very} article\IJSRAsection{starting} starts with a lettrine as the first letter.
96 This bigger letter functions as an eye catcher to make clear where the article starts.
97 It effects the whole word: The first letter reaches down to the third line, the other letters of the word are capitalised.
98 In \cref{lettrine} you see the code how this is achieved.
99
100 \begin{lstlisting}[label=lettrine,caption={Starting letter}]
101 \lettrine{E}{very} article ...
102 \end{lstlisting}
103 If you have a letter which is rather slanted you can define the slope.
104 Let’s have a look at the letter ›A‹.
105 \begin{lstlisting}[label=lettrine,caption={Starting letter ›A‹}]
106 \lettrine[slope=4pt,findent=-3pt]{A}{rchaeologists} …
107 \end{lstlisting}
108 And it changes of course if we start the article with a ›W‹.
109 \begin{lstlisting}[label=lettrine,caption={Starting letter ›W‹}]
110 \lettrine[slope=-4pt,nindent=-4pt]{W}{hen} ...
111 \end{lstlisting}
112
113 \IJSRAseparator
114 The |tex|-file \IJSRAsection{document class}of each article starts with the definition of the document class.
115 Herefor we use the destinctive class |ijsra| and load it with this line:
116 \begin{lstlisting}[label=documentclass,caption={First line of tex-file.}]
117 \documentclass[<options>]{ijsra}
118 \end{lstlisting}
119 For |<options>| you can use e.g. |draft|: this will omitt the figures and gives you a white frame with the size of the figures instead.
120 The advantage is faster compiling.
121
122 \IJSRAseparator
123 Each article contains several information about the author(s), title etc.
124 The document class can cope easily with one to five authors and their affiliation.
125 Above that manual work is needed.
126 The information about author, title, affiliation, biography etc are written into curly brackets.
127 \begin{lstlisting}[label=information,caption={Information about the article}]
128 \def\IJSRAidentifier{\currfilebase} %<---- do not change this!
129 %-------Title | Email | Keywords | Abstract-------------
130 \def\shorttitle{Jons short title}
131 \def\maintitle{Jons very long title about his paper}
132 \def\cmail{[email protected]}%<---- corresponding email-address
133 \def\keywords{Research, Archaeology, ...}
134 %\def\keywordname{}%<--- redefine the name ›Keywords‹ in needed language
135 \def\abstract{In his paper Jon is showing ...}
136 %--------Author names------------
137 \def\authorone{Jon Doe}
138 %\def\authortwo{}%<---- comment/delete if there is no second author.
139 %\def\authorthree{}%<---- comment/delete if there is no third author.
140 %\def\authorfour{}%<---- comment/delete if there is no fourth author.
141 %\def\authorfive{}%<---- comment/delete if there is no fifth author.
142 %-------Biographical information-------------
143 \def\bioone{Jon Doe is doing his research about ...}
144 %\def\biotwo{}%<---- comment/delete if there is no second author.
145 %\def\biothree{}%<---- comment/delete if there is no third author.
146 %\def\biofour{}%<---- comment/delete if there is no fourth author.
147 %\def\biofive{}%<---- comment/delete if there is no fifth author.
148 %------University/Institution--------------
149 \def\affilone{Jon Doe’s university or institution}
150 %\def\affiltwo{}%<---- comment/delete if there is no second author.
151 %\def\affilthree{}<---- comment/delete if there is no third author.
152 %\def\affilfour{}<---- comment/delete if there is no fourth author.
153 %\def\affilfive{}<---- comment/delete if there is no fifth author.
154 %--------Mapping of authors to their affiliations------------
155 %% authorone:--> * <--- copy/paste that symbol
156 %% authortwo:--> † <--- copy/paste that symbol
157 %% authorthree:--> ‡ <--- copy/paste that symbol
158 %% authorfour: --> § <--- copy/paste that symbol
159 %% authorfive: --> ¶ <--- copy/paste that symbol
160 %-----------------------------------------------------------------
161 %\def\affiloneauthor{}%<---- paste the symbol of the authors into {}
162 %\def\affiltwoauthor{}%<---- paste the symbol of the authors into {}
163 %\def\affilthreeauthor{}%<---- paste the symbol of the authors into {}
164 %\def\affilfourauthor{}%<---- paste the symbol of the authors into {}
165 %\def\affilfiveauthor{}%<---- paste the symbol of the authors into {}
166 \end{lstlisting}
167 \IJSRAseparator
168 After the definitions there is the block regarding the bibliographical entries.
169 Those are written in the section
170 \begin{lstlisting}[label=bibliography,caption={Bibliographical information}]
171 \begin{filecontents}{\IJSRAidentifier.bib} %<--- do not change this
172
173 @Incollection{Orengo2015,
174 author = {Orengo, H.},
175 title = {Open Source GIS and Geospatial Software in Archaeology},
176 subtitle = {Towards Their Integration into Everyday Archaeological Practice},
177 pages = {64--82},
178 editor = {Wilson, A. T. and Edwards, B.},
179 booktitle = {Open Source Archaeology},
180 booksubtitle = {Ethics and Practice},
181 publisher = {deGruyter Open},
182 location = {Warsaw},
183 year = {2015},
184 }
185
186 @Article{Pikirayi2015,
187 author = {Pikirayi, I.},
188 title = {The Future of Archaeology in Africa},
189 journaltitle = {Antiquity},
190 volume = {89},
191 pages = {531--541},
192 year = {2015},
193 issue = {345},
194 }
195
196 @Article{Bossert-ijsra,
197 author = {Lukas C. Bossert},
198 title = {›ijsra‹ -- bib\LaTeX-style which is used for the \emph{International Journal of Student Research in Archaeology}},
199 subtitle = {Version: 0.1},
200 url = {http://www.ctan.org/pkg/biblatex-ijsra},
201 keywords = {latex},
202 note = {https://github.com/LukasCBossert/biblatex-ijsra},
203 owner = {Lukas C. Bossert},
204 timestamp = {2016-07-04},
205 }
206 .
207 .
208 .
209 @Book{Winckelmann2006,
210 title = {History of the Art of Antiquity},
211 publisher = {Getty Research Institute},
212 year = {2006},
213 author = {Winckelmann, J. J.},
214 location = {Los Angeles},
215 origdate = {1764},
216 related = {Winckelmann1764},
217 relatedtype = {translationof},
218 translator = {Mallgrave, Harry Francis},
219 }
220
221 @Book{Winckelmann1764,
222 title = {Geschichte der Kunst des Alterthums},
223 publisher = {Walther},
224 year = {1764},
225 author = {Winckelmann, J. J.},
226 location = {Dresden},
227 }
228
229
230 \end{filecontents}
231 \end{lstlisting}
232
233 After that we have completed the preamble and get to main part of the document.
234 Here we define the layout of the headline.
235
236 \begin{lstlisting}[label=headline,caption={Headline layout}]
237 \IJSRAopening %<---- do not change or forget this
238 \end{lstlisting}
239
240 \IJSRAseparator
241 Then you can copy/paste the text of the article and make further editing.
242 At the very end you have to insert
243 \begin{lstlisting}[label=closing,caption={IJSRAclosing}]
244 \IJSRAclosing
245 \end{lstlisting}
246
247
248 Following there is a minimal template how the plain document should look like when you begin to edit and there is only one author.
249 \begin{lstlisting}[label=document,caption={Plain document}]
250 \documentclass{ijsra}
251 \def\IJSRAidentifier{\currfilebase} %<---- do not change this!
252 \def\shorttitle{Jons short title}
253 \def\maintitle{Jons very long title about his paper}
254 \def\cmail{[email protected]}
255 \def\keywords{Research, Archaeology, ...}
256 %\def\keywordname{}
257 \def\abstract{In his paper Jon is showing ...}
258 \def\authorone{Jon Doe}
259 \def\bioone{Jon Doe is doing his research about ...}
260 \def\affilone{Jon Doe’s university or institution}
261 \begin{filecontents}{\IJSRAidentifier.bib}
262 Bibliography-files
263 \end{filecontents}
264
265 \begin{document}
266 \IJSRAopening
267
268 \lettrine{M}{ain} text ...
269
270 \IJSRAclosing
271 \end{document}
272 \end{lstlisting}
273 Since we only have one author there is no need to specify the connection of |\authorone| to |\affilone| since this is done automatically.
274 As soon as you have more than one author you need to do the mapping by copying the symbols ( * † ‡ § ¶ ) into the right |\affiloneauthor| or |\affiltwoauthor|.
275
276 Before we have a closer look how to do certain editing
277 let me give you some advice about naming the |tex|-file and the related figures.
278 The |tex|-file has to be saved under an unique and individual name.
279 Usually this is the family name of the author: e.g. |winckelmann.tex|
280 If you think this is not enough because the author has quite a common family (as it might be with \emph{Johnson})
281 plese use a word from the title, e.g. |Johnson_prehistory.tex|.
282 Notice there must not be a blank in the name, use instead |_| or |-|.
283
284 The name of the |tex|-file is what we have defined as the |\IJSRAidentifier|,
285 with that we can differentiate between all the texts from the authors.
286
287 We need this |IJSRAidentifier| again for the figures:
288 put the figures in a folder called |figures|.
289 Do not name the figures e.g. |figure1|, |figure2| etc. but use again this
290 |IJSRAidentifier| (e.g. |Johnson_prehistory|) and name the figures like this:
291 |Johnson_prehistory_fig01.jpg| or |winckelmann_fig01.png|.
292 You can also name tables in the same way:
293 |Johnson_prehistory_tab01.jpg| or |winckelmann_tab01.png|.
294
295 \alertinfo{But please make sure that the \emph{IJSRAidentifier} is used with correct spelling of the author’s name etc.}
296
297 \IJSRAseparator
298 As \IJSRAsection{sections}a subdivison of the paper into section we use the code |\IJSRAsection{<<section name>>}|.
299
300 Be aware to insert the code \emph{after} the first word of the paragraph under the section heading.
301
302 \begin{lstlisting}[label=section,caption={Section}]
303 This\IJSRAsection{New Paragraph} is a new paragraph under the section with the title ›New Paragraph‹.
304 \end{lstlisting}
305 There is also the possibility to do a \IJSRAsubsection{subsections} |\IJSRAsubsection{<<subsection name>>}|. It will be displayed as a |\IJSRAsection{<<section name>>}| but in the pdf-bookmarks there is a differentiation.
306
307 \alertwarning{This code may conflict with wrapfigures since the section title and the wrapfigure use the margin space.
308 In that case you have to move the wrapfigure further up or further down.}
309
310
311 \IJSRAseparator
312 How to do quotes:\IJSRAsection{quotes}
313 Quotes are inserted between the enviroment |IJSRAquote|.
314 Let me give you an example:
315
316 \begin{lstlisting}[label=quote,caption={Quote}]
317 \blockcquote[see][112]{Winckelmann2006}{Grace can never properly be said to exist without beauty; for it is only in the elegant proportions of beautiful forms that can be found that harmonious variety of line and motion which is the essence and charm of grace.}
318 \end{lstlisting}
319 It will be displayed as this:
320
321
322 \blockcquote[see][112]{Winckelmann2006}{Grace can never properly be said to exist without beauty; for it is only in the elegant proportions of beautiful forms that can be found that harmonious variety of line and motion which is the essence and charm of grace.}
323
324 There is also a way to cite foreigntext-quotes:
325 \begin{lstlisting}[label=quoteforeign,caption={Quote}]
326 \foreignblockcquote{ngerman}[see][12]{Winckelmann1764}{Es kann leichter von der Schönheit gesagt werden, was sie nicht ist, als was sie ist; und es verhält sich einigermaßen mit der Schönheit und ihrem Gegenteile, wie mit Gesundheit und Krankheit: diese fühlen wir und jene nicht.}
327 \end{lstlisting}
328 \foreignblockcquote{ngerman}[see][12]{Winckelmann1764}{Es kann leichter von der Schönheit gesagt werden, was sie nicht ist, als was sie ist; und es verhält sich einigermaßen mit der Schönheit und ihrem Gegenteile, wie mit Gesundheit und Krankheit: diese fühlen wir und jene nicht.}
329
330 Of course you can also use |\blockquote[Author]{QUOTE}| for a not-citable author of the quote.
331 Same for |\foreignblockquote[Author]{QUOTE}|
332
333 \IJSRAseparator
334 You can\IJSRAsection{separator} insert a separation mark between some paragraphs,
335 as it is inserted automatically just before the bibliography.
336 For that we edited a special form a separation mark.
337 You can use it with |\IJSRAseparator|.
338 \IJSRAseparator
339 There \IJSRAsection{figures}are two ways to insert a figure into the text.
340 First by using the plain enviroment |figure|
341
342 \begin{lstlisting}[label=figure,caption={figure}]
343 \begin{figure}
344 \includegraphics[width=\linewidth]{NAME_OF_THE_FIGURE_WITHOUT_SUFFIX}
345 \caption{<<Description of the figure>>
346 {\normalfont \\ \copyright\ by NAME OF COPYRIGHT HOLDER}}
347 \label{fig:NAME_OF_THE_FIGURE_WITHOUT_SUFFIX}
348 \end{figure}
349 \end{lstlisting}
350
351 Second by using the enhanced enviroment |wrapfigure|
352
353 \begin{lstlisting}[label=wrapfigure,caption={wrapfigure}]
354 \begin{wrapfigure}{O}{0.5\textwidth}
355 \centering
356 \includegraphics[width=\linewidth]{NAME_OF_THE_FIGURE_WITHOUT_SUFFIX}
357 \caption{<<Description of the figure>>
358 {\normalfont \\ \copyright\ by NAME OF COPYRIGHT HOLDER}}
359 \label{fig:NAME_OF_THE_FIGURE_WITHOUT_SUFFIX}
360 \end{wrapfigure}
361 \end{lstlisting}
362 Since you (hopefully) place the figures into the folder named |figures| there is no need to tell the path, the figure name is sufficient.
363 \IJSRAseparator
364 When suitable \IJSRAsection{caption}we try to insert figures as a |wrapefigure| into the text.
365 Otherwise we insert them into the |figure|-enviroment.
366
367 If you have a table which is saved as a figure,
368 you have to make a change to the caption.
369 I show you how to do that.
370 \begin{lstlisting}[label=caption,caption={Modify the caption}]
371 \captionof{table}{Put the caption here.}
372 \end{lstlisting}
373
374 \IJSRAseparator
375 Modifying\IJSRAsection{references} e.g. the caption is important for referencing in the text.
376 We use the special macro |\cref{label}| to reference to a figure, a table or anything else.
377 It makes it easier because we can omit to write ›fig.‹ or ›table‹ before the number of the figure or the table.
378 The correct form (›fig.‹ etc.) will be inserted automatically by \LaTeX .
379 If you like to have the first letter capitalised you can use |\Cref| instead.
380
381 Furthermore you can insert several |label| into a |\cref| by |\cref{label1,label2,label3}|.
382
383 \IJSRAseparator
384 If you\IJSRAsection{numbers \& units} have a number or a number with an unit,
385 please use the macros which are provided my |\SI|.
386 Let me show you some examples.
387 \begin{labeling}{range phrase (1)}
388 \item[meter] |100 m| has to be written as |\SI{100}{\meter}|;
389 \item[percent] |75 %| has to be written as |\SI{75}{\percent}|;
390 \item[range phrase (1)] |10x10 m| has to be written as |\SIrange{10}{10}{\meter}|;
391 \item[range phrase (2)] |10--15 cm| has to be written as |\SIrange[range-phrase=--]{10}{15}{\centi\meter}|;
392 \item[number] |23.394| has to be written as |\num{23394}|;
393 \item[angle] |56°| has to be written as |\ang{56}|;
394 \item[round precision] If you want to make a round precision of your numbers you can set it yourself by |\SI[round-precision=2]{23.3390}{\meter}| which will make |23.34 m|.
395 \end{labeling}
396
397
398
399 \IJSRAseparator
400 We have\IJSRAsection{Different abstracts} the abstract of the article in english in the beginning,
401 just as shown in the template in \cref{document,abstract}.
402 If there is another abstract in a different language we put that at the end of the article.
403 For that we need also to redefine the keywords and usually the name \emph{keywords} according to the language of the abstract.
404
405 I give you an example how to edit a second abstract.
406 \begin{lstlisting}[label=abstract2,caption={Different abstract}]
407 \def\keywordname{Mots clés}
408 \def\keywords{keywords in French, \LaTeX , IJSRA, journal}
409 \foreignlanguage{french}{%
410 \begin{IJSRAabstract}
411 Abstract\IJSRAsection{Abstract (French)} in French: Copy and paste the abstract in the different language here!
412 \end{IJSRAabstract}
413 }
414 \end{lstlisting}
415 \def\keywordname{Mots clés}
416 \def\keywords{keywords in French, \LaTeX , IJSRA, journal}
417 \foreignlanguage{french}{%
418 \begin{IJSRAabstract}
419 Abstract\IJSRAsection{Abstract (French)} in French: Copy and paste the abstract in the different language here!
420 \end{IJSRAabstract}
421 }
422
423 %Do not forget to add the language in the options of the documentclass
424 %\begin{lstlisting}[label=abstract2,caption={Add the language of the abstract into the preamble}]
425 %\documentclass[
426 % french,%<--- add the language if not English
427 % ]{ijsra}
428 %\end{lstlisting}
429
430
431 \IJSRAseparator
432 Global options: These options can be used and set to the current number:
433 |month|,
434 |year|,
435 |volume|,
436 |number|.
437
438 Furthermore you can set the document to |draft| or give the name of the title figure with |titlefigure|.
439 The title figure has to be within the folder |figures| and be in an aspect ratio of \SIrange{1000}{400}{pt}.
440
441 \IJSRAseparator
442 Some general information:
443 % \begin{itemize}
444 % \item Be aware of different brackets, e.g. |[] {}|;
445 % These are part of \LaTeX -programming-language, every opening bracket needs a closing one.
446 % \item Replace e.g. |19 %| with |\SI{19}{\percent}| otherwise everything after |%| will be omitted by \LaTeX;
447 % \item Replace |&| with |\&|;
448 % \item Replace the citation of authors (e.g |Blesser \& Salter 2006|) with |\cite{Blesser2006}|;
449 % if you have a page-range write: |\cite[23--45]{Blesser2006}|;
450 % \item To compile with bibliography-references;
451 % use 1 $\times$ \hologo{XeLaTeX}, then 1 $\times$ compiler ›biber‹, then 1 $\times$ \hologo{XeLaTeX}.
452 % \item If you want to know how to cite properly
453 % please have a look at the documentation of \texttt{biblatex-ijsra}.\footnote{\cite[see][]{Bossert-ijsra};\\ \url{http://mirrors.ctan.org//macros/latex/contrib/biblatex-contrib/biblatex-ijsra/biblatex-ijsra.pdf}}
454 % \end{itemize}
455 \nocite{*}
456
457 \IJSRAclosing
458
459 %\clearpage
460 %You find the code using to write this documentation below.
461 %\lstinputlisting[language={[AlLaTeX]{TeX}}]{\jobname.tex}