[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
 Changing location=none to location=text still left me with the bullet points 
appearing in a big list at the end of my chapter, but without any messages in 
them.

On Monday, April 22, 2024 at 07:54:39 AM MDT, Joel via ntg-context 
 wrote:  
 
 A few years back, I tried using endnotes with ConTeXt-SBL, and it failed to 
compile. I'm forced to try again (due to some other issue with footnotes), and 
instead of compiling to error, it compiles, but the footnote's message ends up 
being empty. 
Why is it appearing empty? Is there a fix?

Here is a minimum working example:
\usemodule[publ-imp-sbl]
\startbuffer [bib]

@Article{na2006,
title={Volcanoes \word{of} New Mexico},
year={2006},
journal={New Mexico Earth Matters},
publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources},
volume={6},
number={1},
location={Socorro, New Mexico}
}

@Book{clark1989,
author = {Clark, William},
title = {Railroads \word{and} railroad towns \word{in} New Mexico},
publisher = {New Mexico Magazine},
year = {1989},
address = {Albuquerque, New Mexico},
isbn = {9780937206126}
}

\stopbuffer

\usebtxdataset[bib.buffer]

\setupbtx[dataset=default]
\usebtxdefinitions[sbl]
\setupbtx[sbl]

\setupnote[footnote][location=none]

\starttext

   \input knuth
    \cite[clark1989]

    \placenotes[footnote]

    
    \startchapter[title=Bibliography]
    \placelistofpublications
    \stopchapter

\stoptext

--Joel


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


[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Jean-Pierre Delange
See here : 

https://wiki.contextgarden.net/Footnotes

Jean-Pierre


> Le 22 avr. 2024 à 16:47, Pablo Rodriguez via ntg-context  
> a écrit :
> 
> On 4/22/24 15:51, Joel via ntg-context wrote:
>> A few years back, I tried using endnotes with ConTeXt-SBL, and it failed
>> to compile. I'm forced to try again (due to some other issue with
>> footnotes), and instead of compiling to error, it compiles, but the
>> footnote's message ends up being empty. 
>> 
>> Why is it appearing empty? Is there a fix?
> 
> Hi Joel,
> 
> the bibliography part doesn’t work for me at all.
> 
> But notes may be placed as their location is text (and you add a real
> footnote).
> 
> This works fine:
> 
>  \setupnote[footnote][location=text]
> 
>  \starttext
> \input knuth
> \footnote{Footnote}
>  \cite[clark1989]
> 
>  \placenotes[footnote]
> 
>  \startchapter[title=Bibliography]
>  \placelistofpublications
>  \stopchapter
>  \stoptext
> 
> I never used a bibliography in ConTeXt, so that part is left to you.
> 
> I hope it helps,
> 
> Pablo
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> 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
> ___
___
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
___


[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Pablo Rodriguez via ntg-context
On 4/22/24 15:51, Joel via ntg-context wrote:
> A few years back, I tried using endnotes with ConTeXt-SBL, and it failed
> to compile. I'm forced to try again (due to some other issue with
> footnotes), and instead of compiling to error, it compiles, but the
> footnote's message ends up being empty. 
>
> Why is it appearing empty? Is there a fix?

Hi Joel,

the bibliography part doesn’t work for me at all.

But notes may be placed as their location is text (and you add a real
footnote).

This works fine:

  \setupnote[footnote][location=text]

  \starttext
 \input knuth
 \footnote{Footnote}
  \cite[clark1989]

  \placenotes[footnote]

  \startchapter[title=Bibliography]
  \placelistofpublications
  \stopchapter
  \stoptext

I never used a bibliography in ConTeXt, so that part is left to you.

I hope it helps,

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

maillist : ntg-context@ntg.nl / 
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
___


[NTG-context] Why are ConTeXt-SBL endnotes empty?

2024-04-22 Thread Joel via ntg-context
A few years back, I tried using endnotes with ConTeXt-SBL, and it failed to 
compile. I'm forced to try again (due to some other issue with footnotes), and 
instead of compiling to error, it compiles, but the footnote's message ends up 
being empty. 
Why is it appearing empty? Is there a fix?

Here is a minimum working example:
\usemodule[publ-imp-sbl]
\startbuffer [bib]

@Article{na2006,
title={Volcanoes \word{of} New Mexico},
year={2006},
journal={New Mexico Earth Matters},
publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources},
volume={6},
number={1},
location={Socorro, New Mexico}
}

@Book{clark1989,
author = {Clark, William},
title = {Railroads \word{and} railroad towns \word{in} New Mexico},
publisher = {New Mexico Magazine},
year = {1989},
address = {Albuquerque, New Mexico},
isbn = {9780937206126}
}

\stopbuffer

\usebtxdataset[bib.buffer]

\setupbtx[dataset=default]
\usebtxdefinitions[sbl]
\setupbtx[sbl]

\setupnote[footnote][location=none]

\starttext

   \input knuth
    \cite[clark1989]

    \placenotes[footnote]

    
    \startchapter[title=Bibliography]
    \placelistofpublications
    \stopchapter

\stoptext

--Joel


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


[NTG-context] Re: \setupitemgroup for footnotes

2023-09-25 Thread Henning Hraban Ramm

Am 25.09.23 um 17:52 schrieb Pablo Rodriguez:

Dear list,

I have the following sample (with current latest from 2023.09.18 21:13):

 \setuppapersize[A6]
 \starttext
 \startsetups[forfootnote]
 \setupitemgroup
[itemize][1]
[   before={\endgraf{\ttbf[before]}\endgraf},
 after={\endgraf{\ttbf [after]}\endgraf}]
 \stopsetups

 \setupnote[footnote][setups=forfootnote]

 \footnote{\startitemize
  \startitem Choose the correct answer.
  \startitemize
  \item This one
  \stopitemize
  \stopitem
 \stopitemize}
 \stoptext

Excuse my ignorance, but which is the right way to get the itemize setup
only for footnotes?


I would use \defineitemgroup to define your own, like "footnoteitemize".

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

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

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


[NTG-context] \setupitemgroup for footnotes

2023-09-25 Thread Pablo Rodriguez
Dear list,

I have the following sample (with current latest from 2023.09.18 21:13):

\setuppapersize[A6]
\starttext
\startsetups[forfootnote]
\setupitemgroup
   [itemize][1]
   [   before={\endgraf{\ttbf[before]}\endgraf},
after={\endgraf{\ttbf [after]}\endgraf}]
\stopsetups

\setupnote[footnote][setups=forfootnote]

\footnote{\startitemize
 \startitem Choose the correct answer.
 \startitemize
 \item This one
 \stopitemize
 \stopitem
\stopitemize}
\stoptext

Excuse my ignorance, but which is the right way to get the itemize setup
only for footnotes?

Many thanks for your help,

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

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


[NTG-context] Re: out of order sectionsblocks

2023-09-05 Thread Hans Hagen via ntg-context

On 9/5/2023 4:06 AM, Rik Kabel wrote:

The following example generates a log file which begins with the line

    structure   > lists > out of order sectionsblocks, maybe use
    \setsectionblock

My larger document has over a hundred of these at the beginning.

    \setupnote [endnote] [location=none]
    \starttext
      \startbodymatter
       \startchapter[title={Body}]
        \startparagraph
         \input knuthmath
         \startendnote
         \input knuth-gpt
         \stopendnote
        \stopparagraph
       \stopchapter
      \stopbodymatter
      \startbackmatter
       \startchapter[title={Notes}]
        \placenotes [endnote]
       \stopchapter
      \stopbackmatter
    \stoptext

Can the message be suppressed? Is there a better way to set up the 
document to have endnotes for text in other-than-backmatter 
sectionblocks appear in the backmatter sectionblock?


i'll bring the mewssage under tracker control and assume that you will 
answer all questions wrt side effects (in this case probably harmless 
but who knows when there is a real messed up block order cq. multiple 
same blocks used)


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

[NTG-context] out of order sectionsblocks

2023-09-04 Thread Rik Kabel

The following example generates a log file which begins with the line

   structure   > lists > out of order sectionsblocks, maybe use
   \setsectionblock

My larger document has over a hundred of these at the beginning.

   \setupnote [endnote] [location=none]
   \starttext
 \startbodymatter
  \startchapter[title={Body}]
   \startparagraph
    \input knuthmath
    \startendnote
    \input knuth-gpt
    \stopendnote
   \stopparagraph
  \stopchapter
 \stopbodymatter
 \startbackmatter
  \startchapter[title={Notes}]
   \placenotes [endnote]
  \stopchapter
 \stopbackmatter
   \stoptext

Can the message be suppressed? Is there a better way to set up the 
document to have endnotes for text in other-than-backmatter 
sectionblocks appear in the backmatter sectionblock?


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

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

Re: [NTG-context] adjustment to my local footnotes problem

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



\startsetups[setups:footnotes]

 \setupwhitespace[.01em]

\stopsetups

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

Julian

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

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


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


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


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

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


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


Hraban

___ 

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


maillist : ntg-context@ntg.nl / 
https://www.ntg.nl/mailman/listinfo/ntg-context

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

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


Re: [NTG-context] adjustment to my local footnotes problem

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



\startsetups[setups:footnotes]

 \setupwhitespace[.01em]

\stopsetups

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

Julian

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

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


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


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


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

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


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


Hraban

___ 

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


maillist : ntg-context@ntg.nl / 
https://www.ntg.nl/mailman/listinfo/ntg-context

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

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


Re: [NTG-context] adjustment to my local footnotes problem

2023-04-23 Thread Henning Hraban Ramm via ntg-context

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


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


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


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

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


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


Hraban

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

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


[NTG-context] adjustment to my local footnotes problem

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


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


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


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

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

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


[NTG-context] interlines space for local footnotes

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


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

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

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


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

Julian


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

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


Re: [NTG-context] notes by paragraph

2023-01-28 Thread jbf via ntg-context

That solves the problem. Thank you.

Julian

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

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

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

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


Re: [NTG-context] notes by paragraph

2023-01-28 Thread Pablo Rodriguez via ntg-context
On 1/28/23 03:58, jbf via ntg-context wrote:
> Re my earlier question on footnotes by defined paragraph:
> 
> \start...stoplocalfootnotes and \placelocalfootnotes largely solves the
> issue (had forgotten that option), but I am still getting the footnotes
> repeated at the bottom of the page. I am obviously missing a setting.
> There are parts of this text that do require the usual footnotes at the
> bottom, so I would not want to turn off this option permanently. I have
> tried \setupnotation[footnote][display=no] but that is not working.

Hi Julian,

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

Since you don’t provide a minimal sample to play with, I cannot tell
whether this works or not.

Just in case it helps,

Pablo

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

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


Re: [NTG-context] \quotation, protrusion and linebreaking

2022-10-12 Thread Rik Kabel via ntg-context


On 2022-10-11 15:06, Leah Neukirchen via ntg-context wrote:

Henning Hraban Ramm via ntg-context  writes:


Am 11.10.22 um 20:00 schrieb Leah Neukirchen via ntg-context:

Hello,
I noticed the following problem:
\showframe
\startluacode
fonts.protrusions.vectors.pure[0x201C] = { 1, 1 }
\stopluacode
\definefontfeature[default][default][protrusion=pure]
\setupalign[hanging]
\starttext
This text is unquoted.
“This text is quoted manually.”
\quotation{This text is quoted by a macro.}
This is a very long line followed by a nice linebreak, very
supercalifragilisticexpialidocious.
This is a very long line followed by an ugly linebreak, not
\quotation{supercalifragilisticexpialidocious}
\stoptext
The macro-quoted text is not protruded.  I fixed this locally with a
macro
\def\q#1{\protrusionboundary1\quotation{#1}}
Should this be default?
But the missing hyphenation I have to add myself with \-.  Ideas?

Try
\setupdelimitedtext[quotation][method=font]

That fixes both issues, thanks!

Not sure where I should have learned this exists, however. ;)


Note that this does not fix the problem when the quotation begins a 
footnote. See the thread "Hanging punctuation misalignment in footnotes" 
(https://mailman.ntg.nl/pipermail/ntg-context/2014/077122.html or 
https://www.mail-archive.com/ntg-context@ntg.nl/msg73516.html, pick your 
favorite archiver), where the problem is described. An test example follows:


   \setuplayout   [width=9cm,
    height=12cm]
   \definefontfeature [default]
   [default]
   [protrusion=quality]
   \setupalign    [hanging]
   \setupquotation    [method=font]
   \setupnote [endnote]
   [location=none]
   \setupnotation [footnote]
   [numberconversion=set 2]
   \setupnotation [footnote]
   [align=hanging]
   \setupwhitespace   [medium]
   \setupbodyfont [libertinus]
   \showframe
   \starttext

   \quotation{{\em Cantharides}} is the reported message from Sir Francis
   Drake upon defeating the Spanish Armada.\endnote{\quotation{{\em
   Vovi}} is
   reportedly the message from James Broun|-|Ramsay on taking Oudh. Both
   are as likely as the attribution of \quotation{{\em peccavi}} to
   Napier after
   his defeat of the Ameer of Scinde.}\footnote{“{\em Vovi}” is
   reportedly the message from James Broun|-|Ramsay on taking Oudh. Both
   are as likely as the attribution of \quotation{{\em peccavi}} to
   Napier after
   his defeat of the Ameer of Scinde.}

   {\tfx This problem appears intractable. See \quotation{Re:
   [NTG-context] Hanging punctuation misalignment in footnotes} on the
   mailing list, where Wolfgang explains that the problem is struts.}

   \placenotes[endnote]

   \stoptext

A solution is welcomed.

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

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


Re: [NTG-context] Forbid footnotes from splitting across pages

2022-08-03 Thread Hamid,Idris via ntg-context
Dear Pablo,

Many thanks and apologies for top-posting: my normal email client is currently 
down.

I thought of something similar; after some testing, this is what I finally came 
up with:

\setupwhitespace[medium]
\setupnotation[footnote]
 [before={%
  
\startframedtext[none][frame=on,offset=none,width=\textwidth,style={\setupwhitespace[medium]}]},
  after={\stopframedtext\blank[medium]}]

\starttext
\input ward\
\startfootnote
\input knuth
\stopfootnote{}
\dorecurse{3}{\input ward\ }
\startfootnote
\input knuth
\stopfootnote{}
\dorecurse{2}{\input ward\ }
\startfootnote
\input knuth
\stopfootnote{}
\dorecurse{3}{\input ward\ }
\startfootnote
\input knuth
\stopfootnote{}
\stoptext

It works but there must be a cleaner way..

Observation: The first argument of  \startframedtext is important, otherwise 
too much extra space is generated -- not sure why but the 
\startframedtext[none] suppresses it.

Endnotes are evil 

But the reason for this is that I'm converting to WORD using Abobe and 
NitroPDF, and I'm trying to make things as easy for the editor of the book as 
easy as possible. The conversion will look right but the dozens of footnotes 
will, of course, be unlinked. If no footnote crosses the page it will be easier 
to edit in WORD -- which I'm not touching!

Thanks again.

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523


From: ntg-context  on behalf of Pablo Rodriguez via 
ntg-context 
Sent: Wednesday, August 3, 2022 7:47 AM
To: Idris Samawi Hamid ادريس سماوي حامد via ntg-context 
Cc: Pablo Rodriguez 
Subject: Re: [NTG-context] Forbid footnotes from splitting across pages

** Caution: EXTERNAL Sender **

On 8/3/22 03:05, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote:
> Dear gang,
>
> Objectives:
>
> i)  Prevent footnotes from splitting across a page or pagebreak

Dear Idris,

I wonder whether a \framed[offset=none, frame=off, width=\textwidth]
would make sense here.

At least, it would prevent page breaks.

> ii) Make sure that the footnote reference number in the main text is
> always on the same page as the footnote.

\setupnote[footnote][split=verystrict, scope=text] might help here.

But it cannot achieve what is practically impossible:

  \setupnote[footnote][split=verystrict, scope=text]

  \starttext
  \dorecurse{25}
{ab cd ef\footnote{\input{knuth}}}
  \stoptext

I know that this depends from the publisher, but in these cases endnotes
are a way more viable option.

Just in case it might help,

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

maillist : ntg-context@ntg.nl / 
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ntg.nl%2Fmailman%2Flistinfo%2Fntg-contextdata=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=53R%2FGoQs03xamwTP1AaSV%2Flz0ANPdXq%2BScb8LWrCKDY%3Dreserved=0
webpage  : 
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pragma-ade.nl%2Fdata=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=d0in%2BCdHvJmM4%2FLLb4TSe3HLoUTGm3SV9VWckCFge8c%3Dreserved=0
 / 
https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcontext.aanhet.net%2Fdata=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=0ROMr0be%2Fcjjn7%2B84joQS6VN40i%2BkhEKytb%2FOYfT7Tk%3Dreserved=0
archive  : 
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbitbucket.org%2Fphg%2Fcontext-mirror%2Fcommits%2Fdata=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=KvquRtfyCxBeYRNGwgcjIfJJcc2VFzgMrVblnqx5IiU%3Dreserved=0
wiki : 
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcontextgarden.net%2Fdata=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=2I9Ld7VLXQUlPOAo96PnWx3ITOX%2BS0arKW%2F

Re: [NTG-context] Forbid footnotes from splitting across pages

2022-08-03 Thread Pablo Rodriguez via ntg-context
On 8/3/22 03:05, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote:
> Dear gang,
>
> Objectives:
>
> i)  Prevent footnotes from splitting across a page or pagebreak

Dear Idris,

I wonder whether a \framed[offset=none, frame=off, width=\textwidth]
would make sense here.

At least, it would prevent page breaks.

> ii) Make sure that the footnote reference number in the main text is
> always on the same page as the footnote.

\setupnote[footnote][split=verystrict, scope=text] might help here.

But it cannot achieve what is practically impossible:

  \setupnote[footnote][split=verystrict, scope=text]

  \starttext
  \dorecurse{25}
{ab cd ef\footnote{\input{knuth}}}
  \stoptext

I know that this depends from the publisher, but in these cases endnotes
are a way more viable option.

Just in case it might help,

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

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


[NTG-context] Forbid footnotes from splitting across pages

2022-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context

Dear gang,

Objectives:

i)  Prevent footnotes from splitting across a page or pagebreak
ii) Make sure that the footnote reference number in the main text is  
always on the same page as the footnote.


Yes, the result may not be pretty, but for some manuscript submissions it  
will make sense.


In the attached MWE (copied below), footnote 3 gets split across the page,  
despite [split=verystrict]. Indeed, split=verystrict seems to do nothing.


(Reproducing case ii) is more difficult.)

Thank you in advance for your help.

==
% \setupalign[flushleft,nothyphenated]
\setupnote[footnote][split=verystrict]
% \setupnotation[footnote][split=verystrict]

\starttext
\input ward\
\startfootnote
\input knuth
\stopfootnote{}
\dorecurse{3}{\input ward\ }
\startfootnote
\input knuth
\stopfootnote{}
\dorecurse{2}{\input ward\ }
\startfootnote
\input knuth
\stopfootnote{}
\dorecurse{3}{\input ward\ }
\startfootnote
\input knuth
\stopfootnote{}
\stoptext
==

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

split-footnotes.pdf
Description: Adobe PDF document


split-footnotes.tex
Description: TeX document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] headings in line numbering

2022-06-18 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

  \setuppapersize[A6]
  \definelinenote[otherlinenote]
  \setupnote[otherlinenote]
[compress=yes]
  \startsetups[line:notes]
\setupinterlinespace[line=2.9ex]
  \stopsetups
  \setupnote[linenote]
[paragraph=yes, compress=yes, compressmethod=separator]%
  \setupnotation[linenote][alternative=serried, width=broad]
  \starttext
  \startlinenumbering
  \dorecurse{3}{\subject{Heading\linenote{title}}
  \dorecurse{2}{text\linenote{some text}\linenote{another text}\par}}
  \stoplinenumbering
  \stoptext

How can I get headings added to the line numbers?

Many thanks for your help,

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

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


Re: [NTG-context] Footnotes in captions -> "inherit" textwidth from floatntg

2022-06-16 Thread Henning Hraban Ramm via ntg-context
It’s the same with footnotes in columns – they use the local width as 
default.


Hraban

Am 16.06.22 um 11:57 schrieb Denis Maier via ntg-context:

Yes, that works. But it’s still strange, isn’t it?

Denis

*Von:*ntg-context  *Im Auftrag von *jbf via 
ntg-context

*Gesendet:* Donnerstag, 16. Juni 2022 11:49
*An:* Denis Maier via ntg-context 
*Cc:* jbf ; mailing list for ConTeXt users 

*Betreff:* Re: [NTG-context] Footnotes in captions -> "inherit" 
textwidth from floatntg


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

Julian

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

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


Re: [NTG-context] Footnotes in captions -> "inherit" textwidth from floatntg

2022-06-16 Thread Denis Maier via ntg-context
Anyway, it’s possibly related to this question : 
https://www.mail-archive.com/ntg-context@ntg.nl/msg100815.html

Von: Maier, Denis Christian (UB)
Gesendet: Donnerstag, 16. Juni 2022 11:57
An: 'mailing list for ConTeXt users' 
Cc: jbf 
Betreff: AW: [NTG-context] Footnotes in captions -> "inherit" textwidth from 
floatntg

Yes, that works. But it’s still strange, isn’t it?

Denis

Von: ntg-context 
mailto:ntg-context-boun...@ntg.nl>> Im Auftrag von 
jbf via ntg-context
Gesendet: Donnerstag, 16. Juni 2022 11:49
An: Denis Maier via ntg-context mailto:ntg-context@ntg.nl>>
Cc: jbf mailto:roma83...@gmail.com>>; mailing list for 
ConTeXt users mailto:ntg-context@ntg.nl>>
Betreff: Re: [NTG-context] Footnotes in captions -> "inherit" textwidth from 
floatntg


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

Julian
On 16/6/22 18:56, Denis Maier via ntg-context wrote:
Hi,
I think I’ve ran into a somewhat strange behaviour. If you have a footnote in a 
float caption, the footnote won’t use the full textwidth, but only the width of 
the corresponding caption. Is that on purpose, a context bug or a user bug?

Best,
Denis


\starttext

asdf

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

\stoptext


___

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



maillist : ntg-context@ntg.nl<mailto: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] Footnotes in captions -> "inherit" textwidth from floatntg

2022-06-16 Thread Denis Maier via ntg-context
Yes, that works. But it’s still strange, isn’t it?

Denis

Von: ntg-context  Im Auftrag von jbf via ntg-context
Gesendet: Donnerstag, 16. Juni 2022 11:49
An: Denis Maier via ntg-context 
Cc: jbf ; mailing list for ConTeXt users 

Betreff: Re: [NTG-context] Footnotes in captions -> "inherit" textwidth from 
floatntg


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

Julian

On 16/6/22 18:56, Denis Maier via ntg-context wrote:
Hi,
I think I’ve ran into a somewhat strange behaviour. If you have a footnote in a 
float caption, the footnote won’t use the full textwidth, but only the width of 
the corresponding caption. Is that on purpose, a context bug or a user bug?

Best,
Denis


\starttext

asdf

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

\stoptext



___

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



maillist : ntg-context@ntg.nl<mailto: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] Footnotes in captions -> "inherit" textwidth from floatntg

2022-06-16 Thread jbf via ntg-context

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

Julian

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


Hi,

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


Best,

Denis

\starttext

asdf

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


\externalfigure[cow.pdf]

\stopplacefigure

\stoptext


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

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

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


[NTG-context] issue with compress in linenote

2022-05-31 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

  \setuppapersize[A6]
  \setuplinenumbering
[width=margin, location=outer, align=middle]
  \setupnote[linenote]
[paragraph=yes, compress=yes, compressmethod=separator]
  \setupnotation[linenote]
[alternative=serried, width=broad]
  \definelinenote[otherlinenote]
  %~ \setupnote[otherlinenote]
%~ [compress=yes]
  \starttext
  \startlinenumbering
  \dorecurse{20}
{uvwxyz\linenote{abcdef} }
  \stoplinenumbering
  \stoptext

For some reason unknown to me, "compress=yes" only works in linenote if
I setup another linenote and set it up with "compress=yes".

Could anyone tell me what I am missing or have I hit a bug?

Many thanks for your help,

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

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


Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
I found a way to wrap everything before \startdocument, so I think this
looks like a template more or less:

In case anyone is interested, here's the MWE:

\definenote[address]
\setupnote[address][rule=off,location=text]


\setupnotation[footnote][numberconversion=numerals]

\definenote[putjustmark]
\setupnote[putjustmark][location=none]
\setupnotation[putjustmark][numberconversion=set 2]


\definenote[putjustnote][footnote]
\setupnote[putjustnote][textcommand=\gobbleoneargument]
\setupnotation[putjustnote][numberconversion=set 2]

\newif\ifnoteintitle
\newtoks\titlefootnotes

\titlefootnotes\emptytoks


\def\thanks#1{\noteintitletrue\putjustmark{#1}\doglobal\appendtoks
\putjustnote{#1} \to \titlefootnotes}
\def\email#1{\noteintitletrue\putjustmark{#1}\doglobal\appendtoks
\putjustnote{#1} \to \titlefootnotes}

\def\unskipfunnylines{\ifnoteintitle\endgraf\kern-2\lineheight\fi}


\definenamespace
   [addr]
   [type=module,
name=address,
command=yes,
setup=list,
parent=addr,
  ]

\define[1]\useaddress
{\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}



\setupaddress[style=italic]
\defineaddress[fst][name={Name of Institute or Affiliation, City, Country}]
\defineaddress[snd][name={Name of Secondary Institute or Affiliation, City,
Country}]
\defineaddress[thd][name={Name of Third Institute or Affiliation, City,
Country}]

\processcommacommand[fst,snd,thd]\useaddress



\startsetups [document:start]
The Title\dorecurse{10}{\expanded{\thanks{Work supported by fund
\recurselevel.}}}
\endgraf

Me\dorecurse{10}{\expanded{\email{\tt my.name@mailbox.\recurselevel.com
}}\high{,}}\note[address][fst]\high{,}\note[address][snd]\high{,}\note[address][thd]
\endgraf

\placenotes[address]

\blank[medium]
  \startcolumns\hyphenpenalty1000

  \the\titlefootnotes\relax

  \setcounter[footnote][0]

  \unskipfunnylines

\stopsetups

\startsetups [document:stop]
  \stopcolumns
\stopsetups



\startdocument


test\footnote{test}

\input knuth

\input knuth

\input knuth

\input knuth

\stopdocument



On Wed, May 18, 2022 at 10:02 PM Ross  wrote:

> After some visualisations, I found that my token \titlefootnotes will
> ALWAYS generate two lines if there is/are any non-zero number of footnotes
> there. Interesting. So I need a \newif that each time a \thanks or \email
> is invoked, it'll set to true and I'll unskip the 2\lineheight afterwards.
>
> I still don't know why this \kern macro won't have any effect if it's
> inside a token or a \startsetup.
>
> On Wed, May 18, 2022 at 4:56 PM Ross  wrote:
>
>> Hi Massi,
>>
>> You are a champion!
>>
>> On Wed, May 18, 2022 at 4:41 PM mf  wrote:
>>
>>> I hope I got the point now:
>>>
>>> ...
>>> \startcolumns
>>>
>>> \the\titlefootnotes
>>>
>>> \kern-\rawcountervalue[address]\lineheight % dirty trick
>>>
>>> test\footnote{test}
>>>
>>> \input knuth
>>>
>>> \stopcolumns
>>> ...
>>>
>>> Massi
>>>
>>> Il 18/05/22 10:07, Ross ha scritto:
>>> > Dear Massi,
>>> >
>>> > Thanks for your solution. But the thing may be related to the
>>> > \appendtoks macro. It doesn't work to put just \setnotetext there.
>>> > \note works fine, so that's the reason I need the "full functional
>>> macro".
>>> >
>>> > Maybe I didn't get the point, so if it's not too much to ask, could
>>> you
>>> > do it on my MWE?
>>> >
>>> > PS: sorry I have to use another email account because my institute
>>> > mailbox took forever to get the message before my government (China)
>>> > finishes auditing it.
>>> >
>>> > Best wishes,
>>> > Zhichu
>>> >
>>> > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context >> > <mailto:ntg-context@ntg.nl>> wrote:
>>> >
>>> > Is this what you mean?
>>> >
>>> > \starttext
>>> > Hello\footnotetext{Footnote without mark}.
>>> > \stoptext
>>> >
>>> > Kind regards,
>>> > Massi
>>> >
>>> > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:
>>> >  > Hi everybody,
>>> >  >
>>> >  >
>>> >  > After some attempts to put footnotes in a mixed 1&2 columns
>>> > layout, I
>>> >  > decide to put marks in the one-column environment and flush them
>>> > when
>>> >  > entering the two-column environment.
>>> >  >
>>> >  >
>>> >  > The code

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
After some visualisations, I found that my token \titlefootnotes will
ALWAYS generate two lines if there is/are any non-zero number of footnotes
there. Interesting. So I need a \newif that each time a \thanks or \email
is invoked, it'll set to true and I'll unskip the 2\lineheight afterwards.

I still don't know why this \kern macro won't have any effect if it's
inside a token or a \startsetup.

On Wed, May 18, 2022 at 4:56 PM Ross  wrote:

> Hi Massi,
>
> You are a champion!
>
> On Wed, May 18, 2022 at 4:41 PM mf  wrote:
>
>> I hope I got the point now:
>>
>> ...
>> \startcolumns
>>
>> \the\titlefootnotes
>>
>> \kern-\rawcountervalue[address]\lineheight % dirty trick
>>
>> test\footnote{test}
>>
>> \input knuth
>>
>> \stopcolumns
>> ...
>>
>> Massi
>>
>> Il 18/05/22 10:07, Ross ha scritto:
>> > Dear Massi,
>> >
>> > Thanks for your solution. But the thing may be related to the
>> > \appendtoks macro. It doesn't work to put just \setnotetext there.
>> > \note works fine, so that's the reason I need the "full functional
>> macro".
>> >
>> > Maybe I didn't get the point, so if it's not too much to ask, could you
>> > do it on my MWE?
>> >
>> > PS: sorry I have to use another email account because my institute
>> > mailbox took forever to get the message before my government (China)
>> > finishes auditing it.
>> >
>> > Best wishes,
>> > Zhichu
>> >
>> > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context > > <mailto:ntg-context@ntg.nl>> wrote:
>> >
>> > Is this what you mean?
>> >
>> > \starttext
>> > Hello\footnotetext{Footnote without mark}.
>> > \stoptext
>> >
>> > Kind regards,
>> > Massi
>> >
>> > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:
>> >  > Hi everybody,
>> >  >
>> >  >
>> >  > After some attempts to put footnotes in a mixed 1&2 columns
>> > layout, I
>> >  > decide to put marks in the one-column environment and flush them
>> > when
>> >  > entering the two-column environment.
>> >  >
>> >  >
>> >  > The code is ugly but the result is acceptable. Except that the
>> > invisible
>> >  > footnote marks do generate something in the main text, so
>> there's a
>> >  > blank line for each footnote.
>> >  >
>> >  >
>> >  > Here's an MWE:
>> >  >
>> >  >
>> >  > =
>> >  >
>> >  > \definenote[address]
>> >  > \setupnote[address][rule=off,location=text]
>> >  >
>> >  >
>> >  >
>> >  > \definenote[putjustmark]
>> >  > \setupnote[putjustmark][location=none]
>> >  > \setupnotation[putjustmark][numberconversion=set 2]
>> >  >
>> >  >
>> >  > \definenote[putjustnote]%[footnote] % if footnotes need to be
>> > grouped,
>> >  > uncomment the second argument and the line after
>> \the\titlefootnotes
>> >  > \setupnote[putjustnote][textcommand=\gobbleoneargument]
>> >  > \setupnotation[putjustnote][numberconversion=set 2]
>> >  >
>> >  >
>> >  > \newtoks\titlefootnotes
>> >  >
>> >  >
>> >  > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
>> >  > \titlefootnotes}
>> >  > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
>> >  > \titlefootnotes}
>> >  >
>> >  >
>> >  > \appendtoks
>> >  >\setcounter[footnote][0] % this looks stupid because it has no
>> > effect
>> >  >%\setupnotation[footnote][numberconversion=numerals]
>> >  > \to \titlefootnotes
>> >  >
>> >  > \definenamespace
>> >  > [addr]
>> >  > [type=module,
>> >  >  name=address,
>> >  >  command=yes,
>> >  >  setup=list,
>> >  >  parent=addr,
>> >  >]
>> >  >
>> >  > \define[1]\use

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
Hi Massi,

You are a champion!

On Wed, May 18, 2022 at 4:41 PM mf  wrote:

> I hope I got the point now:
>
> ...
> \startcolumns
>
> \the\titlefootnotes
>
> \kern-\rawcountervalue[address]\lineheight % dirty trick
>
> test\footnote{test}
>
> \input knuth
>
> \stopcolumns
> ...
>
> Massi
>
> Il 18/05/22 10:07, Ross ha scritto:
> > Dear Massi,
> >
> > Thanks for your solution. But the thing may be related to the
> > \appendtoks macro. It doesn't work to put just \setnotetext there.
> > \note works fine, so that's the reason I need the "full functional
> macro".
> >
> > Maybe I didn't get the point, so if it's not too much to ask, could you
> > do it on my MWE?
> >
> > PS: sorry I have to use another email account because my institute
> > mailbox took forever to get the message before my government (China)
> > finishes auditing it.
> >
> > Best wishes,
> > Zhichu
> >
> > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context  > <mailto:ntg-context@ntg.nl>> wrote:
> >
> > Is this what you mean?
> >
> > \starttext
> > Hello\footnotetext{Footnote without mark}.
> > \stoptext
> >
> > Kind regards,
> > Massi
> >
> > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:
> >  > Hi everybody,
> >  >
> >  >
> >  > After some attempts to put footnotes in a mixed 1&2 columns
> > layout, I
> >  > decide to put marks in the one-column environment and flush them
> > when
> >  > entering the two-column environment.
> >  >
> >  >
> >  > The code is ugly but the result is acceptable. Except that the
> > invisible
> >  > footnote marks do generate something in the main text, so there's
> a
> >  > blank line for each footnote.
> >  >
> >  >
> >  > Here's an MWE:
> >  >
> >  >
> >  > =
> >  >
> >  > \definenote[address]
> >  > \setupnote[address][rule=off,location=text]
> >  >
> >  >
> >  >
> >  > \definenote[putjustmark]
> >  > \setupnote[putjustmark][location=none]
> >  > \setupnotation[putjustmark][numberconversion=set 2]
> >  >
> >  >
> >  > \definenote[putjustnote]%[footnote] % if footnotes need to be
> > grouped,
> >  > uncomment the second argument and the line after
> \the\titlefootnotes
> >  > \setupnote[putjustnote][textcommand=\gobbleoneargument]
> >  > \setupnotation[putjustnote][numberconversion=set 2]
> >  >
> >  >
> >  > \newtoks\titlefootnotes
> >  >
> >  >
> >  > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
> >  > \titlefootnotes}
> >  > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
> >  > \titlefootnotes}
> >  >
> >  >
> >  > \appendtoks
> >  >\setcounter[footnote][0] % this looks stupid because it has no
> > effect
> >  >%\setupnotation[footnote][numberconversion=numerals]
> >  > \to \titlefootnotes
> >  >
> >  > \definenamespace
> >  > [addr]
> >  > [type=module,
> >  >  name=address,
> >  >  command=yes,
> >  >  setup=list,
> >  >  parent=addr,
> >  >]
> >  >
> >  > \define[1]\useaddress
> >  >  {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}
> >  >
> >  >
> >  > \starttext
> >  >
> >  >
> >  >
> >  > \defineaddress[fst][name={Name of Institute or Affiliation, City,
> > Country}]
> >  > \defineaddress[snd][name={Name of Secondary Institute or
> > Affiliation,
> >  > City, Country}]
> >  >
> >  > \processcommacommand[fst,snd]\useaddress
> >  >
> >  >
> >  > The Title\thanks{Work supported by somebody.}
> >  >
> >  >
> > Me\email{myemail@some.where
> }\high{,}\note[address][fst]\high{,}\note[address][snd]
> >
> >  >
> >  >
> >  >
> >  > \placenotes[address]
> >  >
> >  

Re: [NTG-context] Can I just put a footnote without marking in the main text?

2022-05-18 Thread Ross via ntg-context
Dear Massi,

Thanks for your solution. But the thing may be related to the \appendtoks
macro. It doesn't work to put just \setnotetext there.
\note works fine, so that's the reason I need the "full functional macro".

Maybe I didn't get the point, so if it's not too much to ask, could you do
it on my MWE?

PS: sorry I have to use another email account because my institute mailbox
took forever to get the message before my government (China) finishes
auditing it.

Best wishes,
Zhichu

On Wed, May 18, 2022 at 3:36 PM mf via ntg-context 
wrote:

> Is this what you mean?
>
> \starttext
> Hello\footnotetext{Footnote without mark}.
> \stoptext
>
> Kind regards,
> Massi
>
> Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:
> > Hi everybody,
> >
> >
> > After some attempts to put footnotes in a mixed 1&2 columns layout, I
> > decide to put marks in the one-column environment and flush them when
> > entering the two-column environment.
> >
> >
> > The code is ugly but the result is acceptable. Except that the invisible
> > footnote marks do generate something in the main text, so there's a
> > blank line for each footnote.
> >
> >
> > Here's an MWE:
> >
> >
> > =====
> >
> > \definenote[address]
> > \setupnote[address][rule=off,location=text]
> >
> >
> >
> > \definenote[putjustmark]
> > \setupnote[putjustmark][location=none]
> > \setupnotation[putjustmark][numberconversion=set 2]
> >
> >
> > \definenote[putjustnote]%[footnote] % if footnotes need to be grouped,
> > uncomment the second argument and the line after \the\titlefootnotes
> > \setupnote[putjustnote][textcommand=\gobbleoneargument]
> > \setupnotation[putjustnote][numberconversion=set 2]
> >
> >
> > \newtoks\titlefootnotes
> >
> >
> > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
> > \titlefootnotes}
> > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to
> > \titlefootnotes}
> >
> >
> > \appendtoks
> >\setcounter[footnote][0] % this looks stupid because it has no effect
> >%\setupnotation[footnote][numberconversion=numerals]
> > \to \titlefootnotes
> >
> > \definenamespace
> > [addr]
> > [type=module,
> >  name=address,
> >  command=yes,
> >  setup=list,
> >  parent=addr,
> >]
> >
> > \define[1]\useaddress
> >  {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}
> >
> >
> > \starttext
> >
> >
> >
> > \defineaddress[fst][name={Name of Institute or Affiliation, City,
> Country}]
> > \defineaddress[snd][name={Name of Secondary Institute or Affiliation,
> > City, Country}]
> >
> > \processcommacommand[fst,snd]\useaddress
> >
> >
> > The Title\thanks{Work supported by somebody.}
> >
> > Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd]
>
> >
> >
> >
> > \placenotes[address]
> >
> > \blank[medium]
> >
> > \startcolumns
> >
> >
> > \the\titlefootnotes
> >
> > %\setcounter[footnote][0] % why it's necessary to set the counter
> > outside the token if I define [putjustnote] as [footnote]?
> >
> >
> > test\footnote{test}
> >
> > \input knuth
> >
> >
> >
> > \stopcolumns
> >
> > \stoptext
> >
> > =
> >
> >
> ___
>
> >
> > If your question is of interest to others as well, please add an entry
> > to the Wiki!
> >
> > maillist : ntg-context@ntg.nl /
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> >
> ___
>
> >
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>


-- 
Best Regards
Chen
___
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] Can I just put a footnote without marking in the main text?

2022-05-18 Thread mf via ntg-context

Is this what you mean?

\starttext
Hello\footnotetext{Footnote without mark}.
\stoptext

Kind regards,
Massi

Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto:

Hi everybody,


After some attempts to put footnotes in a mixed 1&2 columns layout, I 
decide to put marks in the one-column environment and flush them when 
entering the two-column environment.



The code is ugly but the result is acceptable. Except that the invisible 
footnote marks do generate something in the main text, so there's a 
blank line for each footnote.



Here's an MWE:


=

\definenote[address]
\setupnote[address][rule=off,location=text]



\definenote[putjustmark]
\setupnote[putjustmark][location=none]
\setupnotation[putjustmark][numberconversion=set 2]


\definenote[putjustnote]%[footnote] % if footnotes need to be grouped, 
uncomment the second argument and the line after \the\titlefootnotes

\setupnote[putjustnote][textcommand=\gobbleoneargument]
\setupnotation[putjustnote][numberconversion=set 2]


\newtoks\titlefootnotes


\def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to 
\titlefootnotes}
\def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to 
\titlefootnotes}



\appendtoks
   \setcounter[footnote][0] % this looks stupid because it has no effect
   %\setupnotation[footnote][numberconversion=numerals]
\to \titlefootnotes

\definenamespace
    [addr]
    [type=module,
     name=address,
     command=yes,
     setup=list,
     parent=addr,
   ]

\define[1]\useaddress
     {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}


\starttext



\defineaddress[fst][name={Name of Institute or Affiliation, City, Country}]
\defineaddress[snd][name={Name of Secondary Institute or Affiliation, 
City, Country}]


\processcommacommand[fst,snd]\useaddress


The Title\thanks{Work supported by somebody.}

Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd] 




\placenotes[address]

\blank[medium]

\startcolumns


\the\titlefootnotes

%\setcounter[footnote][0] % why it's necessary to set the counter 
outside the token if I define [putjustnote] as [footnote]?



test\footnote{test}

\input knuth



\stopcolumns

\stoptext

=

___ 

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


maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

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


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

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


[NTG-context] Can I just put a footnote without marking in the main text?

2022-05-17 Thread Zhichu Chen via ntg-context

Hi everybody,


After some attempts to put footnotes in a mixed 1&2 columns layout, I 
decide to put marks in the one-column environment and flush them when 
entering the two-column environment.



The code is ugly but the result is acceptable. Except that the invisible 
footnote marks do generate something in the main text, so there's a 
blank line for each footnote.



Here's an MWE:


=

\definenote[address]
\setupnote[address][rule=off,location=text]



\definenote[putjustmark]
\setupnote[putjustmark][location=none]
\setupnotation[putjustmark][numberconversion=set 2]


\definenote[putjustnote]%[footnote] % if footnotes need to be grouped, 
uncomment the second argument and the line after \the\titlefootnotes

\setupnote[putjustnote][textcommand=\gobbleoneargument]
\setupnotation[putjustnote][numberconversion=set 2]


\newtoks\titlefootnotes


\def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to 
\titlefootnotes}
\def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to 
\titlefootnotes}



\appendtoks
  \setcounter[footnote][0] % this looks stupid because it has no effect
  %\setupnotation[footnote][numberconversion=numerals]
\to \titlefootnotes

\definenamespace
   [addr]
   [type=module,
    name=address,
    command=yes,
    setup=list,
    parent=addr,
  ]

\define[1]\useaddress
    {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}}


\starttext



\defineaddress[fst][name={Name of Institute or Affiliation, City, Country}]
\defineaddress[snd][name={Name of Secondary Institute or Affiliation, 
City, Country}]


\processcommacommand[fst,snd]\useaddress


The Title\thanks{Work supported by somebody.}

Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd] 




\placenotes[address]

\blank[medium]

\startcolumns


\the\titlefootnotes

%\setcounter[footnote][0] % why it's necessary to set the counter 
outside the token if I define [putjustnote] as [footnote]?



test\footnote{test}

\input knuth



\stopcolumns

\stoptext

=

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

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


[NTG-context] \placenotes ends up in wrong place when mixing one- and two- column layouts.

2022-05-10 Thread Zhichu Chen via ntg-context

Thanks Hans, works perfectly.


Sorry for the late reply. Still working on the template and got another 
one. Again, sorry.



The journal is in two-column form and the title, authors, and addresses 
are spanned to


the full width. Very common. But the title may acknowledge to some 
fund(s) and the


authors may have email addresses. If I use \note[thanks] and 
\note[email] to do that,


only the markers are shown. That's expected. So I tried to put 
\postponenotes before


the title and insert\placenotes[thanks] and \placenotes[email] after 
\startcolumns. The


notes did show up but in wrong position.


I hope there's another magic switch, or I have to put the marks in the 
title head and


put "real" but invisible notes in the two-column texts.



Thanks again, Hans.


Yours,

Zhichu


MWE (not that minimal):

===

\definenote[address]
\setupnote[address][rule=off,location=text]

\definenote[thanks]
\setupnote[thanks][location=firstcolumn]
\setupnotation[thanks][numberconversion=set 2]
\definenote[email][thanks]


\definenamespace
   [addr]
   [type=module,
    name=address,
    command=yes,
    setup=list,
    parent=addr,
  ]

\define[1]\useaddress
    {\edef\currentaddress{#1}%
 {\setnotetext[address][#1]{\addressparameter{name}}}%
    \endgraf
    }

\starttext


\setupaddress[style=italic]
\defineaddress[fst][name={Name of Institute or Affiliation, City, Country}]
\defineaddress[snd][name={Name of Secondary Institute or Affiliation, 
City, Country}]


\processcommacommand[fst,snd]\useaddress

\postponenotes

The Title\thanks{Work supported by somebody.}

%\startlocalnotes[address]
Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd]
%\placelocalnotes[address]
%\stoplocalnotes

\placenotes[address]

\startcolumns

\placenotes[thanks]
\placenotes[email]


\input knuth
\stopcolumns

\stoptext

===


On 5/8/22 17:20, Hans Hagen via ntg-context wrote:

On 5/8/2022 6:55 AM, Zhichu via ntg-context wrote:

Hi,

I am going to convince the Board of a journal to consider ConTeXt as 
an additional option.
I want to make a module before I say anything. Right now I have this 
title problem.


The journal requires the titles to be CAPITALISED, except for the 
acronyms. I'm currently
using backticks`...`to wrap it and replace it with\egroup 
...\WORD\bgroup{} with
lpeg. This kinda works, but that's so ugly. Besides, the actual story 
is that I also want to

add markdown as an option, so the backticks actually have meanings.

I also checked thetypo-cap.luafile to get a clue. But I used to use 
TeX exclusively

and I have to admit that it's so overwhelming for a newbie.

I really like the way wherebibtextreats words enclosed in curly 
braces are ignored.
Or are there something that's less aggressive than\WORDso the LaTeX 
trick works:

\def\NoCaseChange#1{\noexpand\NoCaseChange{\noexpand#1}}

\starttext

\protected\def\casing[#1]{\groupedcommand{\setcharactercasing[#1]}{}}
    \protected\def\nocasing 
{\groupedcommand{\setcharactercasing[reset]}{}}


    \setuphead[chapter][textstyle=\WORD]

    \chapter{some \nocasing{kept} text or \casing[Word]{more} text}

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


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

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


Re: [NTG-context] Make footnote/endnote number not superscript?

2022-03-21 Thread Bruce Horrocks via ntg-context
Thank-you all - the textcommand= was the necessary magic incantation. 

I will certainly use the linknote suggestion, not least because I'll still need 
regular footnotes as well.

And if I can pluck up courage to "move" the \setupnote Wiki page over to the 
new style (I don't know how to do an "undo" if it all goes wrong!) I will 
document the parameters discovered so far.


> On 21 Mar 2022, at 18:25, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> On 3/20/22 22:18, Rik Kabel via ntg-context wrote:
>> On 2022-03-20 17:07, Wolfgang Schuster via ntg-context wrote:
>>> [...]
>>> \setupnote[footnote][textcommand=]
>>> [...]
>> You might want to define a separate set of notes, for example,
>> linknotes, defined as Wolfgang suggests, so
>> [...]
>> You can define multiple streams of footnotes and endnotes.
> Hi Bruce,
> 
> following the conversation, this might be a sample of what I think you
> intend to achieve:
> 
> \definenote[linknote]
> \setupnote[linknote]
> [textcommand={\ }, textstyle=, location=text]
> \setupnotation[linknote]
> [alternative=serried, numberstyle={\switchtobodyfont[12pt]},
>  style={\switchtobodyfont[12pt]}, numbercommand=]
> \starttext
> 
> \dorecurse{25}
> {First\footnote{Footnote one}.
>  See my video at link\linknote{yewtu.be/my-great-video.}. }
> 
> \title{Links}
> \placenotes[linknote]
> 
> \stoptext
> 
> I hope it may help,
> 
> Pablo

—
Bruce Horrocks
Hampshire, UK

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

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


Re: [NTG-context] Make footnote/endnote number not superscript?

2022-03-21 Thread Pablo Rodriguez via ntg-context
On 3/20/22 22:18, Rik Kabel via ntg-context wrote:
> On 2022-03-20 17:07, Wolfgang Schuster via ntg-context wrote:
>> [...]
>> \setupnote[footnote][textcommand=]
>> [...]
> You might want to define a separate set of notes, for example,
> linknotes, defined as Wolfgang suggests, so
> [...]
> You can define multiple streams of footnotes and endnotes.
Hi Bruce,

following the conversation, this might be a sample of what I think you
intend to achieve:

  \definenote[linknote]
  \setupnote[linknote]
  [textcommand={\ }, textstyle=, location=text]
  \setupnotation[linknote]
  [alternative=serried, numberstyle={\switchtobodyfont[12pt]},
   style={\switchtobodyfont[12pt]}, numbercommand=]
  \starttext

  \dorecurse{25}
  {First\footnote{Footnote one}.
   See my video at link\linknote{yewtu.be/my-great-video.}. }

  \title{Links}
  \placenotes[linknote]

  \stoptext

I hope it may help,

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

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


Re: [NTG-context] Make footnote/endnote number not superscript?

2022-03-20 Thread Rik Kabel via ntg-context


On 2022-03-20 17:07, Wolfgang Schuster via ntg-context wrote:

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


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


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


\starttext

First\footnote{Footnote one}

\setupnote[footnote][textcommand=]

First\footnote{Footnote two}

\stoptext

Wolfgang

You might want to define a separate set of notes, for example, 
linknotes, defined as Wolfgang suggests, so


   \setupnote[linknote][textcommand=]

so that they are a separate sequence. These would be used exclusively 
for the url links you describe and regular footnotes would continue to 
be superscript (or however else you choose to treat them). You can 
define multiple streams of footnotes and endnotes.


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

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


Re: [NTG-context] Make footnote/endnote number not superscript?

2022-03-20 Thread Wolfgang Schuster via ntg-context

Bruce Horrocks via ntg-context schrieb am 20.03.2022 um 21:10:

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

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

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


\starttext

First\footnote{Footnote one}

\setupnote[footnote][textcommand=]

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

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


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


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


Julian

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

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

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

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

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

Thanks in advance.
—
Bruce Horrocks
Hampshire, UK

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

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

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

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


[NTG-context] Make footnote/endnote number not superscript?

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

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

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

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

Thanks in advance.
—
Bruce Horrocks
Hampshire, UK

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

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


[NTG-context] interlinespacing in margin notes – solved

2022-03-10 Thread Henning Hraban Ramm via ntg-context

Hi all, esp. Hans and Massimiliano,

yesterday in the online meeting we discussed (again) my margin notes 
problems. A quite minimal setup is shown below.


My remaining problem was that the footnotes always used the 
interlinespacing (baseskip) of the main text.

Finally I found the reason in my typescript file:
\definefontfeature[default][dimensions=strut]
(I guess I tried to solve the irregular line spacing with that setting.)

Thank you for your patience!

Now I need to adjust the linespacing and page breaking in all other 
parts of my current book...


Hraban


"""
\usemodule[ipsum]
\showframe

\setuplayout[
  width=100mm,
  rightmargin=50mm,
  rightmargindistance=6mm,
]

\setupbodyfontenvironment[11pt][
  em=italicface,
  text=11pt,
  small=8pt,
  interlinespace=14pt,
]
\definebodyfontenvironment[8pt][interlinespace=8pt]

\setupbodyfont[rm,11pt]

\define\PlaceFootnote{%
\inouter[
  width=50mm,
  stack=yes,
]{%
\placelocalnotes[footnote][before=,after=]
}}

\setupnote[footnote][
  location=text,
  indenting=no,
  bodyfont={ss,8pt},% footnote text style
  next=\PlaceFootnote,
  align=flushleft,
] % footnote marker in text

\setupnotation[footnote][
  way=bytext,
  indenting=no,
  distance=0.25em,
] % footnote text

\starttext

\dorecurse{10}{
\ipsum[alternative=lines,n=random,language=la]\footnote{\ipsum[alternative=lines,n=random,language=la]} 
\ipsum[alternative=lines,n=random,language=la]\par

}

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

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


Re: [NTG-context] 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
___


Re: [NTG-context] paragraph notes located in text

2022-02-01 Thread Pablo Rodriguez via ntg-context
On 1/31/22 10:11 PM, Wolfgang Schuster via ntg-context wrote:
> Pablo Rodriguez via ntg-context schrieb am 31.01.2022 um 19:49:
>> Dear list,
>> [...]
>> Could anyone confirm that the is no way to get paragraph notes when
>> location is text, or tell me what I’m missing?
>
> You forgot
>
>      \setupnotation[footnote][display=no]
>
> otherwise each footnote entry starts at a new line.
Many thanks for your reply, Wolfgang.

I wonder whether it would make sense that the use of "location=text" and
"paragraph=yes" in \setupnote could trigger "\setupnotation[display=no]".

Otherwise, for the average user "display" seems to invoke a similar
function to "placehead" in "\setuphead".

Many thanks for your help,

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

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


Re: [NTG-context] paragraph notes located in text

2022-01-31 Thread Wolfgang Schuster via ntg-context

Pablo Rodriguez via ntg-context schrieb am 31.01.2022 um 19:49:

Dear list,

with current latest (2022.01.21 20:13), I cannot get paragraph footnotes
when located in text.

Here you have the mandatory sample:

   \setuppapersize[A6]
   \showframe\showgrid
   %~ \setupnote[footnote][paragraph=yes]
   \setupnote[footnote][location=text, paragraph=yes]
   \setupnotation[footnote][alternative=serried, width=broad]
   \starttext
   \startlinenumbering[step=3]
   \dorecurse{25}
{a\footnote{b} }
   \stoplinenumbering
\placenotes[footnote]
   \stoptext

I already asked this twice
(https://mailman.ntg.nl/pipermail/ntg-context/2022/104770.html,
https://mailman.ntg.nl/pipermail/ntg-context/2022/104929.html).

Could anyone confirm that the is no way to get paragraph notes when
location is text, or tell me what I’m missing?


You forgot

    \setupnotation[footnote][display=no]

otherwise each footnote entry starts at a new line.

Wolfgang

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

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


[NTG-context] paragraph notes located in text

2022-01-31 Thread Pablo Rodriguez via ntg-context
Dear list,

with current latest (2022.01.21 20:13), I cannot get paragraph footnotes
when located in text.

Here you have the mandatory sample:

  \setuppapersize[A6]
  \showframe\showgrid
  %~ \setupnote[footnote][paragraph=yes]
  \setupnote[footnote][location=text, paragraph=yes]
  \setupnotation[footnote][alternative=serried, width=broad]
  \starttext
  \startlinenumbering[step=3]
  \dorecurse{25}
   {a\footnote{b} }
  \stoplinenumbering
   \placenotes[footnote]
  \stoptext

I already asked this twice
(https://mailman.ntg.nl/pipermail/ntg-context/2022/104770.html,
https://mailman.ntg.nl/pipermail/ntg-context/2022/104929.html).

Could anyone confirm that the is no way to get paragraph notes when
location is text, or tell me what I’m missing?

Many thanks for your help,

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

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


[NTG-context] How to get \placenotes to place footnote-style citations at the end of my content?

2022-01-24 Thread Joel via ntg-context
I'm spinning this question off another post, as my previous  question was very 
specific, but it was possibly discovered a more general bug exists?
I'm creating some lecture slides that have footnote citations throughout. The 
problem is, the slides themselves already don't have much screen space, and 
adding all of the footnotes on the same slide steals limited screen space. It 
ends up showing one bullet point per slide and filling the page with the 
citation information.
I still need to provide citations though. The solution is perhaps to place 
`\placenotes[footnote]` after several slides. Then, at the very end of the 
document list the full bibliography with ` \placelistofpublications`.

In this way, I still present the citations, but they don't bury the content of 
the slides.

But something seems wrong with ConTeXt, not allowing this to function. Try to 
compile this code which Joey sent me and it won't populate 
`\placenotes[footnote]` with any content:
\startbuffer [bib]

@Book{clark1989,
author = {Clark, William},
title = {Railroads \word{and} railroad towns \word{in} New Mexico},
publisher = {New Mexico Magazine},
year = {1989},
address = {Albuquerque, New Mexico},
isbn = {9780937206126}
}

\stopbuffer

\usebtxdataset[bib.buffer]

\setupbtx[dataset=default]

\setupnote[footnote][location=none] % commenting out this line will produce
footnotes that expand the citation correctly

\starttext

   \input knuth
    \cite[alternative=footnote][clark1989]
    \page
    \placenotes[footnote]

    \startchapter[title=Bibliography]
    \placelistofpublications
    \stopchapter

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

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


Re: [NTG-context] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note

2022-01-16 Thread musa furber via ntg-context
Dear Hans,

Thank you for your reply.

Here is the missing MWE. (I will also try to attach it.)

% mwe
% document is an English translation of Arabic text; all annotations are in
English.
%
% concerning footnotes to Arabic text:
%   numbers in body should use Mashriki numbers (e.g. ٠١٢٣٤٥٦٧٨٩), and
appear between parenthesis
%   numbers in footer should use Arabic numbers (e.g. 0123456789), and
without parenthesis
%
% MWE uses dejavu for English and Amiri for and Arabic. Amiri is availble
at https://www.amirifont.org/

\mainlanguage[en-gb]

\setupdirections[bidi=global,method=one]

\starttypescriptcollection [amiri]

\starttypescript [serif] [amiri]
\definefontsynonym [Serif] [file:Amiri-Regular.ttf]
[features=arabic]
\stoptypescript

\starttypescript [amiri]
   \definetypeface [amiri] [rm] [serif] [amiri] [default]
[fallbacks=latin-fallback]
\stoptypescript

\stoptypescriptcollection

\define\setarabic{
  \setupalign[r2l] \righttoleft \switchtobodyfont[amiri]
}

\define\setlatin{
  \setupalign[l2r] \lefttoright \switchtobodyfont[dejavu]
}


\setupnotes[footnote][]
\setupnotes[arfootnote][]

\definenote[arfootnote][footnote]
\setupnotation
[arfootnote]
[before=\setlatin,
 alternative=text,
]

\setupnote
[arfootnote]
[headstyle={\switchtobodyfont[amiri]},
 textcommand=\footnotenotenumbercommand,
 alternative=text,
 ]

\protected\def\footnotenotenumbercommand#1{{\high{({\convertnumber{arabicdecimals}{#1}})}}}
% unexpected results
%
\protected\def\footnotenotenumbercommand#1{{\high{({\convertnumber{abjadnumerals}{#1}})}}}
%
\protected\def\footnotenotenumbercommand#1{{\high{({\convertnumber{default}{#1}})}}}
%
% `\detokenize' variations, for comparison...
%
%
\protected\def\footnotenotenumbercommand#1{{\high{(\detokenize{\convertnumber{arabicdecimals}{#1}})}}}
%
\protected\def\footnotenotenumbercommand#1{{\high{(\detokenize{\convertnumber{abjadnumerals}{#1}})}}}
%
\protected\def\footnotenotenumbercommand#1{{\high{(\detokenize{\convertnumber{default}{#1}})}}}

\setupbodyfont[dejavu,11pt]

\starttext
\setarabic

مرحبًا\arfootnote{Annotation text.} % expected footnote `(١)`, got `1arabic`

مرحبًا\arfootnote{Annotation text.} % expected footnote `(٢)`, got `2arabic`


\stoptext

%%% end of mwe

Thanks,
Musa
___
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] no paragraph footnotes when located in text

2022-01-16 Thread Pablo Rodriguez via ntg-context
Dear list,

using current latest (2022.01.15 17:32), I still experience an already
reported issue
(https://mailman.ntg.nl/pipermail/ntg-context/2022/104770.html):

  \setuppapersize[A6]
  \showframe\showgrid
  %~ \setupnote[footnote][paragraph=yes]
  \setupnote[footnote][location=text, paragraph=yes]
  \setupnotation[footnote][alternative=serried, width=broad]
  \starttext
  \startlinenumbering[step=3]
  \dorecurse{25}
   {a\footnote{b} }
  \stoplinenumbering
   \placenotes[footnote]
  \stoptext

I don’t get paragraph notes with "location=text".

Could anyone confirm the issue or tell me what I’m missing?

Many thanks for your help,

Pablo


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

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


Re: [NTG-context] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note

2022-01-15 Thread Hans Hagen via ntg-context

On 1/15/2022 3:03 AM, musa furber via ntg-context wrote:
This week I updated ConTeXt minimals. Before then, I used the following 
code so that footnotes to Arabic passages would have parenthesis around 
them and use the digits used in Arabic texts in the Middle East (e.g. 
٠١٢٣٤٥٦٧٨٩).


\setupnote [arfootnote] [
   headstyle={\switchtobodyfont[kitab]},
   textcommand=\footnotenotenumbercommand,
   alternative=text,
   ]
\define[1]\footnotenotenumbercommand{{\high{(\convertnumber{arabicdecimals}{#1})}}}

Since the update, for the 123rd footnote, I now get `(123arabic)` 
instead of `(١٢٣)`.


Elsewhere, I do get the expected output (i.e. `١٢٣٢`) when calling
\convertnumber{arabicdecimals}{1232}

I'm still relatively new to ConTeXt, so I'm unsure if what used really 
is correct, or if it was wrong and I now need to find the right way to 
do it.


Any help would be greatly appreciated.

Next time give a complete MWE with useable fonts

  \setupnotation
[arfootnote]
 [numberconversion=arabicdecimals]

as in:

\setupbodyfont[dejavu]

\definenote
  [arfootnote]

\setupnotation
  [arfootnote]
  [numberconversion=arabicdecimals]

\setupnote
  [arfootnote]
  [headstyle={\switchtobodyfont[kitab]},
   textcommand=\footnotenotenumbercommand,
   alternative=text]

\protected\def\footnotenotenumbercommand#1{\high{(#1)}}

\starttext
x\arfootnote{x}
\stoptext

The #1 passed can be anything that renderes the note so the converters 
sees rubish. You can see details with you add


\detokenize{#1}

in your macro.

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

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


[NTG-context] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note

2022-01-14 Thread musa furber via ntg-context
This week I updated ConTeXt minimals. Before then, I used the following
code so that footnotes to Arabic passages would have parenthesis around
them and use the digits used in Arabic texts in the Middle East (e.g.
٠١٢٣٤٥٦٧٨٩).

\setupnote [arfootnote] [
  headstyle={\switchtobodyfont[kitab]},
  textcommand=\footnotenotenumbercommand,
  alternative=text,
  ]
\define[1]\footnotenotenumbercommand{{\high{(\convertnumber{arabicdecimals}{#1})}}}

Since the update, for the 123rd footnote, I now get `(123arabic)` instead
of `(١٢٣)`.

Elsewhere, I do get the expected output (i.e. `١٢٣٢`) when calling
\convertnumber{arabicdecimals}{1232}

I'm still relatively new to ConTeXt, so I'm unsure if what used really is
correct, or if it was wrong and I now need to find the right way to do it.

Any help would be greatly appreciated.

—Musa
___
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] LTR footnotes from RTL paragraph

2022-01-12 Thread Hans Hagen via ntg-context

On 1/12/2022 9:57 PM, denis.ma...@unibe.ch wrote:

-Ursprüngliche Nachricht-
Von: Hans Hagen 
Gesendet: Freitag, 17. Dezember 2021 12:24
An: mailing list for ConTeXt users 
Cc: Maier, Denis Christian (UB) ; oi...@gmx.es
Betreff: Re: [NTG-context] LTR footnotes from RTL paragraph

On 12/17/2021 10:02 AM, Denis Maier via ntg-context wrote:

-Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von Pablo
Rodriguez via ntg-context
Gesendet: Donnerstag, 16. Dezember 2021 18:07
An: Denis Maier via ntg-context 
Cc: Pablo Rodriguez 
Betreff: Re: [NTG-context] LTR footnotes from RTL paragraph

On 12/16/21 12:34 PM, Denis Maier via ntg-context wrote:

Ok, this works:

\setupnote[footnote][align=l2r]

Does that have any drawbacks?


Hi Denis,

I don’t think it may have (other than forgetting other options, such
as hz or hanging).


Ah, I alway forget that. By the way, is there a way to append to setting

instead of overriding it?

sure, but I don't think it needs to be avocated (valid but not intuitive)

i'll add this (only a few line addition with no performance hit):

\definealign[MyAlign][r2l,flushleft]

so that you can do

\setupalign[MyAlign]

and you can also use it as value to the align parameter as well ... the usual
'context abstraction'

so again something to wikify ...


Wanted to wikify, but is this already implemented?

sure

-
  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] LTR footnotes from RTL paragraph

2022-01-12 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht-
> Von: Hans Hagen 
> Gesendet: Freitag, 17. Dezember 2021 12:24
> An: mailing list for ConTeXt users 
> Cc: Maier, Denis Christian (UB) ; oi...@gmx.es
> Betreff: Re: [NTG-context] LTR footnotes from RTL paragraph
> 
> On 12/17/2021 10:02 AM, Denis Maier via ntg-context wrote:
> >> -Ursprüngliche Nachricht-
> >> Von: ntg-context  Im Auftrag von Pablo
> >> Rodriguez via ntg-context
> >> Gesendet: Donnerstag, 16. Dezember 2021 18:07
> >> An: Denis Maier via ntg-context 
> >> Cc: Pablo Rodriguez 
> >> Betreff: Re: [NTG-context] LTR footnotes from RTL paragraph
> >>
> >> On 12/16/21 12:34 PM, Denis Maier via ntg-context wrote:
> >>> Ok, this works:
> >>>
> >>> \setupnote[footnote][align=l2r]
> >>>
> >>> Does that have any drawbacks?
> >>
> >> Hi Denis,
> >>
> >> I don’t think it may have (other than forgetting other options, such
> >> as hz or hanging).
> >
> > Ah, I alway forget that. By the way, is there a way to append to setting
> instead of overriding it?
> 
> sure, but I don't think it needs to be avocated (valid but not intuitive)
> 
> i'll add this (only a few line addition with no performance hit):
> 
>\definealign[MyAlign][r2l,flushleft]
> 
> so that you can do
> 
>\setupalign[MyAlign]
> 
> and you can also use it as value to the align parameter as well ... the usual
> 'context abstraction'
> 
> so again something to wikify ...

Wanted to wikify, but is this already implemented? 

Denis


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

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


Re: [NTG-context] paragraph notes when located in text

2022-01-05 Thread Jean-Pierre Delange via ntg-context
AMHO, there is no text with dorecurse … Then the buffer is empty ! And if I 
remember the buffer setup should be placed before the starttext command. Am I 
wrong ?

> Le 4 janv. 2022 à 19:23, Pablo Rodriguez via ntg-context  
> a écrit :
> 
> Dear list,
> 
> I have the following sample:
> 
>\setuppapersize[A6]
>    \showframe\showgrid
>\setupnote[footnote][paragraph=yes]
>%~ \setupnote[footnote][location=text, paragraph=yes]
>\setupnotation[footnote][alternative=serried, width=broad]
>\starttext
>\startbuffer
>\startlinenumbering[step=3]
>\dorecurse{25}
> {a\footnote{b} }
>\stoplinenumbering
>\stopbuffer
> 
>\getbuffer
> \placenotes[footnote]
>\stoptext
> 
> I get no paragraph notes with \setupnote[footnote][location=text,
> paragraph=yes].
> 
> What am I missing here?
> 
> Many thanks for your help,
> 
> Pablo
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] Critical Editions?

2022-01-05 Thread Jean-Pierre Delange via ntg-context
The starting point of the discussion on reledmac and other related points, has 
begun on May 13, 2016. See here about the way to get a ConTeXt equivalent to a 
LaTeX encoding : https://www.mail-archive.com/ntg-context@ntg.nl/msg81793.html 
<https://www.mail-archive.com/ntg-context@ntg.nl/msg81793.html> (I gave the 
LaTeX code).

For the question asked by Jürgen, as far as I know, you have to deal (and play) 
with setupnote, definenote AND setupline commands. Discussion is here : 
https://www.mail-archive.com/search?l=ntg-context@ntg.nl=subject:%22Re%5C%3A+%5C%5BNTG%5C-context%5C%5D+TwoColumns+in+two+different+languages%2C+with+alternate+text+on+even+and+odd+page.%22=newest=1

> Le 5 janv. 2022 à 18:28, Jean-Pierre Delange via ntg-context 
>  a écrit :
> 
> Hi Luigi & Pablo,
> I’ve thinking that Google translate may be provide some help. I’ll try it !
> 
>> Le 5 janv. 2022 à 17:13, luigi scarso via ntg-context > <mailto:ntg-context@ntg.nl>> a écrit :
>> 
>> 
>> 
>> On Wed, Jan 5, 2022 at 12:54 PM Pablo Rodriguez via ntg-context 
>> mailto:ntg-context@ntg.nl>> wrote:
>> On 1/5/22 9:43 AM, luigi scarso via ntg-context wrote:
>> > [...]
>> > quite old (2014),  but perhaps still interesting:
>> > embedding of a tei-xml into a tagged pdf
>> > https://www.guitex.org/home/images/ArsTeXnica/AT018/teitagged.pdf 
>> > <https://www.guitex.org/home/images/ArsTeXnica/AT018/teitagged.pdf>
>> 
>> Luigi,
>> 
>> if you allow me a comment (or even a suggestion), an English version of
>> that article updated to LMTX wouuld be of huge help to the rest of us.
>> 
>> yeah, but unfortunately I have no time now.  
>> It's for luatex with poppler -- now we have pplib --
>> and not lmtx, so not so useful I guess.
>> But you can try with
>> $>pdftotext -layout teitagged.pdf 
>> and translate teitagged.txt  with google. 
>> 
>> -- 
>> luigi
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context 
>> <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
>> http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
>> <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki : http://contextgarden.net <http://contextgarden.net/>
>> ___
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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] paragraph notes when located in text

2022-01-05 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

\setuppapersize[A6]
\showframe\showgrid
\setupnote[footnote][paragraph=yes]
%~ \setupnote[footnote][location=text, paragraph=yes]
\setupnotation[footnote][alternative=serried, width=broad]
\starttext
\startbuffer
\startlinenumbering[step=3]
\dorecurse{25}
 {a\footnote{b} }
\stoplinenumbering
\stopbuffer

\getbuffer
 \placenotes[footnote]
\stoptext

I get no paragraph notes with \setupnote[footnote][location=text,
paragraph=yes].

What am I missing here?

Many thanks for your help,

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

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


Re: [NTG-context] Critical Editions?

2022-01-04 Thread Pablo Rodriguez via ntg-context
On 1/3/22 10:43 AM, hanneder--- via ntg-context wrote:
> For the last two decades edmac and its further developments (now
> reledmac) have become the standard for critical editions. In my
> experience the basic requirements for typesetting critical editions
> were and are:
>
> - footnotes have to be formatted in paragraphs
> - multiple footnotes layers stacked below the critical text must be possible
> - automatic reference to linenumbers
> - or: manual references to verse numbers
> - language specific requirements (more complicated, see below)

Hi Jürgen,

not knowing which are the specific requirements for the language you
use, I think all of these may be achieved in ConTeXt LMTX.

> In the last years new requirements have been added:
>
> - some funding institutions in the academic world practically enforce
> online editions
> - data have to be made available in TEI xml format

Sorry for asking the basic question: what are online editions?

I mean, does uploading a PDF document count as an online edition?

As you may already know, ConTeXt can deal with XML sources (see
»Kritische Editionen mit TEI xml und ConTEXt« by Thomas Schmitz (2011)
[https://bugs.freedesktop.org/attachment.cgi?id=72857]).

ConTeXt might also output XML. But this is much harder in practice. All
I know about it is what Hans wrote bout this.

> This is why I was curious to see about the status of critical
> edition in ConTeXt. I was hoping for something that can be kept
> simple.

Sorry, Jürgen, but from your statements it isn’t clear to me how ConTeXt
can fit in you projects: simpler and more readable input code?

> Absolutely. It would be great to see a Context solution for this.

https://www.djdekker.net/ledmac/sample-edition3.pdf contains line
numbers and margin notes. It can be done with ConTeXt.

https://www.djdekker.net/ledmac/sample-edition2.pdf contains multiple
apparatus below critical texts. It might require \setupnote[location=text].

https://www.djdekker.net/ledmac/sample-edition.pdf contains multiple
apparatus at the bottom of the page.

Just in case it might help,

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

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


Re: [NTG-context] Critical Editions?

2022-01-04 Thread Pablo Rodriguez via ntg-context
On 12/21/21 10:50 AM, hanneder--- via ntg-context wrote:
>
> Details:
> I was able to find the article "Ediciones críticas con ConTeXt" (is
> this in use?)

Hi Jürgen,

if you mean http://www.ediciones-criticas.tk/pdf/criticas-context.pdf,
this is outdated. I hope to update it in a not so distant future...  .

> I also found out that for simple editions context already works. For
> critical editions in my field we need both footnote references based
> on linenumbers (for prose), but also references to verse number,
> which can be entered manually.
As far as I can remember linenotes are footnotes with references to line
numbers.

I don’t think it makes a difference if the line number is set
automatically by ConTeXt or the user specifies a given value.

> So far, so good. Any hints to a more sophisticated solution are highly
> welcome. (I am a simple TeX user)

I’m only a ConTeXt newbie (who has been using it for about a decade ).

There might be other solutions, but I’m afraid I don’t know which is
exactly the problem you are facing.

Sorry, but the text structure isn’t clear to me (this is independent
from the fact that I don’t understand a word from the language you may
be using).

BTW, I could only make your sample work in the following form:

\starttext
\setupnotation[linenote]
[alternative=serried,width=broad,distance=.5em,display=no]
\setupnote[linenote][way=bypage,paragraph=yes,rule=off]

\definenote [variant]
\setupnotation[variant][number=no]
\setupnote[variant][way=bypage,paragraph=yes,rule=off]

\definelines[slokaed][][indenting={yes, small, even},
before={\startnarrower\startlinenumbering},
after={\stoplinenumbering\stopnarrower}]

\definelines[slokaedplain][][indenting={yes, small, even},
before=\startnarrower, after=\stopnarrower]

\startslokaed
mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ
dṛṣṭvā\linenote{dṛṣṭvā ] dṛṣṭva G\lohi{pc}{1}} vinivartante tam
\linenote{tam ] tat} upāsyam upāsmahe
\stopslokaed

\startslokaedplain
mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam
yaṃ dṛṣṭvā\variant{2c dṛṣṭvā ] dṛṣṭva} vinivartante tam \variant{2d
tam ] tat} upāsyam upāsmahe (2)
\stopslokaedplain
\stoptext

Just in case it might help,

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

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


Re: [NTG-context] local notes, "serried" (paragraph) or column style.

2022-01-03 Thread Youssef Cherem via ntg-context
Hi again,

As a follow-up, I just found some weird behavior when typesetting
local/text notes using columns. The code below describes the issue. (As the
notes are counted by page I really didn't need to use localnotes, so the
problem of footnotes disappearing is solved.)

\definenote[afiliação]%[numberconversion=set 2]

\setupnote[afiliação][

%paragraph=yes,

rule=off,

location=text,

]

\setupnotation[afiliação][numberconversion=a, way=bypage,

%location=text,

%alternative=serried, % no effect

alternative=hanging,

width=fit, % broad

%distance=.5em,

%display=no

] % or set 1

% n=3 doesn’t work


\setupnotation[footnote][location={bottom,left},alternative=hanging,distance=.5em]



\starttext


Note\footnote{This should be at the bottom, but if I use columns it goes
just below the columns.}


%{% local notes have to be enclosed, otherwise footenotes below don’t appear

Author 1\afiliação{asdf} Author 2\afiliação{asdf}
\dorecurse{5}{\afiliação{Nota explicativa.}}


\startcolumns[n=3]

\placenotes[afiliação]

\stopcolumns

%}

% end local notes



\blank[big]


This footnote will disapear completely if I use localnotes and don’t
enclose them.\footnote{Where does it go?}




\stoptext

ons. 29. des. 2021 kl. 10:40 skrev Marco Patzer via ntg-context <
ntg-context@ntg.nl>:

> On Wed, 29 Dec 2021 08:29:34 -0300
> Youssef Cherem via ntg-context  wrote:
>
> > I've tried to implement some sort of affiliation description with
> > local notes. I'd like them to be either in a single paragraph or in
> > columns (e.g., 3), but the options `serried` or  `n=3` don't seem to
> > work for text notes (they do work for notes at the bottom).
> >
> > […]
> >
> > \placelocalnotes[afiliação]
>
> Maybe this helps:
>
> \startcolumns [n=3]
>   \placelocalnotes[afiliação]
> \stopcolumns
>
> Marco
>
> ___
> 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] \thanks inside author in section

2022-01-01 Thread Youssef Cherem via ntg-context
Wolfgang,

Thank you! Removing the auxiliary file solved the problem.

lør. 1. jan. 2022 kl. 09:32 skrev Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com>:

> Youssef Cherem via ntg-context schrieb am 01.01.2022 um 13:10:
> > I've tried to implement a journal-like footnote with the authors'
> > affiliation for each section/chapter, by adapting things from the wiki
> > (https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC and
> > https://wiki.contextgarden.net/LaTeX_Thanks). However, one thing that
> > bugs me is that any note name I choose other than "thanks" does not
> > work, and I have no clue why. Am I missing something, or is there a more
> > elegant way to implement this?
> >
> > As an aside, I'd rather have the footnotes below the "thanks" notes. Is
> > there any option that does this?
> >
> > [...]
>
> Do you have a example where anything besides \thanks fails. I changed
> \thanks to another commands in the example below and there was no
> problem to do so. The only thing you *have* to do when you change the
> command is to remove the auxiliary file (context --purge) because the
> old (non existing) command is otherwise used in the next run which
> results then in an error message.
>
> \setuplist
>[section]
>[textcommand=\SectionTocEntry,
>   after=\blank]
>
> \define[1]\SectionTocEntry
>{\doifsomething{\rawstructurelistuservariable{author}}
>   {{\it\structurelistuservariable{author}} --\crlf}%
> #1%
> \doifsomething{\rawstructurelistuservariable{subtitle}}
>   {\crlf\structurelistuservariable{subtitle}}}
>
> \setuphead
>[section]
>[ after=\directsetup{section},
>  align=center,
> number=no,
>  style=bold]
>
> \startsetups [section]
>  \blank
>  \midaligned{\it\structureuservariable{author}}
>  \blank
> \stopsetups
>
> \setuphead
>[subject]
>[align=flushleft,
> style=\bfb]
>
> \definenote[someothername]
>
> \setupnote
>[someothername]
>[rule=off]
>
> \setupnotation
>[someothername]
>[numberconversion=set 2]
>
> \setupnotation
>[alternative=left,
>hang=fit,
>   indenting={yes,small},
>  indentnext=yes]
>
> \setupinteraction
>[state=start,
> color=,
> contrastcolor=]
>
> \starttext
>
> \subject{Grande lista de autores}
>
> \placecontent[alternative=c]
>
> \startsection[title={Whatever}][author={A. Uthor},subtitle={I’d like to
> say}]
> This is a section.
> \stopsection
>
> \startsection[title={Segunda seção}][author={Fulano de
> Tal},subtitle={Uma segunda seção de teste}]
> This is a section.
> \stopsection
>
> \startsection[title={Terceira seção}][author={Alberto de
> Paiva\someothername{asdf}},subtitle={Uma terceira seção de teste}]
> This is a section.
> \stopsection
>
> \startsection[title={Três autores}][author={Sicrano de
> Tal\someothername{Universidade de Tangerinas} e Alberto
> Steinenberg\someothername{Universidade de Nilfgaard}},
> subtitle={Uma seção de teste com dois autores e comentário}]
> This is a section.\footnote{Só de teste.}
> \stopsection
>
> \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] \thanks inside author in section

2022-01-01 Thread Wolfgang Schuster via ntg-context

Youssef Cherem via ntg-context schrieb am 01.01.2022 um 13:10:
I've tried to implement a journal-like footnote with the authors' 
affiliation for each section/chapter, by adapting things from the wiki 
(https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC and 
https://wiki.contextgarden.net/LaTeX_Thanks). However, one thing that 
bugs me is that any note name I choose other than "thanks" does not 
work, and I have no clue why. Am I missing something, or is there a more 
elegant way to implement this?


As an aside, I'd rather have the footnotes below the "thanks" notes. Is 
there any option that does this?


[...]


Do you have a example where anything besides \thanks fails. I changed 
\thanks to another commands in the example below and there was no 
problem to do so. The only thing you *have* to do when you change the 
command is to remove the auxiliary file (context --purge) because the 
old (non existing) command is otherwise used in the next run which 
results then in an error message.


\setuplist
  [section]
  [textcommand=\SectionTocEntry,
 after=\blank]

\define[1]\SectionTocEntry
  {\doifsomething{\rawstructurelistuservariable{author}}
 {{\it\structurelistuservariable{author}} --\crlf}%
   #1%
   \doifsomething{\rawstructurelistuservariable{subtitle}}
 {\crlf\structurelistuservariable{subtitle}}}

\setuphead
  [section]
  [ after=\directsetup{section},
align=center,
   number=no,
style=bold]

\startsetups [section]
\blank
\midaligned{\it\structureuservariable{author}}
\blank
\stopsetups

\setuphead
  [subject]
  [align=flushleft,
   style=\bfb]

\definenote[someothername]

\setupnote
  [someothername]
  [rule=off]

\setupnotation
  [someothername]
  [numberconversion=set 2]

\setupnotation
  [alternative=left,
  hang=fit,
 indenting={yes,small},
indentnext=yes]

\setupinteraction
  [state=start,
   color=,
   contrastcolor=]

\starttext

\subject{Grande lista de autores}

\placecontent[alternative=c]

\startsection[title={Whatever}][author={A. Uthor},subtitle={I’d like to 
say}]

This is a section.
\stopsection

\startsection[title={Segunda seção}][author={Fulano de 
Tal},subtitle={Uma segunda seção de teste}]

This is a section.
\stopsection

\startsection[title={Terceira seção}][author={Alberto de 
Paiva\someothername{asdf}},subtitle={Uma terceira seção de teste}]

This is a section.
\stopsection

\startsection[title={Três autores}][author={Sicrano de 
Tal\someothername{Universidade de Tangerinas} e Alberto 
Steinenberg\someothername{Universidade de Nilfgaard}},

subtitle={Uma seção de teste com dois autores e comentário}]
This is a section.\footnote{Só de teste.}
\stopsection

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


[NTG-context] \thanks inside author in section

2022-01-01 Thread Youssef Cherem via ntg-context
I've tried to implement a journal-like footnote with the authors'
affiliation for each section/chapter, by adapting things from the wiki (
https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC and
https://wiki.contextgarden.net/LaTeX_Thanks). However, one thing that bugs
me is that any note name I choose other than "thanks" does not work, and I
have no clue why. Am I missing something, or is there a more elegant way to
implement this?

As an aside, I'd rather have the footnotes below the "thanks" notes. Is
there any option that does this?

\setuplist[section][
 textcommand=\SectionTocEntry,
 after=\blank,
]

\define[1]\SectionTocEntry{%
 \doifnot{\rawstructurelistuservariable{author}}{}
{\start \it  \structurelistuservariable{author}\stop\space-- \crlf}%
 #1% title
 \doifnot{\rawstructurelistuservariable{subtitle}}{}
{\crlf\structurelistuservariable{subtitle}}}

\setuphead[section][
 after=\setup{section},
 align=center,
 number=no,
 style=\bold
]

\startsetups section
 \blank
 \midaligned{\it \structureuservariable{author}}
 \blank
\stopsetups

%\foonote{\structureuservariable{affiliation}}

%only "thanks" seems to work.
\definenote[thanks]%[numberconversion=set 2]
\setupnote[thanks][rule=off]
\setupnotation[thanks][numberconversion=set 2] % or set 1

%\setupnote[footnote][location=bottom] % does not work

%% all notes, footnotes etc.
\setupnotation[
 alternative={left,bottom},
 hang=fit, % if commented, hanging is larger
 indenting={yes,small},indentnext=yes, % please, indent everything, should
be default
]

\setupinteraction[state=start,color=black,contrastcolor=black]

\setuphead[subject][align=flushleft,style=\bfb]

\starttext

\subject{Grande lista de autores}

\placecontent[alternative=c]

\startsection[title={Whatever}][author={A. Uthor},subtitle={I’d like to
say}]
This is a section.
\stopsection

\startsection[title={Segunda seção}][author={Fulano de Tal},subtitle={Uma
segunda seção de teste}]
This is a section.
\stopsection

\startsection[title={Terceira seção}][author={Alberto de
Paiva\thanks{asdf}},subtitle={Uma terceira seção de teste}]
This is a section.
\stopsection

\startsection[title={Três autores}][author={Sicrano de
Tal\thanks{Universidade de Tangerinas} e Alberto
Steinenberg\thanks{Universidade de Nilfgaard}},
subtitle={Uma seção de teste com dois autores e comentário}]
This is a section.\footnote{Só de teste.}
\stopsection

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

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


[NTG-context] local notes, "serried" (paragraph) or column style.

2021-12-29 Thread Youssef Cherem via ntg-context
I've tried to implement some sort of affiliation description with local
notes. I'd like them to be either in a single paragraph or in columns
(e.g., 3), but the options `serried` or  `n=3` don't seem to work for text
notes (they do work for notes at the bottom). Any help would be much
appreciated.



\definenote[afiliação]%[numberconversion=set 2]

\setupnote[afiliação][

%paragraph=yes,

rule=off,

location=text,

]

\setupnotation[afiliação][numberconversion=a, way=bypage,

%location=text,

%alternative=serried, % no effect

alternative=hanging,

width=fit, % broad

%distance=.5em,

%display=no

] % or set 1

% n=3 doesn’t work



\starttext

\startlocalnotes

Author 1\afiliação{asdf} Author 2\afiliação{asdf}
\dorecurse{5}{\afiliação{Nota explicativa.}}


\placelocalnotes[afiliação]

\stoplocalnotes


\stoptext



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

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


[NTG-context] \thanks inside author in section

2021-12-29 Thread Youssef Cherem via ntg-context
I've tried to implement a journal-like footnote with the authors'
affiliation for each section/chapter, by adapting things from the wiki here
<https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC> and here
<https://wiki.contextgarden.net/LaTeX_Thanks>. However, one thing that bugs
me is that any note name I choose other than "thanks" does not work, and I
have no clue why. Am I missing something, or is there a more elegant way to
implement this?

As an aside, I'd rather have the footnotes below the "thanks" notes. Is
there any option that does this?

\setuplist[section][
 textcommand=\SectionTocEntry,
 after=\blank,
]
\define[1]\SectionTocEntry{%
 \doifnot{\rawstructurelistuservariable{author}}{}
{\start \it  \structurelistuservariable{author}\stop\space-- \crlf}%
 #1% title
 \doifnot{\rawstructurelistuservariable{subtitle}}{}
{\crlf\structurelistuservariable{subtitle}}}
\setuphead[section][
 after=\setup{section},
 align=center,
 number=no,
 style=\bold
]
\startsetups section
 \blank
 \midaligned{\it \structureuservariable{author}}
 \blank\stopsetups
%\foonote{\structureuservariable{affiliation}}
\definenote[thanks]%[numberconversion=set
2]\setupnote[thanks][rule=off]\setupnotation[thanks][numberconversion=set
2] % or set 1
%\setupnote[footnote][location=bottom] % does not work
%% all notes, footnotes etc.\setupnotation[
 alternative={left,bottom},
 hang=fit, % if commented, hanging is larger
 indenting={yes,small},indentnext=yes, % please, indent everything,
should be default
]
\setupinteraction[state=start,color=black,contrastcolor=black]
\setuphead[subject][align=flushleft,style=\bfb]
\starttext
\subject{Grande lista de autores}
\placecontent[alternative=c]
  \startsection[title={Whatever}][author={A. Uthor},subtitle={I’d
like to say}]
This is a section.\stopsection
\startsection[title={Segunda seção}][author={Fulano de
Tal},subtitle={Uma segunda seção de teste}]
This is a section.\stopsection
\startsection[title={Terceira seção}][author={Alberto de
Paiva\thanks{asdf}},subtitle={Uma terceira seção de teste}]
This is a section.\stopsection
\startsection[title={Três autores}][author={Sicrano de
Tal\thanks{Universidade de Tangerinas} e Alberto
Steinenberg\thanks{Universidade de Nilfgaard}},
subtitle={Uma seção de teste com dois autores e comentário}]
This is a section.\footnote{Só de teste.}\stopsection
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?

2021-12-26 Thread Joey McCollum via ntg-context
This actually seems to be rooted in a more general problem with the
publications support module. Why does invoking the fastsetup for citations
work within the default footnote setup, but not within endnotes flushed via
\placenotes[footnote]? If I modify the original MWE to use ConTeXt's
default btx rendering, I get the same error:

```
\startbuffer [bib]

@Book{clark1989,
author = {Clark, William},
title = {Railroads \word{and} railroad towns \word{in} New Mexico},
publisher = {New Mexico Magazine},
year = {1989},
address = {Albuquerque, New Mexico},
isbn = {9780937206126}
}

\stopbuffer

\usebtxdataset[bib.buffer]

\setupbtx[dataset=default]

\setupnote[footnote][location=none] % commenting out this line will produce
footnotes that expand the citation correctly

\starttext

   \input knuth
\cite[alternative=footnote][clark1989]
\page
\placenotes[footnote]

\startchapter[title=Bibliography]
\placelistofpublications
\stopchapter

\stoptext
```

If it helps, the relevant code in publications support is the following
block in publ-imp-cite.mkvi:

```
\startsetups \s!btx:\s!cite:footnote
\startfootnote
\fastsetup{btx:cite:entry}
\stopfootnote
\stopsetups
```

The \fastsetup{btx:cite:entry} doesn't expand to anything if the footnote
is flushed as an endnote via \placenotes[footnote]. Does anyone have any
idea why this happens and how to fix it?

Joey

On Sat, Dec 25, 2021 at 3:34 PM Joey McCollum 
wrote:

> A reasonable solution for the time being would be to check if the
> righttext argument is empty, and add a final period in the footnote only if
> it is not (with the assumption being that the user would provide
> punctuation in any righttext for footnote/endnote citations). I've pushed
> the following change to the GitHub repo, if you'd like to pull and use it:
>
> ```
> % Inline footnote citation setup (with intelligent trailing punctuation
> replacement)
> \startsetups btx:sbl:cite:footnote
>   \removeunwantedspaces
>
> \doifinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}}
>   \begingroup
>   \letbtxparameter{punct}\empty % don't pass the trailing punctuation down
> to the inline setup
>   \startfootnote
> \Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in
> the footnote (needed to render "Ibid." and "Idem" correctly)
> % Add a closing period if there is no righttext
> \doif{\btxparameter{righttext}}{\empty} {
>   \btxperiod
> }
>   \stopfootnote
>   \endgroup
>
> \doifnotinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}}
> \stopsetups
> ```
>
> This should allow your script to compile, but unfortunately, it doesn't
> seem to make endnotes work, at least not when I try it. For some reason,
> the macro \Word{\fastsetup{btx:sbl:cite:inline}} is expanding to nothing
> inside the \startfootnote ... \stopfootnote environment. I have no idea why
> this is happening, so any ideas are appreciated.
>
> Joey
>
> On Sat, Dec 25, 2021 at 1:11 PM Joey McCollum 
> wrote:
>
>> Joel,
>>
>> You may not have done anything wrong; this may be an issue with
>> ConTeXt-SBL. In my code for the btx:sbl:cite:footnote setup in
>> publ-imp-sbl.mkvi, I added a comment to this effect:
>>
>> ```
>> \startsetups btx:sbl:cite:footnote
>>   \removeunwantedspaces
>>
>> \doifinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}}
>>   \begingroup
>>   \letbtxparameter{punct}\empty % don't pass the trailing punctuation
>> down to the inline setup
>>   \let\doifendswithpunctelse\btx_sbl_doifendswithpunctelse % why is this
>> necessary? For some reason, \btx_sbl_doifendswithpunctelse is not
>> recognized within the footnote environment...
>>   \startfootnote
>> \Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in
>> the footnote (needed to render "Ibid." and "Idem" correctly)
>> % Add a closing period, unless the righttext ends with punctuation
>> \doifendswithpunctelse{\btxparameter{righttext}} {
>>   \removeunwantedspaces
>> } {
>>   \removeunwantedspaces
>>   \btxperiod
>> }
>>   \stopfootnote
>>   \endgroup
>>
>> \doifnotinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}}
>> \stopsetups
>> ```
>>
>> I define the \btx_sbl_doifendswithpunctelse macro earlier in the module.
>> Initially, when I tried to invoke this macro within the \startfootnote ...
>> \stopfootnote environment (to conditionally add a period at the end of a
>> footnote citation if it does not have a righttext ending with p

Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?

2021-12-25 Thread Joey McCollum via ntg-context
A reasonable solution for the time being would be to check if the
righttext argument is empty, and add a final period in the footnote only if
it is not (with the assumption being that the user would provide
punctuation in any righttext for footnote/endnote citations). I've pushed
the following change to the GitHub repo, if you'd like to pull and use it:

```
% Inline footnote citation setup (with intelligent trailing punctuation
replacement)
\startsetups btx:sbl:cite:footnote
  \removeunwantedspaces

\doifinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}}
  \begingroup
  \letbtxparameter{punct}\empty % don't pass the trailing punctuation down
to the inline setup
  \startfootnote
\Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in
the footnote (needed to render "Ibid." and "Idem" correctly)
% Add a closing period if there is no righttext
\doif{\btxparameter{righttext}}{\empty} {
  \btxperiod
}
  \stopfootnote
  \endgroup

\doifnotinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}}
\stopsetups
```

This should allow your script to compile, but unfortunately, it doesn't
seem to make endnotes work, at least not when I try it. For some reason,
the macro \Word{\fastsetup{btx:sbl:cite:inline}} is expanding to nothing
inside the \startfootnote ... \stopfootnote environment. I have no idea why
this is happening, so any ideas are appreciated.

Joey

On Sat, Dec 25, 2021 at 1:11 PM Joey McCollum 
wrote:

> Joel,
>
> You may not have done anything wrong; this may be an issue with
> ConTeXt-SBL. In my code for the btx:sbl:cite:footnote setup in
> publ-imp-sbl.mkvi, I added a comment to this effect:
>
> ```
> \startsetups btx:sbl:cite:footnote
>   \removeunwantedspaces
>
> \doifinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}}
>   \begingroup
>   \letbtxparameter{punct}\empty % don't pass the trailing punctuation down
> to the inline setup
>   \let\doifendswithpunctelse\btx_sbl_doifendswithpunctelse % why is this
> necessary? For some reason, \btx_sbl_doifendswithpunctelse is not
> recognized within the footnote environment...
>   \startfootnote
> \Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in
> the footnote (needed to render "Ibid." and "Idem" correctly)
> % Add a closing period, unless the righttext ends with punctuation
> \doifendswithpunctelse{\btxparameter{righttext}} {
>   \removeunwantedspaces
> } {
>   \removeunwantedspaces
>   \btxperiod
> }
>   \stopfootnote
>   \endgroup
>
> \doifnotinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}}
> \stopsetups
> ```
>
> I define the \btx_sbl_doifendswithpunctelse macro earlier in the module.
> Initially, when I tried to invoke this macro within the \startfootnote ...
> \stopfootnote environment (to conditionally add a period at the end of a
> footnote citation if it does not have a righttext ending with punctuation),
> I got the same error you got, but for \btx_sbl_doifendswithpunctelse. I
> wasn't sure why this was happening, so I tried defining a new
> \doifendswithpunctelse macro. Unfortunately, based on your e-mail, it looks
> like this doesn't actually fix the problem.
>
> Any help from other developers would be appreciated here! Unfortunately, I
> don't have a MWE replicating the problem on hand at the moment.
>
> Joey
>
> On Sat, Dec 25, 2021 at 1:04 PM Joel via ntg-context 
> wrote:
>
>> I am using the ConTeXt-SBL package for citations. I need to move my
>> footnotes to the end of each article.
>>
>> According to the manual, I can suppress the placement of footnotes using
>> two lines of code. I've added these to my minimal working code, placing 
>> \setupnote[footnote][location=none]
>> in the header and \placenotes[footnote] where I want the endnotes to
>> appear. It complains this error:
>>
>> "Undefined control sequence \doifendswithpunctelse"
>>
>> What did I do wrong?
>>
>> --Joel
>>
>> Code follows:
>>
>> \usemodule[publ-imp-sbl]
>> \startbuffer [bib]
>>
>> @Article{na2006,
>> title={Volcanoes \word{of} New Mexico},
>> year={2006},
>> journal={New Mexico Earth Matters},
>> publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral
>> Resources},
>> volume={6},
>> number={1},
>> location={Socorro, New Mexico}
>> }
>>
>> @Book{clark1989,
>> author = {Clark, William},
>> title = {Railroads \word{and} railroad towns \word{in} New Mexico},
>> publisher = {New Mexico Magazine},
>> year = {1989},
>> address = {

Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?

2021-12-25 Thread Joey McCollum via ntg-context
Joel,

You may not have done anything wrong; this may be an issue with
ConTeXt-SBL. In my code for the btx:sbl:cite:footnote setup in
publ-imp-sbl.mkvi, I added a comment to this effect:

```
\startsetups btx:sbl:cite:footnote
  \removeunwantedspaces

\doifinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}}
  \begingroup
  \letbtxparameter{punct}\empty % don't pass the trailing punctuation down
to the inline setup
  \let\doifendswithpunctelse\btx_sbl_doifendswithpunctelse % why is this
necessary? For some reason, \btx_sbl_doifendswithpunctelse is not
recognized within the footnote environment...
  \startfootnote
\Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in
the footnote (needed to render "Ibid." and "Idem" correctly)
% Add a closing period, unless the righttext ends with punctuation
\doifendswithpunctelse{\btxparameter{righttext}} {
  \removeunwantedspaces
} {
  \removeunwantedspaces
  \btxperiod
}
  \stopfootnote
  \endgroup

\doifnotinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}}
\stopsetups
```

I define the \btx_sbl_doifendswithpunctelse macro earlier in the module.
Initially, when I tried to invoke this macro within the \startfootnote ...
\stopfootnote environment (to conditionally add a period at the end of a
footnote citation if it does not have a righttext ending with punctuation),
I got the same error you got, but for \btx_sbl_doifendswithpunctelse. I
wasn't sure why this was happening, so I tried defining a new
\doifendswithpunctelse macro. Unfortunately, based on your e-mail, it looks
like this doesn't actually fix the problem.

Any help from other developers would be appreciated here! Unfortunately, I
don't have a MWE replicating the problem on hand at the moment.

Joey

On Sat, Dec 25, 2021 at 1:04 PM Joel via ntg-context 
wrote:

> I am using the ConTeXt-SBL package for citations. I need to move my
> footnotes to the end of each article.
>
> According to the manual, I can suppress the placement of footnotes using
> two lines of code. I've added these to my minimal working code, placing 
> \setupnote[footnote][location=none]
> in the header and \placenotes[footnote] where I want the endnotes to
> appear. It complains this error:
>
> "Undefined control sequence \doifendswithpunctelse"
>
> What did I do wrong?
>
> --Joel
>
> Code follows:
>
> \usemodule[publ-imp-sbl]
> \startbuffer [bib]
>
> @Article{na2006,
> title={Volcanoes \word{of} New Mexico},
> year={2006},
> journal={New Mexico Earth Matters},
> publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral
> Resources},
> volume={6},
> number={1},
> location={Socorro, New Mexico}
> }
>
> @Book{clark1989,
> author = {Clark, William},
> title = {Railroads \word{and} railroad towns \word{in} New Mexico},
> publisher = {New Mexico Magazine},
> year = {1989},
> address = {Albuquerque, New Mexico},
> isbn = {9780937206126}
> }
>
> \stopbuffer
>
> \usebtxdataset[bib.buffer]
>
> \setupbtx[dataset=default]
> \usebtxdefinitions[sbl]
> \setupbtx[sbl]
>
> \setupnote[footnote][location=none]
>
> \starttext
>
>\input knuth
> \cite[clark1989]
>
> \placenotes[footnote]
>
>
> \startchapter[title=Bibliography]
> \placelistofpublications
> \stopchapter
>
> \stoptext
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
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] Why are endnotes not working with ConTeXt-SBL?

2021-12-25 Thread Joel via ntg-context
I am using the ConTeXt-SBL package for citations. I need to move my footnotes 
to the end of each article.

According to the manual, I can suppress the placement of footnotes using two 
lines of code. I've added these to my minimal working code, placing 
\setupnote[footnote][location=none] in the header and  \placenotes[footnote] 
where I want the endnotes to appear. It complains this error:
"Undefined control sequence \doifendswithpunctelse"
What did I do wrong?
--Joel
Code follows:

\usemodule[publ-imp-sbl]
\startbuffer [bib]

@Article{na2006,
title={Volcanoes \word{of} New Mexico},
year={2006},
journal={New Mexico Earth Matters},
publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources},
volume={6},
number={1},
location={Socorro, New Mexico}
}

@Book{clark1989,
author = {Clark, William},
title = {Railroads \word{and} railroad towns \word{in} New Mexico},
publisher = {New Mexico Magazine},
year = {1989},
address = {Albuquerque, New Mexico},
isbn = {9780937206126}
}

\stopbuffer

\usebtxdataset[bib.buffer]

\setupbtx[dataset=default]
\usebtxdefinitions[sbl]
\setupbtx[sbl]

\setupnote[footnote][location=none]

\starttext

   \input knuth
    \cite[clark1989]

    \placenotes[footnote]

    
    \startchapter[title=Bibliography]
    \placelistofpublications
    \stopchapter

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

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


Re: [NTG-context] Critical Editions?

2021-12-21 Thread Denis Maier via ntg-context
Thanks for bringing this topic up again. I'd also be highly interested in this!

Denis

> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von hanneder--
> - via ntg-context
> Gesendet: Dienstag, 21. Dezember 2021 10:51
> An: ntg-context@ntg.nl
> Cc: hanne...@staff.uni-marburg.de
> Betreff: [NTG-context] Critical Editions?
> 
> 
> I just started switching after long years of typesetting with La-/Omega-
> /pdfTeX to Context and was exploring the capabilities of the program for
> typesetting critical editions. So I was wondering whether there is any
> updated information on how to produce critical editions?
> 
> 
> Details:
> I was able to find the article "Ediciones críticas con ConTeXt" (is this in 
> use?)
> as well as a plan of and a remark concerning critTeXt: "As I learned from a
> thread on NTG-context from early 2010 we shouldn't expect a dedicated
> package, but that ConTeXt will eventually incorporate the needed
> functionalities."  What is the status of that?
> 
> 
> I also found out that for simple editions context already works. For critical
> editions in my field we need both footnote references based on
> linenumbers (for prose), but also references to verse number, which can be
> entered manually. The main problem for me was to find the command
> \linenote :)
> 
> %  Setup of \linenote
> \setupnotation[linenote]
> [alternative=serried,width=broad,distance=.5em,display=no]
> \setupnote[linenote][way=bypage,paragraph=yes,rule=off]
> 
> %  \variant as a footnote without reference number \definenote [variant]
> [footnote] \setupnotation[variant][number=no]
> \setupnote[variant][way=bypage,paragraph=yes,rule=off]
> 
> % Two "environments" for Sanskrit verses, one with, one without
> linenumbers.
> 
> % SANSKRIT EDITION linenumbers
> \definelines[slokaed][][indenting={yes, small, even},
> 
> before=\startnarrower\startlinenumbering,after=\stoplinenumbering\stopn
> arrower]
> 
> % SANSKRIT EDITION plain (referring to verses)
> \definelines[slokaedplain][][indenting={yes, small, even},
>before=\startnarrower,after=\stopnarrower]
> 
> With this the code of the edition can be pleasently minimalistic:
> 
> \startslokaed
> mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam
>yaṃ dṛṣṭvā\linenote{dṛṣṭvā ] dṛṣṭva G\lohi{pc}{1}} vinivartante tam
> \linenote{tam ] tat} upāsyam upāsmahe} \stopslokaed
> 
> 
> \startslokaedplain
> mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ dṛṣṭvā\variant{2c
> dṛṣṭvā ] dṛṣṭva} vinivartante tam \variant{2d tam ] tat} upāsyam upāsmahe
> (2) \stopslokaedplain
> 
> So far, so good. Any hints to a more sophisticated solution are highly
> welcome. (I am a simple TeX
> user)
> Thanks
> Jürgen
> 
> 
> 
> ---
> 
> Prof. Dr. Juergen Hanneder
> Philipps-Universitaet Marburg
> FG Indologie u. Tibetologie
> Deutschhausstr.12
> 35032 Marburg
> Germany
> Tel. 0049-6421-28-24930
> hanne...@staff.uni-marburg.de
> 
> __
> _
> If your question is of interest to others as well, please add an entry to the
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-
> context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net archive  :
> https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> __
> _
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Critical Editions?

2021-12-21 Thread hanneder--- via ntg-context


I just started switching after long years of typesetting with  
La-/Omega-/pdfTeX to Context and was exploring the capabilities of the  
program for typesetting critical editions. So I was
wondering whether there is any updated information on how to produce  
critical editions?



Details:
I was able to find the article "Ediciones críticas con ConTeXt" (is  
this in use?) as well as a
plan of and a remark concerning critTeXt: "As I learned from a thread  
on NTG-context from early 2010 we shouldn't expect a dedicated  
package, but that ConTeXt will eventually incorporate the needed  
functionalities."  What is the status of that?



I also found out that for simple editions context already works. For  
critical editions in my
field we need both footnote references based on linenumbers (for  
prose), but also references to
verse number, which can be entered manually. The main problem for me  
was to find the command \linenote :)


%  Setup of \linenote
\setupnotation[linenote]  
[alternative=serried,width=broad,distance=.5em,display=no]

\setupnote[linenote][way=bypage,paragraph=yes,rule=off]

%  \variant as a footnote without reference number
\definenote [variant] [footnote]
\setupnotation[variant][number=no]
\setupnote[variant][way=bypage,paragraph=yes,rule=off]

% Two "environments" for Sanskrit verses, one with, one without
linenumbers.

% SANSKRIT EDITION linenumbers
\definelines[slokaed][][indenting={yes, small, even},
   
before=\startnarrower\startlinenumbering,after=\stoplinenumbering\stopnarrower]


% SANSKRIT EDITION plain (referring to verses)
\definelines[slokaedplain][][indenting={yes, small, even},
  before=\startnarrower,after=\stopnarrower]

With this the code of the edition can be pleasently minimalistic:

\startslokaed
mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam
  yaṃ dṛṣṭvā\linenote{dṛṣṭvā ] dṛṣṭva G\lohi{pc}{1}} vinivartante tam  
\linenote{tam ] tat} upāsyam upāsmahe}

\stopslokaed


\startslokaedplain
mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam
yaṃ dṛṣṭvā\variant{2c dṛṣṭvā ] dṛṣṭva} vinivartante tam \variant{2d  
tam ] tat} upāsyam upāsmahe (2)

\stopslokaedplain

So far, so good. Any hints to a more sophisticated solution are highly  
welcome. (I am a simple TeX

user)
Thanks
Jürgen



---

Prof. Dr. Juergen Hanneder
Philipps-Universitaet Marburg
FG Indologie u. Tibetologie
Deutschhausstr.12
35032 Marburg
Germany
Tel. 0049-6421-28-24930
hanne...@staff.uni-marburg.de

___
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] LTR footnotes from RTL paragraph

2021-12-21 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht-
> Von: Hans Hagen 
> Gesendet: Freitag, 17. Dezember 2021 12:24
> An: mailing list for ConTeXt users 
> Cc: Maier, Denis Christian (UB) ; oi...@gmx.es
> Betreff: Re: [NTG-context] LTR footnotes from RTL paragraph
> 
> On 12/17/2021 10:02 AM, Denis Maier via ntg-context wrote:
> >> -Ursprüngliche Nachricht-
> >> Von: ntg-context  Im Auftrag von Pablo
> >> Rodriguez via ntg-context
> >> Gesendet: Donnerstag, 16. Dezember 2021 18:07
> >> An: Denis Maier via ntg-context 
> >> Cc: Pablo Rodriguez 
> >> Betreff: Re: [NTG-context] LTR footnotes from RTL paragraph
> >>
> >> On 12/16/21 12:34 PM, Denis Maier via ntg-context wrote:
> >>> Ok, this works:
> >>>
> >>> \setupnote[footnote][align=l2r]
> >>>
> >>> Does that have any drawbacks?
> >>
> >> Hi Denis,
> >>
> >> I don’t think it may have (other than forgetting other options, such
> >> as hz or hanging).
> >
> > Ah, I alway forget that. By the way, is there a way to append to setting
> instead of overriding it?
> 
> sure, but I don't think it needs to be avocated (valid but not intuitive)
> 
> i'll add this (only a few line addition with no performance hit):
> 
>\definealign[MyAlign][r2l,flushleft]
> 
> so that you can do
> 
>\setupalign[MyAlign]
> 
> and you can also use it as value to the align parameter as well ... the usual
> 'context abstraction'

Nice! So, IIUC, you should also be able to do something like this then:

\definealign[AlignStandard][verytolerant,stretch]
\definealign[AlignR2L][AlignStandard][r2l]

Is that correct?

Re wikifying: I've tried to create the \definealign page, but unlike other 
command pages this page would look empty with no automatically generated 
content. So I guess the command is not yet in the command index, right?

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

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


Re: [NTG-context] LTR footnotes from RTL paragraph

2021-12-17 Thread Hans Hagen via ntg-context

On 12/17/2021 10:02 AM, Denis Maier via ntg-context wrote:

-Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von Pablo
Rodriguez via ntg-context
Gesendet: Donnerstag, 16. Dezember 2021 18:07
An: Denis Maier via ntg-context 
Cc: Pablo Rodriguez 
Betreff: Re: [NTG-context] LTR footnotes from RTL paragraph

On 12/16/21 12:34 PM, Denis Maier via ntg-context wrote:

Ok, this works:

\setupnote[footnote][align=l2r]

Does that have any drawbacks?


Hi Denis,

I don’t think it may have (other than forgetting other options, such as hz or
hanging).


Ah, I alway forget that. By the way, is there a way to append to setting 
instead of overriding it?


sure, but I don't think it needs to be avocated (valid but not intuitive)

i'll add this (only a few line addition with no performance hit):

  \definealign[MyAlign][r2l,flushleft]

so that you can do

  \setupalign[MyAlign]

and you can also use it as value to the align parameter as well ... the 
usual 'context abstraction'


so again something to wikify ...

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] LTR footnotes from RTL paragraph

2021-12-17 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Pablo
> Rodriguez via ntg-context
> Gesendet: Donnerstag, 16. Dezember 2021 18:07
> An: Denis Maier via ntg-context 
> Cc: Pablo Rodriguez 
> Betreff: Re: [NTG-context] LTR footnotes from RTL paragraph
> 
> On 12/16/21 12:34 PM, Denis Maier via ntg-context wrote:
> > Ok, this works:
> >
> > \setupnote[footnote][align=l2r]
> >
> > Does that have any drawbacks?
> 
> Hi Denis,
> 
> I don’t think it may have (other than forgetting other options, such as hz or
> hanging).

Ah, I alway forget that. By the way, is there a way to append to setting 
instead of overriding it?

> 
> > Is it possible to change the text direction for single notes?
> 
> It doesn’t seem an option for \startfootnote. 

Yep, unlike other \startstops \startfootnote does not inherit key-values 
settings from the corresponding \setupX (I mean, it does of course inherit the 
settings, but you can't set them directly on \startfootnote.) Why is that? Is 
it due to the fact that note setups take place in two places? (\setupnote vs 
\setupnotation)?

> How about defining a new command?

Thanks for pointing me in that direction. That looks good.

> 
>   \definedelimitedtext[rtlblockquote][before={\righttoleft}]
>   \definenote[otnote][footnote]
>   \setupnote[otnote][align=l2r]
>   \starttext
>   \input zapf
>   \startblockquote
>   \input zapf\footnote{this starts on the left.}
>   \stopblockquote
>   \startrtlblockquote
>   \input zapf\footnote{this should start on the left.}
>   \input zapf\otnote{this should start on the left.}
>   \stoprtlblockquote
>   \input zapf
>   \stoptext
> 
> Just in case it might help,
> 
> Pablo
> __
> _
> If your question is of interest to others as well, please add an entry to the
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-
> context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net archive  :
> https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> __
> _
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] LTR footnotes from RTL paragraph

2021-12-16 Thread Pablo Rodriguez via ntg-context
On 12/16/21 12:34 PM, Denis Maier via ntg-context wrote:
> Ok, this works:
>
> \setupnote[footnote][align=l2r]
>
> Does that have any drawbacks?

Hi Denis,

I don’t think it may have (other than forgetting other options, such as
hz or hanging).

> Is it possible to change the text direction for single notes?

It doesn’t seem an option for \startfootnote. How about defining a new
command?

  \definedelimitedtext[rtlblockquote][before={\righttoleft}]
  \definenote[otnote][footnote]
  \setupnote[otnote][align=l2r]
  \starttext
  \input zapf
  \startblockquote
  \input zapf\footnote{this starts on the left.}
  \stopblockquote
  \startrtlblockquote
  \input zapf\footnote{this should start on the left.}
  \input zapf\otnote{this should start on the left.}
  \stoprtlblockquote
  \input zapf
  \stoptext

Just in case it might help,

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

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


Re: [NTG-context] LTR footnotes from RTL paragraph

2021-12-16 Thread Denis Maier via ntg-context
Ok, this works:

\setupnote[footnote][align=l2r]

Does that have any drawbacks?

Is it possible to change the text direction for single notes ?

Denis


Von: ntg-context  Im Auftrag von Denis Maier via 
ntg-context
Gesendet: Donnerstag, 16. Dezember 2021 12:09
An: ntg-context@ntg.nl
Cc: Maier, Denis Christian (UB) 
Betreff: [NTG-context] LTR footnotes from RTL paragraph

Hi

Footnotes originating from an RTL paragraph will be also typeset in RTL mode as 
the following example illustrates:

%%
\setupdelimitedtext[blockquote]
[leftmargin=1.5em,rightmargin=0em,]

\definedelimitedtext[rtlblockquote]
\setupdelimitedtext[rtlblockquote]
[leftmargin=0em,rightmargin=1.5em,before={\righttoleft}]


\starttext

\input knuth

\startblockquote
\input knuth\footnote{this starts on the left.}
\stopblockquote

\startrtlblockquote
\input knuth\footnote{this should start on the left, but it doesn't.}
\stoprtlblockquote

\input knuth

\stoptext


According to the wiki, that's the expected behaviour 
(https://wiki.contextgarden.net/RTL#Footnotes).
However, I'd prefer to keep the footnotes as LTR footnotes. Can I convince 
ConTeXt to typeset these footnotes in LTR mode?

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

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


Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-07-02 Thread denis.maier
Thanks for this. I'll look into it.

> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Rik Kabel
> Gesendet: Mittwoch, 30. Juni 2021 21:40
> An: ntg-context@ntg.nl
> Betreff: Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes
> 
> For what its worth, I offer my endnote apparatus with updates for parts.
> It uses the standard note/notation mechanism, not a list, for endnotes.
> Perhaps it can be further adapted to the needs of this thread.
> 
> There is at least one small issue with it: I have to use \stopendnote even 
> though
> I define \startEndnote. This causes issues with the linter (mtxrun --script 
> check
> ) but seems otherwise harmless.
> 
> I am sure that others more versed in ConTeXt can find some ways to fix this 
> and
> improve the overall approach. I welcome suggestions.
> 
> %--%
> % Endnote apparatus adapted for parts
> %
> \mainlanguage  [en]
> \language  [en]
> \setupinteraction  [state=start]
> \setuppagenumbering[alternative=doublesided]
> 
> \setupheadertexts [{\it\getmarking[part]}][{\it\getmarking[section]}]
> [{\it\getmarking[chapter]}][{\it\getmarking[part]}]
> \setupheads    [number=no]
> \setuphead [part]
>     [placehead=yes,
>      header=empty]
> 
> %- footnote setup -% % 
> footnotes uses
> asterisk, dagger, ddagger... so that endnotes %   and pagenotes have separate
> sequences. Change way= to suit %   your footnote frequency
> 
> \setupnotation [footnote]
>     [numberconversion=set 2,
>      way=chapter]
> 
> %- endnote setup --% % 
> endnotes use
> numeric indices, reset by part
> 
> \setupnote [endnote][
>      textseparator={,},
>      textstyle=\high{\small\hairspace},
>      location=none,
>      bodyfont=]
> 
> \setupnotation [endnote]
>     [headstyle=\small,
>      way=bypart,
>      numbercommand=,
>      after={\blank[halfline]}]
> 
> %- endnote pages setup %
> 
> \definemarking [notePage]
> 
> \startsetups   [noteHeadingsText]
>    {\em Notes for page
> \doifelse{\fetchmark[notePage][top]}{\fetchmark[notePage][bottom]}
>      { \getmarking[notePage][top]}
>      {s \getmarking[notePage][top]–\getmarking[notePage][bottom]}}
> \stopsetups
> 
> \starttexdefinition unexpanded startEndnote
>    \dosingleempty\doStartEndnote
> \stoptexdefinition
> 
> \starttexdefinition doStartEndnote [#1]
>    \expanded{\dodoStartEndnote[#1][{\rawcountervalue[userpage]}]}
> \stoptexdefinition
> 
> \starttexdefinition dodoStartEndnote [#1][#2]
>    \startendnote[#1]
>      \marking[notePage]{#2}\removeunwantedspaces
> \stoptexdefinition
> 
> \starttexdefinition endnoteChapter
>    \startchapter    [title=Notes]
> \setupheadertexts[{\it\getmarking[part]}][\setups{noteHeadingsText}]
> [\setups{noteHeadingsText}][{\it\getmarking[part]}]
>    \placenotes  [endnote]
>    \page
> \setupheadertexts[{\it\getmarking[part]}][{\it\getmarking[section]}]
>     [{\it\getmarking[chapter]}][part]
>    \stopchapter
> \stoptexdefinition
> 
> %--%
> 
> \starttext
> 
> \completecontent
> 
> \startpart[title=Part 1]
> \dorecurse{3}{
>    \startchapter[title=Chapter #1]
>      If a man wants to read good books, he must make a point of
>      avoiding bad ones; for life is short, and time and energy
>      limited.
>      \startfootnote
>    T.\,Baily Saunders’ translation, in his 1891 {\em
>    The Art of Literature}, of part of one of Arthur
>    Schopenhauer’s essays.
>      \stopfootnote
>      \startEndnote
>    {\language[deo]%
>    Um das Gute zu lesen, ist eine Bedingung, dass man das
>    Schlechte nicht lese: denn das Leben ist kurz, Zeit und
>    Kräfte beschränkt.}
>      \stopendnote
> 
>      \dorecurse{6}{
>    \startsection[title=Section ##1]
>      This followed by:
> 
>      {\it Repetitio est mater studiorum}. Any book that is at
>      all important ought to be at once read through twice;
>      partly because, on a second reading, the connection of the
>      different portions of the book will be better understood,
>      and the beginning comprehended only when the end is known;

Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes

2021-06-30 Thread Rik Kabel
For what its worth, I offer my endnote apparatus with updates for parts. 
It uses the standard note/notation mechanism, not a list, for endnotes. 
Perhaps it can be further adapted to the needs of this thread.


There is at least one small issue with it: I have to use \stopendnote 
even though I define \startEndnote. This causes issues with the linter 
(mtxrun --script check ) but seems otherwise harmless.


I am sure that others more versed in ConTeXt can find some ways to fix 
this and improve the overall approach. I welcome suggestions.


%--%
% Endnote apparatus adapted for parts
%
\mainlanguage  [en]
\language  [en]
\setupinteraction  [state=start]
\setuppagenumbering[alternative=doublesided]

\setupheadertexts [{\it\getmarking[part]}][{\it\getmarking[section]}]
[{\it\getmarking[chapter]}][{\it\getmarking[part]}]
\setupheads    [number=no]
\setuphead [part]
   [placehead=yes,
    header=empty]

%- footnote setup -%
% footnotes uses asterisk, dagger, ddagger... so that endnotes
%   and pagenotes have separate sequences. Change way= to suit
%   your footnote frequency

\setupnotation [footnote]
   [numberconversion=set 2,
    way=chapter]

%- endnote setup --%
% endnotes use numeric indices, reset by part

\setupnote [endnote][
    textseparator={,},
    textstyle=\high{\small\hairspace},
    location=none,
    bodyfont=]

\setupnotation [endnote]
   [headstyle=\small,
    way=bypart,
    numbercommand=,
    after={\blank[halfline]}]

%- endnote pages setup %

\definemarking [notePage]

\startsetups   [noteHeadingsText]
  {\em Notes for page
\doifelse{\fetchmark[notePage][top]}{\fetchmark[notePage][bottom]}
    { \getmarking[notePage][top]}
    {s \getmarking[notePage][top]–\getmarking[notePage][bottom]}}
\stopsetups

\starttexdefinition unexpanded startEndnote
  \dosingleempty\doStartEndnote
\stoptexdefinition

\starttexdefinition doStartEndnote [#1]
  \expanded{\dodoStartEndnote[#1][{\rawcountervalue[userpage]}]}
\stoptexdefinition

\starttexdefinition dodoStartEndnote [#1][#2]
  \startendnote[#1]
    \marking[notePage]{#2}\removeunwantedspaces
\stoptexdefinition

\starttexdefinition endnoteChapter
  \startchapter    [title=Notes]
\setupheadertexts[{\it\getmarking[part]}][\setups{noteHeadingsText}]
[\setups{noteHeadingsText}][{\it\getmarking[part]}]
  \placenotes  [endnote]
  \page
\setupheadertexts[{\it\getmarking[part]}][{\it\getmarking[section]}]
   [{\it\getmarking[chapter]}][part]
  \stopchapter
\stoptexdefinition

%--%

\starttext

\completecontent

\startpart[title=Part 1]
\dorecurse{3}{
  \startchapter[title=Chapter #1]
    If a man wants to read good books, he must make a point of
    avoiding bad ones; for life is short, and time and energy
    limited.
    \startfootnote
  T.\,Baily Saunders’ translation, in his 1891 {\em
  The Art of Literature}, of part of one of Arthur
  Schopenhauer’s essays.
    \stopfootnote
    \startEndnote
  {\language[deo]%
  Um das Gute zu lesen, ist eine Bedingung, dass man das
  Schlechte nicht lese: denn das Leben ist kurz, Zeit und
  Kräfte beschränkt.}
    \stopendnote

    \dorecurse{6}{
  \startsection[title=Section ##1]
    This followed by:

    {\it Repetitio est mater studiorum}. Any book that is at
    all important ought to be at once read through twice;
    partly because, on a second reading, the connection of the
    different portions of the book will be better understood,
    and the beginning comprehended only when the end is known;
    and partly because we are not in the same temper and
    disposition on both readings. On the second perusal we get a
    new view of every passage and a different impression of the
    whole book, which then appears in another light.
  \startEndnote
    {\language[deo]%
    Repetitio est mater studiorum. Jedes irgend wichtige
    Buch soll man sogleich zwei Mal lesen, theils weil man
    die Sachen das zweite Mal in ihrem Zusammenhange besser
    begreift und den Anfang erst recht versteht, wenn man
    das Ende kennt; theils weil man zu jeder Stelle das
    zweite Mal eine andere Stimmung mit bringt, als beim
    ersten, wodurch der Eindruct verschieden ausfällt und
    es ist, wie wenn man einen Gegenstand in anderer
    Beleuchtung sieht.}
  \stopendnote
  \stopsection
    }
  \stopchapter
}
\endnoteChapter

[NTG-context] Protrusion in notes, was Re: setupquotation[method=font] problem

2021-06-24 Thread Rik Kabel


On 6/24/2021 18:50, Rik Kabel wrote:
Thank you Wolfgang for the quick diagnosis and Hans for the fast 
turnaround.


Sorry, I was wrong about the turnaround -- I tested on my own patched 
copy, not the new download, but I am sure it will appear soon.


Follow-up question. Can protrusion be implemented in the first line of a 
footnote or endnote, as might improve the following? I have some 
page-long endnotes that benefit from having it in place, but do not like 
the inconsistent appearance.


Please excuse the hokey example:

   \setuplayout   [width=9cm,
    height=9cm]
   \definefontfeature [default]
   [default]
   [protrusion=quality]
   \setupalign    [hanging]
   \setupquotation    [method=font]
   \setupnote [endnote]
   [location=none]
   \setupnotation [footnote]
   [align=hanging]
   \showframe
   \starttext

   \quotation{{\em Cantharides}} is the reported message from Sir Francis
   Drake upon defeating the Spanish Armada.\endnote{\quotation{{\em
   Vovi}} is
   reportedly the message from James Broun|-|Ramsay on taking Oudh. Both
   are as likely as the attribution of \quotation{{\em peccavi}} to
   Napier after
   his defeat of the Ameer of Scinde.}\footnote{\quotation{{\em Vovi}} is
   reportedly the message from James Broun|-|Ramsay on taking Oudh. Both
   are as likely as the attribution of \quotation{{\em peccavi}} to
   Napier after
   his defeat of the Ameer of Scinde.}

   \placenotes[endnote]

   \stoptext

--
Rik

___
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] Converting footnotes to endnotes

2021-06-03 Thread Idris Samawi Hamid ادريس سماوي حامد
On Thu, 03 Jun 2021 14:17:15 -0600, Wolfgang Schuster  
 wrote:



\setupnote
  [footnote]
  [location=none]


That did the trick; many thanks!

==
\setupnote
  [footnote]
  [location=none]

\starttext
\startsection[title={},reference={}]
\input ward
\startfootnote
\input ward
\stopfootnote{}
\input ward
\startfootnote
\input ward
\stopfootnote{}
\stopsection

\startsection[title={},reference={}]
\input ward
\startfootnote
\input ward
\stopfootnote{}
\input ward
\startfootnote
\input ward
\stopfootnote{}
\stopsection

\startsubject[title={},reference={}]
\placenotes [footnote]
\stopsubject
\stoptext
==

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] Converting footnotes to endnotes

2021-06-03 Thread Wolfgang Schuster

Idris Samawi Hamid ادريس سماوي حامد schrieb am 03.06.2021 um 22:09:

Dear gang,

Generally, I do not use endnotes - see Robert Bringhurst's criticisms 
of endnotes in typography - but a publisher is demanding them. 
Converting footnotes to endnotes must be quite simple yet I'm missing it:


\setupnotation[footnote]
[way=bychapter]


Do you use chapters?


% \setupnote[footnote]
% [way=bychapter]


\setupnote
  [footnote]
  [location=none]

Wolfgang

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

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


[NTG-context] Converting footnotes to endnotes

2021-06-03 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

Generally, I do not use endnotes - see Robert Bringhurst's criticisms of  
endnotes in typography - but a publisher is demanding them. Converting  
footnotes to endnotes must be quite simple yet I'm missing it:


\setupnotation[footnote]
[way=bychapter]

% \setupnote[footnote]
% [way=bychapter]

\starttext
\startsection[title={},reference={}]
\input ward
\startfootnote
\input ward
\stopfootnote{}
\input ward
\startfootnote
\input ward
\stopfootnote{}
\stopsection

\startsection[title={},reference={}]
\input ward
\startfootnote
\input ward
\stopfootnote{}
\input ward
\startfootnote
\input ward
\stopfootnote{}
\stopsection

\startsubject[title={},reference={}]
\placenotes [footnote]
\stopsubject
\stoptext

What's the best way to convert the above to endnotes? Thank you in advance!

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
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] adding url as a footnote in the caption of figure

2020-12-30 Thread Jeong Dal
Dear Pablo,

Thank you for your reply.
I just search wiki not the mailing list. I never used \setupnote before.

> I would say that LMTX is causing an issue here (but for sure Hans knows
> better).
> 
> The issue with your MWE is solved by adding:
> 
>  \setupnote[footnote][width=\textwidth]

It works fine.

Thanks again.

Best regards,

Dalyoung___
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] adding url as a footnote in the caption of figure

2020-12-29 Thread Pablo Rodriguez
On 12/29/20 8:23 PM, Jeong Dal wrote:
> [...]
> I am trying to add a url as a footnote in the caption.
> There is no error, but it is written in two lines in the footnote.
> I also try \hyphenatedurl, \letterslash in the wiki, but it is no use.
> I am using "ConTeXt  ver: 2020.12.22 22:14 LMTX”.

Hi Dalyoung,

I would say that LMTX is causing an issue here (but for sure Hans knows
better).

The issue with your MWE is solved by adding:

  \setupnote[footnote][width=\textwidth]

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] Keep postponed footnotes on page where called

2020-10-07 Thread Denis Maier

Am 02.10.2020 um 13:00 schrieb Denis Maier:

Am 30.09.2020 um 19:03 schrieb Pablo Rodriguez:

On 9/30/20 5:52 PM, Denis Maier wrote:

Hi,

postponing footnotes when using tables causes the footnote often to
appear on the next page, which may not always be wanted. Is there a way
to keep the footnote on the same page in these situations?


Hi Denis,

this options might help:

   \setupnote
   [footnote]
   [split=verystrict,
    scope=text]


Thanks, I'll try. The problem is that I have multiplage tables, and I 
want the notes on the appropriate pages. I think postponed footnotes are 
cactually alled after the table is already finished so the notes always 
appear at the last page of the table, which in many cases is not what 
you'd want.


Ok, no luck.

With this example, the notes always appear after the table. (Pablo's 
settings from above make no difference.)



```
\setuppapersize[A6][A6]
\starttext

\startpostponingnotes
\bTABLE[split=yes]
\dorecurse{20}{
\bTR \bTD a\footnote{A footnote} \eTD \eTR
}
\eTABLE
\stoppostponingnotes

\stoptext
```

Is there anything else I can try? Or is that simply not possible? The 
problem is that I have a table where it is really awkward to have the 
notes after the table. (I think with localfootnotes it will be more or 
less the same as they appear where flushed, i.e. also after the table.)


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

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


Re: [NTG-context] Postponed footnotes and pagebreaks

2020-10-02 Thread Denis Maier

Am 30.09.2020 um 19:03 schrieb Pablo Rodriguez:

On 9/30/20 5:52 PM, Denis Maier wrote:

Hi,

postponing footnotes when using tables causes the footnote often to
appear on the next page, which may not always be wanted. Is there a way
to keep the footnote on the same page in these situations?


Hi Denis,

this options might help:

   \setupnote
   [footnote]
   [split=verystrict,
scope=text]


Thanks, I'll try. The problem is that I have multiplage tables, and I 
want the notes on the appropriate pages. I think postponed footnotes are 
actually called after the table is already finished so the notes always 
appear at the last page of the table, which in many cases is not what 
you'd want.


Best,
Denis


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

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


Re: [NTG-context] Postponed footnotes and pagebreaks

2020-09-30 Thread Pablo Rodriguez
On 9/30/20 5:52 PM, Denis Maier wrote:
> Hi,
>
> postponing footnotes when using tables causes the footnote often to
> appear on the next page, which may not always be wanted. Is there a way
> to keep the footnote on the same page in these situations?

Hi Denis,

this options might help:

  \setupnote
  [footnote]
  [split=verystrict,
   scope=text]

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] Arabic support

2020-09-23 Thread Mohammad Hossein Bateni
Hi Denis,

See this page [https://wiki.contextgarden.net/RTL] which may need some
updating.  I have some more definitions here [
https://github.com/bateni/dabeer/blob/master/texmf-local/tex/context/modules/dabeer/mkiv/p-dabeer.mkiv],
though it's partly to handle differences between Persian and Arabic.

Not all directions are reversed automatically. Beside footnotes, you might
need to do it for tables, columns, pages, headers, footers, registers
(index), etc. I don't recall if sorting was done properly for Arabic
(needed for registers). Some trickery may be needed to get the RTL right
when numbers are involved, say, for enumerations (theorems, lemma, etc.)
and TOC numbering. These are not specific to Arabic, though, and should
surface for Hebrew as well.

Once in a while I run into problems with misoriented parentheses or
quotation marks (specially https://en.wiktionary.org/wiki/%C2%AB_%C2%BB).
This may be due to setupdirection algorithms or a side effect of how some
Context commands work. One needs to document them, so a fix is uploaded.

Depending on what you want to typeset, you may need to change the numerals
(for page numbers, enumerations, figure and table numbers, etc.) as well as
dates, etc.  Some of these are already handled via the \mainlanguage[ar]
command.

Regards,
MHB

On Mon, Sep 21, 2020 at 2:46 AM Denis Maier 
wrote:

> Hi
>
> Just wondering what the current support for Arabic is. Does anyone know?
> My document works fine for Hebrew and I've just added a new fontfallbac:
> \definefallbackfamily[mainface][rm][Scheherazade] [range=arabic,
> force=yes, features=arabic]
>
> Bidi is activated with \setupdirections[bidi=global,method=unicode]
>
> Is that enough for Arabic? Or are there other things I need to take care
> of?
>
> E.g. searching in the mailing-list archive I found this message:
> https://www.mail-archive.com/ntg-context@ntg.nl/msg78573.html
>
>
>  > You have to set the bidi settings again for the footnotes because
>  > the notes mechanism resets many of these setups.
>
>  > \startsetups[note:footnote]
>  > \setupdirections[bidi=global]
>  > \stopsetups
>  >
>  > \setupnote[footnote][setups=note:footnote] % align=righttoleft
>
> Is that still true? Anything else I need to be aware of?
>
> Best,
> Denis
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Arabic support

2020-09-21 Thread Denis Maier

Hi

Just wondering what the current support for Arabic is. Does anyone know? 
My document works fine for Hebrew and I've just added a new fontfallbac: 
\definefallbackfamily[mainface][rm][Scheherazade] [range=arabic, 
force=yes, features=arabic]


Bidi is activated with \setupdirections[bidi=global,method=unicode]

Is that enough for Arabic? Or are there other things I need to take care of?

E.g. searching in the mailing-list archive I found this message: 
https://www.mail-archive.com/ntg-context@ntg.nl/msg78573.html



> You have to set the bidi settings again for the footnotes because
> the notes mechanism resets many of these setups.

> \startsetups[note:footnote]
> \setupdirections[bidi=global]
> \stopsetups
>
> \setupnote[footnote][setups=note:footnote] % align=righttoleft

Is that still true? Anything else I need to be aware of?

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

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


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] lmtx update

2020-08-03 Thread Pablo Rodriguez
On 7/31/20 10:32 AM, Hans Hagen wrote:
> Hi,
>
> Sorry for the long mail ...
>
> One of the changes in lmtx is that we freeze the properties that
> determine the paragraph shape as well as breaking into lines in such a
> way that we have predictable behaviour. As a side effect it can be that
> existing code (lmtx only) will behave differently (will be fixed when we
> notice) but also that some low level user tweaking can not work, i.e.
> they are just ignored, but only when they happen mid paragraph which
> actually is always debatable anyway.

Hi Hans,

many thanks for your explanation.

I wonder whether the new improvements could prevent body text running
into the footnotes (as some of us have already reported).

> [...]
> No one ever requested it so see it an a quick and dirty example but
> don't hesitate to ask for more anyway (we like an occasional challenge).

If you are open for suggestions, I would ask for a footnotes that behave
as a page index, such as in:

  \setuplanguage[en][patterns={en,agr}]
  \setuppapersize[A6]
  \setupbodyfont[dejavu]
  \definenote[dict]
  \setupnote[dict][n=2,rule=off,
  split=strict, inbetween=\hskip1.5em]
  \setupnotation[dict][number=no,
  style={\tfx\setupinterlinespace[line=2.5ex]}]
  \starttext
  Πρῶτον δεῖ θέσθαι τί ὄνομα\dict{ὄνομα,
  -ατος, τό: noun} καὶ τί ῥῆμα\dict{ῥῆμα, -ατος, τό: verb},
  ἔπειτα τί ἐστιν
  ἀπόφασις\dict{ἀπόφασις, -εως, ἡ: negation}
  καὶ κατάφασις\dict{κατάφασις, εως, ἡ:
  affirmation} καὶ ἀπόφανσις\dict{ἀπόφανσις,
  -εως, ἡ: statement} καὶ λόγος.
  \stoptext

What I need there is that these notes are alphabetically sorted, such as
in a standard register.

As I proposed that (years ago), you told me it was too complex. I wonder
whether this would be easier with the current developments.

Many thanks for your improvements to ConTeXt,

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] margin notes (was: lmtx update)

2020-08-01 Thread Otared Kavian
Hi Hraban,

Thanks for the hint… indeed I did see that \ColWidth command but didn't think 
about its definition… Sorry!

Now with \ColWidth defined, your code works fine and it has the advantage that 
the text of the sidenote begins in the margin at the level where the \footnote 
command appears. However, it cannot control the overflow of a sidenote to the 
next page, whereas the code given by Hans can do that. I admit that this does 
not happen very often since a well designed text should not have too many long 
sidenotes…

In case other users would like to use your code, I put the whole example below.

Best regards: Otared
%%% sidenotes, or footnotes in the margin
%%% example given by Hraban:
%%% here the tweaking of the width of the sidenote is turned off
%%% remove the comment where there is \ColWidth
%%% in order to adapt to your layout
\showframe
\setuplayout
[cutspace=7cm,
width=middle,
margin=5cm,
margindistance=7mm]

%\def\ColWidth{57mm}
\setupmargindata[inmargin]
[location=right,
stack=continue,
align=flushright,
]

\setupmargindata[inouter]
[location=right,
stack=continue,
align=flushright,
]

\def\FNVOffset{0} % Negative vertical offset of footnotes in lines
% Manual tweaking was necessary for a while, when stacking didn’t work reliably.

\def\MarginNote#1{%
\inmargin[
voffset=\dimexpr-\FNVOffset\lineheight\relax,
%   width=\ColWidth,
align=flushleft,
]{%
\inframed[
%   width=\ColWidth,
align=right,
frame=off,
offset=overlay,
strut=yes,
]{#1}%
}%
}

\define\PlaceFootnote{%
\inmargin[
voffset=\dimexpr-\FNVOffset\lineheight\relax,
%   width=\ColWidth,
]{%
\vtop{\placelocalnotes[footnote][before=,after=]}}%
}



\def\FNo#1{{#1~}}
% I never managed to get number and text in consecutive lines without indented 
text
% or at least a constant whitespace after the number.


\setupnote[footnote]
[location=text,
bodyfont=,
indenting=no,
before={\noindentation},
next=\PlaceFootnote,
]

\setupnotation[footnote]
[way=bychapter,
align=flushleft,
indenting=no,
location=serried,
alternative=serried,
width=broad,
numbercommand=\FNo,
] % footnote text

\setuptexttexts[margin][]
[%
{\framed[
align={flushright,bottom},
frame=off,
height=\textheight,
%   width=\ColWidth,
]{%
\strut\vfill\placenotes[footnote]}}%
]

\starttext
 \dorecurse{6}{\input ward\expanded{\footnote{This is a footnote 
\recurselevel}} }
test
\dorecurse{10}{
test \footnote{\input ward }\input tufte.tex \par
test \footnote{This is a note about Ward, who says: \par \input 
ward.tex} \input ward.tex \par
test \footnote{This is a note about Donald Knuth.} \input knuth.tex \par
}
This is a last note. \footnote{This last note is here to see what happens in 
the next page\dots\par \input knuth.tex}
\par 
\dorecurse{3}{\input knuth.tex }

\stoptext

> On 1 Aug 2020, at 23:01, Henning Hraban Ramm  wrote:
> 
> 
>> Am 01.08.2020 um 22:36 schrieb Otared Kavian :
>> 
>> Hi Hraban,
>> 
>> Thank you for taking the time to send your code for sidenotes.
>> Unfortunately when I add
>> 
>> \starttext
>> test\footnote{A footnote in the margin.}
>> \stoptext
>> 
>> to your code, I get an error and unfortunately with recent versions of LMTX 
>> the error message 
>> !  Undefined control sequence
>> is not helpful to find the error… (LMTX considers \footnote as an undefined 
>> control sequence…).
>> 
> 
> Of course it’s not \footnote that is undefined but something else from my 
> code – I didn’t take the time to strip it of all the references to other 
> setups in the same environment, probably \ColWidth that was just a shortcut 
> for the column width:
> \def\ColWidth{57mm}
> 
> 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] margin notes (was: lmtx update)

2020-08-01 Thread Otared Kavian
Hi Hraban,

Thank you for taking the time to send your code for sidenotes.
Unfortunately when I add

\starttext
test\footnote{A footnote in the margin.}
\stoptext

to your code, I get an error and unfortunately with recent versions of LMTX the 
error message 
!  Undefined control sequence
is not helpful to find the error… (LMTX considers \footnote as an undefined 
control sequence…).

Best regards: Otared

> On 1 Aug 2020, at 19:19, Henning Hraban Ramm  wrote:
> 
> 
> 
>> Am 01.08.2020 um 18:57 schrieb Otared Kavian :
>> 
>> Hi Hraban,
>> 
>> Thank you for reminding me of the solution cooked up by Wolfgang for you a 
>> few years ago. That solution works fine when the notes are short enough, but 
>> in some cases the notes in the margin bump into each other (indeed it is not 
>> a good habit to have long notes, but in some cases one cannot avoid them).
> 
> One essential bit is missing in the wiki example:
> 
> \setupmargindata[inmargin][
>  location=right,
>  stack=continue, % !!
>  align=flushright,
> ]
> 
> The code I’m actually using for our German literature magazine “Kritische 
> Ausgabe” is much more elaborated, but also cluttered with obsolete stuff – I 
> need to sort that out some time...
> (I only deleted some styling.)
> 
> %%% Footnotes / Marginals
> 
> \setupmargindata[inmargin][
>  location=right,
>  stack=continue,
>  align=flushright,
> ]
> \setupmargindata[inouter][
>  location=right,
>  stack=continue,
>  align=flushright,
> ]
> 
> \def\FNVOffset{0} % Negative vertical offset of footnotes in lines
> % Manual tweaking was necessary for a while, when stacking didn’t work 
> reliably.
> 
> \def\MarginNote#1{%
> \inmargin[
>  voffset=\dimexpr-\FNVOffset\lineheight\relax,
>  width=\ColWidth,
>  align=flushleft,
> ]{%
>  \inframed[
>width=\ColWidth,
>align=right,
>frame=off,
>offset=overlay,
>strut=yes,
>]{#1}%
>  }%
> }
> 
> \define\PlaceFootnote{%
> \inmargin[
>  voffset=\dimexpr-\FNVOffset\lineheight\relax,
>  width=\ColWidth,
> ]{%
>  \vtop{\placelocalnotes[footnote][before=,after=]}}%
> }
> 
> \def\FNo#1{{#1~}}
> % I never managed to get number and text in consecutive lines without 
> indented text
> % or at least a constant whitespace after the number.
> 
> \setupnote[footnote][
>  location=text,
>  bodyfont=,
>  indenting=no,
>  before={\noindentation},
>  next=\PlaceFootnote,
> ]
> 
> \setupnotation[footnote][
>   way=bychapter,
>   align=flushleft,
>  indenting=no,
>  location=serried,
>  alternative=serried,
>  width=broad,
>  numbercommand=\FNo,
> ] % footnote text
> 
> \setuptexttexts[margin][][%
>  {\framed[
>align={flushright,bottom},
>frame=off,
>height=\textheight,
>width=\ColWidth,
>  ]{%
>\strut\vfill\placenotes[footnote]}}%
> ]
> 
> 
> Best, 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] margin notes (was: lmtx update)

2020-08-01 Thread Henning Hraban Ramm


> Am 01.08.2020 um 18:57 schrieb Otared Kavian :
> 
> Hi Hraban,
> 
> Thank you for reminding me of the solution cooked up by Wolfgang for you a 
> few years ago. That solution works fine when the notes are short enough, but 
> in some cases the notes in the margin bump into each other (indeed it is not 
> a good habit to have long notes, but in some cases one cannot avoid them).

One essential bit is missing in the wiki example:

\setupmargindata[inmargin][
  location=right,
  stack=continue, % !!
  align=flushright,
]

The code I’m actually using for our German literature magazine “Kritische 
Ausgabe” is much more elaborated, but also cluttered with obsolete stuff – I 
need to sort that out some time...
(I only deleted some styling.)

%%% Footnotes / Marginals

\setupmargindata[inmargin][
  location=right,
  stack=continue,
  align=flushright,
]
\setupmargindata[inouter][
  location=right,
  stack=continue,
  align=flushright,
]

\def\FNVOffset{0} % Negative vertical offset of footnotes in lines
% Manual tweaking was necessary for a while, when stacking didn’t work reliably.

\def\MarginNote#1{%
\inmargin[
  voffset=\dimexpr-\FNVOffset\lineheight\relax,
  width=\ColWidth,
  align=flushleft,
]{%
  \inframed[
width=\ColWidth,
align=right,
frame=off,
offset=overlay,
strut=yes,
]{#1}%
  }%
}

\define\PlaceFootnote{%
\inmargin[
  voffset=\dimexpr-\FNVOffset\lineheight\relax,
  width=\ColWidth,
]{%
  \vtop{\placelocalnotes[footnote][before=,after=]}}%
}

\def\FNo#1{{#1~}}
% I never managed to get number and text in consecutive lines without indented 
text
% or at least a constant whitespace after the number.

\setupnote[footnote][
  location=text,
  bodyfont=,
  indenting=no,
  before={\noindentation},
  next=\PlaceFootnote,
]

\setupnotation[footnote][
way=bychapter,
align=flushleft,
  indenting=no,
  location=serried,
  alternative=serried,
  width=broad,
  numbercommand=\FNo,
] % footnote text

\setuptexttexts[margin][][%
  {\framed[
align={flushright,bottom},
frame=off,
height=\textheight,
width=\ColWidth,
  ]{%
\strut\vfill\placenotes[footnote]}}%
]


Best, 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] \placenamedfloat and \setuphead[aftersection=...] broken?

2020-04-03 Thread Benjamin Buchmuller
Thank you, Wolfgang, this works; apparently, the chapter has to be set with 
\startchapter … \stopchapter and footnotes after \chapter won’t be flushed 
unless \startchapter \footnote{something} \stopchapter.

This makes sense to me. 

I guess, internally \head (e.g. \section, \chapter etc.) is simply not 
“converted" to \starthead ... \stophead before the next invocation of \head or 
the end of \stoptext?

Cheers


Benjamin

> On 2 Apr 2020, at 19:51, Wolfgang Schuster 
>  wrote:
> 
> Benjamin Buchmuller schrieb am 02.04.2020 um 19:29:
>> Potentially on the same lines, placing delayed element seems currently not 
>> to work properly (or the syntax has changed?).
>> I think these features of MkIV are very elegant and useful. I’m just 
>> wondering if they are/were temporarily not working (tried on 2019.12.27 
>> 16:34 MKIV beta and the Wiki’s ConTeXt online) or have been disabled/changed 
>> for some reason?
>> Thanks!
>> Benjamin
>> (1) palcenamedfloat
>> ---
>> This is the example from the Wiki:
>> [...]
>> (2) Footnotes at the end of each chapter
>> 
>> Also an example from the Wiki:
>> \startsetups
>>  chapter:after
>>  \ifcase\rawcountervalue[footnote]\relax
>>  \or
>>  \startsubject[title=Footnote]
>>  \placefootnotes
>>  \stopsubject
>>  \else
>>  \startsubject[title=Footnotes]
>>  \placefootnotes
>>  \stopsubject
>>  \fi
>> \stopsetups
>> \setupnotes[location=none]
>> \setupnotation[way=bychapter]
>> \setuphead[chapter][aftersection=\setups{chapter:after}]
> 
> Here is a slightly reformatted version of Hans code which works for me with 
> the latest ConTeXt version (I checked only LMTX).
> 
> \startsetups[chapter:after]
>  \ifcase\rawcountervalue[footnote]\relax
>%
>  \or
>\startsubject[title=Footnote]
>  \placefootnotes
>\stopsubject
>  \else
>\startsubject[title=Footnotes]
>  \placefootnotes
>\stopsubject
>  \fi
> \stopsetups
> 
> \setupnote [footnote] [location=none]
> \setupnotation [footnote] [way=bychapter]
> 
> \setuphead[chapter][aftersection=\setups{chapter:after}]
> 
> \starttext
> 
> \dorecurse{4}
>  {\startchapter[title={Number #1}]
>   A few notes\dorecurse{\numexpr#1-1\relax}{\footnote{Note #1.##1}}.
>   \stopchapter}
> 
> \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] \placenamedfloat and \setuphead[aftersection=...] broken?

2020-04-02 Thread Wolfgang Schuster

Benjamin Buchmuller schrieb am 02.04.2020 um 19:29:

Potentially on the same lines, placing delayed element seems currently not to 
work properly (or the syntax has changed?).

I think these features of MkIV are very elegant and useful. I’m just wondering 
if they are/were temporarily not working (tried on 2019.12.27 16:34 MKIV beta 
and the Wiki’s ConTeXt online) or have been disabled/changed for some reason?

Thanks!


Benjamin

(1) palcenamedfloat
 ---

This is the example from the Wiki:

[...]

(2) Footnotes at the end of each chapter
 

Also an example from the Wiki:

\startsetups
  chapter:after
  
\ifcase\rawcountervalue[footnote]\relax


  
\or


  
\startsubject[title=Footnote]


  
\placefootnotes


  
\stopsubject


  
\else


  
\startsubject[title=Footnotes]


  
\placefootnotes


  
\stopsubject


  
\fi

\stopsetups



\setupnotes[location=none]
\setupnotation[way=bychapter]



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


Here is a slightly reformatted version of Hans code which works for me 
with the latest ConTeXt version (I checked only LMTX).


\startsetups[chapter:after]
  \ifcase\rawcountervalue[footnote]\relax
%
  \or
\startsubject[title=Footnote]
  \placefootnotes
\stopsubject
  \else
\startsubject[title=Footnotes]
  \placefootnotes
\stopsubject
  \fi
\stopsetups

\setupnote [footnote] [location=none]
\setupnotation [footnote] [way=bychapter]

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

\starttext

\dorecurse{4}
  {\startchapter[title={Number #1}]
   A few notes\dorecurse{\numexpr#1-1\relax}{\footnote{Note #1.##1}}.
   \stopchapter}

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


[NTG-context] Changing default rule thickness (globally)

2020-03-25 Thread Benjamin Buchmuller
Hi!

I would like to change the rule thickness that is used by default in ConTeXt. 
However, from the  command documentation 
(http://www.pragma-ade.nl/general/qrcs/setup-en.pdf), I see that I would need 
to basically change this for

\basegrid[rulethickness=...]
\setupbar[rulethickness=...]
\setupchemical[rulethickness=...]
\setupeffect[rulethickness=...]
\setupfillinlines[rulethickness=...]
\setupfillinrules[rulethickness=...]
\setupframed[rulethickness=...]
\setuplinefillers[rulethickness=...]
\setupmarginrules[rulethickness=...]
\setupmixedcolumns[rulethickness=...]
\setupnote[rulethickness=...]
\setupparagraphs[rulethickness=...]
\setupsidebar[rulethickness=...]
\setuptables[rulethickness=...]
\setuptabulation[rulethickness=...]
\setuptextbackground[rulethickness=...]
\setuptextrules[rulethickness=...]
\setupthinrules[rulethickness=...]
\setupxtable[rulethickness=...]

(And for \setupbackgrounds for [top header text footer bottom].) I’m sure there 
is a more elegant way to do this. But how?

Cheers


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

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


Re: [NTG-context] body text invades space for notes

2020-03-04 Thread Jean-Pierre Delange

Dear Pablo,

It seems that we never should say "never" about things which appear all 
over the real world. I just go back to a previous assertion you made here.


I agree with you about footnotes which should be placed on the same page 
(I quote) :


>    Bottom notes are somewhat tricky in ConTeXt. The user expects that 
these
>     notes (either footnotes, or linenotes) aren’t moved to the next 
page. I

>     mean, no reader expects to find a full footnote in the next page from
>     the one that calls it. (At least, I have never seen that in any book
>     read or paged through.)

But, I am afraid to inform you that it is a kind of way of French 
printing, especially in Philosophy publishers (which are not known to be 
devoted to publish beautiful/strictly edited/... books).


As a kind of sample, see the French translation of Nichomachean Ethics 
by Jean Tricot (1983 edition), Jean Vrin publisher, pages 201, 225-226, 
245-246, etc.  One can notice an effort to reduce the body text in order 
to let some space to footnotes. But this effort flaws on several pages ...


A way had have been chosen by publishers : "don't abuse about footnotes 
!", which is clearly impossible within academic books in Humanities ...


JP


Le 04/03/2020 à 12:07, Philipp A. a écrit :

Hi Pablo,

Thank you for the help!
I’m not using lists on that page … what I do use is a figure with 
location=left, which is probably the culprit, as it ends up pretty 
close to the footnote.
Is there any interest in fixing this longstanding bug? It’s the only 
feature that’s just consistently broken for me …


Best, Phil

Am Di., 25. Feb. 2020 um 22:15 Uhr schrieb Pablo Rodriguez 
mailto:oi...@gmx.es>>:


On 2/18/20 11:17 AM, Philipp A. wrote:
> For me it’s even worse (in mkiv), a paragraph of body text
completely
> overlaps my footnote.
>
> Where are the bottom notes placed? In the footer? Or how does it
work?
> How to debug it?

Hi Philipp,

I’m afraid that this misbehaviour is caused by the use of lists in the
same page.

Even not using lists, the space before seems not to be honored when
using \setupnote[footnote].

Note handling seems to have been improved in both LMTX and MkIV. A
side-effect of this new handling is the random clash between body and
notes texts when using lists in the same page.

BTW, foonotes cannot be placed in the footer.

    \showframe\showgrid
    \setuppapersize[A9]
    \starttext
    \dorecurse{3}{%
        text\footnote{note}\\}
    \stoptext

Sorry, but I’m afraid that I don’t know any way of debugging it.

Pablo


> Am Sa., 14. Dez. 2019 um 19:41 Uhr schrieb Pablo Rodriguez:
>
>     Dear list,
>
>     I’m afraid to admit that ConTeXt notes are increasily
problematic for
>     me. I don’t think this is special to me and I hope we can
discuss the
>     general issue.
>
>     Bottom notes are somewhat tricky in ConTeXt. The user
expects that these
>     notes (either footnotes, or linenotes) aren’t moved to the
next page. I
>     mean, no reader expects to find a full footnote in the next
page from
>     the one that calls it. (At least, I have never seen that in
any book
>     read or paged through.)
>
>     There may be good reasons for that, but ConTeXt doesn’t
enable this by
    >     default. Both options "split=verystrict" and "scope=text"
have to be
>     used in "\setupnote".
>
>     This translated in wrong space before notes when paragraph
form was
>     used. I was very interested to use these (line)notes for
critical
>     editions, but sometimes the text run into the notes. I’m
afraid that
>     left linenotes extremely problematic to be used.
>
>     With the arrival of LMTX, space before footnotes is more
problematic
>     than before. No paragraph notes, see the attached sample
(wrong-6.png).
>     In other cases, ConTeXt seems to ignore totally that the
page bottom
>     contains footnotes.
>
>     I cannot provide minimal samples. Consider that if it were
so easy to
>     reproduce, problably the issue would have been gone long ago.
>
>     Even when one avoids the problematic bottom partition (which
I did in
>     that case by removing the "before" option from
"\setupnote[footnote]"),
>     there is clearly an issue with the footnote having its space
before
>     remaining blank from the body text (wrong-2.png).
>
>     My first question is why the bottom notes have problems to
preserve the
>     space before them (and simultaneously remain in the sam

Re: [NTG-context] body text invades space for notes

2020-03-04 Thread Philipp A.
Hi Pablo,

Thank you for the help!
I’m not using lists on that page … what I do use is a figure with
location=left, which is probably the culprit, as it ends up pretty close to
the footnote.
Is there any interest in fixing this longstanding bug? It’s the only
feature that’s just consistently broken for me …

Best, Phil

Am Di., 25. Feb. 2020 um 22:15 Uhr schrieb Pablo Rodriguez :

> On 2/18/20 11:17 AM, Philipp A. wrote:
> > For me it’s even worse (in mkiv), a paragraph of body text completely
> > overlaps my footnote.
> >
> > Where are the bottom notes placed? In the footer? Or how does it work?
> > How to debug it?
>
> Hi Philipp,
>
> I’m afraid that this misbehaviour is caused by the use of lists in the
> same page.
>
> Even not using lists, the space before seems not to be honored when
> using \setupnote[footnote].
>
> Note handling seems to have been improved in both LMTX and MkIV. A
> side-effect of this new handling is the random clash between body and
> notes texts when using lists in the same page.
>
> BTW, foonotes cannot be placed in the footer.
>
> \showframe\showgrid
> \setuppapersize[A9]
> \starttext
> \dorecurse{3}{%
> text\footnote{note}\\}
> \stoptext
>
> Sorry, but I’m afraid that I don’t know any way of debugging it.
>
> Pablo
>
>
> > Am Sa., 14. Dez. 2019 um 19:41 Uhr schrieb Pablo Rodriguez:
> >
> > Dear list,
> >
> > I’m afraid to admit that ConTeXt notes are increasily problematic for
> > me. I don’t think this is special to me and I hope we can discuss the
> > general issue.
> >
> > Bottom notes are somewhat tricky in ConTeXt. The user expects that
> these
> > notes (either footnotes, or linenotes) aren’t moved to the next
> page. I
> > mean, no reader expects to find a full footnote in the next page from
> > the one that calls it. (At least, I have never seen that in any book
> > read or paged through.)
> >
> > There may be good reasons for that, but ConTeXt doesn’t enable this
> by
> > default. Both options "split=verystrict" and "scope=text" have to be
> > used in "\setupnote".
> >
> > This translated in wrong space before notes when paragraph form was
> > used. I was very interested to use these (line)notes for critical
> > editions, but sometimes the text run into the notes. I’m afraid that
> > left linenotes extremely problematic to be used.
> >
> > With the arrival of LMTX, space before footnotes is more problematic
> > than before. No paragraph notes, see the attached sample
> (wrong-6.png).
> > In other cases, ConTeXt seems to ignore totally that the page bottom
> > contains footnotes.
> >
> > I cannot provide minimal samples. Consider that if it were so easy to
> > reproduce, problably the issue would have been gone long ago.
> >
> > Even when one avoids the problematic bottom partition (which I did in
> > that case by removing the "before" option from
> "\setupnote[footnote]"),
> > there is clearly an issue with the footnote having its space before
> > remaining blank from the body text (wrong-2.png).
> >
> > My first question is why the bottom notes have problems to preserve
> the
> > space before them (and simultaneously remain in the same page where
> they
> > come from). This applies also for paragraph notes.
> >
> > My second question is what can be improved to achieve what may be
> > considered as a basic typographic feature.
> >
> > Sorry for not providing more than output samples. Bear with me. I may
> > not be an expert user, but I think I’m a frequent ConTeXt user. And I
> > don’t think it is totally wrong to consider this a basic feature that
> > needs to be improved.
> >
> > Many thanks for your help in advance,
> >
> > 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] body text invades space for notes

2020-02-25 Thread Pablo Rodriguez
On 2/18/20 11:17 AM, Philipp A. wrote:
> For me it’s even worse (in mkiv), a paragraph of body text completely
> overlaps my footnote.
>
> Where are the bottom notes placed? In the footer? Or how does it work?
> How to debug it?

Hi Philipp,

I’m afraid that this misbehaviour is caused by the use of lists in the
same page.

Even not using lists, the space before seems not to be honored when
using \setupnote[footnote].

Note handling seems to have been improved in both LMTX and MkIV. A
side-effect of this new handling is the random clash between body and
notes texts when using lists in the same page.

BTW, foonotes cannot be placed in the footer.

\showframe\showgrid
\setuppapersize[A9]
\starttext
\dorecurse{3}{%
text\footnote{note}\\}
\stoptext

Sorry, but I’m afraid that I don’t know any way of debugging it.

Pablo


> Am Sa., 14. Dez. 2019 um 19:41 Uhr schrieb Pablo Rodriguez:
>
> Dear list,
>
> I’m afraid to admit that ConTeXt notes are increasily problematic for
> me. I don’t think this is special to me and I hope we can discuss the
> general issue.
>
> Bottom notes are somewhat tricky in ConTeXt. The user expects that these
> notes (either footnotes, or linenotes) aren’t moved to the next page. I
> mean, no reader expects to find a full footnote in the next page from
> the one that calls it. (At least, I have never seen that in any book
> read or paged through.)
>
> There may be good reasons for that, but ConTeXt doesn’t enable this by
> default. Both options "split=verystrict" and "scope=text" have to be
> used in "\setupnote".
>
> This translated in wrong space before notes when paragraph form was
> used. I was very interested to use these (line)notes for critical
> editions, but sometimes the text run into the notes. I’m afraid that
> left linenotes extremely problematic to be used.
>
> With the arrival of LMTX, space before footnotes is more problematic
> than before. No paragraph notes, see the attached sample (wrong-6.png).
> In other cases, ConTeXt seems to ignore totally that the page bottom
> contains footnotes.
>
> I cannot provide minimal samples. Consider that if it were so easy to
> reproduce, problably the issue would have been gone long ago.
>
> Even when one avoids the problematic bottom partition (which I did in
> that case by removing the "before" option from "\setupnote[footnote]"),
> there is clearly an issue with the footnote having its space before
> remaining blank from the body text (wrong-2.png).
>
> My first question is why the bottom notes have problems to preserve the
> space before them (and simultaneously remain in the same page where they
> come from). This applies also for paragraph notes.
>
> My second question is what can be improved to achieve what may be
> considered as a basic typographic feature.
>
> Sorry for not providing more than output samples. Bear with me. I may
> not be an expert user, but I think I’m a frequent ConTeXt user. And I
> don’t think it is totally wrong to consider this a basic feature that
> needs to be improved.
>
> Many thanks for your help in advance,
>
> 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] body text invades space for notes

2020-02-18 Thread Philipp A.
For me it’s even worse (in mkiv), a paragraph of body text completely
overlaps my footnote.

Where are the bottom notes placed? In the footer? Or how does it work? How
to debug it?

Am Sa., 14. Dez. 2019 um 19:41 Uhr schrieb Pablo Rodriguez :

> Dear list,
>
> I’m afraid to admit that ConTeXt notes are increasily problematic for
> me. I don’t think this is special to me and I hope we can discuss the
> general issue.
>
> Bottom notes are somewhat tricky in ConTeXt. The user expects that these
> notes (either footnotes, or linenotes) aren’t moved to the next page. I
> mean, no reader expects to find a full footnote in the next page from
> the one that calls it. (At least, I have never seen that in any book
> read or paged through.)
>
> There may be good reasons for that, but ConTeXt doesn’t enable this by
> default. Both options "split=verystrict" and "scope=text" have to be
> used in "\setupnote".
>
> This translated in wrong space before notes when paragraph form was
> used. I was very interested to use these (line)notes for critical
> editions, but sometimes the text run into the notes. I’m afraid that
> left linenotes extremely problematic to be used.
>
> With the arrival of LMTX, space before footnotes is more problematic
> than before. No paragraph notes, see the attached sample (wrong-6.png).
> In other cases, ConTeXt seems to ignore totally that the page bottom
> contains footnotes.
>
> I cannot provide minimal samples. Consider that if it were so easy to
> reproduce, problably the issue would have been gone long ago.
>
> Even when one avoids the problematic bottom partition (which I did in
> that case by removing the "before" option from "\setupnote[footnote]"),
> there is clearly an issue with the footnote having its space before
> remaining blank from the body text (wrong-2.png).
>
> My first question is why the bottom notes have problems to preserve the
> space before them (and simultaneously remain in the same page where they
> come from). This applies also for paragraph notes.
>
> My second question is what can be improved to achieve what may be
> considered as a basic typographic feature.
>
> Sorry for not providing more than output samples. Bear with me. I may
> not be an expert user, but I think I’m a frequent ConTeXt user. And I
> don’t think it is totally wrong to consider this a basic feature that
> needs to be improved.
>
> Many thanks for your help in advance,
>
> 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
___


[NTG-context] body text invades space for notes

2019-12-14 Thread Pablo Rodriguez
Dear list,

I’m afraid to admit that ConTeXt notes are increasily problematic for
me. I don’t think this is special to me and I hope we can discuss the
general issue.

Bottom notes are somewhat tricky in ConTeXt. The user expects that these
notes (either footnotes, or linenotes) aren’t moved to the next page. I
mean, no reader expects to find a full footnote in the next page from
the one that calls it. (At least, I have never seen that in any book
read or paged through.)

There may be good reasons for that, but ConTeXt doesn’t enable this by
default. Both options "split=verystrict" and "scope=text" have to be
used in "\setupnote".

This translated in wrong space before notes when paragraph form was
used. I was very interested to use these (line)notes for critical
editions, but sometimes the text run into the notes. I’m afraid that
left linenotes extremely problematic to be used.

With the arrival of LMTX, space before footnotes is more problematic
than before. No paragraph notes, see the attached sample (wrong-6.png).
In other cases, ConTeXt seems to ignore totally that the page bottom
contains footnotes.

I cannot provide minimal samples. Consider that if it were so easy to
reproduce, problably the issue would have been gone long ago.

Even when one avoids the problematic bottom partition (which I did in
that case by removing the "before" option from "\setupnote[footnote]"),
there is clearly an issue with the footnote having its space before
remaining blank from the body text (wrong-2.png).

My first question is why the bottom notes have problems to preserve the
space before them (and simultaneously remain in the same page where they
come from). This applies also for paragraph notes.

My second question is what can be improved to achieve what may be
considered as a basic typographic feature.

Sorry for not providing more than output samples. Bear with me. I may
not be an expert user, but I think I’m a frequent ConTeXt user. And I
don’t think it is totally wrong to consider this a basic feature that
needs to be improved.

Many thanks for your help in advance,

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
___


  1   2   3   4   5   6   7   >