LyXMissing Heading for References Section

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
lyxrocks
Posts: 91
Joined: Sat Oct 23, 2010 5:59 pm

Missing Heading for References Section

Post by lyxrocks »

A picture is worth a thousand words.
lyx question.jpg
lyx question.jpg (91.05 KiB) Viewed 7136 times
  1. the word "References" does not appear in my compiled PDF. I need it to indicate the beginning of the references.
  2. when I insert a citation, it always shows an error.
I have attached the LyX and the PDF file.
Attachments
lyx_question.pdf
(54.27 KiB) Downloaded 336 times
lyx question.lyx
(1.92 KiB) Downloaded 285 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

lyxrocks
Posts: 91
Joined: Sat Oct 23, 2010 5:59 pm

Re: Missing Heading for References Section

Post by lyxrocks »

anyone?
lyxrocks
Posts: 91
Joined: Sat Oct 23, 2010 5:59 pm

Re: Missing Heading for References Section

Post by lyxrocks »

i know it's the summer...but i am working on my thesis, would be nice if someone could help!
lyxrocks
Posts: 91
Joined: Sat Oct 23, 2010 5:59 pm

Re: Missing Heading for References Section

Post by lyxrocks »

anyone?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Missing Heading for References Section

Post by Stefan Kottwitz »

Hi,

I had to install LyX to verify the problem, and did that when I saw that nobody responded yet. You posted a complete small example, so it deserves to be tested.

I noticed, that there's no \bibsection. If you define it yourself, the heading for the list of references would be shown. You could add to your document preamble, via LyX menu / Document / Settings:

Code: Select all

\newcommand{\bibsection}{\section*{\refname}}
Regarding your second question: I recommend to use BibTeX, since you use natbib, instead of manually writing the list of references.

Stefan
LaTeX.org admin
lyxrocks
Posts: 91
Joined: Sat Oct 23, 2010 5:59 pm

Re: Missing Heading for References Section

Post by lyxrocks »

can you please show me a sample lyx file where one uses that? I can't seem to get it to work as I don't know much about latex in general.
lyxrocks
Posts: 91
Joined: Sat Oct 23, 2010 5:59 pm

Re: Missing Heading for References Section

Post by lyxrocks »

when i replied last i only saw the second half of your post somehow.

i just added \newcommand{\bibsection}{\section*{\refname}} to my preamble and it worked!

References now shows! thank you so much!

So my only question now is, what exactly do i need to do to switch to BibTeX from the default natbib? I am a noobie when it comes to latex, or computers in general...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Missing Heading for References Section

Post by Stefan Kottwitz »

If it works without BibTeX, and if you don't know it already and your bibliographies are not too complex, perhaps you don't need to change. Regarding BibTeX and LyX, here's a start: BibTeX in the LyX wiki. BibTeX is pretty complex, so it cannot be summarized in just a forum post.

Stefan
LaTeX.org admin
lyxrocks
Posts: 91
Joined: Sat Oct 23, 2010 5:59 pm

Re: Missing Heading for References Section

Post by lyxrocks »

thanks!
Post Reply