lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Backslashes in @warning


From: Werner LEMBERG
Subject: Re: Backslashes in @warning
Date: Sat, 22 Oct 2022 12:21:20 +0000 (UTC)

>> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]