I use oxford bioinfomatics latex template available at:
http://www.oxfordjournals.org/our_journals/bioinformatics/for_authors/cabios-template.zip
Main file content is modified only by adding packages and an empty table in method section.
If I load hyperref package (line 6) an error is raised: Package calc Error: 'D' invalid at this point.
Is it possible to use hyperref on this latex template?
Thanks for your help
Note: I put the template on sharelatex you can live test it (2 compilations are needed): https://fr.sharelatex.com/project/582c3477343d34b37017330e
\documentclass{bioinfo}
\usepackage{caption, slashbox,multirow}
\usepackage{algorithm,algorithmicx}
\usepackage{amsmath,mathtools}
\usepackage{lmodern,microtype}
%\usepackage[unicode,colorlinks,citecolor={blue},urlcolor={blue},breaklinks]{hyperref}
\usepackage{hypcap}
\copyrightyear{2015} \pubyear{2015}
\access{Advance Access Publication Date: Day Month Year}
\appnotes{Manuscript Category}
\begin{document}
\firstpage{1}
\subtitle{Subject Section}
\title[short Title]{This is a title}
\author[Foo \textit{et~al}]{Foo\,$^{\text{\sfb1,2,3,}*}$ \footnote{to whom correspondence should be addressed}}
\address{Bar}
\corresp{$^\ast$To whom correspondence should be addressed.}
\history{Received on XXXXX; revised on XXXXX; accepted on XXXXX}
\editor{Associate Editor: XXXXXXX}
\abstract{\textbf{Motivation:} Text Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text Text Text Text
Text Text Text Text Text.\\
\textbf{Results:} Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text\\
\textbf{Availability:} Text Text Text Text Text Text Text Text Text Text Text Text Text Text
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text\\
\textbf{Contact:} \href{name@bio.com}{name@bio.com}\\
\textbf{Supplementary information:} Supplementary data are available at \textit{Bioinformatics}
online.}
\maketitle
\section{Introduction}
\section{Approach}
\begin{methods}
\section{Methods}
Table~\ref{table:new}
\begin{table*}[!ht]
\processtable{A table \label{table:new}}{}{This is a footnote}
\end{table*}
\end{methods}
\section{Discussion}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% please remove the " % " symbol from \centerline{\includegraphics{fig01.eps}}
% as it may ignore the figures.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Conclusion}
\section*{Acknowledgements}
\section*{Funding}
This work has been supported by the... Text Text Text Text.\vspace*{-12pt}
\bibliographystyle{natbib}
%\bibliographystyle{achemnat}
%\bibliographystyle{plainnat}
%\bibliographystyle{abbrv}
%\bibliographystyle{bioinformatics}
%
%\bibliographystyle{plain}
%
%\bibliography{Document}
\bibliography{document}
\end{document}
natbib
. If you plan on generating a bibliography using BibTeX and thenatbib
citation management package, you should delete all instances of\bibliographystyle{natbib}
, provide the instruction\usepackage{natbib}
in the preamble, and uncomment one of the other\bibliographystyle{...}
directives.natbib.bst
file with the LaTeX templates (and requests authors use\bibliographystyle{natbib}
) and the journal class file loads thenatbib
package, so while the journal has chosen a terrible name for thebst
file, the template given above is technically correct for producing the desired output.\documentclass{bioinfo} \usepackage{hyperref} \begin{document} Foo \end{document}
is in fact a sufficient MWE - must be something internal to thebioinfo
class file.bioinfo.cls
includes the line\newcommand{\href}[2]{#2}
which makes it seem like they don't want any hyperlinks in the generated PDF, maybe there's some deliberate clash betweenhyperref
andbioinfo
although that seems a bit silly. You may be best of contacting the journal itself with this problem.