[Tex/LaTex] Texmaker, Tex Live, .cls file, CentOS 8

centoslinuxtexlivetexmaker

I have just made a fresh install of Texmaker and Tex Live at my CentOS 8 system. I am not able to execute: "PdfLaTeX + Bib(la)tex + PdfLaTeX (x2) + View PDF" from the Texmaker. Everytime I get error at the beginning of my .tex document:

! LaTeX Error: File `wlscirep.cls' not found.

The beginning of the main.tex document appears as follows:

\documentclass[fleqn,10pt]{wlscirep}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{csquotes}
\title{Title of the document}
...

The wlscirep.cls was stored in the same folder as the main.tex document as default. It is not working like that. Why? I have no idea I thought Tex is everytime looking into the document root folder.

After reading this thread, I have found my texmf location and created folder where I stored .cls and .sty files of the document template:

[user@hostname ~]$ kpsewhich -var-value=TEXMFHOME
/home/user/texmf
[user@hostname ~]$ 

[user@hostname ~]$ kpsewhich wlscirep.cls
/home/user/texmf/tex/latex/scirep/wlscirep.cls
[user@hostname ~]$

After this, the texmaker is still writing that it can not find the wlscirep.cls file. Does somebody see what I miss? I am stucked… 🙁

Thanks, Rene

Best Answer

The annoying problem you have run into is a sandboxed app: texmaker is installed as a flatpak, and as such has no access to many places. Using flatseal (also installed using the software tool) you can turn on the two file system options (especially the "All user files"); that will solve your problem, I hope.

Related Question