Skip to content

fix(latex): tokenize piton PitonInputFile like lstinputlisting - #407

Open
HaoZeke wants to merge 1 commit into
mainfrom
impl-a/snapper-e0x2
Open

HaoZeke wants to merge 1 commit into
mainfrom
impl-a/snapper-e0x2

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

piton.sty \PitonInputFile (NewDocumentCommand d < > O { } m).

The command stays atomic, including optional <...> / [...]. Following prose still splits. Piton env, \piton, \verbatiminput, and fancyvrb \VerbatimInput unchanged.

Closes #406.

Do not hand-edit CHANGELOG.md.

piton.sty \PitonInputFile (NewDocumentCommand d<> O{} m) is one leftover
command. Tokenize it like lstinputlisting so the span stays atomic
including optional <...> / [...]. A leftover walker emits the command
as Structure so following flush After. does not join. After. / Next.
still split. Piton env, \piton, verbatiminput, VerbatimInput unchanged.

GitHub #406.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LaTeX piton PitonInputFile joins following prose

1 participant