# Poetrytex package

I'm trying to create a poetry anthology using the poetrytex package. I'm following the instructions in the poetrytex manual on CTAN and so far my code is

\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}

\RequirePackage{expl3}
\RequirePackage{tocloft}
\AtEndOfPackage{\RequirePackage{hyperref}}
\usepackage[numberpoems,clearpageafterpoem]{poetrytex}

\newcommand*{\pttitle}{Title}
\newcommand*{\ptsubtitle}{Subtitle}
\newcommand*{\ptauthor}{Author}

\begin{document}

\end{document}


I always get the File 'poetrytex.sty' not found message.

Am I missing a piece of code somewhere?

-
Check whether the poetrytex package comes by default with your TeX distribution. If not, it's available on CTAN; you should be able to download and install it in a few clicks using your package manager (e.g. TeX Live Uility). –  Jubobs Jan 5 at 19:24
You are including lines from poetrytex.sty itself, which are not needed: \RequirePackage{expl3} \RequirePackage{tocloft}\AtEndOfPackage{\RequirePackage{hyperref}}. You should remove them from your preamble. (This is not the source of your problem, however.) –  jon Jan 5 at 19:52
@Jubobs Miktex has poetrytex installed, but I still get the same error message. –  Medulla Oblongata Jan 5 at 20:31
Hmm... I don't know (I don't use MiKTeX myself). What if you manually download poetrytex.dtx from CTAN, change its extension to sty, and place it in the same folder as your input file? Does your file compile as expected then? If so, your MiKTeX installation may have been corrupted. –  Jubobs Jan 5 at 20:36
Put something between \begin{document} and \end{document}. –  cfr Jan 5 at 20:57

Ah, indeed (+1): CTAN only has the manual and the .dtx (well, and a Makefile and README). But that doesn't explain why MiKTeX was able to find the .sty after adding a \maketitle in his document. Or so I would think despite being wholly unfamiliar with MiKTeX. –  jon Jan 5 at 21:39