\completeindex and \setuparranging
![](https://secure.gravatar.com/avatar/f003fdee89505bb3c0d77cd264ef3ba5.jpg?s=120&d=mm&r=g)
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 mailto:survoje@free.fr 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
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Gerard mailto:survoje@free.fr 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
![](https://secure.gravatar.com/avatar/f003fdee89505bb3c0d77cd264ef3ba5.jpg?s=120&d=mm&r=g)
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 ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
survoje mailto:survoje@free.fr 19. März 2018 um 21:26
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
Your index doesn’t work because you have no paragraphs in your document. When you add \dontleavehmode before each \externalfigure the entries are correct. \setupwhitespace[line] \defineexternalfigure[score][width=\textwidth] \starttext \dontleavehmode\externalfigure[Alaude][score]\index{Alaude} \dontleavehmode\externalfigure[Amazing][score]\index{Amazing} \dontleavehmode\externalfigure[Valse_5T][score]\index{Valse a 5 temps} \dontleavehmode\externalfigure[Valse8Temps][score]\index{Valse à 8 temps} \dontleavehmode\externalfigure[ValseEcossaise][score]\index{Valse écossaise} \page \completeindex \stoptext Wolfgang
![](https://secure.gravatar.com/avatar/f003fdee89505bb3c0d77cd264ef3ba5.jpg?s=120&d=mm&r=g)
Bonjour Wolfgang ! Great ! it's perfect ! I was sad to give up my idea (music booklet in A5 format...). Too happy 8-) Thank you for you precious help. I have a lot to learn with ConTeXt ! Gérard Le 20/03/2018 à 10:53, Wolfgang Schuster a écrit :
Your index doesn’t work because you have no paragraphs in your document. When you add \dontleavehmode before each \externalfigure the entries are correct.
participants (3)
-
Gerard
-
survoje
-
Wolfgang Schuster