enhancementformat:LaTeXgood first issuewriter
Description
Example
## Test (\High)
We use the following in reports to indicate that an issue has a High severity. The \High macro is defined in our latex template and basically makes it red:
The relevant part of the AST is
[
{
"t": "Str",
"c": "Test"
},
{
"t": "Space"
},
{
"t": "Str",
"c": "("
},
{
"t": "RawInline",
"c": [
"tex",
"\\High"
]
},
{
"t": "Str",
"c": ")"
}
]
I have a lua filter that transforms it into
[
{
"t": "Str",
"c": "Test"
},
{
"t": "Space"
},
{
"t": "Str",
"c": "("
},
{
"t": "RawInline",
"c": [
"tex",
"\\High"
]
},
{
"t": "RawInline",
"c": [
"plain",
"High"
]
},
{
"t": "Str",
"c": ")"
}
]
My hope was the plain version would be used inside the second argument of texorpdfstring, however it isn't.
When converted to latex I get:
\subsection{\texorpdfstring{Test (\High)}{Test ()}}\label{test}
I would like:
\subsection{\texorpdfstring{Test (\High)}{Test (High)}}\label{test}