Hello Hans,
-- Původní e-mail -- {
Od: Hans Hagen
as you updated, it's just:
\startluacode
local defined = tokens.defined
for _, v in ipairs{ "MyMacro", "MyMacWithPars", "Undefined", "DoNothing",
"NonExisting" } do
print(string.format("\letterpercent-12s", v
On 6/18/2020 10:27 AM, Lukas/ConTeXt wrote:
Hello,
I'm using Hans' macro suggested some time before.
I've just updated Ctx MkIV and my sample code:
\starttext
\def\MyMacro{Ahoj}
\def\MyMacWithPars#1#2{Something}
\def\Undefined{}
\let\Undefined\undefined
\def\DoNothing{}
On 6/17/20 11:26 PM, Henning Hraban Ramm wrote:
> [...]
> Pablo, do I understand right that you’re converting XML and the
> comment comes last in that structure, but you need it first?> I.e.
> the real question is how to process the XML structure in a different
> order, right?
Hraban,
yes, this is
Many thanks Wolfgang
I tried using force but that caused a problem with aligning to the
grid, not included in my original example, but included below.
I think I have seen \mbox used in this way in Latex, so was trying to
find a quick solution.
James
\setuplayout[grid=yes]
\showgrid
\setuphead
On 6/18/2020 3:24 PM, Gerben Wierda wrote:
Given the following XML snippet
OmaFoo
James Withers schrieb am 18.06.2020 um 17:35:
Hello list
I have been trying to find a solution to how to insert blank lines
before a chapter heading at the start of a page. In the following
example the \blank[4*big] is ignored. The solution I've found is to
add an empty box using \mbox{} before
On 6/17/20 10:47 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 16.06.2020 um 22:17:
>> Dear list,
>>
>> I have the following sample:
>>
>>\startsetups[tinytiny]
>> \setupwhitespace[-2em]
>> \setupbodyfont[0.01pt]
>> \setupinterlinespace[1sp]
>>\stopsetups
This wa
Hello list
I have been trying to find a solution to how to insert blank lines
before a chapter heading at the start of a page. In the following
example the \blank[4*big] is ignored. The solution I've found is to
add an empty box using \mbox{} before the \blank command.
Is this the right way to do
Given the following XML snippet
OmaFoo
Hello,
I need to check within Lua.
My sample cases are very minimalistic - I'm working on more complicated task
actually, where check-for-control-sequence-existence need to be performed
run-time within Lua scope.
Best,
Lukas
-- Původní e-mail --
Od: Hans van der Me
Why can you not simply use one of the doifundefined macro's? Something for
example:
\doifundefined{ExitStatus}{\gdef\ExitStatus{0}} % default to ok as in UNIX
dr. Hans van der Meer
> On 18 Jun 2020, at 10:27, Lukas/ConTeXt wrote:
>
> Hello,
> I'm using Hans' macro suggested some time before.
Hello,
I'm using Hans' macro suggested some time before.
I've just updated Ctx MkIV and my sample code:
\starttext
\def\MyMacro{Ahoj}
\def\MyMacWithPars#1#2{Something}
\def\Undefined{}
\let\Undefined\undefined
\def\DoNothing{}
\let\DoNothing\donothing
\startluacode
if CO
12 matches
Mail list logo