LyXHow to get Citations as superscript or subscript?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
noetherlite
Posts: 2
Joined: Fri Apr 09, 2010 9:19 pm

How to get Citations as superscript or subscript?

Post by noetherlite »

Can anyone help me on this please?

I am using Jabref as my reference database and, generally speaking, have a few thousand words fully referenced and compiling nicely. My one problem is as follows:

- My citations appear as inline citations ie "Nanopores[7]" when I would prefer to have them as small super/subscripts so they don't break the flow of the text so much.

I can't find how to fiddle my document so that the citations are done as superscripts, or even reduce their font size.

Relevant info
- References are from external Jabref database.
- Document was created from blank (not a template), I modified text settings so that there's 2 columns and new paragraphs start after a blank line + have no indent but that's it.


A huge thankyou for any help on this

Recommended reading 2024:

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

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

noetherlite
Posts: 2
Joined: Fri Apr 09, 2010 9:19 pm

Re: How to get Citations as superscript or subscript?

Post by noetherlite »

Answer:
Insert the following into latex preamble under the Document - settings tab:
\usepackage[super,sort&compress]{natbib}

(This will prompt some installing next time you compile to pdf/dvi/PS)

But DO NOT turn you reference systems to Natbib in the reference section, keep it as the default

This produces superscript references a la xxxxx^2. I am unaware of any method to rebracket superscript citations - but no major journal I am aware of (physicist) uses brackets for superscript notations so not a huge style issue.

Thanks for the help everyone(!)
Post Reply