Closed evamvid closed 10 months ago
Can you post an example of a failing title?
try:
\section{The Cultural Relevance of Melville's \textit{Moby-Dick}}
basically anything that contains an opening { won't be matched by the regex
Thanks for reporting this. Closing in favour of https://github.com/cvfosammmm/Setzer/issues/389 , because that has more info. Feel free to participate in the discussion there.
I use the ac package for abbreviations, and if I use it to make titles for sections or chapters it fails to parse. This also applies if you have any italic text in a chapter/section/subsection title.
I might try to work on this myself if I get time, but I thought I'd put it up if anybody else wants to. I think the way to go is probably just to put everything between the outermost pair of curly braces in the structure navigator, including any Latex macros.
This would be a good first issue for anyone who knows their way around regex a little bit!
edit: another way to phrase this is that the regex should match everything between the outer set of curly braces, ignoring any nested curly braces, but I'm way over my head in terms of regex knowledge to be able to implement that.