summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-contrib/biblatex-ijsra
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/biblatex-contrib/biblatex-ijsra
Initial commit
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-ijsra')
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-ijsra/README.md37
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-ijsra/biblatex-ijsra.pdfbin0 -> 50846 bytes
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-ijsra/biblatex-ijsra.tex157
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-ijsra/ijsra.bbx85
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-ijsra/ijsra.cbx14
5 files changed, 293 insertions, 0 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/README.md b/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/README.md
new file mode 100644
index 0000000000..72395d6909
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/README.md
@@ -0,0 +1,37 @@
+bibLaTeX-__ijsra__
+=======
+
+_2016/07/04 v0.1_
+
+Copyright (c) 2016 Lukas C. Bossert
+
+Email: [lukas@digitales-altertum.de](mailto:lukas@digitales-altertum.de)
+
+This citation-style covers the citation and bibliography rules of
+the journal __[International Journal of Student Research in Archaeology](http://www.ijsra.org) (IJSRA)__.
+
+---
+
+This style contains:
+
+documentation:
+
+- ijsra.tex
+- ijsra.pdf
+
+mandatory:
+
+* ijsra.bbx
+* ijsra.cbx
+
+
+This work may be distributed and/or modified under the
+conditions of the LaTeX Project Public License, either version 1.3
+of this license or (at your option) any later version.
+The latest version of this license is in [http://www.latex-project.org/lppl.txt](http://www.latex-project.org/lppl.txt) and version 1.3 or later is part of all distributions of LaTeX
+version 2005/12/01 or later.
+
+---
+This work has the LPPL maintenance status _maintained_.
+The current maintainer of this work is [Lukas C. Bossert](https://github.com/LukasCBossert).
+
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/biblatex-ijsra.pdf b/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/biblatex-ijsra.pdf
new file mode 100644
index 0000000000..06c9002c81
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/biblatex-ijsra.pdf
Binary files differ
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/biblatex-ijsra.tex b/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/biblatex-ijsra.tex
new file mode 100644
index 0000000000..abe6cb5690
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/biblatex-ijsra.tex
@@ -0,0 +1,157 @@
+% ijsra --%
+%
+% Copyright (c) 2016 Lukas C. Bossert
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+%!TEX program = xelatex
+\documentclass[a4paper,
+10pt,
+english
+]{ltxdoc}
+\input{ijsra-preamble.tex}
+\begin{document}
+\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}.}}
+\author{Lukas C. Bossert\thanks{\href{mailto:lukas@digitales-altertum.de}{lukas@digitales-altertum.de}}}
+\date{Version: 0.1 (2016-07-04)}
+ \maketitle
+\begin{abstract}
+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).
+ \end{abstract}
+
+\section{Usage}
+ \DescribeMacro{ijsra} The name of the bib\LaTeX-style is |ijsra| has to be activated in the preamble.
+
+\begin{lstlisting}
+\usepackage[style=ijsra,%
+ *@\meta{further options}@*]{biblatex}
+\bibliography*@\marg{|bib|-file.|bib|}@*
+\end{lstlisting}
+
+
+At the end of your document you can write the command |\printbibliography| to print
+the bibliography.
+Further information are found below (\cref{bibliographie}).
+
+\section{Overview}\label{overview}
+
+\DescribeMacro{\cite}%
+As always citing is done with \cs{cite}:
+\begin{lstlisting}
+\cite*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}%@*
+\end{lstlisting}
+
+\meta{prenote} sets a short preliminary note (e.\,g. \enquote{e.\,g.}) and \meta{postnote} is usually used for page numbers.
+If only one optional argument is used then it is \oarg{postnote}.
+\begin{lstlisting}
+\cite*@\oarg{postnote}\marg{bibtex-key}%@*
+\end{lstlisting}
+The \meta{bibtex-key} corresponds to the key from the bibliography file.
+
+\DescribeMacro{\cites}
+If one wants to cite several authors or works a very convenient way is the following using the \cs{cites}-command:
+\begin{lstlisting}
+\cites(pre-prenote)(post-postnote)*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}@*%
+ *@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}@*%
+ *@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}\ldots@*
+\end{lstlisting}
+
+\DescribeMacro{\parencite}
+Sometimes a citation has to be put in parentheses.
+Therefore we implemented the command \cs{parencite}:
+\begin{lstlisting}
+\parencite*@\oarg{postnote}\marg{bibtex-key}%@*
+\end{lstlisting}
+This cite command takes care of the correct corresponding parentheses and brackets.
+Especially in |@Inreference| citations the parentheses are changing to (square) brackets.
+
+
+\DescribeMacro{\parencites}
+Of course there is also the possibility to cite several authors/works in parentheses.
+This is done with \cs{parencites}:
+\begin{lstlisting}
+\parencites(pre-prenote)(post-postnote)*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}@*%
+ *@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}@*%
+ *@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}\ldots@*
+\end{lstlisting}
+
+\DescribeMacro{\textcite}
+Beside the listed \cs{cite} commands above there is a third way of citing:
+\cs{textcite} is useful if the author should be mentioned in the text and
+the remaining components such as year and page will immediately follow in parentheses.
+\begin{lstlisting}
+\textcite*@\oarg{postnote}\marg{bibtex-key}%@*
+\end{lstlisting}
+
+\DescribeMacro{\textcites}
+And again there is also a \cs{textcites} in case of several authors:
+ \begin{lstlisting}
+\textcites(pre-prenote)(post-postnote)*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}@*%
+ *@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}@*%
+ *@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}\ldots@*
+\end{lstlisting}
+
+\DescribeMacro{\citeauthor}\DescribeMacro{\citetitle}\label{citeauthor}%
+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.
+\begin{lstlisting}
+\citeauthor*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}%@*
+\end{lstlisting}
+ and for the works
+\begin{lstlisting}
+\citetitle*@\oarg{prenote}\oarg{postnote}\marg{bibtex-key}%@*
+\end{lstlisting}
+
+
+ \section{Bibliography}\label{bibliographie}
+ \DescribeMacro{\printbibliography}
+But first we define the heading of the whole bibliography:
+\begin{lstlisting}
+\printbibheading[%
+ heading=bibliography,%
+ %heading=bibnumbered,% if you want it numbered
+ title={Bibliography}] %heading for bibliography
+\end{lstlisting}
+You can give any title you would like to give (|title = |\marg{any title}).
+
+Finally the bibliography:
+\begin{lstlisting}
+\printbibliography[%
+ heading=subbibliography,
+ %heading=subbibnumbered,% if you want it numbered
+ title={Secondary literature}]
+\end{lstlisting}
+
+%\nocite{*}
+%\begin{bsp}
+%\renewcommand\bibfont{\normalfont\footnotesize}
+%\printbibheading[%
+% heading=bibliography,%
+% title={Bibliography}] %heading for bibliography
+%\printbibliography[%
+% notkeyword=ancient,%
+% notkeyword=corpus,%
+% heading=subbibliography,
+% title={Secondary literature}]
+%\end{bsp}
+%
+%\begin{lstlisting}
+%
+%@Book{Amedick1991,
+% author = {Amedick, Rita},
+% title = {Die Sarkophage mit Darstellungen aus dem Menschenleben},
+% subtitle = {Vita Privata},
+% publisher = {Berlin},
+% year = {1991},
+% maintitle = {Die antiken Sarkophagreliefs},
+% volume = {1.4},
+%}
+%
+%
+%\end{lstlisting}
+\end{document}
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/ijsra.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/ijsra.bbx
new file mode 100644
index 0000000000..e2b9250d60
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/ijsra.bbx
@@ -0,0 +1,85 @@
+% ijsra -- %
+% Copyright (c) 2016 Lukas C. Bossert
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+\ProvidesFile{ijsra.bbx}%
+ [2016/07/04 v0.1 ijsra]
+\RequireBibliographyStyle{authoryear}
+
+\ExecuteBibliographyOptions{%
+ isbn=false,
+}
+
+\renewcommand{\labelnamepunct}{\addcolon\space}
+\renewcommand*{\bibpagespunct}{\addcolon\space}
+\renewcommand*{\nameyeardelim}{\addcomma\addspace}
+\renewcommand*{\postnotedelim}{\addcolon}
+\DeclareFieldFormat{postnote}{#1}
+\DeclareFieldFormat{pages}{#1}
+\DeclareNameAlias{sortname}{last-first}
+\DeclareNameAlias{default}{last-first}
+\DeclareNameAlias{editor}{sortname}
+
+\DeclareFieldFormat{multipostnote}{#1}
+\DeclareFieldFormat[article,inbook,incollection,inproceedings,patent,thesis,unpublished]{citetitle}{#1\isdot}
+\DeclareFieldFormat[article,inbook,incollection,inproceedings,patent,thesis,unpublished]{title}{#1\isdot}
+
+
+\usepackage{xpatch}
+\xpatchbibmacro{date+extrayear}{%
+ \printtext[parens]%
+}{%
+ \setunit{\space}%
+ \printtext%
+}{}{}
+
+\renewbibmacro*{in:}{
+\ifentrytype{incollection}{%
+\setunit{\addcomma\addspace }\printtext{\bibstring{in}\addspace}%
+ \ifnameundef{editor}
+ {}
+ {\printnames{editor}%
+ \addspace
+ \mkbibparens{\usebibmacro{editorstrg}}
+ \setunit{\addcomma\addspace}%
+ }%
+ \usebibmacro{maintitle+booktitle}
+ \clearfield{maintitle}
+ \clearfield{booktitle}
+ \clearfield{volume}
+ \clearfield{part}
+ \clearname{editor}
+ }
+ {%
+ \ifentrytype{inproceedings}{%
+\setunit{\addcomma\addspace }\printtext{\bibstring{in}\addspace}%
+ \ifnameundef{editor}
+ {}
+ {\printnames{editor}%
+ \addspace
+ \mkbibparens{\usebibmacro{editorstrg}}
+ \setunit{\addcomma\addspace}%
+ }%
+ \usebibmacro{maintitle+booktitle}
+ \clearfield{maintitle}
+ \clearfield{booktitle}
+ \clearfield{volume}
+ \clearfield{part}
+ \clearname{editor}
+ }{%
+ \ifentrytype{article}{}{\setunit{\addcomma\addspace }\printtext{\bibstring{in}\addspace}}}}}%
+
+\renewbibmacro*{volume+number+eid}{%
+ \printfield{volume}%
+ \printfield{number}%
+ \setunit{\addcomma\space}%
+ \printfield{eid}}
+\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}
+
+\endinput
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/ijsra.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/ijsra.cbx
new file mode 100644
index 0000000000..21d729bfd5
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-ijsra/ijsra.cbx
@@ -0,0 +1,14 @@
+% ijsra -- %
+% Copyright (c) 2016 Lukas C. Bossert
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+\ProvidesFile{ijsra.cbx}%
+ [2016/07/04 v0.1 ijsra]
+\RequireCitationStyle{authoryear}
+\endinput