Skip to content

Commit

Permalink
doc: Always use @t in @pygments environments for non-PDF output
Browse files Browse the repository at this point in the history
A [forthcoming change in Pygments]
(pygments/pygments#2283) improves rendering of `--`,
if representing an attached tenuto, as bold using LilyPond's `@tb` macro
instead of `@t`.

Previously, the `@tb` (and `@tbsl`) macro did nothing for non-PDF output,
simply passing through its argument.  However, within the `@pygments`
environment, which in turn is based on the `@format` environment, `makeinfo`
converts blank `--` to en-dashes (U+2013), which we don't want for LilyPond
code listings.
  • Loading branch information
lemzwerg committed Dec 1, 2022
1 parent 307c699 commit 5e79acf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/en/common-macros.itexi
Expand Up @@ -748,7 +748,7 @@ UNTRANSLATED NODE: IGNORE ME

@ifnottex
@macro tb {arg}
\arg\
@t{\arg\}
@end macro
@end ifnottex

Expand All @@ -763,7 +763,7 @@ UNTRANSLATED NODE: IGNORE ME

@ifnottex
@macro tbsl {arg}
\arg\
@t{\arg\}
@end macro
@end ifnottex

Expand Down

0 comments on commit 5e79acf

Please sign in to comment.