Skip to content

How can I prevent Pandoc from escaping braces in template variables for LaTeX? #9694

Closed Answered by tarleb
sh9temp asked this question in Q&A
Discussion options

You must be logged in to vote

Pandoc won't escape strings if

  1. it knows that it's raw LaTeX, e.g.

    ---
    CJKfontoptions:
    - `CharacterWidth=Proportional`{=latex}
    - `YokoFeatures={JFM=prop}`{=latex}
    ...
    
    or
    
  2. the strings are variable values, defined, for example, in a defaults file

    variables:
      CJKfontoptions:
        - CharacterWidth=Proportional
        - YokoFeatures={JFM=prop}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jgm
Comment options

jgm Apr 26, 2024
Maintainer

@sh9temp
Comment options

@jgm
Comment options

jgm Apr 26, 2024
Maintainer

Answer selected by sh9temp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants