LyXCombining class book(memoir) with sectioned bibliography

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
victorclaessen
Posts: 12
Joined: Thu Dec 16, 2010 2:09 pm

Combining class book(memoir) with sectioned bibliography

Post by victorclaessen »

Hi everyone,

I'm currently writing a PhD thesis and I'm running into a problem:

I'm trying to combine the book(memoir) document with sectioned bibliographies, and that seems to cause a problem, which I do not truly understand. I hope someone can help. I'm using Lyx 2.0.2 beta on both win7x64 and ubuntux32&64, because I also want to use an opentype font for my document, but I left that out because the problem does not seem to depend on that.

The error I get is: ! LaTeX Error: No counter 'NAT@ctr' defined.

Can anyone take a look?
example.rar
minimal working example + log file
(8.31 KiB) Downloaded 204 times
Thanks,

Victor
Last edited by victorclaessen on Sun Dec 19, 2010 6:34 pm, edited 1 time in total.

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

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Re: Combining class book(memoir) with sectioned bibliography

Post by meho_r »

1. Cite a reference.

2. Document > Settings > Bibliography > Natbib > Numerical.

3. Compile the document.
victorclaessen
Posts: 12
Joined: Thu Dec 16, 2010 2:09 pm

Re: Combining class book(memoir) with sectioned bibliography

Post by victorclaessen »

Yes that's solved it!

I'd tried selecting natbib before, but I guess the important step that I forgot was your step 1! Apparently, just selecting "list all references" is not enough, I've actually got to cite something or I suppose that counter doesn't get initialized...
I got so hung up trying to minimalize the example that I forgot to add a citation :-) And I was trying everything with the example, and not with the production file (a thesis chapter) that had my citations in the text. The chapter also works great now.

Thanks! Seriously: thanks a lot!!! I wish I'd asked this earlier, I already spent many hours trying stuff and googling around for issues with memoir/sectioned bibliography/natbib/xetex combinations, but no luck. (And this is just my second week using Lyx.)

Thanks again!

Kind regards,

Victor
Post Reply