"Fossies" - the Fresh Open Source Software Archive

Member "hevea-2.35/examples/natbib.tex" (16 Jan 2021, 2322 Bytes) of package /linux/www/hevea-2.35.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TeX and LaTeX source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 \documentclass{article}
    2 \usepackage{a4}
    3 \usepackage{url}
    4 \usepackage{index}
    5 \usepackage{natbib}
    6 \makeindex\citeindextrue
    7 \begin{document}
    8 \title{``Natural''(Science)  Bibliographies}
    9 \author{}
   10 \date{}
   11 \maketitle
   12 \bibliographystyle{plainnat}
   13 \newcommand{\zyva}
   14 {\begin{center}
   15 \begin{tabular}{p{.4\linewidth}@{\quad\ensuremath{\Rightarrow}\quad}p{.4\linewidth}}
   16 \url+\citet{MPW92}+ & \citet{MPW92}\\
   17 \url+\citet[chap.~2]{MPW92}+ & \citet[chap.~2]{MPW92}\\
   18 \url+\citep{MPW92}+ & A~\citep{MPW92}\\
   19 \url+\citep[chap.~2]{MPW92}+ & A~\citep[chap.~2]{MPW92}\\
   20 \url+\citep[see][]{MPW92}+ & A~\citep[see][]{MPW92}\\
   21 \url+\citep[see][chap.~2]{MPW92}+ & A~\citep[see][chap.~2]{MPW92}\\
   22 \url+\citet*{MPW92}+ & \citet*{MPW92}\\
   23 \url+\citep*{MPW92}+ & A~\citep*{MPW92}\\
   24 \url+\citep[chap.~2]{MPW92,odersky:esop2000}+ & A~\citep[chap.~2]{MPW92,odersky:esop2000} \\
   25 \url+\citet[chap.~2]{MPW92,odersky:esop2000}+ &\citet[chap.~2]{MPW92,odersky:esop2000} \\
   26 \url+\citenum{MPW92}--\citenum{MPW92,odersky:esop2000}+ &
   27 \citenum{MPW92}--\citenum{MPW92,odersky:esop2000}\\
   28 \url+\citeauthor{MPW92}--\citeauthor{MPW92,odersky:esop2000}+ &
   29 \citeauthor{MPW92}--\citeauthor{MPW92,odersky:esop2000}\\
   30 \url+\citeauthor*{MPW92}--\citeauthor*{MPW92,odersky:esop2000}+ &
   31 \citeauthor*{MPW92}--\citeauthor*{MPW92,odersky:esop2000}\\
   32 \url+\citeyear{MPW92}--\citeyear{MPW92,odersky:esop2000}+ &
   33 \citeyear{MPW92}--\citeyear{MPW92,odersky:esop2000}\\
   34 \url+\citeyearpar{MPW92}--\citeyearpar{MPW92,odersky:esop2000}+ &
   35 \citeyearpar{MPW92}--\citeyearpar{MPW92,odersky:esop2000}\\
   36 \end{tabular}
   37 \end{center}
   38 \printindex}
   39 
   40 \section{Default, from \texttt{.bst} file \texttt{plainnat}}
   41 \zyva
   42 
   43 %\citeindexfalse
   44 \bibliography{natbib}
   45 %\citeindextrue
   46 
   47 
   48 \subsection{A few other comands}
   49 \defcitealias{AppliedPi}{Applied~$\pi$}Now we
   50 say~\citepalias{AppliedPi} for~\citep{AppliedPi}.
   51 \begin{center}
   52 \begin{tabular}{l@{\quad$\Rightarrow$\quad}l}
   53 \url+\citetalias{AppliedPi}+ & \citetalias{AppliedPi}\\
   54 \url+\citepalias{AppliedPi}+ & \citepalias{AppliedPi}\\
   55 \url+\citepalias[See][Sec.~4]{AppliedPi}+ & \citepalias[See][Sec.~4]{AppliedPi}\\
   56 \end{tabular}
   57 \end{center}
   58 
   59 \section{Option \texttt{authoryear}}
   60 \setcitestyle{authoryear}\zyva
   61 
   62 \section{Option \texttt{numbers}}
   63 \setcitestyle{numbers}\zyva
   64 
   65 \section{Option \texttt{super}}
   66 \setcitestyle{super}\zyva
   67 
   68 \end{document}