# 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 '14 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 '14 at 19:52
@Jubobs Miktex has poetrytex installed, but I still get the same error message. –  Medulla Oblongata Jan 5 '14 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 '14 at 20:36
Put something between \begin{document} and \end{document}. –  cfr Jan 5 '14 at 20:57

## 1 Answer

Actually, MiKTeX only installs the doc for poetry-tex, and the source. So you should go to MiKTeX 2.9\source, and extract poetry-tex.tar from poetry-tex.tar.bz2. Then extract the files from poetry-tex.tar; you'll get two files in latex\poetrytex: makefile and poetry-tex.dtx. Run pdflatex on poetry-tex.dtx. You'll obtain a number of auxiliary files and 2 .sty files. Install these .sty files in \MiKTeX 2.9\text\latex\poetry-tex and delete all the rest. Finally, update the FNDB via MiKTeX Options.

Edit: the bug has been fixed with the 2014/01/14, cf. bug tracker entry poetrytex: package file missing.

-
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 '14 at 21:39
/me gets his ego stoked. –  Sam Whited Aug 7 '14 at 22:23
tex.stackexchange.com/users/10744/sam-whited, I experienced the same problem and unsolved. –  Edy Jo Mar 9 at 18:21
@EdyJo Couldn't help you; I just wrote / maintain the PoetryTeX package... I don't use Miketex or have anything to do with them. –  Sam Whited Mar 9 at 18:23
UPDATE: SOLVED! by installing manually, latex poetrytex.dtx –  Edy Jo Mar 9 at 18:29