Re: Bibliography without bibtex file
Actually, I do use a bibtex file in order to insert references. However, I'd like to be able to insert single bibliographic references anywhere in the text, and not just at the end under a section title (References). Is this possible? 2011/6/16 Julien Rioux jri...@physics.utoronto.ca: On 16/06/2011 7:28 AM, Trevor Jenkins wrote: I don't have answer but a related question. Occasionally I want to include a citation in a document that doesn't warrant being added to my set of LaTeX .bib files. I can't figure out how I might to that in LyX (other than hard coding the TeX stuff by hand). As Richard said you would need ERT or at the very least preamble code. LaTeX provides a filecontents environment to produce external files. You could use that. See e.g. http://tex.stackexchange.com/questions/20317/internal-bibliography-with-biblatex/20318#20318 (the question is about biblatex, but it doesn't matter) So you would put \begin{filecontents*}{extra_citation_not_worth_a_bib_file.bib} the bibtex code \end{filecontents*} in the preamble and add extra_citation_not_worth_a_bib_file to the bibTeX inset in your LyX document. Although if a citation is worth adding to a document in my opinion it is worth adding to a bib file. As to your specific question I agree with Manolo Martinez the overhead of including more than an *ad hoc* citation will result in your LyX file(s) becoming bloated. You will probably save effort by using a dedicated bilbiography management tool such as BibDesk or Jabref. Not least saving time and face by only having the need to update a single copy of your entrie rather than all of them in all LyX files. On Thu, Jun 16, 2011 at 11:23 AM, Torquil Macdonald Sørensen torq...@gmail.com wrote: Hi! What is the simplest way of working with a LyX document involving citations, without using a bibtex file for each LyX file? I want to be able to use the LyX frontend to select citations from a list. Can this be done in a way that does not involve a separate bibtex file? Will LyX have a self-contained bibliography system sometime? I.e. one where you both insert and retrieve citations within LyX, and it is all stored in the *.lyx file. Best regards Torquil Sørensen -- Julien
Fwd: Bibliography without bibtex file
Thank you, Julien, that's exactly what I was looking for, being able to insert references at random points in the text. Bibentry works well, except that I had to add \nobibliography* as tex code before inserting the bibentry reference. There's an example here: http://stefaanlippens.net/bibentry Cheers, Varun -- Forwarded message -- From: Julien Rioux jri...@physics.utoronto.ca Date: 2011/6/20 Subject: Re: Bibliography without bibtex file To: lyx-users@lists.lyx.org On 20/06/2011 4:31 PM, Varun deCastro-Arrazola wrote: Actually, I do use a bibtex file in order to insert references. However, I'd like to be able to insert single bibliographic references anywhere in the text, and not just at the end under a section title (References). Is this possible? 2011/6/16 Julien Riouxjri...@physics.utoronto.ca: On 16/06/2011 7:28 AM, Trevor Jenkins wrote: I don't have answer but a related question. Occasionally I want to include a citation in a document that doesn't warrant being added to my set of LaTeX .bib files. I can't figure out how I might to that in LyX (other than hard coding the TeX stuff by hand). As Richard said you would need ERT or at the very least preamble code. LaTeX provides a filecontents environment to produce external files. You could use that. See e.g. http://tex.stackexchange.com/questions/20317/internal-bibliography-with-biblatex/20318#20318 (the question is about biblatex, but it doesn't matter) So you would put \begin{filecontents*}{extra_citation_not_worth_a_bib_file.bib} the bibtex code \end{filecontents*} in the preamble and add extra_citation_not_worth_a_bib_file to the bibTeX inset in your LyX document. Although if a citation is worth adding to a document in my opinion it is worth adding to a bib file. As to your specific question I agree with Manolo Martinez the overhead of including more than an *ad hoc* citation will result in your LyX file(s) becoming bloated. You will probably save effort by using a dedicated bilbiography management tool such as BibDesk or Jabref. Not least saving time and face by only having the need to update a single copy of your entrie rather than all of them in all LyX files. On Thu, Jun 16, 2011 at 11:23 AM, Torquil Macdonald Sørensen torq...@gmail.com wrote: Hi! What is the simplest way of working with a LyX document involving citations, without using a bibtex file for each LyX file? I want to be able to use the LyX frontend to select citations from a list. Can this be done in a way that does not involve a separate bibtex file? Will LyX have a self-contained bibliography system sometime? I.e. one where you both insert and retrieve citations within LyX, and it is all stored in the *.lyx file. Best regards Torquil Sørensen -- Julien You could use the bibentry package. Be warned, I think it requires that you use natbib and a natbib-compatible bibtex style file (.bst)---it doesn't play well with all .bst files. In the preamble: \usepackage{bibentry} and in the text, in TeX code: \bibentry{the_bibtex_key_you_would_like_to_cite} and you still need a BibTeX Generated Bibliography inset somewhere in your document. Another solution is biblatex, which I have never used. Cheers, Julien
Re: Bibliography without bibtex file
Actually, I do use a bibtex file in order to insert references. However, I'd like to be able to insert single bibliographic references anywhere in the text, and not just at the end under a section title (References). Is this possible? 2011/6/16 Julien Rioux jri...@physics.utoronto.ca: On 16/06/2011 7:28 AM, Trevor Jenkins wrote: I don't have answer but a related question. Occasionally I want to include a citation in a document that doesn't warrant being added to my set of LaTeX .bib files. I can't figure out how I might to that in LyX (other than hard coding the TeX stuff by hand). As Richard said you would need ERT or at the very least preamble code. LaTeX provides a filecontents environment to produce external files. You could use that. See e.g. http://tex.stackexchange.com/questions/20317/internal-bibliography-with-biblatex/20318#20318 (the question is about biblatex, but it doesn't matter) So you would put \begin{filecontents*}{extra_citation_not_worth_a_bib_file.bib} the bibtex code \end{filecontents*} in the preamble and add extra_citation_not_worth_a_bib_file to the bibTeX inset in your LyX document. Although if a citation is worth adding to a document in my opinion it is worth adding to a bib file. As to your specific question I agree with Manolo Martinez the overhead of including more than an *ad hoc* citation will result in your LyX file(s) becoming bloated. You will probably save effort by using a dedicated bilbiography management tool such as BibDesk or Jabref. Not least saving time and face by only having the need to update a single copy of your entrie rather than all of them in all LyX files. On Thu, Jun 16, 2011 at 11:23 AM, Torquil Macdonald Sørensen torq...@gmail.com wrote: Hi! What is the simplest way of working with a LyX document involving citations, without using a bibtex file for each LyX file? I want to be able to use the LyX frontend to select citations from a list. Can this be done in a way that does not involve a separate bibtex file? Will LyX have a self-contained bibliography system sometime? I.e. one where you both insert and retrieve citations within LyX, and it is all stored in the *.lyx file. Best regards Torquil Sørensen -- Julien
Fwd: Bibliography without bibtex file
Thank you, Julien, that's exactly what I was looking for, being able to insert references at random points in the text. Bibentry works well, except that I had to add \nobibliography* as tex code before inserting the bibentry reference. There's an example here: http://stefaanlippens.net/bibentry Cheers, Varun -- Forwarded message -- From: Julien Rioux jri...@physics.utoronto.ca Date: 2011/6/20 Subject: Re: Bibliography without bibtex file To: lyx-users@lists.lyx.org On 20/06/2011 4:31 PM, Varun deCastro-Arrazola wrote: Actually, I do use a bibtex file in order to insert references. However, I'd like to be able to insert single bibliographic references anywhere in the text, and not just at the end under a section title (References). Is this possible? 2011/6/16 Julien Riouxjri...@physics.utoronto.ca: On 16/06/2011 7:28 AM, Trevor Jenkins wrote: I don't have answer but a related question. Occasionally I want to include a citation in a document that doesn't warrant being added to my set of LaTeX .bib files. I can't figure out how I might to that in LyX (other than hard coding the TeX stuff by hand). As Richard said you would need ERT or at the very least preamble code. LaTeX provides a filecontents environment to produce external files. You could use that. See e.g. http://tex.stackexchange.com/questions/20317/internal-bibliography-with-biblatex/20318#20318 (the question is about biblatex, but it doesn't matter) So you would put \begin{filecontents*}{extra_citation_not_worth_a_bib_file.bib} the bibtex code \end{filecontents*} in the preamble and add extra_citation_not_worth_a_bib_file to the bibTeX inset in your LyX document. Although if a citation is worth adding to a document in my opinion it is worth adding to a bib file. As to your specific question I agree with Manolo Martinez the overhead of including more than an *ad hoc* citation will result in your LyX file(s) becoming bloated. You will probably save effort by using a dedicated bilbiography management tool such as BibDesk or Jabref. Not least saving time and face by only having the need to update a single copy of your entrie rather than all of them in all LyX files. On Thu, Jun 16, 2011 at 11:23 AM, Torquil Macdonald Sørensen torq...@gmail.com wrote: Hi! What is the simplest way of working with a LyX document involving citations, without using a bibtex file for each LyX file? I want to be able to use the LyX frontend to select citations from a list. Can this be done in a way that does not involve a separate bibtex file? Will LyX have a self-contained bibliography system sometime? I.e. one where you both insert and retrieve citations within LyX, and it is all stored in the *.lyx file. Best regards Torquil Sørensen -- Julien You could use the bibentry package. Be warned, I think it requires that you use natbib and a natbib-compatible bibtex style file (.bst)---it doesn't play well with all .bst files. In the preamble: \usepackage{bibentry} and in the text, in TeX code: \bibentry{the_bibtex_key_you_would_like_to_cite} and you still need a BibTeX Generated Bibliography inset somewhere in your document. Another solution is biblatex, which I have never used. Cheers, Julien
Re: Bibliography without bibtex file
Actually, I do use a bibtex file in order to insert references. However, I'd like to be able to insert single bibliographic references anywhere in the text, and not just at the end under a section title (References). Is this possible? 2011/6/16 Julien Rioux: > On 16/06/2011 7:28 AM, Trevor Jenkins wrote: >> >> I don't have answer but a related question. >> >> Occasionally I want to include a citation in a document that doesn't >> warrant >> being added to my set of LaTeX .bib files. I can't figure out how I might >> to >> that in LyX (other than hard coding the TeX stuff by hand). >> > > As Richard said you would need ERT or at the very least preamble code. LaTeX > provides a filecontents environment to produce external files. You could use > that. See e.g. > > http://tex.stackexchange.com/questions/20317/internal-bibliography-with-biblatex/20318#20318 > > (the question is about biblatex, but it doesn't matter) > > So you would put > > \begin{filecontents*}{extra_citation_not_worth_a_bib_file.bib} > > \end{filecontents*} > > in the preamble and add extra_citation_not_worth_a_bib_file to the bibTeX > inset in your LyX document. > > Although if a citation is worth adding to a document in my opinion it is > worth adding to a bib file. > >> As to your specific question I agree with Manolo Martinez the overhead of >> including more than an *ad hoc* citation will result in your LyX file(s) >> becoming bloated. You will probably save effort by using a dedicated >> bilbiography management tool such as BibDesk or Jabref. Not least saving >> time and face by only having the need to update a single copy of your >> entrie >> rather than all of them in all LyX files. >> >> On Thu, Jun 16, 2011 at 11:23 AM, Torquil Macdonald Sørensen< >> torq...@gmail.com> wrote: >> >>> Hi! >>> >>> What is the simplest way of working with a LyX document involving >>> citations, without using a bibtex file for each LyX file? I want to be >>> able >>> to use the LyX frontend to select citations from a list. Can this be done >>> in >>> a way that does not involve a separate bibtex file? >>> >>> Will LyX have a "self-contained" bibliography system sometime? I.e. one >>> where you both insert and retrieve citations within LyX, and it is all >>> stored in the *.lyx file. >>> >>> Best regards >>> Torquil Sørensen >>> >> >> >> > > > -- > Julien > >
Fwd: Bibliography without bibtex file
Thank you, Julien, that's exactly what I was looking for, being able to insert references at random points in the text. Bibentry works well, except that I had to add \nobibliography* as tex code before inserting the bibentry reference. There's an example here: http://stefaanlippens.net/bibentry Cheers, Varun -- Forwarded message -- From: Julien Rioux <jri...@physics.utoronto.ca> Date: 2011/6/20 Subject: Re: Bibliography without bibtex file To: lyx-users@lists.lyx.org On 20/06/2011 4:31 PM, Varun deCastro-Arrazola wrote: > > Actually, I do use a bibtex file in order to insert references. > However, I'd like to be able to insert single bibliographic references > anywhere in the text, and not just at the end under a section title > (References). Is this possible? > > 2011/6/16 Julien Rioux<jri...@physics.utoronto.ca>: >> >> On 16/06/2011 7:28 AM, Trevor Jenkins wrote: >>> >>> I don't have answer but a related question. >>> >>> Occasionally I want to include a citation in a document that doesn't >>> warrant >>> being added to my set of LaTeX .bib files. I can't figure out how I might >>> to >>> that in LyX (other than hard coding the TeX stuff by hand). >>> >> >> As Richard said you would need ERT or at the very least preamble code. LaTeX >> provides a filecontents environment to produce external files. You could use >> that. See e.g. >> >> http://tex.stackexchange.com/questions/20317/internal-bibliography-with-biblatex/20318#20318 >> >> (the question is about biblatex, but it doesn't matter) >> >> So you would put >> >> \begin{filecontents*}{extra_citation_not_worth_a_bib_file.bib} >> >> \end{filecontents*} >> >> in the preamble and add extra_citation_not_worth_a_bib_file to the bibTeX >> inset in your LyX document. >> >> Although if a citation is worth adding to a document in my opinion it is >> worth adding to a bib file. >> >>> As to your specific question I agree with Manolo Martinez the overhead of >>> including more than an *ad hoc* citation will result in your LyX file(s) >>> becoming bloated. You will probably save effort by using a dedicated >>> bilbiography management tool such as BibDesk or Jabref. Not least saving >>> time and face by only having the need to update a single copy of your >>> entrie >>> rather than all of them in all LyX files. >>> >>> On Thu, Jun 16, 2011 at 11:23 AM, Torquil Macdonald Sørensen< >>> torq...@gmail.com> wrote: >>> >>>> Hi! >>>> >>>> What is the simplest way of working with a LyX document involving >>>> citations, without using a bibtex file for each LyX file? I want to be >>>> able >>>> to use the LyX frontend to select citations from a list. Can this be done >>>> in >>>> a way that does not involve a separate bibtex file? >>>> >>>> Will LyX have a "self-contained" bibliography system sometime? I.e. one >>>> where you both insert and retrieve citations within LyX, and it is all >>>> stored in the *.lyx file. >>>> >>>> Best regards >>>> Torquil Sørensen >>>> >>> >>> >>> >> >> >> -- >> Julien >> >> > You could use the bibentry package. Be warned, I think it requires that you use natbib and a natbib-compatible bibtex style file (.bst)---it doesn't play well with all .bst files. In the preamble: \usepackage{bibentry} and in the text, in TeX code: \bibentry{the_bibtex_key_you_would_like_to_cite} and you still need a "BibTeX Generated Bibliography" inset somewhere in your document. Another solution is biblatex, which I have never used. Cheers, Julien
Re: Bibliography without bibtex file
So, how can it be done by ERT? 2011/6/16 Richard Heck rgh...@comcast.net: On 06/16/2011 07:28 AM, Trevor Jenkins wrote: I don't have answer but a related question. Occasionally I want to include a citation in a document that doesn't warrant being added to my set of LaTeX .bib files. I can't figure out how I might to that in LyX (other than hard coding the TeX stuff by hand). There's no way to do this, other than by ERT. But you could just create a small bib file with the unique citations for that document and include it. rh
Re: Bibliography without bibtex file
So, how can it be done by ERT? 2011/6/16 Richard Heck rgh...@comcast.net: On 06/16/2011 07:28 AM, Trevor Jenkins wrote: I don't have answer but a related question. Occasionally I want to include a citation in a document that doesn't warrant being added to my set of LaTeX .bib files. I can't figure out how I might to that in LyX (other than hard coding the TeX stuff by hand). There's no way to do this, other than by ERT. But you could just create a small bib file with the unique citations for that document and include it. rh
Re: Bibliography without bibtex file
So, how can it be done by ERT? 2011/6/16 Richard Heck: > On 06/16/2011 07:28 AM, Trevor Jenkins wrote: >> I don't have answer but a related question. >> >> Occasionally I want to include a citation in a document that doesn't >> warrant being added to my set of LaTeX .bib files. I can't figure out >> how I might to that in LyX (other than hard coding the TeX stuff by hand). >> > There's no way to do this, other than by ERT. But you could just create > a small bib file with the unique citations for that document and include it. > > rh > >