Background: I like the look of old-style numerals in text, but they look bad in acronyms or other all-caps blocks, so I’d like to switch to lining numerals there. I couldn’t find an all-LaTeX way to do this so simplest way seemed to be a filter. I want to match words containing and only containing capital letters and numbers and surround them with \liningnums{} For example: NUMBER1 -> \liningnums{NUMBER1} 2022 -> 2022 A1B2C3 -> \liningnums{A1B2C3} A1b2c3 -> A1b2c3 I’ve played around a bit but don’t know enough Lua or Pandoc internals to get there. I have patterns to check the words but haven’t managed to successfully add the latex macro. Can someone point me in the right direction? Thanks! -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAFy2Trs7g%2B84uDfLAYOa%2BFZm7YmXfwCUiFiTbcCwyN56KEv8nQ%40mail.gmail.com.