Generalhumannat and webpages/url and custom bibdesk types

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Mixhael
Posts: 26
Joined: Sun Oct 05, 2008 12:56 pm

humannat and webpages/url and custom bibdesk types

Post by Mixhael »

I'm using the humannat style, however it doesn't seem to support the webpage/url type.

Is there a way to modify the style so it will display it correctly?

Also: I tried creating a custom type in bibdesk called 'newsarticle' for newspaper-article, with the fields author, year, month, day, title and newspaper. Is there a way to modify humannat to use this as well?

Recommended reading 2024:

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

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

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

humannat and webpages/url and custom bibdesk types

Post by Juanjo »

Please, find attached the file humannaturl.bst.tex. Download it and remove the tex suffix. This kind of renaming is only a trick to be able to upload it (this forum does not admit files with a bst suffix). Well, humannaturl.bst is the result of applying the Perl script urlbst to humannat.bst. Specifically, I have used the following command in a console:

Code: Select all

$ ./urlbst --doi --hyperref humannat.bst humannaturl.bst
Put humannaturl.bst in a folder where TeX can find it, replace humannat by humannaturl in your \bibliographystyle command, and try it. This new style should support new fields url and doi in every entry (@article, @book, @inproceedings...) It also supports a new entry type called @webpage, whose required fields are title and url, whereas the optional fields are author, editor (or maintainer of the webpage), note, year, month and lastchecked. If you load hyperref, url's and doi's turn into live hyperlinks in the pdf file.

I cannot help you with your second question.
Attachments
humannaturl.bst.tex
(34.38 KiB) Downloaded 315 times
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Mixhael
Posts: 26
Joined: Sun Oct 05, 2008 12:56 pm

humannat and webpages/url and custom bibdesk types

Post by Mixhael »

Thanks alot! However, I'm getting some error using it and I think it has to do with an incompatability with natbib?

Code: Select all

\documentclass{article}

\usepackage{palatino}
\usepackage{paralist}
\usepackage{natbib}
\usepackage[margin=3cm]{geometry}
\citestyle{chicago}
\usepackage{palatcm}

\bibpunct[: ]{(}{)}{;}{a}{}{,}

\begin{document}
\title{\textbf{title}}
\author{john}
\date{\today}

\maketitle

\cite{South-Africa:hl}

\bibliographystyle{humannaturl}

\bibliography{../../../tex/Bibliografie}

\end{document}
error:
Package natbib Warning: Citation `South-Africa:hl' on page 2 undefined on input
line 34.

(./test.bbl
! Undefined control sequence.
l.7 \url
{http://www.pptpilot.org.za/Alexandra_Township.pdf} [cited 13 sept...
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: humannat and webpages/url and custom bibdesk types

Post by Juanjo »

The problem is that the \url command is undefined. Add \usepackage{url} to the preamble. You may also want to have hyperlinks. In such a case, load instead the hyperref package.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Mixhael
Posts: 26
Joined: Sun Oct 05, 2008 12:56 pm

humannat and webpages/url and custom bibdesk types

Post by Mixhael »

thanks, that did the trick. However, the output is not really consistent with how humannat formats bibliographies:

the output is now:

Code: Select all

Pro Poor Tourism Pilots 
. Alexandra township, johannesburg, south africa [online]. (2008). Available from: http: 
//www.pptpilot.org.za/Alexandra_Township.pdf [cited 13 september 2008]. 
while it should be some thing like:

Code: Select all

Pro Poor Tourism Pilots 
    2008.    Alexandra township, johannesburg, south africa. Available from: http: 
//www.pptpilot.org.za/Alexandra_Township.pdf (cited 13 september 2008). 
- year in front
- (/) instead of [/]
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: humannat and webpages/url and custom bibdesk types

Post by Juanjo »

I've done some hacks in humannaturl.bst. Try it again. Remember to rename the attached file after download.
Attachments
humannaturl.bst.tex
(37.16 KiB) Downloaded 284 times
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Mixhael
Posts: 26
Joined: Sun Oct 05, 2008 12:56 pm

Re: humannat and webpages/url and custom bibdesk types

Post by Mixhael »

thanks alot :) works great!
Post Reply