Re: [NTG-context] \completindex in \setuparranging

2018-03-18 Thread Pablo Rodriguez
On 03/18/2018 11:21 PM, Gerard wrote:
> Thank you Wolfgang for the solution :
> 
> context --arrange my_document.tex
> 
> Hi Pablo,
> 
> I sent my email too fast (using message without changing the subject
> !!!), I will be more vigilant next time with a new message !

Hi Gérard,

it was good to know that there is an --arrange option for context. (I
must confess I didn’t know that).

BTW, you need to compose a blank new message to the mailing list to
start a new thread.

If you only reply to another message replacing its subject with another
one, the thread the message belongs to is the old one.

Just in case it helps,

Pablo


> Le 18/03/2018 à 20:32, Wolfgang Schuster a écrit :
>>
>>> survoje 
>>> 18. März 2018 um 19:37
>>>
>>> Bonjour,
>>>
>>> \completeindex (or \placeindex) works in this case :
>>>
>>> \setuppapersize[A5]%[A4,landscape]
>>>
>>> %\setuparranging[2UP]
>>>
>>>
>>> with %
>>>
>>>
>>> but does not work in this case :
>>>
>>>
>>> \setuppapersize[A5][A4,landscape]
>>>
>>> \setuparranging[2UP]
>>>
>>> I do not understand where is my mistake !
>>
>> You have to use the arrange option for the context command, e.g.
>>
>>     context --arrange my_document.tex
>>
>> Wolfgang
>>
>>
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ___
> 
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> 


-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] \completindex in \setuparranging

2018-03-18 Thread Gerard

Thank you Wolfgang for the solution :

context --arrange my_document.tex

Hi Pablo,

I sent my email too fast (using message without changing the subject 
!!!), I will be more vigilant next time with a new message !


Gérard


Le 18/03/2018 à 20:32, Wolfgang Schuster a écrit :



survoje 
18. März 2018 um 19:37

Bonjour,

\completeindex (or \placeindex) works in this case :

\setuppapersize[A5]%[A4,landscape]

%\setuparranging[2UP]


with %


but does not work in this case :


\setuppapersize[A5][A4,landscape]

\setuparranging[2UP]

I do not understand where is my mistake !


You have to use the arrange option for the context command, e.g.

    context --arrange my_document.tex

Wolfgang


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

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


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

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

Re: [NTG-context] \xmldoifelseempty

2018-03-18 Thread Wolfgang Schuster



survoje 
18. März 2018 um 19:37

Bonjour,

\completeindex (or \placeindex) works in this case :

\setuppapersize[A5]%[A4,landscape]

%\setuparranging[2UP]


with %


but does not work in this case :


\setuppapersize[A5][A4,landscape]

\setuparranging[2UP]

I do not understand where is my mistake !


You have to use the arrange option for the context command, e.g.

context --arrange my_document.tex

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

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

Re: [NTG-context] Google Search in ConTeXt Garden

2018-03-18 Thread Pablo Rodriguez
On 03/18/2018 02:55 PM, Rudolf Bahr wrote:
> On Sun, Mar 18, 2018 at 01:13:35PM +0100, Pablo Rodriguez wrote:
>> Dear list,
>>
>> when I use Google to search the wiki, such as in:
>>
>>   http://wiki.contextgarden.net/google/new2.html?q=xmldoifelseempty
>>
>> I get the following error message:
>>
>>   Unauthorized access to internal API. Please refer to
>>   https://support.google.com/customsearch/answer/4542055
>> [...]
> Yes, me too, I can confirm this.

Rudolf,

many thanks for your confirmation.

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] \xmldoifelseempty

2018-03-18 Thread Pablo Rodriguez
On 03/18/2018 07:37 PM, survoje wrote:
> Bonjour,
> 
> \completeindex (or \placeindex) works in this case :
> 
> \setuppapersize[A5]%[A4,landscape]
> %\setuparranging[2UP]
> 
> with %
> 
> but does not work in this case :
> 
> \setuppapersize[A5][A4,landscape]
> \setuparranging[2UP]
> 
> I do not understand where is my mistake !

Hi Gérard,

please, start an new thread if you have a new question to the list.
Don’t “hijack” other people’s threads.

It seems that registers don’t work with imposition. I don’t know whether
this might be a bug.

A workaround for your issue would be:

\setuppapersize[A5][A4, landscape]
\setuparranging[2UP]
\setuplayout
  [backspace=0pt,
topspace=0pt,
   width=middle,
  height=middle,
location=middle,
  header=0pt,
  footer=0pt]
\setupinteraction[state=start]
\setupinteractionscreen[option={landscape}]
\starttext
\startbuffer[real-document]
\setuppapersize[A5]%% this might be removed
\starttext
a\index{b}
b\index{c}
c\index{d}
\placeindex
\stoptext
\stopbuffer
\typesetbuffer[real-document]
\stoptext

I hope it helps,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] \xmldoifelseempty

2018-03-18 Thread survoje

Bonjour,

\completeindex (or \placeindex) works in this case :

\setuppapersize[A5]%[A4,landscape]

%\setuparranging[2UP]


with %


but does not work in this case :


\setuppapersize[A5][A4,landscape]

\setuparranging[2UP]

I do not understand where is my mistake !

Thank you for your help !

Gérard


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

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

Re: [NTG-context] Google Search in ConTeXt Garden

2018-03-18 Thread Rudolf Bahr
On Sun, Mar 18, 2018 at 01:13:35PM +0100, Pablo Rodriguez wrote:
> Dear list,
> 
> when I use Google to search the wiki, such as in:
> 
>   http://wiki.contextgarden.net/google/new2.html?q=xmldoifelseempty
> 
> I get the following error message:
> 
>   Unauthorized access to internal API. Please refer to
>   https://support.google.com/customsearch/answer/4542055
> 
> Can anyone confirm this?
> 
> Many thanks for your help,
> 
> Pablo
> 
> -- 
> http://www.ousia.tk


Yes, me too, I can confirm this.

Rudolf

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

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

[NTG-context] \xmldoifelseempty

2018-03-18 Thread Pablo Rodriguez
Dear list,

I have the following sample:

  \startbuffer[demo]
  

  
\setupexternalfigures[location=default]
\starttext
\startTEXpage[offset=1ex]
Full–width:

\externalfigure[cow]
\stopTEXpage
\stoptext
  



\setupexternalfigures[location=default]
\starttext
\startTEXpage[offset=1ex]
Half–width:

\externalfigure[cow]
\stopTEXpage
\stoptext
  

  
  \stopbuffer

  \startxmlsetups xml:initialize
 \xmlsetsetup{#1}{doc}{xml:*}
 \xmlsetsetup{\xmldocument}
{pre[contains(@class,'typeset')]/code}
{xml:pre:code}
  \stopxmlsetups

  \xmlregistersetup{xml:initialize}

  \startxmlsetups xml:doc
 \xmlflush{#1}
  \stopxmlsetups

  \startxmlsetups xml:pre:code
\xmlinfo{#1}
\xmltobuffertextonly{#1}{.}{whereever}
\xmldoifelseempty{#1}{../pre[contains(@class,'fullwidth')]}

{\startalign[center]\dontleavehmode\typesetbuffer[whereever][width=.5\textwidth]\stopalign}

{\startalign[center]\dontleavehmode\typesetbuffer[whereever][width=\textwidth]\stopalign}
  \stopxmlsetups

  \starttext
 \xmlprocessbuffer{main}{demo}{}
  \stoptext

How can I get in xml:pre:code that the presence or absence of
{../pre[contains(@class,'fullwidth')]} may trigger a conditional?

From what I understand from xml-mkiv.pdf, \xmldoifelseempty would be the
right command, but I cannot make it work.

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Google Search in ConTeXt Garden

2018-03-18 Thread Pablo Rodriguez
Dear list,

when I use Google to search the wiki, such as in:

  http://wiki.contextgarden.net/google/new2.html?q=xmldoifelseempty

I get the following error message:

  Unauthorized access to internal API. Please refer to
  https://support.google.com/customsearch/answer/4542055

Can anyone confirm this?

Many thanks for your help,

Pablo

-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] current

2018-03-18 Thread kaddour kardio
Good news!

On Sat, Mar 17, 2018 at 10:03 AM, Hans Hagen  wrote:

> Hi,
>
> As the tex live code freezing is near we made a "current" (luigi does the
> checking in tex live). As far as we can see it works ok with luatex 1.07
> (the context garden will have 1.08 in a while but that will influence only
> some low level context, more convenenience stuff).
>
> Hans
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> 
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___




-- 
Dr YAHYAOUI Mohamed Kaddour, cardiologue -- Clinique KARDIA.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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