[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
- Backslashes in @warning, Jean Abou Samra, 2022/10/19
- Re: Backslashes in @warning, Werner LEMBERG, 2022/10/19
- Re: Backslashes in @warning, Jean-Charles Malahieude, 2022/10/22
- Re: Backslashes in @warning, Jean Abou Samra, 2022/10/22
- Re: Backslashes in @warning,
Werner LEMBERG <=
- Re: Backslashes in @warning, Jean Abou Samra, 2022/10/22
- Re: Backslashes in @warning, Werner LEMBERG, 2022/10/22
- Re: Backslashes in @warning, Jean Abou Samra, 2022/10/22
- Re: Backslashes in @warning, Jean Abou Samra, 2022/10/23