What is the preferred way to pass an if conditional when using pandoc to write the file? I can make the following code work with etoolbox in LuaLaTeX, but the first line is missing the special unicode characters after going through pandoc, which I assume means I cannot use etoolbox conditionals? %!TEX TS-program = LuaLaTeX %!TEX encoding = UTF-8 Unicode \documentclass[a4paper, 12pt] {article}% \usepackage{fontspec}% \usepackage{etoolbox}% \setmainfont{Brill} \renewcommand{\d}[1]{% \ifstrequal{#1}{h}{ḥ}{% \ifstrequal{#1}{\v{C}}{Č̣}{}}} \renewcommand{\=}[1]{% \ifstrequal{#1}{a}{ä}{}% } \begin{document} The research locations visited were Ba\d{h}ǝr Dar and \d{\v{C}}el\={a}qwot Sǝlasse.\par The research locations visited were Baḥǝr Dar and Č̣eläqwot Sǝlasse.\par \end{document} -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/94be1e1e-c49f-4fe6-92fe-4aaf13c083f3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.