KileA problem with compiling in Kile on Ubuntu

Information and discussion about Kile, an integrated LaTeX environment for Linux KDE
DavidM
Posts: 20
Joined: Wed Jul 01, 2009 9:52 pm

A problem with compiling in Kile on Ubuntu

Post by DavidM »

Hi all!

I am new to this site. I have been a Latex user for a while now, with MikTex and Winedt in windows. Because windows gave me a lot of problems, I switched to Ubuntu today. I allready had my thesis in Winedt, but needed to make a few adjustments. This is giving a few problems, I hope you guys can help me out.

I was using a .bib file and a .tex file in Winedt, and cited under APA rules, with \cite{authorYear}. My problems are:

1. On startup: ''The file /home/bibdavid.bib was opened with UTF-8 encoding but contained invalid characters. It is set to read-only mode, as saving might destroy its content.''

My bib file contains these kind of entries:
@ARTICLE{BassoWurtz1997,
AUTHOR = {Basso, M. A. and Wurtz, R. H.},
TITLE = {Modulation of Neuronal Activity by Target Uncertainty},
JOURNAL = {Nature},
YEAR = {1997},
volume = {389},
pages = {66--69},
}

2. I am not sure I am compiling in the right order. I am doing: Bibtex -> Tex -> PDFTex -> View PDF. Then I get this error:

3. This is not the root document. What does this mean?

4. When closing Kile I get: A fatal error occured. The application Kile (kile) crashed and caused the signal 11 (SIGSEGV).
Is this bad?:P




Ok guys, I know these are a lot of questions in once, and I hope I am not violating any forum rules. I hope someone can help me out! Always a few bugs when trying new software, but Kile really looks promising:)

Thanks in advance!!!

Recommended reading 2024:

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

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

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

A problem with compiling in Kile on Ubuntu

Post by frabjous »

DavidM wrote:Hi all!

1. On startup: ''The file /home/bibdavid.bib was opened with UTF-8 encoding but contained invalid characters. It is set to read-only mode, as saving might destroy its content.''
There should be an option under tools to make it no longer read-only, though of course it would be good to figure out which characters were invalid and replace them, or change to the proper encoding (also under Tools).

Still, if it was working with Windows, it'll probably work here.
2. I am not sure I am compiling in the right order. I am doing: Bibtex -> Tex -> PDFTex -> View PDF. Then I get this error:
I believe the right order is just PDFLatex > BibTeX > PDFLaTeX > PDFLaTeX > ViewPDF, unless you are in fact using a straight TeX document instead of a LaTeX one.
3. This is not the root document. What does this mean?
I get that error if I try to compile something before saving it, or if I try to compile a subsidiary file (e.g., one included with \input) rather than the master document. When you click one of the compile buttons, your main .tex file should be in the foreground, not any of the included ones, or the .bib file (even when running BibTeX.)
4. When closing Kile I get: A fatal error occured. The application Kile (kile) crashed and caused the signal 11 (SIGSEGV).
Is this bad?:P
I get that all the time too. I wish I knew what it meant. It hasn't lead to any disasters for me so far, so I haven't bothered looking into further. I've assumed it had something to do with the still less-than full compatibility between KDE applications (which Kile is) and Gnome (which Ubuntu uses by default), which can create some other funkiness, especially if you're using a proprietary driver for an nVidia video card, but I'm not at all sure about that, especially since it looks like a segmentation fault that has something to do with RAM. Anyway, I only get it when exiting. Maybe I'll research it when I get a chance... but I don't think it's anything to panic over.
DavidM
Posts: 20
Joined: Wed Jul 01, 2009 9:52 pm

Re: A problem with compiling in Kile on Ubuntu

Post by DavidM »

Thanks a lot man! All the errors I have listed are solved :D

I have two new questions though.

1. When I convert to PDF or choose viewPDF, only the first page is shown?

2. Kile doesn't give any errors, yet the citations are wrong. For example in the document I would say: cite{BassoWurtz1997}, and I would expect something like "Basso et al. (1997)." Buy instead I get "BassoWurtz1997". In short Kile seems to ignore the information in the BibTex file, and just prints whatever is between the brackets of cite{}.

Can anyone help me with these?

Again thanks a lot!
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

A problem with compiling in Kile on Ubuntu

Post by frabjous »

DavidM wrote:Thanks a lot man! All the errors I have listed are solved :D
1. When I convert to PDF or choose viewPDF, only the first page is shown?
What program are you using to view the PDF? Evince (a.k.a. "Document Viewer")? Okular? Acrobat Reader? The embedded viewer? If you go to Settings > Configure Kile > Tools:Build, and select ViewPDF on the left, what does it show?
2. Kile doesn't give any errors, yet the citations are wrong. For example in the document I would say: cite{BassoWurtz1997}, and I would expect something like "Basso et al. (1997)." Buy instead I get "BassoWurtz1997". In short Kile seems to ignore the information in the BibTex file, and just prints whatever is between the brackets of cite{}.
This has nothing to do with Kile. It's a matter of the Bibliography style and packages you're using. You might want to give natbib a try.
DavidM
Posts: 20
Joined: Wed Jul 01, 2009 9:52 pm

A problem with compiling in Kile on Ubuntu

Post by DavidM »

frabjous wrote: What program are you using to view the PDF? Evince (a.k.a. "Document Viewer")? Okular? Acrobat Reader? The embedded viewer? If you go to Settings > Configure Kile > Tools:Build, and select ViewPDF on the left, what does it show?
Okular. Also when I convert to PDF only one page is converted.
frabjous wrote: This has nothing to do with Kile. It's a matter of the Bibliography style and packages you're using. You might want to give natbib a try.
Okey! Should the APA-cite style work, or is it possible I need to change cite style for Kile/Linux? Also, when I view the document, all cues of the APA-makeup are ignored: sections, paragraphs, titles. Is this an indication the package is not correctly installed?

Thanks a lot man! I really appreciate your help.


Edit: I don't think it is the installation of the right packages any more. I manually downloaded the packages from ctan, and installed them with:

1) I, first installed texlive+kile,
2) I downloaded all scripts from CTAN and saved in a temp folder
3) I renamed sudo mv /usr/share/texmf-texlive/tex/latex /usr/share/texmf-texlive/tex/latex.old/
4) I copied all the scripts: sudo cp -rv /tmpfolder/ /usr/share/texmf-texlive/tex/latex/
5) sudo mktexlsr /usr/share/texmf/ /var/lib/texmf usr/share/texmf-texlive
6) updmap-sys

...do you understand what is wrong?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

A problem with compiling in Kile on Ubuntu

Post by frabjous »

DavidM wrote: Okular. Also when I convert to PDF only one page is converted.
If you navigate directly to the folder where the .pdf you created is kept, and open it (in Evince or whatever your default .pdf viewer is), are the other pages there? If not, then this is likely a problem with compilation. Does Kile report errors when you compile?
Okey! Should the APA-cite style work, or is it possible I need to change cite style for Kile/Linux? Also, when I view the document, all cues of the APA-makeup are ignored: sections, paragraphs, titles. Is this an indication the package is not correctly installed?
Citation styles, etc., should all be platform-independent. Kile doesn't actually compile your code: it just calls whatever core LaTeX/PDFLaTeX system you have installed on your system (likely some version of TeXlive).

What document class and packages are you using exactly? I have no experience with the apacite package, personally, so I'm likely not the best person to ask about it. If division headers like sections and titles are missing from your output, that probably means there's something more serious wrong with your document, or your means of compiling it... or it could certainly be that packages are missing from your system. If so, you should get errors when compiling. Are you? Have you tried skipping Kile altogether and just running "latex ???.tex" or "pdflatex ???.tex" directly from a terminal window?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

A problem with compiling in Kile on Ubuntu

Post by frabjous »

Oops, didn't see your edit.

How did you install texlive? Through synaptic? I don't know if it's still the case, but recently, Kile was unfortunately "linked" in synaptic with an OLD version of texlive.

You can determine your latex version by running:

latex -v

from a commandline.

I get:
pdfTeX 3.1415926-1.40.9-2.2 (Web2C 7.5.7)
kpathsea version 3.5.7
Copyright 2008 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea is copyright 2008 Karl Berry and Olaf Weber.
...
If yours shows anything older than 2008, rather than installing packages manually, my advice would be to manually install the newer version of texlive (including all packages).

We had a discussion about this recently in this thread:
http://latex-community.org/forum/viewto ... =20&t=3204

For how to install texlive 2008:
http://www.tug.org/texlive/quickinstall.html

Be sure to include those symbolic links, and put /usr/local/texlive/2008/bin/i386-linux at the beginning of your path.
DavidM
Posts: 20
Joined: Wed Jul 01, 2009 9:52 pm

A problem with compiling in Kile on Ubuntu

Post by DavidM »

frabjous wrote:...
Wow good idea! Mine is 2007, so I will update, see how that works out. Thanks!

This is more a question for me to understand how various applications work together, but how will this influence the compiling in any way, as I have the packages installed now, although with livetex2007?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: A problem with compiling in Kile on Ubuntu

Post by frabjous »

I'm not really enough of an expert to know whether your way of installing them should have worked or not for texlive 2007, but if you follow the advice about fully installing texlive 2008, it should install all the packages for it automatically and update your system, so you needn't worry about whether or not they're installed right now. So long as the texlive '08 binary directory is first in your path, and you create the symbolic links, Kile should end up calling it rather than TL2007.

I can't promise your difficulties will go away, since I'm not altogether sure what is causing your difficulties, but it'll at least remove some reasons for doubt.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

A problem with compiling in Kile on Ubuntu

Post by Stefan Kottwitz »

Hi David,

perhaps this post could be useful for you: Kile and TeX Live 2008 on Ubuntu Linux. You could uninstall TeX Live 2007 before installing v2008 and fulfill the dependencies of Kile using equivs, but have a look at the comments there, make the control file big enough.

Stefan
LaTeX.org admin
Post Reply