[NTG-context] Curriculum example not working anymore (repost)

2023-02-22 Thread Jan-Erik Hägglöf via ntg-context
Dear List!I discovered a flaw when I updated my personal cv built with inspiration from the wiki examplehttps://wiki.contextgarden.net/Curriculum_VitaeThe margin text dissappear so it needs to be updated and modified in some way.I’m sending the output and files from wiki exampleMy apologize for multiple posts in same issue due to size limit problems.Thanks in advanceJan-Erik

cv.log
Description: Binary data


cv.pdf
Description: Adobe PDF document


cv.tex
Description: Binary data


m-resume.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Curriculum example on wiki not working anymore

2023-02-22 Thread Jan-Erik Hägglöf via ntg-context
Dear List!

I discovered a flaw when I updated my personal cv built with inspiration from 
the wiki example

https://wiki.contextgarden.net/Curriculum_Vitae 


The margin text dissappear so it needs to be updated and modified in some way.

Thanks in advance

Jan-Erik___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] \startnarrow seems to have no effect for tabulate

2023-02-22 Thread Denis Maier via ntg-context
Hi,

I need to have a table set with tabulate centered and a bit narrower. But it 
seems that \startnarrow has no effect on the tabulate. Am I missing something ? 
Is there a better way to achieve the same thing?

Best,
Denis

\starttext

\showframe
\startplacefigure[location=force,number=no]
\startnarrow[left=5cm,right=5cm]
\starttabulate
[|p|p|]
\NC Das ist ein Text
\NC Das ist noch ein Text
\NC\NR
\NC Das ist ein Text
\NC Das ist noch ein Text
\NC\NR
\NC Das ist ein Text
\NC Das ist noch ein Text
\NC\NR
\stoptabulate
\stopnarrow
\stopplacefigure


\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] \xmlmap errors when returning key-value

2023-02-22 Thread Denis Maier via ntg-context
I maybe should have mentioned the error message I'm getting:

error in line 9, namespace '1CB>:', key 'align=lefttoright,'

Maybe that's helpful for tracking this down...

Best,
Denis

> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Denis Maier
> via ntg-context
> Gesendet: Montag, 20. Februar 2023 15:32
> An: ntg-context@ntg.nl
> Cc: Maier, Denis Christian (UB) 
> Betreff: [NTG-context] \xmlmap errors when returning key-value
> 
> > -Ursprüngliche Nachricht-
> > Von: ntg-context  Im Auftrag von Hans
> > Hagen via ntg-context
> > Gesendet: Donnerstag, 16. Februar 2023 23:45
> > An: Denis Maier via ntg-context 
> > Cc: Hans Hagen 
> > Betreff: Re: [NTG-context] Unexpected results with \xmlpos
> >
> > On 2/16/2023 10:16 AM, Denis Maier via ntg-context wrote:
> > > Hi,
> > >
> > > I’m getting unexpected results for \xmlpos
> > >
> > > With the example below, I was expecting to get the following positions:
> > >
> > > 1 2 3 4
> > >
> > > However the result is: 2 4 6 8, i.e. each time it’s exactly the double.
> > >
> > > What am I missing?
> >
> > that there are spaces between elements .. you can try:
> >
> > \xmlmatch {#1}
> >
> > instead
> >
> > Hans
> 
> Thanks, that does the trick.
> 
> However, now I get an error when I try to return a key-value setting via
> xmlmap, see below. Any hints why this does not work
> 
> \xmlmapvalue{colgroupalign}{dir: rtl}{align=righttoleft}
> \xmlmapvalue{colgroupalign}{dir: ltr}{align=lefttoright}
> 
> as opposed to:
> 
> \xmlmapvalue{colgroupalignvar}{dir: rtl}{righttoleft}
> \xmlmapvalue{colgroupalignvar}{dir: ltr}{lefttoright}
> 
> ?
> 
> Best,
> Denis
> 
> \startbuffer[test]
> 
> 
> 
>   
>  
> 
> 
> 
> 
>  
>  
> 
>asdf
>bsdf
>csdf
>dsdf
> 
>  
>  
> 
>a
>b
>c
>d
> 
>  
>   
> 
> 
> \stopbuffer
> 
> \startxmlsetups xml:test
> \xmlsetsetup{\xmldocument}{document}{xml:*}
> \xmlsetsetup{#1}{table-wrap}{xml:table-wrap}
> \xmlsetsetup{#1}{table}{xml:table}
> \stopxmlsetups
> 
> \xmlregistersetup{xml:test}
> 
> \xmlmapvalue{colgroupalign}{dir: rtl}{align=righttoleft}
> \xmlmapvalue{colgroupalign}{dir: ltr}{align=lefttoright}
> 
> \xmlmapvalue{colgroupalignvar}{dir: rtl}{righttoleft}
> \xmlmapvalue{colgroupalignvar}{dir: ltr}{lefttoright}
> 
> \startxmlsetups xml:table:colgroup
>   \xmlfilter {#1} {/col/command(xml:table:colgroup:col)} % gives errors
>   %\xmlfilter {#1} {/col/command(xml:table:colgroup:colvar)} % works
> \stopxmlsetups
> 
> \startxmlsetups xml:table:colgroup:colvar
>   \setupTABLE[c][\xmlmatch
> {#1}][align=\xmlvalue{colgroupalignvar}{\xmlatt{#1}{style}}{lefttoright}]
> \stopxmlsetups
> 
> \startxmlsetups xml:table:colgroup:col
>   \setupTABLE[c][\xmlmatch
> {#1}][\xmlvalue{colgroupalign}{\xmlatt{#1}{style}}{align=lefttoright}]
> \stopxmlsetups
> 
> \startxmlsetups xml:document
>   \xmlflush{#1}
> \stopxmlsetups
> 
> \startxmlsetups xml:table-wrap
>   \startplacetable
>   \xmlflush{#1}
> \stopplacetable
> \stopxmlsetups
> 
> \startxmlsetups xml:table
>   \xmlfilter {#1} {/colgroup/command(xml:table:colgroup)}
>   \bTABLE
>   \xmlfilter{#1}{/thead/command(xml:table:thead)}
>   \xmlfilter{#1}{/tbody/command(xml:table:tbody)}
>   \eTABLE
> \stopxmlsetups
> 
> \startxmlsetups xml:table:thead
>   \bTABLEhead
>   \xmlfilter{#1}{/tr/command(xml:table:thead:tr)}
>   \eTABLEhead
> \stopxmlsetups
> 
> \startxmlsetups xml:table:thead:tr
>   \bTR
>   \xmlfilter{#1}{/th/command(xml:table:thead:tr:th)}
>   \eTR
> \stopxmlsetups
> 
> \startxmlsetups xml:table:thead:tr:th
>   \bTH
>   \xmlflush{#1}
>   \eTH
> \stopxmlsetups
> 
> \startxmlsetups xml:table:tbody
> \bTABLEbody\xmlfilter{#1}{/tr/command(xml:table:tbody:tr)}\eTABLEbody
> \stopxmlsetups
> 
> \startxmlsetups xml:table:tbody:tr
> \bTR\xmlfilter{#1}{/td/command(xml:table:tbody:tr:td)}\eTR
> \stopxmlsetups
> 
> \startxmlsetups xml:table:tbody:tr:td
> \bTC \xmlflush{#1} \eTC
> \stopxmlsetups
> 
> 
> \starttext
>   \xmlprocessbuffer{test}{test}{}
> \stoptext
> 
> __
> _
> If your question is of interest to others as well, please add an entry to the
> Wiki!
> 
> maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-
> context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> __
> _

Re: [NTG-context] horizontal space in CJK document

2023-02-22 Thread 李延瑞
Sylvain Hubert via ntg-context  于2023年2月21日周二 03:43写道:
>
> Dear list,
>
> Does anyone know how to insert a horizontal space in a CJK document with 
> \setscript[hanzi]?
>
> \setscript[hanzi]
> \definefontfamily[mainface][rm][notoserifcjkhk][]
> \setupbodyfont[mainface]
> \starttext
> 口口\hspace[big]口口   % with \setscript[hanzi], the \hspace is ignored
>
> \dorecurse{100}{口}  % without \setscript[hanzi], the line is not properly 
> wrapped
> \stoptext
>
> Many thanks,
> Sylvain

测\kern 1em 试。

-- 
Best regards,

Li Yanrui
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___