Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
EOASkripts/src/data/aux/bibliography4ht.tex
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
114 lines (105 sloc)
2.95 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{scrartcl} | |
\usepackage[T1]{fontenc} | |
\usepackage[utf8]{inputenc} | |
\usepackage[$language]{babel} | |
\newcommand{\EOAbibtweaks}{ | |
% Remove pp from references | |
\DeclareFieldFormat{postnote}{##1} | |
% Remove quotation marks from certain titles | |
\DeclareFieldFormat[thesis]{title}{\mkbibemph{##1}} | |
\DeclareFieldFormat[article]{title}{##1} | |
\DeclareFieldFormat[incollection]{title}{##1} | |
\DeclareFieldFormat[inproceedings]{title}{##1} | |
\DeclareFieldFormat[inbook]{title}{\mkbibemph{##1}} | |
\DeclareFieldFormat{title}{\mkbibemph{##1}} | |
% Remove pp from bibliography at all | |
\DeclareFieldFormat{pages}{##1}% | |
% Remove "In:" from articles | |
\renewbibmacro{in:}{% | |
\ifentrytype{article}{}{% | |
\printtext{\bibstring{in}\intitlepunct}}} | |
% Delete Vol. as praefix | |
\DeclareFieldFormat*{volume}{##1} | |
% Use : for pages of an article, use . for the rest | |
\renewcommand*{\bibpagespunct}{% | |
\ifentrytype{article}% | |
{% | |
\iffieldundef{Number}% | |
{\addcolon\hspace{0pt}}% | |
{}% | |
}% | |
{,\space}% | |
} | |
% Group Volume and Issue in {Brackets} | |
\renewbibmacro*{journal+issuetitle}{% | |
\usebibmacro{journal}% | |
\setunit*{\addspace}% | |
\iffieldundef{series} | |
{} | |
{\newunit | |
\printfield{series}% | |
\setunit{\addspace}}% | |
\printfield{volume}% | |
\iffieldundef{number} | |
{} | |
{\printfield[parens]{number}} | |
\setunit{\addcomma\space}% | |
\printfield{eid}% | |
\setunit{\addspace}% | |
\usebibmacro{issue+date}% | |
\setunit{\addcolon\space}% | |
\usebibmacro{issue}% | |
\newunit} | |
% origdate, thanks to https://tex.stackexchange.com/questions/134644/how-to-get-automatically-origdate-with-the-date-in-a-citation | |
\DeclareFieldFormat{origdate}{\mkbibbrackets{##1}} | |
\renewbibmacro*{cite:labeldate+extradate}{% | |
\iffieldundef{origyear} | |
{} | |
{\printorigdate | |
\setunit{\addspace}}% | |
\iffieldundef{labelyear} | |
{} | |
{\printtext[bibhyperref]{\printlabeldateextra}}} | |
\DeclareCiteCommand{\citeorigyear} | |
{\boolfalse{citetracker}% | |
\boolfalse{pagetracker}% | |
\usebibmacro{prenote}} | |
{\printfield{origyear}} | |
{\multicitedelim} | |
{\usebibmacro{postnote}} | |
\renewbibmacro*{date+extradate}{% | |
\iffieldundef{origyear} | |
{} | |
{\printorigdate | |
\setunit{\addspace}}% | |
\iffieldundef{labelyear} | |
{} | |
{\printtext[parens]{% | |
\iflabeldateisdate | |
{\printdateextra} | |
{\printlabeldateextra}}}} | |
% Bug fix for Windows | |
\defbibheading{none}[]{} | |
} | |
\newcommand\greekfont{} | |
\newcommand\chinesefont{} | |
\usepackage[autostyle]{csquotes} | |
\usepackage[mincitenames=1,maxcitenames=3,maxbibnames=100,style=authoryear,backend=biber,autolang=hyphen,dateabbrev=false,datecirca=true,dateuncertain=true,dateera=christian,urldate=long,uniquename=false$usepackagebiblatex]{biblatex} | |
\EOAbibtweaks | |
\bibliography{$bibfile} | |
\begin{document} | |
% \maketitle | |
\makeatletter | |
\def\hshchr{\expandafter\@gobble\string\#} | |
\def\ampchr{\expandafter\@gobble\string\&} | |
\def\entity#1{\HCode{\ampchr\hshchr#1;}} | |
\makeatother | |
\section{Citations} | |
$citations | |
$bibshorthands | |
$bibliographies | |
\end{document} | |
%%% Local Variables: | |
%%% mode: latex | |
%%% TeX-master: t | |
%%% End: |