Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
1  
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
1  
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
2  
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
2  
Put something between \begin{document} and \end{document}. –  cfr Jan 5 at 20:57
show 3 more comments

1 Answer 1

up vote 6 down vote accepted

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.

share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.