BibTeX, biblatex and biberA different type of reference

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
darx
Posts: 2
Joined: Wed Feb 24, 2010 7:07 pm

A different type of reference

Post by darx »

I just started learning LaTeX and I've gotten the standard method of making references to work. However where I'm from, we make references like this:

1. We must point a reference to certain pages in a book/article/etc. This can be either "(45" or (45-47"
2. We also need to write the last name of the author and the year the book was published. It looks like this: "name-of-author:year)"

So all in all, it has to look like this: (PAGES AUTHOR:YEAR). This has to be in the actual text in the report/article/etc. that we're writing. It would kinda look like this:

yada yada yada yada (PAGES AUTHOR:YEAR). Yada yada yada yada

How can I do this? I've searched on google, but I couldn't find anything.

Any help would be appreciated. Thanks

Recommended reading 2024:

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

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

snowfrog
Posts: 38
Joined: Wed Jan 06, 2010 8:11 pm

A different type of reference

Post by snowfrog »

Hi,

I haven' tried myself but I think you should be able to do this by declaring new commands. Something like

Code: Select all

\newcommand{\diffref}[1]{#1} 
in the preamble, something like

Code: Select all

@preamble{"\def\diffref#1{}"}
in your *bib file and in your bibTeX reference itself have something like

Code: Select all

\diffref{PAGES AUTHOR:YEAR} 
This needs some playing around with as I doubt it will work as it is but I guess it's a start!
darx
Posts: 2
Joined: Wed Feb 24, 2010 7:07 pm

Re: A different type of reference

Post by darx »

Thanks for your help :) I'll try to develop on the things that you've written.
Post Reply