LaTeX forum ⇒ Conversion ToolsHelp: Compile error -- ! LaTeX Error: File `filehook.sty' not found.

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
r2997790
Posts: 5
Joined: Sat Aug 24, 2019 12:10 pm

Help: Compile error -- ! LaTeX Error: File `filehook.sty' not found.

Postby r2997790 » Sat Aug 24, 2019 11:00 pm

HI everyone.

I am getting a persistent error I cannot shake when trying to compile a .md and .tex file into a PDF using Pandoc.
I've (re)installed pandoc and miktek and the problem is persisting.

M:\>pandoc sample_1.md -f gfm format.tex --pdf-engine=xelatex -o outputfinal.pdf
Error producing PDF.
! LaTeX Error: File `filehook.sty' not found.

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

Enter file name:
! Emergency stop.
<read *>

l.54 \RequirePackage


I've checked and filehook.sty is installed. My files are below... does anyone have any advice on how I can fix this please?

format.tex https://pastebin.com/fmvvmkwP
sample_1.md https://pastebin.com/NyJD8B05

Thanks for your help!
R

User avatar
Ijon Tichy
Posts: 132
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Sun Aug 25, 2019 9:43 am

If you've installed the MiKTeX package filehook correctly via the MiKTeX consolse, LaTeX should find it. If not, first make an update. And yes, an update after a fresh installation sometimes installs updates.

If you've installed filehook manually without the MiKTeX console, remove it and install the package via the MiKTeX console.

And please try to learn to distinguish LaTeX problems and Pandoc problems. For LaTeX problems it is always a good idea to make a LaTeX Infominimal working example and to ask them in the correct forum. For MiKTeX specific problems it would be a good idea to use the MiKTeX forum. The Conversion Tools forum is correct for conversion problems like Pandoc problems but not for MiKTeX problems nor for LaTeX problems. It is not an invincible problem for us, if you use the wrong forum. But it would help your understanding of Pandoc and LaTeX and so it would help you to ask better questions and to get faster and better help. I.e. you should not write
r2997790 wrote:I've checked and filehook.sty is installed.
but tell us how you've checked and where the file is installed.


Return to “Conversion Tools”

Who is online

Users browsing this forum: No registered users and 2 guests