On References

418 views
Skip to first unread message

XeTaL

unread,
Oct 4, 2008, 10:59:30 PM10/4/08
to LaTeX Users Group
What references style would you recommend for a following structure:

- - - - - - - - - - -beginning
References

1. Doe, J, Some Journal, Title of Article (optional), volume, ipage-
fpage (Year).
2. Someone, S., editor, Title of book, Publisher, ipage-fpage {Year).
- - - - - - - - - - end

I tried several, but none of them produces the above outlook. Say
{nature} is close but there's no title 'References' neither is there
free of brackets enumeration. Also, the citations in the text appear
in parentheses, ( ), not in brackets, [ ], as they should--perhaps, at
least as superscripts would be acceptable.

I came upon something called makebst. Don't know how it works and if
there's available ready style I shouldn't even bother to learn
probably. Unless, I have to.

Also, how would you avoid citations such as \cite{first author}
\cite{second author} \cite{third author} appear in the pdf text as (1)
(2)(3) rather than [1-3]?

Thanks in advance.

m4rije

unread,
Oct 5, 2008, 7:04:10 AM10/5/08
to LaTeX Users Group

On Oct 5, 3:59 am, XeTaL <kooo...@gmail.com> wrote:

> Also, how would you avoid citations such as \cite{first author}
> \cite{second author} \cite{third author} appear in the pdf text as (1)
> (2)(3) rather than [1-3]?

Does \cite{first author,second author,third author} solve that one?

XeTaL

unread,
Oct 5, 2008, 6:13:16 PM10/5/08
to LaTeX Users Group
Thanks m4rije,

Indeed, that solved the issue regarding (1-3) versus (1)(2)(3).
Unfortunately, the problem with the desired formatting of the
'References' is still unresolved.

XeTaL

unread,
Oct 6, 2008, 7:24:16 PM10/6/08
to LaTeX Users Group
I'm trying to use makebst.tex to customize my references.
Unfortunately, I still can't resolve the problem with the replacing
parentheses with brackets for the in-text citations as well as
removing the brackets from the reference list. I need to place the
word 'References' above that list which am not able to do as well.
Does anyone have experience with makebst.tex to help in solving these
problems? Thanks.

XeTaL написа:
> Thanks m4rije,
>
> Indeed, that solved the issue regarding (1-3) versus (1)(2)(3).
> Unfortunately, the problem with the desired formatting of the
> 'References' is still unresolved.
>

XeTaL

unread,
Oct 7, 2008, 1:15:32 AM10/7/08
to LaTeX Users Group
OK, here's what I got:
This

\bibpunct{[}{]}{;}{a}{,}{,}

takes care of the brackets rather than parentheses in the cross
references within the text while this

\bibpunct{[}{]}{;}{s}{,}{,}

makes the citations as superscripts.

What remains is to find out how to place (in RevTex4) the title
'References' for the reference list and how to remove the brackets
from the numbers in the list of references and have the numbers only
as a number and a period, like this

1. first citation
2. second citation
3. third citation
. . .
instead of:

[1] first citation
[2] second citation
[3] third citation
. . .
. . .

XeTaL написа:

jon

unread,
Oct 8, 2008, 7:03:32 PM10/8/08
to LaTeX Users Group
On Oct 7, 1:15 am, XeTaL <kooo...@gmail.com> wrote:

[snip]

i'm not familiar with makebst, but with biblatex these are pretty
trivial things to do.

>
> What remains is to find out how to place (in RevTex4) the title
> 'References' for the reference list and how to remove the brackets
> from the numbers in the list of references and have the numbers only
> as a number and a period, like this

for this you would write:

\renewcommand{\bibname}{References}

just before the

\printbibliography

command, which you put at the end of your .tex file (where you want it
to appear in your document)

(and to modify its appearance you could renew the chapter command like
any other chapter.)
>
> 1. first citation
> 2. second citation
> 3. third citation

to do this you need to make a modified version of the 'numeric' style
of biblatex. in essence this involves changing three lines to the
numeric.bbx style. or, better yet, make a copy of the numeric.bbx
file (keep in the same folder), call it mystyle.bbx and comment out
the following three lines (near the very top):

%\DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}}
%\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}
%\DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}}

and change them to this:

\DeclareFieldFormat{bibentrysetcount}{\mknumalph{#1}\addperiod}
\DeclareFieldFormat{labelnumberwidth}{#1\addperiod}
\DeclareFieldFormat{shorthandwidth}{#1\addperiod}

then, call biblatex with whatever options you want, but make sure it
looks at least like this

\usepackage[style=mystyle]{biblatex}
\bibliography{<your .bib file>}


in short, your tex file would have this structure:

------------------------------------------------------

\documentclass{<whatever>}

\usepackage[style=mystyle]{biblatex}
\bibliography{<your bib file>}

\begin{document}

<your document>


%%
\renewcommand{\bibname}{References}
\printbibliography\relax

\end{document}

----------------------------------------------

but you can make it more complicated than that if you wish.


cheers,
jon.

XeTaL

unread,
Oct 8, 2008, 10:38:30 PM10/8/08
to LaTeX Users Group
jon, thank you very much for the explanation. I tried to install
biblatex but it started giving me all kinds of errors so I gave it up
in favor of a simple solution with \bibitem. Something like this:

\begin{enumerate}
\bibitem[1.]{tag1} {Author} {\Title} <Journal>, <Volume>, <Page>,
<Year>
\end{enumerate}

which is cited in the text as \cite{tag1}.

I actually prefer it this way because now I have all the references in
front of me, right in the .tex file, instead of having them somewhere
in a .bib file.

Unfortunately, I still cannot get rid of the brackets in the list of
items and the numbers in this list aren't left justified for some
reason. If I can get rid of the '[' and ']' and have the numbers flush
that'll do for the time being.


jon написа:

Richard Karnesky

unread,
Oct 8, 2008, 11:37:08 PM10/8/08
to LaTeX Users Group
I wouldn't want to manage references by hand (sorting is a mess for
one), but you can exclude the '[1.]' from your enumerated list & the
default (unbracketed) enumeration will be used.

What I would do if I were you is look for a style for your journal
here:
http://jo.irisson.free.fr/bstdatabase/

If you don't find one there or on other examples lists, such as:
http://www.cs.stir.ac.uk/~kjt/software/latex/showbst.html
http://web.reed.edu/cis/Help/LaTeX/bibtexstyles.html

Then use makebst or biblatex.

To exclude square brackets from the list generated Bib(La)TeX, you can
use either:
\makeatletter
\def\@biblabel#1{#1}
\makeatother

or:
\let\@biblabel\relax.


--Rick

XeTaL

unread,
Oct 9, 2008, 12:56:38 AM10/9/08
to LaTeX Users Group
Thanks a lot, Rick. This

\makeatletter
\def\@biblabel#1{#1}
\makeatother

really did it. No more square brackets. One more stumbling block
overcome. As for the styles, the closest so far is the style I'm
generating by using makebst.tex. However, it only solves partially the
problems. For instance, I can't get rid of the fancy horizontal line
separating the text from the references. Also, I cannot generate a
title 'References' to be placed at their top. Also, for some reason
the year in an article does not appear last but is between the volume
and the pages although I was specially careful to have the year at the
end when running makebst.tex. Should I run it again or there's a way
to modify the obtained batch file? I took a look at it but it doesn't
seem straightforward as to how to change that.

Anyway, I agree that I shouldn't try to mess with the references
attempting to change them by hand. Somehow I have to learn how to do
it using something like makebst.tex. Thanks again for the help.

Richard Karnesky написа:

XeTaL

unread,
Oct 9, 2008, 3:34:50 AM10/9/08
to LaTeX Users Group
OK, I got it. For those who are interested, if you want to exchange
the place of the year and the pages in your article citation go to
mystyle.bst find the function:

FUNCTION {format.journal.eid}
{ eid "eid" bibinfo.check
duplicate$ empty$ 'pop$
{ swap$ duplicate$ empty$ 'skip$
{
", " *
}
if$
swap$ *
}
if$
}
FUNCTION {format.vol.num.pages}
{ volume field.or.null
duplicate$ empty$ 'skip$
{
"volume" bibinfo.check
}
if$
bolden
format.journal.pages
eid empty$
{ format.year * }
{ format.journal.eid }
if$
}

and exchange the places of format.journal.pages and format.year *,
depending on whether you need to have the former or the latter appear
first in the article citation.

Still can't figure out how to remove the fancy horizontal line
separating the text from the references and how to have the title
'References' appear in bold just above the list of references.

XeTaL написа:
> Thanks a lot, Rick. This
>
> \makeatletter
> \def\@biblabel#1{#1}
> \makeatother
>
> really did it. No more square brackets. One more stumbling block
> overcome. As for the styles, the closest so far is the style I'm
> generating by using makebst.tex. However, it only solves partially the
> problems. For instance, I can't get rid of the fancy horizontal line
> separating the text from the references. Also, I cannot generate a
> title 'References' to be placed at their top. Also, for some reason
> the year in an article does not appear last but is between the volume
> and the pages although I was specially careful to have the year at the
> end when running makebst.tex. Should I run it again or there's a way
> to modify the obtained batch file? I took a look at it but it doesn't
> seem straightforward as to how to change that.
>
> Anyway, I agree that I shouldn't try to mess with the references
> attempting to change them by hand. Somehow I have to learn how to do
> it using something like makebst.tex. Thanks again for the help.
>
> Richard Karnesky ������:

Richard Karnesky

unread,
Oct 9, 2008, 4:22:41 AM10/9/08
to LaTeX Users Group
> Still can't figure out how to remove the fancy horizontal line
> separating the text from the references and how to have the title
> 'References' appear in bold just above the list of references.

You may be departing enough from REVTeX that you might not use it.
However, you can redefine the bibsection like this (remove the star if
you want the section to be numbered; define refname if you aren't
happy with the default title):

\def\bibsection{\section*{\refname}}

--Rick

XeTaL

unread,
Oct 9, 2008, 4:50:47 AM10/9/08
to LaTeX Users Group
Thanks Rick, that did it. There are some small details I'm curious
about. Is there a way to shorten the gap between the main text and the
references and can the title 'References' be left-justified? Also,
joust out of curiosity, what part of code was making that horizontal
line?

As for REVTeX4, I like the rest of it--the way it formats the title,
the abstract etc. One thing that was bothering me was the way
references are handled but I think the problem is almost solved due to
your invaluable help, as well as m4rije's and jon's. Thank you all
very much.


Richard Karnesky написа:

James&Nash

unread,
Oct 9, 2008, 11:06:14 AM10/9/08
to latexus...@googlegroups.com
Hi folks,

I am currently using WinShell as my Latex editor on Windows XP Pro. I am
also using MikTEX for Windows. How can I convert my .dvi files to PDF
please? The distrubtion of MikTEX which is the lastest one does not seem to
hvae the pdftex or pdflatex style files. Any hlep thqat can bre offered
would be greatly appreciated thank you

With best wishes

james

Bruno Lopes

unread,
Oct 9, 2008, 1:13:54 PM10/9/08
to latexus...@googlegroups.com
Use dvips that's inside MikTeX and after the ps2pdf, inside the gosthscript package.

Bruno.

2008/10/9 James&Nash <james.au...@googlemail.com>



--
Bruno Lopes Vieira

Linux User #324250
Curriculum Vitae: http://lattes.cnpq.br/7793315334001237
--
"Never express yourself more clearly than you are able to think."
(Niels Bohr)

Michael Reynolds

unread,
Oct 9, 2008, 1:22:08 PM10/9/08
to latexus...@googlegroups.com
This may be a convoluted way, but you could use dvips to convert it to PostScript and then use ps2pdf (can't remember where this is but I'm sure CTAN is a good place to look). Or if you have Adobe Distiller, that'll do it. OR find a friend with a Mac and use Preview to convert it to PDF.

Hope this helps.

~ Michael

James&Nash

unread,
Oct 10, 2008, 7:37:59 AM10/10/08
to latexus...@googlegroups.com
Thank you for your suggestions. I am not sure I understand though. Could someone provide instructions on how to convert .dvi to .pdf. i also use a Mac, and the distribution that is currently avaliable on Mac OS X converts directly to pdf.
 
Thank you for any help you can give.
 
James

jon

unread,
Oct 10, 2008, 7:52:25 PM10/10/08
to LaTeX Users Group


On Oct 9, 4:50 am, XeTaL <kooo...@gmail.com> wrote:
> Thanks Rick, that did it. There are some small details I'm curious
> about. Is there a way to shorten the gap between the main text and the
> references and can the title 'References' be left-justified? Also,
> joust out of curiosity, what part of code was making that horizontal
> line?

assuming you're using Rick's \def, viz,

> > \def\bibsection{\section*{\refname}}

what you can do is redefine the section command like this (say right
before the new def):

\makeatletter
\renewcommand\section{\@startsection{section}{1}{0mm} % name, level,
indent
{-\baselineskip} % beforeskip
{1\baselineskip} % afterskip
{\normalfont\large\bfseries}} % the 'style' of the font
\makeatother

the 0mm tells latex you want no indent. the '1' is the normal section
depth for section; i assume this is true for your documentclass, but
maybe not....

the style of the font you'll probably want to change to match the
default style of other section headings. (\normalsize, \large,
\Large; \bfseries, \itshape --- whatever it is; you get the idea.)

anyway, the point is that this kind of thing is easily changed.

if you were to change, say, the 'chapter' heading style, you'd need to
start with:

\renewcommand\chapter{\@startsection{chapter}{<sec. depth>}{<indent>}

--- and continue on based on the above model.

cheers,
jon.

XeTaL

unread,
Oct 11, 2008, 12:28:46 AM10/11/08
to LaTeX Users Group
Thanks a lot, jon. Works really well. All the best.

jon написа:
Reply all
Reply to author
Forward
0 new messages