Skip to content

Commit

Permalink
Revert to BibTeX when using LaTeXML
Browse files Browse the repository at this point in the history
Not that it is working, but at least this seems more promising...
  • Loading branch information
henrikt-ma committed Nov 26, 2020
1 parent 09d2371 commit 636efa8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
6 changes: 6 additions & 0 deletions MLS.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
\NeedsTeXFormat{LaTeX2e}
\usepackage[utf8]{inputenc}
\input{preamble.tex}
\ifpdf
\addbibresource{mls.bib}
\fi

% Define title for use by LaTeXML.
% An extended title is defined separately in the 'titlepage'.
Expand Down Expand Up @@ -168,5 +170,9 @@

\clearpage\phantomsection
\addcontentsline{toc}{chapter}{\bibname}
\ifpdf
\printbibliography
\else
\bibliography{mls}
\fi
\end{document}
15 changes: 14 additions & 1 deletion preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,30 @@
\setcounter{totalnumber}{1000}
\raggedbottom

\ifpdf
\usepackage{hyperref}
\else
\usepackage[backref=page]{hyperref} % Need backref, since we can't use biblatex.
\fi
% The bookmarks are used as table-of-contents in Acrobat
% The default (magenta for urls and red for internal links) isn't nice
\hypersetup{bookmarksnumbered=true, hidelinks, urlcolor=blue, linkcolor=blue}

\ifpdf
\usepackage[
style=authoryear,
backref=true,
maxnames=6,
maxnames=6
]{biblatex}
\setlength\bibitemsep{0.5\baselineskip}
\else
% Use BibTeX due to LaTeXML problems with biblatex.
\usepackage[round,authoryear]{natbib}
\bibliographystyle{plainnat}
% Define macro aliases with the names used by bibliatex:
\let\textcite\citet
\let\parencite\citep
\fi

\usepackage{multirow} % for multirow entries in tables

Expand Down

0 comments on commit 636efa8

Please sign in to comment.