LaTeX forum ⇒ LyXLyx not working with any \cite, or MMD cite Topic is solved

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

Lyx not working with any \cite, or MMD cite

Postby TMorville » Mon Mar 30, 2015 5:38 pm

Hello.

I've (unsuccessfully) posted this on Stackoverflow.

http://stackoverflow.com/questions/27442414/lyx-not-working-with-any-cite-or-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 1598 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 1598 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!

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

Postby StarValkyrie » Mon Mar 30, 2015 7:38 pm

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: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Mar 30, 2015 10:01 pm

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

Postby TMorville » Wed Apr 01, 2015 4:22 pm

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


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 3 guests