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

Reply via email to