Text FormattingThe second poemsectiontitle indents using poemscol package

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
petersfreeman
Posts: 19
Joined: Wed Apr 28, 2021 9:40 am

The second poemsectiontitle indents using poemscol package

Post by petersfreeman »

I'm using XeLaTeX with the package poemscol and have found that the second instance of \poemsectiontitle{Section Title} suddenly indents.

Code: Select all

\documentclass[12pt]{article}

\usepackage{fancyhdr}
\usepackage{geometry}
\usepackage[]{poemscol}

\begin{document}

\poemtitle{My Title}

	\begin{poem}

		\poemsectiontitle{Part I. The First Part}

		\begin{stanza}
			This is the first line of the poem,\verseline
			and some more words here.\verseline
			Finish off the stanza with this longer line.
		\end{stanza}

		\poemsectiontitle{Part II. The Second Part}

	\begin{stanza}
		Start the next stanza with this line here\verseline
		and add another line to rhyme with the first.\verseline
		Bring it all to a nice resonant end.
	\end{stanza}

	\end{poem}

\end{document}
How do I fix this?

Thanks,

Peter

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
petersfreeman
Posts: 19
Joined: Wed Apr 28, 2021 9:40 am

The second poemsectiontitle indents using poemscol package

Post by petersfreeman »

I wrote to John Burt, the creator of "poemscol". He suggested this:

"My first thought is this. All of the title commands were designed to be used outside of the poem environment. Try it this way:"

Code: Select all

\documentclass[12pt]{article}

\usepackage{fancyhdr}
\usepackage{geometry}
\usepackage[]{poemscol}

\begin{document}

\poemtitle{My Title}

\poemsectiontitle{Part I. The First Part}

 \begin{poem}
	\begin{stanza}
		This is the first line of the poem,\verseline
		and some more words here.\verseline
		Finish off the stanza with this longer line.
	\end{stanza}
\end{poem}
   
\poemsectiontitle{Part II. The Second Part}

\begin{poem}
	\begin{stanza}
		Start the next stanza with this line here\verseline
		and add another line to rhyme with the first.\verseline
		Bring it all to a nice resonant end.
	\end{stanza}
\end{poem}

\end{document}
Also, I would use \poemfirstsectiontitle for the first section, to be sure that you don't wind up with a page break between the main title and the title of the first section.
Post Reply