Mustache.jl icon indicating copy to clipboard operation
Mustache.jl copied to clipboard

Escaped double curlies

Open christopher-dG opened this issue 6 years ago • 3 comments

If I wanted to render some Latex from a template file that contained double curlies as part of the Latex, would there be a way to escape them?

i.e.

# CITATION.bib
@misc{
    title = {{{{PKGNAME}}.jl}},
    ...
}

Here I want the two outer curlies to be rendered verbatim as Latex, but I want the inner {{PKGNAME}} to be substituted. Is that possible?

christopher-dG avatar May 15 '19 21:05 christopher-dG

Try a space around the inner one.

On Wed, May 15, 2019 at 5:41 PM Chris de Graaf [email protected] wrote:

If I wanted to render some Latex from a template file that contained double curlies as part of the Latex, would there be a way to escape them?

i.e.

CITATION.bib

@misc{ title = {{{{PKGNAME}}.jl}}, ... }

Here I want the two outer curlies to be rendered verbatim as Latex, but I want the inner {{PKGNAME}} to be substituted. Is that possible?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jverzani/Mustache.jl/issues/98?email_source=notifications&email_token=AADG6TDPGWWVNJQAM4NSJZDPVR7RZA5CNFSM4HNHGVV2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUA6LFA, or mute the thread https://github.com/notifications/unsubscribe-auth/AADG6THNBBCVDO2JEARMZ7DPVR7RZANCNFSM4HNHGVVQ .

-- John Verzani Department of Mathematics College of Staten Island, CUNY [email protected]

jverzani avatar May 15 '19 23:05 jverzani

Sorry, I misread this one. My solution definitely isn't helpful, well... it isn't a solution. There is an issue in trying to render the tags by themselves as text. I don't know if that is possible. In #100 the use of different tags is exposed and might offer a solution for you.

jverzani avatar May 31 '19 21:05 jverzani

Using different tags will definitely work. Thanks!

christopher-dG avatar May 31 '19 23:05 christopher-dG