[NTG-context] Footnote in a cell inside a row into a table !

2024-10-11 Thread Jean-Pierre Delange
Dear users,
I'm struggling with a bibliographic reference that I want to integrate after a 
name that happens to be in a cell, itself located in a table. All my code 
works, except for the bibliographic reference given by the footnote and the 
\cite command. Here's the line as it appears in my code:

\startxtable[option=stretch, align={middle,lohi}, frame=off, distance=0.5em]
\startxrow
\startxcell \em Ambrosianus\footnote{Cf. 
\cite[alternative=entry][Bibliography::mai1]} \stopxcell
\stopxrow
\stopxtable

All preliminary declarations into the file are made correctly, as is the 
backmatter. The PDF output is correct, but the bibliographic reference is not 
displayed. I seem to vaguely remember a message pointing out a similar 
difficulty. By coding the bibliographic reference outside the cell, the whole 
text display is correct, but the bibliographic reference is not displayed. 

I’m testing this code under Mac OSX : system > ConTeXt ver: 2022.01.06 19:51 
LMTX fmt: 2022.1.7 int: English/English and I’m satisfied with the work it is 
doing.
Any idea about what I could looking for ?

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.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
___


Re: [NTG-context] footnote width in specific paragraph instance

2022-02-19 Thread śrīrāma via ntg-context
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
___


[NTG-context] footnote interaction in titles

2021-08-09 Thread Adam Reviczky via ntg-context
Hi,

I probably shouldn't use footnotes within titles, but I am misusing the
title elements for a quick interview style document (I use them in the ToC).

One thing I have noticed is that interaction style (color and styles) are
not applied in the footnote and footnote numbering.
Is that a side effect or intended like that?

A half-workaround is to apply the styles directly, but not sure how I can
force the numbering style (same-page reference).

See MWE:

\setupinteraction[state=start]
\starttext
\startchapter[title={Long question with footnote \footnote{see: \goto{
https://wiki.contextgarden.net}[url(https://wiki.contextgarden.net)]}
and with a workaround \footnote{see: \goto{\bf\startcolor[darkgreen]
https://wiki.contextgarden.net\stopcolor}[url(https://wiki.contextgarden.net
)]}?}]
\input knuth
\footnote{see: \goto{https://wiki.contextgarden.net}[url(
https://wiki.contextgarden.net)]}
\stopchapter
\stoptext

It is not crucial, and if the behaviour is intended as such because of the
title element, that is fine, I am just curious.

Thanks,
Adam
___
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 
this probl

Re: [NTG-context] footnote not appearing

2021-07-28 Thread Henning Hraban Ramm via ntg-context


> Am 27.07.2021 um 23:46 schrieb 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

Yes, sorry, saw your second message too late.

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
___


Re: [NTG-context] footnote not appearing

2021-07-28 Thread Hans Hagen via ntg-context

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

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
___


Re: [NTG-context] footnote not appearing

2021-07-27 Thread Henning Hraban Ramm via ntg-context

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


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


[NTG-context] footnote textseparator with interactions

2021-03-16 Thread Mohammad Hossein Bateni
Hello,

See this MWE:

\setupinteraction[state=start]%,focus=standard]
\setupnote[footnote][textseparator=\textcomma]
\starttext
Sample
\footnote{First}
\footnote{Second}
\stoptext

With textseparator, the color of the two footnotes change.  Why is that?

Thanks,
Hossein
___
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 font size equal to main text font size

2020-09-16 Thread Wolfgang Schuster

Jairo A. del Rio schrieb am 15.09.2020 um 04:38:
Hi, list. I've adapted the following example from the mailing list. My 
aim is to use endnotes for each chapter:


\mainlanguage[es]
\definehead[footnotetitle][title]
\startsetups[chapter:after]
\ifcase\rawcountervalue[footnote]\relax
      \else
          \startfootnotetitle[title={Notas}]
              \placefootnotes
          \stopfootnotetitle
      \fi
\stopsetups

\setupnotes[location=none]
\setupnotation[way=bychapter]
\setupfootnotedefinition[style={\switchtobodyfont[12pt]}]

\setuphead[chapter][aftersection=\setups{chapter:after}]

\starttext

\startchapter[title={Chapter One}]

Here comes \footnote{a footnote}. Aquí \footnote{otra nota a pie de página}.

\stopchapter

\stoptext

However, I'm concerned by \switchtobodyfont. How should I make footnote 
size the same as the default font size, even when an arbitrary font size 
is used.



\starttext

First paragraph\footnote{Footnote one}

\page

\setupnote[footnote][bodyfont=]
%\setupnotation[footnote][numbercommand=]

Second paragraph\footnote{Footnote two}

\stoptext

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] Footnote font size equal to main text font size

2020-09-16 Thread Henning Hraban Ramm


> Am 15.09.2020 um 04:38 schrieb Jairo A. del Rio :
> 
> Hi, list. I've adapted the following example from the mailing list. My aim is 
> to use endnotes for each chapter:
> 
> \mainlanguage[es]
> \definehead[footnotetitle][title]
> \startsetups[chapter:after]
> \ifcase\rawcountervalue[footnote]\relax
>  \else
>  \startfootnotetitle[title={Notas}]
>  \placefootnotes
>  \stopfootnotetitle
>  \fi
> \stopsetups
> 
> \setupnotes[location=none]
> \setupnotation[way=bychapter]
> \setupfootnotedefinition[style={\switchtobodyfont[12pt]}]
> 
> \setuphead[chapter][aftersection=\setups{chapter:after}]
> 
> \starttext
> 
> \startchapter[title={Chapter One}]
> 
> Here comes \footnote{a footnote}. Aquí \footnote{otra nota a pie de página}.
> 
> \stopchapter
> 
> \stoptext
> 
> However, I'm concerned by \switchtobodyfont. How should I make footnote size 
> the same as the default font size, even when an arbitrary font size is used.
> 
> E.g.:
> 
> \setupbodyfont[24pt] % It could be another number instead of 24
> \setupfootnotedefinition[style={\switchtobodyfont[???]}]
> 
> Thank you in advance.

Try

\newdimen\Mybodyfontsize
\Mybodyfontsize=24pt

\setupbodyfont[\Mybodyfontsize]

etc.


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
___


[NTG-context] Footnote font size equal to main text font size

2020-09-14 Thread Jairo A. del Rio
Hi, list. I've adapted the following example from the mailing list. My aim
is to use endnotes for each chapter:

\mainlanguage[es]
\definehead[footnotetitle][title]
\startsetups[chapter:after]
\ifcase\rawcountervalue[footnote]\relax
 \else
 \startfootnotetitle[title={Notas}]
 \placefootnotes
 \stopfootnotetitle
 \fi
\stopsetups

\setupnotes[location=none]
\setupnotation[way=bychapter]
\setupfootnotedefinition[style={\switchtobodyfont[12pt]}]

\setuphead[chapter][aftersection=\setups{chapter:after}]

\starttext

\startchapter[title={Chapter One}]

Here comes \footnote{a footnote}. Aquí \footnote{otra nota a pie de página}.

\stopchapter

\stoptext

However, I'm concerned by \switchtobodyfont. How should I make footnote
size the same as the default font size, even when an arbitrary font size is
used.

E.g.:

\setupbodyfont[24pt] % It could be another number instead of 24
\setupfootnotedefinition[style={\switchtobodyfont[???]}]

Thank you in advance.

Jairo :)
___
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 and endnote markers aligned with the left margin of the main text

2018-08-07 Thread Pablo Rodriguez
On 08/06/2018 11:59 PM, Robert Zydenbos wrote:
> Sorry for all these footnote questions, but here's another one. I
> want to print the notes without the footnote marker jutting out into
> the margin, but flushed with the left margin of the main text.
> 
> Any help will be highly appreciated.

Hi Robert,

although you don’t mention it, I guess you need it for MkII:

\showframe
\setuppapersize[A6, landscape]
\setupnotedefinition[footnote][location=serried, distance=1em]
\starttext
a\footnote{This is a footnote.}

b\endnote{This is an endnote.}

\placenotes[endnote]
\stoptext

I hope it helps,

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

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

[NTG-context] footnote and endnote markers aligned with the left margin of the main text

2018-08-06 Thread Robert Zydenbos
Sorry for all these footnote questions, but here's another one. I want to print 
the notes without the footnote marker jutting out into the margin, but flushed 
with the left margin of the main text.

Any help will be highly appreciated.

Robert
___
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 in TABLE isn't rendered anywhere

2017-08-22 Thread Pablo Rodriguez
On 08/22/2017 03:17 AM, Brian Ballsun-Stanton wrote:
> Hi Pablo,
> 
> It helped. (The numbers are eaten, but I think the example is important. 

Hi Brian,

sorry, I simply forgot (and I didn’t see it in the sample because I
didn’t wrap everything inside a TEXpage).

\setupnotations[alternative=serried] is required here:

\setupnotes[location=text]
\setupnotations[alternative=serried]
\starttext
\bTABLE[split=repeat,align=normal]
   \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
   \bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\flushnotes
\placenotes[footnote]
\stoptext

BTW, it would be important to warn the reader that both \setupnotes and
\setupnotations are required because of the wiki.

I hope it is fine now,

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

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

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-08-21 Thread Brian Ballsun-Stanton
Hi Pablo,

It helped. (The numbers are eaten, but I think the example is important.

Thanks for your help.

-Brian

On 22 August 2017 at 03:21, Pablo Rodriguez  wrote:

> On 08/21/2017 03:15 AM, Brian Ballsun-Stanton wrote:
> > Hey folks, trying to be a good citizen, I added (And quoted) this
> > message onto the wiki:
> >
> > http://wiki.contextgarden.net/TABLE#Footnotes_in_TABLEs
> >
> > I tried for a bit to try to get the example to render, but no footnotes
> > would show at all. Anyone have thoughts as to how to get wiki rendering
> > to work here? And are there any other examples from this thread that
> > should be added?
>
> Hi Brian,
>
> footnotes in the wiki are tricky:
>
> \starttext
> \startbuffer
> \bTABLE[split=repeat,align=normal]
>\bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
>\bTR\bTD Foo\note[x] \eTD\eTR
> \eTABLE
> \flushnotes
> \stopbuffer
> \getbuffer
> \startTEXpage[offset=1em]
> \getbuffer
> \stopTEXpage
> \stoptext
>
> The second page is similar to the problem with the wiki.
>
> This might be a workaround for the wiki (if I’m not wrong):
>
> \setupnotes[location=text]
> \starttext
> \bTABLE[split=repeat,align=normal]
>\bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
>\bTR\bTD Foo\note[x] \eTD\eTR
> \eTABLE
> \flushnotes
> \placenotes[footnote]
> \stoptext
>
> Just in cases it helps,
>
> Pablo
> --
> http://www.ousia.tk
> 
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
> listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
>
___
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 in TABLE isn't rendered anywhere

2017-08-21 Thread Pablo Rodriguez
On 08/21/2017 05:57 AM, Brian Ballsun-Stanton wrote:
> Hi Alan,
> 
> I'm sorry I'm... fuzzy today.
> 
> Are you asking me to add: "\automigrateinserts" to the wiki example as a
> different mechanism to demonstrate from earlier in this thread,
> proposing it as a different solution this problem, and/or proposing it
> as a solution to the "not rendering inside the wiki ConTeXt version?

Hi Brian,

I wonder how you may define fuzziness, but your question proposes three
well-defined options ;-).

As far as I understand it, Alan was simply proposing a way to get the
footnote out of the table. I mean, to have a footnote from a table.

This is already solved with \postponenotes and \flushnotes.

The problem with the wiki is that you don’t have standard footnotes.
Because having a full page wouldn’t be helpful in most cases.

> My apologies for misunderstanding.

I hope I’m not getting Alan’s point wrong.

Just in case it helps,

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

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

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-08-21 Thread Pablo Rodriguez
On 08/21/2017 03:15 AM, Brian Ballsun-Stanton wrote:
> Hey folks, trying to be a good citizen, I added (And quoted) this
> message onto the wiki:
> 
> http://wiki.contextgarden.net/TABLE#Footnotes_in_TABLEs
> 
> I tried for a bit to try to get the example to render, but no footnotes
> would show at all. Anyone have thoughts as to how to get wiki rendering
> to work here? And are there any other examples from this thread that
> should be added?

Hi Brian,

footnotes in the wiki are tricky:

\starttext
\startbuffer
\bTABLE[split=repeat,align=normal]
   \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
   \bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\flushnotes
\stopbuffer
\getbuffer
\startTEXpage[offset=1em]
\getbuffer
\stopTEXpage
\stoptext

The second page is similar to the problem with the wiki.

This might be a workaround for the wiki (if I’m not wrong):

\setupnotes[location=text]
\starttext
\bTABLE[split=repeat,align=normal]
   \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
   \bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\flushnotes
\placenotes[footnote]
\stoptext

Just in cases it helps,

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

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

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-08-20 Thread Brian Ballsun-Stanton
Hi Alan,

I'm sorry I'm... fuzzy today.

Are you asking me to add: "\automigrateinserts" to the wiki example as a
different mechanism to demonstrate from earlier in this thread, proposing
it as a different solution this problem, and/or proposing it as a solution
to the "not rendering inside the wiki ConTeXt version?

My apologies for misunderstanding.
-Brian


On 21 August 2017 at 12:35, Alan Braslau  wrote:

> Perhaps try:
>
> \automigrateinserts
>
> this is needed to handle footnotes within a box.
>
> Alan
>
> On Mon, 21 Aug 2017 11:15:49 +1000
> Brian Ballsun-Stanton  wrote:
>
> > Hey folks, trying to be a good citizen, I added (And quoted) this
> > message onto the wiki:
> >
> > http://wiki.contextgarden.net/TABLE#Footnotes_in_TABLEs
> >
> > I tried for a bit to try to get the example to render, but no
> > footnotes would show at all. Anyone have thoughts as to how to get
> > wiki rendering to work here? And are there any other examples from
> > this thread that should be added?
> >
> > Also, thanks for this solution, Pablo, it really helped.
> >
> > On 6 July 2017 at 04:51, Pablo Rodriguez  wrote:
> >
> > > On 07/03/2017 05:00 PM, Andreas Schneider wrote:
> > > > Hello,
> > > >
> > > > in the current ConTeXt Minimals (ver: 2017.06.30 19:45 MKIV beta
> > > > fmt: 2017.7.3) the following example doesn't show any footnotes:
> > > >
> > > > 
> > > > \starttext
> > > > \bTABLE[split=repeat,align=normal]
> > > >\bTR\bTD Something\footnote[x]{bla bla}\eTD\eTR
> > > >\bTR\bTD Foo\note[x] \eTD\eTR
> > > > \eTABLE
> > > > \stoptext
> > > > 
> > >
> > > Hi Andreas,
> > >
> > > this might do what you intend:
> > >
> > > \starttext
> > > \bTABLE[split=repeat,align=normal]
> > >\bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
> > >\bTR\bTD Foo\note[x] \eTD\eTR
> > > \eTABLE
> > > \flushnotes
> > > \stoptext
> > >
> > > Just in case it helps,
> > >
> > >
> > > Pablo
> > > --
> > > http://www.ousia.tk
> > > 
> > > ___
> > > If your question is of interest to others as well, please add an
> > > entry to the Wiki!
> > >
> > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
> > > listinfo/ntg-context
> > > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > > wiki : http://contextgarden.net
> > > 
> > > ___
> > >
>
>
___
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 in TABLE isn't rendered anywhere

2017-08-20 Thread Alan Braslau
Perhaps try:

\automigrateinserts

this is needed to handle footnotes within a box.

Alan

On Mon, 21 Aug 2017 11:15:49 +1000
Brian Ballsun-Stanton  wrote:

> Hey folks, trying to be a good citizen, I added (And quoted) this
> message onto the wiki:
> 
> http://wiki.contextgarden.net/TABLE#Footnotes_in_TABLEs
> 
> I tried for a bit to try to get the example to render, but no
> footnotes would show at all. Anyone have thoughts as to how to get
> wiki rendering to work here? And are there any other examples from
> this thread that should be added?
> 
> Also, thanks for this solution, Pablo, it really helped.
> 
> On 6 July 2017 at 04:51, Pablo Rodriguez  wrote:
> 
> > On 07/03/2017 05:00 PM, Andreas Schneider wrote:  
> > > Hello,
> > >
> > > in the current ConTeXt Minimals (ver: 2017.06.30 19:45 MKIV beta
> > > fmt: 2017.7.3) the following example doesn't show any footnotes:
> > >
> > > 
> > > \starttext
> > > \bTABLE[split=repeat,align=normal]
> > >\bTR\bTD Something\footnote[x]{bla bla}\eTD\eTR
> > >\bTR\bTD Foo\note[x] \eTD\eTR
> > > \eTABLE
> > > \stoptext
> > >   
> >
> > Hi Andreas,
> >
> > this might do what you intend:
> >
> > \starttext
> > \bTABLE[split=repeat,align=normal]
> >\bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
> >\bTR\bTD Foo\note[x] \eTD\eTR
> > \eTABLE
> > \flushnotes
> > \stoptext
> >
> > Just in case it helps,
> >
> >
> > Pablo
> > --
> > http://www.ousia.tk
> > 
> > ___
> > If your question is of interest to others as well, please add an
> > entry to the Wiki!
> >
> > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
> > listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> > 
> > ___
> >  

___
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 in TABLE isn't rendered anywhere

2017-08-20 Thread Brian Ballsun-Stanton
Hey folks, trying to be a good citizen, I added (And quoted) this message
onto the wiki:

http://wiki.contextgarden.net/TABLE#Footnotes_in_TABLEs

I tried for a bit to try to get the example to render, but no footnotes
would show at all. Anyone have thoughts as to how to get wiki rendering to
work here? And are there any other examples from this thread that should be
added?

Also, thanks for this solution, Pablo, it really helped.

On 6 July 2017 at 04:51, Pablo Rodriguez  wrote:

> On 07/03/2017 05:00 PM, Andreas Schneider wrote:
> > Hello,
> >
> > in the current ConTeXt Minimals (ver: 2017.06.30 19:45 MKIV beta  fmt:
> > 2017.7.3) the following example doesn't show any footnotes:
> >
> > 
> > \starttext
> > \bTABLE[split=repeat,align=normal]
> >\bTR\bTD Something\footnote[x]{bla bla}\eTD\eTR
> >\bTR\bTD Foo\note[x] \eTD\eTR
> > \eTABLE
> > \stoptext
> > 
>
> Hi Andreas,
>
> this might do what you intend:
>
> \starttext
> \bTABLE[split=repeat,align=normal]
>\bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
>\bTR\bTD Foo\note[x] \eTD\eTR
> \eTABLE
> \flushnotes
> \stoptext
>
> Just in case it helps,
>
>
> Pablo
> --
> http://www.ousia.tk
> 
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
> listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___
>
___
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 placement

2017-07-20 Thread Meer, Hans van der

> On 21 Jul 2017, at 07:00, Pablo Rodriguez  wrote:
> 
> On 07/20/2017 10:06 PM, Meer, Hans van der wrote:
>> I did use: \setupnotes[footnote][split=verystrict,scope=page] so I guess
>> there is not much hope here.
>> 
>> A related question: the numbering of endnotes is placed in the
>> leftmargin. Is there a parameter setting that forces them in the
>> textarea of the page?  I tried \setupnotes[endnote][location=text] but
>> without success.
> 
> Hans,
> 
> \setupnotation[endnote][alternative=serried] is what you need.

Does the trick. Thanks. I was afraid I had to make an ad hoc macro, but this is 
far better.

Hans van der Meer

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

2017-07-20 Thread Pablo Rodriguez
On 07/20/2017 10:06 PM, Meer, Hans van der wrote:
> I did use: \setupnotes[footnote][split=verystrict,scope=page] so I guess
> there is not much hope here.
> 
> A related question: the numbering of endnotes is placed in the
> leftmargin. Is there a parameter setting that forces them in the
> textarea of the page?  I tried \setupnotes[endnote][location=text] but
> without success.

Hans,

\setupnotation[endnote][alternative=serried] is what you need.

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

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

Re: [NTG-context] footnote placement

2017-07-20 Thread Meer, Hans van der
I did use: \setupnotes[footnote][split=verystrict,scope=page] so I guess there 
is not much hope here.

A related question: the numbering of endnotes is placed in the leftmargin. Is 
there a parameter setting that forces them in the textarea of the page?  I 
tried \setupnotes[endnote][location=text] but without success.

Hans van der Meer




On 20 Jul 2017, at 21:33, Hans Hagen mailto:pra...@wxs.nl>> 
wrote:

On 7/20/2017 9:14 PM, Meer, Hans van der wrote:
Pablo,
[scope=page] does not help.
I did a few experiments with the following result.
If the footnote is close to the previous page, than obviously the float 
mechanism may decide to put the footnote on the previous page. This happens 
even when the footnote is in the second paragraph of that page. Only when the 
footnote is far enough from the top of the page (I have no inkling how far is 
far enough) will the footnote appear on the current page, as where one expects 
it.
I guess this is a tricky one, but perhaps Hans Hagen will know what to do or 
what to change. I am convinced he will not be afraid of some trickery:-)

if verystrict is not helping there is not much that we can do as tex decides if 
keeping note and reference on one page is possible at all given other 
constraints

(of course there can be a bug in context)

Hans van der Meer
On 20 Jul 2017, at 20:28, Pablo Rodriguez mailto:oi...@gmx.es>> 
wrote:

On 07/20/2017 11:16 AM, Meer, Hans van der wrote:
It happens that a footnote generated on a certain page is typeset on
the page preceding it. Rather than that, I would like to force a
footnote to appear either on the page where it is defined or on the
following page. Can such behaviour be enforced?
Currently this is my footnote setup:
\setupnotes   [footnote][split=verystrict]

Hans,

I would add "scope=page", but that would prevent moving the footnote to
the next page.

I don’t know whether this would prevent the footnote to be placed in the
page before where it is defined.

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

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


--

-
 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] footnote placement

2017-07-20 Thread Hans Hagen

On 7/20/2017 9:14 PM, Meer, Hans van der wrote:

Pablo,

[scope=page] does not help.

I did a few experiments with the following result.
If the footnote is close to the previous page, than obviously the float 
mechanism may decide to put the footnote on the previous page. This happens 
even when the footnote is in the second paragraph of that page. Only when the 
footnote is far enough from the top of the page (I have no inkling how far is 
far enough) will the footnote appear on the current page, as where one expects 
it.

I guess this is a tricky one, but perhaps Hans Hagen will know what to do or 
what to change. I am convinced he will not be afraid of some trickery:-)


if verystrict is not helping there is not much that we can do as tex 
decides if keeping note and reference on one page is possible at all 
given other constraints


(of course there can be a bug in context)


Hans van der Meer





On 20 Jul 2017, at 20:28, Pablo Rodriguez  wrote:

On 07/20/2017 11:16 AM, Meer, Hans van der wrote:

It happens that a footnote generated on a certain page is typeset on
the page preceding it. Rather than that, I would like to force a
footnote to appear either on the page where it is defined or on the
following page. Can such behaviour be enforced?
Currently this is my footnote setup:
\setupnotes   [footnote][split=verystrict]


Hans,

I would add "scope=page", but that would prevent moving the footnote to
the next page.

I don’t know whether this would prevent the footnote to be placed in the
page before where it is defined.

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

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


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




--

-
  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] footnote placement

2017-07-20 Thread Meer, Hans van der
Pablo,

[scope=page] does not help. 

I did a few experiments with the following result.
If the footnote is close to the previous page, than obviously the float 
mechanism may decide to put the footnote on the previous page. This happens 
even when the footnote is in the second paragraph of that page. Only when the 
footnote is far enough from the top of the page (I have no inkling how far is 
far enough) will the footnote appear on the current page, as where one expects 
it.

I guess this is a tricky one, but perhaps Hans Hagen will know what to do or 
what to change. I am convinced he will not be afraid of some trickery:-)

Hans van der Meer




> On 20 Jul 2017, at 20:28, Pablo Rodriguez  wrote:
> 
> On 07/20/2017 11:16 AM, Meer, Hans van der wrote:
>> It happens that a footnote generated on a certain page is typeset on
>> the page preceding it. Rather than that, I would like to force a
>> footnote to appear either on the page where it is defined or on the
>> following page. Can such behaviour be enforced?
>> Currently this is my footnote setup:
>> \setupnotes   [footnote][split=verystrict]
> 
> Hans,
> 
> I would add "scope=page", but that would prevent moving the footnote to
> the next page.
> 
> I don’t know whether this would prevent the footnote to be placed in the
> page before where it is defined.
> 
> Pablo
> -- 
> http://www.ousia.tk
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

2017-07-20 Thread Pablo Rodriguez
On 07/20/2017 11:16 AM, Meer, Hans van der wrote:
> It happens that a footnote generated on a certain page is typeset on
> the page preceding it. Rather than that, I would like to force a
> footnote to appear either on the page where it is defined or on the
> following page. Can such behaviour be enforced?
> Currently this is my footnote setup:
> \setupnotes   [footnote][split=verystrict]

Hans,

I would add "scope=page", but that would prevent moving the footnote to
the next page.

I don’t know whether this would prevent the footnote to be placed in the
page before where it is defined.

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

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

[NTG-context] footnote placement

2017-07-20 Thread Meer, Hans van der
It happens that a footnote generated on a certain page is typeset on the page 
preceding it. Rather than that, I would like to force a footnote to appear 
either on the page where it is defined or on the following page. Can such 
behaviour  be enforced? 
Currently this is my footnote setup:
\setupnotes   [footnote][split=verystrict]
\setupnotation[footnote][way=bypage,numberconversion=set 2,headstyle=small]

Hans van der Meer




___
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 in TABLE isn't rendered anywhere

2017-07-16 Thread Mathias Schickel

> Am 15.07.2017 um 21:55 schrieb Hans Hagen :
> 
> On 7/15/2017 9:11 PM, Alan Braslau wrote:
>> On Wed, 12 Jul 2017 19:05:26 +0200
>> Hans Hagen  wrote:
>>> best play with textbackgrounds
>>> 
>>> \starttext
>>> 
>>> \starttextbackground
>>> \dorecurse{10}{test\footnote{tufte}: \input tufte\par}
>>> \stoptextbackground
>>> 
>>> \stoptext
>>> 
>> I have found the following to be necessary when using textbackground,
>> especially when backgrounds cross page boundaries:
>> \setnewconstant\kindofpagetextareas\plusone
>> % partial page. HH: low level, no high level switch (yet)
>> Maybe Hans can explain this?
> Because it's an option (with no parameter yet .. not sure where/how to 
> configure it; for floats one can do it per float)
> 

\setnewconstant\kindofpagetextareas\plusone

That indeed solves the problem of the textbackground extended over footnotes. 
Is that anywhere documented? I did not find that anywhere. And what exactly 
does that command do?

Would it not be a good idea to add this as an option in the definition of a 
textbackground?

Mathias

> 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] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Hans Hagen

On 7/15/2017 9:11 PM, Alan Braslau wrote:

On Wed, 12 Jul 2017 19:05:26 +0200
Hans Hagen  wrote:


best play with textbackgrounds

\starttext

\starttextbackground
\dorecurse{10}{test\footnote{tufte}: \input tufte\par}
\stoptextbackground

\stoptext



I have found the following to be necessary when using textbackground,
especially when backgrounds cross page boundaries:

\setnewconstant\kindofpagetextareas\plusone
% partial page. HH: low level, no high level switch (yet)

Maybe Hans can explain this?
Because it's an option (with no parameter yet .. not sure where/how to 
configure it; for floats one can do it per float)


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] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Alan Braslau
On Wed, 12 Jul 2017 19:05:26 +0200
Hans Hagen  wrote:

> best play with textbackgrounds
> 
> \starttext
> 
> \starttextbackground
> \dorecurse{10}{test\footnote{tufte}: \input tufte\par}
> \stoptextbackground
> 
> \stoptext
> 

I have found the following to be necessary when using textbackground,
especially when backgrounds cross page boundaries:

\setnewconstant\kindofpagetextareas\plusone
% partial page. HH: low level, no high level switch (yet)

Maybe Hans can explain this?

Alan


___
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 in TABLE isn't rendered anywhere

2017-07-15 Thread Pablo Rodriguez
On 07/15/2017 08:07 PM, Mathias Schickel wrote:
>> Am 15.07.2017 um 18:07 schrieb Pablo Rodriguez:
>> [...]
>> Just in case I got you wrong: is your issue that the background also
>> covers the footnotes, such as in the first and second pages from:
>>
>>\automigrateinserts
>>\setuptextbackground[location=paragraph]
>>\starttext
>>\dorecurse{10}{\starttextbackground
>>test\footnote{tufte}: \input knuth\hfill
>>\stoptextbackground\blank}
>>\stoptext
> 
> What can be done that this does not happen? (Your example?) Here we
> have a minimal example, your own. ;-)
Report the bug so that Hans can fix it :-).

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

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

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-15 Thread Mathias Schickel

> Am 15.07.2017 um 18:07 schrieb Pablo Rodriguez :
> 
> On 07/14/2017 05:22 PM, Mathias Schickel wrote:
>> This indeed does the trick! Thank you very much! Maybe I will take
>> use of Hans’ suggestion about textbackgrounds, but as I remember I have
>> switched from those to backgrounds because they sometimes showed strange
>> behaviour at page breaks if formulas are involved (leaving far too much
>> space at the bottom of a page that could be used if I used backgrounds).
>> Maybe I will be able to write a minimal example showing this effect of
>> textbackgrounds.
>> 
>> However, I have met some issues using your solution, Aditya, with
>> \automigrateinserts. I got one text in background containing a footnote
>> that has been rendered onto the footnote. Of course this can only happen
>> if the backgrounded text appears at the bottom of a page. It is a little
>> hard to get a minimal example showing this. But I think everyone can
>> imagine what I mean.
> 
> Mathias,
> 
> it would be weird that body text ended up in a footnote, but without a
> source it will be much harder to fix the bug.

Indeed the text was written onto the text of the footnote, so both texts did 
overlap. Sadly I was not able to reproduce it, since meanwhile I did change my 
document a bit (and updated to the latest beta). But it was in combination with 
mathematical theorems (so I defined the background to highlight theorems), this 
means it was in combination with lists.

If I will run into a similar issue or will be able to reproduce it in a minimal 
example I will inform you. But in the latest test I did not get that behaviour 
even if a theorem was extended to the next page and footnotes had been at the 
first page of the theorem. So things worked fine.

> 
> Just in case I got you wrong: is your issue that the background also
> covers the footnotes, such as in the first and second pages from:
> 
>\automigrateinserts
>\setuptextbackground[location=paragraph]
>\starttext
>\dorecurse{10}{\starttextbackground
>test\footnote{tufte}: \input knuth\hfill
>\stoptextbackground\blank}
>\stoptext
> 
> Just in cas it helps,

What can be done that this does not happen? (Your example?) Here we have a 
minimal example, your own. ;-)

> 
> Pablo

Best Mathias


> -- 
> http://www.ousia.tk
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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 in TABLE isn't rendered anywhere

2017-07-15 Thread Pablo Rodriguez
On 07/14/2017 05:22 PM, Mathias Schickel wrote:
> This indeed does the trick! Thank you very much! Maybe I will take
> use of Hans’ suggestion about textbackgrounds, but as I remember I have
> switched from those to backgrounds because they sometimes showed strange
> behaviour at page breaks if formulas are involved (leaving far too much
> space at the bottom of a page that could be used if I used backgrounds).
> Maybe I will be able to write a minimal example showing this effect of
> textbackgrounds.
> 
> However, I have met some issues using your solution, Aditya, with
> \automigrateinserts. I got one text in background containing a footnote
> that has been rendered onto the footnote. Of course this can only happen
> if the backgrounded text appears at the bottom of a page. It is a little
> hard to get a minimal example showing this. But I think everyone can
> imagine what I mean.

Mathias,

it would be weird that body text ended up in a footnote, but without a
source it will be much harder to fix the bug.

Just in case I got you wrong: is your issue that the background also
covers the footnotes, such as in the first and second pages from:

\automigrateinserts
\setuptextbackground[location=paragraph]
\starttext
\dorecurse{10}{\starttextbackground
test\footnote{tufte}: \input knuth\hfill
\stoptextbackground\blank}
\stoptext

Just in cas it helps,

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

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

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-14 Thread Mathias Schickel

> Am 13.07.2017 um 01:18 schrieb Aditya Mahajan :
> 
> On Wed, 12 Jul 2017, Mathias Schickel wrote:
> 
>> Does no-one know what I can do to settle the problem?
>> [...]
>> So what can I do to get the footnotes in a background environment displayed?
> 
> \automigrateinserts
> \starttext
> \startbackground
>  This is a test\footnote{Footnote} continue
> \stopbackground
> \stoptext
> 
> According to node-mig.mkiv, this might cause problems with notes inside 
> captions.
> 
> Aditya

This indeed does the trick! Thank you very much! Maybe I will take use of Hans’ 
suggestion about textbackgrounds, but as I remember I have switched from those 
to backgrounds because they sometimes showed strange behaviour at page breaks 
if formulas are involved (leaving far too much space at the bottom of a page 
that could be used if I used backgrounds). Maybe I will be able to write a 
minimal example showing this effect of textbackgrounds.

However, I have met some issues using your solution, Aditya, with 
\automigrateinserts. I got one text in background containing a footnote that 
has been rendered onto the footnote. Of course this can only happen if the 
backgrounded text appears at the bottom of a page. It is a little hard to get a 
minimal example showing this. But I think everyone can imagine what I mean.

Maybe I will be able to produce minimal examples of both issues and then I will 
send it to the list and maybe Hans or someone with similar skills can take care 
of that effects.

Best and many thanks for the help
Mathias


> ___
> 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] Footnote in TABLE isn't rendered anywhere

2017-07-12 Thread Aditya Mahajan

On Wed, 12 Jul 2017, Mathias Schickel wrote:


Does no-one know what I can do to settle the problem?
[...]
So what can I do to get the footnotes in a background environment 
displayed?


\automigrateinserts
\starttext
\startbackground
  This is a test\footnote{Footnote} continue
\stopbackground
\stoptext

According to node-mig.mkiv, this might cause problems with notes inside 
captions.


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
___

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-12 Thread Hans Hagen

best play with textbackgrounds

\starttext

\starttextbackground
\dorecurse{10}{test\footnote{tufte}: \input tufte\par}
\stoptextbackground

\stoptext




-
  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] Footnote in TABLE isn't rendered anywhere

2017-07-12 Thread Mathias Schickel
Am 10.07.2017 um 20:23 schrieb Mathias Schickel :Am 10.07.2017 um 12:50 schrieb Pablo Rodriguez :On 07/08/2017 03:17 PM, Mathias Schickel wrote:Dear Andreas, Pablo and the list,I did read your question and answer with great interest, since Iencountered similar issues. Sadly your trick to get footnotes that aredefined in some environments like tables displayed at the bottom of thepage does not work if you try it using backgrounds. Here I provide aminimal example that shows the problem:Dear Mathias,I didn’t even know that backgrounds existed in ConTeXt.Framed texts does the trick with your sample:  \setupframedtext [width=\textwidth,  frame=on,  rulethickness=1pt,  corner=0,  offset=12pt]  \starttext  \startframedtext  If you typeset text with background,  the footnote workaround does not work.  \postponenotes\footnote{So what could  I do to get this footnote displayed?  Use framed texts.}  \stopframedtext  \flushnotes  \stoptextBut if you really need a background, I’m afraid it won’t work (or Idon’t know how to make it work).Just in case it might help,PabloDear Pablo,thank you very much for your suggestion! Sadly I have noticed that framed texts do not break across pages (at least if I simply copy and use your code). I remember that I switched to backgrounds (from \definetextbackground) because I did get problems at page breaks. Regarding that backgrounds showed the best behaviour but sadly it has the described problems using footnotes.Do you have any further suggestions how I can enable framed text to break across pages?And can anyone tell me how I can get rid of the problem of backgrounds and footnotes?Again, thank you very much for your kind help!BestMathiasDoes no-one know what I can do to settle the problem? I have created a minimal example that shows the problem using textbackground to work around the footnote problem. But sadly the framedtext environment does not seem to be able to break across pages. Besides I would prefer the background solution. So what can I do to get the footnotes in a background environment displayed?Help appreciated!BestMathiasThe minimal example follows:%%\setupbackground[	width=\textwidth,	frame=on,	framecolor=black,	rulethickness=1pt,	background="">	backgroundcolor=green,	corner=0,	before={\blank[4*small]},	after={\blank[5*small]},	topoffset=10pt,    bottomoffset=10pt,    leftoffset=10pt,   	rightoffset=10pt]\setupframedtext      [width=\textwidth,       frame=on,       framecolor=black,       rulethickness=1pt,       background="">	   backgroundcolor=red,       corner=0,       offset=12pt]     \starttext%\startbackground	%	If you typeset text with background, the footnote workaround does not work.\postponenotes\footnote{So what could I do to get this footnote displayed?}	%\stopbackground\flushnotes%\startbackground	%	One advantages of backgrounds is that they break across pages, as you can see here:	%	\dorecurse{5}{%		\input{knuth}%		}	%\stopbackground%Compare that to the output of framedtext (the gap on this page is not intended!):%\startframedtext	%	Here I am getting trouble with breaking across pages.	This was the first reason why I switched to backgrounds.	%	\dorecurse{5}{%		\input{knuth}%	}   	%\stopframedtext%\stoptext%%

FramedFootnote.pdf
Description: Adobe PDF document
-- http://www.ousia.tk___If your question is of interest to others as well, please add an entry to the Wiki!maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : 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-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : 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] Footnote in TABLE isn't rendered anywhere

2017-07-10 Thread Mathias Schickel

> Am 10.07.2017 um 12:50 schrieb Pablo Rodriguez :
> 
> On 07/08/2017 03:17 PM, Mathias Schickel wrote:
>> Dear Andreas, Pablo and the list,
>> 
>> I did read your question and answer with great interest, since I
>> encountered similar issues. Sadly your trick to get footnotes that are
>> defined in some environments like tables displayed at the bottom of the
>> page does not work if you try it using backgrounds. Here I provide a
>> minimal example that shows the problem:
> 
> Dear Mathias,
> 
> I didn’t even know that backgrounds existed in ConTeXt.
> 
> Framed texts does the trick with your sample:
> 
>\setupframedtext
>   [width=\textwidth,
>frame=on,
>rulethickness=1pt,
>corner=0,
>offset=12pt]
> 
>\starttext
>\startframedtext
>If you typeset text with background,
>the footnote workaround does not work.
>\postponenotes\footnote{So what could
>I do to get this footnote displayed?
>Use framed texts.}
>\stopframedtext
>\flushnotes
>\stoptext
> 
> But if you really need a background, I’m afraid it won’t work (or I
> don’t know how to make it work).
> 
> Just in case it might help,
> 
> Pablo

Dear Pablo,

thank you very much for your suggestion! Sadly I have noticed that framed texts 
do not break across pages (at least if I simply copy and use your code). I 
remember that I switched to backgrounds (from \definetextbackground) because I 
did get problems at page breaks. Regarding that backgrounds showed the best 
behaviour but sadly it has the described problems using footnotes.

Do you have any further suggestions how I can enable framed text to break 
across pages?

And can anyone tell me how I can get rid of the problem of backgrounds and 
footnotes?

Again, thank you very much for your kind help!

Best
Mathias
 


> -- 
> http://www.ousia.tk
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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 in TABLE isn't rendered anywhere

2017-07-10 Thread Pablo Rodriguez
On 07/08/2017 03:17 PM, Mathias Schickel wrote:
> Dear Andreas, Pablo and the list,
> 
> I did read your question and answer with great interest, since I
> encountered similar issues. Sadly your trick to get footnotes that are
> defined in some environments like tables displayed at the bottom of the
> page does not work if you try it using backgrounds. Here I provide a
> minimal example that shows the problem:

Dear Mathias,

I didn’t even know that backgrounds existed in ConTeXt.

Framed texts does the trick with your sample:

\setupframedtext
   [width=\textwidth,
frame=on,
rulethickness=1pt,
corner=0,
offset=12pt]

\starttext
\startframedtext
If you typeset text with background,
the footnote workaround does not work.
\postponenotes\footnote{So what could
I do to get this footnote displayed?
Use framed texts.}
\stopframedtext
\flushnotes
\stoptext

But if you really need a background, I’m afraid it won’t work (or I
don’t know how to make it work).

Just in case it might help,

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

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

Re: [NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-08 Thread Mathias Schickel
Dear Andreas, Pablo and the list,

I did read your question and answer with great interest, since I encountered 
similar issues. Sadly your trick to get footnotes that are defined in some 
environments like tables displayed at the bottom of the page does not work if 
you try it using backgrounds. Here I provide a minimal example that shows the 
problem:


\setupbackground[
width=\textwidth,
frame=on,
framecolor=black,
rulethickness=1pt,
background=color,
backgroundcolor=white,
corner=0,
offset=12pt]
%
\starttext
%
\startbackground
%
If you typeset text with background, the footnote workaround does not 
work.\postponenotes\footnote{So what could I do to get this footnote displayed?}
%
\stopbackground
\flushnotes
%
\stoptext


Can anyone tell me what I can do to get the footnote rendered? Thank you in 
advance.

Best regards
Mathias


> Am 06.07.2017 um 09:41 schrieb Andreas Schneider :
> 
> Am 2017-07-05 20:51, schrieb Pablo Rodriguez:
>> this might do what you intend:
>>\starttext
>>\bTABLE[split=repeat,align=normal]
>>   \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
>>   \bTR\bTD Foo\note[x] \eTD\eTR
>>\eTABLE
>>\flushnotes
>>\stoptext
>> Just in case it helps,
> 
> Hello Pablo,
> 
> yes, this does the trick. Thank you very much for that solution! :-)
> 
> Best regards
> Andreas
> ___
> 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] Footnote in TABLE isn't rendered anywhere

2017-07-06 Thread Andreas Schneider

Am 2017-07-05 20:51, schrieb Pablo Rodriguez:

this might do what you intend:

\starttext
\bTABLE[split=repeat,align=normal]
   \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
   \bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\flushnotes
\stoptext

Just in case it helps,


Hello Pablo,

yes, this does the trick. Thank you very much for that solution! :-)

Best regards
Andreas
___
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 in TABLE isn't rendered anywhere

2017-07-05 Thread Pablo Rodriguez
On 07/03/2017 05:00 PM, Andreas Schneider wrote:
> Hello,
> 
> in the current ConTeXt Minimals (ver: 2017.06.30 19:45 MKIV beta  fmt: 
> 2017.7.3) the following example doesn't show any footnotes:
> 
> 
> \starttext
> \bTABLE[split=repeat,align=normal]
>\bTR\bTD Something\footnote[x]{bla bla}\eTD\eTR
>\bTR\bTD Foo\note[x] \eTD\eTR
> \eTABLE
> \stoptext
> 

Hi Andreas,

this might do what you intend:

\starttext
\bTABLE[split=repeat,align=normal]
   \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR
   \bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\flushnotes
\stoptext

Just in case it helps,


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

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

[NTG-context] Footnote in TABLE isn't rendered anywhere

2017-07-03 Thread Andreas Schneider

Hello,

in the current ConTeXt Minimals (ver: 2017.06.30 19:45 MKIV beta  fmt: 
2017.7.3) the following example doesn't show any footnotes:



\starttext
\bTABLE[split=repeat,align=normal]
  \bTR\bTD Something\footnote[x]{bla bla}\eTD\eTR
  \bTR\bTD Foo\note[x] \eTD\eTR
\eTABLE
\stoptext


That second note reference (\note[x]) even causes a warning:


references  > unknown reference '[][x]'


(Local footnotes work in this case, but I prefer global ones.)

Best regards
Andreas
___
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 markers

2016-03-26 Thread Robert Krug
Thank you! 

Robert

> On Mar 26, 2016, at 8:00 AM, Hans Hagen  wrote:
> 
> On 3/25/2016 11:42 PM, Robert Krug wrote:
>> Greetings,
>> 
>> Is there a way to attach a footnote marker to the text following the
>> footnote, rather than to the text preceding? That is, given something
>> like:
>> 
>> Some text
>> \footnote{note.}
>> more text.
>> 
>> I would get (using an asterisk here, but that is not important):
>> 
>> Some text *more text.
>> 
>> rather than:
>> 
>> Some text* more text.
>> 
>> I am trying to re-typeset a couple of documents from circa 1600
>> where it is done that way.
>> 
>> Many thanks for Context. It is quite nifty.
> 
> i've added an option for that (experimental in beta)
> 
> \starttext
> 
>test
>\footnote{note 1}
>\footnote{note 2}
>test
> 
>\setupnotes[footnote][anchor=next]
> 
>test
>\footnote{note 3}
>\footnote{note 4}
>test
> 
> \stoptext
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | www.pragma-ade.com  | 
> www.pragma-pod.nl 
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnote markers

2016-03-26 Thread Hans Hagen

On 3/25/2016 11:42 PM, Robert Krug wrote:

Greetings,

Is there a way to attach a footnote marker to the text following the
footnote, rather than to the text preceding? That is, given something
like:

Some text
\footnote{note.}
more text.

I would get (using an asterisk here, but that is not important):

Some text *more text.

rather than:

Some text* more text.

I am trying to re-typeset a couple of documents from circa 1600
where it is done that way.

Many thanks for Context. It is quite nifty.


i've added an option for that (experimental in beta)

\starttext

test
\footnote{note 1}
\footnote{note 2}
test

\setupnotes[footnote][anchor=next]

test
\footnote{note 3}
\footnote{note 4}
test

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Footnote markers

2016-03-25 Thread Robert Krug
Greetings,

Is there a way to attach a footnote marker to the text following the
footnote, rather than to the text preceding? That is, given something
like:

Some text
\footnote{note.}
more text.

I would get (using an asterisk here, but that is not important):

Some text *more text.

rather than:

Some text* more text.

I am trying to re-typeset a couple of documents from circa 1600
where it is done that way.

Many thanks for Context. It is quite nifty.

Robert

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnote rules for bidi document

2016-01-09 Thread Mohammad Hossein Bateni
Awesome, thanks!

On Sat, Jan 9, 2016 at 8:07 AM, Hans Hagen  wrote:

> On 1/9/2016 3:15 AM, Mohammad Hossein Bateni wrote:
>
>> I updated the documentation on context garden.  Hans, I hadn't noticed
>> that you updated the macros on the same day as your last message!
>>
>> I had another question regarding the definition of notes/footnotes.  It
>> is not that important but I am curious: is it possible to define two
>> notes that are essentially the same except for some of their stylistic
>> definitions?  Let me give an example.
>>
>> some text \Afootnote{A}
>> more text \Bfootnote{B}
>> some more text \Afootnote{C}
>>
>> And I want the result at the bottom of the page to read:
>>
>> 1 A
>> 2 B
>> 3 C
>>
>> However, I'd like to have the power to control how the numbers are
>> typeset in the text and at the bottom, as well as determine the fonts,
>> etc. of \Afootnote and \Bfootnote separately.
>>
>
> \definenote[handnote][footnote] \setupnotation[handnote][style=bold]
> \definenote[earnote] [footnote] \setupnotation[earnote]
> [style=bolditalic,color=green]
> \definenote[nosenote][earnote]  \setupnotation[nosenote][color=red]
>
> \starttext
>
> a foot note \footnote{A}
> a hand note \handnote{B}
> an ear note \earnote{C}
> a nose note \nosenote{D}
>
> \stoptext
>
>
> On Mon, Jan 4, 2016 at 11:21 AM, Mohammad Hossein Bateni
>> mailto:bat...@gmail.com>> wrote:
>>
>> That said, I'm not asking for this to be the default. I only
>> want to
>> know how it can be achieved. The code will be put in my
>> style file or
>> module.
>>
>>
>> i'll add rule=paragraph (i.e. listen to the first following
>> paragraph if possible) ... you need to document it as for sure i
>> forget about it
>>
>>
>> Awesome!  Thanks, Hans!  Once this becomes available and I test it,
>> I'll update the documentation for Footnotes on Context Garden.
>>
>> Is it possible to determine the direction of the first line
>> of footnote
>> block while typesetting the footnote rule? I imagine it
>> should not be
>> difficult in Lua. Note that this may be the leftover from a
>> long
>> footnote that started on some previous page.
>>
>>
>> —MHB
>>
>>
>>
>>
>>
>> ___
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>>
>> ___
>>
>>
>
> --
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
>
> -
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnote rules for bidi document

2016-01-09 Thread Hans Hagen

On 1/9/2016 3:15 AM, Mohammad Hossein Bateni wrote:

I updated the documentation on context garden.  Hans, I hadn't noticed
that you updated the macros on the same day as your last message!

I had another question regarding the definition of notes/footnotes.  It
is not that important but I am curious: is it possible to define two
notes that are essentially the same except for some of their stylistic
definitions?  Let me give an example.

some text \Afootnote{A}
more text \Bfootnote{B}
some more text \Afootnote{C}

And I want the result at the bottom of the page to read:

1 A
2 B
3 C

However, I'd like to have the power to control how the numbers are
typeset in the text and at the bottom, as well as determine the fonts,
etc. of \Afootnote and \Bfootnote separately.


\definenote[handnote][footnote] \setupnotation[handnote][style=bold]
\definenote[earnote] [footnote] \setupnotation[earnote] 
[style=bolditalic,color=green]

\definenote[nosenote][earnote]  \setupnotation[nosenote][color=red]

\starttext

a foot note \footnote{A}
a hand note \handnote{B}
an ear note \earnote{C}
a nose note \nosenote{D}

\stoptext



On Mon, Jan 4, 2016 at 11:21 AM, Mohammad Hossein Bateni
mailto:bat...@gmail.com>> wrote:

That said, I'm not asking for this to be the default. I only
want to
know how it can be achieved. The code will be put in my
style file or
module.


i'll add rule=paragraph (i.e. listen to the first following
paragraph if possible) ... you need to document it as for sure i
forget about it


Awesome!  Thanks, Hans!  Once this becomes available and I test it,
I'll update the documentation for Footnotes on Context Garden.

Is it possible to determine the direction of the first line
of footnote
block while typesetting the footnote rule? I imagine it
should not be
difficult in Lua. Note that this may be the leftover from a long
footnote that started on some previous page.


—MHB




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnote rules for bidi document

2016-01-08 Thread Mohammad Hossein Bateni
I updated the documentation on context garden.  Hans, I hadn't noticed that
you updated the macros on the same day as your last message!

I had another question regarding the definition of notes/footnotes.  It is
not that important but I am curious: is it possible to define two notes
that are essentially the same except for some of their stylistic
definitions?  Let me give an example.

some text \Afootnote{A}
more text \Bfootnote{B}
some more text \Afootnote{C}

And I want the result at the bottom of the page to read:

1 A
2 B
3 C

However, I'd like to have the power to control how the numbers are typeset
in the text and at the bottom, as well as determine the fonts, etc. of
\Afootnote and \Bfootnote separately.

On Mon, Jan 4, 2016 at 11:21 AM, Mohammad Hossein Bateni 
wrote:

> That said, I'm not asking for this to be the default. I only want to
>>> know how it can be achieved. The code will be put in my style file or
>>> module.
>>>
>>
>> i'll add rule=paragraph (i.e. listen to the first following paragraph if
>> possible) ... you need to document it as for sure i forget about it
>>
>
> Awesome!  Thanks, Hans!  Once this becomes available and I test it, I'll
> update the documentation for Footnotes on Context Garden.
>
>
>> Is it possible to determine the direction of the first line of footnote
>>> block while typesetting the footnote rule? I imagine it should not be
>>> difficult in Lua. Note that this may be the leftover from a long
>>> footnote that started on some previous page.
>>>
>>
> —MHB
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnote rules for bidi document

2016-01-04 Thread Mohammad Hossein Bateni
>
> That said, I'm not asking for this to be the default. I only want to
>> know how it can be achieved. The code will be put in my style file or
>> module.
>>
>
> i'll add rule=paragraph (i.e. listen to the first following paragraph if
> possible) ... you need to document it as for sure i forget about it
>

Awesome!  Thanks, Hans!  Once this becomes available and I test it, I'll
update the documentation for Footnotes on Context Garden.


> Is it possible to determine the direction of the first line of footnote
>> block while typesetting the footnote rule? I imagine it should not be
>> difficult in Lua. Note that this may be the leftover from a long
>> footnote that started on some previous page.
>>
>
—MHB
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnote rules for bidi document

2016-01-04 Thread Hans Hagen

On 1/4/2016 1:00 AM, Mohammad Hossein Bateni wrote:

I see your point, Hans. For what it's worth, that's the default for
mixed Persian/English documents unless one uses a system that cannot do
it. For instance, FarsiTeX and XePersian provide that as default behavior.

That said, I'm not asking for this to be the default. I only want to
know how it can be achieved. The code will be put in my style file or
module.


i'll add rule=paragraph (i.e. listen to the first following paragraph if 
possible) ... you need to document it as for sure i forget about it



Is it possible to determine the direction of the first line of footnote
block while typesetting the footnote rule? I imagine it should not be
difficult in Lua. Note that this may be the leftover from a long
footnote that started on some previous page.

--MHB

On Jan 3, 2016 5:26 PM, "Hans Hagen" mailto:pra...@wxs.nl>> wrote:

On 1/3/2016 8:58 PM, Mohammad Hossein Bateni wrote:

I just found out that
\definenote[afootnote][rule={on,right}]
instead of
\definenote[afootnote][rule=right]
works and places the footnote rule on the right-hand side.

Still wondering about how to get automatic right/left rules.


what do you mean with automatic ... the problem with mixed direction
documents is that these things are part of the document design:
dominant direction vs local direction and right now we don't have a
clear model for that (if only because till now demands were always
conflicting so what works as default for someone doesn't for someone
else)

(i can imagine some modules that set up things)

On Sun, Jan 3, 2016 at 1:22 PM, Mohammad Hossein Bateni
mailto:bat...@gmail.com>
>> wrote:

 Hi,

 This has been previously discussed on the list but I didn't
find a
 resolution to the issue.  It might as well be my fault since I
 didn't go through the entire archive and I am needless to
say new to
 CONTEXT.

 In a bidi text (Persian/English in my case), I would like the
 footnote rule to be placed on the right-hand side if and
only if the
 first line of the footnote text is RTL.  Is there a way this
 information can be obtained within a user-defined rulecommand.
 Ideally I'd like a rule=autodir attribute for notes in
addition to
 the current left & right.

 Speaking of which, the left & right rules do not seem to
work, or I
 misunderstand their point.  When used (either left or
right), the
 footnote rule disappears.

 \starttext

 \definenote[afootnote][paragraph=no,rule=right]

 \startalignment[r2l]
 righttoleft text\afootnote{\input ward }
 \input tufte
 \stopalignment

 \startalignment[l2r]
 lefttoright text\afootnote{\input ward}
 \input tufte
 \stopalignment

 \stoptext

 I see these defined in strc-not.mkvi



and
 still don't work with "% macros=mkvi" in the first line of
the input
 file and when the file has extension mkvi.  Is this some
issue of
 mkiv vs mkvi?  For what it's worth, I don't notice a
reference to
 MKVI in the compilation output.

 Back to the main question, I can define my own rule as follows:

 \unprotect
 \def\myfootrule{%
   \ifvmode
\dontleavehmode \hskip.8\hsize\blackrule
  [\c!color=\noteparameter\c!rulecolor,
   \c!width=.2\hsize,
   \c!height=\noteparameter\c!rulethickness,
   \c!depth=\zeropoint]%
\endgraf
\kern\strutdepth
  \fi}
 \protect

 Then I can use



\definenote[afootnote][paragraph=no,rule=command,rulecommand=\myfootrule]

 to get a footnote rule on the right-hand side.  If I can
figure out
 whether the first line of the footnote text is RTL or LTR, an
 if-statement can do the trick I want.

 Somewhat related to this, I was wondering whether it's
possible to
 define two note commands, say \footnote and \afootnote,
that use the
 same counter but are otherwise completely different.

 I use TeXLive 2015 on Mac OS X,
   CONTEXT 2015.05.18 12 :26, and
   LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev
5238).

 Thanks a lot!
 —MHB





__

Re: [NTG-context] Footnote rules for bidi document

2016-01-03 Thread Mohammad Hossein Bateni
I see your point, Hans. For what it's worth, that's the default for mixed
Persian/English documents unless one uses a system that cannot do it. For
instance, FarsiTeX and XePersian provide that as default behavior.

That said, I'm not asking for this to be the default. I only want to know
how it can be achieved. The code will be put in my style file or module.

Is it possible to determine the direction of the first line of footnote
block while typesetting the footnote rule? I imagine it should not be
difficult in Lua. Note that this may be the leftover from a long footnote
that started on some previous page.

--MHB
On Jan 3, 2016 5:26 PM, "Hans Hagen"  wrote:

> On 1/3/2016 8:58 PM, Mohammad Hossein Bateni wrote:
>
>> I just found out that
>>\definenote[afootnote][rule={on,right}]
>> instead of
>>\definenote[afootnote][rule=right]
>> works and places the footnote rule on the right-hand side.
>>
>> Still wondering about how to get automatic right/left rules.
>>
>
> what do you mean with automatic ... the problem with mixed direction
> documents is that these things are part of the document design: dominant
> direction vs local direction and right now we don't have a clear model for
> that (if only because till now demands were always conflicting so what
> works as default for someone doesn't for someone else)
>
> (i can imagine some modules that set up things)
>
> On Sun, Jan 3, 2016 at 1:22 PM, Mohammad Hossein Bateni
>> mailto:bat...@gmail.com>> wrote:
>>
>> Hi,
>>
>> This has been previously discussed on the list but I didn't find a
>> resolution to the issue.  It might as well be my fault since I
>> didn't go through the entire archive and I am needless to say new to
>> CONTEXT.
>>
>> In a bidi text (Persian/English in my case), I would like the
>> footnote rule to be placed on the right-hand side if and only if the
>> first line of the footnote text is RTL.  Is there a way this
>> information can be obtained within a user-defined rulecommand.
>> Ideally I'd like a rule=autodir attribute for notes in addition to
>> the current left & right.
>>
>> Speaking of which, the left & right rules do not seem to work, or I
>> misunderstand their point.  When used (either left or right), the
>> footnote rule disappears.
>>
>> \starttext
>>
>> \definenote[afootnote][paragraph=no,rule=right]
>>
>> \startalignment[r2l]
>> righttoleft text\afootnote{\input ward }
>> \input tufte
>> \stopalignment
>>
>> \startalignment[l2r]
>> lefttoright text\afootnote{\input ward}
>> \input tufte
>> \stopalignment
>>
>> \stoptext
>>
>> I see these defined in strc-not.mkvi
>> <
>> http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/strc-not.mkvi>
>> and
>> still don't work with "% macros=mkvi" in the first line of the input
>> file and when the file has extension mkvi.  Is this some issue of
>> mkiv vs mkvi?  For what it's worth, I don't notice a reference to
>> MKVI in the compilation output.
>>
>> Back to the main question, I can define my own rule as follows:
>>
>> \unprotect
>> \def\myfootrule{%
>>   \ifvmode
>>\dontleavehmode \hskip.8\hsize\blackrule
>>  [\c!color=\noteparameter\c!rulecolor,
>>   \c!width=.2\hsize,
>>   \c!height=\noteparameter\c!rulethickness,
>>   \c!depth=\zeropoint]%
>>\endgraf
>>\kern\strutdepth
>>  \fi}
>> \protect
>>
>> Then I can use
>>
>>
>> \definenote[afootnote][paragraph=no,rule=command,rulecommand=\myfootrule]
>>
>> to get a footnote rule on the right-hand side.  If I can figure out
>> whether the first line of the footnote text is RTL or LTR, an
>> if-statement can do the trick I want.
>>
>> Somewhat related to this, I was wondering whether it's possible to
>> define two note commands, say \footnote and \afootnote, that use the
>> same counter but are otherwise completely different.
>>
>> I use TeXLive 2015 on Mac OS X,
>>   CONTEXT 2015.05.18 12:26, and
>>   LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238).
>>
>> Thanks a lot!
>> —MHB
>>
>>
>>
>>
>>
>> ___
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>>
>> ___
>>
>>
>
> --
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel:

Re: [NTG-context] Footnote rules for bidi document

2016-01-03 Thread Hans Hagen

On 1/3/2016 8:58 PM, Mohammad Hossein Bateni wrote:

I just found out that
   \definenote[afootnote][rule={on,right}]
instead of
   \definenote[afootnote][rule=right]
works and places the footnote rule on the right-hand side.

Still wondering about how to get automatic right/left rules.


what do you mean with automatic ... the problem with mixed direction 
documents is that these things are part of the document design: dominant 
direction vs local direction and right now we don't have a clear model 
for that (if only because till now demands were always conflicting so 
what works as default for someone doesn't for someone else)


(i can imagine some modules that set up things)


On Sun, Jan 3, 2016 at 1:22 PM, Mohammad Hossein Bateni
mailto:bat...@gmail.com>> wrote:

Hi,

This has been previously discussed on the list but I didn't find a
resolution to the issue.  It might as well be my fault since I
didn't go through the entire archive and I am needless to say new to
CONTEXT.

In a bidi text (Persian/English in my case), I would like the
footnote rule to be placed on the right-hand side if and only if the
first line of the footnote text is RTL.  Is there a way this
information can be obtained within a user-defined rulecommand.
Ideally I'd like a rule=autodir attribute for notes in addition to
the current left & right.

Speaking of which, the left & right rules do not seem to work, or I
misunderstand their point.  When used (either left or right), the
footnote rule disappears.

\starttext

\definenote[afootnote][paragraph=no,rule=right]

\startalignment[r2l]
righttoleft text\afootnote{\input ward }
\input tufte
\stopalignment

\startalignment[l2r]
lefttoright text\afootnote{\input ward}
\input tufte
\stopalignment

\stoptext

I see these defined in strc-not.mkvi
 
and
still don't work with "% macros=mkvi" in the first line of the input
file and when the file has extension mkvi.  Is this some issue of
mkiv vs mkvi?  For what it's worth, I don't notice a reference to
MKVI in the compilation output.

Back to the main question, I can define my own rule as follows:

\unprotect
\def\myfootrule{%
  \ifvmode
   \dontleavehmode \hskip.8\hsize\blackrule
 [\c!color=\noteparameter\c!rulecolor,
  \c!width=.2\hsize,
  \c!height=\noteparameter\c!rulethickness,
  \c!depth=\zeropoint]%
   \endgraf
   \kern\strutdepth
 \fi}
\protect

Then I can use

\definenote[afootnote][paragraph=no,rule=command,rulecommand=\myfootrule]

to get a footnote rule on the right-hand side.  If I can figure out
whether the first line of the footnote text is RTL or LTR, an
if-statement can do the trick I want.

Somewhat related to this, I was wondering whether it's possible to
define two note commands, say \footnote and \afootnote, that use the
same counter but are otherwise completely different.

I use TeXLive 2015 on Mac OS X,
  CONTEXT 2015.05.18 12:26, and
  LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238).

Thanks a lot!
—MHB




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnote rules for bidi document

2016-01-03 Thread Mohammad Hossein Bateni
I just found out that
  \definenote[afootnote][rule={on,right}]
instead of
  \definenote[afootnote][rule=right]
works and places the footnote rule on the right-hand side.

Still wondering about how to get automatic right/left rules.

On Sun, Jan 3, 2016 at 1:22 PM, Mohammad Hossein Bateni 
wrote:

> Hi,
>
> This has been previously discussed on the list but I didn't find a
> resolution to the issue.  It might as well be my fault since I didn't go
> through the entire archive and I am needless to say new to CONTEXT.
>
> In a bidi text (Persian/English in my case), I would like the footnote
> rule to be placed on the right-hand side if and only if the first line of
> the footnote text is RTL.  Is there a way this information can be obtained
> within a user-defined rulecommand.  Ideally I'd like a rule=autodir
> attribute for notes in addition to the current left & right.
>
> Speaking of which, the left & right rules do not seem to work, or I
> misunderstand their point.  When used (either left or right), the footnote
> rule disappears.
>
> \starttext
>
> \definenote[afootnote][paragraph=no,rule=right]
>
> \startalignment[r2l]
> righttoleft text\afootnote{\input ward }
> \input tufte
> \stopalignment
>
> \startalignment[l2r]
> lefttoright text\afootnote{\input ward}
> \input tufte
> \stopalignment
>
> \stoptext
>
> I see these defined in strc-not.mkvi
>  
> and
> still don't work with "% macros=mkvi" in the first line of the input file
> and when the file has extension mkvi.  Is this some issue of mkiv vs mkvi?
> For what it's worth, I don't notice a reference to MKVI in the compilation
> output.
>
> Back to the main question, I can define my own rule as follows:
>
> \unprotect
> \def\myfootrule{%
>  \ifvmode
>   \dontleavehmode \hskip.8\hsize\blackrule
> [\c!color=\noteparameter\c!rulecolor,
>  \c!width=.2\hsize,
>  \c!height=\noteparameter\c!rulethickness,
>  \c!depth=\zeropoint]%
>   \endgraf
>   \kern\strutdepth
> \fi}
> \protect
>
> Then I can use
>
> \definenote[afootnote][paragraph=no,rule=command,rulecommand=\myfootrule]
>
> to get a footnote rule on the right-hand side.  If I can figure out
> whether the first line of the footnote text is RTL or LTR, an if-statement
> can do the trick I want.
> Somewhat related to this, I was wondering whether it's possible to define
> two note commands, say \footnote and \afootnote, that use the same counter
> but are otherwise completely different.
>
> I use TeXLive 2015 on Mac OS X,
>  CONTEXT 2015.05.18 12:26, and
>  LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238).
>
> Thanks a lot!
> —MHB
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Footnote rules for bidi document

2016-01-03 Thread Mohammad Hossein Bateni
Hi,

This has been previously discussed on the list but I didn't find a
resolution to the issue.  It might as well be my fault since I didn't go
through the entire archive and I am needless to say new to CONTEXT.

In a bidi text (Persian/English in my case), I would like the footnote rule
to be placed on the right-hand side if and only if the first line of the
footnote text is RTL.  Is there a way this information can be obtained
within a user-defined rulecommand.  Ideally I'd like a rule=autodir
attribute for notes in addition to the current left & right.

Speaking of which, the left & right rules do not seem to work, or I
misunderstand their point.  When used (either left or right), the footnote
rule disappears.

\starttext

\definenote[afootnote][paragraph=no,rule=right]

\startalignment[r2l]
righttoleft text\afootnote{\input ward }
\input tufte
\stopalignment

\startalignment[l2r]
lefttoright text\afootnote{\input ward}
\input tufte
\stopalignment

\stoptext

I see these defined in strc-not.mkvi
 and
still don't work with "% macros=mkvi" in the first line of the input file
and when the file has extension mkvi.  Is this some issue of mkiv vs mkvi?
For what it's worth, I don't notice a reference to MKVI in the compilation
output.

Back to the main question, I can define my own rule as follows:

\unprotect
\def\myfootrule{%
 \ifvmode
  \dontleavehmode \hskip.8\hsize\blackrule
[\c!color=\noteparameter\c!rulecolor,
 \c!width=.2\hsize,
 \c!height=\noteparameter\c!rulethickness,
 \c!depth=\zeropoint]%
  \endgraf
  \kern\strutdepth
\fi}
\protect

Then I can use

\definenote[afootnote][paragraph=no,rule=command,rulecommand=\myfootrule]

to get a footnote rule on the right-hand side.  If I can figure out whether
the first line of the footnote text is RTL or LTR, an if-statement can do
the trick I want.
Somewhat related to this, I was wondering whether it's possible to define
two note commands, say \footnote and \afootnote, that use the same counter
but are otherwise completely different.

I use TeXLive 2015 on Mac OS X,
 CONTEXT 2015.05.18 12:26, and
 LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238).

Thanks a lot!
—MHB
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnote in title

2015-10-13 Thread Schmitz Thomas A.

> On 13 Oct 2015, at 11:56, Thomas A. Schmitz  
> wrote:
> 
> I thought something like this had been asked on the list recently, but a 
> search came up empty: how to get footnotes to titles typeset?
> 
> \automigrateinserts
> 
> \starttext
> 
> \startchapter [title={Silly title\footnote{With a silly footnote}}]
> 
> More text.\footnote{With more footnotes.}
> 
> \stoptext
> 
> I thought \automigrateinserts was the magic command, but the note symbol is 
> set, the content of the note disappears.
> 
> Thomas
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

Boy do I feel stupid now - I hadn’t even tested without this command. You’re 
right, and this also works in my real life files. I’ll just have to see what 
happens when I need automigrateinserts further down the road...

Thanks for your help!

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnote in title

2015-10-13 Thread Otared Kavian
Hi Thomas,

The following works here, without using \automigrateregisters…

\starttext

\startchapter [title={Silly title}\footnote{A silly footnote}]
More text.\footnote{With more footnotes.}

\stopchapter

\stoptext

Using version ConTeXt  ver: 2015.10.09 21:28 MKIV beta on a Mac (indeed… what 
else? :-)

Best regards: OK

> On 13 Oct 2015, at 11:56, Thomas A. Schmitz  
> wrote:
> 
> I thought something like this had been asked on the list recently, but a 
> search came up empty: how to get footnotes to titles typeset?
> 
> \automigrateinserts
> 
> \starttext
> 
> \startchapter [title={Silly title\footnote{With a silly footnote}}]
> 
> More text.\footnote{With more footnotes.}
> 
> \stoptext
> 
> I thought \automigrateinserts was the magic command, but the note symbol is 
> set, the content of the note disappears.
> 
> Thomas
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] footnote in title

2015-10-13 Thread Thomas A. Schmitz
I thought something like this had been asked on the list recently, but a 
search came up empty: how to get footnotes to titles typeset?


\automigrateinserts

\starttext

\startchapter [title={Silly title\footnote{With a silly footnote}}]

More text.\footnote{With more footnotes.}

\stoptext

I thought \automigrateinserts was the magic command, but the note symbol 
is set, the content of the note disappears.


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnote coloring

2015-09-06 Thread Meer, H. van der
Thanks. I would not have thought of that. In the reference manual headcolor 
occurs in 13.2 \setupdescriptions and in 13.5 \definelabel only. I did not 
connect that with footnotes. Is \setupnotation a special form of 
\setupdescriptions?

By the way, is a separate call to \setupnote[footnote][textcolor=red] necessary 
to color the footnotemark in the running text? Or is there a key for it in 
\setupnotation[footnote] too?

Hans van der Meer


On 06 Sep 2015, at 18:25, Wolfgang Schuster 
mailto:schuster.wolfg...@gmail.com>> wrote:
Meer, H. van der
6. September 2015 13:15
Indeed, this helped. Thanks.

For the record: in order to keep the position of the number in the footnote 
high, one has to use:
\def\redfootnotenumber#1{\color[red]{\high{#1}}}
\setupnotation[footnote][numbercommand=\redfootnotenumber]
You can use the headcolor key to change the color of the footnote number.

\setupnotation[footnote][headcolor=red]

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

Re: [NTG-context] footnote coloring

2015-09-06 Thread Wolfgang Schuster

Meer, H. van der 
6. September 2015 13:15
Indeed, this helped. Thanks.

For the record: in order to keep the position of the number in the 
footnote high, one has to use:

\def\redfootnotenumber#1{\color[red]{\high{#1}}}
\setupnotation[footnote][numbercommand=\redfootnotenumber]

You can use the headcolor key to change the color of the footnote number.

\setupnotation[footnote][headcolor=red]

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

Re: [NTG-context] footnote coloring

2015-09-06 Thread Meer, H. van der
Indeed, this helped. Thanks.

For the record: in order to keep the position of the number in the footnote 
high, one has to use:
\def\redfootnotenumber#1{\color[red]{\high{#1}}}
\setupnotation[footnote][numbercommand=\redfootnotenumber]

Hans van der Meer


On 06 Sep 2015, at 12:29, Pablo Rodriguez mailto:oi...@gmx.es>> 
wrote:

this setup works fine in MkIV:

 \setupnote[footnote][textcolor=blue]

 \setupnotation[footnote][numbercommand={\color[red]}, color=green]


I hope it helps,

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnote coloring

2015-09-06 Thread Pablo Rodriguez
On 09/06/2015 11:11 AM, dr. Hans van der Meer wrote:
> I want to color all elements of a footnote, but I cannot find how to do
> this.
> Minimal example:
> 
> \def\rednumber#1{\color[red]{#1}}
> \starttext
> \setupfootnotes[textcolor=red,numbercommand=\rednumber,foregroundcolor=red]
> This text\footnote{the footnote} contains a footnote.
> \stoptext
> 
> The footnotenumber in the text is the only element that gets colored
> because of the [textcolor=red] parameter setting.
> 
> In the command reference it is [numbercommand=\rednumber]. Shouldn't
> that have made the color of the footnotenumber below?
> 
> Since \setupfootnotes inherits from setupframed I expected
> [foregroundcolor=red] to do the trick for the content of the footnote,
> but it doesn't.
> 
> How to?

Hi Hans,

this setup works fine in MkIV:

  \setupnote[footnote][textcolor=blue]

  \setupnotation[footnote][numbercommand={\color[red]}, color=green]


I hope it helps,


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] footnote coloring

2015-09-06 Thread dr. Hans van der Meer
I want to color all elements of a footnote, but I cannot find how to do this.Minimal example:\def\rednumber#1{\color[red]{#1}}\starttext\setupfootnotes[textcolor=red,numbercommand=\rednumber,foregroundcolor=red]This text\footnote{the footnote} contains a footnote.\stoptextThe footnotenumber in the text is the only element that gets colored because of the [textcolor=red] parameter setting.In the command reference it is [numbercommand=\rednumber]. Shouldn't that have made the color of the footnotenumber below?Since \setupfootnotes inherits from setupframed I expected [foregroundcolor=red] to do the trick for the content of the footnote, but it doesn't.How to?Hans van der Meer

footnotecolor.pdf
Description: Adobe PDF document
 ___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \footnote and \note with \setupnotation[way=bypage], but it does not work with XML processing

2015-07-02 Thread mf
Hello list,
I have a text with footnotes that get referenced more than once.
No problem for ConTeXt, since it has \footnote and \note for that.

Resetting the footnote counter every page with
\setupnotation[way=bypage] complicates the problem, because when you
call \note on the next page, it prints the value of the counter that
the footnote had in the previous page, when it should produce a new
\footnote instead for the new page.

Running this example should show the problem more clearly:


\setupnotation[way=bypage]

\def\showcountersinmargin#1{%
  \inmargin{\rawcountervalue[contapag#1].\rawcountervalue[#1]}%
}
  
\def\showidinmargin#1{%
  \inrightmargin{ #1}%
}

\def\mynotelabel#1{#1pag\rawcountervalue[contapag#1]}
  
\def\myfootnote#1#2{%
  \definenumber[contapag#1][prefix=no]%
  \incrementcounter[contapag#1]%
  \definenumber[#1][way=bypage,prefix=no]%
  \incrementcounter[#1]%
  \footnote[\mynotelabel{#1}]{#2}%
  \showcountersinmargin{#1}%
  \showidinmargin{\mynotelabel{#1}}%
}
  
\def\mynote#1#2{%
  \incrementcounter[#1]%
  \doifelse{\rawcountervalue[#1]}{1}{%
\incrementcounter[contapag#1]%
\footnote[\mynotelabel{#1}]{#2}%
\showcountersinmargin{#1}%
\showidinmargin{\mynotelabel{#1}}%
  }{%
\note[\mynotelabel{#1}]%
\showcountersinmargin{#1}%
\showidinmargin{\mynotelabel{#1}}%
  }%
}

\starttext
 
\def\fnid{id1}
\def\fntext{Text of the recurring footnote}

  Using just \verbatim{\footnote}\footnote[\fnid]{\fntext}
  and than \verbatim{\note}\note[\fnid] even in...
  \page
  ... the new page\footnote[otherid]{another footnote} does not 
  work\note[\fnid](here different footnotes are referred
  with the same number because I used \verbatim{\note} to
  reference a footnote of the previous page).

  
  {\bf The text above should have been like this:}\par
  ... the new page\note[otherid] does not 
  work\footnote{\fntext}.

  \page
  Using \verbatim{\myfootnote} and \verbatim{\mynote} it
  works as expected:

  Some text before the first occurrence of my recurring 
  footnote\myfootnote{\fnid}{\fntext}.
  
  Some other text, with a new occurrence of my recurring
  footnote\mynote{\fnid}{\fntext}.

\dorecurse{5}{
  \page[yes] % new page
  
  \getrandomnumber \n {1} {7}
  \dorecurse{\n}{
  Other text\footnote{other disturbing footnote}.\par
  }
  
  A new occurrence of the previous 
  footnote\mynote{\fnid}{\fntext}.

  \getrandomnumber \n {1} {7}
  \dorecurse{\n}{
  Other text\footnote{other disturbing footnote}.\par
  }
  
  Another occurrence of the previous 
  footnote\mynote{\fnid}{\fntext},
  to see if it gets referenced right.%
}

\stoptext

My functions (\myfootnote and \mynote) solve the problem, at least with
version 2014.05.21 of ConTeXt (recent versions seem to have this bug: 
http://www.ntg.nl/pipermail/ntg-context/2015/082498.html).

Now my problem is that I can't get the same code working in XML(XHTML)
processing. Here's a recurring footnote in XHTML:

Text of the recurring footnote

for the first occurrence, and

Text of the recurring
footnote

for all the other occurrences of the same footnote.

These are my corresponding XML setups in ConTeXt:

\startxmlsetups xml:span:footnote:id
  \myfootnote{\xmlatt{#1}{id}}{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:span:footnote:idref
  \mynote{\xmlatt{#1}{idref}}{\xmlflush{#1}}
\stopxmlsetups

Used in XML processing, the counters "go crazy" and I get "??" instead
of the right footnote numbers in the text.
Any hints?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnote link destionations in interactive documents

2015-03-11 Thread Hans Hagen

On 3/11/2015 6:52 PM, Pablo Rodriguez wrote:

On 03/10/2015 10:12 PM, Hans Hagen wrote:

On 3/10/2015 6:04 PM, Pablo Rodriguez wrote:

Hans,

I have the following sample:

  \setupinteraction[state=start, focus=standard]
  \starttext
  \completecontent
  \chapter{Chapter 1}
  a\footnote{b}
  \stoptext

The sample above has a /XYZ link destination for the table of contents,
but two /Fit link destinations for footnotes.

Now that links work better since the first beta from yesterday, wouldn’t
it be possible that footnote links in interactive documents use the same
kind of destinations than the other links?


as we're closing in to a tex live release and therefore a current i'm
not going to touch reference/destination code now (also because it's
pretty hard to test, this kind of viewer related mess)


Many thanks for your reply, Hans.

Would it be fine if I raise this issue again in two/three months?



sure

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnote link destionations in interactive documents

2015-03-11 Thread Pablo Rodriguez
On 03/10/2015 10:12 PM, Hans Hagen wrote:
> On 3/10/2015 6:04 PM, Pablo Rodriguez wrote:
>> Hans,
>>
>> I have the following sample:
>>
>>  \setupinteraction[state=start, focus=standard]
>>  \starttext
>>  \completecontent
>>  \chapter{Chapter 1}
>>  a\footnote{b}
>>  \stoptext
>>
>> The sample above has a /XYZ link destination for the table of contents,
>> but two /Fit link destinations for footnotes.
>>
>> Now that links work better since the first beta from yesterday, wouldn’t
>> it be possible that footnote links in interactive documents use the same
>> kind of destinations than the other links?
> 
> as we're closing in to a tex live release and therefore a current i'm 
> not going to touch reference/destination code now (also because it's 
> pretty hard to test, this kind of viewer related mess)

Many thanks for your reply, Hans.

Would it be fine if I raise this issue again in two/three months?

Many thanks for your help again,


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnote link destionations in interactive documents

2015-03-10 Thread Hans Hagen

On 3/10/2015 6:04 PM, Pablo Rodriguez wrote:

Hans,

I have the following sample:

 \setupinteraction[state=start, focus=standard]
 \starttext
 \completecontent
 \chapter{Chapter 1}
 a\footnote{b}
 \stoptext

The sample above has a /XYZ link destination for the table of contents,
but two /Fit link destinations for footnotes.

Now that links work better since the first beta from yesterday, wouldn’t
it be possible that footnote links in interactive documents use the same
kind of destinations than the other links?


as we're closing in to a tex live release and therefore a current i'm 
not going to touch reference/destination code now (also because it's 
pretty hard to test, this kind of viewer related mess)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] footnote link destionations in interactive documents

2015-03-10 Thread Pablo Rodriguez
Hans,

I have the following sample:

\setupinteraction[state=start, focus=standard]
\starttext
\completecontent
\chapter{Chapter 1}
a\footnote{b}
\stoptext

The sample above has a /XYZ link destination for the table of contents,
but two /Fit link destinations for footnotes.

Now that links work better since the first beta from yesterday, wouldn’t
it be possible that footnote links in interactive documents use the same
kind of destinations than the other links?

Many thanks for your help,


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnote breaks tagging

2015-01-06 Thread Christoph Reller
On 31/12/2014 09:18:24 +0100, Hans Hagen wrote:

>
> On 12/29/2014 3:38 PM, Christoph Reller wrote:
> > Hi,
> >
> > ConTeXt mkiv is the only TeX-based typesetting system that can produce
> > tagged PDFs and this is a really useful feature. Unfortunately,
> > footnotes seem to upset tagging. MWE:
>
> should be better now
>

Thank you very much, Hans. This bug is fixed.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnote breaks tagging

2014-12-31 Thread Hans Hagen

On 12/29/2014 3:38 PM, Christoph Reller wrote:

Hi,

ConTeXt mkiv is the only TeX-based typesetting system that can produce
tagged PDFs and this is a really useful feature. Unfortunately,
footnotes seem to upset tagging. MWE:


should be better now

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Footnote breaks tagging

2014-12-29 Thread Christoph Reller
Hi,

ConTeXt mkiv is the only TeX-based typesetting system that can produce
tagged PDFs and this is a really useful feature. Unfortunately, footnotes
seem to upset tagging. MWE:

\setuptagging[state=start]
\starttext
Text\footnote{Note}
\stoptext

In the resulting PDF, the structure tree seems okay to me, but the content
stream is defect:

0 g 0 G
BT
/F1 11.955168 Tf 1 0 0 1 280.5345 760.6422 Tm [<00520067>]TJ
ET
/document <>BDC
BT
/F1 11.955168 Tf 1 0 0 1 70.867 702.3845 Tm [<0068>82<003200740069>]TJ
ET
EMC
BT
/F6 7.970112 Tf 1 0 0 1 94.2752 706.0772 Tm [<0052>]TJ
ET
EMC
q
1 0 0 1 70.867 131.9542 cm
[]0 d 0 J 0.3985 w 0 0 m 85.0373 0 l S
Q
/descriptiontag <>BDC
0 g 0 G
EMC
BT
/F6 7.970112 Tf 1 0 0 1 61.6535 122.7515 Tm [<0052>]TJ
ET
EMC
/descriptioncontent <>BDC
BT
/F5 9.96264 Tf 1 0 0 1 70.867 119.0587 Tm [<004C005100690032>]TJ
ET
EMC

Clearly, in the content (around line 10) we miss something like
/sup <>BDC
I hope that this is a minor issue in the processing of footnotes. I would
very much appreciate if you could fix this bug.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnote in framedtext (Gerben Wierda)

2014-12-07 Thread Gerben Wierda
On 07 Dec 2014, at 12:33, Sytse Knypstra  wrote:

> Did you issue an \automigrateinserts in your setup?

No. I'm using mkii, I get an unknown command so it's probably mkiv.

I solved it partly using \startlocalfootnotes, \placelocalfootnotes, 
\stoplocalfootnotes in the frame. That gets me the footnote, though not running 
in the text, but separately in the frame. Doesn't look very good and I now have 
two * footnotes on e a single page, which is confusing. Besides, the footnote 
in the frame is too far left, it is negatively aligned with the text (which is 
fine on the main pages, but not in the frame). The rule=on clause does not work.

For a footnote inside the frame, I can do

\startlocalfootnotes[conversion=romannumerals,rule=on]

That solves everything, provided I want the footnote in the frame and without a 
rule. What can I do to put the local footnote with the number aligned to the 
left side of the (framed) text? And how do I get the rule in the frame?

G

> 
> Sytse
> 
> On 12/07/2014 12:00 PM, Gerben Wierdal wrote:
>> I'm using mkii. I have a \footnote in text between \startframedtext and 
>> stopframedtext, but the footnote is not typeset, neither at the bottom of 
>> the page nor at the bottom of the framed text. Is there a way to do that?
>> 
>> G
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnote in framedtext (Gerben Wierda)

2014-12-07 Thread Sytse Knypstra

Did you issue an \automigrateinserts in your setup?

Sytse

On 12/07/2014 12:00 PM, Gerben Wierdal wrote:

I'm using mkii. I have a \footnote in text between \startframedtext and 
stopframedtext, but the footnote is not typeset, neither at the bottom of the 
page nor at the bottom of the framed text. Is there a way to do that?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] footnote in framedtext

2014-12-07 Thread Gerben Wierda
I'm using mkii. I have a \footnote in text between \startframedtext and 
stopframedtext, but the footnote is not typeset, neither at the bottom of the 
page nor at the bottom of the framed text. Is there a way to do that?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnote with midaligned text

2014-09-01 Thread Wolfgang Schuster

Am 01.09.2014 um 09:04 schrieb Francisco Gracia :

> As the following example shows, just trying to add a footnote to a
> midaligned sentence is not that easy: either the footnote index is
> (dis)placed to the right margin or the footnote body does not show at its
> proper place (at the end of the page).
> 
> Is there a way to make both things fit?


Need to be fixed by Hans, it happens when you put a note in a box
which is placed in horizontal mode.

\automigrateinserts

\setuppapersize[A6]

\starttext

\hbox{One\footnote{First note.}}

\dontleavehmode\hbox{Two\footnote{Second note.}}

\stoptext

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


[NTG-context] Footnote with midaligned text

2014-09-01 Thread Francisco Gracia
As the following example shows, just trying to add a footnote to a
midaligned sentence is not that easy: either the footnote index is
(dis)placed to the right margin or the footnote body does not show at its
proper place (at the end of the page).

Is there a way to make both things fit?

Regards


\setuppapersize[A6][A6]
\def\Text{ This is the main text.}

\starttext
\dorecurse{3}{\Text} \footnote{This is the first main text footnote.}
\dorecurse{3}{\Text}

\blank[medium]
\midaligned{This sentence is midaligned.} \footnote{This is the centered
footnote.}
\blank[medium]

\dorecurse{3}{\Text} \footnote{This is the second main text footnote.}
\dorecurse{3}{\Text}

\blank[medium]
\midaligned{Another midaligned sentence. \footnote{This is the second
centered footnote.}}
\blank[medium]

\dorecurse{3}{\Text} \footnote{This is the third main text footnote.}
\dorecurse{3}{\Text}

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


Re: [NTG-context] Footnote Placement in Columnsets

2014-08-13 Thread Wolfgang Schuster

Am 13.08.2014 um 13:42 schrieb David Baßler :

> Dear all,
> 
> a couple of days ago I asked about placing footnotes in columnsets in only 
> the first column.
> I haven't received an answer and found this 
> http://skryb.info/m/ntg-context%40ntg.nl/45C100C2.5050500%40econ.muni.cz on 
> Google, which is basically the same question and also unanswered. So I just 
> thought I try again:
> 
> I use a two columns columnsets layout and want to place the footnotes in the 
> first column only.
> I tried 
> \setupnotation[footnote][
>   location=firstcolumn]
> 
> but this didn't work as expected it puts the footnotes into both columns.
> If it is not possible to do this, I need to know.
> I am using the current version of ConTeXt that comes with the MacTeX-2014 
> Distribution.

I think this is not possible and footnotes are always placed in both columns.

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


[NTG-context] Footnote Placement in Columnsets

2014-08-13 Thread David Baßler
Dear all,

a couple of days ago I asked about placing footnotes in columnsets in only the 
first column.
I haven't received an answer and found this 
http://skryb.info/m/ntg-context%40ntg.nl/45C100C2.5050500%40econ.muni.cz on 
Google, which is basically the same question and also unanswered. So I just 
thought I try again:

I use a two columns columnsets layout and want to place the footnotes in the 
first column only.
I tried 
\setupnotation[footnote][
location=firstcolumn]

but this didn't work as expected it puts the footnotes into both columns.
If it is not possible to do this, I need to know.
I am using the current version of ConTeXt that comes with the MacTeX-2014 
Distribution.

Cheers,
David

PS: I am new to mailing lists like this, so I wasn't sure if I should post it 
again or wait. I'm sorry if I am too impatient.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Footnote maker in parentheses

2014-03-25 Thread Stéphane Goujet
Le Tue, 25 Mar 2014 13:56:41 +0100,
Otared Kavian  a écrit :

> On 25 mars 2014, at 14:02, Stéphane Goujet
>  wrote:
> 
> >  I would like that the footnote marker (both in the note
> > call and the footnote text) appear in parentheses.
> Maybe this is what you want 
> 
> \define[1]\MyFootnotenoteCommand{\high{(#1)}}
> 
> \setupnotation[footnote]
>   [textcommand=\MyFootnoteCommand
>   distance=1em,
>   left={(},
>   right={)}]

  Not exactly : /left/ and /right/ indeed produce the expected result in
the footnote text, but /textcommand/ does nothing for the footnote
call. 
  But the info you gave me allowed to find the following working
solution :

\define[1]\monappel{\high{(#1)}}
\setupnote[textcommand=\monappel]
\setupnotation[footnote][left={(},right={)}]


Thank you very much,
  Stéphane.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnote maker in parentheses

2014-03-25 Thread Otared Kavian
Hi Stéphane,

Maybe this is what you want 

\define[1]\MyFootnotenoteCommand{\high{(#1)}}

\setupnotation[footnote]
[textcommand=\MyFootnoteCommand
distance=1em,
left={(},
right={)}]
\starttext
This is a note\footnote{I’m a footnote.}.
\stoptext

Best regards: OK

On 25 mars 2014, at 14:02, Stéphane Goujet  wrote:

> Hello,
> 
> 
>  I would like that the footnote marker (both in the note
> call and the footnote text) appear in parentheses.
> 
>  I tried using :
> 
> \setupnotation[footnote][titleleft={(},titleright={)}]
> 
> because the names title* sounded close to what I was looking for, but
> it did not produce any change (neither in the call nor in the foonote
> itself).
> 
>  Are those the correct parameters to play with ?
>  Do they need another parameter/option to be set in order to enable
> them ?
> 
> 
> 
> Greetings,
>  Stéphane.
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Footnote maker in parentheses

2014-03-25 Thread Stéphane Goujet
Hello,


  I would like that the footnote marker (both in the note
call and the footnote text) appear in parentheses.

  I tried using :

\setupnotation[footnote][titleleft={(},titleright={)}]

because the names title* sounded close to what I was looking for, but
it did not produce any change (neither in the call nor in the foonote
itself).

  Are those the correct parameters to play with ?
  Do they need another parameter/option to be set in order to enable
them ?



Greetings,
  Stéphane.
  
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnote mark gap

2014-03-01 Thread Wolfgang Schuster

Am 28.02.2014 um 19:56 schrieb Jan Tosovsky :

> On 2014-02-27 Wolfgang Schuster wrote: 
>> Am 27.02.2014 um 23:19 schrieb Thangalin :
>> 
>>> Try:
>>> 
>>> \setupfootnotes[
>>> textstyle={\hskip.05em},
>>> ]
>> 
>> It's better to add the space with the textcommand key.
>> 
>> \setupnote[footnote][textcommand={\hairspace\high}]
> 
> Thanks! I was trying \hskip on \setupnotation[footnote] before as I though
> this command is preferred in MkIV. My fault. 

The \setupnotation command replaced the old \setupnotedefintion command and a 
few setting
like counter related values moved from \setupnote to \setupnotation but the 
layout of the numbers
in the text body is still controlled by \setupnote.

> When I saw 'hairspace' I was afraid the footnote mark can wrap to the next
> line, but after some tests it seems to be a false assumption.

Yes, \hairspace is a unbreakable space and will kep the number together with 
the last word.

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


Re: [NTG-context] Footnote mark gap

2014-02-28 Thread Jan Tosovsky
On 2014-02-27 Wolfgang Schuster wrote: 
> Am 27.02.2014 um 23:19 schrieb Thangalin :
> 
> > Try:
> >
> > \setupfootnotes[
> >  textstyle={\hskip.05em},
> > ]
> 
> It's better to add the space with the textcommand key.
> 
> \setupnote[footnote][textcommand={\hairspace\high}]

Thanks! I was trying \hskip on \setupnotation[footnote] before as I though
this command is preferred in MkIV. My fault. 

When I saw 'hairspace' I was afraid the footnote mark can wrap to the next
line, but after some tests it seems to be a false assumption.

Jan

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Footnote mark gap

2014-02-27 Thread Wolfgang Schuster

Am 27.02.2014 um 23:19 schrieb Thangalin :

> Try:
> 
> \setupfootnotes[
>  textstyle={\hskip.05em},
> ]

It’s better to add the space with the textcommand key.

\setupnote[footnote][textcommand={\hairspace\high}]
%\setupnote[footnote][textcommand={\thinspace\high}]

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


Re: [NTG-context] Footnote mark gap

2014-02-27 Thread Thangalin
Try:

\setupfootnotes[
  textstyle={\hskip.05em},
]
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Footnote mark gap

2014-02-27 Thread Jan Tosovsky
Dear All,

when footnotes are placed after certain accented characters, the
corresponding footnote marks are rendered too close to them:

\starttext
í\footnote{í}
T\footnote{T}
ľ\footnote{ľ}
ě\footnote{ě}
ď\footnote{ď}
\stoptext

Is there any option for making this distance a bit larger?

On the other hand this gap may produce too much white space when placed
after characters like period or comma...

Ideally it could be positioned 'optically' ;-)

Regards, Jan

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Footnote line position

2013-11-22 Thread Jan Tosovsky
Dear All,

when a single line footnote is used, the footnote divider is rendered in
larger distance than for footnotes with two or more lines (I mean a gap
between the line and the footnote text). Initially I though there must be an
'empty' paragraph in my footnote but looking into the source it turned out
to be a false alarm as it seems to be consistent. It can be tested easily: 

\chapter{Chapter}Foo\footnote{Bar}.
\chapter{Chapter}Foo\footnote{Bar

Bar}.

Is this behaviour deliberate?

Thanks, Jan

ConTeXt 2013.11.14 & Win 7

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Footnote number in different font?

2013-09-04 Thread J. R. Schmid
Hello List,

this is a nitpick, but it's an itch that's been itching me for a couple of
days now. When you put a footnote to Arabic text, the little number (like
this one: ²) appears in the font the Arabic text is in, which makes it look
distinct from the other footnote numbers in the text and thus difficult to
identify for the eye.

I'm using \setupnotation[footnote][before=\lefttoright] to keep the
footnotes from appearing completely mirrored, but haven't been able to find
out a way what else to put there (perhaps next to the \lefttoright) to
affect the font of the little number. Is there a way to do that?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnote rollover message in PDFs (with interaction)

2013-05-19 Thread Alan Bowen
Thanks, Hans. Sounds good. I will experiment with this!

A.


On Wed, May 15, 2013 at 10:37 AM, Hans Hagen  wrote:

> On 5/15/2013 4:13 PM, Alan Bowen wrote:
>
>> Yes, two-way coupling for footnotes works (though as you say, it goes
>> unnoticed if everything is no the same page. But what of other hyperlink
>> links, say, a reference to a chapter or a section?
>>
>
> when setting up a section head you can say
>
> interaction=list
>
>
> --**--**-
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> --**--**-
> __**__**
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/**
> listinfo/ntg-context 
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : 
> http://foundry.supelec.fr/**projects/contextrev/
> wiki : http://contextgarden.net
> __**__**
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnote rollover message in PDFs (with interaction)

2013-05-15 Thread Hans Hagen

On 5/15/2013 4:13 PM, Alan Bowen wrote:

Yes, two-way coupling for footnotes works (though as you say, it goes
unnoticed if everything is no the same page. But what of other hyperlink
links, say, a reference to a chapter or a section?


when setting up a section head you can say

interaction=list

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] footnote rollover message in PDFs (with interaction)

2013-05-15 Thread Alan Bowen
Yes, two-way coupling for footnotes works (though as you say, it goes
unnoticed if everything is no the same page. But what of other hyperlink
links, say, a reference to a chapter or a section?


On Wed, May 15, 2013 at 9:14 AM, Hans Hagen  wrote:

> On 5/15/2013 2:20 PM, Alan Bowen wrote:
>
>> Thanks, Hans. I expect that there will be more interest from publishers
>> now as ebooks become more common, move to diverse platforms, and cease
>> from being digital shadows of printed volumes.
>>
>> Also of interest would be support that would allow one to recover from
>> taking an internal hyperlink (i.e., returning to the original location
>> after taking an internal link to another location/page).
>>
>
> afaik that's already the case (two way coupling) but it goes unnoticed if
> one's on the same page
>
>
> --**--**-
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> --**--**-
> __**__**
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/**
> listinfo/ntg-context 
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : 
> http://foundry.supelec.fr/**projects/contextrev/
> wiki : http://contextgarden.net
> __**__**
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnote rollover message in PDFs (with interaction)

2013-05-15 Thread Hans Hagen

On 5/15/2013 2:20 PM, Alan Bowen wrote:

Thanks, Hans. I expect that there will be more interest from publishers
now as ebooks become more common, move to diverse platforms, and cease
from being digital shadows of printed volumes.

Also of interest would be support that would allow one to recover from
taking an internal hyperlink (i.e., returning to the original location
after taking an internal link to another location/page).


afaik that's already the case (two way coupling) but it goes unnoticed 
if one's on the same page


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] footnote rollover message in PDFs (with interaction)

2013-05-15 Thread Alan Bowen
Thanks, Hans. I expect that there will be more interest from publishers now
as ebooks become more common, move to diverse platforms, and cease from
being digital shadows of printed volumes.

Also of interest would be support that would allow one to recover from
taking an internal hyperlink (i.e., returning to the original location
after taking an internal link to another location/page).

Alan


On Tue, May 14, 2013 at 1:59 PM, Hans Hagen  wrote:

> On 5/14/2013 1:46 PM, Alan Bowen wrote:
>
>> The PDFs that I produce are now being read on a number different
>> platforms, some with very small screens. So, in the case of footnotes at
>> least, I was wondering if there was a way to  produce PDFs such that
>> when the cursor passes over the footnote call, the popup message
>> includes the entire footnote and not just “Go to page xx”.
>>
>
> i'm thinking of cooking up some support like that for ebook like
> applications but i'll wait till i run into a proper device (also, it needs
> support from the viewer; there are several solutions possible) ... i did a
> lot of that stuff over a decade ago but there waas never much interest in
> it (from publishers)
>
> Hans
>
> --**--**-
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> --**--**-
> __**__**
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/**
> listinfo/ntg-context 
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : 
> http://foundry.supelec.fr/**projects/contextrev/
> wiki : http://contextgarden.net
> __**__**
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnote rollover message in PDFs (with interaction)

2013-05-14 Thread Hans Hagen

On 5/14/2013 1:46 PM, Alan Bowen wrote:

The PDFs that I produce are now being read on a number different
platforms, some with very small screens. So, in the case of footnotes at
least, I was wondering if there was a way to  produce PDFs such that
when the cursor passes over the footnote call, the popup message
includes the entire footnote and not just “Go to page xx”.


i'm thinking of cooking up some support like that for ebook like 
applications but i'll wait till i run into a proper device (also, it 
needs support from the viewer; there are several solutions possible) ... 
i did a lot of that stuff over a decade ago but there waas never much 
interest in it (from publishers)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] footnote rollover message in PDFs (with interaction)

2013-05-14 Thread Alan Bowen
The PDFs that I produce are now being read on a number different platforms,
some with very small screens. So, in the case of footnotes at least, I was
wondering if there was a way to  produce PDFs such that when the cursor
passes over the footnote call, the popup message includes the entire
footnote and not just “Go to page xx”.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnote disappear in "placeongrid"

2013-05-02 Thread Wolfgang Schuster

Am 02.05.2013 um 11:20 schrieb Sietse Brouwer :

> Wolfgang wrote:
>> Add the \automigrateinserts command to your
>> document, it is necessary when you have
>> footnotes in a box, e.g. \framed or \placeongrid.
> 
> Would it make sense for \setupalign[grid] to automatically call
> \automigrateinserts, or
> are there situations when
> (a) one typesets on a grid, and
> (b) one does not want \automigrateinserts in the document?

The whole thing has nothing to do with the grid, you need the command
when a footnote appear and a \hbox or a \vbox which is used by \framed,
\bTABLE or \placeongrid.

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


  1   2   3   4   >