Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have used this BibTeX reference in my work

@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",
  abstract =    "An adaptive mesh projection method for the
         time-dependent incompressible Euler equations is
         presented. The domain is spatially discretised using
         quad/octrees and a multilevel Poisson solver is used to
         obtain the pressure. Complex solid boundaries are
         represented using a volume-of-fluid approach.
         Second-order convergence in space and time is
         demonstrated on regular, statically and dynamically
         refined grids. The quad/octree discretisation proves to
         be very flexible and allows accurate and efficient
         tracking of flow features. The source code of the
         method implementation is freely available.",
  citeseer-references = "oai:CiteSeerPSU:500259; oai:CiteSeerPSU:27423;
         oai:CiteSeerPSU:16254; oai:CiteSeerPSU:395363;
         oai:CiteSeerPSU:436925; oai:CiteSeerPSU:90307;
         oai:CiteSeerPSU:391348; oai:CiteSeerPSU:137987;
         oai:CiteSeerPSU:442611; oai:CiteSeerPSU:44620;
         oai:CiteSeerPSU:150038; oai:CiteSeerPSU:433875;
         oai:CiteSeerPSU:441861; oai:CiteSeerPSU:526586",
  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",
}

, but in the bibliography, instead of getting two separate links two the two urls, I get both urls merged into one link like this: http://citeseer.ist.psu.edu/562256.html;http://gfs.sf.net/gerris.pdf. Is there any way in which I can get the two urls separated and to get one link to each ulr? Frankly, I don't know what the best practice is for url linking in the bibliography, but what I have now is quite useless.

Edit: I'm using JabRef, and it modifies the bibtex code on the web page I linked to from

url = "http://citeseer.ist.psu.edu/562256.html; http://gfs.sf.net/gerris.pdf"

to

url = {http://citeseer.ist.psu.edu/562256.html; http://gfs.sf.net/gerris.pdf}.

In other words, it removes the quotation signs and inserts curly brackets instead. I don't know, maybe this can cause some problem?

share|improve this question
2  
Without a MWE it's hard to say but I suspect that since hyperref turns the url field into a link automatically, there might be no way to do what you want without major modifications to the bibliography style. Would using something like note="PDF: \url{http://gfs.sf.net/gerris.pdf}" be an option? –  Christian May 30 '12 at 14:41
    
You linked pdf can't be open. However it's the best to provide a small picture instead of linking –  Marco Daniel May 31 '12 at 10:21
    
@Marco Daniel: I you look at the url you see what I mean; this is how LaTeX formats it. Maybe I shouldn't have converted the text into a link, but this is what LaTeX does so I wanted to do the same thing here. –  StrawberryFieldsForever Jun 1 '12 at 8:16
    
@Christian: I solved it by simply remove one of the urls. I figured it doesn't really make sense to have more than one link to the same document, especially if one of them require a login that you maybe don't have. –  StrawberryFieldsForever Jun 1 '12 at 8:19
    
@StrawberryFieldsForever I wouldn't call that "solved" but yeah, that way the problem's gone ;) –  Christian Jun 1 '12 at 13:28

2 Answers 2

up vote 7 down vote accepted

Most bibliography styles format the field url direct with the command \url.

You can use the field note to add unformatted text:

 NOTE =     "\url{http://citeseer.ist.psu.edu/562256.html} and 
             \url{http://gfs.sf.net/gerris.pdf}",
share|improve this answer

you can modify the \url command with a redefinition to take two urls into account:

\RequirePackage{filecontents}
\begin{filecontents}{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",
  abstract =    "An adaptive mesh projection method for the
         time-dependent incompressible Euler equations is
         presented. The domain is spatially discretised using
         quad/octrees and a multilevel Poisson solver is used to
         obtain the pressure. Complex solid boundaries are
         represented using a volume-of-fluid approach.
         Second-order convergence in space and time is
         demonstrated on regular, statically and dynamically
         refined grids. The quad/octree discretisation proves to
         be very flexible and allows accurate and efficient
         tracking of flow features. The source code of the
         method implementation is freely available.",
  citeseer-references = "oai:CiteSeerPSU:500259; oai:CiteSeerPSU:27423;
         oai:CiteSeerPSU:16254; oai:CiteSeerPSU:395363;
         oai:CiteSeerPSU:436925; oai:CiteSeerPSU:90307;
         oai:CiteSeerPSU:391348; oai:CiteSeerPSU:137987;
         oai:CiteSeerPSU:442611; oai:CiteSeerPSU:44620;
         oai:CiteSeerPSU:150038; oai:CiteSeerPSU:433875;
         oai:CiteSeerPSU:441861; oai:CiteSeerPSU:526586",
  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{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
%url = {http://citeseer.ist.psu.edu/562256.html; http://gfs.sf.net/gerris.pdf}

\begin{document}

foo\cite{oai:CiteSeerPSU:562256}

\printbibliography

\end{document}

enter image description here

share|improve this answer
    
Please explain what you did here! What does url contain after the line \addbibresource{test3.bib}? What does it contain if there are more than one reference? And what do the two macros do? –  StrawberryFieldsForever Jun 1 '12 at 8:33
    
I saved the old definition of \url as \URL and then redefined \url to be able to read two urls devided by a ; –  Herbert Jun 1 '12 at 11:38
    
Will this method be the same even if you use the hyperref package and not the url package? –  StrawberryFieldsForever Jun 12 '12 at 12:31
1  
@StrawberryFieldsForever: Yes, but the urls must be in one line –  Herbert Jan 26 '13 at 15:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.