Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stanza's sethangingsymbol ignored with numberlinefalse #822

Open
urrameu opened this issue May 15, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@urrameu
Copy link

commented May 15, 2019

Version

Verified in both version 2019/02/22 v2.31.0 and version 2017/01/22 v2.17.1 .

Regression

I do not know if this ever worked before.

Description

When typesetting a \stanza with \numberlinefalse, \sethanginsymbol has no effect; the continuation line is indented, which is the default, but that behaviour cannot be customized.

From what I can tell, \do@line does this:

\ifnum\@lock>\@ne
    \inserthangingsymboltrue
  \else
    \inserthangingsymbolfalse

But \@lock is calculated by \getline@num, which does not go all the way with \numberlinefalse, so \@lock is always zero (I think). How to solve this, however, is beyond my LaTeX expertise. This happens both with reledmac and reledpar.

Minimal Working Example

\documentclass{article}
\usepackage{mwe}
\usepackage{reledmac}

\sethangingsymbol{\protect\hfill[\,}

\begin{document}

\numberlinefalse
\setstanzaindents{1,0}
\firstlinenum{1}

\beginnumbering
  \stanza
    This is a very, very long line that takes so
    much space that it definitely causes a line break\&
\endnumbering

\end{document}

If someone ends up here before this gets addressed, there are two simple workarounds: either \firstlinenum{999999} or \AtEveryPstart{\hidenumbering} can "solve" the problem.

Thanks!

@maieul

This comment has been minimized.

Copy link
Owner

commented May 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.