GeneralHow can I show the bibligraphy in the text

LaTeX specific issues not fitting into one of the other forums of this category.
spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

How can I show the bibligraphy in the text

Post by spiegboy »

I need to list some publications in the text but NOT in the bibliography at the end.
something like
text,
1, publication 1
2, publication 2
text
How can i do that? thanks a lot

Recommended reading 2024:

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

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

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: How can I show the bibligraphy in the text

Post by Juanjo »

Bibliographies are just list-like environments. If you plan to write a numbered bibliography, you can adapt an enumerate environment.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

How can I show the bibligraphy in the text

Post by spiegboy »

i understand, but what i mean is that is that any command available to link the bibliography from the database to be presented in the text directly.

something like
text
\citecommand{bibkey}
text

,,,,,
bibliography{}
bibliographystyle{}
thanks a lot
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

How can I show the bibligraphy in the text

Post by Juanjo »

The multibib package may be what you are searching for. It will allow you to generate a secondary bibliography.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

How can I show the bibligraphy in the text

Post by balf »

You also can try footbib, that make bibliographical items appear in footnotes.

B.A.
spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

Re: How can I show the bibligraphy in the text

Post by spiegboy »

I will give a try, by the way, what does 'B.A.' stand for? your name?
spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

How can I show the bibligraphy in the text

Post by spiegboy »

i cannot use multibib to link the database automatically, here is an example

Code: Select all

\documentclass{article}
\usepackage[english]{babel}
\usepackage{multibib}
\newcites{pub}{publication list}
\begin{document}
References to the \TeX book
and to Lamport’s \LaTeX\ book, which appears
only in the references\citepub{Tian2003}.
Finally a cite to a Postscript tutorial
\cite{Phana}.
\bibliographystylepub{plain}
\bibliographypub{Phan}

\renewcommand{\refname}{Postscript References}
\bibliographystyle{plain}
\bibliography{Phan}
\end{document}
the error show that the bibliography cited by the newcite command are undefined.
there is no file pub.bbl found
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: How can I show the bibligraphy in the text

Post by balf »

@spiegboy: yes, its stands for my name.

B.A.
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

How can I show the bibligraphy in the text

Post by Juanjo »

spiegboy,

As explained in the manual of multibib, for each new bibliography, there is an assocated aux file. In your case, there should exist the file pub.aux after a LaTeX run. You need to run BibTeX on this file by yourself in order to generate pub.bbl. Once obtained this last file, the next LaTeX run will produce the complete document. You may need another compilatation to set references correctly.

To run BibTeX on pub.aux, you should open a console and type "bibtex pub" or "bibtex path_to_pub/pub". If you have \write18 enabled, you may try the following trick: before \documentclass, add the line

\immediate\write18{bibtex pub}

This launches BibTeX on pub.aux every time you compile. Once obtained pub.bbl, if you don't make any more changes to the bibliography, you can comment out that line.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

Re: How can I show the bibligraphy in the text

Post by spiegboy »

thanks , it works, 2 questions remain
1. how can i open a console directly from the TeXnicCentre with the project root as the default root, so that i can easily input the command 'bibtex pub' intead of locating the directory first by appealling to 'cmd' in windows
2, how can i enable or activate that code \write18?

Thanks a lot
Post Reply