Denis Maier

Results 446 comments of Denis Maier

Ok. A first step would be this. 1. Assign `author`, `title` etc. to variables like so: ``` \setvariables [titleblock] [ author={John Doe}, title={A very interesting article}, ] ``` 2. Define...

Will having conditionals in code included via `header-include` work? Like, will it be possible to have ``` $if(subtitle)$ \smallskip {\tfa\setupinterlinespace $subtitle$} ``` in `header-include`?

Hmm, I've tried it, but it looks like that everything included via `-H` comes through literally. I ended up with `$title$` instead of with the actual title.

That's not a big deal, as all of these tests can also be done on the ConTeXt end. But it looks like you cannot just move the definitions from a...

Yeah, a partial would be the way to go. But the idea is that users are able to override the default settings. What would be the best way to do...

> You can put variables (which the user can set) inside the partial. Yes. But my goal is this: I define a setup in the template and users can override...

You nailed it. That's exactly what I was thinking about. Basically, an option like `-H`, but it should resolve pandoc's conditionals before assembling the file to be processed.

I've asked on the list. let's see what they say.

First thought: this could make some filters much easier, e.g. search-replace operations for strings containing spaces would be possible.

In general that's a useful addition, especially when going directly to PDF. Maybe, if you convert to context sources, some might the less verbose alternative. Maybe a new command line...