[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using recfmt with curly-brace markup
From: |
Liliana Marie Prikler |
Subject: |
Using recfmt with curly-brace markup |
Date: |
Thu, 20 Jan 2022 11:52:05 +0100 |
User-agent: |
Evolution 3.42.1 |
Hi folks,
I'm trying to use recfmt to generate LaTeX code snippets from records.
The current implementation results in a fatal error ("invalid
expression in a template slot") when straightforwardly attempting to
wrap recfmt's template syntax in another pair of braces. This has
somewhat been discussed in a related use case in Guix, which would be
to get BibTeX records from package descriptions [1].
I attached a patch, which excludes opening braces from the internals of
a template slot. This makes it so that only the inner-most template
pairs are matched and the resulting SEX compiles correctly.
Cheers
[1] https://lists.gnu.org/archive/html/guix-devel/2021-12/msg00070.html
0001-recfmt-Allow-curly-brace-markup-in-template.patch
Description: Text Data
- Using recfmt with curly-brace markup,
Liliana Marie Prikler <=