LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 12-03-2006, 04:25 PM   #1
seelenbild28
Member
 
Registered: Oct 2005
Location: Germany, Berlin
Distribution: SuSE Linux 9.1/9.2/9.3/10.0/10.1, openSuSE 10.2, 10.3, Slackware, Debian, Redhat, BSD
Posts: 315
Thanked: 0
Kile - bibtex


[Log in to get rid of this advertisement]
Hi @ll,

how to integrate bibtex into kile as such that a \cite{} command offers a completion suggestion for bibtex-keys out of a literature.bib file integrated into a kile-project?

Do not misunderstand the thread, there is no problem compiling the project. The only question is the completion stuff. For e.g. kile suggests latex tags in the following way: you type \begin{equ and kile suggests you want to type \begin{equation}. I know there was a similar feature e.g. in Miktex for Wintrash*g I used when I was one of these Win-Lemmings*g centuries ago.

Would be very effective to use such a completion stuff also for kile, especially if one has a bib-file of thousands of literature...

Thanks in advance...
seelenbild28 is offline     Reply With Quote
Old 12-03-2006, 05:59 PM   #2
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 12,830
Thanked: 227
Which version of Kile are you using. According to this change log, that feature was added.
http://websvn.kde.org/trunk/extragea...9209&view=auto

Did you add the bib file to the project, i.e. is it really integrated into the project?

Last edited by jschiwal; 12-03-2006 at 06:26 PM..
jschiwal is offline     Reply With Quote
Old 12-03-2006, 06:05 PM   #3
seelenbild28
Member
 
Registered: Oct 2005
Location: Germany, Berlin
Distribution: SuSE Linux 9.1/9.2/9.3/10.0/10.1, openSuSE 10.2, 10.3, Slackware, Debian, Redhat, BSD
Posts: 315
Thanked: 0

Original Poster
kile bibtex

hi, thanks for the quick reply.

i am using kile 1.9.2. I also saw the change log and it should be implemented. but i don*t know how to use it*g.

lets suppose my tex files are in /testdirectory. this is the directory i compile my document with a small script which does latex, bibtexall *.aux, latex, latex of my document called test.tex. the bibtex-file is literature.bib which sits in another directory somewhere on the harddisk since it is the bib-file i use for all my latex-documents. all tex-files and the bib-file are included in kile as a project test.kilepr

now the question is: how to tell kile that it knows all the keys of the file literature.bib? I did not find anything in the settings...
seelenbild28 is offline     Reply With Quote
Old 12-03-2006, 07:29 PM   #4
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 12,830
Thanked: 227
If the autocompletion text setting doesn't do it, perhaps you need to produce a .cwl from your bibtext database.
Look in /opt/kde3/share/kile/complete/
jschiwal is offline     Reply With Quote
Old 12-04-2006, 08:52 AM   #5
seelenbild28
Member
 
Registered: Oct 2005
Location: Germany, Berlin
Distribution: SuSE Linux 9.1/9.2/9.3/10.0/10.1, openSuSE 10.2, 10.3, Slackware, Debian, Redhat, BSD
Posts: 315
Thanked: 0

Original Poster
this was something I already tried! To make a .cwl file is not difficult, one has just to put all bibtex keys into a e.g. test.cwl file. But this is also the problem: since the bibtex datafile managed e.g. by kbib or in my case jabref in java gets continuously larger, you have to put the new keys also in the cwl file. this is not really comfortable especially if you first have to put over 1000 keys into the cwl file...

I thought that there is a way to tell kile "hey, there is a bib-file, take it and extract the keys". this would be very helpful, all other ways are too difficult or time consuming.

if anyone out there has another idea how to do it, please let me know...
seelenbild28 is offline     Reply With Quote
Old 12-04-2006, 09:20 AM   #6
seelenbild28
Member
 
Registered: Oct 2005
Location: Germany, Berlin
Distribution: SuSE Linux 9.1/9.2/9.3/10.0/10.1, openSuSE 10.2, 10.3, Slackware, Debian, Redhat, BSD
Posts: 315
Thanked: 0

Original Poster
now I found out that indeed kile should just simply read in the bib-file as part of the project and suggest a keyentry if one types 3 or more letters in the \cite command. For me it does not work. It does suggest all latex tags like e.g. \cite if you just type \ci.. but for the keys it does not work. Is there some setting in the kile settings which I have to tic?
seelenbild28 is offline     Reply With Quote
Old 02-02-2007, 11:21 AM   #7
Surion
LQ Newbie
 
Registered: Jul 2005
Location: Warsaw
Distribution: Slackware, Kubuntu
Posts: 1
Thanked: 0
This is splendid!!!!
Surion is offline  
Tag This Post , ,
Reply With Quote
Old 02-12-2007, 05:00 PM   #8
venik
LQ Newbie
 
Registered: Feb 2007
Posts: 5
Thanked: 0
Location of Bibtex files

I have a related problem.
I am using Kile 1.9 under Kubuntu 6.10, with Tetex.
I specify the full path to the bibtex database (*.bib), but Kile fails to find them, so I get ?? for instead of the references.
What do I do? I ran texconfig again, but that did not fix it.

By the way, when I use WinEDT on the same file under Windows (with MikTex, and after changing the \bibliography{..} command to the path appropriate for the Windows machine), it all works perfectly.

Any ideas?
Thanks
venik is offline  
Tag This Post , ,
Reply With Quote
Old 02-12-2007, 05:06 PM   #9
seelenbild28
Member
 
Registered: Oct 2005
Location: Germany, Berlin
Distribution: SuSE Linux 9.1/9.2/9.3/10.0/10.1, openSuSE 10.2, 10.3, Slackware, Debian, Redhat, BSD
Posts: 315
Thanked: 0

Original Poster
I solved the problem:

you have two possibilities:

1) you put the *.bib-file into the directory where your tex-file is located (it's not the best solution...)

2) you make a link with ln -s in the directory where your tex-file is located to the *.bib-file. example:

if your tex-file is in "/home/user" and your literature.bib-file in /data/user, then cd to /home/user in a console and type "ln -s /data/user/literature.bib /home/user"

for me it works even with bib-files on a server... so, enjoy it
seelenbild28 is offline     Reply With Quote
Old 02-12-2007, 05:08 PM   #10
seelenbild28
Member
 
Registered: Oct 2005
Location: Germany, Berlin
Distribution: SuSE Linux 9.1/9.2/9.3/10.0/10.1, openSuSE 10.2, 10.3, Slackware, Debian, Redhat, BSD
Posts: 315
Thanked: 0

Original Poster
as a remark:

it seems to be a kile problem that bib-files either have to sit in the same directory as the tex-file or a link has to sit in the same directory as the tex-file.... I don't know why, but ok, if you try this workarount you should be happy...

Last edited by seelenbild28; 02-12-2007 at 05:09 PM..
seelenbild28 is offline     Reply With Quote
Old 02-12-2007, 05:24 PM   #11
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 12,830
Thanked: 227
Are you certain that thebibliography is not working? (space missing, pun intended)

Have you tried running Latex again on it. ( A second or third time? ) Does the log say anything pertinent, and are you certain the it finished.

Maybe this is not pertinent, but you said it works in WinEdt. Was the bibtex database prepaired on windows. I wonder if the CR\RET pair that windows uses at the end of a line can cause a problem as happens with Makefiles not working.

What happens if you run the latex program from the shell instead of using Kile to edit and compile the document. It may not be a Kile issue in other words.

I haven't used LaTeX much, so I hope I'm not off base. When I was a college student, we time-shared electronic typewriters in the Library. The IBM (or even VIC-20) hadn't been released yet. I remember a couple Fortran classes where I needed to type actual punch cards. For another class, I used a paper tape punch reader. And I'm not that old! Technology sure moves fast.

Last edited by jschiwal; 02-12-2007 at 05:31 PM..
jschiwal is offline     Reply With Quote
Old 02-12-2007, 05:31 PM   #12
seelenbild28
Member
 
Registered: Oct 2005
Location: Germany, Berlin
Distribution: SuSE Linux 9.1/9.2/9.3/10.0/10.1, openSuSE 10.2, 10.3, Slackware, Debian, Redhat, BSD
Posts: 315
Thanked: 0

Original Poster
@jschiwal:

I was testing it extensively since I am used to do thinks on the console I also use the console in kile or outside. the problem is not that kile 1.9 finds the bib-file. this works wherever you put your bib-file, even on a far server. the problem we are talking about is that kile has a autocompletion mode not only for text but also for bibtex-keys it finds in your specified bib-file if you are using \bibliography. if you are using \thebibliography inside the tex-document for sure also this autocompletion works, tested! but it does not work if you are using bibtex with a separate bib-file which is not in the same directory as the tex-file. on the other hand, it works also with a separate bib-file if you have a link to that wherever located bib-file in the same directory as your tex-file OR if the bib-file is directly sitting in the same directory. clear? it took me hours to find that out, but the workaround with making a link works pretty well....
seelenbild28 is offline     Reply With Quote
Old 02-13-2007, 04:53 AM   #13
venik
LQ Newbie
 
Registered: Feb 2007
Posts: 5
Thanked: 0
Thanks a lot for the hours spent finding this workaround using a link. I shall try it once I get to my office. By the way, how do you specify the location on a server? That could be great for me, since I collaborate with other people, and we could all use the same bib files.

As for the other suggestions:
1) I tried compiling it many times, but it did not work.
2) I have used Lyx on that system, and it worked fine with the very same bib data bases under Ubuntu, so it is not a Windows vs Linux issue.
3) Under XP and Winedt, MikTex simply finds the bib files that the \bibliography command specifies. Nothing else needs to be done. It goes without saying that this is what Kile should do as well.
venik is offline     Reply With Quote
Old 02-13-2007, 06:40 AM   #14
seelenbild28
Member
 
Registered: Oct 2005
Location: Germany, Berlin
Distribution: SuSE Linux 9.1/9.2/9.3/10.0/10.1, openSuSE 10.2, 10.3, Slackware, Debian, Redhat, BSD
Posts: 315
Thanked: 0

Original Poster
strange behavior, I don't know whats the specific problem with kile and bib-files in that case.... anyway. you specifiy your bib-file on the server in the most easy way:

just mount the directory where the bib-file sits in your computer using sshfs or samba, nfs or whatever. I use sshfs:

sshfs#user@servername:/directoryonserver /mountpointonyourpc fuse noauto,user="user",allow_other

the allow_other option is for the case if you have problems with the permissions on the server...

then you just make a link in your tex-directory to the bib-file on your mounted directory, that's it...

enjoy it

Last edited by seelenbild28; 02-13-2007 at 11:08 AM..
seelenbild28 is offline     Reply With Quote
Old 02-13-2007, 10:49 AM   #15
venik
LQ Newbie
 
Registered: Feb 2007
Posts: 5
Thanked: 0
Sadly, this linking solution failed. I still get no references.
I am not sure yet whether this is a Kile specific bug or some problem with my general Latex system. The Latex system does work fine with LyX, so I assumed Kile is at fault. I shall continue to investigate.
venik is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
latex and bibtex styles for MBE kscheffler Linux - Software 8 04-20-2007 05:52 PM
kile installation hari78 Linux - Software 5 12-13-2006 04:35 AM
Storing BibTex bst files in home directory drben Linux - Software 1 11-01-2005 03:31 PM
installing bibtex style duzty_ Linux - Software 5 06-07-2005 09:43 PM
Bibtex manager xowl Linux - Software 3 04-11-2005 09:43 AM


All times are GMT -5. The time now is 10:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration