2
\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl}

\usepackage[style=numeric,              
natbib=true,   
maxitems=1,
backend=biber]{biblatex} 

\usepackage[breaklinks=true, 
linktocpage=true,
pdftitle={My Title},
pdfsubject={},
pdfauthor={My Name},
pdfkeywords={}]{hyperref}
\bibliography{project.bib}


\begin{document}


@Misc{ansys_2009,
url = {http://orange.engr.ucdavis.edu/Documentation12.1/121/ans_ctec.pdf},
Year = {2009}}

\printbibliography
\end{document}

The url link is not getting published in Bibliography. I tried writing the link in ''How published'' section as well.

  • 1
    Your example does not make a lot of sense. You can use the filecontents* environment to include the content of a .bib file in your document. Notes are not published. Use the url field in the bibfiile. url = {http://orange.engr.ucdavis.edu/Documentation12.1/121/ans_ctec.pdf}, – MaxNoe Jun 22 '15 at 16:50
  • @MaxNoe Could you please explain when you say it does not make a lot of sense. I referred different questions asked and hence I used my link in the ''Note'' and ''How published'' field. – Bruce Jun 22 '15 at 16:56
  • 2
    I meant that you just copied your bib entry in your texfile. Did you try to compile your example? Certainly not. – MaxNoe Jun 22 '15 at 17:00
  • Are you using BibTeX or biblatex to generate the bibliography? – Gonzalo Medina Jun 22 '15 at 17:09
  • 2
    The code you posted here is certainly not compilable . You do not even load biblatex – MaxNoe Jun 22 '15 at 17:27
3

This is a bit simplified, so please don't tell me it isn't quite this straightforward and that Biblatex can also roast your coffee beans while Biber de-fleas the dog. This is a crude overview. For details of Biber's pet-grooming features, the interested reader is respectfully referred to the manual.

To create a bibliography using the Biblatex package and Biber, you need the following:

A database containing bibliographical data for the various sources you will use in your document (and maybe for a lot of sources you won't use there, as well). Most commonly, this is a BibTeX .bib file.

% mybibliography.bib

@book{key1,
 author = ...
}
@article{key2,
 author = ...
}
@misc{key3,
 ...
}

Then, in the preamble of your .tex file, you add

\usepackage[backend=biber]{biblatex}
\addbibresource{mybibliography.bib}

In the body of your document, you need 2 things.

  1. Commands which tell Biblatex which items it should retrieve from the database. By default, it will not retrieve any so your bibliography will be empty.

  2. A command to print the bibliography.

Typically, you might have

Some text \cite{key1}.

Some more text \cite{key3}.

\printbibliography

This will add the first and third entry from the database to the document's bibliography, but not the second.

Then you run latex (or pdflatex or xelatex or whatever) on your file as normal. This produces a .bcf file with instructions for creating the bibliography for the document. This specifies which database(s) to read and which keys need to be looked up.

Then you need to run biber to actually retrieve the information from the database. LaTeX doesn't read the .bib file itself. It just tells Biber what to do. Biber reads the .bcf and mybibliography.bib and creates a .bbl file with the details of the entries requested. In this case, the .bbl will include the data for key1 and key3 but not for key2.

Then you run latex (or pdflatex or...) again, and, possibly, a second time to resolve the citations and produce the bibliography. LaTeX reads the .bbl file and integrates the information about key1 and key3 into your document.

And they all live happily after....

|improve this answer|||||
3

The Basics:

As you are missing some of the basics, I extended my answer a bit.

biblatex works like this:

  • You have the information about your references in a .bib text file. This is the project.bib you seem to have created with JabRef.

  • You load the package with \usepackage[backend=biber]{biblatex}

  • In you document, you can refer to your sources with \cite{<key>} where <key>
    is the first entry in a bib object in your project.bib.

  • Add a \printbibliography where you want the bibliography, usually at the very end of your document.

  • Now run your favourite LaTeX-Compiler (one of e.g. latex, pdflatex, xelatex, lualatex). The program will write the keys you need because you \cited them to a file mydocument.bcf.

  • Then run biber: biber mydocument.bcf, biber will look up the keys in your project.bib sort and format them and write them to a file with the name mydocument.bbl

  • Now you need to run the LaTeX-Compiler at least one time more, it reads the mydocument.bbl-file and builds your citations and the bibliography from it.

Adding a url to a bibentry.

For adding an URL to a source, use the url entry type in your bibfile. Do not add formatting commands into the bib file, that is biblatex's job. If it is an online only source, you should prefer @online to @misc:

@online{ansys_2009,
      Title = {Contact Technology Guide},
      Author = {Ansys, Inc.},
      Month = {November},
      url = {http://orange.engr.ucdavis.edu/Documentation12.1/121/ans_ctec.pdf},
      Year = {2009}
    }

No we can cite it like this and have the url shown in the bibliography:

\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl}

\usepackage[backend=biber]{biblatex}
\addbibresource{project.bib}

\usepackage[colorlinks]{hyperref}        
\begin{document}
See \cite{ansys_2009}!
\printbibliography
\end{document}

This is the result:

result

|improve this answer|||||
  • 1
    When using biblatex, you might as well use type online ;-) – Johannes_B Jun 22 '15 at 17:25
  • @Johannes_B As I am new to Latex, I am confused. The tex file says it's Biblatex so I am sure it's correct. But the entries into .Bib file are done using JabRef reference Manager wherein I enter the reference of Book/Url – Bruce Jun 22 '15 at 17:55
  • I extended my answer to cover some basics – MaxNoe Jun 23 '15 at 7:34
  • @MaxNoe : There is no field as online in my .bib file. So I am using misc – Bruce Jun 23 '15 at 21:54

Your Answer

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

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