Skip to content
Snippets Groups Projects
Unverified Commit 48466647 authored by Vít Starý Novotný's avatar Vít Starý Novotný
Browse files

Make LF MUNI use AMA bibliography

parent bc8259e6
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
% akulte_MU.pdf}}. % akulte_MU.pdf}}.
% \begin{macrocode} % \begin{macrocode}
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fithesis/style/mu/fithesis-mu-med}[2021/02/26] \ProvidesPackage{fithesis/style/mu/fithesis-mu-med}[2021/03/26]
% \end{macrocode} % \end{macrocode}
% The file defines the color scheme of the respective faculty. Note % The file defines the color scheme of the respective faculty. Note
% the the color definitions are in RGB, which makes the resulting % the the color definitions are in RGB, which makes the resulting
...@@ -27,14 +27,50 @@ ...@@ -27,14 +27,50 @@
tableOdd={HTML}{FFF5F6}, tableOdd={HTML}{FFF5F6},
tableEven={HTML}{FFDEDF}} tableEven={HTML}{FFDEDF}}
% \end{macrocode} % \end{macrocode}
% The bibliography support is enabled. The |authoryear| citations % The bibliography support is enabled. The |authortitle| citations
% are used and the bibliography is sorted by year, name, and title. % are used and the bibliography is sorted by year, name, and title.
% \begin{macrocode} % \begin{macrocode}
\thesis@bibliography@setup{% \thesis@bibliography@setup{%
style=iso-authoryear, style=authortitle,
sorting=ynt} sorting=ynt}
\thesis@bibliography@load \thesis@bibliography@load
% \end{macrocode} % \end{macrocode}
% The AMA citation style is defined using |authortitle| as the basis.
% The following code has been adapted from
% \url{https://tex.stackexchange.com/a/233423/70941}.
% \changes{v1.0.0}{2021/03/26}{^^A
% The Faculty of Medicine at the Masaryk University in Brno uses the
% AMA citation and reference style. [VN]}
% \begin{macrocode}
\DeclareNameAlias{sortname}{last-first}
\renewcommand*{\revsdnamepunct}{}
\DeclareFieldFormat[%
article,inbook,incollection,inproceedings,patent,thesis,unpublished]%
{title}{{#1\isdot}}
\renewbibmacro{in:}{}
\DeclareFieldFormat{pages}{#1}
\renewcommand*{\bibpagespunct}{\addcolon}
\DeclareFieldFormat{journaltitle}{#1\addperiod}
\DeclareFieldFormat{booktitle}{{#1}}
\DeclareFieldFormat{title}{{#1}}
\renewbibmacro*{journal+issuetitle}{%
\usebibmacro{journal}%
\setunit*{\addspace}%
\iffieldundef{series}
{}
{\newunit
\printfield{series}%
\setunit{\addspace}}%
\usebibmacro{issue+date}%
\setunit{\addsemicolon\addspace}%
\usebibmacro{volume+number+eid}%
\setunit{\addcolon\space}%
\usebibmacro{issue}%
\newunit%
}
\renewbibmacro*{issue+date}{\printfield{year}}
\renewcommand*{\finalnamedelim}{\multinamedelim}
% \end{macrocode}
% The file loads the following packages: % The file loads the following packages:
% \begin{itemize} % \begin{itemize}
% \item\textsf{tikz} -- Used for dimension arithmetic. % \item\textsf{tikz} -- Used for dimension arithmetic.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment