[NTG-context] Register customization for backmatter page numbers

2015-07-31 Thread Rik

List,

I have a book with frontmatter, bodymatter, and backmatter. The 
frontmatter is pagenumbered with lc roman, and the bodymatter and 
backmatter are numbered, all by block.


The backmatter contain a glossary, pagenotes, bibliography, and an 
index. In addition to the frontmatter and the bodymatter, both the 
glossary and the pagenotes contain items that are indexed.


I need to distinguish pagenumbers that appear in the index so that the 
reader can identify where in the book the page is located. For the 
frontmatter, that is not a problem. For items that appear in the 
bodymatter or backmatter, however, page numbers are not unique.


One method that has been suggested is to prefix the pagenumber displayed 
in the index with a mark to indicate that the page is in the backmatter, 
or to italicize it, or to use an alternate font. I have looked at the 
defineconversionset and defineprocessor documentation and find no way to 
mark index entries appropriately.


Can anyone suggest a way to do this, or some other method? Perhaps a 
pagecommand that compares the register item real page number to the 
highest real page number of the body? I would prefer a solution that 
does not require changing the register commands (\index) in the text.


Continuous numbering across the frontmatter, bodymatter, and backmatter 
is not wanted, although as a last resort I might be able to argue for 
continuous numbering in the bodymatter and backmatter.


--
Rik Kabel


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-31 Thread Hans Hagen

On 7/31/2015 1:07 PM, tala...@fastmail.fm wrote:

Excellent. This seems to solve the problem completely. I even tried mixing 
Arabic and English text in the RTL footnotes, switched on the 
“alternative=serried” option, and defined my own custom note streams — 
everything worked very well. The only thing that didn’t work is to mix, in the 
same stream, footnotes that are LTR with footnotes that are RTL. But I did not 
expect this to work, and I cannot think of a real world scenario in which such 
footnotes would/should be mixed in the same stream.

Attached are both the .tex file and the PDF with a perfectly working example. 
Many thanks to you both, Wolfgang and Hans. Hans, I assume we’ll know if the 
patch eventually makes it into a beta?


yes but no upload today (i've also added the example to the test suite)

Hans

(you can put the patch in cont-new.mkiv in the meantime)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Small problems with my columns

2015-07-31 Thread Fabrice

Hi Wolfgang and Pablo,
Thank you for your suggestions, it works perfectly.
Fabrice
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-31 Thread Idris Samawi Hamid ادريس سماوي حامد

Talal, Wolfgang, Hans,
Salaam.

This is beautiful progress!

Nice Arabic editing font in the sample too -)

Best wishes
Idris

On Fri, 31 Jul 2015 05:07:45 -0600, tala...@fastmail.fm  
tala...@fastmail.fm wrote:


Excellent. This seems to solve the problem completely. I even tried  
mixing Arabic and English text in the RTL footnotes, switched on the  
“alternative=serried” option, and defined my own custom note streams —  
everything worked very well. The only thing that didn’t work is to mix,  
in the same stream, footnotes that are LTR with footnotes that are RTL.  
But I did not expect this to work, and I cannot think of a real world  
scenario in which such footnotes would/should be mixed in the same  
stream.


Attached are both the .tex file and the PDF with a perfectly working  
example. Many thanks to you both, Wolfgang and Hans. Hans, I assume  
we’ll know if the patch eventually makes it into a beta?


Best,
Talal




--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-31 Thread Hans Hagen

On 7/31/2015 1:51 AM, tala...@fastmail.fm wrote:

You’re right. The patch gets us half way to the desired behaviour
(namely, correct ordering of the footnotes within the paragraph). But it
seems that the ‘paragraph’ option doesn’t play well with RTL generally,
resulting in the second note disappearing when using
\startsetups[note:footnote] \setupdirections[bidi=global] \stopsetups.


can you try

\unprotect

\unexpanded\def\leftorrightvbox{\ifconditional\displaylefttoright\expandafter\lefttorightvbox\else\expandafter\righttoleftvbox\fi}

\def\strc_notes_flush_global
  {\begingroup
   \useinterlinespaceparameter\noteparameter
   \doifelse{\noteparameter\c!paragraph}\v!yes
 {\leftorrightvbox
{\starthboxestohbox

\iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber
 \stophboxestohbox}}

{\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}%
   \endgroup}

\protect



On 30 Jul 2015, at 20:04, Wolfgang Schuster
schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com wrote:


tala...@fastmail.fm mailto:tala...@fastmail.fm
30. Juli 2015 20:37
I’ve come across a snag. When using parentheses in Arabic footnotes, they are 
flipped. In any earlier email 
(http://article.gmane.org/gmane.comp.tex.context/91501/match=setupdirections+bidi+global),
 you had advised adding the following:


\startsetups[note:footnote]
   \setupdirections[bidi=global]
\stopsetups

\setupnote[footnote][setups=note:footnote] % align=righttoleft

However, if one does this with your patch, the second footnote gets dropped. 
Here is the MWE:


The second note disappears even without the patch, the problem this
the paragraph option for the notes.

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

maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-31 Thread tala...@fastmail.fm
Excellent. This seems to solve the problem completely. I even tried mixing 
Arabic and English text in the RTL footnotes, switched on the 
“alternative=serried” option, and defined my own custom note streams — 
everything worked very well. The only thing that didn’t work is to mix, in the 
same stream, footnotes that are LTR with footnotes that are RTL. But I did not 
expect this to work, and I cannot think of a real world scenario in which such 
footnotes would/should be mixed in the same stream.

Attached are both the .tex file and the PDF with a perfectly working example. 
Many thanks to you both, Wolfgang and Hans. Hans, I assume we’ll know if the 
patch eventually makes it into a beta? 

Best,
Talal



RTL-paragraphed-footnotes.tex
Description: Binary data


RTL-paragraphed-footnotes.pdf
Description: Adobe PDF document


 On 31 Jul 2015, at 09:39, Hans Hagen pra...@wxs.nl wrote:
 
 On 7/31/2015 1:51 AM, tala...@fastmail.fm wrote:
 You’re right. The patch gets us half way to the desired behaviour
 (namely, correct ordering of the footnotes within the paragraph). But it
 seems that the ‘paragraph’ option doesn’t play well with RTL generally,
 resulting in the second note disappearing when using
 \startsetups[note:footnote] \setupdirections[bidi=global] \stopsetups.
 
 can you try
 
 \unprotect
 
 \unexpanded\def\leftorrightvbox{\ifconditional\displaylefttoright\expandafter\lefttorightvbox\else\expandafter\righttoleftvbox\fi}
 
 \def\strc_notes_flush_global
  {\begingroup
   \useinterlinespaceparameter\noteparameter
   \doifelse{\noteparameter\c!paragraph}\v!yes
 {\leftorrightvbox
{\starthboxestohbox
 \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber
 \stophboxestohbox}}
 {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}%
   \endgroup}
 
 \protect
 
 
 On 30 Jul 2015, at 20:04, Wolfgang Schuster
 schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com wrote:
 
 tala...@fastmail.fm mailto:tala...@fastmail.fm
 30. Juli 2015 20:37
 I’ve come across a snag. When using parentheses in Arabic footnotes, they 
 are flipped. In any earlier email 
 (http://article.gmane.org/gmane.comp.tex.context/91501/match=setupdirections+bidi+global),
  you had advised adding the following:
 
 \startsetups[note:footnote]
   \setupdirections[bidi=global]
 \stopsetups
 
 \setupnote[footnote][setups=note:footnote] % align=righttoleft
 However, if one does this with your patch, the second footnote gets 
 dropped. Here is the MWE:
 
 The second note disappears even without the patch, the problem this
 the paragraph option for the notes.
 
 Wolfgang
 ___
 If your question is of interest to others as well, please add an entry
 to the Wiki!
 
 maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 
 
 
 -- 
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net