LyXLyx not working with any \cite, or MMD cite

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
TMorville
Posts: 16
Joined: Thu Mar 14, 2013 4:58 pm

Lyx not working with any \cite, or MMD cite

Post by TMorville »

Hello.

I've (unsuccessfully) posted this on Stackoverflow.

http://stackoverflow.com/questions/2744 ... r-mmd-cite

I have a slight problem with Lyx and citations that I have not been able to find a solution to anywhere else.

When inserting any citation style, such as the following (notice #1 and #4 are identical, expect that #1 is greyed out as i inserted it manually):
tmorvilleInput.png
tmorvilleInput.png (27.55 KiB) Viewed 4111 times
Lyx outputs #2 #3 #4 as text, and #1 as a working citation, despite it being identical to #4.
tmorvilleOutput.png
tmorvilleOutput.png (29.97 KiB) Viewed 4111 times
I have tried switching between different bibtex styles (plain, natbib, ect.) under document/settings/bib and I've added \usepackage{cite}, \usepackage{MMD} to my preamble. But to no avail.

Any ideas how to solve this?

FYI, I am running 2.1.2 on a Macbook Pro (Yosemite 10.10.1), and I use Papers3 as my reference manager.

Hope you can help out.

Thanks!

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

StarValkyrie
Posts: 89
Joined: Fri Jan 24, 2014 12:42 am

Re: Lyx not working with any \cite, or MMD cite

Post by StarValkyrie »

When typing plain LaTeX in LyX, you have to put it inside ERT. Ctrl+L opens the box, type your citation code, then hit the right arrow to exit the box.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Lyx not working with any \cite, or MMD cite

Post by Johannes_B »

Hi and welcome,

i added the contents of your question as well as the pictures here. Now you have a solution, you can share it over at stackoverflow. Please don't forget to crosslink and give StarValkyrie the deserved appreciation :-)


By the way, TeX.SX might have been the better place to ask. ;-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
TMorville
Posts: 16
Joined: Thu Mar 14, 2013 4:58 pm

Re: Lyx not working with any \cite, or MMD cite

Post by TMorville »

@StarValkyrie

Thanks! It works with \cite{Karl2012} inside a ERT box.

@Johannes_B

Thanks for the kind welcome, and pasting the images over here. I will make sure to accept the anwser and copy across to Stackoverflow.
Post Reply