Skip to content

Commit

Permalink
Merge pull request #21 from xvrabcov/feature-ama
Browse files Browse the repository at this point in the history
Feature ama
  • Loading branch information
xvrabcov authored Apr 14, 2021
2 parents a88e313 + 43eadd3 commit 92d3a8a
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 17 deletions.
2 changes: 1 addition & 1 deletion style/mu/econ.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
tableOdd={HTML}{F5ECEB},
tableEven={HTML}{EBD8D5}}
% \end{macrocode}
% The bibliography support is enabled. The |authoryear| citations
% The bibliography support is enabled. The |iso-authoryear| citations
% are used and the bibliography is sorted by name, title, and year.
% \begin{macrocode}
\thesis@bibliography@setup{
Expand Down
2 changes: 1 addition & 1 deletion style/mu/fi.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
tableOdd={HTML}{FFF9E5},
tableEven={HTML}{FFECB3}}
% \end{macrocode}
% The bibliography support is enabled. The |numeric| citations are
% The bibliography support is enabled. The |iso-numeric| citations are
% used and the bibliography is sorted in citation order.
% \begin{macrocode}
\thesis@bibliography@setup{
Expand Down
2 changes: 1 addition & 1 deletion style/mu/fsps.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
tableOdd={HTML}{EBEFF5},
tableEven={HTML}{D1DAEB}}
% \end{macrocode}
% The bibliography support is enabled. The |authoryear| citations
% The bibliography support is enabled. The |iso-authoryear| citations
% are used and the bibliography is sorted by name, title, and year.
% \begin{macrocode}
\thesis@bibliography@setup{
Expand Down
2 changes: 1 addition & 1 deletion style/mu/fss.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
tableOdd={HTML}{E3F1EE},
tableEven={HTML}{C5E3DF}}
% \end{macrocode}
% The bibliography support is enabled. The |authoryear| citations
% The bibliography support is enabled. The |iso-authoryear| citations
% are used and the bibliography is sorted by name, title, and year.
% \begin{macrocode}
\thesis@bibliography@setup{
Expand Down
9 changes: 6 additions & 3 deletions style/mu/law.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
% h_dokumentu.pdf}}.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fithesis/style/mu/fithesis-mu-law}[2021/02/21]
\ProvidesPackage{fithesis/style/mu/fithesis-mu-law}[2021/03/26]
% \end{macrocode}
% The file defines the color scheme of the respective faculty. Note
% the the color definitions are in RGB, which makes the resulting
Expand All @@ -25,11 +25,14 @@
tableOdd={HTML}{F2EBF5},
tableEven={HTML}{E5CCED}}
% \end{macrocode}
% The bibliography support is enabled. The |authoryear| citations
% The bibliography support is enabled. The |iso-authortitle| citations
% are used and the bibliography is sorted by name, year, and title.
% \changes{v1.0.0}{2021/03/26}{^^A
% The Faculty of Law at the Masaryk University in Brno uses the ISO~690
% author-title citation and reference style. [VN]}
% \begin{macrocode}
\thesis@bibliography@setup{%
style=iso-authoryear,
style=iso-authortitle,
sorting=nyt}
\thesis@bibliography@load
% \end{macrocode}
Expand Down
42 changes: 39 additions & 3 deletions style/mu/med.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
% akulte_MU.pdf}}.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fithesis/style/mu/fithesis-mu-med}[2021/02/26]
\ProvidesPackage{fithesis/style/mu/fithesis-mu-med}[2021/03/26]
% \end{macrocode}
% The file defines the color scheme of the respective faculty. Note
% the the color definitions are in RGB, which makes the resulting
Expand All @@ -27,14 +27,50 @@
tableOdd={HTML}{FFF5F6},
tableEven={HTML}{FFDEDF}}
% \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.
% \begin{macrocode}
\thesis@bibliography@setup{%
style=iso-authoryear,
style=authortitle,
sorting=ynt}
\thesis@bibliography@load
% \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:
% \begin{itemize}
% \item\textsf{tikz} -- Used for dimension arithmetic.
Expand Down
9 changes: 6 additions & 3 deletions style/mu/ped.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
% /08/standard_zaverecnych_praci_katedra_pedagogiky-opravene3_08.pdf}}.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fithesis/style/mu/fithesis-mu-ped}[2021/02/26]
\ProvidesPackage{fithesis/style/mu/fithesis-mu-ped}[2021/03/26]
% \end{macrocode}
% The file defines the color scheme of the respective faculty. Note
% the the color definitions are in RGB, which makes the resulting
Expand All @@ -26,11 +26,14 @@
tableOdd={HTML}{FFF1E0},
tableEven={HTML}{FFDEB7}}
% \end{macrocode}
% The bibliography support is enabled. The |numeric| citations are
% The bibliography support is enabled. The |apa| citations are
% used and the bibliography is sorted by name, title, and year.
% \changes{v1.0.0}{2021/03/26}{^^A
% The Faculty of Education at the Masaryk University in Brno
% uses the APA citation and reference style. [VN]}
% \begin{macrocode}
\thesis@bibliography@setup{
style=iso-numeric,
style=apa,
sorting=nty}
\thesis@bibliography@load
% \end{macrocode}
Expand Down
4 changes: 2 additions & 2 deletions style/mu/phil.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
tableOdd={HTML}{EBF6FA},
tableEven={HTML}{D0EBF5}}
% \end{macrocode}
% The bibliography support is enabled. The |numeric| citations are
% used and the bibliography is sorted by name, title, and year.
% The bibliography support is enabled. The |iso-authoryear| citations
% are used and the bibliography is sorted by name, title, and year.
% \begin{macrocode}
\thesis@bibliography@setup{
style=iso-authoryear,
Expand Down
4 changes: 2 additions & 2 deletions style/mu/sci.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
tableOdd={HTML}{EDF7F1},
tableEven={HTML}{CCEDD8}}
% \end{macrocode}
% The bibliography support is enabled. The |numeric| citations are
% used and the bibliography is sorted in citation order.
% The bibliography support is enabled. The |iso-numeric| citations
% are used and the bibliography is sorted in citation order.
% \begin{macrocode}
\thesis@bibliography@setup{
style=iso-numeric,
Expand Down

0 comments on commit 92d3a8a

Please sign in to comment.