| 1 |
% ijsra --% |
| 2 |
% |
| 3 |
% Copyright (c) 2016 Lukas C. Bossert |
| 4 |
% |
| 5 |
% This work may be distributed and/or modified under the |
| 6 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 7 |
% of this license or (at your option) any later version. |
| 8 |
% The latest version of this license is in |
| 9 |
% http://www.latex-project.org/lppl.txt |
| 10 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 11 |
% version 2005/12/01 or later. |
| 12 |
% |
| 13 |
%!TEX program = xelatex |
| 14 |
\documentclass[a4paper, |
| 15 |
10pt, |
| 16 |
english |
| 17 |
]{ltxdoc} |
| 18 |
\input{ijsra-preamble.tex} |
| 19 |
\begin{document} |
| 20 |
\title{\texttt{ijsra} -- \\\texttt{bib\LaTeX}-style of the journal \emph{International Journal of Student Research in Archaeology}\footnote{The development of the code is done at \url{https://github.com/LukasCBossert/biblatex-ijsra}.}} |
| 21 |
\author{Lukas C. Bossert\thanks{\href{mailto:[email protected]}{[email protected]}}} |
| 22 |
\date{Version: 0.1 (2016-07-04)} |
| 23 |
\maketitle |
| 24 |
\begin{abstract} |
| 25 |
Bibliographical style called \emph{ijsra} which is done for the journal \href{http://www.ijsra.org}{\emph{International Journal of Student Research in Archaeology}} (IJSRA). |
| 26 |
\end{abstract} |
| 27 |
|
| 28 |
\section{Usage} |
| 29 |
\DescribeMacro{ijsra} The name of the bib\LaTeX-style is |ijsra| has to be activated in the preamble. |
| 30 |
|
| 31 |
\begin{lstlisting} |
| 32 |
\usepackage[style=ijsra,% |
| 33 |
*@\meta{further options}@*]{biblatex} |
| 34 |
\bibliography*@\marg{|bib|-file.|bib|}@* |
| 35 |
\end{lstlisting} |
| 36 |
|
| 37 |
|
| 38 |
At the end of your document you can write the command |\printbibliography| to print |
| 39 |
the bibliography. |
| 40 |
Further information are found below (\cref{bibliographie}). |
| 41 |
|
| 42 |
\section{Overview}\label{overview} |
| 43 |
|
| 44 |
\DescribeMacro{\cite}% |
| 45 |
As always citing is done with \cs{cite}: |
| 46 |
\begin{lstlisting} |
| 47 |
\cite*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}%@* |
| 48 |
\end{lstlisting} |
| 49 |
|
| 50 |
\meta{prenote} sets a short preliminary note (e.\,g. \enquote{e.\,g.}) and \meta{postnote} is usually used for page numbers. |
| 51 |
If only one optional argument is used then it is \oarg{postnote}. |
| 52 |
\begin{lstlisting} |
| 53 |
\cite*@\oarg{postnote}\marg{bibtex-key}%@* |
| 54 |
\end{lstlisting} |
| 55 |
The \meta{bibtex-key} corresponds to the key from the bibliography file. |
| 56 |
|
| 57 |
\DescribeMacro{\cites} |
| 58 |
If one wants to cite several authors or works a very convenient way is the following using the \cs{cites}-command: |
| 59 |
\begin{lstlisting} |
| 60 |
\cites(pre-prenote)(post-postnote)*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}@*% |
| 61 |
*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}@*% |
| 62 |
*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}\ldots@* |
| 63 |
\end{lstlisting} |
| 64 |
|
| 65 |
\DescribeMacro{\parencite} |
| 66 |
Sometimes a citation has to be put in parentheses. |
| 67 |
Therefore we implemented the command \cs{parencite}: |
| 68 |
\begin{lstlisting} |
| 69 |
\parencite*@\oarg{postnote}\marg{bibtex-key}%@* |
| 70 |
\end{lstlisting} |
| 71 |
This cite command takes care of the correct corresponding parentheses and brackets. |
| 72 |
Especially in |@Inreference| citations the parentheses are changing to (square) brackets. |
| 73 |
|
| 74 |
|
| 75 |
\DescribeMacro{\parencites} |
| 76 |
Of course there is also the possibility to cite several authors/works in parentheses. |
| 77 |
This is done with \cs{parencites}: |
| 78 |
\begin{lstlisting} |
| 79 |
\parencites(pre-prenote)(post-postnote)*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}@*% |
| 80 |
*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}@*% |
| 81 |
*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}\ldots@* |
| 82 |
\end{lstlisting} |
| 83 |
|
| 84 |
\DescribeMacro{\textcite} |
| 85 |
Beside the listed \cs{cite} commands above there is a third way of citing: |
| 86 |
\cs{textcite} is useful if the author should be mentioned in the text and |
| 87 |
the remaining components such as year and page will immediately follow in parentheses. |
| 88 |
\begin{lstlisting} |
| 89 |
\textcite*@\oarg{postnote}\marg{bibtex-key}%@* |
| 90 |
\end{lstlisting} |
| 91 |
|
| 92 |
\DescribeMacro{\textcites} |
| 93 |
And again there is also a \cs{textcites} in case of several authors: |
| 94 |
\begin{lstlisting} |
| 95 |
\textcites(pre-prenote)(post-postnote)*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}@*% |
| 96 |
*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}@*% |
| 97 |
*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}\ldots@* |
| 98 |
\end{lstlisting} |
| 99 |
|
| 100 |
\DescribeMacro{\citeauthor}\DescribeMacro{\citetitle}\label{citeauthor}% |
| 101 |
Furthermore and additionally to the ›normal‹ \cs{cite}-commands one can also cite only the author or the work title in the text and in the footnotes. |
| 102 |
\begin{lstlisting} |
| 103 |
\citeauthor*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}%@* |
| 104 |
\end{lstlisting} |
| 105 |
and for the works |
| 106 |
\begin{lstlisting} |
| 107 |
\citetitle*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}%@* |
| 108 |
\end{lstlisting} |
| 109 |
|
| 110 |
|
| 111 |
\section{Bibliography}\label{bibliographie} |
| 112 |
\DescribeMacro{\printbibliography} |
| 113 |
But first we define the heading of the whole bibliography: |
| 114 |
\begin{lstlisting} |
| 115 |
\printbibheading[% |
| 116 |
heading=bibliography,% |
| 117 |
%heading=bibnumbered,% if you want it numbered |
| 118 |
title={Bibliography}] %heading for bibliography |
| 119 |
\end{lstlisting} |
| 120 |
You can give any title you would like to give (|title = |\marg{any title}). |
| 121 |
|
| 122 |
Finally the bibliography: |
| 123 |
\begin{lstlisting} |
| 124 |
\printbibliography[% |
| 125 |
heading=subbibliography, |
| 126 |
%heading=subbibnumbered,% if you want it numbered |
| 127 |
title={Secondary literature}] |
| 128 |
\end{lstlisting} |
| 129 |
|
| 130 |
%\nocite{*} |
| 131 |
%\begin{bsp} |
| 132 |
%\renewcommand\bibfont{\normalfont\footnotesize} |
| 133 |
%\printbibheading[% |
| 134 |
% heading=bibliography,% |
| 135 |
% title={Bibliography}] %heading for bibliography |
| 136 |
%\printbibliography[% |
| 137 |
% notkeyword=ancient,% |
| 138 |
% notkeyword=corpus,% |
| 139 |
% heading=subbibliography, |
| 140 |
% title={Secondary literature}] |
| 141 |
%\end{bsp} |
| 142 |
% |
| 143 |
%\begin{lstlisting} |
| 144 |
% |
| 145 |
%@Book{Amedick1991, |
| 146 |
% author = {Amedick, Rita}, |
| 147 |
% title = {Die Sarkophage mit Darstellungen aus dem Menschenleben}, |
| 148 |
% subtitle = {Vita Privata}, |
| 149 |
% publisher = {Berlin}, |
| 150 |
% year = {1991}, |
| 151 |
% maintitle = {Die antiken Sarkophagreliefs}, |
| 152 |
% volume = {1.4}, |
| 153 |
%} |
| 154 |
% |
| 155 |
% |
| 156 |
%\end{lstlisting} |
| 157 |
\end{document} |