[dev-context] x-set-11.mkiv:

2016-03-14 Thread Wolfgang Schuster

Hi Hans,

the "=>" in the apply tag has to be lowered to avoid a collision with 
the index number.


\unexpanded\def\showSETUPapply#1%
{\showSETUP{#1}
-   {[..=>..]}
-   {[..,..=>..,...]}}
+   {[..\lower.25ex\hbox{=>}..]}
+   {[..,..\lower.25ex\hbox{=>}..,...]}}

Wolfgang
___
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context


[dev-context] x-set-11.mkiv

2016-02-03 Thread Wolfgang Schuster

Hi Hans,

can you add the following two delimiters types (none and parentheses) to 
the keywords tag.


\xmlmapvalue {setups:keyword} {braces}  {\showSETUPkeywordbraces}
\xmlmapvalue {setups:keyword} {brackets}{\showSETUPkeywordbrackets}
+\xmlmapvalue {setups:keyword} {parentheses} {\showSETUPkeywordparentheses}
+\xmlmapvalue {setups:keyword} {none}{\showSETUPkeywordnone}

\starttexdefinition unexpanded showSETUPkeywordbraces #1
\ifcase\kindofsetup
\showSETUPline{\letterleftbrace...\letterrightbrace}
\else
\showSETUP{#1}
{\letterleftbrace...\letterrightbrace}
{\letterleftbrace...,...\letterrightbrace}
\fi
\stoptexdefinition

\starttexdefinition unexpanded showSETUPkeywordbrackets #1
\ifcase\kindofsetup
\showSETUPline{[...]}
\else
\showSETUP{#1}
{[...]}
{[...,...]}
\fi
\stoptexdefinition

+\starttexdefinition unexpanded showSETUPkeywordparentheses #1
+\ifcase\kindofsetup
+\showSETUPline{(...)}
+\else
+\showSETUP{#1}
+{(...)}
+{(...,...)}
+\fi
+\stoptexdefinition

+\starttexdefinition unexpanded showSETUPkeywordnone #1
+\ifcase\kindofsetup
+\showSETUPline{...}
+\else
+\showSETUP{#1}
+{...}
+{.. ... ..}
+\fi
+\stoptexdefinition


Wolfgang
___
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] x-set-11.mkiv

2016-02-03 Thread Hans Hagen

On 2/3/2016 4:34 PM, Wolfgang Schuster wrote:

Hi Hans,

can you add the following two delimiters types (none and parentheses) to
the keywords tag.


ok

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] x-set-11.mkiv

2016-01-31 Thread Hans Hagen

On 1/30/2016 12:45 PM, Wolfgang Schuster wrote:

Hi Hans,

the module still misses the {..,.=.,..} assignment type which is needed
for \useMPgraphic, e.g.

\useMPgraphic{...}{..,.=.,..}


You have to add also xml setups for the new argument type, see attachment.


The following lines have to be fixed as well, e.g. “cd:oneargument”
displays \...\#1 (notice the extra backslash)

\c!setup!definereserved {cd:noargument} {\c!setup!command! {\texescape}}
\c!setup!definereserved {cd:oneargument} {\c!setup!command!
{\texescape\texthash1}}
\c!setup!definereserved {cd:twoarguments} {\c!setup!command!
{\texescape\texthash1\texthash2}}
\c!setup!definereserved {cd:threearguments} {\c!setup!command!
{\texescape\texthash1\texthash2\texthash3}}

and I have no idea what these are for

\c!setup!definereserved {cd:noargumentwrapped} {\c!setup!command!
{\texescape...}}
\c!setup!definereserved {cd:oneargumentwrapped} {\c!setup!command!
{\texescape...\texthash1}}
\c!setup!definereserved {cd:twoargumentswrapped} {\c!setup!command!
{\texescape...\texthash1\texthash2}}
\c!setup!definereserved {cd:threeargumentswrapped} {\c!setup!command!
{\texescape...\texthash1\texthash2\texthash3}}


cleanest without duplicating is










so i'll do that

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context


[dev-context] x-set-11.mkiv

2011-06-14 Thread Wolfgang Schuster
Hi Hans,

the \blank command is ignored when the complete list is printed with 
\placesetups
because packed mode is used, with a normal \vskip this doesn’t happen. I reduced
the skip because “.75\lineheight” looks better for commands without optional 
arguments.

\startxmlsetups xml:setups:typeset
\getvalue{\e!start setuptext}
...
\xmldoif{#1}{/arguments} {
\bgroup
\enablemode[setups-pass-two]
\doglobal\newcounter\currentSETUPargument
-   \blank[\v!line]
+   \godown[.75\lineheight]
\switchtobodyfont[small]
\ignorespaces\xmlfilter{#1}{/arguments/text()}\endgraf
\egroup
}
\getvalue{\e!stop setuptext}
\stopxmlsetups

Wolfgang

___
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context