Enrico Bertolazzi
Laboratorio di Matematica Applicata e Meccanica Computazionale
Dipartimento di Ingegneria Meccanica e Strutturale
Università degli Studi di Trento
Mesiano, Trento, Italy
enrico.bertolazzi@ing.unitn.it
\documentclass{article} . . \usepackage[definethebibliography]{easybib} . .The option \definethebibliography permits to override the default thebibliography environment. In this case the environment thebibliography take this form:
\begin{thebibliography}``[optional name]'' ``(\cmd,space)''{99} . . . \end{thebibliography}so that you can override the default name \refname with your own name, you can change the default \section* with \cmd and add extra space
space
before the items. The
syntax of the bibliography command is now the following
\begin{thebibliography}{99} \bookref{label name} \by Author(s) name \bysame \title Title of the book \bookinfo ... \publ publisher \publaddr publisher address \pages pages number \yr year \lang ... \transl ... \endref \paperref{label name} \by Author(s) name \bysame \title Title of the book \transl ... \jour Journal name \toappear ... \inbook ... \publ publisher \eds ... \publaddr publisher address \vol volume \yr year \pages pages number \finalinfo ... \lang ... \endref \end{thebibliography} |
the command
\bookref``[display label]''{label} ... \endrefis used to refer to a book, while
\paperref``[display label]''{label} ... \endrefis used to refer to a paper.
When an item, for example \xxx, is encountered then the following text is expanded as follows
\xxx+text ==> punctation + begin commands + text + end commandswhere the
punctation
is displayed unless \xxx is the
first displayed item.
The default values for the items in the \bookref environment
are the following
command | punctation | begin commands | end commands |
\by | , |
\bfseries | nothing |
\bysame | , |
![]() |
nothing |
\title | , |
\scshape | nothing |
\bookinfo | , |
\rmfamily | nothing |
\publ | , |
\rmfamily | nothing |
\publaddr | , |
\rmfamily | nothing |
\pages | , |
\rmfamily | nothing |
\yr | , |
\rmfamily | nothing |
\lang | nothing | ( |
) |
\transl | , |
\rmfamily | nothing |
command | punctation | begin commands | end commands |
\by | , |
\bfseries | nothing |
\bysame | , |
![]() |
nothing |
\title | , |
\itshape | nothing |
\transl | , |
\rmfamily | nothing |
\jour | , |
\rmfamily | nothing |
\toappear | nothing | (to appear |
) |
\inbook | , |
\rmfamily | nothing |
\publ | , |
\rmfamily | nothing |
\eds | nothing | ( |
\@killglue, eds.) |
\publaddr | , |
\rmfamily | nothing |
\vol | nothing | \bfseries | nothing |
\yr | nothing | ( |
) |
\pages | , |
\rmfamily | nothing |
\finalinfo | , |
\rmfamily | nothing |
\lang | nothing | ( |
) |
\paperref{label name} or \bookref{label name} items \moreref`[punctation]'{book or paper} items \moreref`[punctation]'{book or paper} . . \endrefThe effect is to use a single label reference for more than one book or paper. The optional command ``
[punctation]
'' can be used to
change the default punctation ``;
'' to something else for example
you can use \moreref[, see also:]{book}
.
;
.
It is possible to change the default value as follows
\endref[punctation], for example \endref[.]This is useful for the last reference, for example
|
\begin{thebibliography}
.
The syntax is the following:
\refstyle{A} or \refstyle{B} or \refstyle{C}the effect is to change \@bibitem as follows
command | \@bibitem definition | sample output |
\refstyle{A} |
\def\@bibitem#1{#1.} |
1. |
\refstyle{B} |
\def\@bibitem#1{[#1]} |
[1] |
\refstyle{C} |
\def\@bibitem#1{} |
nothing |
The following complex example shows the features of easybib and is essentially the example showed in the AMS-TEX documentation translated in the language of easybib.
|
|
\bibsetfmt[group name,item]{punctation} {begin commands} {end commands}for example
\bibsetfmt[paper,by]{,}{\textit}{:}In this way you can change in an easy way the appearance of the bibliography.
for `paper' group: by,bysame,title,transl,jour,toappear, inbook,publ,eds,publaddr,vol, yr,pages,finalinfo,lang for `book' group: by,bysame,title,bookinfo,publ,publaddr, pages,yr,lang,translcan be changed defining the macro \paperlist and \booklist. For example in order to have the
yr
item
displayed after pages
item in the paper
group define:
\def\paperlist{by,bysame,title,transl,jour,% toappear,inbook,publ,eds,% publaddr,vol,pages,yr,% finalinfo,lang}
|
for the following bibliography
![]() |
paper
and book
you can easily define new ones. For example suppose you want to
define a new style tales
with the item \author,
\title, \year with:
(...)
you must follow the following steps
\def\taleslist{author,title,year}
\bibdefinestyles{tales}it defines the items \author, \title, \year with the default format and the command \talesref.
\bibsetfmt[tales,author] {,} {\setbox0\hbox\bgroup\scshape} {\egroup\fbox{\box0}} \bibsetfmt[tales,title]{}{\itshape}{} \bibsetfmt[tales,year]{}{\bfseries(}{)}
The following example (which uses [definethebibliography]) shows the effect:
|
This document was generated using the LaTeX2HTML translator Version 99.1 release (March 30, 1999)
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html -local_icons -no_navigation -split 0 docbib
The translation was initiated by Bertolazzi Enrico on 1999-10-22