GeneralBibTeX | special characters in bibliography

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ddouglasgs
Posts: 5
Joined: Thu Oct 01, 2009 2:04 am

BibTeX | special characters in bibliography

Post by ddouglasgs »

Hello,

I'd like to know how to use reserved characters in my "bibliographics references", like in this case:
CVRD_Prensa_de_Rolos_1999.pdf
(25.78 KiB) Downloaded 486 times
Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

BibTeX | special characters in bibliography

Post by localghost »

I can't see where this document has a bibliography. If you mean the lists where the items are introduced by a circle, you should use a list environment like itemize, perhaps customized with enumitem. Note that such a bibliography would not make sense. It doesn't allow references in the text because its items become indistinguishable.


Best regards and welcome to the board
Thorsten¹
ddouglasgs
Posts: 5
Joined: Thu Oct 01, 2009 2:04 am

Re: Bibliography

Post by ddouglasgs »

No man,

the problem is when I wirte in the Bibliography.bib some url, for example:

@misc{altus,
title={anything},
url={http://www.altus.com/ftp/Public_main/access%14%oct},
urlaccessdate={17 oct. 2009}
}

see that I have special characters like "_" and "%", so when I compile appears an error because of it. So I wanna know what I could to do to finish with this problem.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

BibTeX | special characters in bibliography

Post by localghost »

I don't see a connection to your initial request. Please point out exactly the problem from the beginning. For this second issue you can try the url package.
ChE
Posts: 7
Joined: Sat Oct 17, 2009 2:51 pm

BibTeX | special characters in bibliography

Post by ChE »

ddouglasgs wrote:see that I have special characters like "_" and "%", so when I compile appears an error because of it. So I wanna know what I could to do to finish with this problem.
Could you know just use \% and \_? So:

url={http://www.altus.com/ftp/Public\_main/access\%14\%oct}

Let me know if it works; I'm curious.
ddouglasgs
Posts: 5
Joined: Thu Oct 01, 2009 2:04 am

Re: Bibliography

Post by ddouglasgs »

It doesn't works!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

BibTeX | special characters in bibliography

Post by localghost »

I already suggested the url package.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{url}

\begin{document}
  \url{http://www.altus.com/ftp/Public_main/access%14%oct}
\end{document}
Thus the entry of your database file has to be modified as follows.

Code: Select all

@misc{altus,
  title={anything},
  url={\url{http://www.altus.com/ftp/Public_main/access%14%oct}},
  urlaccessdate={17 oct. 2009}
}
ddouglasgs
Posts: 5
Joined: Thu Oct 01, 2009 2:04 am

Re: Bibliography

Post by ddouglasgs »

It's still doesn't working, because of "%". The text editor thinks it's a comment.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

BibTeX | special characters in bibliography

Post by localghost »

It's not important what your text editor thinks. The following example with natbib works flawlessly.

Code: Select all

\begin{filecontents*}{sample.bib}
@misc{altus,
  title={anything},
  url={http://www.altus.com/ftp/Public_main/access%14%oct},
  urlaccessdate={17 oct. 2009}
}
\end{filecontents*}
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{natbib}

\begin{document}
  \nocite{*}
  \bibliographystyle{plainnat}
  \bibliography{sample}
\end{document}
Post Reply