[NTG-context] (solved) Re: issue with \xmlattribute{#1}{.}{id}

2018-03-19 Thread Pablo Rodriguez
Sorry for the noise. My approach was totally wrong.

Pablo


On 03/19/2018 06:28 PM, Pablo Rodriguez wrote:
> Dear list,
> 
> in an environment to parse an XML document, I use
> \reference[\xmlattribute{#1}{.}{id}].
> 
> Since it doesn’t do what I need, I checked the pure command
> "\xmlattribute{#1}{.}{id}".
> 
> From id="spieker-weiss" and id="computer-mind", I get
> "spieker-weissmain::4103" and "computers-mindmain::4384".
> 
> What am I missing there or how could I get pure identifiers with no
> "main::" suffix?
> 
> 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] \completeindex and \setuparranging

2018-03-19 Thread survoje

Bonsoir Wolfgang !

I tried according to your method (without arrangement and extra run) 
without result, I tried others possibilities without result. The index 
page is never ok with \setuparranging... Surely I did not understand.


I wanted to make a booklet of musical scores in A5 (24 pages), just with 
successive png and index for each score : 


\starttext
\externalfigure[Alaude][width=\textwidth]\index{Alaude}
\blank
\externalfigure[Amazing][width=\textwidth]\index{Amazing}


\externalfigure[Valse_5T][width=\textwidth]\index{Valse a 5 temps}
\blank
\externalfigure[Valse8Temps][width=\textwidth]\index{Valse à 8 temps}

\externalfigure[ValseEcossaise][width=\textwidth]\index{Valse écossaise}
\page
\setupregister[index]
   [n=2,pagestyle=bold]

\completeindex
\stoptext

- Never mind ! I will do it in A4.

Thank you for your attention !

Gérard with help de "google translate" 8-)


Le 19/03/2018 à 12:00, Wolfgang Schuster a écrit :


Try to produce a document without arrangement and make an extra
run afterwards where you arrange the pages. You can use modes for this.

\startnotmode[arrange]
\setuppapersize[A5][A5]
\stopnotmode

\startmode[arrange]
\setuppapersize[A5][A4,landscape]
\setuparranging[2UP]
\stopmode


Process your document first with

    context my_document.tex

and make an extra run at the end with

    context --once --mode=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
___

[NTG-context] issue with \xmlattribute{#1}{.}{id}

2018-03-19 Thread Pablo Rodriguez
Dear list,

in an environment to parse an XML document, I use
\reference[\xmlattribute{#1}{.}{id}].

Since it doesn’t do what I need, I checked the pure command
"\xmlattribute{#1}{.}{id}".

From id="spieker-weiss" and id="computer-mind", I get
"spieker-weissmain::4103" and "computers-mindmain::4384".

What am I missing there or how could I get pure identifiers with no
"main::" suffix?

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] Title example from the Wiki is broken

2018-03-19 Thread John Grasty
Hello,

I trying to use the "In ConTeXt: A more advanced solution" example from the 
wiki [http://wiki.contextgarden.net/Document_Titles] to learn how modules and 
the like work in ConTeXt. I saved the module as p-titlepage.mkvi, because I 
could not get my module to load instead of the included third party one.

So my questions are:

1. Is there a way to load my module with the name title ahead of the supplied 
one? I saved it to /texmf-project/tex/context/shared and 
/texmf-local

2. Any idea what the error is in the wiki (or my use of it)?

Thanks,
John

Here was the error:

tex error   > tex error on line 46 in file 
/Users/jgrasty/context/tex/texmf-local/p-titlepage.mkvi: ! Argument of \17>>2 
has an extra }

 
\par 
 
}
\showassignerror ...\showmessage \m!check 1{#1,#2}
  \waitonfatalerror 
\syst_helpers_process_comma_item ...mpty \_e_o_p_ 
  \doubleexpandafter \syst_h...
\syst_helpers_get_parameters ...ss_comma_item #1,]
  ,\_e_o_p_ 
 ...l \minusone \else \dodosetuptitle [\v!content ]
  [\c!title ]
...
l.46\c!color=]


36\blank[2*\v!medium]
37\doattributes{\??dt\c!date}\c!style\c!color\@@dtcontentdate
38\blank[3*\v!medium]
39\stopalignment}
40 
41 
42 
43 \setuptitle
44   [\c!title]
45   [\c!style=\tfd,
46 >> \c!color=]





___
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] \completeindex and \setuparranging

2018-03-19 Thread Wolfgang Schuster




Gerard 
19. März 2018 um 11:22
Bonjour, Hi !

Pablo, ok for the remark ! I leave the previous subject and I open 
mine because it's not solved



Le 18/03/2018 à 23:21, Gerard a écrit


Thank you Wolfgang for the solution :

context --arrange my_document.tex


I responded too quickly. Look at the two pictures attached :

- \placeindex does not mark the pages
- \completeindex only marks page 19 (the last page)


Your example doesn’t help because it doesn’t show the problem.


That's the context :

---

\setuppapersize[A5][A4,landscape]

\setuparranging[2UP]


\setupregister[index][n=2,
pagestyle=bold]


\starttext

\externalfigure[Alaude][width=\textwidth]\index{Alaude}
\blank
\externalfigure[Andro][width=\textwidth]\index{Andro}

\page
\completeindex
\stoptext
-

and running by "context --arrange my_document.tex"

It's ok with :
-

\setuppapersize[A5]%[A4,landscape]

%\setuparranging[2UP]

-



Try to produce a document without arrangement and make an extra
run afterwards where you arrange the pages. You can use modes for this.

\startnotmode[arrange]
\setuppapersize[A5][A5]
\stopnotmode

\startmode[arrange]
\setuppapersize[A5][A4,landscape]
\setuparranging[2UP]
\stopmode


Process your document first with

context my_document.tex

and make an extra run at the end with

context --once --mode=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
___

[NTG-context] \completeindex and \setuparranging

2018-03-19 Thread Gerard

Bonjour, Hi !

Pablo, ok for the remark ! I leave the previous subject and I open mine 
because it's not solved



Le 18/03/2018 à 23:21, Gerard a écrit


Thank you Wolfgang for the solution :

context --arrange my_document.tex


I responded too quickly. Look at the two pictures attached :

- \placeindex does not mark the pages
- \completeindex only marks page 19 (the last page)


That's the context :

---

\setuppapersize[A5][A4,landscape]

\setuparranging[2UP]


\setupregister[index][n=2,
    pagestyle=bold]


\starttext

\externalfigure[Alaude][width=\textwidth]\index{Alaude}
\blank
\externalfigure[Andro][width=\textwidth]\index{Andro}

\page
\completeindex
\stoptext
-

and running by "context --arrange my_document.tex"

It's ok with :
-

\setuppapersize[A5]%[A4,landscape]

%\setuparranging[2UP]

-


Thanks for the help.


Gérard... and thanks to "google translate" :)




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
___

[NTG-context] Combine overlapping margin notes with separator

2018-03-19 Thread Benjamin Epstein
Hello!

I am typesetting a text with line numbers in the margin and am interested
in combining them if two should end up on the same line, dividing them with
a comma or something like that.  With the code below, the first line of the
output contains an overlapping "1" and "2" in the margin.  I would like the
"1" and "2" not to be overlapping, nor to be stacked like
\setupmargindata[stack=yes] would get me, but rather to automatically
combine those that would overlap to get something like "1,2".

Current output: https://i.imgur.com/RaTQ1ZO.png
Desired output: https://i.imgur.com/oWKigTX.png

Is there a reliable way to implement this?  Any help would be appreciated!

***

\starttext

\inmargin{1}Now we are engaged in a great civil war.
\inmargin{2}We are testing whether that nation or any nation so conceived
and so dedicated, can long endure.
\inmargin{3}We are met on a great battle-field of that war.

\stoptext

***

Thank you,
Benjamin
___
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
___