I tried everything (I think)!
installing
texlive-publishersfollowing How to install AASTEX with dependencies on Ubuntu 14.04installing the Vanilla TexLive, as indicated in https://tex.stackexchange.com/a/171560/9057
Now, aastex.sty IS present on my machine but Kile doesn't see it.
Below some info:
kpsewhich -var-value=TEXMFLOCAL gives /usr/local/texlive/texmf-local
locate aastex.sty gives /usr/share/texlive/texmf-dist/tex/latex/aastex/aastex.sty
if I try texhash I get
texhash: /usr/local/texlive/2016/texmf-config: directory not writable. Skipping...
texhash: /usr/local/texlive/2016/texmf-dist: directory not writable. Skipping...
texhash: /usr/local/texlive/2016/texmf-var: directory not writable. Skipping...
texhash: /usr/local/texlive/texmf-local: directory not writable. Skipping...
texhash: Done.
Can somebody, please, tell me what's wrong with my computer?
How can I make Kile see it and use it?
UPDATE
the compiler finds the downloaded .sty file if I place it in the same folder folder as the .tex file, but it's practically unusable since the compiler gives many errors.
should I first compile it separately? If so, with what?
Thank you
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2017.4.26) 2 MAY 2017 11:33 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **licentiate.tex (./licentiate.tex LaTeX2e <2017/01/01> patch level 3 Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.My suspect at this point is that Kile is not using Vanilla TexLive. If so, how do I change this? thank you – andrea May 02 '17 at 09:38test.tex:\documentclass{article}\begin{dcument}hello\end{document}. Then compile this in Kile, same the log file under another name, saykile_log.log, and then compile by hand in a terminal. Please post both logs. Then we can easily see whether they are using the same installation. – daleif May 02 '17 at 10:37pdflatexand its output is exactly the same as that of Kile:This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2017.4.26) 2 MAY 2017 13:10 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **test.tex (./test.tex LaTeX2e <2017/01/01> patch level 3 Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.– andrea May 02 '17 at 11:17.logfile. It also lists the path to files. – daleif May 02 '17 at 11:20/usr/share/texlive/texmf-dist/tex/latex/aastex/aastex.styis not part of vanilla texlive, it came withtexlive-publishersthat you installed via Ubuntu. Nowadays AAS does not use a.styfile, they have added a class file instead,aastex6.clsso you should probably use that. – daleif May 02 '17 at 13:26texhashcommand, I suppose – andrea May 02 '17 at 14:11kpsewhich aastex6.clsin a folder with no.clsfiles. You should just adjust your document to use theaastex6class, and not as a package. – daleif May 02 '17 at 14:20\apj) and end of the story. I have a thesis to write, not LaTex on Ubuntu to debug. many thanks for your help and time @daleif – andrea May 02 '17 at 14:36