"Bibliografien mit LaTeX"/"Bibliografies with LaTeX"
3.11
Two URLs instead of one
\begin{filecontents}[force,noheader]{test3.bib}
@Misc{oai:CiteSeerPSU:562256,
title = {Gerris: {A} Tree-Based Adaptive Solver For The
Incompressible Euler Equations In Complex Geometries},
author = {{St. Ephane} Popinet},
year = 2002,
month = sep # {~08},
bibsource = {OAI-PMH server at cs1.ist.psu.edu},
language = {en},
oai = {oai:CiteSeerPSU:562256},
rights = {unrestricted},
URL = {http://citeseer.ist.psu.edu/562256.html;http://gfs.sf.net/gerris.pdf},
}
\end{filecontents}
\documentclass[a5paper]{article}
\usepackage[english]{babel}
\usepackage{url}
\usepackage[backend=biber]{biblatex}
\usepackage{hyperref}
\addbibresource{test3.bib}
\let\URL\url
\makeatletter
\def\url#1{\@URL#1;;\@nil}
\def\@URL#1;#2;#3\@nil{%
\URL{#1}\ifx\relax#2\relax\else;~\URL{#2}\fi}
\makeatother
\begin{document}
foo\cite{oai:CiteSeerPSU:562256}
\printbibliography
\end{document}
Too long URL
\begin{filecontents}[force,noheader]{\jobname.bib}
@online{Torvalds11,
author = {Linus Torvalds},
title = {Linux Makefile: Commit 693d92a},
year = 2012,
url = {http://github.com/torvalds/linux/commit/693d92a1bbc9e42681c42ed190bd42b636ca876f}
}
\end{filecontents}
\documentclass{article}
\usepackage[style=authoryear,backend=biber]{biblatex}
\setcounter{biburlnumpenalty}{9000}
\setcounter{biburlucpenalty}{9000}
\setcounter{biburllcpenalty}{9000}
\addbibresource{\jobname.bib}
\usepackage{csquotes}
\begin{document}
foo~\parencite{Torvalds11}
\printbibliography
\end{document}
Different bibliographies in one document
\documentclass{article}
\usepackage[style=verbose,backend=biber]{biblatex}
\defbibcheck{online}{%
\ifboolexpr{ not test {\iffieldundef{url}}
and not test {\iffieldundef{urlyear}}}
{}% Entry has both url and urldate -> it's a web source
{\skipentry}%
}
\defbibcheck{hasurl}{\iffieldundef{url}{\skipentry}{}}
\defbibcheck{hasurldate}{\iffieldundef{urlyear}{\skipentry}{}}
\begin{filecontents}[force,noheader]{\jobname.bib}
@misc{D04,
author = {Duthor, D.},
year = {2001},
title = {Delta}}
@online{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
url = {http://www.google.com/},
urldate = {2012-06-21}}
@misc{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
url = {http://www.google.com/}}
@article{C03,
author = {Cuthor, C.},
year = {2001},
title = {Charlie},
urldate = {2012-06-21}}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\printbibliography[check=online,title=References A]
\printbibliography[check=hasurl,title=References B]
\printbibliography[check=hasurldate,title=References C]
\printbibliography[title=All References]
\end{document}
Zurück zur Hauptseite/Back to main page
Copyright $Id: chapter03.html 28 2022-12-31 07:33:58Z voss $