TeXworkssty file not found yet path is correct

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
Post Reply
erwann
Posts: 75
Joined: Thu Aug 25, 2016 2:24 am

sty file not found yet path is correct

Post by erwann »

Here's a file using xwatermark I have never had problem with until now. I edited TexWorks preferences to include the missing path, which wasn't previously needed. That didn't solve the problem. I'd appreciate a suggestion to troubleshoot this issue.

LaTeX input

Code: Select all

\documentclass{minimal}
%\pagestyle{empty}
\RequirePackage[T1]{fontenc}
\RequirePackage[printwatermark]{xwatermark}
%\RequirePackage{xcolor}
\RequirePackage{pdfpages}
%\RequirePackage{tikz,underscore}
%\RequirePackage{datetime2}
%\RequirePackage{url}

%\shortdate
%\ddmmyydate


\newwatermark*[allpages,color=red!50,angle=45,scale=2,xpos=0,ypos=0]
{HOA}

\begin{document}

%\includepdf[pages={1-}]{2018_lease.pdf}

\end{document}
Console output:

Code: Select all

This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./en-watermark.tex
LaTeX2e <2016/02/01>
Babel <3.9q> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/minimal.cls
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
) (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def))

! LaTeX Error: File `xwatermark.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:
Looking for the missing file:

Code: Select all

/usr/local/texlive/2017/texmf-dist $ find . -type f -name 'xwatermark.sty'
./tex/latex/xwatermark/xwatermark.sty
Attachments
Screenshot from 2018-06-15 19-22-07.png
Screenshot from 2018-06-15 19-22-07.png (16.01 KiB) Viewed 19112 times
x_86 / Linux Mint 18.3 / texlive 2015.20160320-1ubuntu0.1 / TeXworks 0.5r1361 (Debian)

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
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

sty file not found yet path is correct

Post by Stefan Kottwitz »

Hi,

the log file shows that you run TeX Live 2015 from Debian, but xwatermark is in the TeX Live 2017 directory. Perhaps set in your editor, that it runs the 2017 version. Or run tlmgr to set or update the symlinks.

Stefan
LaTeX.org admin
erwann
Posts: 75
Joined: Thu Aug 25, 2016 2:24 am

sty file not found yet path is correct

Post by erwann »

I deleted the old and reinstalled the new.
x_86 / Linux Mint 18.3 / texlive 2015.20160320-1ubuntu0.1 / TeXworks 0.5r1361 (Debian)
Post Reply