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

Re: Bibliography in chronological order

Post by kartikpandya »

Dear Sir,
(1)I had followed the same four steps which you had mentioned in your last email and when I run the lyx file , still I get following Latex error:
\bibliography{C:\test\test_bib}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
So what should I do now?
(2) I require most of the same reference style which is given in “right.pdf” file.
Sir, can you suggest me, which type of syntax/command should I enter in latex preamble so that I get following type of tex in the last part of ref.2 ---vol. 25, no.4, pp. 809-817, Feb. 1999.
I highly appreciate your help and time which you devoted since last week.
Thank you

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 »

1. Please, copy the error report (in LyX: Document > LaTeX log), paste it in a .txt file and attach it to your next post.

2. You may find the answer to your second question here. Please, read the post and use the code lockstep has kindly provided. In the attachment you'll find the same example I posted earlier, but with those changes included in the preamble, as well as the pdf output. Of course, you still have to change the path to .bib file in the preamble (last line), as I noted earlier.
Attachments
Example.pdf
(52.27 KiB) Downloaded 299 times
example.zip
(1.92 KiB) Downloaded 197 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 have modifications in my lyx file as per your suggestion in your last mail. still i do not get the required results.
here i have attached error.txt file and resultant pdf file.
in the error.txt, one warning is there: 'babel' is detected but 'csquotes' missing. i tried a lot to find such file in latex but could not .
sir, this is the only point in lyx in which i have been stuck.
i have got perfect results as far as tables, figures and text are concerned.

thank you
Attachments
obained_results.pdf
(15.53 KiB) Downloaded 319 times
error.txt
(18.49 KiB) Downloaded 314 times
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Bibliography in chronological order

Post by meho_r »

I'm a little bit confused, in your previous post you mentioned an error, but there's no error report in the log file you provided. Does that mean that you produced the document normally (except the reference part)?

Loading csquotes package isn't mandatory, so it may be omitted.

Obviously MiKTeX has problems with finding the test_bib.bib file provided. Please, check again that the path to test_bib.bib in Document > Settings > LaTeX Preamble, last line: \bibliography{...} is correct. I don't see anything else that might be the cause of the problem. And I get the same result as you if the path to .bib file is incomplete.

In the meantime, let's do a test with a LaTeX editor, e.g., TeXWorks. Install it, put the files I attached to this post into C:\test, open "Example.tex" with TeXWorks and run the sequence of commands:

Code: Select all

pdflatex
bibtex
pdflatex
pdflatex
You choose commands from dropdown menu located top left, beside the green "Typeset" button (which you have to press after every of above-mentioned command). After you've done that, take a look at produced pdf file: does it look alright?

If any other LyX user is around, especially if s/he's using it on Windows, please test files I attached in my previous post.
Attachments
test_bib.bib
(645 Bytes) Downloaded 319 times
Example.tex
(3 KiB) Downloaded 326 times
kartikpandya
Posts: 11
Joined: Wed Dec 01, 2010 6:52 am

Re: Bibliography in chronological order

Post by kartikpandya »

dear sir,
i had tried with texwork editor, but i got the same result. (no references in pdf file).
Anyway, i am getting good results as far as other tex and figures are concerned.

again, thanks for your help.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bibliography in chronological order

Post by localghost »

If the problem is solved with that, please be so kind and mark the topic accordingly as written in Section 3 of the Board Rules (to be read before posting). Otherwise please tell us what is missing in detail. Please keep that in mind for the future so that further reminders will not be necessary.


Thorsten
Post Reply