Hello. I downloaded the latest mciteplus directory from
http://www.ctan.org/tex-archive/macros/latex/contrib/mciteplus/
and added the following (simplified) .tex file. I ran latex twice to
generate a .dvi. The problem is that although the body cites [1], the
bibilography has two separate references (rather than a combined set).
\documentclass[prl,showpacs,amsmath,amssymb]{revtex4}
\usepackage{mciteplus}
\begin{document}
Extracting Anderson\cite{tiggelen00,*skipetrov04} and more.
\begin{thebibliography}{99}
\bibitem{tiggelen00} B.A. van Tiggelen and D.S. Wiersma, Phys. Rev.
Lett. \textbf{84}, 4333 (2000).
\bibitem{skipetrov04} S.E. Skipetrov and B.A. van Tiggelen, Phys. Rev.
Lett. \textbf{92}, 113901 (2004).
\end{thebibliography}
\end{document}
I want to produce a bibliography with two references from one
citation.
I have also read the package author's page, but did not see the
answer.
http://www.michaelshell.org/tex/mciteplus/
|
|
0
|
|
|
|
Reply
|
ben.is.located (9)
|
4/8/2010 12:02:54 AM |
|
On Wed, 7 Apr 2010 17:02:54 -0700 (PDT)
Ben <ben.is.located@gmail.com> wrote:
> Hello. I downloaded the latest mciteplus directory from
> http://www.ctan.org/tex-archive/macros/latex/contrib/mciteplus/
> and added the following (simplified) .tex file. I ran latex twice to
> generate a .dvi. The problem is that although the body cites [1], the
> bibilography has two separate references (rather than a combined set).
Ben,
Mciteplus requires the mcitethebibliography environment to be used
when you need combined entries. This allows for the multiple use of
different bibstyles, including mixed use with those that do not support
mciteplus. Furthermore, mciteplus is somewhat complex with respect to
getting the intra-entry punctuation right and this is further complicated
with bibstyles that need to change their end punctuation depending on
certain entry fields, as is the case with IEEEtranM.bst.
So, you've got to manually insert some extra code when formatting
manually when you are not using an mciteplus .bst that would do this
extra work for you:
\documentclass[prl,showpacs,amsmath,amssymb]{revtex4}
\usepackage{mciteplus}
\newcommand{\MYstdmcitebibitemterminate}{\mciteBstWouldAddEndPuncttrue
\mciteSetBstMidEndSepPunct{;\space}{.}{\par\relax}\relax
\EndOfBibitem}
\begin{document}
Extracting Anderson\cite{tiggelen00,*skipetrov04} and more.
\begin{mcitethebibliography}{10}
\bibitem{tiggelen00} B.A. van Tiggelen and D.S. Wiersma, Phys. Rev.
Lett. \textbf{84}, 4333 (2000)\MYstdmcitebibitemterminate
\bibitem{skipetrov04} S.E. Skipetrov and B.A. van Tiggelen, Phys. Rev.
Lett. \textbf{92}, 113901 (2004)\MYstdmcitebibitemterminate
\end{mcitethebibliography}
\end{document}
Cheers,
Mike Shell
|
|
0
|
|
|
|
Reply
|
Michael
|
4/8/2010 3:49:49 AM
|
|
On Apr 7, 10:49=A0pm, Michael Shell <ne...@michaelshell.org> wrote:
> On Wed, 7 Apr 2010 17:02:54 -0700 (PDT)
>
> Ben <ben.is.loca...@gmail.com> wrote:
> > Hello. I downloaded the latestmciteplusdirectory from
> >http://www.ctan.org/tex-archive/macros/latex/contrib/mciteplus/
> > and added the following (simplified) .tex file. I ran latex twice to
> > generate a .dvi. The problem is that although the body cites [1], the
> > bibilography has two separate references (rather than a combined set).
>
> =A0 Ben,
>
> Mciteplusrequires the mcitethebibliography environment to be used
> when you need combined entries. This allows for the multiple use of
> different bibstyles, including mixed use with those that do not supportmc=
iteplus. Furthermore,mciteplusis somewhat complex with respect to
> getting the intra-entry punctuation right and this is further complicated
> with bibstyles that need to change their end punctuation depending on
> certain entry fields, as is the case with IEEEtranM.bst.
>
> So, you've got to manually insert some extra code when formatting
> manually when you are not using anmciteplus.bst that would do this
> extra work for you:
>
> \documentclass[prl,showpacs,amsmath,amssymb]{revtex4}
> \usepackage{mciteplus}
>
> \newcommand{\MYstdmcitebibitemterminate}{\mciteBstWouldAddEndPuncttrue
> \mciteSetBstMidEndSepPunct{;\space}{.}{\par\relax}\relax
> \EndOfBibitem}
>
> \begin{document}
> Extracting Anderson\cite{tiggelen00,*skipetrov04} and more.
> \begin{mcitethebibliography}{10}
> \bibitem{tiggelen00} B.A. van Tiggelen and D.S. Wiersma, Phys. Rev.
> Lett. \textbf{84}, 4333 (2000)\MYstdmcitebibitemterminate
> \bibitem{skipetrov04} S.E. Skipetrov and B.A. van Tiggelen, Phys. Rev.
> Lett. \textbf{92}, 113901 (2004)\MYstdmcitebibitemterminate
> \end{mcitethebibliography}
> \end{document}
>
> =A0 Cheers,
>
> =A0 Mike Shell
Hello again. I was able to compile the .tex you suggested and it
resulted in what I was looking for (collapsed citations, one key). I
understand that extra work is needed to handle the punctuation between
citations, so how would that apply if an external bibliography is
being used? For example, if the keys are in an external bibtex
database file:
\documentclass[prl,showpacs,amsmath,amssymb]{revtex4}
\usepackage{mciteplus}
\begin{document}
Extracting Anderson\cite{tiggelen00,*skipetrov04} and more.
\bibliography{latex_bibliography}
\end{document}
where latex_bibliography.bib has entries formatted like
@article{tiggelen00,
author =3D {B.A. van Tiggelen and D.S. Wiersma}
journal =3D {Phys. Rev. Lett.},
volume =3D {84},
eid =3D {4333},
year =3D {2000} }
Will I be able to use mciteplus with an external bibliography? I don't
understand how to use the mcitethebibliography environment, and
ironically a google search yields this discussion and the PDF
documentation.
Thanks for authoring and supporting this LaTeX package.
|
|
0
|
|
|
|
Reply
|
Ben
|
4/8/2010 10:41:22 PM
|
|
On Thu, 8 Apr 2010 15:41:22 -0700 (PDT)
Ben <ben.is.located@gmail.com> wrote:
> Will I be able to use mciteplus with an external bibliography?
It depends on what is meant by an "external bibliography" because
this can be interpreted in two different ways:
1. a .bbl or .tex file containing an already formatted
thebibliography environment (such as an import from
another document)
For case #1, the file will have to be manually changed
as in the example I gave.
<or>
2. a BibTeX generated bibliography.
Your post indicated the use of a .bib database, which means
BibTeX. However, you don't say which
\bibliographystyle{}
i.e., "BibTeX style file", bibstyle, .bst file, you are using.
Which bibstyle are you using?
The BibTeX style file must support mciteplus. There are several
already in existence (including those for REVTeX) which are
included with the mciteplus package and I might add more if
you know of one that should be added for which there already
is a non-mciteplus bibstyle.
However, it is not much work to modify an existing bibstyle
for use with mciteplus. The details are in section 3 of the
mciteplus manual.
I should also mention that most recent versions of REVTeX (4.1
and later), in conjunction with recent versions of natbib,
already contain support for combined citations and so no longer
even need mciteplus (but mciteplus is more general and will work
with many other class and package combos). I haven't yet
looked closely over at recent changes in REVTeX 4.1.
Cheers,
Mike
|
|
0
|
|
|
|
Reply
|
Michael
|
4/9/2010 1:01:35 AM
|
|
On Apr 8, 8:02=A0pm, Michael Shell <ne...@michaelshell.org> wrote:
> On Thu, 8 Apr 2010 15:41:22 -0700 (PDT)
>
> Ben <ben.is.loca...@gmail.com> wrote:
> > Will I be able to usemcitepluswith an external bibliography?
>
> It depends on what is meant by an "external bibliography" because
> this can be interpreted in two different ways:
>
> =A01. a .bbl or .tex file containing an already formatted
> =A0 =A0 thebibliography environment (such as an import from
> =A0 =A0 another document)
> =A0 =A0 For case #1, the file will have to be manually changed
> =A0 =A0 as in the example I gave.
>
> =A0<or>
>
> =A02. a BibTeX generated bibliography.
>
> Your post indicated the use of a .bib database, which means
> BibTeX. However, you don't say which
>
> \bibliographystyle{}
>
> i.e., "BibTeX style file", bibstyle, .bst file, you are using.
>
> Which bibstyle are you using?
>
> The BibTeX style file must supportmciteplus. There are several
> already in existence (including those for REVTeX) which are
> included with themcitepluspackage and I might add more if
> you know of one that should be added for which there already
> is a non-mciteplusbibstyle.
>
> However, it is not much work to modify an existing bibstyle
> for use withmciteplus. The details are in section 3 of themciteplusmanual=
..
>
> I should also mention that most recent versions of REVTeX (4.1
> and later), in conjunction with recent versions of natbib,
> already contain support for combined citations and so no longer
> even needmciteplus(butmciteplusis more general and will work
> with many other class and package combos). I haven't yet
> looked closely over at recent changes in REVTeX 4.1.
>
> =A0 Cheers,
>
> =A0 Mike
Thanks for your very helpful responses.
I don't use any bibliographystyle in the latex code (as the snippets I
gave show). I think I'm just using the format that follows from having
document class revtex. I do not have experience with .bst files since
I haven't used them yet (they don't show up when I compile tex to
pdf).
Reading VIII.5 (page 15) of the Revtex guide
http://authors.aps.org/revtex4/auguide4-1.pdf
I needed to update my latex packages (I use miktex on windows). I
expected to just need the newest version based on the revtex author
guide. However, the following did NOT compile with an external bibtex
database:
\documentclass[prl,showpacs,amsmath,amssymb]{revtex4}
\usepackage{natbib}
\begin{document}
Extracting Anderson\cite{tiggelen00,*skipetrov04} and more.
\bibliography{latex_bibliography}
\end{document}
After more reading, I included the apsrevM.bst file in the directory
and referenced it as below. The following worked as desired (multiple
references per citation with an external bib file):
\documentclass[prl,showpacs,amsmath,amssymb]{revtex4}
\usepackage{natbib}
\usepackage{mciteplus}
\begin{document}
Extracting Anderson\cite{tiggelen00,*skipetrov04} and more.
\bibliographystyle{apsrevM}
\bibliography{latex_bibliography}
\end{document}
This uses the default citation separation, so that the printed output
reads
Extracting Anderson[1] and more.
[1] B.A. van Tiggelen and D.S. Wiersma, Phys. Rev. Lett., 94, (2000);
S. E. Skipetrov, Phys. Rev. Lett. 73, (2008).
Thanks.
PS: keywords for searches (I didn't have much luck before this
discussion when looking for these phrases):
latex collapse citations
latex collapse references
latex collect references
collapse multiple citations
|
|
0
|
|
|
|
Reply
|
Ben
|
4/9/2010 10:19:39 PM
|
|
On Apr 9, 5:19=A0pm, Ben <ben.is.loca...@gmail.com> wrote:
> On Apr 8, 8:02=A0pm, Michael Shell <ne...@michaelshell.org> wrote:
>
>
>
> > On Thu, 8 Apr 2010 15:41:22 -0700 (PDT)
>
> > Ben <ben.is.loca...@gmail.com> wrote:
> > > Will I be able to usemcitepluswith an external bibliography?
>
> > It depends on what is meant by an "external bibliography" because
> > this can be interpreted in two different ways:
>
> > =A01. a .bbl or .tex file containing an already formatted
> > =A0 =A0 thebibliography environment (such as an import from
> > =A0 =A0 another document)
> > =A0 =A0 For case #1, the file will have to be manually changed
> > =A0 =A0 as in the example I gave.
>
> > =A0<or>
>
> > =A02. a BibTeX generated bibliography.
>
> > Your post indicated the use of a .bib database, which means
> > BibTeX. However, you don't say which
>
> > \bibliographystyle{}
>
> > i.e., "BibTeX style file", bibstyle, .bst file, you are using.
>
> > Which bibstyle are you using?
>
> > The BibTeX style file must supportmciteplus. There are several
> > already in existence (including those for REVTeX) which are
> > included with themcitepluspackage and I might add more if
> > you know of one that should be added for which there already
> > is a non-mciteplusbibstyle.
>
> > However, it is not much work to modify an existing bibstyle
> > for use withmciteplus. The details are in section 3 of themciteplusmanu=
al.
>
> > I should also mention that most recent versions of REVTeX (4.1
> > and later), in conjunction with recent versions of natbib,
> > already contain support for combined citations and so no longer
> > even needmciteplus(butmciteplusis more general and will work
> > with many other class and package combos). I haven't yet
> > looked closely over at recent changes in REVTeX 4.1.
>
> > =A0 Cheers,
>
> > =A0 Mike
>
> Thanks for your very helpful responses.
>
> I don't use any bibliographystyle in the latex code (as the snippets I
> gave show). I think I'm just using the format that follows from having
> document class revtex. I do not have experience with .bst files since
> I haven't used them yet (they don't show up when I compile tex to
> pdf).
>
> Reading VIII.5 (page 15) of the Revtex guidehttp://authors.aps.org/revtex=
4/auguide4-1.pdf
> I needed to update my latex packages (I use miktex on windows). I
> expected to just need the newest version based on the revtex author
> guide. However, the following did NOT compile with an external bibtex
> database:
>
> \documentclass[prl,showpacs,amsmath,amssymb]{revtex4}
> \usepackage{natbib}
> \begin{document}
> Extracting Anderson\cite{tiggelen00,*skipetrov04} and more.
> \bibliography{latex_bibliography}
> \end{document}
>
> After more reading, I included the apsrevM.bst file in the directory
> and referenced it as below. The following worked as desired (multiple
> references per citation with an external bib file):
>
> \documentclass[prl,showpacs,amsmath,amssymb]{revtex4}
> \usepackage{natbib}
> \usepackage{mciteplus}
> \begin{document}
> Extracting Anderson\cite{tiggelen00,*skipetrov04} and more.
> \bibliographystyle{apsrevM}
> \bibliography{latex_bibliography}
> \end{document}
>
> This uses the default citation separation, so that the printed output
> reads
>
> Extracting Anderson[1] and more.
>
> [1] B.A. van Tiggelen and D.S. Wiersma, Phys. Rev. Lett., 94, (2000);
> S. E. Skipetrov, Phys. Rev. Lett. 73, (2008).
>
> Thanks.
>
> PS: keywords for searches (I didn't have much luck before this
> discussion when looking for these phrases):
> latex collapse citations
> latex collapse references
> latex collect references
> collapse multiple citations
As a followup, the mciteplus package provided the functionality I
needed to collapse multiple citations. The manuscript was accepted to
arxiv without issue, but Phys. Rev. Lett. did not recognize mciteplus.
For PRL, I ended up formatting the bibliography manually.
[Mike: this is just to let others know who supports mciteplus.]
The PRL editor emailed the following:
From: "PRL Electronic submissions" <prltex@ridge.aps.org>
Date: May 3, 2010 6:52:59 AM CDT
Subject: es2010xx
Title: xxx
Dear Dr. X
Please be advised that we cannot process the above manuscript
file that
you sent to our Editorial Office. We encountered error messages
while LaTeXing
your file (see the .log file following this message). You are using
a style
file that we do not have:
File `mciteplus.sty' not found.
Please make the necessary adjustments and retransmit the file
after
all errors have been eliminated. Processing of your manuscript will
resume upon receipt of an error free file.
Thank you for your prompt attention to this matter.
|
|
0
|
|
|
|
Reply
|
Ben
|
5/5/2010 3:39:54 PM
|
|
|
5 Replies
485 Views
(page loaded in 0.109 seconds)
Similiar Articles:7/26/2012 8:41:32 PM
|