0

my question: I would love to use backref for \citeweb, but it only works for standard commands like \cite, \citet, ... on my side. Is there a way to do it?

Currently I'm writing my master's thesis in LaTeX. I have to use a LaTeX template, provided and maintained by the professor. It is publically available here, but I don't think there is a need to look at it for my question as I'll provide a minimal code here below. Therefore I have to use same thinges from that template, that I would love to avoid i.e. natbib with multibib.

In this template \cite is used and additionaly \newcites{web}{Weblinks}. The custom build order prints a bibliography separated by the headlines Literatur and Weblinks. Everything from \cite is under Literatur and everything from \citeweb is in Weblinks. This works thanks to the Answers I found here.

Build order for my minimal code below:

pdflatex main
bibtex main
bibtex web
pdflatex main
pdflatex main

And here is a minimal code:

\RequirePackage{filecontents}
\begin{filecontents}{myrefs.bib}
@article{a,
  author =   {Author, A.},
  title =    {foo},
  journal =  {Journal},
  year =     2001,
}
@article{b,
  author =   {Author, B.},
  title =    {bar},
  journal =  {Ann. J.},
  year =     2002,
}
\end{filecontents}

\documentclass[12pt,a4paper,english,ngerman]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[
  colorlinks=true,
  linkcolor=red!40!black,
  menucolor=red!40!black,
  citecolor=blue!50!black,
  urlcolor=green!40!black,
  backref=page,
]{hyperref}
\renewcommand*{\backref}[1]{}
\renewcommand*{\backrefalt}[4]{%
  {
\ifcase #1 (Nicht direkt zitiert.)
    \or (Zitiert auf S. #2.)%
   \else (Zitiert auf S. #2.)%
   \fi}}
\usepackage{multibib}
\usepackage{natbib}
\newcites{web}{Weblinks}

\begin{document}
Weit hinten, hinter den Wortbergen,\cite{a} fern der Länder Vokalien und Konsonantien leben die Blindtexte.\citeweb{b}

\renewcommand{\bibname}{Literatur}
\bibliographystyle{plain}
\bibliography{myrefs}

\bibliographystyleweb{plain}
\bibliographyNew{myrefs}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.