I'm using the verse package, and it prints the poem title nicely. I want to hide the output from \mypoem{...} but still have it listed in my tocloft list.
I do want to see:
Poems
0.1 My first poem. . . . . . . . . . . 1
0.2 My second poem . . . . . . . . . 2
but I don't want to see
Poem 1. My first poem
or
Poem 2. My second poem
Code: Select all
Code, edit and compile here:
\documentclass{report}\usepackage{tocloft}\usepackage{verse}\newcommand{\poemlistname}{Poems}\newlistof{mypoem}{poe}{\poemlistname}\newcommand{\mypoem}[1]{%\refstepcounter{mypoem}\par\textit{Poem \themypoem. #1}\addcontentsline{poe}{mypoem}{\protect\numberline{\thechapter.\themypoem}#1}\par}\begin{document}\listofmypoem\section*{Document Body}\mypoem{My first poem}\poemtitle{My first poem}\begin{verse}Line 1\\Line 2\\Line 3\\Line 4\end{verse}\mypoem{My second poem}\poemtitle{My second poem}\begin{verse}Line 1\\Line 2\\Line 3\\Line 4\end{verse}\end{document}