Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How do you setup Lyx with the ieeetran template to produce citations that are comma separated?

for instance: "foo is reported to be bar percent in [1,2,3]".

or equivalently: "foo is reported to be bar percent in [1-3]".

I have done what is recommended in this forum posting:

http://latex-community.org/forum/viewtopic.php?f=19&t=8763

Also, I am able to get comma separated citations when I select:

Document>settings>bibliography: natbib and with natbib style set to "numerical". However, other issues creep up using natbib that display an awful "(author?)" tag right before the citation as was reported in:

http://comments.gmane.org/gmane.editors.lyx.general/70862 http://osdir.com/ml/editors.lyx.general/2003-12/msg00015.html

This isn't resolved by changing the bibliography style from ieeetran to ieeetranN or ieeetranSN, ect..

Does anyone have a general crash course for how to set this up?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Try this: put \usepackage{cite} in the preamble, along with the following definitions: \renewcommand\citepunct{,} \renewcommand\citedash{--}.

share|improve this answer
    
I think the OP is looking for a WYSIWYG answer. –  Jubobs Dec 31 '13 at 23:26
    
not necessary for this to be WYSIWYG. Works, thank you and happy new year! –  ecoe Jan 1 at 18:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.