LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ No compilation output, no .sty file found Topic is solved

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Tom_EJ
Posts: 5
Joined: Mon Nov 21, 2016 4:33 pm

No compilation output, no .sty file found

Dear community,

I installed a brand new OS, being Linux Mint 18.2, and wanted to start right away using LaTex but I face some odd new problems:

When I want to compile with LaTex or pdflatx or bibtex or whatsoever, there is no output in that little window that actually is supposed to appear at the bottom. So, it does simply not appear. Bewiderlingly, all the changes I make inside the text are shown correctly in the pdf document when I hit "quick build".

That happens when I use Texmaker.

In Texworks, the output at the bottom is generated when compiling, including some error messages and so forth.

However, in Texworks I get the message:
I couldn't open style file natbib.bst---line 57 of file class_QCA.aux : \bibstyle{natbib :                 }I'm skipping whatever remains of this commandI found no style file---while reading file class_QCA.aux(There were 2 error messages)

Deliting the .aux file as suggested by some posts in the net has no result.

My settings:

\documentclass[12pt,a4paper]{book}\usepackage[utf8]{inputenc}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amsfonts}\usepackage{amssymb}\usepackage{graphicx}\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}\usepackage[numbers]{natbib}\begin{document} .... \bibliographystyle{natbib}\bibliography{literature}\end{document}

I guess these are two seperate problems:
- the missing output of the compilations
- the problem with the .sty file

Generally, I installed the program using
sudo apt-get install texlive-full

using the bash and
sudo apt-get install texmaker

respectively.

I searched the net and the first problem seems to be well-known. Many posts suggest to ajust the path of pdflatex.exe...hm...it seems that such a file does not exist on my pc where is it supposed to be found?...I used

find / -name pdflatex.exe

Concerning the .sty file problem, I have no idea. It is supposed to work, like on my former OS, but it simply does not. The posts I found in the net are not ver satisfactory, so

I am thankful for any help, advice, or link that helps me out
Linux Mint 18.2; KDE-Plasma5; 4.8.0-53-generic #56~16.04.1-Ubuntu x86_64 x86_64 x86_64 GNU/Linux
TeX 3.14159265 (TeX Live 2015/Debian) kpathsea version 6.2.1

Johannes_B
Site Moderator
Posts: 3644
Joined: Thu Nov 01, 2012 4:08 pm
natbib is not a valid bibliographystyle, try plain instead.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Tom_EJ
Posts: 5
Joined: Mon Nov 21, 2016 4:33 pm
Thanks, that worked at least for Texworks.
But the outcome is silly as there is no right quotation, e.g.:

Ragin, as he states himself, was trained "to use multivariate statistical techniques wherewer possible" [8, p.vii].

The "8" should actually be the reference...same output with \cite[p.vii]{Ragin1987} or \citep[p.vii]{Ragin1987}. The literature.bib sais:

@Book{Ragin1987,Author = {Ragin, Charles},ALTauthor = {Ragin, Charles C.},ALTeditor = {•},title = {The Comparative Method. Moving Beyond Qualitative and Quantitative Strategies},publisher = {University of California Press},year = {1987},OPTkey = {•},OPTvolume = {•},OPTnumber = {•},OPTseries = {•},OPTaddress = {•},OPTedition = {•},OPTmonth = {•},OPTnote = {•},OPTannote = {•}}

In Texmaker, the change to the {plain} style has the same effect, despite that pdflatex does not generate a pdf file at all. Only quick build does the trick...
Linux Mint 18.2; KDE-Plasma5; 4.8.0-53-generic #56~16.04.1-Ubuntu x86_64 x86_64 x86_64 GNU/Linux
TeX 3.14159265 (TeX Live 2015/Debian) kpathsea version 6.2.1

Stefan Kottwitz
Posts: 8708
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
Hi Tom,

it may be below /usr/local/texlive/.

It's definitely not pdflatex.exe, since that's a Windows name, it should be only pdflatex. Check it with find again, and then try which pdflatex and which latex in the terminal to see if the system finds it.

Stefan

Johannes_B
Site Moderator
Posts: 3644
Joined: Thu Nov 01, 2012 4:08 pm
Try to replace plain with apalike and remove the numbers option when loading natbib.

The 8 is the number of the reference i guess (Vancouver style) but it seems you want Harvard style (author date). apalike is the only (very specific) author date style that comes to my mind, i use the modern package biblatex. If you are interested, please have a look at https://en.wikibooks.org/wiki/LaTeX/Bib ... _and_biber
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Tom_EJ
Posts: 5
Joined: Mon Nov 21, 2016 4:33 pm
Thanks a lot to all those who helped! Now it works.

First: In linux mint the pdflatex file is in /usr/bin/pdflatex
It can be easily found with the help of the bash by typing:

find / -name pdflatex

(Thank you Stefan, of cause it has to be written without .exe ...sorry for mindless copy and paste from other sources )
or simply

which pdflatex

I soved also the .sty problem: Indeed I was confused about Vancouver and Harvard style, and indeed I wanted to have the Harvad one, for me worked
[...]\usepackage{natbib}\usepackagr{har2nat}[...]foo[...]\bibliographystyle{agsm} [...]

apalike instaed of agsm works as well, thanks, Johannes. And thanks for the hint with [numbers], I thought this would only generate numbers in front of the listing of the bibliography, and not inside the running text - but appearently it does...something I learned today!

Now the most embarissing part: If you ever wonder why there is no output in the little window below while compiling...have a look at the "Message / Log" button on the left below...it might be simply switched off...yea..sorry...

I hope that helps some day some other fool like me,
have a good night, thread can be closed
Linux Mint 18.2; KDE-Plasma5; 4.8.0-53-generic #56~16.04.1-Ubuntu x86_64 x86_64 x86_64 GNU/Linux
TeX 3.14159265 (TeX Live 2015/Debian) kpathsea version 6.2.1