Skip to content

Commit

Permalink
added ./bibformat/ dir from NextCloud to repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
EsGeh authored and EsGeh committed Apr 4, 2019
1 parent 9ea919b commit 1a7800e
Show file tree
Hide file tree
Showing 41 changed files with 16,855 additions and 0 deletions.
630 changes: 630 additions & 0 deletions bibformat/4ht/auto/fo.el

Large diffs are not rendered by default.

68 changes: 68 additions & 0 deletions bibformat/4ht/bibliography4ht.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
\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}
{}
{\mkbibparens{\printfield{number}}}%
\setunit{\addcomma\space}%
\printfield{eid}%
\setunit{\addspace}%
\usebibmacro{issue+date}%
\setunit{\addcolon\space}%
\usebibmacro{issue}%
\newunit}
% Bug fix for Windows
\defbibheading{none}[]{}
}
\usepackage[autostyle]{csquotes}
\usepackage[mincitenames=1,maxcitenames=3,maxbibnames=100,style=authoryear,backend=biber,autolang=hyphen]{biblatex}
\EOAbibtweaks
\bibliography{$bibfile}
\begin{document}
% \maketitle
\section{Dummy}
$citations

\printbibliography
\end{document}
6 changes: 6 additions & 0 deletions bibformat/4ht/eoa.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
\Preamble{xhtml}
\Configure{textit}{\HCode{<span class="textit">}\NoFonts}
{\EndNoFonts\HCode{</span>}}
\Css{.textit{font-style:italic;}}
\begin{document}
\EndPreamble
Loading

0 comments on commit 1a7800e

Please sign in to comment.