BibTeX, biblatex and biberDifferent Citation Styles

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
BarataPT
Posts: 1
Joined: Mon Jan 17, 2011 1:37 pm

Different Citation Styles

Post by BarataPT »

Hi,

I'm writing my thesis using a latex template, provided by the college. To store all the references i'm using bibtex.

I want to make citations using two different styles in the same document:
- text text [citation]
- Author (Year), text text

Mostly i use the first one, but in some cases the second one is necessary; also the references should appear this way
bibentries.png
bibentries.png (25.1 KiB) Viewed 6165 times
I tried to remove the alpharefs option, and this way i could use the Author (year) citation style, but the references hadn't numeration or so.


All the styles are defined on a document named "feuteses"

Code: Select all

\usepackage[alpharefs]{feupteses} 
There is some way to do this? So that i can use both commands \cite and \citet (or similar) to produce both citation styles.

Recommended reading 2024:

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

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

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

Different Citation Styles

Post by 5gon12eder »

I'm not sure if I got you a 100 % correct. Did you try the natbib package yet? It has a whole lot of useful features.

I made the following example which I hope will be close to what you wish to have.

Code: Select all

\documentclass{article}
\usepackage{natbib}

\begin{document}
  The       perhaps       most       frequently       cited       work
  \setcitestyle{authoryear,round}    \citet*{Lamport2006}   concerning
  \LaTeX{}     is     referenced     twice     in     this     section
  \setcitestyle{numbers,square}\citep{Lamport2006}.

  \bibliographystyle{plainnat}
  \bibliography{references}
\end{document}
Using the following (obvious) bibliography file named references.bib

Code: Select all

@book{Lamport2006,
  author    = {Lamport, Leslie},
  title     = {\LaTeX: A document preparation system; users guide %             
               and reference manual; updated for \LaTeXe},
  address   = {Boston},
  publisher = {Addison-Wesley},
  year      = {2006},
  edition   = {2},
}
I get this output:
output.png
output.png (43.31 KiB) Viewed 6140 times
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
Post Reply