Re: Bibliography without bibtex file

2011-06-20 Thread Varun deCastro-Arrazola
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




Re: Bibliography without bibtex file

2011-06-20 Thread Julien Rioux

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.comwrote:


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

2011-06-20 Thread Richard Heck
On 06/20/2011 04:31 PM, Varun deCastro-Arrazola wrote:

 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.


 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?

I'm not sure I really understand what you want to do. Is it that you
want the references to appear at random points in the text? Or you just
want to be able to put them there when editing?

Richard



Re: Bibliography without bibtex file

2011-06-20 Thread Varun deCastro-Arrazola
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




Re: Bibliography without bibtex file

2011-06-20 Thread Julien Rioux

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.comwrote:


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

2011-06-20 Thread Richard Heck
On 06/20/2011 04:31 PM, Varun deCastro-Arrazola wrote:

 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.


 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?

I'm not sure I really understand what you want to do. Is it that you
want the references to appear at random points in the text? Or you just
want to be able to put them there when editing?

Richard



Re: Bibliography without bibtex file

2011-06-20 Thread Varun deCastro-Arrazola
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
>
>


Re: Bibliography without bibtex file

2011-06-20 Thread Julien Rioux

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:

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

2011-06-20 Thread Richard Heck
On 06/20/2011 04:31 PM, Varun deCastro-Arrazola wrote:

> 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.
>>
>>
> 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?
>
I'm not sure I really understand what you want to do. Is it that you
want the references to appear at random points in the text? Or you just
want to be able to put them there when editing?

Richard



Re: Bibliography without bibtex file

2011-06-16 Thread Manolo Martínez
I reuse the same bib file over and over, and I wouldn't want my lyx
files to be burdened with that (oversized) bib file. Is that what you
suggest?

M

El Thu, 16-06-2011 a las 12:23 +0200, Torquil Macdonald Sørensen
escribió:
 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




Re: Bibliography without bibtex file

2011-06-16 Thread Trevor Jenkins
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 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




-- 
Regards, Trevor.

 Re: deemed!


Re: Bibliography without bibtex file

2011-06-16 Thread Jürgen Spitzmüller
Macdonald Sørensen wrote:
 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?

Use the bibliography environment (see sec. 6.5.1 of the User Guide).

Jürgen


Re: Bibliography without bibtex file

2011-06-16 Thread Richard Heck
On 06/16/2011 06:23 AM, Torquil Macdonald Sørensen 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?

I just want to clarify something some other people said: There's no
reason you need a separate bib file for each LyX file. I just have one,
and then I pick whatever citations I need for each document. At the end,
when the paper is done, I use the aux2bib utility to create a bib file
that has only the citations for that document, for archiving or sending
to journals or whatever.

Richard



Re: Bibliography without bibtex file

2011-06-16 Thread 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



Re: Bibliography without bibtex file

2011-06-16 Thread Varun deCastro-Arrazola
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

2011-06-16 Thread Richard Heck
On 06/16/2011 09:54 AM, Varun deCastro-Arrazola wrote:
 So, how can it be done by ERT?

I'm afraid I'm not the person to ask this

 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

2011-06-16 Thread 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}
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



Re: Bibliography without bibtex file

2011-06-16 Thread Torquil Macdonald Sørensen

On 16/06/11 13:49, Jürgen Spitzmüller wrote:

Macdonald Sørensen wrote:

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?


Use the bibliography environment (see sec. 6.5.1 of the User Guide).


Thanks Jürgen! That was just the thing for simple uses like what I'm doing right 
now. I should have gotten that directly from the manual myself. Apologies for that.


Also thanks to all the other responses. I'll make time to look more in detail at 
the various suggestions tomorrow. I have looked at JabRef before, and will 
probably take a second look now.


In this particular case the suggestion from Jürgen worked fine.

Torquil


Re: Bibliography without bibtex file

2011-06-16 Thread Manolo Martínez
I reuse the same bib file over and over, and I wouldn't want my lyx
files to be burdened with that (oversized) bib file. Is that what you
suggest?

M

El Thu, 16-06-2011 a las 12:23 +0200, Torquil Macdonald Sørensen
escribió:
 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




Re: Bibliography without bibtex file

2011-06-16 Thread Trevor Jenkins
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 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




-- 
Regards, Trevor.

 Re: deemed!


Re: Bibliography without bibtex file

2011-06-16 Thread Jürgen Spitzmüller
Macdonald Sørensen wrote:
 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?

Use the bibliography environment (see sec. 6.5.1 of the User Guide).

Jürgen


Re: Bibliography without bibtex file

2011-06-16 Thread Richard Heck
On 06/16/2011 06:23 AM, Torquil Macdonald Sørensen 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?

I just want to clarify something some other people said: There's no
reason you need a separate bib file for each LyX file. I just have one,
and then I pick whatever citations I need for each document. At the end,
when the paper is done, I use the aux2bib utility to create a bib file
that has only the citations for that document, for archiving or sending
to journals or whatever.

Richard



Re: Bibliography without bibtex file

2011-06-16 Thread 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



Re: Bibliography without bibtex file

2011-06-16 Thread Varun deCastro-Arrazola
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

2011-06-16 Thread Richard Heck
On 06/16/2011 09:54 AM, Varun deCastro-Arrazola wrote:
 So, how can it be done by ERT?

I'm afraid I'm not the person to ask this

 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

2011-06-16 Thread 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}
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



Re: Bibliography without bibtex file

2011-06-16 Thread Torquil Macdonald Sørensen

On 16/06/11 13:49, Jürgen Spitzmüller wrote:

Macdonald Sørensen wrote:

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?


Use the bibliography environment (see sec. 6.5.1 of the User Guide).


Thanks Jürgen! That was just the thing for simple uses like what I'm doing right 
now. I should have gotten that directly from the manual myself. Apologies for that.


Also thanks to all the other responses. I'll make time to look more in detail at 
the various suggestions tomorrow. I have looked at JabRef before, and will 
probably take a second look now.


In this particular case the suggestion from Jürgen worked fine.

Torquil


Re: Bibliography without bibtex file

2011-06-16 Thread Manolo Martínez
I reuse the same bib file over and over, and I wouldn't want my lyx
files to be burdened with that (oversized) bib file. Is that what you
suggest?

M

El Thu, 16-06-2011 a las 12:23 +0200, Torquil Macdonald Sørensen
escribió:
> 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




Re: Bibliography without bibtex file

2011-06-16 Thread Trevor Jenkins
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 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
>



-- 
Regards, Trevor.

<>< Re: deemed!


Re: Bibliography without bibtex file

2011-06-16 Thread Jürgen Spitzmüller
Macdonald Sørensen wrote:
> 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?

Use the bibliography environment (see sec. 6.5.1 of the User Guide).

Jürgen


Re: Bibliography without bibtex file

2011-06-16 Thread Richard Heck
On 06/16/2011 06:23 AM, Torquil Macdonald Sørensen 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?
>
I just want to clarify something some other people said: There's no
reason you need a separate bib file for each LyX file. I just have one,
and then I pick whatever citations I need for each document. At the end,
when the paper is done, I use the aux2bib utility to create a bib file
that has only the citations for that document, for archiving or sending
to journals or whatever.

Richard



Re: Bibliography without bibtex file

2011-06-16 Thread 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



Re: Bibliography without bibtex file

2011-06-16 Thread Varun deCastro-Arrazola
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
>
>


Re: Bibliography without bibtex file

2011-06-16 Thread Richard Heck
On 06/16/2011 09:54 AM, Varun deCastro-Arrazola wrote:
> So, how can it be done by ERT?
>
I'm afraid I'm not the person to ask this

> 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
>>
>>



Re: Bibliography without bibtex file

2011-06-16 Thread 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



Re: Bibliography without bibtex file

2011-06-16 Thread Torquil Macdonald Sørensen

On 16/06/11 13:49, Jürgen Spitzmüller wrote:

Macdonald Sørensen wrote:

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?


Use the bibliography environment (see sec. 6.5.1 of the User Guide).


Thanks Jürgen! That was just the thing for simple uses like what I'm doing right 
now. I should have gotten that directly from the manual myself. Apologies for that.


Also thanks to all the other responses. I'll make time to look more in detail at 
the various suggestions tomorrow. I have looked at JabRef before, and will 
probably take a second look now.


In this particular case the suggestion from Jürgen worked fine.

Torquil