BibTeX, biblatex and biberLyX 2.0 Bibliography Order Problem using JabRef

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
nitinlobo
Posts: 3
Joined: Tue Jun 28, 2011 11:38 am

LyX 2.0 Bibliography Order Problem using JabRef

Post by nitinlobo »

Hi,
this is my first post in this forum. Im writing my thesis in LYX:2.0
i am using JabRef for Bibliography and when i cite the references [Documents-settings-default(numerical] the citation will not go in increasing number order in the final output but it takes number according to authors name for eg:
Lyx input:
Separated Local Field (SLF) spectroscopy[hester1975resolved] based on the transient oscillations[muller1974transient] observed during cross-polarization[lee2005adiabatic, lee2008thermodynamics] experiment........

Bibliography:
[1] R.K. Hester, J.L. Ackerman, V.R. Cross, and J.S. Waugh. Physical Review Letters,34(16):993–995, 1975.
[2] J.S. Lee and A.K. Khitrin. Journal of Magnetic Resonance, 177(1):152–154, 2005.
[3] J.S. Lee and A.K. Khitrin. The Journal of chemical physics, 128:114504, 2008.
[4] L. Muller, A. Kumar, T. Baumann, and R.R. Ernst. Physical Review Letters,
32(25):1402–1406, 1974.

Lyx output is:
Separated Local Field (SLF) spectroscopy[1] based on the transient oscillations[4]
observed during cross-polarization[2,3] experiment......

But i want my outpult like this:
Separated Local Field (SLF) spectroscopy[1] based on the transient oscillations[2]
observed during cross-polarization[3,4] experiment......

how to do this? i observed reference no. increases according to alphabatical order of authors surname and thats how it is stored in JabRef. How to over come this problem?

im using book(KOMA-scriprt) document class , bibtex bibliography style is "plain" and following commands in Latex preamble:

% increase link area for cross-references and autoname them
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
\newlength{\abc}
\settowidth{\abc}{\space}
\AtBeginDocument{%
\addto\extrasenglish{
\renewcommand{\equationautorefname}{\hspace{-\abc}}
\renewcommand{\sectionautorefname}{sec.\negthinspace}
\renewcommand{\subsectionautorefname}{sec.\negthinspace}
\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
\renewcommand{\figureautorefname}{Fig.\negthinspace}
\renewcommand{\tableautorefname}{Tab.\negthinspace}
}
}
\usepackage[figure]{hypcap}
\usepackage{ yfonts }

\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
\frontmatter
\pdfbookmark[1]{\contentsname}{}
\myTOC
\mainmatter }

% make caption labels bold
\setkomafont{captionlabel}{\bfseries}
\setcapindent{1em}

% enable calculations
\usepackage{calc}

% fancy page header/footer settings
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

% increase the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}

% avoid that floats are placed above its sections
\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}



please help me.

with regards,
nitin
Last edited by nitinlobo on Thu Jun 30, 2011 6:39 am, 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.

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

LyX 2.0 Bibliography Order Problem using JabRef

Post by meho_r »

If you want your references sorted by author name, then I cannot see any way to overcome this issue, except that you rephrase your sentences and include citations in desired order (which might be really painful). On the other hand, if your references do not have to be in alphabetic order, you might try with "unsrt" bibliography style (Right click on BibTeX generated bibliography > Settings > Style: unsrt).

BTW, it always helps if you include a Minimal Working Example (MWE), a .lyx file together with a .bib file, placed in a ZIP archive and attached to your post, so that people can test the issue at hand immediately and do not have to guess and construct examples themselves, wasting time unnecessarily.
nitinlobo
Posts: 3
Joined: Tue Jun 28, 2011 11:38 am

LyX 2.0 Bibliography Order Problem using JabRef

Post by nitinlobo »

Hi,
Thanks meho_r for ur reply. ur right if i select Style:unsrt then only the output doc. will have reference according to the increasing number order. here below i attache test copy of my document for your reference.
I just want to know suppose if i cite more than 3 reference at same place( last line of my attached doc.) whether it is possible to get output format like [4-8] rather than dispalying [4,5,6,7,8] in Style:unsrt

with regards,
nitin
Attachments
test.zip
test.lyx
test.bib
(10.24 KiB) Downloaded 275 times
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

LyX 2.0 Bibliography Order Problem using JabRef

Post by meho_r »

Take a look at cite package. You can test it by adding the following line into the preamble (Document > Settings > LaTeX Preamble):

Code: Select all

\usepackage{cite}
It by default compresses entries, so you should get 3,4,5,6 written as 3–6.
nitinlobo
Posts: 3
Joined: Tue Jun 28, 2011 11:38 am

Re: LyX 2.0 Bibliography Order Problem using JabRef

Post by nitinlobo »

Hi,
its wrkng.once again Thanks meho_r. ur reply made my life comfortable in LYX:2.0

with regards,
nitin
Post Reply