Text FormattingCitations

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Molly
Posts: 1
Joined: Thu Mar 03, 2011 2:45 pm

Citations

Post by Molly »

Hi there.

I'd really appreciate your help! I'm a complete novice to LaTex and trying to create a basic template for my phd thesis. I have pretty strict citation rules and am having real problems producing a citation that uses a colon rather than a comma between year and page number e.g. (Waterman 2000:26) as opposed to (Waterman 2000,26).

My basic template looks like this:

> \documentclass[12pt]{report}
> \usepackage[margin=1in]{geometry}
> \usepackage{courier}
> \usepackage[onehalfspacing]{setspace}
> \usepackage{natbib}
> \bibpunct[: ]{(}{)}{,}{a}{}{;}
> \citestyle{chicago}
> \renewcommand{\footnotesize}{\fontsize{11pt}}
>
> \begin{document}
> \chapter{introduction}
> \citep[26]{Waterman2000}
> \chapter{conclusion}
>
> \bibliographystyle{humannat}
> \bibliography{References}

How can I get around this problem? Many many thanks!

Molly

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

5gon12eder
Posts: 126
Joined: Sun Feb 13, 2011 8:36 pm

Citations

Post by 5gon12eder »

Wouldn't you get what you want, if you'd just omit the line

Code: Select all

\citestyle{chicago}
I'm not 100 % sure what effect it has here but I think you don't need it since you specify the humannat style later anyway. At least the example you've posted appears to be---except for the colon :)---otherwise identical. Consulting the natbib reference sheet, the optional argument in

Code: Select all

\bibpunct[: ]{(}{)}{,}{a}{}{;}
should do the trick. (That's probably why you put it like is.) However, to make the citation appear exactly like your request above, you should omit the space after the colon. If you want space before, say, "and references therein", but not before the page, you may use something like

Code: Select all

\citep[~and references therein]{Waterman2000}
where necessary.


All the Best

P.S. You can make your post look much nicer, if you put your code between [co de][/co de] tags (without space) instead of using >s at the beginning of each line.
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
Post Reply