LyXBibliography in chronological order

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
kartikpandya
Posts: 11
Joined: Wed Dec 01, 2010 6:52 am

Bibliography in chronological order

Post by kartikpandya »

hello everybody,
My question is: How can I arrange the entries of bibliography in chronological order automatically in Lyx?
thanks in advance
Last edited by kartikpandya on Mon Dec 20, 2010 6:08 am, edited 2 times 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.

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

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

Bibliography in chronological order

Post by meho_r »

Hi and welcome to the forum.

This was already discussed, but, in a nutshell, use BibTeX and unsrt bibliography style (LyX's User's Guide, section 6.5 and Additional Features, section 3.1). Also take a look at the example in the attachment.
Attachments
test.zip
(1.73 KiB) Downloaded 781 times
kartikpandya
Posts: 11
Joined: Wed Dec 01, 2010 6:52 am

Re: Bibliography in chronological order

Post by kartikpandya »

dear sir,
thanks for your reply.
but my query is not solved. In Chronological order the earliest references should appear first followed by the latest references. ( regarding your attached file, in the resultant PDF file, the ref. of year 1976 should appear first followed by ref. of year 2008 in the reference section.)

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

Bibliography in chronological order

Post by meho_r »

Oh, sorry, I misunderstood your question. For entries to be sorted by years, do the following:

1. Download plainyr .bst file and put it somewhere you'll find it easily (e.g., in the same folder as your .lyx file).

2. Right click on BibTeX Created Bibliography > Settings > Browse > then locate and select downloaded plainyr style.

3. Compile your document again. Now all entries will be sorted ba year-author-title.
kartikpandya
Posts: 11
Joined: Wed Dec 01, 2010 6:52 am

Re: Bibliography in chronological order

Post by kartikpandya »

dear sir,
thanks for reply.
yes, it works.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bibliography in chronological order

Post by localghost »

Now that the problem seems to be solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Otherwise please tell us what is missing. Please keep that in mind for the future so that further reminder will not be necessary.


Best regards and welcome to the board
Thorsten
kartikpandya
Posts: 11
Joined: Wed Dec 01, 2010 6:52 am

Re: Bibliography in chronological order

Post by kartikpandya »

Dear Sir,
I have downloaded plainyr.bst and references get arranged in chronological order. But there is yet another problem regarding appearance of the text in reference.
I get the following text in the output when I run lyx . (I am using JabRef for entering the references.)
[1] Lucy M. “PSO based algorithm for solution of nonlinear equations”,. IEEE Trans. On Power Systems, vol. 25, no.4, :pp. 809-817, Feb. 1999.
I have entered the following text in JabRef.
Author- Lucy M.,
Title-“PSO based algorithm for solution of nonlinear equations”,
Journal-IEEE Trans. On Power Systems
Year- Feb. 1999
Volume- vol. 25, no. 4,
Pages- pp. 809-817
Bibtexkey-LucyM.Feb.1999.
I require following modifications in the output text.
(1) There should be a comma (,) following author’s name(i.e. Lucy M.). Even though I have entered a comma after author’s name in jebref, it does not appear in output.
(2) I get (”) in front of the title (in front of PSO based algorithm…) in the output text. Instead it should be (“).
(3) There should not be a full stop(.) at the end of the title (i.e … nonlinear equations)
(4) There should not be a colon(:) in front of pp. 809-817.
So, sir, what should I do to obtain such modifications? They are absolutely required because I have to write references of my phd thesis.
Thank you
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Bibliography in chronological order

Post by meho_r »

Before anything else, you should check with your university if they provide bibliography style which should be used. If not, then I recommend you consider using biblatex to manage your references. It seems to be much easier for use and modifications than "plain" BibTeX is.

Also a general tip: never ever enter manually punctuation signs (comma, period, quotation marks...) along entries in your .bib file (e.g. putting a comma after the author's name). Use appropriate required/optional/general etc. fields in JabRef to enter "clean" entries, and leave punctuation part to the style you're using.

In the attachment you'll find a very simple example you may start with (don't forget to check the preamble). For more infos, of course, you should consult biblatex documentation. And if you encounter any problems, I suggest you start a new thread under BibTeX section, since this is not related to LyX anymore.

P.S. For using biblatex with LyX, here's a wiki article you'd find useful.
Attachments
example.zip
(1.36 KiB) Downloaded 308 times
kartikpandya
Posts: 11
Joined: Wed Dec 01, 2010 6:52 am

Re: Bibliography in chronological order

Post by kartikpandya »

Dear sir,
Thanks for reply. I made the required modifications in LYX , which you have suggested in your last email.
I ran your attached file successfully , but in pdf file (& in dvi file) and in its printed document the references did not appear at all. So where could be my mistake?
Thank you
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Bibliography in chronological order

Post by meho_r »

Do citations appear in text, bold, but no reference section (take a look at the attached "wrong.pdf" file)? If that is the case, I presume the absolute path to test_bib.bib (which must be set in Document > Settings > LaTeX Preamble) isn't right.

Try the following:

1. If you're using Windows, create a folder on C:\ and name it test, so that its path is: C:\test

2. Put Example.lyx and test_bib.bib files from my previous post into test folder

3. Open Example.lyx, go to Document > Settings > LaTeX Preamble and make sure the \bibliography command there looks like this:

Code: Select all

\bibliography{C:\test\test_bib}
4. Try compiling the document now. You should get the same result as in the attached "right.pdf" file.
Attachments
right.pdf
When the absolute path in the preamble is set correctly
(52.26 KiB) Downloaded 401 times
wrong.pdf
When the absolute path in the preamble isn't set correctly
(29.76 KiB) Downloaded 418 times
Post Reply