Re: [NTG-context] Numbered Itemlist With Interruption

2023-04-25 Thread jbf via ntg-context
Don't worry... I've read contextgarden on lots of things and missed more 
than you've ever thought of I reckon! The answer to problems is usually 
in there somewhere, but finding it can be a bit of challenge sometimes.


Julian

On 26/4/23 13:58, Michael Urban via ntg-context wrote:



On Apr 25, 2023, at 8:30 PM, jbf via ntg-context  wrote:


\startitemize[continue]% THIS SHOULD DO WHAT YOU WANT


Wow, thanks.  I must have read that 'Enumerations' contextgarden wiki page a 
half dozen times and missed it anyway.

Mike

___
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
___

___
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] Numbered Itemlist With Interruption

2023-04-25 Thread jbf via ntg-context

\startitemize[continue]% THIS SHOULD DO WHAT YOU WANT

\item Picking up where we left off.

\item And all is well.

\stopitemize

Julian

On 26/4/23 13:21, Michael Urban via ntg-context wrote:

I am trying to have two numbered itemizations, with a paragraph in between, 
such that the second list starts where the first left off, without having to 
manually calculate the new start point.  The following does not work, and I do 
not understand why.

Mike


\starttext
\definecounter[mynumber][]
\startitemize[n]
\item The first item.
\item The second item
\item Item number \currentitemnumber{}, the last one.
\setcounter[mynumber][\currentitemnumber]
\stopitemize

The \type{\getnumber[mynumber]} value is \getnumber[mynumber].
\incrementcounter[mynumber]

And now the big finish, start at \getnumber[mynumber]:
\startitemize[n][start=\getnumber[mynumber]] % WHY DOES THIS FAIL?
\item Picking up where we left off.

\item And all is well.
\stopitemize
Done!
\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
__
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] adjustment to my local footnotes problem

2023-04-24 Thread jbf via ntg-context
Well, Hraban, you say that \directsetup makes no sense any more in LMTX, 
but in this case  (I use LMTX, not MKIV) I tried it without 
\directsetup, it did not work and furthermore I got an error. That is 
why I commented that I did not understand what \directsetup really does 
(or doesn't do as you are suggesting).


For now the immediate problem is resolved, and I am happy about that, 
but I don't understand why it works with \directsetup but not without it 
in LMTX (my version December last year)


Julian


On 24/4/23 17:33, Henning Hraban Ramm via ntg-context wrote:


Am 23.04.23 um 23:36 schrieb jbf via ntg-context:
I tried all those Hraban, unsuccessfully, but finally 'happened' upon 
a solution by trying whitespace instead in the setups. Except that I 
had read somewhere in the mailing list (Pablo I think) that I would 
need to use \directsetup. I don't actually understand why, have never 
been sure about what \directsetup does, but there's no doubt it works 
in this case! So the following has done what I needed:


I’m sorry, I didn’t test my suggestion.

In MkIV, \directsetup or \fastsetup are a bit faster than \setup. They 
can load only one setup and catch less errors. In LMTX, they don’t 
make sense any more.


Hraban
___ 

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
___ 


___
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] adjustment to my local footnotes problem

2023-04-23 Thread jbf via ntg-context
I tried all those Hraban, unsuccessfully, but finally 'happened' upon a 
solution by trying whitespace instead in the setups. Except that I had 
read somewhere in the mailing list (Pablo I think) that I would need to 
use \directsetup. I don't actually understand why, have never been sure 
about what \directsetup does, but there's no doubt it works in this 
case! So the following has done what I needed:



\startsetups[setups:footnotes]

 \setupwhitespace[.01em]

\stopsetups

\setupnote[before=\directsetup{setups:footnotes}]

Julian

On 23/4/23 20:34, Henning Hraban Ramm via ntg-context wrote:

Am 23.04.23 um 09:21 schrieb jbf via ntg-context:
I realise that I should have been talking about the space between 
local footnotes, rather than interlinespace (previous email on this 
issue), but my basic problem still stands. My efforts to influence 
the space between footnotes placed locally is to no avail so far.


I assume it is \setupnote (rather than \setupnotation, my earlier 
mistake) where I would need to somehow influence distance between 
footnotes which is currently too large. I have tried 
\setupnote[before={\blank[small]}, after={\blank[small]}]. It appears 
to be reducing the space before the entire block of local footnotes 
but not between the footnotes themselves, which is what I am trying 
to do.


Did you try "inbetween" or "distance"? (I’d assume the latter is for 
the distance between number and text, but inbetween is usually 
vertically.)


https://wiki.contextgarden.net/Command/setupnote

Am I correct in assuming that the \setupnote should influence my 
\placelocalfootnotes? Or is there something else I should do in the 
case of local footnotes as distinct from general footnotes (my 
document contains ONLY local footnotes, however).


I was wondering if \setupnote[localfootnote][…] makes sense, but I 
can’t find in the sources if local footnotes are setup differently 
from general one.


Hraban

___ 

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
___ 
___
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] adjustment to my local footnotes problem

2023-04-23 Thread jbf via ntg-context
I tried all those Hraban, unsuccessfully, but finally 'happened' upon a 
solution by trying whitespace instead in the setups. Except that I had 
read somewhere in the mailing list (Pablo I think) that I would need to 
use \directsetup. I don't actually understand why, have never been sure 
about what \directsetup does, but there's no doubt it works in this 
case! So the following has done what I needed:



\startsetups[setups:footnotes]

 \setupwhitespace[.01em]

\stopsetups

\setupnote[before=\directsetup{setups:footnotes}]

Julian

On 23/4/23 20:34, Henning Hraban Ramm via ntg-context wrote:

Am 23.04.23 um 09:21 schrieb jbf via ntg-context:
I realise that I should have been talking about the space between 
local footnotes, rather than interlinespace (previous email on this 
issue), but my basic problem still stands. My efforts to influence 
the space between footnotes placed locally is to no avail so far.


I assume it is \setupnote (rather than \setupnotation, my earlier 
mistake) where I would need to somehow influence distance between 
footnotes which is currently too large. I have tried 
\setupnote[before={\blank[small]}, after={\blank[small]}]. It appears 
to be reducing the space before the entire block of local footnotes 
but not between the footnotes themselves, which is what I am trying 
to do.


Did you try "inbetween" or "distance"? (I’d assume the latter is for 
the distance between number and text, but inbetween is usually 
vertically.)


https://wiki.contextgarden.net/Command/setupnote

Am I correct in assuming that the \setupnote should influence my 
\placelocalfootnotes? Or is there something else I should do in the 
case of local footnotes as distinct from general footnotes (my 
document contains ONLY local footnotes, however).


I was wondering if \setupnote[localfootnote][…] makes sense, but I 
can’t find in the sources if local footnotes are setup differently 
from general one.


Hraban

___ 

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
___ 
___
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] adjustment to my local footnotes problem

2023-04-23 Thread jbf via ntg-context
I realise that I should have been talking about the space between local 
footnotes, rather than interlinespace (previous email on this issue), 
but my basic problem still stands. My efforts to influence the space 
between footnotes placed locally is to no avail so far.


I assume it is \setupnote (rather than \setupnotation, my earlier 
mistake) where I would need to somehow influence distance between 
footnotes which is currently too large. I have tried 
\setupnote[before={\blank[small]}, after={\blank[small]}]. It appears to 
be reducing the space before the entire block of local footnotes but not 
between the footnotes themselves, which is what I am trying to do.


Am I correct in assuming that the \setupnote should influence my 
\placelocalfootnotes? Or is there something else I should do in the case 
of local footnotes as distinct from general footnotes (my document 
contains ONLY local footnotes, however).


It seems a simple enough issue, but I just can't get it right.

Julian
___
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] interlines space for local footnotes

2023-04-22 Thread jbf via ntg-context
I am using only local footnotes in a document, but am having difficulty 
influencing the interlines space between these notes. Since I am only 
using local footnotes, I thought initially that the following would work 
for them


\startsetups[footnote:interlinespace]
  \setupinterlinespace[line=2.4ex]
\stopsetups

\setupnote[footnote][setups=footnote:interlinespace]

but it doesn't. I had hoped there might be something like 
\setuplocalfootnotes but there is not.  I also tried placing the setups 
locally, either with 
\startlocalfootnotes[setups=footnote:interlinespace] or 
\placelocalfootnotes[setups=footnote:interlinespace].


Any idea how I can successfully influence my local footnotes globally?

Julian


___
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] English-Vietnamese facing pages

2023-04-03 Thread jbf via ntg-context
Yes, that is clear from the emails over a decade or so on the list. But 
as you will see from my response to Taco, it is possible I can achieve a 
satisfactory result from Wolfgang's 2016 'stream' suggestion.


Julian

On 3/4/23 22:04, Henning Hraban Ramm via ntg-context wrote:
This is one these problems that arise once every other year, but so 
far nobody contributed a usable solution or at least specification. 
(That’s how I understood Hans when I asked about this fo my book.) 

___
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] English-Vietnamese facing pages

2023-04-03 Thread jbf via ntg-context
Thanks Peter. I took a look at your lua pages. I think I would get 
entirely lost with that code at this stage, and of course I am not 
considering (at least not for now) a two-column approach, but facing 
pages. But at least you achieved what you were trying to do at the time. 
Hopefully I will also!


Julian

On 3/4/23 20:55, Peter Münster via ntg-context wrote:

On Mon, Apr 03 2023, jbf via ntg-context wrote:


Q 1: Has anybody reading this actually produced a bilingual book (it doesn't
have to be en-vn) with ConTeXt?

Hi,

Only some pages of a book: https://wiki.contextgarden.net/Catalogue_raisonné

HTH,

___
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] English-Vietnamese facing pages

2023-04-03 Thread jbf via ntg-context
Okay Taco, so that's a possibility I can explore, even though it is not 
a nice one, as you say. I can think of a couple of other not-so-nice 
ways of achieving a result as well. The manuscript shown me (in MSWord, 
obviously) has been carefully prepared to ensure no text flows over a 
page, so we are really dealing with separate pages. But of course, all 
that changes once page dimensions and font size etc. get involved at the 
ConTeXt stage.


However, you gave me a clue: 3 files: "by creating two separate pdfs for 
the page bodies only and using a third context doc to include those 
pages alternated'.


For the first chapter of the proposed book I have tried Wolfgang's 
suggestion as listed in https://wiki.contextgarden.net/Columns#Streams 
by simply using the \input method. Obviously 'en' and 'vn' stand for two 
tex files set up as I normally would with preamble and bodymatter. I 
certainly get a good result once the chapter starts. It would seem 
logical that further chapters can be added. Obviously I only want one 
TOC, not two (only call it in for, say, the en.tex but not for vn.tex) 
and for some reason I have several blank pages before everything 
starts... but hopefully can solve that. Maybe I can adapt what we have 
below with the project structure.


Not ready to give up yet!

Julian

\starttext

\startoutputstream[one]

\startcolor[red]

\input en\par

\stopcolor

\stopoutputstream

\startoutputstream[two]

\startcolor[blue]

\input vn\par

\stopcolor

\stopoutputstream

\synchronizestreams[one,two]

\setbox\scratchboxone\outputstreambox[one]

\setbox\scratchboxtwo\outputstreambox[two]

\doloop

{\ifvoid\scratchboxone

\exitloop

\else

\setbox\scratchboxfour\vsplit\scratchboxone to \textheight

\vbox to \vsize{\box\scratchboxfour\vss}%

\setbox\scratchboxfive\vsplit\scratchboxtwo to \textheight

\vbox to \vsize{\box\scratchboxfive\vss}%

\fi}

\stoptext

On 3/4/23 20:15, Taco Hoekwater wrote:

Way, way back when, I did a document in NL + EN by creating two separate pdfs 
for the page bodies only and using a third context doc to included those pages 
alternated, with the correct headers added in that third document. Not a ’nice’ 
solution at all, but it worked for me. (this was in the nineties, though)___
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] English-Vietnamese facing pages

2023-04-03 Thread jbf via ntg-context
Am always up for a challenge, but hope this one is not beyond my 
possibilities! Have a request to produce a book with English-Vietnamese 
facing pages. The text doesn't have to be strictly in sync, but 
generally so. The only ConTeXt guidelines I think I have at the moment 
are (1) an old module called m-streams (which I am assuming is now 
obsolete), and (2) an exchange of emails on this list over a decade 
about bilingual typesetting.


It won't bother me too much if I have to tell the intending author and 
his editor that this might be beyond me, but before taking that stance, 
I have a couple of simple questions that someone might be able to 
respond to. And, BTW, the Vietnamese font is not the problem. Tex Gyre 
Pagella seems to be able to cope with that at least!


Q 1: Has anybody reading this actually produced a bilingual book (it 
doesn't have to be en-vn) with ConTeXt? And if so would you be prepared 
to offer me some basic guidelines?


Q 2: There is some guidance from Wolfgang on 
https://wiki.contextgarden.net/Columns towards the end of that page. I 
tried two or three pages of the first chapter of the book, placing 
English in outputstream[one] and the Vietnamese in outputstream[two] and 
kind of got a suitable result except that the last paragraph of both 
languages ended up BEFORE the chapter began. No idea why. The rest 
seemed okay. So my question is whether or not Wolfgang's sample (where 
he says 'a simple example but I had to write the splitter myself') would 
be sufficient for me to put the book together?


Q 2: I suppose the third question is whether, since LMTX, there has been 
any further development in the 'streams' mechanism that might help me?


Julian

___
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] xtable - what might prevent splitting?

2023-03-28 Thread jbf via ntg-context
Got it! But I would not have picked that up from reading 
http://www.pragma-ade.nl/general/manuals/xtables-mkiv.pdf, which was my 
guide for this particular exercise. It certainly says 
\placetable[here,split] but there is no mention of the \start...stop 
version of that.


Anyway, I now understand what I need to do, so thank you.

Julian

On 28/3/23 19:37, Wolfgang Schuster wrote:

\startplacetable [location={here,split}]___
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] xtable - what might prevent splitting?

2023-03-28 Thread jbf via ntg-context
I cannot understand why my xtable setup does not split to the next page. 
As far as I can see I have it set up correctly... though obviously not! 
What might be wrong? Below is a sample. In the real case the number of 
rows would demand a second page.


\setupxtable[width=4cm,option={stretch,width}]

\setupxtable[split=yes]

\starttext

\placetable[here]{}

\startxtable

\startxrow

\startxcell cell one \stopxcell

\startxcell cell two \stopxcell

\startxcell cell three\stopxcell

\stopxrow

... and so on and so forth for twenty or so rows, but certainly enough 
to require a second page


\stopxtable

\stoptext

Julian
___
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] Text editors

2023-03-26 Thread jbf via ntg-context
Every user has his or her own preferred test editor. Over years I have 
used Emacs for just about everything except the kitchen sink, but not, 
as it happens, for ConTeXt.


For what it's worth here is what I use:

(1) TeXworks. All one has to do is indicate the correct path to ConText 
in the setup for this program, depending on your OS and where you have 
installed it, e.g. home/yourname/bin/context/tex/texmf-linux-64/bin if 
you are using Linux and have installed it in \bin. Then choose ConTeXt 
(LuaTeX) as the processing tool.


(2) But to make things a lot easier, I also use Federico's text expander 
Espanso 
https://espanso.org 
. This just saves so much time, especially for so 
many \start...\stop sequences.  For example, in espanso I might have:


# blockquote
  - trigger: ":bq"
    replace: |
  \startblockquote
  $|$
  \stopblockquote

And this means all I have to do is type :bq and as you can sense from 
the example above, I have the \start and \stop and intervening space all 
ready to work with.

Hope it helps!
Julian

On 26/3/23 19:22, Alexandre Christe via ntg-context wrote:

Dear ConTeXt users,

I'm wondering what kind of typesetting system / syntax highlighting / 
completion you're using.


I've been using myself the simple_Context package for SublimeText 
which I scavenged a while ago before it was made unavailable (I wanted 
to attach but it's too big for the list). But it's sort of a dead-end.


Open to anything from vim/neovim to emacs or more exotic. Maybe it 
would be nice to show the config. (And yes I've seen the Wiki page 
https://wiki.contextgarden.net/Text_Editorsbut I've the feeling some 
content is outdated.)


Thanks in advance,
Alex

___
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
__
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] \setupTABLE: framecolor

2023-03-25 Thread jbf via ntg-context
Thanks for this Hraban. I had come to the conclusion that there was no 
possibility of a 'bottomframecolor' option, and as TABLE is one of the 
older commands and important for XML, I assume it won't change much 
(though the option of different colours for frame sides would be good, 
and may not affect TABLE as such since it is \framed we are talking 
about really).


Bruce's suggestion of a dummy row is a simple one, and it works. But I 
will also look at your solution too. Am always keen to have more than 
one arrow in the quiver!


Julian

On 25/3/23 20:48, Henning Hraban Ramm via ntg-context wrote:

Am 25.03.23 um 06:45 schrieb jbf via ntg-context:
Hi, I am struggling with the last row of a table which, according to 
its author, should have a black bottomframe, but gray (I am using a 
defined 'lightgray') for the sides. The first row has a black frame. 
All intermediate rows have gray.


I have no difficulty achieving the first row, and the black 
bottomframe for the last row, but I have been unable to get the last 
row sides to be gray. Here is the current setups that I have:


\setupTABLE[frame=off]

\setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold]

\setupTABLE[row][2][topframe=on]

\setupTABLE[row][2][topframe=off,rightframe=on,leftframe=on,framecolor=lightgray] 



\setupTABLE[row][3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21][frame=on, 
framecolor=lightgray]


\setupTABLE[row] [last] [bottomframe=on,style=normal]

My first row is fine and all but the topframe of row 2 is 
'lightgray'; all following rows are 'lightgray'. The last row (22) 
has a black bottomframe, but how could I achieve 'lightgray' for 
rightframe, leftframe? If I add a new setup e.g.


\setupTABLE[row][last][rightframe=on,leftframe=on,framecolor=lightgray] 
then I lose the bottomframe in black. I have tried all kinds of 
combinations but unsuccessfully.


Table cells are based on \framed, and there doesn’t seem to be an 
option to have different colors of parts of the frame (e.g. 
bottomframecolor…)


You can use a MetaPost graphic as background, like in the “diagonal” 
example:

https://wiki.contextgarden.net/TABLE#Diagonal_rules

HTH, Hraban

___ 

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
___ 


___
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] \setupTABLE: framecolor

2023-03-24 Thread jbf via ntg-context
Hi, I am struggling with the last row of a table which, according to its 
author, should have a black bottomframe, but gray (I am using a defined 
'lightgray') for the sides. The first row has a black frame. All 
intermediate rows have gray.


I have no difficulty achieving the first row, and the black bottomframe 
for the last row, but I have been unable to get the last row sides to be 
gray. Here is the current setups that I have:


\setupTABLE[frame=off]

\setupTABLE[row] [first] [topframe=on,bottomframe=on,style=bold]

\setupTABLE[row][2][topframe=on]

\setupTABLE[row][2][topframe=off,rightframe=on,leftframe=on,framecolor=lightgray]

\setupTABLE[row][3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21][frame=on, 
framecolor=lightgray]


\setupTABLE[row] [last] [bottomframe=on,style=normal]

My first row is fine and all but the topframe of row 2 is 'lightgray'; 
all following rows are 'lightgray'. The last row (22) has a black 
bottomframe, but how could I achieve 'lightgray' for rightframe, 
leftframe? If I add a new setup e.g.


\setupTABLE[row][last][rightframe=on,leftframe=on,framecolor=lightgray] 
then I lose the bottomframe in black. I have tried all kinds of 
combinations but unsuccessfully.


Julian
___
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] Problem with \stoptabulate

2023-03-20 Thread jbf via ntg-context

Not sure if this helps, Bruce, but there is \definestartstop

Julian

On 21/3/23 10:34, Bruce Horrocks via ntg-context wrote:

I have a technical manual style document that requires a lot of examples to be 
included.

They can easily be typeset with a table so I thought I would save myself some 
typing by defining macros for the various bits of a tabulate table. Thus I have:

\def\startMyExample{\starttabulate[|r|c|l|p|]}
\def\stopMyExample{\stoptabulate}
\def\MyExampleItem#1#2#3{\NC #1 \NC \rightarrow \NC #2 \NC #3 \NC\NR}

\starttext
Here are some examples...

\startMyExample
   \MyExampleItem{before}{after}{change before into after}
   \MyExampleItem{straw}{gold}{Rumpelstiltskin}
\stopMyExample
%\stoptabulate

\stoptext

The problem is that \stopMyExample doesn't work - the \stoptabulate isn't 
recognised and I get an end of file reached error. If use a straight \stoptabulate 
then it works as expected. That's fine but it would be nice, from an aesthetic 
point of view, to have start & stop 'paired' commands in the source.

Presumably some sort of deep ConTeXt fu is going on - can anyone explain it 
please?

Regards,
—
Bruce Horrocks
Hampshire, UK

___
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
___

___
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] \setupparagraphs - can they run over two pages?

2023-02-27 Thread jbf via ntg-context
Yes, tabulate is a solution, though as I have just described for Denis 
who also responded to this issue, by some careful manipulation (which 
was possible for the circumstance I was dealing with) I simply noted 
where the page break occurred and started a new set of paragraphs after 
that. That was satisfactory in this case. Tabulate might have to be the 
solution for a different set of circumstances.


Julian

On 27/2/23 23:26, mf via ntg-context wrote:

I would try \setuptabulate, \starttabulate ... \stoptabulate.

It has some limitations (though Hans added some features recently), 
but it should work.


Massi

Il 24/02/23 06:41, jbf via ntg-context ha scritto:

I have the following setup for side-by-side paras.

\defineparagraphs[Two][n=2]

\setupparagraphs[Two][1][width=.1\textwidth,style=\bfx,align=tolerant]

\setupparagraphs[Two][2][width=.9\textwidth,style=normal,align=tolerant]

My difficulty is that while there is only ever just a couple of 
numbers in the left-hand 'column', the right-hand 'column' may have 
several lengthy paragraphs. If I have one relatively short \startTwo 
followed by one that is much longer, it will be forced to start on 
the next page, leaving too much empty space on the previous page.


It is probable that getting this environment to split across pages is 
not possible. I can try very different approaches (columns, tables) 
to solve my problem, but I thought I would at least ask first.


Julian


___ 

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
___ 

___ 

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
___ 


___
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] \setupparagraphs - can they run over two pages?

2023-02-23 Thread jbf via ntg-context

I have the following setup for side-by-side paras.

\defineparagraphs[Two][n=2]

\setupparagraphs[Two][1][width=.1\textwidth,style=\bfx,align=tolerant]

\setupparagraphs[Two][2][width=.9\textwidth,style=normal,align=tolerant]

My difficulty is that while there is only ever just a couple of numbers 
in the left-hand 'column', the right-hand 'column' may have several 
lengthy paragraphs. If I have one relatively short \startTwo followed by 
one that is much longer, it will be forced to start on the next page, 
leaving too much empty space on the previous page.


It is probable that getting this environment to split across pages is 
not possible. I can try very different approaches (columns, tables) to 
solve my problem, but I thought I would at least ask first.


Julian
___
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] how to change metadata halfway through document

2023-01-30 Thread jbf via ntg-context

Indeed, that works. Thank you.

Julian

On 30/1/23 20:14, Hans Hagen via ntg-context wrote:

On 1/30/2023 1:14 AM, jbf via ntg-context wrote:
Am trying to understand how best to change the title metadata in 
headertext halfway through a document that has two parts: 
Constitutions and Regulations.


My first attempt (did not work)

\startsetups[headertext]

\startdocument

[metadata:title={Regulations}]

\stopsetups

\setupheadertexts

[ ] [{\getmarking[chapter]\hskip1em \pagenumber}]

[{\pagenumber \hskip1em \setup{headertext}}] [ ]

My second attempt (quite crass, but it works!!) was to create a 
second \startdocument within the main \startdocument (obviously 
closing it towards the end but before the main \stopdocument), this 
time with [metadata:title={Regulations}] instead of the original 
[metadata:title={Constitutions}]. However, I have a strong feeling 
this is not a very elegant solution!

you can try \setupdocument but i didn't test that


-
  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 / 
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
___ 


___
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] how to change metadata halfway through document

2023-01-29 Thread jbf via ntg-context
Am trying to understand how best to change the title metadata in 
headertext halfway through a document that has two parts: Constitutions 
and Regulations.


My first attempt (did not work)

\startsetups[headertext]

\startdocument

[metadata:title={Regulations}]

\stopsetups

\setupheadertexts

[ ] [{\getmarking[chapter]\hskip1em \pagenumber}]

[{\pagenumber \hskip1em \setup{headertext}}] [ ]

My second attempt (quite crass, but it works!!) was to create a second 
\startdocument within the main \startdocument (obviously closing it 
towards the end but before the main \stopdocument), this time with 
[metadata:title={Regulations}] instead of the original 
[metadata:title={Constitutions}]. However, I have a strong feeling this 
is not a very elegant solution!


Thoughts?

Julian
___
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] notes by paragraph

2023-01-28 Thread jbf via ntg-context

That solves the problem. Thank you.

Julian

On 28/1/23 23:22, Pablo Rodriguez via ntg-context wrote:

\setupnote[footnote][location=none] might help.

___
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] notes by paragraph

2023-01-27 Thread jbf via ntg-context

Re my earlier question on footnotes by defined paragraph:

\start...stoplocalfootnotes and \placelocalfootnotes largely solves the 
issue (had forgotten that option), but I am still getting the footnotes 
repeated at the bottom of the page. I am obviously missing a setting. 
There are parts of this text that do require the usual footnotes at the 
bottom, so I would not want to turn off this option permanently. I have 
tried \setupnotation[footnote][display=no] but that is not working.


Julian
___
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] footnotes by paragraph?

2023-01-27 Thread jbf via ntg-context
Here's a tricky one (for me) that I haven't been able to work out. I am 
dealing with a set of constitutions that I am organizing with a 
paragraph definition


\defineparagraphs[Two][n=2]

\setupparagraphs[Two][1][width=.2\textwidth,style=\bfx,after={\blank},align=flushleft]

\setupparagraphs[Two][2][width=.77\textwidth,style=normal,after={\blank}]

But I need to get the footnotes (which all apply to [2] in each article 
of the constitutions) to come beneath my defined 'Two'. I do not want 
them to come at the bottom of the page.


I thought I might be able to do it by placing \start...stopTwo within a 
\start...stopsection and defining \setupnotation[way=bysection] but that 
is not working.


Any thought on how I could approach this?

Julian
___
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] Combining Macron Below needed

2022-09-11 Thread jbf via ntg-context

\chr {k line below }ḵ   \withlinebelow k

On 11/9/22 01:41, Steffen Wolfrum via ntg-context wrote:

Hi,

a text is to be set in Garamond Premier Pro and uses this character: ḵ

Is there a way to set a combining macron below (U+0331), preferable in a 
Garamond-like font?

Best,
Steffen

___
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
__
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] I may have misunderstood...

2022-07-27 Thread jbf via ntg-context

Bruce,

This is off-list because I see you already had an answer, but I'm 
wondering if I have misunderstood your problem. I thought there was a 
simple way to do this (or at least it is how I do it):


|\setuphead [chapter] [page={yes,header,footer,right}] |

Which

 * Finishes the last page of the previous chapter
 * Disables the header and footer for the next (empty) page
 * Adds an empty page when necessary to start the new chapter on a
   right page

I see, too, that you have added in Wolfgang's elegant solution to an 
earlier issue I had with placing images on that blank page before a 
chapter title. That was kind of you. I've never ventured into adding 
to/correcting aspects of the wiki. I've often wanted to... even just to 
quietly fix up some of the English. It is a no-no to mention that sort 
of thing in the public forum, and the best way around it, I think, is to 
simply make adjustments here and there when it would help.


Julian
___
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] \placelistofabbreviations - solved

2022-06-20 Thread jbf via ntg-context
The setup I offered in the previous email was all correct, but in a 
large project like a dictionary with 26 or more components there can 
always be something else that goes wrong! Component 'D' had an extra { 
in it, but oddly enough the component was compiling, except that I 
picked up an error message despite the fact it had compiled correctly. 
That one error was enough to throw things out of kilter, including the 
\placelistofabbreviations in an earlier component.


Sorry for the noise

Julian

___
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] \placelistofabbreviations in project structure?

2022-06-19 Thread jbf via ntg-context
Hi, I wonder what I might be doing wrong for \placelistofabbreviations 
not to work in a project. Everything else about \definesysnonyms and 
indeed the project is working, but I seem unable to place the list 
correctly in the component that is intended to list all abbreviations.


The main environment file for the project contains the definitions. e.g. 
\definesynonyms[abbreviation][abbreviations][\infull] 
\setupsynonyms[abbreviation][synonymstyle=\em] \abbreviation[adjp] 
{adjp.} {adjectival phrase}


All dictionary components (A-Z) call on the main environment file where 
the above is defined and give me the correct result if I write \adjp\ or 
\infull{adjp} in any one of them.


My MWE below for the (as yet not working) abbreviations component that 
contains the placelist command:


\startcomponent 04_abbreviations

\project project_Dictionary

\startchapter[title={Abbreviations}]

\placelistofabbreviations[criterium=all]

\stopchapter

\stopcomponent

According to me that should work, but all I get is the chapter title. I 
also tried adding a state=start in case that was needed, but it did nothing.


Julian
___
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] Footnotes in captions -> "inherit" textwidth from floatntg

2022-06-16 Thread jbf via ntg-context

Maybe \setupnote[footnote][width=\textwidth]?

Julian

On 16/6/22 18:56, Denis Maier via ntg-context wrote:


Hi,

I think I’ve ran into a somewhat strange behaviour. If you have a 
footnote in a float caption, the footnote won’t use the full 
textwidth, but only the width of the corresponding caption. Is that on 
purpose, a context bug or a user bug?


Best,

Denis

\starttext

asdf

\startplacefigure[title={My caption with a long 
footnote.\footnote{\input ward}}]


\externalfigure[cow.pdf]

\stopplacefigure

\stoptext


___
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] Pull quote between two column - trial

2022-05-28 Thread jbf via ntg-context
That is progress, Garulfo, and real progress! I'm sorry I have not been 
any help to you in achieving this... a bit beyond my skill set. But I 
have long regarded this particular 'feature' to be a quite important 
'missing' feature of ConTeXt, since I occasionally get requests from 
authors as to the possibility of including such pull quotes in 
multi-column presentations, and I have to tell them that to do so I need 
to use another program where that is more easily achieved.


So, I just wanted you to know that someone out there appreciates your 
efforts with this, one of many I am sure.


Julian

On 29/5/22 04:25, Garulfo via ntg-context wrote:

some progress... if it can help.

No more issue with nonsymetrical behavior, and \framed are properly 
aligned with the grid.


Garulfo

___
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] font question re U+00336

2022-05-24 Thread jbf via ntg-context
I think I'll take comfort from your final comment - the output looks 
good enough! But I remain intrigued.


Julian

On 24/5/22 17:26, Henning Hraban Ramm via ntg-context wrote:
you can ignore a lot of warnings if the output looks good enough. 

___
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] font question re U+00336

2022-05-23 Thread jbf via ntg-context

I wonder if someone can help me interpret this message in the log file

fonts   > start missing characters: 
/home/jbf/bin/context/tex/texmf/fonts/opentype/public/tex-gyre/texgyrepagella-regular.otf

fonts   >   88  U+00336  ̶  COMBINING LONG STROKE OVERLAY
fonts   > stop missing characters

My questions are as follows:

1. What does 88 mean here? 88 instances of this missing glyph? Page 88? 
Or something else? or in other words, how might I discover where 
something is missing from the original text?


2. Tex Gyre Pagella is normally a pretty handy typeface to use for me 
because it has pretty much all the glyphs I normally need... except this 
one obviously! Isn't it really just an en rule (or very similar to 
such)? Or in other words, how do I best overcome the problem of this 
missing character?


3. And perhaps connected with the above question: is there good fallback 
solution one can use? Do I need to \definefontfallback something or is 
there an automatic one already happening?


I've started to examine the log files a bit more carefully for various 
items and it is showing up my ignorance!!


Julian

___
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] cross-reference query solved

2022-05-11 Thread jbf via ntg-context
To those who assisted me with helpful hints yesterday, thank you. I 
finally got the cross-referencing working correctly after examining my 
overall structure in the light of those hints.


I think that what was preventing things from working properly, was that 
I had all the entries for a particular chapter enclosed in a setup. I 
won't go into why I had adopted that approach, but in restructuring 
things far more sensibly, I was able to do away with the \start\...\stop 
setups. I think this is what was causing the problem.


Julian

___
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] a cross-reference query

2022-05-10 Thread jbf via ntg-context
Thanks Hraban, Taco. It is very helpful to get these hints. I will work 
through them calmly over the next day or so. Not sure why the spaces 
disappeared in the message (1 età came out as 1età etc.). Probably 
because I copy-pasted from the text editor but all spacing is correct in 
the editor I can assure you.


It's a very big document, hundreds of pages, so I even wondered if the 
size of the document was a factor. But Taco's warning about possible 
duplicates definitely becomes a possibility in a very large doc! Anyway, 
I'll work through those hints and see where things are at after that.


Julian

On 10/5/22 16:47, Henning Hraban Ramm via ntg-context wrote:

Hi Julian,

while I can’t help you with the real issue, a few hints:

* Look into the .tuc file for the references. Do you find differences 
between working and not-working examples?


* Do the examples work if you take them out of your big document or if 
you change the order?


* There are “strange” space characters in your message, they disappear 
in the quoted version below. That might cause troubles in typesetting 
and referencing.


* You don’t need to set "marking" if it’s the same as the title.

* It might make sense to use \about instead of \in – \about[eta] would 
render as “1a età“


* I would define a few macros, e.g. for the \in where both parameters 
are the same and for stuff like \bullet\enspace – probably you just 
left these out to simplify the example.


Hraban


Am 10.05.22 um 04:03 schrieb jbf via ntg-context:

Hi list,

In an attempt to make a dictionary interactive in certain ways, 
perhaps I am misusing the \in{}[] command here, but sometimes a 
reference works and sometimes it doesn't. I have no idea why it 
doesn't. Here is the situation:


Each dictionary entry is a section that has been defined as 'entry', 
hence we have a \startentry[title=,marking=,reference=]...\stopentry 
structure. Many entries can refer to other entries in the dictionary 
(in most cases the headword is in Italian, but the definitions, 
explanations are in English in all cases). in 90% of cases my 
referencing is working, so here is an example of one that works when 
\setupinteraction[state=start] is set:


\startentry[title={1aetà},marking={1aetà},reference={eta}]\\

1. youth. 2. first age. {\emnp.} \bullet\enspaceThe age between 
adolescence and maturity and by extension all of the human 
being’sfirst age (as opposed to old age).


Different cultures distinguish} age groupings in different ways. One 
would be unlikely to find, in English, terms like first age, second 
age etc. as recorded here. In fact there are probably only three 
general groupings in English: young, middle-aged, elderly, and the 
boundaries are rather flexible for these. Among the young category, 
English might distinguish infants, children, adolescents young 
adults. \rightarrow\enspace \in{giovani}[giovani]


\stopentry

In other words, there is an entry called 'giovani' and it begins 
\startentry[title={giovani},marking={giovani},reference={giovani}]. 
That correctly gives me a bold green clickable link which takes me to 
'giovani'. There is no number or page reference involved. I simply 
want the link to take me to the entry concerned.


But it does not always work. I have another entry called 'ad nutum' 
(Latin, not Italian in this case) with a reference to 'segretario' 
many pages on. I am absolutely sure I have the reference for 
segretario properly set up, both in its own entry and by calling it 
as I did for 'giovani', namely this time as 
\in{segretario}[segretario] but it is not recognized. This is not the 
only non-working case. There are several.


Can anyone give me a hint as to what I might be doing wrong? I 
realise that usually these references call on page numbers or section 
numbers, but I don't want/need (or do I?) to use those. I simply the 
reader to be able to click on a hyperlink which takes them to the 
referenced entry.


Julian
___ 

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] a cross-reference query

2022-05-09 Thread jbf via ntg-context

Hi list,

In an attempt to make a dictionary interactive in certain ways, perhaps 
I am misusing the \in{}[] command here, but sometimes a reference works 
and sometimes it doesn't. I have no idea why it doesn't. Here is the 
situation:


Each dictionary entry is a section that has been defined as 'entry', 
hence we have a \startentry[title=,marking=,reference=]...\stopentry 
structure. Many entries can refer to other entries in the dictionary (in 
most cases the headword is in Italian, but the definitions, explanations 
are in English in all cases). in 90% of cases my referencing is working, 
so here is an example of one that works when 
\setupinteraction[state=start] is set:


\startentry[title={1aetà},marking={1aetà},reference={eta}]\\

1. youth. 2. first age. {\emnp.} \bullet\enspaceThe age between 
adolescence and maturity and by extension all of the human being’sfirst 
age (as opposed to old age).


Different cultures distinguish} age groupings in different ways. One 
would be unlikely to find, in English, terms like first age, second age 
etc. as recorded here. In fact there are probably only three general 
groupings in English: young, middle-aged, elderly, and the boundaries 
are rather flexible for these. Among the young category, English might 
distinguish infants, children, adolescents young adults. 
\rightarrow\enspace \in{giovani}[giovani]


\stopentry

In other words, there is an entry called 'giovani' and it begins 
\startentry[title={giovani},marking={giovani},reference={giovani}]. That 
correctly gives me a bold green clickable link which takes me to 
'giovani'. There is no number or page reference involved. I simply want 
the link to take me to the entry concerned.


But it does not always work. I have another entry called 'ad nutum' 
(Latin, not Italian in this case) with a reference to 'segretario' many 
pages on. I am absolutely sure I have the reference for segretario 
properly set up, both in its own entry and by calling it as I did for 
'giovani', namely this time as \in{segretario}[segretario] but it is not 
recognized. This is not the only non-working case. There are several.


Can anyone give me a hint as to what I might be doing wrong? I realise 
that usually these references call on page numbers or section numbers, 
but I don't want/need (or do I?) to use those. I simply the reader to be 
able to click on a hyperlink which takes them to the referenced entry.


Julian
___
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] pull quotes

2022-04-27 Thread jbf via ntg-context

Hi list,

Back in March, Garulfo asked a question about pull quotes and offered 
two links by way of example. One of the styles in those links interested 
me in particular, namely


https://www.societal.fr/sites/societal/files/old_site/societal-46-6-boiteux-reperesettendances.pdf#page=2

I know how to make a pull quote in general terms, but Garulfo's question 
was quite specific - was there a preferred way to set an intercolumn 
pull quote, and presumably he also meant of the kind found in the link 
above. I did not see any response to his question so perhaps he received 
one off-list. I too would be interested to know how one might achieve 
precisely the kind in the example, which features a 'bracketed' pull 
quote. Has anyone attempted that?


Julian
___
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] Chapter number retrieval

2022-03-21 Thread jbf via ntg-context
Willi, offlist: Have to admit I didn't actually try your own comment, 
but if it doesn't work, I'll be interested in the eventual answer. I 
recently had to do something similar for the TOC, and Hraban pointed me 
to \currentlistentrynumber. There probably has to be a command along 
those lines (which led me to your 2011 comment, sorry ) for non-list 
retrieval. \structurenumber? \currentstructurenumber? Something along 
those lines? There seem to be a number of these but as yet undocumented 
as far as I can see.


Julian

On 22/3/22 10:19, Willi Egger via ntg-context wrote:

Hi Julian,

:-) I am confronted with my own comments :-)

However, this is precisely what I am using in my attempt to get this hidden 
number. But no it does not appear…

Thank you!
Willi


On 21 Mar 2022, at 22:33, jbf via ntg-context  wrote:

Willi,

I see a comment by yourself back in 2011 at 
https://wiki.contextgarden.net/Last_Head_Number

I wonder if this helps?

Julian

On 22/3/22 07:47, Willi Egger via ntg-context wrote:

Hello everybody!


I would like to typeset the chapter title without number in the text. — However 
I still would need to retrieve the number for a calculation in a MetaFun 
graphic. I assume, that even though this number is not typeset, it is kept in 
the background. How to retrieve it?

Kind regards

Willi
___
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
___

___
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] Chapter number retrieval

2022-03-21 Thread jbf via ntg-context

Willi,

I see a comment by yourself back in 2011 at 
https://wiki.contextgarden.net/Last_Head_Number


I wonder if this helps?

Julian

On 22/3/22 07:47, Willi Egger via ntg-context wrote:

Hello everybody!


I would like to typeset the chapter title without number in the text. — However 
I still would need to retrieve the number for a calculation in a MetaFun 
graphic. I assume, that even though this number is not typeset, it is kept in 
the background. How to retrieve it?

Kind regards

Willi
___
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] Make footnote/endnote number not superscript?

2022-03-20 Thread jbf via ntg-context
Bruce, I suppose one way to achieve your aim, if there is no easy way to 
prevent superscript, would be to put your reference in parentheses: (See 
my video at link 1), followed by the normal superscript number for 
footnote anchors. You can still go with the endnotes.


The other thing, and I know this because I am often having to deal with 
long URLs, is to remember to use \hyphenatedurl{}, and you can determine 
separately where the breaks occur if the default is not to your liking.


I know it is not quite what you were looking for, but it would be a 
simple solution and not to distracting.


Julian

On 21/3/22 07:10, Bruce Horrocks via ntg-context wrote:

I'm editing a book that will be printed, however the authors have included URLs which will no doubt suffer from 
"bit rot" in no time at all. I think it will make the main text cleaner if I use endnotes rather than 
include the URL in-line in the text or as a (distracting) footnote. So when the author writes "See my video at 
" I will print "See my video at link 1". At the back of the book, in an 
appendix somewhere, I then use \placenotes to display a table of the actual URLs for any readers that want to type 
them in.

I want the "link 1" bit to be normal text rather than superscript so it's more 
visible. Using the \setupnote[textstyle=...] command I can change the style of the number 
but not the superscript placing.

Is there a way to remove the superscript placing, please?

Alternative solutions welcome: the URLs printed in the book will be mirrored on 
a web page associated with the book for as long as possible so that content 
that vanishes over time can be replaced with Internet Archive links as they are 
discovered. However the order of the book isn't finalised yet so I'd like the 
numbering to be sequential regardless of whether I move a chapter around later 
on. This is partly the reason for using \endnote because I can use a reference 
elsewhere in the text if necessary.

Thanks in advance.
—
Bruce Horrocks
Hampshire, UK

___
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] \setupheadertexts for chapters with different authors

2022-03-19 Thread jbf via ntg-context
Thanks for the bits and pieces to the puzzle. I'll do my best to make 
sense of them and solve the problem.


Julian

On 19/3/22 20:18, Henning Hraban Ramm via ntg-context wrote:

Hi Julian,

you’re right, the example didn’t do what you wanted, and it didn’t 
intend to.


Using \getmarking you can get a section title (or another “mark”), you 
can’t combine it with the variable commands, and you don’t need it for 
your case.


https://wiki.contextgarden.net/Command/getmarking isn’t really helpful 
since there’s no example with section titles, but it shows you can 
also get previous or next “marks”.


BTW, I can’t remember when you need \structurevariable vs. 
\namedstructurevariable...


Hraban


Am 19.03.22 um 03:16 schrieb jbf via ntg-context:
I might need a little more help just to understand how best to adapt 
this to my situation:


One thing is clear: I was attempting to use a 'list' variable, and I 
can see why that was an error, since it is headertexts, not TOC that 
I want to influence.


But let me simplify my situation:

You seem to suggest initially that I could use \structureuservariable 
(or \structurevariable) instead, especially since I already have a 
variable to call on, e.g \startchapter[title={My title}][author={A. 
uthor}]. But in the example you then gave, you made no use of either 
of these.


My current setting is:

\setupheadertexts   [{\hfill\getmarking[chapter]\hfill}][] 
[{\hfill\documentvariable{metadata:title}\hfill}][]


which gives me the book title centred on verso pages, and the chapter 
title centred on recto pages. All I want to do is to have the chapter 
contributors' name for each chapter instead of the chapter title.


So why can't I create a setups along the lines of:

\startsetups[contributor] \getmarking[\structureuservariable{author}] 
\stopsetups


Then just swap 'chapter' in \setupheadertexts, with 'contributor'? I 
tried it but it doesn't work. I thought it would be logical. Clearly 
I'm wrong but don't appreciate why.


Julian

On 18/3/22 18:52, Henning Hraban Ramm via ntg-context wrote:

The *list* variables work only in lists.

There’s also \structurevariable and \structureuservariable.

Make sure you use setups for the header, otherwise the variable gets 
expanded only once at the beginning.


Like in:

\setuppagenumbering[alternative=doublesided]
\setupheadertexts[] % empty
\setupheadertexts[\setups{text right}][][][\setups{text left}]

\startsetups[text right]
\rlap{\pagenumber}
\hfill
\getmarking[chapter]
\hfill
\llap{Un Nom}
\stopsetups

\startsetups[text left]
\rlap{Una Person}
\hfill
\getmarking[section]
\hfill
\llap{\pagenumber}
\stopsetups 


___ 

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
___ 


___
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] \setupheadertexts for chapters with different authors

2022-03-18 Thread jbf via ntg-context

Sorry, of course I meant swap 'chapter' with \setups{contributor}

J

On 19/3/22 13:16, jbf wrote:

Then just swap 'chapter' in \setupheadertexts, with 'contributor'?

___
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] \setupheadertexts for chapters with different authors

2022-03-18 Thread jbf via ntg-context
I might need a little more help just to understand how best to adapt 
this to my situation:


One thing is clear: I was attempting to use a 'list' variable, and I can 
see why that was an error, since it is headertexts, not TOC that I want 
to influence.


But let me simplify my situation:

You seem to suggest initially that I could use \structureuservariable 
(or \structurevariable) instead, especially since I already have a 
variable to call on, e.g \startchapter[title={My title}][author={A. 
uthor}]. But in the example you then gave, you made no use of either of 
these.


My current setting is:

\setupheadertexts   [{\hfill\getmarking[chapter]\hfill}][]   
[{\hfill\documentvariable{metadata:title}\hfill}][]


which gives me the book title centred on verso pages, and the chapter 
title centred on recto pages. All I want to do is to have the chapter 
contributors' name for each chapter instead of the chapter title.


So why can't I create a setups along the lines of:

\startsetups[contributor] \getmarking[\structureuservariable{author}] 
\stopsetups


Then just swap 'chapter' in \setupheadertexts, with 'contributor'? I 
tried it but it doesn't work. I thought it would be logical. Clearly I'm 
wrong but don't appreciate why.


Julian

On 18/3/22 18:52, Henning Hraban Ramm via ntg-context wrote:

The *list* variables work only in lists.

There’s also \structurevariable and \structureuservariable.

Make sure you use setups for the header, otherwise the variable gets 
expanded only once at the beginning.


Like in:

\setuppagenumbering[alternative=doublesided]
\setupheadertexts[] % empty
\setupheadertexts[\setups{text right}][][][\setups{text left}]

\startsetups[text right]
\rlap{\pagenumber}
\hfill
\getmarking[chapter]
\hfill
\llap{Un Nom}
\stopsetups

\startsetups[text left]
\rlap{Una Person}
\hfill
\getmarking[section]
\hfill
\llap{\pagenumber}
\stopsetups ___
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] \setupheadertexts for chapters with different authors

2022-03-18 Thread jbf via ntg-context
Off list for the moment. Late at night where I am. I will take a look at 
this more closely on the morrow. Thanks.


Julian

On 18/3/22 18:52, Henning Hraban Ramm via ntg-context wrote:

\setupheadertexts[] % empty
\setupheadertexts[\setups{text right}][][][\setups{text left}]

\startsetups[text right]
\rlap{\pagenumber}
\hfill
\getmarking[chapter]
\hfill
\llap{Un Nom}
\stopsetups

\startsetups[text left]
\rlap{Una Person}
\hfill
\getmarking[section]
\hfill
\llap{\pagenumber}
\stopsetups 

___
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] \setupheadertexts for chapters with different authors

2022-03-17 Thread jbf via ntg-context
I thought this should work, since \structurelistuservariable{author} 
works fine to call the author name into the TOC, but the same does not 
work for header texts it seems:


\setupheadertexts

[{\hfill\getmarking[\structurelistuservariable{author}]\hfill}][]

[{\hfill\documentvariable{metadata:title}\hfill}][]

But it doesn't. What am I doing wrong?

Julian
___
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] Tex capacity exceeded...

2022-03-17 Thread jbf via ntg-context
Thanks Hans, and Rik. Perhaps I need to take a much closer look at this 
file to see if I have created some grouping issues. The removal of the 
.tuc file is a very handy tip that I hadn't thought of, and I assume it 
is associated with the way Hans put it, namely, 'looks like you load the 
same file...'


Julian

___
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] TeX capacity exceeded.... but....

2022-03-17 Thread jbf via ntg-context

I'd like to understand what is happening in this particular instance:

While playing with a suggestion to a recent request (re 
\currentlistentrynumber etc.) I suddenly got a compiling error:


TeX capacity exceeded, sorry [file=2000].

I returned everything to how it was before I was trying out those 
suggestions, but still got the error, so I began the \stopdocument 
routine fairly early in the document... same problem still. Then I 
brought the \stopdocument well forward, immediately after the standard 
makeup pages and the document compiled. When I removed \stopdocument, 
the entire document compiled as it should.


So the basic question is: what can be causing the error message? This 
has happened to me on two occasions with this document - it occurred 
once before I had even begun experimenting with the \currentlistentry 
options, so I do not think that the problem lies there. And when it 
occurred that time, I again solved it with \stopdocument routine, but 
further into the document. And similarly, once it compiled that far and 
I removed it, the whole document compiled once more.


If it is too complicated an explanation for an email response, maybe 
just point me to a document that explains the issue.


Julian

___
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] Calling in chapter number in list={}

2022-03-17 Thread jbf via ntg-context
But thanks anyway and also to Jean-Pierre (although I do understand 
sufficient German and could also have made headway in French if it came 
to that!). The \currentlistentry... options were what I needed. I was 
playing with wrong options (for this particular problem) like 
\currentheadnumber.


Julian


On 17/3/22 21:36, Henning Hraban Ramm via ntg-context wrote:


Am 17.03.22 um 11:31 schrieb Jean-Pierre Delange via ntg-context:

Which could be translated in English !


Yes, I was a bit lazy and Thunderbird also messed up the line breaking.

HR
___ 

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] Calling in chapter number in list={}

2022-03-16 Thread jbf via ntg-context
I wonder if there is a way I can call in the chapter number in the TOC, 
although that number is not used for chapters as such. I know the 
chapter number is 'remembered' anyway, so there is probably a way I can 
call it in just for the TOC.


The context for this question is the layout for book which comprises 
individual contributions, and each contribution has its own 
author/copyright (hence the individual chapters bear a title without a 
number, but the editor who has compiled these wants them numbered in the 
TOC).


I currently call the author name in the TOC with:

\define[1]\SectionTocEntry{%

\leftaligned{#1}\par% title. \leftaligned is needed

\hskip1cm\relax\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}%

}

\setuphead[chapter] of course includes number=no.

\setuplist[chapter] is currently set as:

[label=yes,distance=1.2cm,style=normal,before=\blank,after=\blank,textstyle=normal,alternative=c,textcommand=\SectionTocEntry,]

And for the moment I simply use, as part of the \startchapter[] 
description: list={1. This is the rather long title of the first 
chapter, with the number included at the beginning}.


While that gives me the number of the chapter, it does not give me 
correct indentation when the chapter title runs to more than one line. 
What I would prefer to do is to be able to call the chapter number 
automatically with placing 1., 2., etc. in list={}.


Julian
___
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] help with facing page image

2022-03-11 Thread jbf via ntg-context
Thanks Wolfgang. This version is the 'icing on the cake' I think, a 
further refined version of the suggestion put forward by Sreeram.


Grateful as always,

Julian

On 11/3/22 23:36, Wolfgang Schuster wrote:

\definepageinjectionalternative
  [chapter:image]
  [renderingsetup=pageinjection:chapter:image]

\startsetups [pageinjection:chapter:image]
  \centerbox{\externalfigure[\dummyparameter{name}]}
\stopsetups

\definepageinjection
  [chapter:start]
  [empty]
  [page=left]

\definepageinjection
  [chapter:insert]
  [previouspage]
  [alternative=chapter:image,
   offset=1cm,
   pagestate=stop]

\setuphead
  [chapter]
  [beforesection={\pageinjection[chapter:start]},
insidesection={\pageinjection[chapter:insert][name={chapter-\namedheadnumber{chapter}}]}] 



\setuppagenumbering
  [alternative=doublesided]

\setupexternalfigures
  [location=default]

\useexternalfigure [chapter-1] [mill]   [factor=max]
\useexternalfigure [chapter-2] [hacker] [orientation=90,scale=2000]
\useexternalfigure [chapter-3] [cow] [orientation=90,height=\framedwidth]

\starttext

\startchapter [title={Mill}]
\dorecurse{7}{\samplefile{lorem}}
\stopchapter

\startchapter [title={Hacker}]
\dorecurse{11}{\samplefile{lorem}}
\stopchapter

\startchapter [title={cow}]
\dorecurse{7}{\samplefile{lorem}}
\stopchapter

\stoptext 

___
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] help with facing page image

2022-03-10 Thread jbf via ntg-context
Using your example, Sreeram, but adapting it to my own set of images 
(which are not cows or spiders!) I can now see clearly how to make use 
of all the essential information that had initially been provided by 
Wolfgang, and also the important hint, which I had clumsily and 
unsuccessfully been trying anyway before he offered it, from Aditya, 
about passing key value parameters along the lines of Wolfgang's 'name 
='. It simply did not occur to me to do this using 'factor= '. But there 
was much more about the example I would not have worked out by myself as 
well!


Thank you (all) for your patience.

Julian

On 10/3/22 17:51, śrīrāma wrote:

On Thursday, March 10, 2022 3:32 AM jbf via ntg-context wrote:

Am endeavouring to explore Wolfgang's very 'elegant' solution to this
facing page challenge. The exploration has included a look at
base/mkxl/page-inj.mklx (thanks Sreeram for reminding me of this) where
I see immediately that the approach is experimental and where it says
also that 'probably more alternatives will be added'. I wonder if that
last phrase also includes the ability to manipulate the image(s) either
generally or in individual cases?


The following example is based on Wolfgang's solution using injections: I have 
modified the setup slightly to hook into \externalfigure's {width, height, 
orientation} using user-variables. With this I think you can place any kind of 
image (portrait or landscape) correctly by using width, height, and rotation.

I picked up some images of cows, 'spider', 'hacker' and 'mill' and have them 
renamed as {chap-cover-1, ... chap-cover-6} for a total of 6 chapter images.

%%% start example
\definepageinjectionalternative
[chapter:image]
[renderingsetup=pageinjection:chapter:image]

\startsetups [pageinjection:chapter:image]
\clip
   [width=\framedwidth,height=\framedheight]
   {\centerbox{%
  \externalfigure
 [\dummyparameter{name}]
 [%factor=,
  width=\structureuservariable{width},
  height=\structureuservariable{height},
  orientation=\structureuservariable{rotation}]%
   }}
\stopsetups

\definepageinjection
[chapter:start]
[empty]
[page=left]

\definepageinjection
[chapter:insert]
[previouspage]
[alternative=chapter:image,
   pagestate=stop]

\setuphead
[chapter]
[beforesection={\pageinjection[chapter:start]},
   
insidesection={\pageinjection[chapter:insert][name=\structureuservariable{image}]}]

\setuphead
[chapter]
[beforesection={\pageinjection[chapter:start]},
   
insidesection={\pageinjection[chapter:insert][name={chap-cover-\namedheadnumber{chapter}}]}]


\setuppagenumbering
[alternative=doublesided]

\setupexternalfigures
[location=default]

\starttext
   \startchapter [title={Mill}] [rotation=90,width=\paperheight]
   \dorecurse{7}{\samplefile{lorem}}
   \stopchapter

   \startchapter [title={Mill}] [rotation=-90,width=\paperheight]
   \dorecurse{11}{\samplefile{lorem}}
   \stopchapter

   \startchapter [title={Mill}] [rotation=-90,width=\paperheight]
   \dorecurse{7}{\samplefile{lorem}}
   \stopchapter

   \startchapter [title={Mill}] [rotation=90,width=\paperheight]
   \dorecurse{7}{\samplefile{lorem}}
   \stopchapter

   \startchapter [title={Mill}] [rotation=-45,width=\paperwidth]
   \dorecurse{11}{\samplefile{lorem}}
   \stopchapter

   \startchapter [title={Mill}] [height=\paperheight]
   \dorecurse{7}{\samplefile{lorem}}
   \stopchapter
\stoptext
%%% end example

Sreeram



___
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] help with facing page image

2022-03-09 Thread jbf via ntg-context

If you mean

\setuphead

[chapter]

[beforesection={\pageinjection[chapter:start]},

insidesection={\pageinjection[chapter:insert][name=\structureuservariable{image}][name=\structureuservariable{scale}]}]

\starttext

\startchapter[title={My title}] [image=Chapter1.jpg][scale=500]

\setups[pageinjection:chapter:image]

\dorecurse{7}{\samplefile{lorem}}

\stopchapter

I tried that (and a few other combinations of the kind) but to no effect.

Julian

On 10/3/22 16:35, Aditya Mahajan via ntg-context wrote:

On Thu, 10 Mar 2022, jbf via ntg-context wrote:


Am endeavouring to explore Wolfgang's very 'elegant' solution to this
facing page challenge. The exploration has included a look at
base/mkxl/page-inj.mklx (thanks Sreeram for reminding me of this) where
I see immediately that the approach is experimental and where it says
also that 'probably more alternatives will be added'. I wonder if that
last phrase also includes the ability to manipulate the image(s) either
generally or in individual cases?

So, for example., say I need (and in fact I do!) to change some aspect
of individual images, e.g. I might want to scale=500, or fiddle with
width/height of a particular image. At the moment I cannot see a way of
doing this for each image. I wondered if the commented out setups in the
response to this question might be a clue, but so far haven't been able
to get that to have any effect.

Couldn't you just pass scale as a key-value parameter, similar to how `name` is 
passed in Wolfgang's solution?

Aditya
___
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] help with facing page image

2022-03-09 Thread jbf via ntg-context
Am endeavouring to explore Wolfgang's very 'elegant' solution to this 
facing page challenge. The exploration has included a look at 
base/mkxl/page-inj.mklx (thanks Sreeram for reminding me of this) where 
I see immediately that the approach is experimental and where it says 
also that 'probably more alternatives will be added'. I wonder if that 
last phrase also includes the ability to manipulate the image(s) either 
generally or in individual cases?


So, for example., say I need (and in fact I do!) to change some aspect 
of individual images, e.g. I might want to scale=500, or fiddle with 
width/height of a particular image. At the moment I cannot see a way of 
doing this for each image. I wondered if the commented out setups in the 
response to this question might be a clue, but so far haven't been able 
to get that to have any effect.


Julian

On 8/3/22 05:35, Wolfgang Schuster wrote:

jbf via ntg-context schrieb am 07.03.2022 um 09:27:
Appreciate your assistance. I'll do my best with what you offer here. 
Of course, I've always said these images are at the beginning, not 
"the end of their respective chapters" and I've already indicated how 
the images are named, simply as Chapter1.jpg  and so on, so I'll need 
to work around these differences in your example. But with trial and 
error, let's hope I get there!


The example below uses a different mechanism to add images at the 
start of a chapter. In the example you have to pass the name of image 
as userdata argument of \startchapter but in the commented \setuphead 
setting you can see how this can be automated.


 begin example
% \definepageinjectionalternative
%   [chapter:image]
%   [renderingsetup=pageinjection:chapter:image]
%
% \startsetups [pageinjection:chapter:image]
%   \clip
% [width=\framedwidth,height=\framedheight]
% {\centerbox{\externalfigure[\dummyparameter{name}][factor=min]}}
% \stopsetups

\definepageinjection
  [chapter:start]
  [empty]
  [page=left]

\definepageinjection
  [chapter:insert]
  [previouspage]
  [%alternative=chapter:image,
   pagestate=stop]

\setuphead
  [chapter]
  [beforesection={\pageinjection[chapter:start]},
insidesection={\pageinjection[chapter:insert][name=\structureuservariable{image}]}] 



% \setuphead
%   [chapter]
%   [beforesection={\pageinjection[chapter:start]},
% 
insidesection={\pageinjection[chapter:insert][name={chapter\namedheadnumber{chapter}}]}]


\setuppagenumbering
  [alternative=doublesided]

\setupexternalfigures
  [location=default]

\starttext

\startchapter [title={Mill}] [image=mill]
\dorecurse{7}{\samplefile{lorem}}
\stopchapter

\startchapter [title={Mill}] [image=mill]
\dorecurse{11}{\samplefile{lorem}}
\stopchapter

\startchapter [title={Mill}] [image=mill]
\dorecurse{7}{\samplefile{lorem}}
\stopchapter

\stoptext
 end example

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] help with facing page image

2022-03-07 Thread jbf via ntg-context
Special thanks to Sreeram, Wolfgang, Bruce, Hraban for help with this 
issue, ranging from the simplest 'manual' approach (Bruce) to one that I 
must confess I could never have thought of using: definepageinjection 
(Wolfgang). Needless to say, all contributions work, with a bit of 
adjustment in each case for my particular situation.


The one common factor in all four contributions is the use of setups, so 
a light has begun flashing for me: setups are such an important feature 
of ConTeXt for solving many problems!


Thanks to all,

Julian

On 7/3/22 18:01, śrīrāma wrote:

On Monday, March 7, 2022 11:50 AM jbf wrote:

All ten images are different, though, in my case (Chapter1.jpg,
Chapter2.jpg... Chapter10.jpg all in a pics directory, so I'd point
\setupexternalfigures to that). I wonder if there is a way to list them
so that they get called in order as chapters proceed. A kind of "if such
and such then \setlayer 1,2,3"

I think that should be easy. Suppose you have images
{chap-cover-1.jpg, chap-cover-2.jpg,  ... chap-cover-10.jpg}
each of which appear at the ends of their respective chapters, then the 
following achieves what you want (once you point ConTeXt to the right directory 
for figures of course):

% kate: hl ctx
%%% SOF
   \setuppagenumbering[alternative=doublesided]

   \definelayer
 [chapCover]
 [x=0mm,
  y=0mm,
  width=\paperwidth,
  height=\paperheight,repeat=yes]

   \startsetups chapter:before
   \doifoddpageelse{}
 {\pushbackground[page]
  \resetlayer[chapCover]
  \setlayer
  [chapCover]
  {\determineheadnumber[chapter]
   \externalfigure
 [chap-cover-\currentheadnumber]
 [width=\paperwidth]}
   \setupbackgrounds[page][background=chapCover]
   \page[empty]
   \popbackground}
   \stopsetups

   \startsetups chapter:after
   \doifoddpageelse{}
 {\page[empty]}
   \stopsetups

   \setuphead
 [chapter]
 [page=yes,
  before=\directsetup{chapter:before},
  aftersection=\directsetup{chapter:after}]

   \starttext
   \dorecurse{10}{
 \startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
   \input knuth
   \ifnum\headnumber[chapter]=5
   {\bfd five}
   \fi
   \blank
   \input tufte
   \blank
   \input ward
   \blank
   \ifnum\recurselevel=5
 \page
 \input zapf
 \input zapf
   \fi
 \stopchapter
   }
   \stoptext
%%% EOF

So we figure out which chapter we are in and then set the layer to the 
corresponding picture. Personally, I much prefer to collect all the images into 
a separate PDF with:

%%% chap-covers.tex
 \starttext
 \dorecurse{10}{\startTEXpage
 \externalfigure[chap-cover-\recurselevel]
 \stopTEXpage}
 \stoptext
%%% EOF

[and get 'chap-covers.pdf' from context]

... and then modify the 'before' setup to read as below

%%%
   \startsetups chapter:before
   \doifoddpageelse{}
 {\pushbackground[page]
  \resetlayer[chapCover]
  \setlayer
  [chapCover]
  {\determineheadnumber[chapter]
   \externalfigure
 [chap-covers]
 [page=\currentheadnumber,width=\paperwidth]}
   \setupbackgrounds[page][background=chapCover]
   \page[empty]
   \popbackground}
   \stopsetups
%%%

Sreeram



___
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] help with facing page image

2022-03-07 Thread jbf via ntg-context
Appreciate your assistance. I'll do my best with what you offer here. Of 
course, I've always said these images are at the beginning, not "the end 
of their respective chapters" and I've already indicated how the images 
are named, simply as Chapter1.jpg  and so on, so I'll need to work 
around these differences in your example. But with trial and error, 
let's hope I get there!


Thank you,

Julian


On 7/3/22 18:01, śrīrāma wrote:

On Monday, March 7, 2022 11:50 AM jbf wrote:

All ten images are different, though, in my case (Chapter1.jpg,
Chapter2.jpg... Chapter10.jpg all in a pics directory, so I'd point
\setupexternalfigures to that). I wonder if there is a way to list them
so that they get called in order as chapters proceed. A kind of "if such
and such then \setlayer 1,2,3"

I think that should be easy. Suppose you have images
{chap-cover-1.jpg, chap-cover-2.jpg,  ... chap-cover-10.jpg}
each of which appear at the ends of their respective chapters, then the 
following achieves what you want (once you point ConTeXt to the right directory 
for figures of course):

% kate: hl ctx
%%% SOF
   \setuppagenumbering[alternative=doublesided]

   \definelayer
 [chapCover]
 [x=0mm,
  y=0mm,
  width=\paperwidth,
  height=\paperheight,repeat=yes]

   \startsetups chapter:before
   \doifoddpageelse{}
 {\pushbackground[page]
  \resetlayer[chapCover]
  \setlayer
  [chapCover]
  {\determineheadnumber[chapter]
   \externalfigure
 [chap-cover-\currentheadnumber]
 [width=\paperwidth]}
   \setupbackgrounds[page][background=chapCover]
   \page[empty]
   \popbackground}
   \stopsetups

   \startsetups chapter:after
   \doifoddpageelse{}
 {\page[empty]}
   \stopsetups

   \setuphead
 [chapter]
 [page=yes,
  before=\directsetup{chapter:before},
  aftersection=\directsetup{chapter:after}]

   \starttext
   \dorecurse{10}{
 \startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
   \input knuth
   \ifnum\headnumber[chapter]=5
   {\bfd five}
   \fi
   \blank
   \input tufte
   \blank
   \input ward
   \blank
   \ifnum\recurselevel=5
 \page
 \input zapf
 \input zapf
   \fi
 \stopchapter
   }
   \stoptext
%%% EOF

So we figure out which chapter we are in and then set the layer to the 
corresponding picture. Personally, I much prefer to collect all the images into 
a separate PDF with:

%%% chap-covers.tex
 \starttext
 \dorecurse{10}{\startTEXpage
 \externalfigure[chap-cover-\recurselevel]
 \stopTEXpage}
 \stoptext
%%% EOF

[and get 'chap-covers.pdf' from context]

... and then modify the 'before' setup to read as below

%%%
   \startsetups chapter:before
   \doifoddpageelse{}
 {\pushbackground[page]
  \resetlayer[chapCover]
  \setlayer
  [chapCover]
  {\determineheadnumber[chapter]
   \externalfigure
 [chap-covers]
 [page=\currentheadnumber,width=\paperwidth]}
   \setupbackgrounds[page][background=chapCover]
   \page[empty]
   \popbackground}
   \stopsetups
%%%

Sreeram



___
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] help with facing page image

2022-03-06 Thread jbf via ntg-context
I can see how that works, Sreeram, especially the chapter:after to cope 
with the chapters ending on an even page. Though I will have to try it 
now on a copy of the real document to test it there.


All ten images are different, though, in my case (Chapter1.jpg, 
Chapter2.jpg... Chapter10.jpg all in a pics directory, so I'd point 
\setupexternalfigures to that). I wonder if there is a way to list them 
so that they get called in order as chapters proceed. A kind of "if such 
and such then \setlayer 1,2,3"


Julian

On 7/3/22 16:38, śrīrāma wrote:

On Monday, March 7, 2022 9:19 AM jbf via ntg-context wrote:

Author wants an image on facing page to each of 10 chapters in the
bodypart of the document. Assume that everything else is working
properly for this document (double-sided etc.), but other than before
chapter 1, I can't seem to get my facing page image to appear where it
should!

 From what I understood from your explanation, I have this:

%%% SOF
   % for 'mill'
   \setupexternalfigures[location={default}]

   \setuppagenumbering[alternative=doublesided]

   
\definelayer[mill][x=0mm,y=0mm,width=\paperwidth,height=\paperheight,repeat=yes]
   \setlayer[mill]{\externalfigure[mill][width=\paperwidth]}

   \startsetups chapter:before
   \doifoddpageelse{}
 {\pushbackground[page]
 \setupbackgrounds[page][background=mill]
 \page[empty]
 \popbackground}
   \stopsetups

   \startsetups chapter:after
   \doifoddpageelse{}
 {\page[empty]}
   \stopsetups

   \setuphead
 [chapter]
 [page=yes,
 before=\directsetup{chapter:before},
 aftersection=\directsetup{chapter:after}]

   \starttext
   \dorecurse{10}{
 \startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]
   \input knuth
   \blank
   \input tufte
   \blank
   \input ward
   \blank
   \ifnum\recurselevel=5
 \page
 \input zapf
 \input zapf
   \fi
 \stopchapter
   }
   \stoptext
%%% EOF

[I am just using the mill picture on every facing page of chapter]
If the chapter ends on an even page then we can insert an empty page with 
\page[empty] with [aftersection=...] in \setuphead. The [before=...] is push, 
set background to mill on a new (empty) left page and then pop back (much like 
the example from wiki).

Sreeram



___
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] help with facing page image

2022-03-06 Thread jbf via ntg-context
I wonder if someone can help me untangle the current little mess I seem 
to be creating!


Author wants an image on facing page to each of 10 chapters in the 
bodypart of the document. Assume that everything else is working 
properly for this document (double-sided etc.), but other than before 
chapter 1, I can't seem to get my facing page image to appear where it 
should!


A question along these lines (but not quite the same) was asked back in 
2019, so I started with what seemed to me to be the simplest response to 
this question. Here is what I have to get the image before Chapter 1 in 
bodymatter:


\startbodymatter

\definelayer[mylayer] % name of the layer

[x=0mm, y=0mm, % from upper left corner of paper

width=\paperwidth,height=\paperheight] % let the layer cover the full paper

\setlayer[mylayer]

[hoffset=2.5cm, voffset=3cm]

{\externalfigure[Chapter1.jpg][width=.9\textwidth]}

\doifoddpageelse

{}

{\pushbackground[page]

\setupbackgrounds[page]%[background=color,backgroundcolor=red]

[background=mylayer]

\page[empty]

\popbackground}

\startchapter[title={Prelude}] etc.

This correctly places the Chapter1.jpg on the facing page to Chapter 1. 
My problem comes with Chapter 2, since Chapter 1 finishes on an even 
page, and this means I would need a blank odd page to follow that so 
that Chapter2.jpg (a different image to the first) can be on the verso 
of that and the Chapter itself would then start on the odd page facing that.


I think the \doiffoddpageelse command above is only meant to work when a 
chapter ends on an odd, not an even page, but I do not know what 
alternative command to give.


Repeating the above set of commands prior to \startchapter for chapter 2 
places the image, naturally enough, behind the last page of text for 
Chapter 1, which is unacceptable, so I thought I could simply add a 
blank page or two after the chapter and it would all fall into place. I 
tried various ways of doing that (e.g. \page[+2], or using makeup 
pages), and while I can add pages that way, I can't get the image to 
appear.


No doubt the solution is simple enough. It might also lie in the 
\setuphead[chapter] arrangement too. I've tried page=yes there, but to 
no avail. I also tried \ startsetups[chapter:before] with the 
pushbackground etc command and added that in with 
before=\directsetup{chapter:before} as suggested in the wiki, but 
couldn't get that to work either. By that stage I was so tangled up in 
the problem I may not have been able to think straight :-). Somehow, 
though, I think most of the elements are there.


Any help would be appreciated.

Julian
___
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] footnote width in specific paragraph instance

2022-02-19 Thread jbf via ntg-context
And indeed it does! I should have just kept playing with my basic 
"width=" insight, especially since I was already talking about "textarea"!


Thanks Sreeram,

Julian

On 20/2/22 16:00, śrīrāma wrote:


On Sunday, February 20, 2022 5:57 AM jbf via ntg-context wrote:

Is there a way I can get the footnote not to break after 'overleaf' and
be normal textarea width instead? I did try \setupfootnotes[width=broad]
but that did not help.

\setupnote[footnote][width=\textwidth] seems to work.

[Not sure if that is the right way though]

śrīrāma (Sreeram)



___
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] footnote width in specific paragraph instance

2022-02-19 Thread jbf via ntg-context
I need to typeset a document that contains many poetry/verse examples, 
and am using \defineparagraphs[mypar][n=2] for the purpose. In one 
specific case a footnote is required. All good except that the footnote 
is the width of one of those two 'columns', not the usual textarea width.


Here is the current setup (the 'poem' environment is previously defined 
and not relevant here for my problem):


\startmypar

\startpoem

red desert dust

invades every crevice –

vast deserts

that we inhabit

inhabit us\footnote{The ‘reddesert dust...’ is adapted from Matthew 
diNevop. 103.}


\stoppoem

\nextmypar

\startpoem

{\emI will lead you

into the wilderness,

speak fondly to you

of my everlasting love

my unfailing kindness}

\stoppoem

\stopmypar

The resulting footnote:

1. The ‘red desert dust...’ verse overleaf is adapted from Matthew di 
Nevo p. 103


Is there a way I can get the footnote not to break after 'overleaf' and 
be normal textarea width instead? I did try \setupfootnotes[width=broad] 
but that did not help.


Julian
___
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] \hyphenatedurl in non-hyphenation context

2022-02-14 Thread jbf via ntg-context
You could try this (note the url setup then called in before 
\hyphenatedurl):


\setuppapersize[A6]

\setuphead[chapter][align={right,nothyphenated}]

\startsetupsurl

\setupalign[hyphenated]

\stopsetups

\starttext

\chapter[title={asdfasdf\goto{\setup[url]\hyphenatedurl{https://doi.org/10.12345/12345.12345}}[url(https://doi.org/10.12345/12345.12345)]}]

bla

\stoptext

Julian

On 14/2/22 22:17, Denis Maier via ntg-context wrote:


Hi,

I have defined chapter headings set to nothyphenated. Yet, sometimes 
occur DOIs in these chapter headings, and I would obviously want those 
to be broken across lines.


%

\setuppapersize[A6]

\setuphead[chapter][align={right,nothyphenated}]

\starttext

\chapter[title={asdf asdf 
\goto{\hyphenatedurl{https://doi.org/10.12345/12345.12345}}[url(https://doi.org/10.12345/12345.12345)]}]


bla

\stoptext

%

For now, I’m changing the definition to 
\setuphead[chapter][align={right,lesshyphenation}], but is there a way 
to disable hyphenation, but still break urls across lines?


Best,

Denis


___
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] sorting for particular sub entries to register

2022-02-01 Thread jbf via ntg-context

Thanks Robert,

Initially I thought it would probably be Lua which could come up with a 
simple solution, though Hans had made it clear that 'messing with' the 
key was the way to go, and, as always, he was proven correct. I simply 
had to find out the best way to do the messing! But when time allows I 
will take a closer look at the Lua possibilities.


Julian

On 1/2/22 18:49, Robert via ntg-context wrote:

Hi Julian,

Another solution could be to use Lua.

I have a multilingual document in which some elements to be printed 
bold (Language 1), and collected in an index (trk) arranged according 
their (verbal) stems. Elements from Language 2 are to be printed in 
italics in the text and collected in a separate index.


In the present example the morphemes from Language 2 are separated by 
::, the verbal stem ends in -.


In \\textbf the input is reproduced as is. Then interesting things 
happen in the index (trk).


The first element (until the first ::) is taken as an main entry in 
the index (hence !). Then the complete input is retained as the 
secondary entry. Note that in the index - separates the morphemes.


I use LuaLatex, but I am quite sure this is also possible in Context.

It is quite complex, but it works.

Robert


\newcommand{\TWI}[1]{\directlua{twi_help(\luastring{#1})}}

\begin{luacode}
function twi_help ( s )
   s = unicode.utf8.gsub (s, 
'^([^:]+)::([^:]+)::([^:]+)::([^:]+)::([^:]+)$' , 
'\\textbf{%1::%2::%3%::%4::%5}\\sindex%[trk%]{%#%1!%1%-%2%-%3%-%4-%5}’ )


  s = unicode.utf8.gsub … other action

\end{luacode}

\begin{document}

text text text text \TWI{dī-::dū::kin::dah} text text text text text

\end{document}



Op 1 feb. 2022, om 01:41 heeft jbf via ntg-context 
 het volgende geschreven:


Yes, Adam, that works. Though it can be a laborious solution, since 
it means creating keys for everything in a sub entry list (and I have 
many instances, 40 or more in some cases). However, I did not ask for 
a 'simple' solution, just a solution! Thank you.


Julian

On 1/2/22 11:09, Adam Reviczky wrote:

Hi Julian,

How about using the keys in every instance?

\setupregister[index][n=1,method={zc,pc,zm,pm,uc},style=WORD]
\defineprocessor[special][style=italic]

\starttext
P\index[Plenary+periti]{Plenary Council+{\it periti} (experts)}
B\index[Plenary+beriti]{Plenary Council+{\it beriti} (experts)}
A\index[Plenary+aeriti]{Plenary Council+aeriti (experts)}

S\index[animals+special]{animals+‘special kinds’}
B\index[animals+bpecial]{animals+bpecial}
A\index[animals+apecial]{animals+‘apecial’}
U\index[animals+upecial]{animals+‘upecial’}
T\index[animals+tpecial]{animals+tpecial}

\placeindex
\stoptext

See result in: 
https://live.contextgarden.net/cgi-bin/result.cgi?id=j46XhZ


Adam

On Mon, Jan 31, 2022 at 10:38 PM jbf via ntg-context 
 wrote:


Let me come back to the unresolved (for me) question of two
situations in sub entries to a book index (register). Sub
entries that have formatting or sub entries that are surrounded
by quote marks (straight or curly, it makes no difference) do
not appear in the correct alphabetical order.

Two attempts on my part:

text before \index[Plenary+periti]{Plenary Council+{\it periti}
(experts)} text after.

text before \index{animals+‘special kinds’} text after. Or
alternatively, \index[animals+special]{animals+‘special kinds’}

The setup for my register is a pretty standard one. The
processor is not for the 'periti' case above but I use it for
book titles.

\setupregister[index][n=1,method={zc,pc,zm,pm,uc},style=WORD]

\defineprocessor[special][style=italic]

In the periti case it is the \it command that clearly interferes
with correct alphabetic positioning in the sub entry list.
Placing +periti in the key does not overcome that problem.

In the ‘special kinds’ case it is the initial single quote mark
(‘) that causes the problem. The item comes last in the sub
entry list. And if i include a key [special], then it comes
first in the sub entry list. Either way, it is out of the
desired sorting order.

I believe I have followed the helpful suggestions of various
ones, but it is always possible that I have not fully understood
those suggestions. The reality is that at the moment the issue
remains unresolved for me. Any further wisdom out there to offer me?

Julian


___
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] sorting for particular sub entries to register

2022-01-31 Thread jbf via ntg-context
Yes, Adam, that works. Though it can be a laborious solution, since it 
means creating keys for everything in a sub entry list (and I have many 
instances, 40 or more in some cases). However, I did not ask for a 
'simple' solution, just a solution! Thank you.


Julian

On 1/2/22 11:09, Adam Reviczky wrote:

Hi Julian,

How about using the keys in every instance?

\setupregister[index][n=1,method={zc,pc,zm,pm,uc},style=WORD]
\defineprocessor[special][style=italic]

\starttext
P\index[Plenary+periti]{Plenary Council+{\it periti} (experts)}
B\index[Plenary+beriti]{Plenary Council+{\it beriti} (experts)}
A\index[Plenary+aeriti]{Plenary Council+aeriti (experts)}

S\index[animals+special]{animals+‘special kinds’}
B\index[animals+bpecial]{animals+bpecial}
A\index[animals+apecial]{animals+‘apecial’}
U\index[animals+upecial]{animals+‘upecial’}
T\index[animals+tpecial]{animals+tpecial}

\placeindex
\stoptext

See result in: https://live.contextgarden.net/cgi-bin/result.cgi?id=j46XhZ

Adam

On Mon, Jan 31, 2022 at 10:38 PM jbf via ntg-context 
 wrote:


Let me come back to the unresolved (for me) question of two
situations in sub entries to a book index (register). Sub entries
that have formatting or sub entries that are surrounded by quote
marks (straight or curly, it makes no difference) do not appear in
the correct alphabetical order.

Two attempts on my part:

text before \index[Plenary+periti]{Plenary Council+{\it periti}
(experts)} text after.

text before \index{animals+‘special kinds’} text after. Or
alternatively, \index[animals+special]{animals+‘special kinds’}

The setup for my register is a pretty standard one. The processor
is not for the 'periti' case above but I use it for book titles.

\setupregister[index][n=1,method={zc,pc,zm,pm,uc},style=WORD]

\defineprocessor[special][style=italic]

In the periti case it is the \it command that clearly interferes
with correct alphabetic positioning in the sub entry list. Placing
+periti in the key does not overcome that problem.

In the ‘special kinds’ case it is the initial single quote mark
(‘) that causes the problem. The item comes last in the sub entry
list. And if i include a key [special], then it comes first in the
sub entry list. Either way, it is out of the desired sorting order.

I believe I have followed the helpful suggestions of various ones,
but it is always possible that I have not fully understood those
suggestions. The reality is that at the moment the issue remains
unresolved for me. Any further wisdom out there to offer me?

Julian


___
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] sorting for particular sub entries to register

2022-01-31 Thread jbf via ntg-context
Let me come back to the unresolved (for me) question of two situations 
in sub entries to a book index (register). Sub entries that have 
formatting or sub entries that are surrounded by quote marks (straight 
or curly, it makes no difference) do not appear in the correct 
alphabetical order.


Two attempts on my part:

text before \index[Plenary+periti]{Plenary Council+{\it periti} 
(experts)} text after.


text before \index{animals+‘special kinds’} text after. Or 
alternatively, \index[animals+special]{animals+‘special kinds’}


The setup for my register is a pretty standard one. The processor is not 
for the 'periti' case above but I use it for book titles.


\setupregister[index][n=1,method={zc,pc,zm,pm,uc},style=WORD]

\defineprocessor[special][style=italic]

In the periti case it is the \it command that clearly interferes with 
correct alphabetic positioning in the sub entry list. Placing +periti in 
the key does not overcome that problem.


In the ‘special kinds’ case it is the initial single quote mark (‘) that 
causes the problem. The item comes last in the sub entry list. And if i 
include a key [special], then it comes first in the sub entry list. 
Either way, it is out of the desired sorting order.


I believe I have followed the helpful suggestions of various ones, but 
it is always possible that I have not fully understood those 
suggestions. The reality is that at the moment the issue remains 
unresolved for me. Any further wisdom out there to offer me?


Julian
___
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] registers, how to ignore quote marks

2022-01-30 Thread jbf via ntg-context
No, I had already tried that. It places the subentry at the top of the 
list of subentries, not in its correct alphabetical order. Using the 
example below, I assume you meant (I am including text before and after):


The \index[Plenary+periti]{Plenary Council+{\it periti} (experts)} group 
comprises 10 members.


There are nine subentries altogether, and quite a number under 'p', like 
\index{Plenary Council+preparations for}. The italicised /periti /should 
come just before the latter (preparations for) but, using the double key 
above it comes first in the list. The same happens with the subentry 
surrounded by single quotes. It too comes first in the list if I use a 
double key. So clearly it is the fact that there is formatting ({\it 
something}) or quotes ({‘word’}) in a subentry that causes the problem, 
and I am wondering how to overcome this.


Julian

On 30/1/22 20:59, Hans Hagen wrote:
2. \index{Plenary Council+{\it periti} (experts)}: in this case it is 
the italicised /periti/ that appears out of place, after the letter 
'i' rather than after 'p'. Again I tried putting various keys but 
this did not help.


I guess my confusion is this: I assumed that the [key] establishes 
the literal string which determines sort order. That seems to be the 
case for a main entry. How do I get it to work for a subentry?

just provide an extra key: ___
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] registers, how to ignore quote marks

2022-01-29 Thread jbf via ntg-context
The several responses to my floundering with the register have been very 
helpful, though I would have to confess that I have ended up 'messing 
with' things (suggested by Hans re the [key]) and getting a satisfactory 
result in almost every case without always understanding why. But I can 
say that I have the 'sorting' issue resolved if it is a main entry, 
including if that entry is surrounded by quote marks or has one part of 
that entry formatted differently (e.g. italics).


But I don't seem able to apply this to subentries! I cannot solve the 
sorting of subentries that have special features (e.g. I might have 
needed italics for part of a subentry, or the subentry is surrounded by 
quote marks).


Here are my two situations (and in each case they appear out of 
alphabetical order in the subentry list):


1. \index{animals+‘special kinds’}: in this case ‘special kinds’ appears 
in the subentry list at the bottom of the list, after one that starts 
with 'v'. I 'messed with' this by adding keys, e.g., \index[Animals] 
etc. but  the item disappeared from the index altogether.


2. \index{Plenary Council+{\it periti} (experts)}: in this case it is 
the italicised /periti/ that appears out of place, after the letter 'i' 
rather than after 'p'. Again I tried putting various keys but this did 
not help.


I guess my confusion is this: I assumed that the [key] establishes the 
literal string which determines sort order. That seems to be the case 
for a main entry. How do I get it to work for a subentry?


Julian

On 29/1/22 21:39, Hans Hagen wrote:

On 1/29/2022 11:02 AM, jbf via ntg-context wrote:
Thanks for this response. I'll have to work on this (but tomorrow... 
it's late at night for me at the moment). I can see part of what you 
mean: I can use, for example \index[myindex]{\it Book title} (Book 
Author) and get the correct result, but not sorted properly, so I 
have to understand how, as you say, to 'set the sort entry to the 
unformatted version' which is not clear to me at the moment. I'll 
tackle it on the morrow when I'm thinking more clearly!

there is key and entry with key between []

when sorting, the key wins but because there can be duplicates the 
entry itself is also part of the final sort key


the accumulates sort key is sanitized and after that sorting happens 
in several stages (these can be defined / adapted) according to 
language, taking numbers into account and finally using the unicode 
ordering ...


you can fool the system by messing with the [key]

it's not the easiest subsystem (but it has a long history ... as with 
many subsystems the principles are not much different than mkii and 
the code seldom changes but of course evolved)


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/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] registers, how to ignore quote marks

2022-01-29 Thread jbf via ntg-context
Thanks for this response. I'll have to work on this (but tomorrow... 
it's late at night for me at the moment). I can see part of what you 
mean: I can use, for example \index[myindex]{\it Book title} (Book 
Author) and get the correct result, but not sorted properly, so I have 
to understand how, as you say, to 'set the sort entry to the unformatted 
version' which is not clear to me at the moment. I'll tackle it on the 
morrow when I'm thinking more clearly!


Julian


On 29/1/22 20:43, Henning Hraban Ramm via ntg-context wrote:


Am 29.01.22 um 06:23 schrieb jbf via ntg-context:
Any thoughts (but I'm pretty sure this isn't fully explained in the 
wiki) how I can get part of the index entry in italics and part 
normal? That might be a bit more difficult I think.


If you want to format the page number or the whole entry, you can use 
processors. But if you want to format only parts of the entry, I don’t 
see an other solution than to use formatting in the entry and set the 
sort entry to the unformatted version like:


\index[myindexentry]{{\it my} index entry}

otherwise the name of the used commands/macros is used for the index 
ordering.


Hraban

___ 

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] registers, how to ignore quote marks

2022-01-28 Thread jbf via ntg-context
Well done Adam - or should I say well read in the Wiki! For all my 
reading of it I still hadn't cottoned on to that. There are several of 
these cases, but I have been able to fix them all now. Thank you.


Any thoughts (but I'm pretty sure this isn't fully explained in the 
wiki) how I can get part of the index entry in italics and part normal? 
That might be a bit more difficult I think.


Julian
___
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] registers - only part of an entry to be italics

2022-01-28 Thread jbf via ntg-context
Let me add one more difficulty I have come across with registers. I need 
the title of a book to be in italics (and know exactly how to do that 
with \defineprocessor), but the author's name to follow is to be normal, 
not italic. So I need: /book name/, author name.


I tried setting up a second \defineprocessor with style=normal and 
introducing that after the first one in an index entry, but I can see 
that only one processor can be introduced in an entry, not two. How can 
I achieve the desired result?


Julian
___
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] registers, how to ignore quote marks

2022-01-28 Thread jbf via ntg-context
I have an issue that has been raised at least twice in this list but as 
far as I can see it has not received an answer. Perhaps someone can help 
with the following?


I have an index entry that has unicode quote marks either side: 
‘Innovative Beings’.  I need to retain those quote marks. If I put 
\index{‘Innovative’} then ‘Innovative’ is sorted under ‘ instead of 
under the letter I. How do I get my indexing to ignore the quote marks, 
at the very least the initial one?


My index setup at the moment is as follows:

\defineregister[index][compress=yes]

\setupregister[index][n=1]

\defineprocessor[special][style=italic]

The only hint I could gain from the wiki was that it might depend on 
using a method key in \setupregister, but I could not see which to use. 
Tried a few and got weird results.


Julian
___
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] OT world history: other measuring systems?

2022-01-26 Thread jbf via ntg-context
Just be careful, though (writing as a native English speaker), because 
the word 'polymath' for English speaker is not a reference to 
mathematicians at all. (Greek/mathē/ means 'learning' not mathematics). 
Translators are well aware of the danger of homonyms, and if you go for 
a title like Manual for Polymathematicians, then the word is being 
wrongly used. There is a word 'polymath' in English, but not 
'polymathematician', unless of course you make it clear that it is 
merely a play on words. But personally, I'd avoid that.


Julian

On 26/1/22 20:36, Hans Hagen via ntg-context wrote:

On 1/26/2022 10:23 AM, Jean-Pierre Delange via ntg-context wrote:
In line with what Otared writes about the measurement of distances in 
the context of Persia and ancient Rome, I am always very surprised to 
see the precision of the measurements in the evaluation of the 
circumference of the earth by Eratosthenes of Cyrene. What intrigues 
me is not really the geometry calculations involved, but the 
calculation of the distance between Aswan and Alexandria. There is 
little information on the taking of this measurement: is it Egyptian 
surveyors (bematists: https://en.wikipedia.org/wiki/Bematist) or the 
use of an instrument equivalent to a pedometer? see here: 
https://en.wikipedia.org/wiki/Eratosthenes

   Eratosthenes of Cyrene was a Greek polymath ...

Ah ... that makes a great subtitle for Mikaels upcoming math manual: 
"A manual for polymathematicians"


   A polymath (Greek: πολυμαθής, polymathēs, "having learned much";

and then we can talk 'polymathematical typesetting' and such (I'm sure 
that Arthur can come up with a reflective historical tex-talk.)


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/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] poetry \startlines and tab

2022-01-11 Thread jbf via ntg-context
For poetry that has non-regular indentations, I simply 
\definelines[poem] and set that up the way I want, obviously, with 
\setuplines[poem]  e.g. [before={\blank 
\setupinterlinespace[line=2.5ex]},after={\blank},indenting=first].


And then, but I guess it is still a hack, I use \hskip at a suitable 
dimension whenever I need indented lines:


\startpoem
This is line one,
\hskip1em{This is line two}
This is line three,
\hskip1em{This is line four,}
\hskip1em{This is line five.}

\rightaligned{Poet's name}
\stoppoem

Julian

On 11/1/22 1:01 pm, Youssef Cherem via ntg-context wrote:

Hello,

I needed to typeset some poetry and noticed that

\startlines[space=on]

Some line with tab % doesn't work, no spaces added

Some line with spaces %work

\stoplines

Is there a way to make the "tab" render the space "as is"?


___
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] Getting ONE, TWO... for chapters

2022-01-01 Thread jbf via ntg-context

I knew it had to be simple! Just couldn't get the right combinations.

Feliz Año Nuevo para ti también, y muchas gracias,

Julian

On 2/1/22 7:56 am, Jairo A. del Rio wrote:



El sáb, 1 ene 2022 a la(s) 15:37, jbf via ntg-context 
(ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>) escribió:


Am typesetting a book that has 'STUDY ONE', 'STUDY TWO' etc. in
place of
CHAPTER ONE, etc. I have no difficulty getting 'STUDY' with
\setuplabeltext[chapter=STUDY~], and I can achieve 'STUDY One'
with the
key conversion=Words in \setuphead[chapter].

My question: how do I get ONE instead of One.

I tried conversion=WORDS (or WORD), but that is not recognised and
the
output then becomes STUDY 1, which I don't want.

I also tried playing with
\definestructureconversionset[myconversion][
,A,] then adding the numberconversionset=myconversion to \setuphead.

There must be a simple way to achieve the desire result, and to be
honest I'm wondering why WORD does not work? Any thoughts?


Like this?

\setuplabeltext[chapter={Study~,}]
\setuphead[chapter][conversion=words,numberstyle=\WORDS]
\starttext
\startchapter[title=Feliz año nuevo!]
\input{tufte}
\stopchapter
\stoptext

I hope it helps. Happy new year!

Jairo

Julian


___
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
<http://www.ntg.nl/mailman/listinfo/ntg-context>
webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl> /
http://context.aanhet.net <http://context.aanhet.net>
archive  : https://bitbucket.org/phg/context-mirror/commits/
<https://bitbucket.org/phg/context-mirror/commits/>
wiki     : http://contextgarden.net <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] Getting ONE, TWO... for chapters

2022-01-01 Thread jbf via ntg-context
Am typesetting a book that has 'STUDY ONE', 'STUDY TWO' etc. in place of 
CHAPTER ONE, etc. I have no difficulty getting 'STUDY' with 
\setuplabeltext[chapter=STUDY~], and I can achieve 'STUDY One' with the 
key conversion=Words in \setuphead[chapter].


My question: how do I get ONE instead of One.

I tried conversion=WORDS (or WORD), but that is not recognised and the 
output then becomes STUDY 1, which I don't want.


I also tried playing with \definestructureconversionset[myconversion][ 
,A,] then adding the numberconversionset=myconversion to \setuphead.


There must be a simple way to achieve the desire result, and to be 
honest I'm wondering why WORD does not work? Any thoughts?


Julian

___
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] adjusting vertical space

2021-11-25 Thread jbf via ntg-context
That was the clue I needed - in particular the use of minus values, 
which I had entirely overlooked. And since \vskip works, so, therefore, 
does simple \blank with a minus value (and better style!), and for that 
matter also \hskip to make micro horizontal adjustments. In the end, so 
simple and another lesson learned - look to the simple rather than the 
more complicated solutions first.


Thank you for the patient mentoring.

Julian

On 25/11/21 7:22 pm, Henning Hraban Ramm via ntg-context wrote:

Am 25.11.21 um 00:06 schrieb jbf via ntg-context:
The following MWE produces a passable result for a half-title page, 
but I need to reduce the vertical space between 'A JOURNEY' and 'from 
the' so that the 'h' of the 'the' is just touching the baseline of 
the 'R' in JOURNEY. At the moment there is some distance between them.


I thought I could do this with \setupinterlinespace[] (not 
represented in the MWE because it did not work) but no matter what 
dimensions I put in there, it makes no difference. Is there another 
way I can make infinitesimal adjustments to distance between the two 
lines in question?


You can try \offset[y=-3pt]{your text} or \vskip-3pt

Not good style, but could work.

Hraban
___ 

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] adjusting vertical space

2021-11-24 Thread jbf via ntg-context
The following MWE produces a passable result for a half-title page, but 
I need to reduce the vertical space between 'A JOURNEY' and 'from the' 
so that the 'h' of the 'the' is just touching the baseline of the 'R' in 
JOURNEY. At the moment there is some distance between them.


I thought I could do this with \setupinterlinespace[] (not represented 
in the MWE because it did not work) but no matter what dimensions I put 
in there, it makes no difference. Is there another way I can make 
infinitesimal adjustments to distance between the two lines in question?


Julian


\startstandardmakeup[top=]
\startalignment[middle]

\definedfont[name:SemplicitaPro-Medium.ttf*default at 34pt]
\color[gray]{A JOURNEY}

\definedfont[name:baskerville-italic.ttf*default at 26pt]
\color[gray]{from the}

\definedfont[name:SemplicitaPro-Medium.ttf*default at 34pt]
\color[gray]{BEGINNING}
\stopalignment
\stopstandardmakeup
\startstandardmakeup[top= ]

___
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] rule beneath chapter number

2021-11-12 Thread jbf via ntg-context
In fact, in this instance, adjusting the roffset solved the problem, and 
I didn't see any marked change using the proportional tabular 
(monospaced?) fontfeature you suggest, though it is an interesting point 
to bear in mind in the future. I'd always thought of proportional versus 
tabular rather than proportional + tabular.


Julian

On 12/11/21 7:09 pm, Henning Hraban Ramm via ntg-context wrote:

\definefontfeature[ptabnum][default][
   onum=no,pnum=yes,tnum=yes,
]

___
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] rule beneath chapter number

2021-11-11 Thread jbf via ntg-context
Thanks Aditya. Option 1 is simple enough. Not sure why that eluded me 
earlier! Option 2 gives me a little more choice, I think. I'd being 
playing with framed but could quite get it right.


It does seem, though, just using '1' as the chapter number for the 
moment, that the underline is not quite centered; almost but not quite. 
So am playing around with the roffset to adjust that.


Julian

On 12/11/21 3:49 pm, Aditya Mahajan via ntg-context wrote:

On Fri, 12 Nov 2021, jbf via ntg-context wrote:


The following MWE deliberately shows two ways of getting a short rule
beneath a chapter number, but neither achieve what I want. \underbar is
too close to the number

\setupbar[underbar][offset=-0.8] % play around with the number


and \crlf\blackrule too far below. So basically
my question is: is there a way of adjusting the position of a brief rule
beneath the number?

\defineframed[underbarframed]
  [
frame=off,
rulethickness=1pt,
bottomframe=on,
frameoffset=-1pt, % negative of rulethickness
boffset=0.8ex, % play around with this
  ]


Aditya
___
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] rule beneath chapter number

2021-11-11 Thread jbf via ntg-context
The following MWE deliberately shows two ways of getting a short rule 
beneath a chapter number, but neither achieve what I want. \underbar is 
too close to the number and \crlf\blackrule too far below. So basically 
my question is: is there a way of adjusting the position of a brief rule 
beneath the number? It probably involves neither of the approaches I 
have used here, but I am not sure just what approach to take, other than 
using a background layer... and maybe that is what I need to do.


Julian

\define[2]\MyChapterCommand%
{\framed[frame=on,bottomframe=off,leftframe=off,rightframe=off,topframe=off,align=middle]
 {\vbox{\headtext{chapter} 
\underbar{#1}\crlf\blackrule[height=.1\exheight]\crlf#2}}}


\setuphead[chapter][
    header=empty,
    alternative=middle,
    style={\ssb},
    number=yes,
    command=\MyChapterCommand,
    after={\blank[big]},
    ]

\setuplabeltext[chapter= ]
\starttext
\chapter[title={Chapter title}]
\stoptext

___
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] repeat layer recto pages

2021-11-09 Thread jbf via ntg-context

Muchas gracias Pablo, that was most helpful, and of course it works.

The particular part that I was missing (there was already 
alternative=doublesided in the preamble) of course was the 
\startsectionblockenvironment[bodypart], so thanks for highlighting that.


I was also a bit confused about the difference between state=repeat and 
repeat=yes, and I can see that both do work in the snippet you gave me, 
so perhaps there is no difference between these?


Julian

On 10/11/21 2:05 am, Pablo Rodriguez via ntg-context wrote:

On 11/9/21 4:18 AM, jbf via ntg-context wrote:

I want a particular layer to repeat on recto pages only, but I don't
want this to happen in frontmatter, only in bodymatter.

This is what I have done, just before the first chapter after
\startbodymatter (but unsuccessfully; the layer repeats for every page
at the moment. I must have omitted something).

Hi Julian,

this is what you want:

   \startsectionblockenvironment[bodypart]
 \setupbackgrounds
   [rightpage]
   [background=butterfly]
   \stopsectionblockenvironment


\startbodymatter

\setupbackgrounds
   [rightpage]
   [background=butterfly]

\startchapter[title={Chapter title}]
\definelayer[butterfly]
      [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight]
\setlayer[butterfly]
      [hoffset=.99\textwidth, voffset=1cm]
      {\externalfigure[bfly.jpg][width=1.5cm]}
\setupbackgrounds[page][background=butterfly]

The last line adds backgrounds to every page. And without doublesided,
there are not right and left pages.

And you don’t need the \define and \setlayer after \startchapter.

A complete sample would read:

   \setuppagenumbering[alternative=doublesided]
   \definelayer[butterfly][state=repeat]
   \setlayer[butterfly]
 [hoffset=.99\textwidth, voffset=1cm]
 {butterfly}
   \startsectionblockenvironment[bodypart]
 \setupbackgrounds
   [rightpage]
   [background=butterfly]
   \stopsectionblockenvironment

   \def\rubbish%
 {\dorecurse{2}
   {\chapter{Chapter}
 \dorecurse{25}{\input knuth}}}
   \starttext
   \startfrontmatter
   \rubbish
   \stopfrontmatter
   \startbodymatter
   \rubbish
   \stopbodymatter
   \startappendices
   \rubbish
   \stopappendices
   \startbackmatter
   \rubbish
   \stopbackmatter
   \stoptext

I hope it helps,

Pablo
___
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] repeat layer recto pages

2021-11-08 Thread jbf via ntg-context
I want a particular layer to repeat on recto pages only, but I don't 
want this to happen in frontmatter, only in bodymatter.


This is what I have done, just before the first chapter after 
\startbodymatter (but unsuccessfully; the layer repeats for every page 
at the moment. I must have omitted something).


\startbodymatter

\setupbackgrounds
 [rightpage]
 [background=butterfly]

\startchapter[title={Chapter title}]
\definelayer[butterfly]
    [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight]
\setlayer[butterfly]
    [hoffset=.99\textwidth, voffset=1cm]
    {\externalfigure[bfly.jpg][width=1.5cm]}
\setupbackgrounds[page][background=butterfly]

etc.

Any thoughts?

Julian

___
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] new upload

2021-10-13 Thread jbf via ntg-context
In fact, Hans, that was going to be my comment after updating yesterday 
to the 10-10-21 version: some of the breaks were a bit overdone. Are 
these changes you indicate as tests actually included in the latest 
upload, or should I wait a bit?


Julian

On 14/10/21 2:34 am, Hans Hagen via ntg-context wrote:

influences the pagebreaks in relation to inserts (footnotes) in a more 
significant way than one would expect. 

___
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] body text and footnote space

2021-10-12 Thread jbf via ntg-context
Ah, I see the latest is 10 Oct. Mine is 17 September, so I'll upgrade 
and see the difference, hopefully.


Thanks

Julian

On 12/10/21 10:25 pm, Hans Hagen wrote:

On 10/12/2021 3:09 AM, jbf via ntg-context wrote:

Dear list,

I note previous discussions on the matter of body text invading 
footnote space (as late as last year). As I am currently typesetting 
a 400 plus page academic text with hundreds of footnotes, and do not 
have the option of making them endnotes, I am facing this issue page 
after page. The only solution I have for now is to make per page 
layout adjustments to reduce a line or two, so there is a way to 
handle it, but given ConTeXt's 'perfection' generally, I would be 
very interested to know if there is any other solution forthcoming. 
I've tried various options in \setupfootnotes and \setuptolerance', 
but to no avail.

Is this still the case in the latest version?

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/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] body text and footnote space

2021-10-11 Thread jbf via ntg-context

Dear list,

I note previous discussions on the matter of body text invading footnote 
space (as late as last year). As I am currently typesetting a 400 plus 
page academic text with hundreds of footnotes, and do not have the 
option of making them endnotes, I am facing this issue page after page. 
The only solution I have for now is to make per page layout adjustments 
to reduce a line or two, so there is a way to handle it, but given 
ConTeXt's 'perfection' generally, I would be very interested to know if 
there is any other solution forthcoming. I've tried various options in 
\setupfootnotes and \setuptolerance', but to no avail.


Julian

___
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] \hyphenatedurl

2021-09-29 Thread jbf via ntg-context
At the moment \hyphenatedurl is not working for me in the latest LMTX 
but is in MkIV. Am I the only one experiencing this? I am aware that I 
am using a rather special typeface (Atkinson Hyperlegible) but am not 
sure if that would cause a problem... it doesn't for MkIV.


Julian

___
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] [External] special case of hskip...?

2021-09-28 Thread jbf via ntg-context
Der! Of course... 'Introduction' is phantom! So something like 'Intro' 
brings it back to where I want. Thanks.


Julian

On 29/9/21 2:17 pm, Rogers, Michael K wrote:

Can you stick "\phantom{Introduction:}"  in front of “DIsability”?

Michael


On Sep 28, 2021, at 11:08 PM, jbf via ntg-context  wrote:

In just one instance I would like the following to work differently:

\startchapter[title={Introduction\\Disability and 
marginalisation},list={Introduction:\crlf Disability and marginalisation}].

That gives me:

Introduction:
Disability and marginalisation

But I would like to have:

Introduction:
 Disability and marginalisation

Is there some way I can provide a space (whose amount I can determine 
specifically) after the \crlf in list={}? Effectively I am trying to provide a 
space at the beginning of a line, and I know I can't use \indentation or 
similar here.

I may have to do it back at the preamble level by setting up a different kind 
of \setuphead, but I was hoping that in just this one case I could do it inside 
the existing setup.

Julian

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

maillist : ntg-context@ntg.nl / 
https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ntg.nl%2Fmailman%2Flistinfo%2Fntg-contextdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294886446%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=H8fboaArho8j7xXLUKeE0DVLRdFrUpqU6bVD3xiC1KA%3Dreserved=0
webpage  : 
https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.pragma-ade.nl%2Fdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294886446%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=i2QT5FCZ3W9Het59v8N7gHdWZR%2BEQFBSskz10uep71Q%3Dreserved=0
 / 
https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcontext.aanhet.net%2Fdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294886446%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=w6LxBKRsOc7MyBCYT6AvoePEgs6EbC8Uhdlj08nO6Gw%3Dreserved=0
archive  : 
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbitbucket.org%2Fphg%2Fcontext-mirror%2Fcommits%2Fdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294896440%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=vOPJYlZeb0xh9Empn6375r7roMzB%2F3u%2B9nUWz24ISaQ%3Dreserved=0
wiki : 
https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcontextgarden.net%2Fdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294896440%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=yE%2BbqpTLsZoGPWJPzddhBCZ803EhbUDuKwSAKSFdv80%3Dreserved=0
___

___
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] [External] special case of hskip...?

2021-09-28 Thread jbf via ntg-context
That kind of works, Michael. It's a new one on me, but I guess it's from 
TeX. Is it controllable? E.g., if I wanted to bring the resulting line 
back by, say, 3mm?


Julian

On 29/9/21 2:17 pm, Rogers, Michael K wrote:

Can you stick "\phantom{Introduction:}"  in front of “DIsability”?

Michael


On Sep 28, 2021, at 11:08 PM, jbf via ntg-context  wrote:

In just one instance I would like the following to work differently:

\startchapter[title={Introduction\\Disability and 
marginalisation},list={Introduction:\crlf Disability and marginalisation}].

That gives me:

Introduction:
Disability and marginalisation

But I would like to have:

Introduction:
 Disability and marginalisation

Is there some way I can provide a space (whose amount I can determine 
specifically) after the \crlf in list={}? Effectively I am trying to provide a 
space at the beginning of a line, and I know I can't use \indentation or 
similar here.

I may have to do it back at the preamble level by setting up a different kind 
of \setuphead, but I was hoping that in just this one case I could do it inside 
the existing setup.

Julian

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

maillist : ntg-context@ntg.nl / 
https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ntg.nl%2Fmailman%2Flistinfo%2Fntg-contextdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294886446%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=H8fboaArho8j7xXLUKeE0DVLRdFrUpqU6bVD3xiC1KA%3Dreserved=0
webpage  : 
https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.pragma-ade.nl%2Fdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294886446%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=i2QT5FCZ3W9Het59v8N7gHdWZR%2BEQFBSskz10uep71Q%3Dreserved=0
 / 
https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcontext.aanhet.net%2Fdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294886446%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=w6LxBKRsOc7MyBCYT6AvoePEgs6EbC8Uhdlj08nO6Gw%3Dreserved=0
archive  : 
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbitbucket.org%2Fphg%2Fcontext-mirror%2Fcommits%2Fdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294896440%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=vOPJYlZeb0xh9Empn6375r7roMzB%2F3u%2B9nUWz24ISaQ%3Dreserved=0
wiki : 
https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcontextgarden.net%2Fdata=04%7C01%7Cmroge02%40emory.edu%7Cd3ee036baef14a0a7b1e08d982f6796a%7Ce004fb9cb0a4424fbcd0322606d5df38%7C0%7C0%7C637684818294896440%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=yE%2BbqpTLsZoGPWJPzddhBCZ803EhbUDuKwSAKSFdv80%3Dreserved=0
___

___
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] special case of hskip...?

2021-09-28 Thread jbf via ntg-context

In just one instance I would like the following to work differently:

\startchapter[title={Introduction\\Disability and 
marginalisation},list={Introduction:\crlf Disability and marginalisation}].


That gives me:

Introduction:
Disability and marginalisation

But I would like to have:

Introduction:
    Disability and marginalisation

Is there some way I can provide a space (whose amount I can determine 
specifically) after the \crlf in list={}? Effectively I am trying to 
provide a space at the beginning of a line, and I know I can't use 
\indentation or similar here.


I may have to do it back at the preamble level by setting up a different 
kind of \setuphead, but I was hoping that in just this one case I could 
do it inside the existing setup.


Julian

___
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] manual hyphenation LMTX

2021-09-27 Thread jbf via ntg-context
I may have seen a response to this at some stage in the list, but I 
cannot find it.


\- works for manual hyphenation in Mkiv but not (for me at least) in LMTX.

My general setting  is \setupalign [hz, 
nothyphenated,stretched,verytolerant] because I am typesetting a book 
for visually-impaired readers using Atkinson Hyperlegible, especially 
developed by the Braille Foundation. In general, hyphenation is not 
recommended for the visually-impaired, but just occasionally it becomes 
necessary.


Is there a reason for LMTX is not accepting \- or is there another way 
to achieve it in LMTX?


Julian

___
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] Getting Textadept to open pdf?

2021-09-27 Thread jbf via ntg-context
Thanks, I reinstalled a later version of Textadept. I notice that it now 
opens the pdf product but in Xreader, the default on my machine, and 
that's no real problem, but now that I have got it working I can 
experiment a bit. Interesting, though, that the changes I made at your 
suggestion in l-pdfview.lua are not effective (I would have expected it 
to be okular). But I guess there is no harm done.


Julian

On 27/9/21 1:41 pm, Jairo A. del Rio wrote:



El dom, 26 de sep. de 2021 a la(s) 22:29, jbf (roma83...@gmail.com 
<mailto:roma83...@gmail.com>) escribió:


Hmm. I'm not using evince (could, I suppose) but I see that in the
file you mention there is already:

['okular']    = [[okular --unique "%filename%"]], and I have
already adapted the init.lua file in /.texadept to use okular
rather than sumatra, with textadept.run.compile_commands.tex =
'/home/me/bin/context/tex/texmf-linux-64/bin/mtxrun --autogenerate
--script context --autopdf=okular "%f"'

So, following your logic, I should then only need to add, further
on, pdfview.method = "okular", which I have done, but still no joy.

In such a case, you only need to comment on the second option, i. e. 
Sumatra:


    --The last one wins
    pdfview.method = "okular"
    --pdfview.method = "sumatra" -- faster and more complete

I haven't edited textadept settings btw, so it works for me with 
--autopdf alone.


Julian


On 27/9/21 1:06 pm, Jairo A. del Rio wrote:

Hi. Maybe there's an easier way to do it without changing any
file or via mtxrun's command line, but the following is what I do:

In l-pdfview.lua (mkiv folder, lines from 38) PDF view options
are available. I've added

['evince']    = [[evince "%filename%"]] -- My favorite viewer

And then, after pdfview.method assignments,

pdfview.method = "evince"

Now textadept opens the .tex file once compiled. I don't know if
making the format again is mandatory, but it doesn't hurt,
anyways. I hope this helps.
    Best regards,

    Jairo



El dom, 26 de sep. de 2021 a la(s) 20:54, jbf via ntg-context
(ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>) escribió:

The occasional response to a similar question can be found,
e.g. on
stackexchange, but none of the responses work for me.

Textadept is very fast at compiling (and does compile
correctly). I can
certainly open the pdf independently in various pdf viewers,
but I
cannot get Textadept to automatically open, say, Okular
(installed on
Linux Mint), at the end of the process.

The last part of the log reads:

mkiv lua stats  > runtime: 0.640 seconds, 8 processed pages,
8 shipped
pages, 12.492 pages/second
mtx-context | pdfview methods: auto default okular pdfxcview
sumatra, current method: okular (directives_pdfview_method)
pdfview | command: okular --unique "test1.pdf"
1>/dev/null
2>/dev/null &
mtx-context | pdfview overhead: 0.001 seconds
system  | total runtime: 0.649 seconds of 0.701 seconds

 > exit status: 0

Have tried setting up a custom text editor on okular with:
/home/me/.textadept "%f" -e
textadept.editing.goto_line(%l-1), as
suggested by one response, but to no avail. Current version
of ConTeXt
is 2021.09.17 10:01

Anyone tried Textadept successfully and might have a suggestion?

Julian


___
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
<http://www.ntg.nl/mailman/listinfo/ntg-context>
webpage  : http://www.pragma-ade.nl
<http://www.pragma-ade.nl> / http://context.aanhet.net
<http://context.aanhet.net>
archive  : https://bitbucket.org/phg/context-mirror/commits/
<https://bitbucket.org/phg/context-mirror/commits/>
wiki     : http://contextgarden.net <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] Getting Textadept to open pdf?

2021-09-26 Thread jbf via ntg-context
Hmm. I'm not using evince (could, I suppose) but I see that in the file 
you mention there is already:


['okular']    = [[okular --unique "%filename%"]], and I have already 
adapted the init.lua file in /.texadept to use okular rather than 
sumatra, with textadept.run.compile_commands.tex = 
'/home/me/bin/context/tex/texmf-linux-64/bin/mtxrun --autogenerate 
--script context --autopdf=okular "%f"'


So, following your logic, I should then only need to add, further on, 
pdfview.method = "okular", which I have done, but still no joy.


Julian


On 27/9/21 1:06 pm, Jairo A. del Rio wrote:
Hi. Maybe there's an easier way to do it without changing any file or 
via mtxrun's command line, but the following is what I do:


In l-pdfview.lua (mkiv folder, lines from 38) PDF view options are 
available. I've added


['evince']    = [[evince "%filename%"]] -- My favorite viewer

And then, after pdfview.method assignments,

pdfview.method = "evince"

Now textadept opens the .tex file once compiled. I don't know if 
making the format again is mandatory, but it doesn't hurt, anyways. I 
hope this helps.

Best regards,

Jairo



El dom, 26 de sep. de 2021 a la(s) 20:54, jbf via ntg-context 
(ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>) escribió:


The occasional response to a similar question can be found, e.g. on
stackexchange, but none of the responses work for me.

Textadept is very fast at compiling (and does compile correctly).
I can
certainly open the pdf independently in various pdf viewers, but I
cannot get Textadept to automatically open, say, Okular (installed on
Linux Mint), at the end of the process.

The last part of the log reads:

mkiv lua stats  > runtime: 0.640 seconds, 8 processed pages, 8
shipped
pages, 12.492 pages/second
mtx-context | pdfview methods: auto default okular pdfxcview
sumatra, current method: okular (directives_pdfview_method)
pdfview | command: okular --unique "test1.pdf" 1>/dev/null
2>/dev/null &
mtx-context | pdfview overhead: 0.001 seconds
system  | total runtime: 0.649 seconds of 0.701 seconds

 > exit status: 0

Have tried setting up a custom text editor on okular with:
/home/me/.textadept "%f" -e textadept.editing.goto_line(%l-1), as
suggested by one response, but to no avail. Current version of
ConTeXt
is 2021.09.17 10:01

Anyone tried Textadept successfully and might have a suggestion?

Julian


___
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
<http://www.ntg.nl/mailman/listinfo/ntg-context>
webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl> /
http://context.aanhet.net <http://context.aanhet.net>
archive  : https://bitbucket.org/phg/context-mirror/commits/
<https://bitbucket.org/phg/context-mirror/commits/>
wiki     : http://contextgarden.net <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] Getting Textadept to open pdf?

2021-09-26 Thread jbf via ntg-context
The occasional response to a similar question can be found, e.g. on 
stackexchange, but none of the responses work for me.


Textadept is very fast at compiling (and does compile correctly). I can 
certainly open the pdf independently in various pdf viewers, but I 
cannot get Textadept to automatically open, say, Okular (installed on 
Linux Mint), at the end of the process.


The last part of the log reads:

mkiv lua stats  > runtime: 0.640 seconds, 8 processed pages, 8 shipped 
pages, 12.492 pages/second
mtx-context | pdfview methods: auto default okular pdfxcview 
sumatra, current method: okular (directives_pdfview_method)
pdfview | command: okular --unique "test1.pdf" 1>/dev/null 
2>/dev/null &

mtx-context | pdfview overhead: 0.001 seconds
system  | total runtime: 0.649 seconds of 0.701 seconds

> exit status: 0

Have tried setting up a custom text editor on okular with: 
/home/me/.textadept "%f" -e textadept.editing.goto_line(%l-1), as 
suggested by one response, but to no avail. Current version of ConTeXt 
is 2021.09.17 10:01


Anyone tried Textadept successfully and might have a suggestion?

Julian

___
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] footnote not appearing

2021-07-28 Thread jbf via ntg-context
You are correct Hans, I was using Mk IV luatex as the engine, though I 
could use lmtx. It's just that in a production environment I need to be 
absolutely sure things work (printers deadlines and that sort of thing!) 
and I know that the MkIV luatex scene always works. But I'll give the 
lmtx a run on this particular text without postponing and see how it 
goes, since I already have a working result from the other.


Julian

On 28/7/21 5:32 pm, Hans Hagen wrote:

On 7/27/2021 11:46 PM, jbf via ntg-context wrote:
No, in fact I discovered that \startpostponingnotes is what is 
needed. localfootnotes does work but places the footnote immediately 
below the framed text, and I wanted it to appear in the usual 
footnote location, which is achieved with startpostponingnotes


I assume that you use(d) mkiv/luatex and not lmtx/luametatex.

Footnotes are in tex speak 'inserts' and at some point they are 
filtered and added to the datastructure (list) that is taken into 
account when breaking a page.


When tex was written, the main application was books like those of Don 
Knuth where inserts like notes occur at the outer level. However, a 
macro package like context has all kind of complex deeply nested 
elements and there these notes just disappear. The main (and valid) 
reason is that it becomes kind of unpredictable what inserts are and 
where they have to go. (This is one reason why as soon as a macro 
package provides more functionality and control it also becomes much 
larger deep down.)


For this footnote-text-getting-lost problem, in mkii a solution became 
local notes and postponing.


In mmkiv it became a bit more clever and there is also an 
automigration features although in some cases that gives other side 
effects so it's not turned on by default.


In lmtx we use some new insert related features in luametatex so 
that's what I'll discuss next. (One can quit reading if not interested.)


Although it is still not trivial to deal with these things (keep in 
mind that users combine all mechanism which means that all mechanisms 
should be able to cooperate) in luametatex the inserts can bubble up 
which means that footnotes eventually will end up at the outer level.


So, if you use lmtx, ideally there is no need to use postponing (you 
can try your exapmle in lmtx without postponing).


For the curious ... the low level mechanisms involved in this can also 
be used for other purposes although currently this is not done. There 
is plenty of relative new functionality that can/will be applied some 
day.


Here is an example:

\setbox0\hbox{\strut this is just a test}

\setprelistbox 0\hbox{\strut \quad before}
\setpostlistbox0\hbox{\strut \quad after}

test \par \box0 \par test

Here \setprelistbox and \setpostlistbox are macros that (ab)use these 
hooks into lists. They will stay but keep in mind that when you use 
them they can interfere with for instance already present inserts.


Take this:

\starttext

\setbox0\hbox{\strut this is just a\footnote{oeps} test}
\setbox2\hbox{\strut this is just a\footnote{oeps} test}

\setprelistbox 0\hbox{\strut \quad before: \prelistbox0}
\setpostlistbox0\hbox{\strut \quad after: \postlistbox0}

\setprelistbox 2\hbox{\strut \quad before}
\setpostlistbox2\hbox{\strut \quad after}

test \par \box0 \par \box2 \par test

\stoptext

If you look carefully you'll see / can deduce what happens with 
inserts in luamatetatex.


Boxes are a major thing in tex, paragraphs are too, so here's another 
(already described elsewhere) trick with hooks,


(\wrapuppar{)}some text and some more text and ...

(\wrapuppar{\removeunwantedspaces)}some text and some more text and ...

test\wrapuppar{\crlf\ignorepars}

test

test\wrapuppar{\ignorepars}

test

test\wrapuppar{\removeunwantedspaces\ignorepars}

test

These are actually features that are already around and (so far) have 
proven to work ok. Especially the last examples are real tricky 
because you don't know if other mechanisms also use these (some 
already do) but all this box and pas stuff might eventually come with 
more high level interfaces (there is already one for the par stuff, 
not yet for the box stuff). But as with other such mechanism, one 
cannot rely on a naive approach and just assume the single case usage, 
only the user knows where it might interfere. On the other hand, low 
level box magick like the above will work ok because it's just that box.


Welcome to the world of (new) low level context trickery, which is and 
eventually will be described in the lowlevel-* manuals (after all I 
need topics for occasional presentations and those need to be new and 
if possible challenging.)


Hans


Julian

On 27/7/21 7:42 pm, Henning Hraban Ramm via ntg-context wrote:
Am 27.07.2021 um 06:07 schrieb jbf via ntg-context 
:


Is there any reason why the following MWE does not produce the 
footnote at the bottom of the page? It seems like the use of 
framedtext is preventing it, but am not sure why. Can I get around

Re: [NTG-context] footnote not appearing

2021-07-27 Thread jbf via ntg-context
No, in fact I discovered that \startpostponingnotes is what is needed. 
localfootnotes does work but places the footnote immediately below the 
framed text, and I wanted it to appear in the usual footnote location, 
which is achieved with startpostponingnotes


Julian

On 27/7/21 7:42 pm, Henning Hraban Ramm via ntg-context wrote:

Am 27.07.2021 um 06:07 schrieb jbf via ntg-context :

Is there any reason why the following MWE does not produce the footnote at the 
bottom of the page? It seems like the use of framedtext is preventing it, but 
am not sure why. Can I get around this problem and still have framed text?

Julian

\setupframed[location=middle]

\startframedtext[width=.77\makeupwidth,corner=round]
The poems of St John of the Cross have been important for me in recent years. 
This is John’s prayer from a verse in his Spiritual Canticle:\footnote{John of 
the Cross, {\em Spiritual Canticle}, stanza 32.  }

\startblockquote
You looked with love upon me, and deep within, your eyes imprinted grace. This 
mercy set me free, held in your love’s embrace, to lift my eyes adoring to your 
face.
\stopblockquote

I wonder how often John prayed that prayer.
\stopframedtext

Maybe localfootnotes are the solution (didn’t try):
https://wiki.contextgarden.net/Footnotes#Footnotes_in_Floats

Hraban
___
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] solved problem of footnote in framed text

2021-07-26 Thread jbf via ntg-context
I solved my own problem of the footnote not appearing. Discovered 
\startpostponingnotes! That solved the problem.


Julian

___
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] footnote not appearing

2021-07-26 Thread jbf via ntg-context
Is there any reason why the following MWE does not produce the footnote 
at the bottom of the page? It seems like the use of framedtext is 
preventing it, but am not sure why. Can I get around this problem and 
still have framed text?


Julian

\setupframed[location=middle]

\startframedtext[width=.77\makeupwidth,corner=round]
The poems of St John of the Cross have been important for me in recent 
years. This is John’s prayer from a verse in his Spiritual 
Canticle:\footnote{John of the Cross, {\em Spiritual Canticle}, stanza 
32.  }


\startblockquote
You looked with love upon me, and deep within, your eyes imprinted 
grace. This mercy set me free, held in your love’s embrace, to lift my 
eyes adoring to your face.

\stopblockquote

I wonder how often John prayed that prayer.
\stopframedtext

___
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
___