29 May
2020
29 May
'20
9:20 p.m.
Am 29.05.2020 um 22:18 schrieb Aditya Mahajan
: On Fri, 29 May 2020, Henning Hraban Ramm wrote:
In a similar setup I wanted to start every chapter with image and short vita the author and came up with the following (of course not without help from our wizards):
\doifelse{\structureuservariable{image}}{}{% if image empty }{% ... } \doifnot{\structureuservariable{vita}}{}{% if vita ... }% }% }%
You can use `\doifsomething{\structureuservariable{image}}` etc which is slightly more readable than \doifelse{...}\empty{}{} or \doifnot{...}\empty{}.
I tried several \doifs and this was the one that worked. Can’t remember the details, it’s been a while. HR