Re: Backslashes in @warning
>> You just have to "escape" it, like in texidocs: >> >> @code{\\textMark} et @code{\\textEndMark} >> >> >> I'll prepare a MR later today for text.itely. > > If I do that, the backslash does appear in HTML, but there are two > backslashes in the PDF. We could define a macro `@bscode`, to be used in `@warning` only. Add the following to `common-macros.itely` ``` @macro bscode{TEXT} @code{\\\TEXT\} @end macro ``` and use it as follows. ``` @warning{This is a warning with the @bscode{foo} command.} ``` Werner
Re: Backslashes in @warning
Le 22/10/2022 à 12:02, Jean-Charles Malahieude a écrit : You just have to "escape" it, like in texidocs: @code{\\textMark} et @code{\\textEndMark} I'll prepare a MR later today for text.itely. If I do that, the backslash does appear in HTML, but there are two backslashes in the PDF.
Re: Backslashes in @warning
Le 19/10/2022 à 17:38, Werner LEMBERG a écrit : The page https://lilypond.org/doc/v2.23/Documentation/notation/writing-text.html#text-marks is missing some backslashes in the box [...] I don't immediately see what this discrepancy could be caused by, apart from a bug or limitation of texi2html 1.82. Can this be worked around somehow? I can confirm this problem with a local build; it seems indeed to be a bug in the old texi2html version, which swallows backslashes in `@warning{...@code{...}...}`. Alas, I don't know how to fix it. You just have to "escape" it, like in texidocs: @code{\\textMark} et @code{\\textEndMark} I'll prepare a MR later today for text.itely. Cheers, -- Jean-Charles