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
___


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

2021-06-30 Thread Hans Hagen

This is the right test:

\setuphead[part][placehead=yes]

\setupnotations
  [endnote]
  [way=bypart]

\setupnotes
  [endnote]
  [location=list]

\starttext

\part{First Part}

asdf\endnote{asdf}
jklö\endnote{jklö}

\part{Second Part}

asdf\endnote{asdf}
jklö\endnote{jklö}

\page

\setuplist
  [part]
  [after={\blank[samepage,big]\placelist[endnote]}]

\blank

\placelist
  [part]
  [criterium=all]

\blank

\placelist
  [endnote]
  [criterium=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
___


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

2021-06-29 Thread Hans Hagen

On 6/29/2021 12:53 PM, denis.ma...@unibe.ch wrote:

Hi,

may I reask the question from below? Would be really great if something 
grouped endnotes were possible...


i need some lines to the code base for that (everything is actually 
already in place to support that)



\setuphead[part][placehead=yes]

\setupnotes
  [endnote]
  [way=bypart]

\setupnotes
  [endnote]
  [location=list]

\starttext

\part{First Part}

asdf\endnote{asdf}
jklö\endnote{jklö}

\part{Second Part}

asdf\endnote{asdf}
jklö\endnote{jklö}

\page

\setuplist
  [part]
  [after={\blank[samepage,big]\placelist[endnote][criterium=part]}]

\placelist
  [part]
  [criterium=all]

% \placelist
%   [endnote]
%   [criterium=text]

\stoptext

You can always ask for alist of notes but in this case there have not 
yet notes been flushed so that's what i need to add.


Hans



Best

Denis

*Von:*ntg-context  *Im Auftrag von 
*denis.ma...@unibe.ch

*Gesendet:* Donnerstag, 24. Juni 2021 13:05
*An:* ntg-context@ntg.nl
*Betreff:* [NTG-context] Heading for endnotes / grouped by chapter endnotes

Hi,

I have two questions regarding endnotes:

1. Is there a way to add a heading automatically to the endnotes placed 
with \placenotes[endnote]?


2. I reset the endnote number at each part. Is there a way to insert the 
title of the corresponding part heading to the endnotes?


I have searched the wiki and the mailing list, and I’ve found two 
relevant questions, but no answers.


https://www.mail-archive.com/ntg-context@ntg.nl/msg68490.html 
<https://www.mail-archive.com/ntg-context@ntg.nl/msg68490.html>


https://www.mail-archive.com/ntg-context@ntg.nl/msg34163.html 
<https://www.mail-archive.com/ntg-context@ntg.nl/msg34163.html>


Best,

Denis

===

\setuphead[part][placehead=yes]

\setupnotation

   [endnote]

   [way=bypart]

\starttext

\part{First Part}

asdf\endnote{asdf}

jklö\endnote{jklö}

\part{Second Part}

asdf\endnote{asdf}

jklö\endnote{jklö}

\placenotes[endnote]

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




--

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

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


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

2020-09-16 Thread Wolfgang Schuster

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


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

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

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

\starttext

\startchapter[title={Chapter One}]

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

\stopchapter

\stoptext

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



\starttext

First paragraph\footnote{Footnote one}

\page

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

Second paragraph\footnote{Footnote two}

\stoptext

Wolfgang

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

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


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

2020-09-16 Thread Henning Hraban Ramm


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

Try

\newdimen\Mybodyfontsize
\Mybodyfontsize=24pt

\setupbodyfont[\Mybodyfontsize]

etc.


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

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


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

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

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

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

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

\starttext

\startchapter[title={Chapter One}]

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

\stopchapter

\stoptext

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

E.g.:

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

Thank you in advance.

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

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


Re: [NTG-context] \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] \placenamedfloat and \setuphead[aftersection=...] broken?

2020-04-02 Thread Benjamin Buchmuller
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:

\starttext


test 
\placefigure[somewhere:alpha][whatever]{alpha}{}

test 
\placefigure[somewhere:beta] [whatever]{beta}{}

test 
\placefigure[somewhere:gamma][whatever]{gamma}{}

test 
\placefigure[somewhere:delta][whatever]{delta}{}

test 
\placefigure{}{}


in 
\in{figure}[whatever]
 bla bla


\placenamedfloat[figure][*l*]



\placenamedfloat[figure][gamma]
\placenamedfloat[figure][beta]



\stoptext

(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}]
___
If your question is of interest to others as well, please add an 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] \setupinteraction[style=...] supersedes manual text style for \note

2020-04-01 Thread Benjamin Buchmuller
For the following one, I’m not sure if this is the intended behaviour or not:

I want to set up the “notation” and “note” style manually, which works great 
unless I also call \setupinteraction[state=start,style=normal] (or any other 
style), regardless of calling it before or after setting up “notation” or 
“note”.

MWE (with an assortment of different note positions):

% \setupinteraction[state=start,style=normal] %% uncomment and manual style for 
\note[] is no longer respected

\setupnotes[textcolor=blue,textstyle=italic]
\setupnotation[endnote][headcolor=green,numberconversion=character]

\starttext
This is the footnote\footnote[one]{aha} and the reference\note[one].

This is the endnote\endnote[two]{oho} and the reference\note[endnote][two].

Let's look \in[one].

\startplacefigure[title={And in this float\endnote[three]{hmm} and the 
reference\note[three].}]

\externalfigure[cow]

\stopplacefigure

\page

And look here \in[two].

\placenotes[endnote]
\stoptext

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] columns and footnotes

2019-10-21 Thread Hans Hagen

On 10/20/2019 3:51 PM, Henning Hraban Ramm wrote:

Hi again,
I’m testing columns again, and before I publish an article on the subject, I’d 
like to check with you.

Find attached my testing environment, env_test.tex, and columns.tex, a 
"product", as well as the result of compiling with —mode=oldcolumns,grid and 
—mode=grid

The "oldcolumns" example shows the result of \usemodule[old-columns] and looks 
like it should. The new columns code still has errors:

Previously it wasn’t possible to start (new) columns mid-page, i.e. after an 
image or chapter/intro like in the example.
This works now (progress!), but the pre-columns stuff is still shifted to the 
right. (And I don’t know where the yellow box comes from.)

Additionally, footnotes in old-columns use the whole width and don’t interfere 
with the text columns, while in new columns, footnotes start in their column 
but use the whole width anyway and thus interfere with the main text.
I tried \setupnotes[footnote][location=columns] (and other options) but saw no 
change.

Many more options to check…
yes but best check them indepedently (i have to turn these into small 
simple examples only settigm things that matter)


anyway, the shift at the top is a side effect of tracing options enabled:

\gdef\page_grids_add_to_mix_indeed#1%
  {\begingroup
   \resetvisualizers
   \global\setbox#1\vpack{\noindent\backgroundline[layout:mix]{\box#1}}%
   \endgroup}

needs an \noindent (or maybe a forgetall elsewhere but that is more 
drastic)


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] endnotes customizing how?

2019-04-09 Thread Rik Kabel

On 4/9/2019 11:19, Hans van der Meer wrote:
In typesetting my endnotes with \placenotes[endnote] I seem unable to 
unfluence the text characteristics.

I tried things like
(1) \setupnotes[endnote][textcolor=blue]
(2) changed fonts before the \ bgroup\bf\placenote\egroup call
(3)
\startsetups[setups:endnotes]
\setupwhitespace[0pt]
\stopsetups
% textstyle influences endnotemarker in the text.
\setupnote[endnote][textcommand=\hifnmarker,before=\directsetup{setups:endnotes}]

(4)\setupnotes[endnote][bodyfont=italic]

Where (3) made a difference in linespacing, nothing else does.
How can one determine the text characteristics of the endnotes?

dr. Hans van der Meer



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

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


Not sure exactly what you want, but if it helps, here is what I have 
used. \setupnote handles the in-text reference to the note, 
\setupnotation handles the note itself. The choice of SignalStyle 
depends on the appearance of the chosen font's superiors, if they exist.


   \define[1]\SignalStyle{\high{\small\hairspace#1}}
   %definefontfeature [f:su]
   %  [sups=yes]
   %define[1]\SignalStyle{\feature[+][f:su]{\hairspace#1}}

   \setupnote [endnote][
  textseparator={,},
  textstyle=\SignalStyle,
  location=none,
  bodyfont=,
 ]


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

--
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] endnotes customizing how?

2019-04-09 Thread Wolfgang Schuster

Hans van der Meer schrieb am 09.04.2019 um 17:19:
In typesetting my endnotes with \placenotes[endnote] I seem unable to 
unfluence the text characteristics.

I tried things like
(1) \setupnotes[endnote][textcolor=blue]
(2) changed fonts before the \ bgroup\bf\placenote\egroup call
(3)
\startsetups[setups:endnotes]
\setupwhitespace[0pt]
\stopsetups
% textstyle influences endnotemarker in the text.
\setupnote[endnote][textcommand=\hifnmarker,before=\directsetup{setups:endnotes}]

\setupnote [endnote] [setups=setups:endnotes]

(4)\setupnotes[endnote][bodyfont=italic]

Where (3) made a difference in linespacing, nothing else does.
How can one determine the text characteristics of the endnotes?

\setupnotation [endnote] [style=italic]

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] endnotes customizing how?

2019-04-09 Thread Hans van der Meer
In typesetting my endnotes with \placenotes[endnote] I seem unable to unfluence 
the text characteristics.
I tried things like
(1) \setupnotes[endnote][textcolor=blue]
(2) changed fonts before the \ bgroup\bf\placenote\egroup call
(3)
\startsetups[setups:endnotes]
\setupwhitespace[0pt]
\stopsetups
% textstyle influences endnotemarker in the text.
\setupnote[endnote][textcommand=\hifnmarker,before=\directsetup{setups:endnotes}]

(4) \setupnotes[endnote][bodyfont=italic]

Where (3) made a difference in linespacing, nothing else does.
How can one determine the text characteristics of the endnotes?

dr. Hans van der Meer


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

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


Re: [NTG-context] CSS selector for elements strictly preceded by other elements

2018-08-04 Thread Hans Hagen

On 8/3/2018 4:31 PM, MF wrote:



make a (real) minimal example and we'll see what can be done



Here it is:

\startbuffer[test]

   In this paragraphfirst footnoteendnote 
strictly
   following a footnote (no other XML nodes between them)
   a footnote marker and an endnote marker are at the same point in the text;
   in the XML source, their elements are contiguous, with nothing in between.
   The CSS selector footnote + endnote works right, and the setup
   associated to that selector puts a comma between their markers to
   separate them in the typesetting.

   In this paragraphsecond footnote they don't occur at 
the
   same point in the textendnote comes after footnote: there's some
   text between them, but no XML elements;
   for the CSS selector footnote + endnote it's the same case of 
the previous paragraph,
   because there's no other XML element between the footnote and 
the
   endnote elements: that's why you still see a comma before
   the endnote's marker, but this time it's not what I want.

   In this paragraphthird footnote they don't occur at 
the
   same point in the text, and the CSS selector footnote + endnote
   does not matchendnote comes after footnote, but there are 3 nodes
   between them: a text, a code element, another text,
   because there's a code element between footnote
   and endnote elements.

   CSS has no operator to discriminate between the first two cases.

\stopbuffer

\setupnotation[footnote][numberconversion=a]
\setupwhitespace[line]

\startxmlsetups xml:notesetups
   \xmlsetsetup{#1}{body|p|footnote|code}{xml:*}
   \xmlsetsetup{#1}{{endnote}}{xml:endnote}
   \xmlsetsetup{#1}{{footnote + endnote}}{xml:endnote-after-footnote}
\stopxmlsetups

\xmlregistersetup{xml:notesetups}

\startxmlsetups xml:body
   \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:p
   \xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:footnote
   \footnote{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:code
   {\tt\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:endnote
   \endnote{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:endnote-after-footnote
   \high{,}\endnote{\xmlflush{#1}}
\stopxmlsetups

\starttext
   \xmlprocessbuffer{main}{test}{}
   \page
   \placenotes[endnote]
\stoptext


The obvious ...

\setupnotes[textseparator={, }]

\startxmlsetups xml:notesetups
\xmlsetsetup{#1}{body|p|footnote|endnote|code}{xml:*}
\stopxmlsetups

\startxmlsetups xml:endnote
\endnote{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:footnote
\footnote{\xmlflush{#1}}
\stopxmlsetups




--

-
  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] bidi in footnotes

2018-06-21 Thread Mohammad Hossein Bateni
I believe, you would need the setups, even if you had set up typescripts.
For some reason, the environments for footnotes and marginnotes are
different from that of the main content's.

I got this solution from Wolfgang/Hans two years ago, so I suppose it's the
officially recommended way.

I do not know how heavy setupdirections is, but this method, I guess,
applies that command *once per page*.  It might be too much, but it's the
price you pay for correct bidi formatting.  For example, I hate to see that
I need to babysit page numbers (LTR) within Farsi text (RTL) in headers but
that's life.

‪On Thu, Jun 21, 2018 at 8:22 AM ‫Idris Samawi Hamid ادريس سماوي حامد‬‎ <
idris.ha...@colostate.edu> wrote:‬

> Salaam, Mohammad Hossein, Otared,
>
> On Wed, 20 Jun 2018 15:27:56 -0600, Mohammad Hossein Bateni
>  wrote:
>
> > \startsetups[bidi:footnotes]
> > \setupdirections[bidi=on]
> > \stopsetups
> > \setupnotes[footnote][setups=bidi:footnotes]
>
> On Wed, 20 Jun 2018 22:31:05 -0600, Otared Kavian 
> wrote:
>
> > % begin test-bidi-footnote.tex
> > \setupdirections[bidi=global]
> > \startsetups[bidi:footnotes]
> > \setupdirections[bidi=on]
> > \definedfont[file:almfixed.otf*arabic at 14pt]
> > \stopsetups
> > \setupnotes[footnote][setups=bidi:footnotes]
> >
> > \starttext
> > \definedfont[file:almfixed.otf*arabic at 14pt]
> > Test امتحان test
> > \startfootnote
> > Test امتحان test
> > \stopfootnote{}
> > \stoptext
> > % end test-bidi-footnote.tex
>
> Many thanks. Question: Is this use of setups now the "official" or
> preferred way to handle footnote typography options? On the surface, it
> appears to be overkill. For the declaration
>
> \setupdirections[bidi=global]
>
> shouldn't that mean that bidi is applied, well, globally?
>
> For \definedfont the behavior is less surprising, since that is obviously
> a local command. But is setups the official way to globalize the command
> (aside from typescripts or simplefonts)?
>
> Best wishes
> Idris
>
> >> On 20 Jun 2018, at 23:22, ⁨Idris Samawi Hamid ادريس سماوي حامد⁩
> >> <⁨idris.ha...@colostate.edu⁩> wrote:
> >>
> >> Dear gang,
> >>
> >> In the attached/following example, bidi is not applied in the footnote:
> >>
> >> \setupdirections[bidi=global]
> >>
> >> \starttext
> >> \definedfont[file:almfixed.otf*arabic at 14pt]
> >> Test امتحان test
> >> \startfootnote
> >> \definedfont[file:almfixed.otf*arabic at 14pt]
> >> Test امتحان test
> >> \stopfootnote{}
> >> \stoptext
> >>
> >> Is there something else that I need to do? Thanks in advance!
> >>
> >> [Also: Is there a way to not have to declare \definedfont twice?]
>
>
> --
> 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
>
> ___
___
If your question is of interest to others as well, please add an 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] bidi in footnotes

2018-06-21 Thread Idris Samawi Hamid ادريس سماوي حامد

Salaam, Mohammad Hossein, Otared,

On Wed, 20 Jun 2018 15:27:56 -0600, Mohammad Hossein Bateni  
 wrote:



\startsetups[bidi:footnotes]
\setupdirections[bidi=on]
\stopsetups
\setupnotes[footnote][setups=bidi:footnotes]


On Wed, 20 Jun 2018 22:31:05 -0600, Otared Kavian  wrote:


% begin test-bidi-footnote.tex
\setupdirections[bidi=global]
\startsetups[bidi:footnotes]
\setupdirections[bidi=on]
\definedfont[file:almfixed.otf*arabic at 14pt]
\stopsetups
\setupnotes[footnote][setups=bidi:footnotes]

\starttext
\definedfont[file:almfixed.otf*arabic at 14pt]
Test امتحان test
\startfootnote
Test امتحان test
\stopfootnote{}
\stoptext
% end test-bidi-footnote.tex


Many thanks. Question: Is this use of setups now the "official" or  
preferred way to handle footnote typography options? On the surface, it  
appears to be overkill. For the declaration


\setupdirections[bidi=global]

shouldn't that mean that bidi is applied, well, globally?

For \definedfont the behavior is less surprising, since that is obviously  
a local command. But is setups the official way to globalize the command  
(aside from typescripts or simplefonts)?


Best wishes
Idris

On 20 Jun 2018, at 23:22, ⁨Idris Samawi Hamid ادريس سماوي حامد⁩  
<⁨idris.ha...@colostate.edu⁩> wrote:


Dear gang,

In the attached/following example, bidi is not applied in the footnote:

\setupdirections[bidi=global]

\starttext
\definedfont[file:almfixed.otf*arabic at 14pt]
Test امتحان test
\startfootnote
\definedfont[file:almfixed.otf*arabic at 14pt]
Test امتحان test
\stopfootnote{}
\stoptext

Is there something else that I need to do? Thanks in advance!

[Also: Is there a way to not have to declare \definedfont twice?]



--
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] bidi in footnotes

2018-06-20 Thread Otared Kavian
Hi Idriss,

As Mohammad Hossein pointed out, adding a setups solves both problems you 
mentioned (font declaration and bidi in footnotes):

% begin test-bidi-footnote.tex
\setupdirections[bidi=global] 
\startsetups[bidi:footnotes]
\setupdirections[bidi=on]
\definedfont[file:almfixed.otf*arabic at 14pt]
\stopsetups
\setupnotes[footnote][setups=bidi:footnotes]

\starttext
\definedfont[file:almfixed.otf*arabic at 14pt]
Test امتحان test
\startfootnote
Test امتحان test
\stopfootnote{}
\stoptext 
% end test-bidi-footnote.tex

Best regards: OK

> On 20 Jun 2018, at 23:22, ⁨Idris Samawi Hamid ادريس سماوي حامد⁩ 
> <⁨idris.ha...@colostate.edu⁩> wrote:
> 
> Dear gang,
> 
> In the attached/following example, bidi is not applied in the footnote:
> 
> \setupdirections[bidi=global]
> 
> \starttext
> \definedfont[file:almfixed.otf*arabic at 14pt]
> Test امتحان test
> \startfootnote
> \definedfont[file:almfixed.otf*arabic at 14pt]
> Test امتحان test
> \stopfootnote{}
> \stoptext
> 
> Is there something else that I need to do? Thanks in advance!
> 
> [Also: Is there a way to not have to declare \definedfont twice?]
> 
> 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
> ___

___
If your question is of interest to others as well, please add an 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] bidi in footnotes

2018-06-20 Thread Mohammad Hossein Bateni
maybe something like this would help:

\startsetups[bidi:footnotes]
\setupdirections[bidi=on]
\stopsetups
\setupnotes[footnote][setups=bidi:footnotes]

but I did not test it now.

‪On Wed, Jun 20, 2018 at 5:26 PM ‫Idris Samawi Hamid ادريس سماوي حامد‬‎ <
idris.ha...@colostate.edu> wrote:‬

> Dear gang,
>
> In the attached/following example, bidi is not applied in the footnote:
>
> \setupdirections[bidi=global]
>
> \starttext
> \definedfont[file:almfixed.otf*arabic at 14pt]
> Test امتحان test
> \startfootnote
> \definedfont[file:almfixed.otf*arabic at 14pt]
> Test امتحان test
> \stopfootnote{}
> \stoptext
>
> Is there something else that I need to do? Thanks in advance!
>
> [Also: Is there a way to not have to declare \definedfont twice?]
>
> 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
>
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

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

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

Hi Brian,

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

\setupnotations[alternative=serried] is required here:

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

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

I hope it is fine now,

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

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

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

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

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

Thanks for your help.

-Brian

On 22 August 2017 at 03:21, Pablo Rodriguez <oi...@gmx.es> wrote:

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

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

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

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

Hi Brian,

footnotes in the wiki are tricky:

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

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

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

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

Just in cases it helps,

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

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

Re: [NTG-context] footnote placement

2017-07-21 Thread Meer, Hans van der

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

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

Hans van der Meer

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

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

Re: [NTG-context] footnote placement

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

Hans,

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

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

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

Re: [NTG-context] footnote placement

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

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

Hans van der Meer




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

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

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

(of course there can be a bug in context)

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

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

Hans,

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

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

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

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


--

-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.nl<http://www.pragma-ade.nl/> | 
www.pragma-pod.nl<http://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<mailto:ntg-context@ntg.nl> / 
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/
wiki : http://contextgarden.net<http://contextgarden.net/>
___

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

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

Re: [NTG-context] footnote placement

2017-07-20 Thread Hans Hagen

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

Pablo,

[scope=page] does not help.

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

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


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


(of course there can be a bug in context)


Hans van der Meer





On 20 Jul 2017, at 20:28, Pablo Rodriguez <oi...@gmx.es> wrote:

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

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


Hans,

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

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

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

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


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

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




--

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

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

Re: [NTG-context] footnote placement

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

[scope=page] does not help. 

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

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

Hans van der Meer




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

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

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

Re: [NTG-context] footnote placement

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

Hans,

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

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

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

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

[NTG-context] footnote placement

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

Hans van der Meer




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

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

Re: [NTG-context] Problem with columns and footnotes

2017-06-30 Thread Henri Menke
On 07/01/2017 04:33 AM, Pablo Rodriguez wrote:
> On 06/30/2017 09:33 AM, Henri Menke wrote:
>> Dear list,
>>
>> motivated by a question on TeX.SX I wanted to typeset multicolumn text with 
>> multicolumn footnotes.
>>  However, on the first page the distance between the columns and the 
>> footnote area is way too large.
>>  Occurs in TL2017 and latest beta.
>>
>> Also, is there something to influence the alignment inside the footnotes 
>> more aggressively.  There
>> are a couple of bad boxes.  Is it possible to turn of balancing for the 
>> footnote columns?
>> [...]
>> \setupnotation
>>   [footnote]
>>   [alternative=hanging,
>>align={raggedright,verytolerant}]
> 
> Hi Henri,
> 
> add width=broad to this.

That seems to make the alignment a little more relaxed (still not so nice in my 
opinion).  At the same time the text now crashes into the footnotes on the 
second page (see attached).  I also noticed that footnote 5 is displayed on the 
first page but the anchor is on the second page.

> But in that case \setupnotes[spacebefore=3em] doesn’t work.
> 
> Just in case it helps,
> 
> Pablo
> 



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

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

Re: [NTG-context] Problem with columns and footnotes

2017-06-30 Thread Pablo Rodriguez
On 06/30/2017 09:33 AM, Henri Menke wrote:
> Dear list,
> 
> motivated by a question on TeX.SX I wanted to typeset multicolumn text with 
> multicolumn footnotes.
>  However, on the first page the distance between the columns and the footnote 
> area is way too large.
>  Occurs in TL2017 and latest beta.
> 
> Also, is there something to influence the alignment inside the footnotes more 
> aggressively.  There
> are a couple of bad boxes.  Is it possible to turn of balancing for the 
> footnote columns?
> [...]
> \setupnotation
>   [footnote]
>   [alternative=hanging,
>align={raggedright,verytolerant}]

Hi Henri,

add width=broad to this.

But in that case \setupnotes[spacebefore=3em] doesn’t work.

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] issue with linenotes and luatex-1.0.3

2017-02-25 Thread Hans Hagen

On 2/25/2017 4:56 PM, Pablo Rodriguez wrote:

On 02/25/2017 04:19 PM, Hans Hagen wrote:

On 2/25/2017 1:09 PM, Pablo Rodriguez wrote:

[...]
The spacebefore option from \setupnotes was intended to improve the
situation. No matter whether \setupnotes is used or not, luatex-1.0.3
gets wrong results.

Could anyone confirm the bug or tell me what I’m doing wrong?


fixed in next beta


Many thanks for the fix, Hans.


actually one can expect differences because in the case of multiple note
classes spacing is done better when there's nothing (basically we have
better control over the main before and individual befores


Sorry, I don’t get it. Does ConTeXt have better control over the main
before than the individual ones? (I’m only guessing.)


you only want a larger (when set) space before the first flushed set of 
notes but still control spacing between sets of notes ... anyway, if you 
never noticed that problem you probably also won't notice the difference 
so don't worry (this was most noticeable in grids)



-
  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] issue with linenotes and luatex-1.0.3

2017-02-25 Thread Pablo Rodriguez
On 02/25/2017 04:19 PM, Hans Hagen wrote:
> On 2/25/2017 1:09 PM, Pablo Rodriguez wrote:
>> [...]
>> The spacebefore option from \setupnotes was intended to improve the
>> situation. No matter whether \setupnotes is used or not, luatex-1.0.3
>> gets wrong results.
>>
>> Could anyone confirm the bug or tell me what I’m doing wrong?
> 
> fixed in next beta

Many thanks for the fix, Hans.

> actually one can expect differences because in the case of multiple note 
> classes spacing is done better when there's nothing (basically we have 
> better control over the main before and individual befores

Sorry, I don’t get it. Does ConTeXt have better control over the main
before than the individual ones? (I’m only guessing.)

Many thanks for your help,

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

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

Re: [NTG-context] issue with linenotes and luatex-1.0.3

2017-02-25 Thread Hans Hagen

On 2/25/2017 1:09 PM, Pablo Rodriguez wrote:

Dear list,

I have a text with two kinds of linenotes (http://www.ousia.tk/hefes.tex).

If I compile with latest beta (2017.02.23 18:37), I get wrong separation
from body in many pages (http://www.ousia.tk/hefes.pdf). Only page 5
might be be right in this point.

But if I use beta from 2017.01.27 14:39 (which comes with luatex-1.0.0
[at least in Linux 32bit]), linenote separation from body is much better
(http://www.ousia.tk/hefes-nospacebefore.pdf).

The spacebefore option from \setupnotes was intended to improve the
situation. No matter whether \setupnotes is used or not, luatex-1.0.3
gets wrong results.

Could anyone confirm the bug or tell me what I’m doing wrong?


fixed in next beta

actually one can expect differences because in the case of multiple note 
classes spacing is done better when there's nothing (basically we have 
better control over the main before and individual befores


-
  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] issue with linenotes and luatex-1.0.3

2017-02-25 Thread Otared Kavian
Dear Pablo,

For your information, I tested your file hefes.tex, and the only pages without 
the issue are pages 3 and 5, with LuaTeX, Version 1.0.3 and ConTeXt  version 
2017.02.23 18:37 (I am running MacOS 10.12).

However with LuaTeX, Version 0.95.0 and ConTeXt  version 2016.05.17 19:20 (from 
TeXLive 2016), the result is as expected.

Best regards: OK

> On 25 Feb 2017, at 13:09, Pablo Rodriguez <oi...@gmx.es> wrote:
> 
> Dear list,
> 
> I have a text with two kinds of linenotes (http://www.ousia.tk/hefes.tex).
> 
> If I compile with latest beta (2017.02.23 18:37), I get wrong separation
> from body in many pages (http://www.ousia.tk/hefes.pdf). Only page 5
> might be be right in this point.
> 
> But if I use beta from 2017.01.27 14:39 (which comes with luatex-1.0.0
> [at least in Linux 32bit]), linenote separation from body is much better
> (http://www.ousia.tk/hefes-nospacebefore.pdf).
> 
> The spacebefore option from \setupnotes was intended to improve the
> situation. No matter whether \setupnotes is used or not, luatex-1.0.3
> gets wrong results.
> 
> Could anyone confirm the bug or tell me what I’m doing wrong?
> 
> Many thanks for your help,
> 
> Pablo
> -- 
> http://www.ousia.tk
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://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 linenotes and luatex-1.0.3

2017-02-25 Thread Pablo Rodriguez
Dear list,

I have a text with two kinds of linenotes (http://www.ousia.tk/hefes.tex).

If I compile with latest beta (2017.02.23 18:37), I get wrong separation
from body in many pages (http://www.ousia.tk/hefes.pdf). Only page 5
might be be right in this point.

But if I use beta from 2017.01.27 14:39 (which comes with luatex-1.0.0
[at least in Linux 32bit]), linenote separation from body is much better
(http://www.ousia.tk/hefes-nospacebefore.pdf).

The spacebefore option from \setupnotes was intended to improve the
situation. No matter whether \setupnotes is used or not, luatex-1.0.3
gets wrong results.

Could anyone confirm the bug or tell me what I’m doing wrong?

Many thanks for your help,

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

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

Re: [NTG-context] TwoColumns in two different languages, with alternate text on even and odd page.

2016-11-23 Thread Jean-Pierre Delange
Hi Hans,

Thank you very much Hans for your help. I'll soon try your code and I'll report 
sooner as possible.
A sample of some work I've referred to, using two columns, a rich criticus 
apparatus in greek, latin and georgian, is : "Les Hymnes de la Résurrection. I. 
Hymnographie liturgique géorgienne, introduction, traduction et annotation des 
textes du Sinaï 18 (Sources liturgiques, 3), Paris, 2000" (see here : 
https://rbecs.org/2015/05/06/hr/#more-3249)
Unfortunately, the book is not under my hand.

JP


- Mail original -
De: "Hans Hagen" <pra...@wxs.nl>
À: ntg-context@ntg.nl
Envoyé: Mardi 22 Novembre 2016 20:14:45
Objet: Re: [NTG-context] TwoColumns in two different languages, with alternate 
text on even and odd page.

On 11/18/2016 1:16 PM, Jean-Pierre Delange wrote:

> I make a statement on a part of the Arthur's reply (" there are no real-life 
> examples of documents that use it") : in fact, there are rare examples of 
> such printing materials : scholar editing and printing of Ancient texts are 
> mainly (if I am right) such printing material (including Ancient Armenian or 
> Georgian liturgic hymns).
>
> An example of such a book : on the even page you read a 'twocolumns' text 
> (say : Greek text with its Latin translation) with there own page setting, 
> including Stephanus apparatus in the footer, and several levels of footnotes 
> within the same footer. Commentaries (in English, French, German, usw) and 
> the like are on the odd page. The average (or regular) situation seems to be 
> less complicated : Greek or Latin text on the even page and translation on 
> the odd page. With Pablo Rodriguez help (actually, this is mainly Pablo's 
> work) I have tried to figure such a goal. But before setting up the even/odd 
> page, there is an issue which one has to fix: the text on two columns is well 
> fitted on the first page, but not on the following pages. How to fix this 
> issue with Greek text on the left column and Latin Text on the right one ? 
> See the mismatch between texts on the second page in the sample below .
> Thank you very much for your remarks and advices.

Below is an example that should work with the latest beta. I introduced 
two new keys 'spacebefore' and 'spaceinbetween' for notes. These are 
needed when we have multiple note categories. In mixed columns this is 
supported. In single column mode only with luatex experimental (so 
patience is needed, but no one asked for this feature anyway).

\setupnotes[spacebefore=4*line]
\setupnotes[spaceinbetween=line]

\starttext


 \setupnote [footnote][before=,after=]
 \definenote[toofnote][before=,after=]

 \dorecurse{100}{
 test #1.a\footnote{note #1}
 test #1.b\toofnote{eton #1}
 \par}

 \page

 \setuplanguage[agr][patterns={agr,la}]

 \mainlanguage[agr] % Greek as main language

 \definefallbackfamily [mainface] [serif] [GFS Didot] 
[preset=range:greek]
 \definefontfamily [mainface] [serif] [TeX Gyre Pagella]

 \setupbodyfont[mainface] % ,7.8pt]

 \setuplayout[header=2cm,footer=2cm]

 \setupnotes[compress=yes]
 \setupnotations[alternative=serried]

 \definenote[aNote]
 \definenote[bNote]
 \definenote[cNote]
 \definenote[dNote]

 \setupnote[aNote][before=,after=]
 \setupnote[bNote][before=,after=]
 \setupnote[cNote][before=,after=]
 \setupnote[dNote][before=,after=]

 \def\ANote#1#2{#1\aNote{#1] #2}}
 \def\BNote#1#2{#1\bNote{#1] #2}}
 \def\CNote#1#2{#1\cNote{#1] #2}}
 \def\DNote#1#2{#1\dNote{#1] #2}}

 \setupalign[hz, hanging]
 \setuptolerance[strict]

\setupnotes[spacebefore=4*line]
\setupnotes[spaceinbetween=]

 % \setuplinenumbering[step=5, location=inright, 
distance=1ex,align=center, width=0.5em]

 \definemargindata[Stephanus][location=inner, distance=2ex,style=\em]

 % \setupbodyfont[mainface,7.8pt]

 \start\fr % some text in French
 Définir un `apparat critique' et le mettre en page avec un 
traitement de texte
 courant est un véritable casse-tête. LaTeX et ConTeXt offrent des 
outils
 d'automatisation encore assez mal connus dans la communauté des 
éditeurs,
 notamment dans l'édition savante, pour la collation et la 
comparaison de textes
 médiévaux.
 \stop

 \blank

 \start\en % some text in English
 {\em It is not very easy to define a `criticus apparatus' with some 
current tools
 (like Microsoft Office Word or LibreOffice). Maybe \ConTeXt offers 
some ways that
 seem easier, in order to improve clear and precise printing.}
 \stop

 \dorecurse{4}{
 \startmixedcolumns[n=2, balance=yes]
 \Stephanus{1a} Ὁμώνυμα λέγεται ὧν ὄνομα μόνον κοινόν, ὁ δὲ 
κατὰ τοὔνομα
 λόγος τῆς οὐσίας ἕτερος, οἷον ζῷον ὅ τε ἄνθρωπος καὶ τὸ 
γεγραμμένον•
 τούτων γὰρ ὄνομα μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα λ

Re: [NTG-context] TwoColumns in two different languages, with alternate text on even and odd page.

2016-11-22 Thread Hans Hagen

On 11/18/2016 1:16 PM, Jean-Pierre Delange wrote:


I make a statement on a part of the Arthur's reply (" there are no real-life 
examples of documents that use it") : in fact, there are rare examples of such 
printing materials : scholar editing and printing of Ancient texts are mainly (if I am 
right) such printing material (including Ancient Armenian or Georgian liturgic hymns).

An example of such a book : on the even page you read a 'twocolumns' text (say 
: Greek text with its Latin translation) with there own page setting, including 
Stephanus apparatus in the footer, and several levels of footnotes within the 
same footer. Commentaries (in English, French, German, usw) and the like are on 
the odd page. The average (or regular) situation seems to be less complicated : 
Greek or Latin text on the even page and translation on the odd page. With 
Pablo Rodriguez help (actually, this is mainly Pablo's work) I have tried to 
figure such a goal. But before setting up the even/odd page, there is an issue 
which one has to fix: the text on two columns is well fitted on the first page, 
but not on the following pages. How to fix this issue with Greek text on the 
left column and Latin Text on the right one ? See the mismatch between texts on 
the second page in the sample below .
Thank you very much for your remarks and advices.


Below is an example that should work with the latest beta. I introduced 
two new keys 'spacebefore' and 'spaceinbetween' for notes. These are 
needed when we have multiple note categories. In mixed columns this is 
supported. In single column mode only with luatex experimental (so 
patience is needed, but no one asked for this feature anyway).


\setupnotes[spacebefore=4*line]
\setupnotes[spaceinbetween=line]

\starttext


\setupnote [footnote][before=,after=]
\definenote[toofnote][before=,after=]

\dorecurse{100}{
test #1.a\footnote{note #1}
test #1.b\toofnote{eton #1}
\par}

\page

\setuplanguage[agr][patterns={agr,la}]

\mainlanguage[agr] % Greek as main language

\definefallbackfamily [mainface] [serif] [GFS Didot] 
[preset=range:greek]

\definefontfamily [mainface] [serif] [TeX Gyre Pagella]

\setupbodyfont[mainface] % ,7.8pt]

\setuplayout[header=2cm,footer=2cm]

\setupnotes[compress=yes]
\setupnotations[alternative=serried]

\definenote[aNote]
\definenote[bNote]
\definenote[cNote]
\definenote[dNote]

\setupnote[aNote][before=,after=]
\setupnote[bNote][before=,after=]
\setupnote[cNote][before=,after=]
\setupnote[dNote][before=,after=]

\def\ANote#1#2{#1\aNote{#1] #2}}
\def\BNote#1#2{#1\bNote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}

\setupalign[hz, hanging]
\setuptolerance[strict]

\setupnotes[spacebefore=4*line]
\setupnotes[spaceinbetween=]

% \setuplinenumbering[step=5, location=inright, 
distance=1ex,align=center, width=0.5em]


\definemargindata[Stephanus][location=inner, distance=2ex,style=\em]

% \setupbodyfont[mainface,7.8pt]

\start\fr % some text in French
Définir un `apparat critique' et le mettre en page avec un 
traitement de texte
courant est un véritable casse-tête. LaTeX et ConTeXt offrent des 
outils
d'automatisation encore assez mal connus dans la communauté des 
éditeurs,
notamment dans l'édition savante, pour la collation et la 
comparaison de textes

médiévaux.
\stop

\blank

\start\en % some text in English
{\em It is not very easy to define a `criticus apparatus' with some 
current tools
(like Microsoft Office Word or LibreOffice). Maybe \ConTeXt offers 
some ways that

seem easier, in order to improve clear and precise printing.}
\stop

\dorecurse{4}{
\startmixedcolumns[n=2, balance=yes]
\Stephanus{1a} Ὁμώνυμα λέγεται ὧν ὄνομα μόνον κοινόν, ὁ δὲ 
κατὰ τοὔνομα
λόγος τῆς οὐσίας ἕτερος, οἷον ζῷον ὅ τε ἄνθρωπος καὶ τὸ 
γεγραμμένον•
τούτων γὰρ ὄνομα μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα λόγος τῆς 
οὐσίας ἕτερος•
ἐὰν γὰρ ἀποδιδῷ τις τί ἐστιν αὐτῶν ἑκατέρῳ τὸ ζῴῳ εἶναι, 
ἴδιον ἑκατέρου
λόγον ἀποδώσει. συνώνυμα δὲ λέγεται ὧν τό τε ὄνομα κοινὸν 
καὶ ὁ κατὰ
τοὔνομα λόγος τῆς οὐσίας ὁ αὐτός, οἷον ζῷον ὅ τε ἄνθρωπος 
καὶ ὁ βοῦς•
τούτων γὰρ ἑκάτερον κοινῷ ὀνόματι προσαγορεύεται ζῷον, καὶ 
ὁ λόγος δὲ τῆς
οὐσίας ὁ αὐτός• ἐὰν γὰρ ἀποδιδῷ τις τὸν ἑκατέρου λόγον τί 
ἐστιν αὐτῶν

ἑκατέρῳ τὸ ζῴῳ εἶναι, τὸν αὐτὸν λόγον ἀποδώσει.
\column
\startlinenumbering[continue]
Aequivoca dicuntur quorum \CNote{nomen}{first note} 
solum commune

est, secundum nomen vero \ANote{substantiae}{second note}
\ANote{ratio}{second note} diversa, ut animal 
\DNote{homo}{third
note} et quod pingitur. Horum enim solum nomen commune 
est, secundum

[NTG-context] TwoColumns in two different languages, with alternate text on even and odd page.

2016-11-18 Thread Jean-Pierre Delange
Hi Arthur and Hans,

I make a statement on a part of the Arthur's reply (" there are no real-life 
examples of documents that use it") : in fact, there are rare examples of such 
printing materials : scholar editing and printing of Ancient texts are mainly 
(if I am right) such printing material (including Ancient Armenian or Georgian 
liturgic hymns). 

An example of such a book : on the even page you read a 'twocolumns' text (say 
: Greek text with its Latin translation) with there own page setting, including 
Stephanus apparatus in the footer, and several levels of footnotes within the 
same footer. Commentaries (in English, French, German, usw) and the like are on 
the odd page. The average (or regular) situation seems to be less complicated : 
Greek or Latin text on the even page and translation on the odd page. With 
Pablo Rodriguez help (actually, this is mainly Pablo's work) I have tried to 
figure such a goal. But before setting up the even/odd page, there is an issue 
which one has to fix: the text on two columns is well fitted on the first page, 
but not on the following pages. How to fix this issue with Greek text on the 
left column and Latin Text on the right one ? See the mismatch between texts on 
the second page in the sample below .
Thank you very much for your remarks and advices.
JP

\setuplanguage[agr][patterns={agr,la}]
\mainlanguage[agr] % Greek as main language
 \definefallbackfamily [mainface] [serif] [GFS Didot] [preset=range:greek]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setuplayout[header=2cm, footer=2cm]
  \setupnotes[compress=yes]
\setupnotations[alternative=serried]
\definelinenote[aNote]
\definelinenote[bNote][n=2]
\definelinenote[cNote][n=3]
\definelinenote[dNote][paragraph=yes]
\def\ANote#1#2{#1\aNote{#1] #2}}
\def\BNote#1#2{#1\bNote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setuplinenumbering[step=5, location=inright, distance=1ex,
 align=center, width=0.5em]
\definemargindata[Stephanus][location=inner, distance=2ex,
 style=\em]
\setupbodyfont[mainface, 7.8pt]
   % \definecolumnset[example][n=2, balance=yes]
\starttext
\start\fr % some text in French
Définir un `apparat critique' et le mettre en page avec un
traitement de texte courant est un véritable casse-tête. LaTeX et
ConTeXt offrent des outils d'automatisation encore assez mal connus
dans la communauté des éditeurs, notamment dans l'édition
savante, pour la collation et la comparaison de textes
médiévaux.\par
\stop
\blank
\start\en % some text in English
{\em It is not very easy to define a `criticus apparatus' with some current 
tools (like Microsoft Office Word or LibreOffice). Maybe \ConTeXt offers some 
ways that seem easier, in order to improve clear and precise printing.}
  \stop


\dorecurse{4}{\startcolumns[n=2, balance=yes]
\Stephanus{1a} Ὁμώνυμα λέγεται ὧν ὄνομα μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα 
λόγος τῆς οὐσίας ἕτερος, οἷον ζῷον ὅ τε ἄνθρωπος καὶ τὸ γεγραμμένον• τούτων γὰρ 
ὄνομα μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα λόγος τῆς οὐσίας ἕτερος• ἐὰν γὰρ ἀποδιδῷ 
τις τί ἐστιν αὐτῶν ἑκατέρῳ τὸ ζῴῳ εἶναι, ἴδιον ἑκατέρου λόγον ἀποδώσει. 
συνώνυμα δὲ λέγεται ὧν τό τε ὄνομα κοινὸν καὶ ὁ κατὰ τοὔνομα λόγος τῆς οὐσίας ὁ 
αὐτός, οἷον ζῷον ὅ τε ἄνθρωπος καὶ ὁ βοῦς• τούτων γὰρ ἑκάτερον κοινῷ ὀνόματι 
προσαγορεύεται ζῷον, καὶ ὁ λόγος δὲ τῆς οὐσίας ὁ αὐτός• ἐὰν γὰρ ἀποδιδῷ τις τὸν 
ἑκατέρου λόγον τί ἐστιν αὐτῶν ἑκατέρῳ τὸ ζῴῳ εἶναι, τὸν αὐτὸν λόγον ἀποδώσει.  

\column

\startlinenumbering[continue]
Aequivoca dicuntur quorum \CNote{nomen}{first note} solum
commune est, secundum nomen vero \ANote{substantiae}{second note}
\ANote{ratio}{second note} diversa, ut animal
\DNote{homo}{third note} et quod pingitur. Horum enim solum nomen commune 
est, secundum nomen vero substantiae ratio diversa; si enim quis assignet quid 
est utrique eorum quo sint animalia, propriam assignabit utriusque rationem. 
Univoca vero dicuntur quorum et nomen commune est et secundum nomen eadem 
substantiae ratio, ut animal homo atque bos.

\stoplinenumbering

\stopcolumns}
\stoptext



- Mail original -
De: "Arthur Reutenauer" <arthur.reutena...@normalesup.org>
À: "Mailing list for ConTeXt users" <ntg-context@ntg.nl>
Envoyé: Mardi 15 Novembre 2016 17:39:40
Objet: Re: [NTG-context] Wrtiting in two languages

> 2) Second situation : you want to print a translation on the same page (say 
> the even page) as the original Greek text, with the commentary (or whatever) 
> on the odd page. I fear there is no way to do this at the time (that was 
> impossible with CTX early in 2016). I didn't retry these former weeks...

  Actually, there has been, for quite a long time, a mechanism called
streams in ConTeXt that aimed at doing exa

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-20 Thread Jean-Pierre Delange
Hi Pablo and greek-latin readers (and printers),

I've given a look further into the documentation about the modules 
'newcolumnset', in order to understand this issue, where ConTeXt put the latin 
paragraph in the continuity of greek paragraph, when one tries to get 2 
paragraphs in 2 face to face columns in 2 different languages (with the goal to 
print a 'criticus apparatus' in a few different level of footnotes).

Wolfgang Schuster stimulated me about the new documentation ! Then, I have 
found, in the doc produced by : context --extra=setups --overview 
i-columns.xml, this intersting information (cf. last line) :
quotation : "This manual introduces column sets, one of the output routines of 
ConTEXt. Although
column sets are mainly meant for typesetting journals in a semi--automated way, 
you
can also use them for books. We assume that the user is familiar with ConTEXt 
and
only discuss the commands that are related to column sets.
This mechanism performs okay but it needs to be used with care: an occasional 
manual
intervention is needed to get optimal results. After all, we’re operating in 
the area
where normally click and point desktop publishing is used.
For the moment you need to load the new code with: \usemodule[newcolumnsets]".

Allright ! Then, I have listening this advice and there is the new code (on the 
basis of Pablo's work); I've only added declarations lines as  
\usemodule[newcolumnsets], and \definecolumnset[example][n=2, balance=yes]. The 
result is almost satisfying, because 'criticus apparatus' is well printed in 
footnotes, the numbering lines okay and the first 2 texts (greek and latin 
paragraphs) quite well printed in two face to face columns. BUT, I don't 
understand why after a good print, all is messed up. Is it because the closing 
bracket after \dorecurse{4}{ is only here : \stopcolumns} ?
I want to test this file without the dorecurse command, with a long 
aristotelian text and its latin translation within more than a recto/verso set 
(or both pages and an only /odd/even set). But I want to know, before doing 
such a test, why this configuration with a sample doesn't work.
As attached file see the PDF of the *.tex source below.
Thanks to all !
JP

\setuplanguage[agr][patterns={agr, la}]
\mainlanguage[agr] % Greek as main language
 \definefallbackfamily [mainface] [serif] [GFS Didot] [preset=range:greek]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setuplayout[header=2cm, footer=2cm]
\usemodule[newcolumnsets]
\setupnotes[compress=yes]
\setupnotations[alternative=serried]
\definelinenote[aNote]
\definelinenote[bNote][n=2]
\definelinenote[cNote][n=3]
\definelinenote[dNote][paragraph=yes]
\def\ANote#1#2{#1\aNote{#1] #2}}
\def\BNote#1#2{#1\bNote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setuplinenumbering[step=5, location=inright, distance=1ex,
 align=center, width=0.5em]
\definemargindata[Stephanus][location=inner, distance=2ex,
 style=\em]
\setupbodyfont[mainface, 7.8pt]
\definecolumnset[example][n=2, balance=yes]
\starttext
\start\fr % some text in French
Définir un apparat critique et le mettre en page avec un
traitement de texte courant est un véritable casse-tête. LaTeX et
ConTeXt offrent des outils d'automatisation encore assez mal connus
dans la communauté des éditeurs, notamment dans l'édition
savante, pour la collation et la comparaison de textes
médiévaux.\par
\stop
\startcolumns[example]
\dorecurse{4}{

\Stephanus{1a} Ὁμώνυμα λέγεται ὧν ὄνομα
μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα
λόγος τῆς οὐσίας ἕτερος, οἷον ζῷον
ὅ τε ἄνθρωπος καὶ τὸ γεγραμμένον·
τούτων γὰρ ὄνομα μόνον κοινόν, ὁ δὲ
κατὰ τοὔνομα λόγος τῆς οὐσίας
ἕτερος· ἐὰν γὰρ ἀποδιδῷ τις τί
ἐστιν αὐτῶν ἑκατέρῳ τὸ ζῴῳ
εἶναι, ἴδιον ἑκατέρου λόγον ἀποδώσει.

\column

\startlinenumbering[continue]
Aequivoca dicuntur quorum \CNote{nomen}{première note} solum
commune est, secundum nomen vero \ANote{substantiae}{seconde note}
\ANote{ratio}{seconde note} diversa, ut animal
\DNote{homo}{troisième note} et quod pingitur. Horum enim solum
nomen commune est, secundum nomen vero substantiae ratio diversa;
si enim quis assignet quid est utrique eorum quo sint animalia,
propriam assignabit utriusque rationem.
\stoplinenumbering

\stopcolumns}
\stoptext


- Mail original -
De: "Pablo Rodriguez" <oi...@gmx.es>
À: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Envoyé: Lundi 16 Mai 2016 20:19:51
Objet: Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

On 05/16/2016 06:25 PM, Jean-Pierre Delange wrote:
>>> [...]
>>> \dorecurse only avoids copying the same text again and again.
> 
> I dont know how to manage Hans proposal : I've tried to deal wi

Re: [NTG-context] ConTeXt commands

2016-05-18 Thread Hans Hagen

On 5/18/2016 3:15 PM, Mohammad Hossein Bateni wrote:

This document is pretty handy and I did not know about it.  Thanks!


the setups have always been there but i never really kept them in sync 
with the latest additions but ... recently they have been upgraded to 
describe nearly all commands (also low level ones) .. a pretty 
impressive effort by Wolfgang ... the intetface files have been split in 
smaller files and are under the interface subpath alongside base


Hans


On Wed, May 18, 2016 at 9:04 AM, Meer, Hans van der <h.vanderm...@uva.nl
<mailto:h.vanderm...@uva.nl>> wrote:


> On 18 May 2016, at 14:39, Hans Hagen <pra...@wxs.nl 
<mailto:pra...@wxs.nl>> wrote:
>
> On 5/18/2016 2:09 PM, Meer, Hans van der wrote:
>> What is the latest edition of "ConTeXt commands"? The one I have here is 
dated July 1,2015. It is missing some commands however: \setupnotes to name an example.
>>
>> I find it a very handy document, but alas it is not standard in the 
contextbeta distribution as for example the LuaTeX manual in latest editiion is.
>> Otherwise, where is it to be found? It seems absent from the 
Contextgarden homepage.
>
> search for i-context.pdf
>

Found it, but wouldn't have looked for the pdf in the mkiv-sources
directory.
May I express the wish that it will be standard located in
"tex/texmf-context/doc/context/documents/general/manuals" where the
other ones are? Then I need one symbolic link only "to find them
all" (for the Tolkien fans )

Hans van der Meer





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

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

___




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

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




--

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

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

Re: [NTG-context] ConTeXt commands

2016-05-18 Thread Hans Hagen

On 5/18/2016 3:15 PM, Mohammad Hossein Bateni wrote:

This document is pretty handy and I did not know about it.  Thanks!

On Wed, May 18, 2016 at 9:04 AM, Meer, Hans van der <h.vanderm...@uva.nl
<mailto:h.vanderm...@uva.nl>> wrote:


> On 18 May 2016, at 14:39, Hans Hagen <pra...@wxs.nl 
<mailto:pra...@wxs.nl>> wrote:
>
> On 5/18/2016 2:09 PM, Meer, Hans van der wrote:
>> What is the latest edition of "ConTeXt commands"? The one I have here is 
dated July 1,2015. It is missing some commands however: \setupnotes to name an example.
>>
>> I find it a very handy document, but alas it is not standard in the 
contextbeta distribution as for example the LuaTeX manual in latest editiion is.
>> Otherwise, where is it to be found? It seems absent from the 
Contextgarden homepage.
>
> search for i-context.pdf
>

Found it, but wouldn't have looked for the pdf in the mkiv-sources
directory.
May I express the wish that it will be standard located in
"tex/texmf-context/doc/context/documents/general/manuals" where the
other ones are? Then I need one symbolic link only "to find them
all" (for the Tolkien fans )


it's where the source is ... anyway, you can generate it

  context --extra=setups --overview i-context.xml

another xml heaven for you

Hans


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

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

Re: [NTG-context] ConTeXt commands

2016-05-18 Thread Mohammad Hossein Bateni
This document is pretty handy and I did not know about it.  Thanks!

On Wed, May 18, 2016 at 9:04 AM, Meer, Hans van der <h.vanderm...@uva.nl>
wrote:

>
> > On 18 May 2016, at 14:39, Hans Hagen <pra...@wxs.nl> wrote:
> >
> > On 5/18/2016 2:09 PM, Meer, Hans van der wrote:
> >> What is the latest edition of "ConTeXt commands"? The one I have here
> is dated July 1,2015. It is missing some commands however: \setupnotes to
> name an example.
> >>
> >> I find it a very handy document, but alas it is not standard in the
> contextbeta distribution as for example the LuaTeX manual in latest
> editiion is.
> >> Otherwise, where is it to be found? It seems absent from the
> Contextgarden homepage.
> >
> > search for i-context.pdf
> >
>
> Found it, but wouldn't have looked for the pdf in the mkiv-sources
> directory.
> May I express the wish that it will be standard located in
> "tex/texmf-context/doc/context/documents/general/manuals" where the other
> ones are? Then I need one symbolic link only "to find them all" (for the
> Tolkien fans )
>
> Hans van der Meer
>
>
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] ConTeXt commands

2016-05-18 Thread Meer, Hans van der

> On 18 May 2016, at 14:39, Hans Hagen <pra...@wxs.nl> wrote:
> 
> On 5/18/2016 2:09 PM, Meer, Hans van der wrote:
>> What is the latest edition of "ConTeXt commands"? The one I have here is 
>> dated July 1,2015. It is missing some commands however: \setupnotes to name 
>> an example.
>> 
>> I find it a very handy document, but alas it is not standard in the 
>> contextbeta distribution as for example the LuaTeX manual in latest editiion 
>> is.
>> Otherwise, where is it to be found? It seems absent from the Contextgarden 
>> homepage.
> 
> search for i-context.pdf
> 

Found it, but wouldn't have looked for the pdf in the mkiv-sources directory. 
May I express the wish that it will be standard located in 
"tex/texmf-context/doc/context/documents/general/manuals" where the other ones 
are? Then I need one symbolic link only "to find them all" (for the Tolkien 
fans )

Hans van der Meer




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

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

Re: [NTG-context] ConTeXt commands

2016-05-18 Thread Hans Hagen

On 5/18/2016 2:09 PM, Meer, Hans van der wrote:

What is the latest edition of "ConTeXt commands"? The one I have here is dated 
July 1,2015. It is missing some commands however: \setupnotes to name an example.

I find it a very handy document, but alas it is not standard in the contextbeta 
distribution as for example the LuaTeX manual in latest editiion is.
Otherwise, where is it to be found? It seems absent from the Contextgarden 
homepage.


search for i-context.pdf

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

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

[NTG-context] ConTeXt commands

2016-05-18 Thread Meer, Hans van der
What is the latest edition of "ConTeXt commands"? The one I have here is dated 
July 1,2015. It is missing some commands however: \setupnotes to name an 
example.

I find it a very handy document, but alas it is not standard in the contextbeta 
distribution as for example the LuaTeX manual in latest editiion is. 
Otherwise, where is it to be found? It seems absent from the Contextgarden 
homepage.

Hans van der Meer




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

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

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-16 Thread Jean-Pierre Delange
Hi Pablo,

1. Here is my current version on Linux : ConTeXt  ver: 2016.05.15 20:46 MKIV 
beta  fmt: 2016.5.16 (and the same on Windows).
2. I've tried to install GFS Didot on Windows, but I did'nt find TTF... And 
when I copy files in c:/windows/fonts, ce system complains. How do you do that 
? 
3. We use both the same source file.
4. I was dummy : I was not aware of the mean of \definelinenote !
5. Note that here, the \dorecurse{50} command seems to produce an unexpected 
effect : the latin text takes place of the greek one with its lines numbers (I 
really don't know if the \dorecurse commande is 

(Something out of the topic : under Linux, when I load GFS Didot, after 
reloading fonts (with mtxrun --script fonts --reload), I don't see the GFS 
fonts, with the command mtxrun --script fonts --list --pattern=didot* --all. 
Strange, isn't it ?)

As attached files, the TeX source, the log file and the PDF print.

Many thanks for your help !
JP




À: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Envoyé: Lundi 16 Mai 2016 11:42:35
Objet: Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

On 05/16/2016 10:58 AM, Jean-Pierre Delange wrote:
> Hi Pablo,
> I have first running your code here below and it is working fine,
> generally speaking. But there are some problems I need to clarify:

Hi Jean-Pierre,

I assume you are running the same version as the one included in
https://mailman.ntg.nl/pipermail/ntg-context/2016/085521.html (only
recursion may be set to a higher number), aren’t you?

I include at the end of the message to be sure we share the same sources.

> a. Beside the fact that I am running today on Windows and there is
> not GFS Didot typeface on the sytem (therefore I use TeX Gyre), there
> is a lack of Greek diacritic signs in the Greek print.

Isn’t it possible that you install GFS Didot on that Windows system?

> b. I don't see the footnotes references (but only the footnotes).

I’m not sure I get your point.

These are linenotes, not footnotes. References are to the line number,
not to a footnote number.

Is that what you meant?

> c. the log file gives something weird about {\startcolumns[n=2, balance=yes]

It seems to have problems to balance the columns. But the file below
doesn’t gave me that message.

I hope it helps,

Pablo



\setuplanguage[agr][patterns={agr, la}]
\mainlanguage[agr] % Greek as main language
\definefallbackfamily [mainface] [serif] [GFS Didot]
 [preset=range:greek]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setuplayout[header=2cm, footer=2cm]
\setupnotes[compress=yes]
\setupnotations[alternative=serried]
\definelinenote[aNote]
\definelinenote[bNote][n=2]
\definelinenote[cNote][n=3]
\definelinenote[dNote][paragraph=yes]
\def\ANote#1#2{#1\aNote{#1] #2}}
\def\BNote#1#2{#1\bNote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setuplinenumbering[step=5, location=inright, distance=1ex,
 align=center, width=0.5em]
\definemargindata[Stephanus][location=inner, distance=2ex,
 style=\em]
\setupbodyfont[mainface, 7.8pt]
\starttext
\start\fr % some text in French
Définir un apparat critique et le mettre en page avec un
traitement de texte courant est un véritable casse-tête. LaTeX et
ConTeXt offrent des outils d'automatisation encore assez mal connus
dans la communauté des éditeurs, notamment dans l'édition
savante, pour la collation et la comparaison de textes
médiévaux.\par
\stop

\dorecurse{50}{\startcolumns[n=2, balance=yes]

\Stephanus{1a} Ὁμώνυμα λέγεται ὧν ὄνομα
μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα
λόγος τῆς οὐσίας ἕτερος, οἷον ζῷον
ὅ τε ἄνθρωπος καὶ τὸ γεγραμμένον·
τούτων γὰρ ὄνομα μόνον κοινόν, ὁ δὲ
κατὰ τοὔνομα λόγος τῆς οὐσίας
ἕτερος· ἐὰν γὰρ ἀποδιδῷ τις τί
ἐστιν αὐτῶν ἑκατέρῳ τὸ ζῴῳ
εἶναι, ἴδιον ἑκατέρου λόγον ἀποδώσει.

\column

\startlinenumbering[continue]
Aequivoca dicuntur quorum \CNote{nomen}{première note} solum
commune est, secundum nomen vero \ANote{substantiae}{seconde note}
\ANote{ratio}{seconde note} diversa, ut animal
\DNote{homo}{troisième note} et quod pingitur. Horum enim solum
nomen commune est, secundum nomen vero substantiae ratio diversa;
si enim quis assignet quid est utrique eorum quo sint animalia,
propriam assignabit utriusque rationem.
\stoplinenumbering

\stopcolumns}
\stoptext

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

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

[NTG-context] balancing columns

2016-05-16 Thread Pablo Rodriguez
Hi Hans,

I have the following sample:

\mainlanguage[la]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setupbodyfont[mainface, 7.8pt]
\setupnotes[compress=yes]
\setupnotations[alternative=serried]
\definelinenote[aNote]
\definelinenote[bNote][n=2]
\definelinenote[cNote][n=3]
\definelinenote[dNote][paragraph=yes]
\def\ANote#1#2{#1\aNote{#1] #2}}
\def\BNote#1#2{#1\bNote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\starttext

\dorecurse{50}{\startcolumns[n=2, balance=yes]

\color[red]{%
Aequivoca dicuntur quorum nomen solum commune est, secundum nomen
vero substantiae ratio diversa, ut animal homo et quod pingitur.
Horum enim solum nomen commune est, secundum nomen vero substantiae
ratio diversa; si enim quis assignet quid est utrique eorum quo
sint animalia, propriam assignabit utriusque rationem.}

\column

\startlinenumbering[continue]
Aequivoca dicuntur quorum \CNote{nomen}{première note} solum
commune est, secundum nomen vero \ANote{substantiae}{seconde note}
\ANote{ratio}{seconde note} diversa, ut animal
\DNote{homo}{troisième note} et quod pingitur. Horum enim solum
nomen commune est, secundum nomen vero substantiae ratio diversa;
si enim quis assignet quid est utrique eorum quo sint animalia,
propriam assignabit utriusque rationem.
\stoplinenumbering

\stopcolumns}
\stoptext

I must be missing something, since columns aren’t balanced on pages 1,
4, 5, 7 and 8. The text for both columns is the same paragraph. Isn’t it
a bug?

BTW, is there any way to force that the text before or after a \column
command remains always on the same column?

Many thanks for your help,


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

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

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-16 Thread Pablo Rodriguez
On 05/16/2016 10:58 AM, Jean-Pierre Delange wrote:
> Hi Pablo,
> I have first running your code here below and it is working fine,
> generally speaking. But there are some problems I need to clarify:

Hi Jean-Pierre,

I assume you are running the same version as the one included in
https://mailman.ntg.nl/pipermail/ntg-context/2016/085521.html (only
recursion may be set to a higher number), aren’t you?

I include at the end of the message to be sure we share the same sources.

> a. Beside the fact that I am running today on Windows and there is
> not GFS Didot typeface on the sytem (therefore I use TeX Gyre), there
> is a lack of Greek diacritic signs in the Greek print.

Isn’t it possible that you install GFS Didot on that Windows system?

> b. I don't see the footnotes references (but only the footnotes).

I’m not sure I get your point.

These are linenotes, not footnotes. References are to the line number,
not to a footnote number.

Is that what you meant?

> c. the log file gives something weird about {\startcolumns[n=2, balance=yes]

It seems to have problems to balance the columns. But the file below
doesn’t gave me that message.

I hope it helps,

Pablo



\setuplanguage[agr][patterns={agr, la}]
\mainlanguage[agr] % Greek as main language
\definefallbackfamily [mainface] [serif] [GFS Didot]
 [preset=range:greek]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setuplayout[header=2cm, footer=2cm]
\setupnotes[compress=yes]
\setupnotations[alternative=serried]
\definelinenote[aNote]
\definelinenote[bNote][n=2]
\definelinenote[cNote][n=3]
\definelinenote[dNote][paragraph=yes]
\def\ANote#1#2{#1\aNote{#1] #2}}
\def\BNote#1#2{#1\bNote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setuplinenumbering[step=5, location=inright, distance=1ex,
 align=center, width=0.5em]
\definemargindata[Stephanus][location=inner, distance=2ex,
 style=\em]
\setupbodyfont[mainface, 7.8pt]
\starttext
\start\fr % some text in French
Définir un apparat critique et le mettre en page avec un
traitement de texte courant est un véritable casse-tête. LaTeX et
ConTeXt offrent des outils d'automatisation encore assez mal connus
dans la communauté des éditeurs, notamment dans l'édition
savante, pour la collation et la comparaison de textes
médiévaux.\par
\stop

\dorecurse{50}{\startcolumns[n=2, balance=yes]

\Stephanus{1a} Ὁμώνυμα λέγεται ὧν ὄνομα
μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα
λόγος τῆς οὐσίας ἕτερος, οἷον ζῷον
ὅ τε ἄνθρωπος καὶ τὸ γεγραμμένον·
τούτων γὰρ ὄνομα μόνον κοινόν, ὁ δὲ
κατὰ τοὔνομα λόγος τῆς οὐσίας
ἕτερος· ἐὰν γὰρ ἀποδιδῷ τις τί
ἐστιν αὐτῶν ἑκατέρῳ τὸ ζῴῳ
εἶναι, ἴδιον ἑκατέρου λόγον ἀποδώσει.

\column

\startlinenumbering[continue]
Aequivoca dicuntur quorum \CNote{nomen}{première note} solum
commune est, secundum nomen vero \ANote{substantiae}{seconde note}
\ANote{ratio}{seconde note} diversa, ut animal
\DNote{homo}{troisième note} et quod pingitur. Horum enim solum
nomen commune est, secundum nomen vero substantiae ratio diversa;
si enim quis assignet quid est utrique eorum quo sint animalia,
propriam assignabit utriusque rationem.
\stoplinenumbering

\stopcolumns}
\stoptext

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

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

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-16 Thread Jean-Pierre Delange
 
'dummy--0'
columns > balancing aborted after 100 steps
columns > balancing aborted after 100 steps
columns > balancing aborted after 100 steps
columns > balancing aborted after 100 steps
backend > xmp > using file 
'C:/Users/Adeimantos/Documents/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
close source> 2 > 3 > 


- Mail original -
De: "Pablo Rodriguez" <oi...@gmx.es>
À: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Envoyé: Dimanche 15 Mai 2016 20:36:47
Objet: Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

On 05/15/2016 06:46 PM, Jean-Pierre Delange wrote:
> Hi Pablo and other ConTeXt wizards !
> 
> I've tried to find a solution to my previous question. Thanks to
> Pablo Rodriguez, the script is working very well. But when I try to
> take his solution with a 2 columns scheme (a Greek tex on left and a
> Latin one on right), the footnotes are not printed. I did something
> which is not thebest : to gather some declarations and see if they work !
> Then, the script below is more or less working (it does work : no
> error in the log !), but because it doesn't print footnotes, I
> wonder that it succeeds to print the 2 columns (greek and latin) ! To
> summarize what it doesn't work here :
> 1) lines numbering
> 2) footnotes

Hi Jean-Pierre,

some remarks about your code:

1. The simplefonts module isn’t needed anymore. The code has been added
to the ConTeXt core.

2. The language code for ancient Greek is agr.

3. In this particular case, you may load the Latin patterns with the
Greek language.

4. You define a mainface using the Palatino typeface, but then you load
palatino. It only works when you load the mainface.

5. It is better when you use typefaces distributed with ConTeXt.

Well, my code doesn’t work well. Line numbers and notes are only allowed
on one column.

I know Hans will hate me ;-), but the fun comes when the recursion
exceeds the first page.

BTW, I guess this approach (as flawed as it is) should work, but I
should be missing something with columns.

It is beyond my understanding why the last Greek paragraph fits on the
first page and the lat Latin paragraph doesn’t fit.

Here is the code:

\setuplanguage[agr][patterns={agr, la}]
\mainlanguage[agr] % Greek as main language
\definefallbackfamily [mainface] [serif] [GFS Didot]
 [preset=range:greek]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setuplayout[header=2cm, footer=2cm]
\setupnotes[compress=yes]
\setupnotations[alternative=serried]
\definelinenote[aNote]
\definelinenote[bNote][n=2]
\definelinenote[cNote][n=3]
\definelinenote[dNote][paragraph=yes]
\def\ANote#1#2{#1\aNote{#1] #2}}
\def\BNote#1#2{#1\bNote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setuplinenumbering[step=5, location=inright, distance=1ex,
 align=center, width=0.5em]
\definemargindata[Stephanus][location=inner, distance=2ex,
 style=\em]
\setupbodyfont[mainface, 7.8pt]
\starttext
\start\fr % some text in French
Définir un apparat critique et le mettre en page avec un
traitement de texte courant est un véritable casse-tête. LaTeX et
ConTeXt offrent des outils d'automatisation encore assez mal connus
dans la communauté des éditeurs, notamment dans l'édition
savante, pour la collation et la comparaison de textes
médiévaux.\par
\stop

\dorecurse{5}{\startcolumns[n=2, balance=yes]

\Stephanus{1a} Ὁμώνυμα λέγεται ὧν ὄνομα
μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα
λόγος τῆς οὐσίας ἕτερος, οἷον ζῷον
ὅ τε ἄνθρωπος καὶ τὸ γεγραμμένον·
τούτων γὰρ ὄνομα μόνον κοινόν, ὁ δὲ
κατὰ τοὔνομα λόγος τῆς οὐσίας
ἕτερος· ἐὰν γὰρ ἀποδιδῷ τις τί
ἐστιν αὐτῶν ἑκατέρῳ τὸ ζῴῳ
εἶναι, ἴδιον ἑκατέρου λόγον ἀποδώσει.

\column

\startlinenumbering[continue]
Aequivoca dicuntur quorum \CNote{nomen}{première note} solum
commune est, secundum nomen vero \ANote{substantiae}{seconde note}
\ANote{ratio}{seconde note} diversa, ut animal
\DNote{homo}{troisième note} et quod pingitur. Horum enim solum
nomen commune est, secundum nomen vero substantiae ratio diversa;
si enim quis assignet quid est utrique eorum quo sint animalia,
propriam assignabit utriusque rationem.
\stoplinenumbering

\stopcolumns}
\stoptext

Just in case it might help,

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : htt

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-16 Thread Jean-Pierre Delange
Hi Pablo,

1. My code is a raw one, with some old pieces; I know simplefonts module is in 
the core since 2013, but it's a kind of pavlovian attitude...
2. Many thanks for 'agr' which I'm looking for through CTX doc and never found.
3. I understand why I have to load either 'agr' ith 'la' pattern.
4. I've to improve my understanding of \setmainfont, \definefontfamily and 
\definefallbackfamily and their declaration order. In this particulary case, 
why don't use something like this declaration : \setmainfontfallback[DejaVu 
Serif][range={greekandcoptic, greekextended},force=yes, rscale=auto] ?
5. Is it possible to find information about CTXt fonts apart of the system ones 
with a mtxrun command ?

Thank you for your code, which I am studying and testing right now.
JP

- Mail original -
De: "Pablo Rodriguez" <oi...@gmx.es>
À: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Envoyé: Dimanche 15 Mai 2016 20:36:47
Objet: Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

On 05/15/2016 06:46 PM, Jean-Pierre Delange wrote:
> Hi Pablo and other ConTeXt wizards !
> 
> I've tried to find a solution to my previous question. Thanks to
> Pablo Rodriguez, the script is working very well. But when I try to
> take his solution with a 2 columns scheme (a Greek tex on left and a
> Latin one on right), the footnotes are not printed. I did something
> which is not thebest : to gather some declarations and see if they work !
> Then, the script below is more or less working (it does work : no
> error in the log !), but because it doesn't print footnotes, I
> wonder that it succeeds to print the 2 columns (greek and latin) ! To
> summarize what it doesn't work here :
> 1) lines numbering
> 2) footnotes

Hi Jean-Pierre,

some remarks about your code:

1. The simplefonts module isn’t needed anymore. The code has been added
to the ConTeXt core.

2. The language code for ancient Greek is agr.

3. In this particular case, you may load the Latin patterns with the
Greek language.

4. You define a mainface using the Palatino typeface, but then you load
palatino. It only works when you load the mainface.

5. It is better when you use typefaces distributed with ConTeXt.

Well, my code doesn’t work well. Line numbers and notes are only allowed
on one column.

I know Hans will hate me ;-), but the fun comes when the recursion
exceeds the first page.

BTW, I guess this approach (as flawed as it is) should work, but I
should be missing something with columns.

It is beyond my understanding why the last Greek paragraph fits on the
first page and the lat Latin paragraph doesn’t fit.

Here is the code:

\setuplanguage[agr][patterns={agr, la}]
\mainlanguage[agr] % Greek as main language
\definefallbackfamily [mainface] [serif] [GFS Didot]
 [preset=range:greek]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setuplayout[header=2cm, footer=2cm]
\setupnotes[compress=yes]
\setupnotations[alternative=serried]
\definelinenote[aNote]
\definelinenote[bNote][n=2]
\definelinenote[cNote][n=3]
\definelinenote[dNote][paragraph=yes]
\def\ANote#1#2{#1\aNote{#1] #2}}
\def\BNote#1#2{#1\bNote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setuplinenumbering[step=5, location=inright, distance=1ex,
 align=center, width=0.5em]
\definemargindata[Stephanus][location=inner, distance=2ex,
 style=\em]
\setupbodyfont[mainface, 7.8pt]
\starttext
\start\fr % some text in French
Définir un apparat critique et le mettre en page avec un
traitement de texte courant est un véritable casse-tête. LaTeX et
ConTeXt offrent des outils d'automatisation encore assez mal connus
dans la communauté des éditeurs, notamment dans l'édition
savante, pour la collation et la comparaison de textes
médiévaux.\par
\stop

\dorecurse{5}{\startcolumns[n=2, balance=yes]

\Stephanus{1a} Ὁμώνυμα λέγεται ὧν ὄνομα
μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα
λόγος τῆς οὐσίας ἕτερος, οἷον ζῷον
ὅ τε ἄνθρωπος καὶ τὸ γεγραμμένον·
τούτων γὰρ ὄνομα μόνον κοινόν, ὁ δὲ
κατὰ τοὔνομα λόγος τῆς οὐσίας
ἕτερος· ἐὰν γὰρ ἀποδιδῷ τις τί
ἐστιν αὐτῶν ἑκατέρῳ τὸ ζῴῳ
εἶναι, ἴδιον ἑκατέρου λόγον ἀποδώσει.

\column

\startlinenumbering[continue]
Aequivoca dicuntur quorum \CNote{nomen}{première note} solum
commune est, secundum nomen vero \ANote{substantiae}{seconde note}
\ANote{ratio}{seconde note} diversa, ut animal
\DNote{homo}{troisième note} et quod pingitur. Horum enim solum
nomen commune est, secundum nomen vero substantiae ratio diversa;
si enim quis assignet quid est utrique eorum quo sint animalia,
propriam assignabit utriusque rationem.
\stoplinenumbering

\stopcolumns}
  

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-15 Thread Pablo Rodriguez
On 05/15/2016 06:46 PM, Jean-Pierre Delange wrote:
> Hi Pablo and other ConTeXt wizards !
> 
> I've tried to find a solution to my previous question. Thanks to
> Pablo Rodriguez, the script is working very well. But when I try to
> take his solution with a 2 columns scheme (a Greek tex on left and a
> Latin one on right), the footnotes are not printed. I did something
> which is not thebest : to gather some declarations and see if they work !
> Then, the script below is more or less working (it does work : no
> error in the log !), but because it doesn't print footnotes, I
> wonder that it succeeds to print the 2 columns (greek and latin) ! To
> summarize what it doesn't work here :
> 1) lines numbering
> 2) footnotes

Hi Jean-Pierre,

some remarks about your code:

1. The simplefonts module isn’t needed anymore. The code has been added
to the ConTeXt core.

2. The language code for ancient Greek is agr.

3. In this particular case, you may load the Latin patterns with the
Greek language.

4. You define a mainface using the Palatino typeface, but then you load
palatino. It only works when you load the mainface.

5. It is better when you use typefaces distributed with ConTeXt.

Well, my code doesn’t work well. Line numbers and notes are only allowed
on one column.

I know Hans will hate me ;-), but the fun comes when the recursion
exceeds the first page.

BTW, I guess this approach (as flawed as it is) should work, but I
should be missing something with columns.

It is beyond my understanding why the last Greek paragraph fits on the
first page and the lat Latin paragraph doesn’t fit.

Here is the code:

\setuplanguage[agr][patterns={agr, la}]
\mainlanguage[agr] % Greek as main language
\definefallbackfamily [mainface] [serif] [GFS Didot]
 [preset=range:greek]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setuplayout[header=2cm, footer=2cm]
\setupnotes[compress=yes]
\setupnotations[alternative=serried]
\definelinenote[aNote]
\definelinenote[bNote][n=2]
\definelinenote[cNote][n=3]
\definelinenote[dNote][paragraph=yes]
\def\ANote#1#2{#1\aNote{#1] #2}}
\def\BNote#1#2{#1\bNote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setuplinenumbering[step=5, location=inright, distance=1ex,
 align=center, width=0.5em]
\definemargindata[Stephanus][location=inner, distance=2ex,
 style=\em]
\setupbodyfont[mainface, 7.8pt]
\starttext
\start\fr % some text in French
Définir un apparat critique et le mettre en page avec un
traitement de texte courant est un véritable casse-tête. LaTeX et
ConTeXt offrent des outils d'automatisation encore assez mal connus
dans la communauté des éditeurs, notamment dans l'édition
savante, pour la collation et la comparaison de textes
médiévaux.\par
\stop

\dorecurse{5}{\startcolumns[n=2, balance=yes]

\Stephanus{1a} Ὁμώνυμα λέγεται ὧν ὄνομα
μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα
λόγος τῆς οὐσίας ἕτερος, οἷον ζῷον
ὅ τε ἄνθρωπος καὶ τὸ γεγραμμένον·
τούτων γὰρ ὄνομα μόνον κοινόν, ὁ δὲ
κατὰ τοὔνομα λόγος τῆς οὐσίας
ἕτερος· ἐὰν γὰρ ἀποδιδῷ τις τί
ἐστιν αὐτῶν ἑκατέρῳ τὸ ζῴῳ
εἶναι, ἴδιον ἑκατέρου λόγον ἀποδώσει.

\column

\startlinenumbering[continue]
Aequivoca dicuntur quorum \CNote{nomen}{première note} solum
commune est, secundum nomen vero \ANote{substantiae}{seconde note}
\ANote{ratio}{seconde note} diversa, ut animal
\DNote{homo}{troisième note} et quod pingitur. Horum enim solum
nomen commune est, secundum nomen vero substantiae ratio diversa;
si enim quis assignet quid est utrique eorum quo sint animalia,
propriam assignabit utriusque rationem.
\stoplinenumbering

\stopcolumns}
\stoptext

Just in case it might help,

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

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

Re: [NTG-context] Footnote markers

2016-03-26 Thread Robert Krug
Thank you! 

Robert

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

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

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

Re: [NTG-context] Footnote markers

2016-03-26 Thread Hans Hagen

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

Greetings,

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

Some text
\footnote{note.}
more text.

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

Some text *more text.

rather than:

Some text* more text.

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

Many thanks for Context. It is quite nifty.


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

\starttext

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

\setupnotes[footnote][anchor=next]

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

\stoptext


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

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

Re: [NTG-context] footnotes and links

2016-03-02 Thread Pablo Rodriguez
On 02/27/2016 11:28 PM, Pablo Rodriguez wrote:
> On 02/27/2016 02:40 PM, Hans Hagen wrote:
> [...]
>> I can't check much (as I don't know what to expect, but there is no real 
>> definition of qualitative behaviour there anyway) but this is what can 
>> be done. I have no clue to what extent complex interactions between 
>> footnote splitting and their content can interfere.
> 
> I’m afraid that this modification of your sample shows an issue:
> 
> \setupnotes[location=text]
> \setupinteraction[state=start,focus=standard]
> 
> \starttext
> \chapter{Text}
> \dorecurse{10}{note #1%
> \footnote[reference:#1]{\input ward \input tufte\relax}\par}
> \par
> \goto{OEPS  3}[reference:3]
> \goto{OEPS 10}[reference:10]
> \chapter{Notes}
> \placefootnotes
> \stoptext
> 
> Links from the first page land in the next footnote than they should.
> Links that come back to the first page seem to be fine.

Many thanks for your fix, Hans.

After updating to latest beta (from yesterday), footnote links work fine
(not extensively checked yet).

My (ignorant guess) is that updating luatex from 0.89.0 to 0.89.2
contained the fix.

Also for the record, so that no good action leaves unpublished :-).

Many thanks again for this huge improvement,


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

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

Re: [NTG-context] footnotes and links

2016-02-27 Thread Pablo Rodriguez
On 02/27/2016 02:40 PM, Hans Hagen wrote:
> Hi,
> 
> The beta has a bit adapted note interactivity (rather tricky as these 
> inserts have their own weirdness)

Many thanks for the implementation, Hans.

> I can't check much (as I don't know what to expect, but there is no real 
> definition of qualitative behaviour there anyway) but this is what can 
> be done. I have no clue to what extent complex interactions between 
> footnote splitting and their content can interfere.

I’m afraid that this modification of your sample shows an issue:

\setupnotes[location=text]
\setupinteraction[state=start,focus=standard]

\starttext
\chapter{Text}
\dorecurse{10}{note #1%
\footnote[reference:#1]{\input ward \input tufte\relax}\par}
\par
\goto{OEPS  3}[reference:3]
\goto{OEPS 10}[reference:10]
\chapter{Notes}
\placefootnotes
\stoptext

Links from the first page land in the next footnote than they should.
Links that come back to the first page seem to be fine.

Many thanks for your help,

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

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

[NTG-context] footnotes and links

2016-02-27 Thread Hans Hagen

Hi,

The beta has a bit adapted note interactivity (rather tricky as these 
inserts have their own weirdness)


% \setupnotes[interaction=no]
% \setupnotes[interaction=yes]
% \setupnotes[interaction=text]
% \setupnotes[interaction=number]
\setupnotes[interaction=all]

\setupinteraction[state=start,focus=width,option=name] % option probably 
not needed


\starttext
\dorecurse{10}{note #1\footnote[reference:#1]{\input ward \input 
tufte\relax} }

\par
\goto{OEPS  3}[reference:3]
\goto{OEPS 10}[reference:10]
\stoptext

I can't check much (as I don't know what to expect, but there is no real 
definition of qualitative behaviour there anyway) but this is what can 
be done. I have no clue to what extent complex interactions between 
footnote splitting and their content can interfere.


Hans


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

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

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-19 Thread Wolfgang Schuster

Mohammad Hossein Bateni <mailto:bat...@gmail.com>
19. Januar 2016 um 12:16
That should work for Ibn Saeed, but it's not a complete solution.  For 
example it does not work if one wants to write "page x of y" instead, 
with "page" and "y" written in Arabic/Persian.  Then the text of the 
header is partly LTR and part RTL.


This is still simple and I can use my hacky solution and mix 
\lefttoright and \righttoleft to get it right.  But is it possible to 
extend the \setupdirections[bidi=on] to apply to parts other than the 
main text?  I just noticed this does not apply to footnotes either.  
Having numbers in the TRL footnote text produces incorrect typesetting.
ConTeXt resets many settings for headers, footers, footnotes etc. and 
have to set them again for these elements.


To apply the bidi setting to footnotes you have to add

\startsetups[bidi:footnotes]
  \setupdirection[bidi=on]
\stopsetups

\setupnotes[footnote][setups=bidi:footnotes]

to your document.

Wolfgang


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

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

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-19 Thread Mohammad Hossein Bateni
Thanks, Wolfgang!  This does work indeed.  I had actually tried it before
but made a mistake which made it useless.

What commands accept this kind of setup?  Do the headers and footers accept
such a thing?  How much overhead does this cause?

Is it possible to run the bidi code on a small string? Is there a macro
like \applybidi{some-text-to-apply-bidi-algorithm-on}?

—MHB

On Tue, Jan 19, 2016 at 6:30 AM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:

> Mohammad Hossein Bateni <bat...@gmail.com>
> 19. Januar 2016 um 12:16
> That should work for Ibn Saeed, but it's not a complete solution.  For
> example it does not work if one wants to write "page x of y" instead, with
> "page" and "y" written in Arabic/Persian.  Then the text of the header is
> partly LTR and part RTL.
>
> This is still simple and I can use my hacky solution and mix \lefttoright
> and \righttoleft to get it right.  But is it possible to extend the
> \setupdirections[bidi=on] to apply to parts other than the main text?  I
> just noticed this does not apply to footnotes either.  Having numbers in
> the TRL footnote text produces incorrect typesetting.
>
> ConTeXt resets many settings for headers, footers, footnotes etc. and have
> to set them again for these elements.
>
> To apply the bidi setting to footnotes you have to add
>
> \startsetups[bidi:footnotes]
>   \setupdirection[bidi=on]
> \stopsetups
>
> \setupnotes[footnote][setups=bidi:footnotes]
>
> to your document.
>
> Wolfgang
>
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Issues of Export

2015-08-21 Thread Hans Hagen

On 8/15/2015 1:20 PM, Henning Hraban Ramm wrote:

Hi, finally coming back...

Am 2015-08-10 um 23:21 schrieb Hans Hagen pra...@wxs.nl:


On 8/10/2015 10:30 AM, Henning Hraban Ramm wrote:

As listed on http://wiki.contextgarden.net/Export

Open Export issues as of 2014-01-20, still valid 2015-08-08
• Structure bug: Metadata ends up within the first section instead of 
in front of everything


ok, fixed for document level ... keep in mind that setting metadata always 
relates to the next element


Thanks, for me it’s good now.


• Names of metavariables are missing in div.xhtml

ok, i've added something


Works. Not that important anyway.


• Notes (footnotes): Only visual formatting, no semantical markup and 
no reference/ID

boring, so todo


Hey, I thought TeX would be about semantical markup? At the moment the markup 
for footnotes is purely graphical - a marker in the text, and the footnote 
somewhere later (where it appears on the printed page). E.g.

Bla bladescriptionsymbol detail=footnotesup1/sup/descriptionsymbol bla bla ba break/...description detail=footnote 
chain=footnotedescriptiontagsup1/sup /descriptiontagdescriptioncontentThis is the footnote 
text/descriptioncontent/description

That makes no sense and is very hard to process, even using xsl.
I would suggest to stay with the source flow instead of the output, if 
possible. E.g. markup like

Bla bladescription detail=footnote id=1 tag=1Footnote text/description

The id would be some internal id (I guess there is one?), the tag the footnote 
marker (as of \setupnotes).
Is that not possible and even simpler than the current version?


the code is there but its use got lost when updating something else (an 
id 'insert' that links the note and symbol)


btw, if you want them someplace else in the stream using end nodes makes 
sense



• Delimited: Quotations have tagging *and* quotation marks, even in 
raw.xml

i added symbol and content element


Less would be enough, but works this way.


• Firstpage/Lastpage is ignored in project structure

fuzzy, so todo


The keywords are defined in setup, I don’t understand where they get forgotten.


• Minimal example doesn’t create a cover at all

no beta yet


? Is this intentional, or what triggers the creation of cover.xhtml?

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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

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




--

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

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

Re: [NTG-context] Issues of Export

2015-08-15 Thread Henning Hraban Ramm
Hi, finally coming back...

Am 2015-08-10 um 23:21 schrieb Hans Hagen pra...@wxs.nl:

 On 8/10/2015 10:30 AM, Henning Hraban Ramm wrote:
 As listed on http://wiki.contextgarden.net/Export
 
 Open Export issues as of 2014-01-20, still valid 2015-08-08
  • Structure bug: Metadata ends up within the first section instead of 
 in front of everything
 
 ok, fixed for document level ... keep in mind that setting metadata always 
 relates to the next element

Thanks, for me it’s good now.

  • Names of metavariables are missing in div.xhtml
 ok, i've added something

Works. Not that important anyway.

  • Notes (footnotes): Only visual formatting, no semantical markup and 
 no reference/ID
 boring, so todo

Hey, I thought TeX would be about semantical markup? At the moment the markup 
for footnotes is purely graphical - a marker in the text, and the footnote 
somewhere later (where it appears on the printed page). E.g.

Bla bladescriptionsymbol detail=footnotesup1/sup/descriptionsymbol 
bla bla ba break/...description detail=footnote 
chain=footnotedescriptiontagsup1/sup 
/descriptiontagdescriptioncontentThis is the footnote 
text/descriptioncontent/description

That makes no sense and is very hard to process, even using xsl.
I would suggest to stay with the source flow instead of the output, if 
possible. E.g. markup like

Bla bladescription detail=footnote id=1 tag=1Footnote text/description

The id would be some internal id (I guess there is one?), the tag the footnote 
marker (as of \setupnotes).
Is that not possible and even simpler than the current version?

  • Delimited: Quotations have tagging *and* quotation marks, even in 
 raw.xml
 i added symbol and content element

Less would be enough, but works this way.

  • Firstpage/Lastpage is ignored in project structure
 fuzzy, so todo

The keywords are defined in setup, I don’t understand where they get forgotten.

  • Minimal example doesn’t create a cover at all
 no beta yet

? Is this intentional, or what triggers the creation of cover.xhtml?

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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

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

Re: [NTG-context] \placefootnotes at the end of each chapter, conditionally

2015-03-13 Thread Alan BRASLAU
On Thu, 12 Mar 2015 22:59:33 +0100
Hans Hagen pra...@wxs.nl wrote:

  Supplementary question, just for fun:
  how to specify title=Footnote if there is only one?  
 
 \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}]
 
 \starttext
  \dorecurse{4}{
  \startchapter[title=Number #1]
  A few notes\dorecurse{\numexpr#1-1\relax}{\footnote{Note 
 #1.##1}}.
  \stopchapter
  }
 \stoptext


I knew that it would be something as easy as that...

Wikified:
http://wiki.contextgarden.net/Footnotes

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

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

Re: [NTG-context] \placefootnotes at the end of each chapter, conditionally

2015-03-12 Thread Hans Hagen

On 3/12/2015 8:01 PM, Alan BRASLAU wrote:

I have a simple problem:

I would like to place

\startsubject[title=Footnotes]
 \placefootnotes
\stopsubject

at the end of each chapter, thus effectively before each \stopchapter
BUT only if there are footnotes to be placed, i.e. I do not want to
have empty Footnotes subjects appearing in my document.

Supplementary question, just for fun:
how to specify title=Footnote if there is only one?


\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}]

\starttext
\dorecurse{4}{
\startchapter[title=Number #1]
A few notes\dorecurse{\numexpr#1-1\relax}{\footnote{Note 
#1.##1}}.

\stopchapter
}
\stoptext

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

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

[NTG-context] [location=text] breaks setups in \setupnotes

2014-12-11 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setuppapersize[A6]
\startsetups[setups:footnote]
\setupinterlinespace[line=5ex]
\stopsetups

\setupnote[footnote][way=bytext, location=text,
setups=setups:footnote, style=\itxx]

\starttext
Hi\footnote{\input knuth}.
\placefootnotes
\stoptext

For some strange reason, when location=text is set \setupnote, the
setups option isn’t honored?

Could anyone confirm the bug?

Many thanks for your help,


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

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

Re: [NTG-context] [location=text] breaks setups in \setupnotes

2014-12-11 Thread Pablo Rodriguez
On 12/11/2014 08:02 PM, Wolfgang Schuster wrote:
 Am 11.12.2014 um 19:14 schrieb Pablo Rodriguez:
 [...]
 For some strange reason, when location=text is set \setupnote, the
 setups option isn’t honored?

 Could anyone confirm the bug?
 
 It’s not a bug, the setups key is only used when notes are placed at the 
 bottom of the page
 but not when you flush them with the \placenotes command.

Many thanks for your reply. Wolfgang.

Is there no other way to apply setups to a chapter?

Many thanks for your help,


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

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

Re: [NTG-context] [location=text] breaks setups in \setupnotes

2014-12-11 Thread Wolfgang Schuster

 Am 11.12.2014 um 20:31 schrieb Pablo Rodriguez oi...@gmx.es:
 
 On 12/11/2014 08:02 PM, Wolfgang Schuster wrote:
 Am 11.12.2014 um 19:14 schrieb Pablo Rodriguez:
 [...]
 For some strange reason, when location=text is set \setupnote, the
 setups option isn’t honored?
 
 Could anyone confirm the bug?
 
 It’s not a bug, the setups key is only used when notes are placed at the 
 bottom of the page
 but not when you flush them with the \placenotes command.
 
 Many thanks for your reply. Wolfgang.
 
 Is there no other way to apply setups to a chapter?

You can try to add before=\directsetup{setups:footnote}” to \setupnotes.

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

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

Re: [NTG-context] [location=text] breaks setups in \setupnotes

2014-12-11 Thread Pablo Rodriguez
On 12/11/2014 08:38 PM, Wolfgang Schuster wrote:
 Am 11.12.2014 um 20:31 schrieb Pablo Rodriguez:
 On 12/11/2014 08:02 PM, Wolfgang Schuster wrote:
 [...]
 It’s not a bug, the setups key is only used when notes are placed
 at the bottom of the page but not when you flush them with the
 \placenotes command.

 Many thanks for your reply. Wolfgang.

 Is there no other way to apply setups to a chapter?
 
 You can try to add before=\directsetup{setups:footnote}” to \setupnotes.

Many thanks for your reply, Wolfgang.

It worked like charm.

Many thanks for your help,


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

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

[NTG-context] Selectfont module and bodyfont size in footnotes

2014-03-16 Thread Alan Bowen
The following minimal example

\definefontfamily[mainface][serif][TeX Gyre Termes Serif]

\setupbodyfont[mainface,15pt]

\setupnotes[footnote][bodyfont={mainface,12pt}]

\starttext

text\footnote{Still more} and more text\footnote{And then again}

\stoptext

gets the size of the first note at 12 pt but sets the second at 15pt. How
can I fix this?

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

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

Re: [NTG-context] Selectfont module and bodyfont size in footnotes

2014-03-16 Thread Wolfgang Schuster

Am 16.03.2014 um 19:39 schrieb Alan Bowen bowenala...@gmail.com:

 The following minimal example
 
 \definefontfamily[mainface][serif][TeX Gyre Termes Serif]
 
 \setupbodyfont[mainface,15pt]
 
 \setupnotes[footnote][bodyfont={mainface,12pt}]
 
 \starttext
 
 text\footnote{Still more} and more text\footnote{And then again}
 
 \stoptext
 
 gets the size of the first note at 12 pt but sets the second at 15pt. How can 
 I fix this?

You have to use the right name of the font, i.e. 
\definefontfamily[mainface][serif][TeX Gyre Termes]

Wolfgang

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

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


Re: [NTG-context] Selectfont module and bodyfont size in footnotes

2014-03-16 Thread Alan Bowen
Uggh. But thanks, Wolfgang.


On Sun, Mar 16, 2014 at 3:59 PM, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


 Am 16.03.2014 um 19:39 schrieb Alan Bowen bowenala...@gmail.com:

  The following minimal example
 
  \definefontfamily[mainface][serif][TeX Gyre Termes Serif]
 
  \setupbodyfont[mainface,15pt]
 
  \setupnotes[footnote][bodyfont={mainface,12pt}]
 
  \starttext
 
  text\footnote{Still more} and more text\footnote{And then again}
 
  \stoptext
 
  gets the size of the first note at 12 pt but sets the second at 15pt.
 How can I fix this?

 You have to use the right name of the font, i.e.
 \definefontfamily[mainface][serif][TeX Gyre Termes]

 Wolfgang


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

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

 ___

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

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

Re: [NTG-context] (critical edition) nesting linenotes

2013-11-18 Thread Hans Hagen

On 11/18/2013 8:55 PM, Pablo Rodriguez wrote:

Dear Thomas, Luigi and Hans,

my second sample might be related to the first one. But I’m not sure it
is a bug.

Here is the code:

\setuppapersize[A8]
\newcounter\MyCounter
  \def\CritApp#1#2{\increment\MyCounter%
  \startlinenote[Varia:\MyCounter]{#1] #2}#1%
  \prewordbreak\stoplinenote[Varia:\MyCounter]}

\starttext
\startlinenumbering
\startlinenote[one]{hyphenated}this is a test on
\startlinenote[two]{with nested
linenote}hyphenation\prewordbreak\stoplinenote[two]\stoplinenote[one]

\CritApp{this is a test on \CritApp{hyphenation}{nested linenote: bad
line number}}{not hyphenated}
\stoplinenumbering
\stoptext

A command such as \CritApp above is intended to generate all linenote
references automagically.

It works fine, but I cannot nest \CritApp linenotes. The problem is in
within this line:

 \startlinenote[Varia:\MyCounter]{#1] #2}#1%

If I replace {#1] #2}#1 with {#2}#1, nesting \CritApp linenotes,
everything works as expected.

Is this a bug?


you need to separate cases:

(1) some macro that uses grouping with nested notes
(2) hyphenation

here is an example of the first case

\setuppapersize
  [A8][A7]

\setuplayout
  [location=middle]

\unexpanded\def\doCritApp#1#2#3%
  {\startlinenote[#1]{#2 #3}(#2)\stoplinenote[#1]}

\newcounter\MyCounter
\unexpanded\def\CritApp
  {\doglobal\increment\MyCounter
   \normalexpanded{\doCritApp{Varia:\MyCounter}}}

% \setupnotes[linenote][split=verystrict,scope=page]

\starttext
\startlinenumbering
\startlinenote[one]{note one}
one one one one one one one one one one one one one one one
\startlinenote[two]{note two}
two two two two two two two
\stoplinenote[two]
one one one one one one one one one one one one one one one
\stoplinenote[one]
\par
\CritApp
  {(one one one one one one)
   \CritApp
 {(two two)}
 {two two two two two two}
   (one one one one one one)}
  {one one one one one one}
\stoplinenumbering
\stoptext

so, in your macro you need to make sure that the counter (1) gets 
incremented global and (2) gets expanded in time.


Hans

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

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


Re: [NTG-context] footnotes on wrong page

2013-07-24 Thread Alan BRASLAU
On Tue, 23 Jul 2013 22:24:50 +0200
Hans Hagen pra...@wxs.nl wrote:

 you use the wrong command and there is also the scope parameter
 
 \setupnotes[footnote][split=verystrict,scope=page]

Can you clarify this? The syntax is confusing, probably because it has
evolved.

Currently, I use:
\setupnotation [footnote] [way=bypage,numberconversion=set 2]
for example, but maybe this is no longer the recommended syntax?

Also, in order to restore gobbled space following,%
\startfootnote
\stopfootnote
I use the following setup:
\setupnote [footnote] [next={ }]
So \setupnotation, \setupnote, \setupnotes is confusing.

Of course, there is
strc-not.mkvi:\let\setupnotes\setupnote
so \setupnotes is just a synonym for \setupnote.
And then there is also:
strc-not.mkvi:\let\setupnotations\setupnotation

From what I understand, footnotes can be handled using different
mechanisms, and this is why it gets confusing for users.

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

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


Re: [NTG-context] footnotes on wrong page

2013-07-23 Thread Hans Hagen

On 7/23/2013 9:22 PM, Alan Bowen wrote:

What is the setting that forces ConTeXt to keep footnotes on the page
where they are called?

In the following example,

\setupinteraction[state=start]
\setupnotation[footnote][interaction=yes,way=bytext]

\setupnotation[footnote][split=verystrict]

\starttext
\dorecurse{50}{some text\footnote{a footnote} }
\stoptext

the call for note 42 and the note itself are on different pages. I
realize that this may be an extreme case, but, regrettably, that is what
I have in a review that I am typesetting.


you use the wrong command and there is also the scope parameter

\setupnotes[footnote][split=verystrict,scope=page]



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

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


Re: [NTG-context] [***SPAM***] Strategies to control moving footnotes

2013-06-04 Thread Hans Hagen

On 6/4/2013 9:10 AM, H. Özoguz wrote:

I have often the problem of moving footnotes (with activated grid
setting). That means, the footnote is not on the same page as the
footnotenumber, but moved on the next page. That apperas often if you
have a book with many not-so-short footnotes. Maybe one has to accept
that, but in some cases it is really ugly. How do you manish these
cases, how to control in general this problem? It appears, if the
footnote is not very short and the footnotenumber is at the bottom of
the page (in the text). So the footnote on the same text would shift the
footnotenumber on the next. Are there some automated strategies and keys
in context, or is there no other way than manipulating the text itself?


\setupnotes[split=tolerant|strict|verystrict]

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

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


Re: [NTG-context] footnoterule

2013-04-17 Thread Meer, H. van der
I find this setup stuff bewildering. My last posting is concerning the 
typesetting of the endnote numbering in both the text and the list at the en 
dof the chapter. In the Reference Manual both textcommand and numbercommand are 
treated in the same setup macro: \setupfootnotes on page 94. But (with the help 
of your reply) I find now there are different macros needed to set them up:

Needed for the text = \setupnotes[endnote][textcommand=\hifnmarker]
Needed for the list = \setupnotation[endnote][numbercommand=\fnmarker]
\def\fnmarker#1{[#1]}\def\hifnmarker#1{\high{[#1]}}

Wolfgang Schuster just comes up with a similar solution:
\setupnote[endnote][textcommand=\groupedcommand{[}{]}]
\setupnotation[endnote][numbercommand=\groupedcommand{[}{]}]
Allthough the difference between \setupnote and \setupnotes alludes me.

The \setupnotes does not handle the numbercommand, the \setupnotation does not 
handle the textcommand. I find this split in behaviour difficult to understand. 
May I plead for a unification here?

Hans van der Meer



On 17 Apr 2013, at 8:14 PM, Marco Patzer 
home...@lavabit.commailto:home...@lavabit.com
 wrote:

On 2013–04–17 Meer, H. van der wrote:

Is there a reason why the first does switches off the rule above the footnote
 \setupfootnotes[rule=off]
but this doesn't?
 \setupnotation[footnote][rule=off]]

It's \setupnotes, not \setupnotation that controls the rule.

\setupnotes
 [footnote]
 [rule=off]

\starttext
Some footnote\footnote{The foonote}.\crlf
\stoptext

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

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

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

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

Re: [NTG-context] footnoterule

2013-04-17 Thread Wolfgang Schuster

Am 17.04.2013 um 20:46 schrieb Meer, H. van der h.vanderm...@uva.nl:

 I find this setup stuff bewildering. My last posting is concerning the 
 typesetting of the endnote numbering in both the text and the list at the en 
 dof the chapter. In the Reference Manual both textcommand and numbercommand 
 are treated in the same setup macro: \setupfootnotes on page 94. But (with 
 the help of your reply) I find now there are different macros needed to set 
 them up:
 
 Needed for the text = \setupnotes[endnote][textcommand=\hifnmarker]
 Needed for the list = \setupnotation[endnote][numbercommand=\fnmarker]
 \def\fnmarker#1{[#1]}\def\hifnmarker#1{\high{[#1]}}
 
 Wolfgang Schuster just comes up with a similar solution:
 \setupnote[endnote][textcommand=\groupedcommand{[}{]}]
 \setupnotation[endnote][numbercommand=\groupedcommand{[}{]}]
 Allthough the difference between \setupnote and \setupnotes alludes me.
 
 The \setupnotes does not handle the numbercommand, the \setupnotation does 
 not handle the textcommand. I find this split in behaviour difficult to 
 understand. May I plead for a unification here?

Footnotes, endnotes etc. are processed in a two step mechanism. When context 
reaches \footnote{…} in the document it stores the content and puts a number in 
the text, the style etc. of this number can be changed with the \setupnote 
command.

After the page is finished the collected notes for the current page are 
inserted at the bottom of the page, at first this is only one big block which 
contains all notes. The rule, font size etc, for this block can be also changed 
with the \setupnote command.

In this block the individual note texts are placed, the style etc. of each note 
text can be changed with the \setupnotation command.

Another point of notes are the counter and it’s format which is also changed 
with the \setupnotation command.

Wolfgang

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

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

[NTG-context] distance between footnotes

2013-02-27 Thread Meer, H. van der
I find the distance between my footnotes too large:

1 first foornote
too much space
2 second footnote

Trying \setupfootnotes[after={\blank-2mm]}] does not change anything
as is the case with \setupnotation[footnote][after={\blank[-2mm]}]

A strange phenomenon I noticed when wxperimenting for this post:

\setupnotes[bodyfont=12pt] does change the font in the footnotes,
but \setupnotation[footnote][bodyfont=12pt] does not.
I thought that in mkiv \setupnotation[footnote] should completely replace 
\setupnotes. How is that?

Hans van der Meer



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

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


Re: [NTG-context] distance between footnotes

2013-02-27 Thread Wolfgang Schuster

Am 27.02.2013 um 10:26 schrieb Meer, H. van der h.vanderm...@uva.nl:

 I find the distance between my footnotes too large:
 
 1 first foornote
 too much space
 2 second footnote
 
 Trying \setupfootnotes[after={\blank-2mm]}] does not change anything
 as is the case with \setupnotation[footnote][after={\blank[-2mm]}]
 
 A strange phenomenon I noticed when wxperimenting for this post:
 
 \setupnotes[bodyfont=12pt] does change the font in the footnotes,
 but \setupnotation[footnote][bodyfont=12pt] does not.
 I thought that in mkiv \setupnotation[footnote] should completely replace 
 \setupnotes. How is that?

Footnotes are placed in a block and the settings of the block (e.g. the rule at 
the top)
are controlled by \setupnote but the layout of each entry is controlled by 
\setupnotation.

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

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


[NTG-context] linenotes space for compress

2012-08-15 Thread Pablo Rodríguez
Hi there,

I have tried to add the compress option for linenotes to a commented
edition that I'm trying to typeset (http://geoffreysteadman.com/).

Sample is attached. And the relevant code for both apparatuses are:

\definenote[dict]
\setupnote[dict][n=2,rule=off, split=strict, inbetween=\hskip1.5em]
\setupnotation[dict][number=no]
\definelinenote[contxt]
\setupnote[contxt][rule=off, paragraph=yes, split=strict,
inbetween=\hskip1.5em]
\setupnotation[contxt][numbercommand=,alternative=serried,distance=1em,compress=yes,compressseparator=]

There is a problem (shown in the second apparatus from pages 1-3):
compression space is also shown at line start with no previous text on
that line. I'm afraid this is a bug.

There is another issue with the blank space between compressed notes.
They have more space than normal notes. This can be observed comparing
the first compressed notes and the first numbered ones. I guess
compressed notes have both spaces from numbered notes (the space before
and the space after the number [inbetween option from setupnote and
distance option from setupnotation]). I think there should be less space
for compressed notes than for numbered notes. I think Idris and Thomas
might give some insight into this issue. My suggestion would be to
reduce the compressed space to the space before the number (inbetween
option from setupnotes) or to enable a compressspace option in
setupnotation (which would make sense mainly when compressseparator were
disabled).

There is another issue on pages 2 and 3: the separation between body and
the dict linenotes is almost non-existent. I'm afraid this may be bug.

BTW, I would like to put the contxt linenote numbers in old style.
\setff{oldn} would be the command, but
\setupnotation[contxt][numbercommand=\setff{oldn}] doesn't work. How can
I get this?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk


symposium.pdf
Description: video/flv
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] new footnotes

2012-03-19 Thread Honza Hejzl
Hello,

I have tested those „new“ commands for footnotes and it seems some of
them don't work properly. I like footnotes' numbers aligned to the
left side of the main text. On wiki is:

\setupnotation[footnote][location=left,width=1cm]
\setupnote[footnote][location=page,numbercommand=]

This simply does not work. I have combined location, alternative and
page parameter in both commands, \setupnotation as well as \setupnote,
nothing works now for me. The second bad thing is it ignores my
numbercommands. It was easy to use it before when I needed numbers as
not-indexed or in case I have whole notes and numbers as sans.

In source for mkiv I see:

\setupnotes
  [\c!location=\v!page,

... but simple \setupnotes[location=page] does nothing.

Is the work still in progress or am I missing something?

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

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


Re: [NTG-context] footnotes setup

2012-03-19 Thread Wolfgang Schuster

Am 18.03.2012 um 23:10 schrieb Alan Braslau:

 On Sun, 18 Mar 2012 21:59:17 +0100
 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:
 
 2. Many of the \define… and \setup… commands are now auto generated
   from \installcommandhandler which generates only one setup-command
   which can be used for global (i.e. \setup…[..,..=..,..]) and local
   (i.e. \setup…[…][..,..=..,..]) settings.
 
 Thank you Wolfgang for this explanation.
 
 Do you mean: global (i.e. \define…[..,..=..,..] and local
 (i.e. \setup…[…][..,..=..,..]) settings?

No, I meant with \setupheads[style=bold] you can change the font of each
heading and with \setuphead[section][style=italic] you change only the font
for section. As you can see we have a plural and a singular form of the command.

With the new system to generate the setup commands we have only
\setuphead which handles bot cases.

 For backward
 compatibility you can find things like this: \let\setupnotes\setupnote
 
 OK, but is this a good idea?
 I thought that mkii is kept around for backward compatibility
 and that mkiv takes the liberty to rationalize the syntax,
 sometimes sacrificing backwards compatibility in order not to be
 encumbered with inconsistent syntax, whenever possible.
 
 Indeed, this sometimes generates much discussion on the mailing list
 when we discover that our favorite command has been removed
 or renamed - a good way of testing to see if we are active and alert. :)

It’s better to promote the new commands but we should take time
until the old variants vanish because we have to get used to them.

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

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


Re: [NTG-context] new footnotes

2012-03-19 Thread Wolfgang Schuster

Am 19.03.2012 um 08:55 schrieb Honza Hejzl:

 Hello,
 
 I have tested those „new“ commands for footnotes and it seems some of
 them don't work properly. I like footnotes' numbers aligned to the
 left side of the main text. On wiki is:
 
 \setupnotation[footnote][location=left,width=1cm]
 \setupnote[footnote][location=page,numbercommand=]
 
 This simply does not work. I have combined location, alternative and
 page parameter in both commands, \setupnotation as well as \setupnote,
 nothing works now for me. The second bad thing is it ignores my
 numbercommands. It was easy to use it before when I needed numbers as
 not-indexed or in case I have whole notes and numbers as sans.

The “location” key for \setupnotation has changed to “alternative” and
the “numbercommand” key belongs also to \setupnotation.

 In source for mkiv I see:
 
 \setupnotes
  [\c!location=\v!page,
 
 ... but simple \setupnotes[location=page] does nothing.

Why should this change something when it’s already the default setting,
\setupnotes[location=page] does only mean to place the footnote block
at the bottom of the page.

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

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


Re: [NTG-context] footnotes setup

2012-03-18 Thread Alan Braslau
On Sun, 18 Mar 2012 07:56:30 +0100
Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 
 Am 17.03.2012 um 20:38 schrieb Honza Hejzl:
 
  Hi,
  
  I have installed the last standalone version from contextgarden and
  oops, my (few days) old file does not work properly. My old setup
  of footnotes was like:
  
  \setupfootnotedefinition[loaction=page...]
  \setupfootnotes[bodyfontsize=8pt, style=\ss...]
  
  Now the context does not understand to that. So I am trying to set
  up footnotes with \setupnote[footnote] but it seems nothing works.
  I am not able to use location=serried, location=page, style and so
  on... Is it connected with some general update? :o(
 
 The command \setupnotedefinition (where \setupfootnotedefinition is a
 shortcut for \setupnotedefinition[footnote]) is now \setupnotation
 and “location=serried” is now “alternative=serried”. The \setupnote
 command (\setupfootnotes is \setupnote[footnote]) has only a
 “bodyfont” key which accepts “{8pt,sans}” as argument but not
 “bodyfontsize” key and style is only available for \setupnotation
 (but as you saw you can add it to bodyfont).
 
 Wolfgang


Looking at strc-not.mkvi and from your explanations above
it is still not clear to me how to use the new footnote definitions.
We have \setupnotedefinition
(with \setupfootnotedefinition=\setupnotedefinition[footnote]),
\setupnote (with \setupfootnotes=\setupnote[footnote]),
also \setupnotes (=\setupnote ?)
Is there any difference between the singular and the plural forms?
Also, what parameters are accepted? (I see % not all make sense here
in strc-not.mkvi)

http://wiki.contextgarden.net/Footnotes seems confused (ToDo).

In particular, I am still trying to get
next=\autoinsertnextspace
to make \startfootnote\stopfootnote work correctly...

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

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

Re: [NTG-context] footnotes setup

2012-03-18 Thread Steffen Wolfrum

Am 18.03.2012 um 13:14 schrieb Alan Braslau:

 On Sun, 18 Mar 2012 07:56:30 +0100
 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:
 
 
 Am 17.03.2012 um 20:38 schrieb Honza Hejzl:
 
 Hi,
 
 I have installed the last standalone version from contextgarden and
 oops, my (few days) old file does not work properly. My old setup
 of footnotes was like:
 
 \setupfootnotedefinition[loaction=page...]
 \setupfootnotes[bodyfontsize=8pt, style=\ss...]
 
 Now the context does not understand to that. So I am trying to set
 up footnotes with \setupnote[footnote] but it seems nothing works.
 I am not able to use location=serried, location=page, style and so
 on... Is it connected with some general update? :o(
 
 The command \setupnotedefinition (where \setupfootnotedefinition is a
 shortcut for \setupnotedefinition[footnote]) is now \setupnotation
 and “location=serried” is now “alternative=serried”. The \setupnote
 command (\setupfootnotes is \setupnote[footnote]) has only a
 “bodyfont” key which accepts “{8pt,sans}” as argument but not
 “bodyfontsize” key and style is only available for \setupnotation
 (but as you saw you can add it to bodyfont).
 
 Wolfgang
 
 
 Looking at strc-not.mkvi and from your explanations above
 it is still not clear to me how to use the new footnote definitions.
 We have \setupnotedefinition
 (with \setupfootnotedefinition=\setupnotedefinition[footnote]),
 \setupnote (with \setupfootnotes=\setupnote[footnote]),
 also \setupnotes (=\setupnote ?)
 Is there any difference between the singular and the plural forms?
 Also, what parameters are accepted? (I see % not all make sense here
 in strc-not.mkvi)
 
 http://wiki.contextgarden.net/Footnotes seems confused (ToDo).
 
 In particular, I am still trying to get
 next=\autoinsertnextspace
 to make \startfootnote\stopfootnote work correctly...


Footnotes are not yet fixed (due to Hans' flue ...)
So it is probably in vain trying to make sense of the current state of the 
footnote mechanism.

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

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


Re: [NTG-context] footnotes setup

2012-03-18 Thread Wolfgang Schuster

Am 18.03.2012 um 13:14 schrieb Alan Braslau:

 On Sun, 18 Mar 2012 07:56:30 +0100
 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:
 
 
 Am 17.03.2012 um 20:38 schrieb Honza Hejzl:
 
 Hi,
 
 I have installed the last standalone version from contextgarden and
 oops, my (few days) old file does not work properly. My old setup
 of footnotes was like:
 
 \setupfootnotedefinition[loaction=page...]
 \setupfootnotes[bodyfontsize=8pt, style=\ss...]
 
 Now the context does not understand to that. So I am trying to set
 up footnotes with \setupnote[footnote] but it seems nothing works.
 I am not able to use location=serried, location=page, style and so
 on... Is it connected with some general update? :o(
 
 The command \setupnotedefinition (where \setupfootnotedefinition is a
 shortcut for \setupnotedefinition[footnote]) is now \setupnotation
 and “location=serried” is now “alternative=serried”. The \setupnote
 command (\setupfootnotes is \setupnote[footnote]) has only a
 “bodyfont” key which accepts “{8pt,sans}” as argument but not
 “bodyfontsize” key and style is only available for \setupnotation
 (but as you saw you can add it to bodyfont).
 
 Wolfgang
 
 
 Looking at strc-not.mkvi and from your explanations above
 it is still not clear to me how to use the new footnote definitions.
 We have \setupnotedefinition
 (with \setupfootnotedefinition=\setupnotedefinition[footnote]),
 \setupnote (with \setupfootnotes=\setupnote[footnote]),
 also \setupnotes (=\setupnote ?)
 Is there any difference between the singular and the plural forms?
 Also, what parameters are accepted? (I see % not all make sense here
 in strc-not.mkvi)

1. The \setupnotedefinition was replaced with \setupnotation

2. Many of the \define… and \setup… commands are now auto generated
   from \installcommandhandler which generates only one setup-command
   which can be used for global (i.e. \setup…[..,..=..,..]) and local
   (i.e. \setup…[…][..,..=..,..]) settings. For backward compatibility you
   can find things like this: \let\setupnotes\setupnote

3. The argument are same as before (with a few changes)

 http://wiki.contextgarden.net/Footnotes seems confused (ToDo).
 
 In particular, I am still trying to get
 next=\autoinsertnextspace
 to make \startfootnote\stopfootnote work correctly…

Large parts of the code have been rewritten and the next key wasn’t added yet.

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

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


Re: [NTG-context] footnotes setup

2012-03-18 Thread Alan Braslau
On Sun, 18 Mar 2012 21:59:17 +0100
Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 2. Many of the \define… and \setup… commands are now auto generated
from \installcommandhandler which generates only one setup-command
which can be used for global (i.e. \setup…[..,..=..,..]) and local
(i.e. \setup…[…][..,..=..,..]) settings.

Thank you Wolfgang for this explanation.

Do you mean: global (i.e. \define…[..,..=..,..] and local
(i.e. \setup…[…][..,..=..,..]) settings?

 For backward
 compatibility you can find things like this: \let\setupnotes\setupnote

OK, but is this a good idea?
I thought that mkii is kept around for backward compatibility
and that mkiv takes the liberty to rationalize the syntax,
sometimes sacrificing backwards compatibility in order not to be
encumbered with inconsistent syntax, whenever possible.

Indeed, this sometimes generates much discussion on the mailing list
when we discover that our favorite command has been removed
or renamed - a good way of testing to see if we are active and alert. :)

Alan

-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] footnote mechanism broken (3)

2012-01-14 Thread Wolfgang Schuster

Am 13.01.2012 um 12:17 schrieb Steffen Wolfrum:

 
 Am 13.01.2012 um 11:38 schrieb luigi scarso:
 
 On Fri, Jan 13, 2012 at 11:01 AM, Steffen Wolfrum cont...@st.estfiles.de 
 wrote:
 
 This one is even more disturbing:
 
 Just by setting the note's color to green, each footnote is set on a single 
 page!!!
 
 \setupnote[footnote][textcolor=green]% - without this line the notes are 
 set right
 
 \starttext
 \dorecurse{10}{\input ward\footnote{just one line. a test footnote. just one 
 line. a test footnote.}}
 \stoptext
 
 I don't use footnotes at all, so I can say if it's a bug or not, but this is 
 ok
 \setupnotes[textcolor=green]
 
 \starttext
 \dorecurse{10}{\input ward\footnote{just one line. a test footnote. just one 
 line. a test footnote.}}
 \stoptext
 
 I assumed \setupnote[footnote][textcolor=green] is the recommended and 
 correct way to do,
 as I found it in an example from Wolfgang (December 2011):

\setupnotes changes the values of all note (footnote, endnote etc.) while 
\setupnote changes
only the values of the given note type.

I sent a fix for the bug with the wrong placement of the footnote to the dev 
list.

Wolfgang


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

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


Re: [NTG-context] footnote mechanism broken (3)

2012-01-13 Thread luigi scarso
On Fri, Jan 13, 2012 at 11:01 AM, Steffen Wolfrum cont...@st.estfiles.dewrote:


 This one is even more disturbing:

 Just by setting the note's color to green, each footnote is set on a
 single page!!!


 \setupnote[footnote][textcolor=green]% - without this line the notes are
 set right

 \starttext
 \dorecurse{10}{\input ward\footnote{just one line. a test footnote. just
 one line. a test footnote.}}
 \stoptext



I don't use footnotes at all, so I can say if it's a bug or not, but this
is ok
\setupnotes[textcolor=green]

\starttext
\dorecurse{10}{\input ward\footnote{just one line. a test footnote. just
one line. a test footnote.}}
\stoptext

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

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

Re: [NTG-context] footnote mechanism broken (3)

2012-01-13 Thread Steffen Wolfrum

Am 13.01.2012 um 11:38 schrieb luigi scarso:

 
 
 On Fri, Jan 13, 2012 at 11:01 AM, Steffen Wolfrum cont...@st.estfiles.de 
 wrote:
 
 This one is even more disturbing:
 
 Just by setting the note's color to green, each footnote is set on a single 
 page!!!
 
 
 \setupnote[footnote][textcolor=green]% - without this line the notes are set 
 right
 
 \starttext
 \dorecurse{10}{\input ward\footnote{just one line. a test footnote. just one 
 line. a test footnote.}}
 \stoptext
 
 
 
 I don't use footnotes at all, so I can say if it's a bug or not, but this is 
 ok
 \setupnotes[textcolor=green]
 
 \starttext
 \dorecurse{10}{\input ward\footnote{just one line. a test footnote. just one 
 line. a test footnote.}}
 \stoptext





I assumed \setupnote[footnote][textcolor=green] is the recommended and 
correct way to do,
as I found it in an example from Wolfgang (December 2011):

Am 01.12.2011 um 22:40 schrieb Wolfgang Schuster:

 ...
 \setupnote
  [footnote]
  [textstyle=italic,
   textcolor=green,
   textcommand=\inframed] % default: \high
 
 \starttext
 Hi there!\footnote{I’m a footnote.}
 \stoptext



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

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


Re: [NTG-context] footnote mechanism broken (3)

2012-01-13 Thread luigi scarso
On Fri, Jan 13, 2012 at 12:17 PM, Steffen Wolfrum cont...@st.estfiles.dewrote:


 Am 13.01.2012 um 11:38 schrieb luigi scarso:

 
 
  On Fri, Jan 13, 2012 at 11:01 AM, Steffen Wolfrum 
 cont...@st.estfiles.de wrote:
 
  This one is even more disturbing:
 
  Just by setting the note's color to green, each footnote is set on a
 single page!!!
 
 
  \setupnote[footnote][textcolor=green]% - without this line the notes
 are set right
 
  \starttext
  \dorecurse{10}{\input ward\footnote{just one line. a test footnote. just
 one line. a test footnote.}}
  \stoptext
 
 
 
  I don't use footnotes at all, so I can say if it's a bug or not, but
 this is ok
  \setupnotes[textcolor=green]
 
  \starttext
  \dorecurse{10}{\input ward\footnote{just one line. a test footnote. just
 one line. a test footnote.}}
  \stoptext





 I assumed \setupnote[footnote][textcolor=green] is the recommended and
 correct way to do,
 as I found it in an example from Wolfgang (December 2011):

 Am 01.12.2011 um 22:40 schrieb Wolfgang Schuster:

  ...
  \setupnote
   [footnote]
   [textstyle=italic,
textcolor=green,
textcommand=\inframed] % default: \high
 
  \starttext
  Hi there!\footnote{I’m a footnote.}
  \stoptext

 Yes, but at least \setupnotes works
as temporary solution --- taht to say , can be a bug.
It doesn't seem that \setupnotes is deprecated, btw.

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

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

Re: [NTG-context] Fwd: Re: [off-list] Rotated footnotes?

2010-02-14 Thread Steffen Wolfrum

Am 11.02.2010 um 13:52 schrieb Hans Hagen:

 
 
  Original Message 
 Subject: Re: [off-list] Rotated footnotes?
 Date: Thu, 11 Feb 2010 11:30:00 +0100
 From: Taco Hoekwater t...@elvenkind.com
 To: Steffen Wolfrum cont...@post.werksatz.com, Hans Hagen pra...@wxs.nl
 
 Taco Hoekwater wrote:
 Steffen Wolfrum wrote:
 Am 11.02.2010 um 10:07 schrieb Taco Hoekwater:
 
 Steffen Wolfrum wrote:
 Hi Taco,
 there really is no clean way to get a rotated figure/label/footnote
 page?
 Not that I know of, no. Unless you would consider actually rotating the
 entire page 90 degrees a solution?
 
 No, the actual page (width, height, position of pagenumber/header)
 sould be the same.
 It should be as shown in my faked example ... only in a right way.
 
 Perhaps Hans can come up with a method for the \localfootnotes to use
 (and update) the global footnote number. The rest of my hack is a ugly,
 but functional. Hans?
 
 new beta ... some fixes to footnotes (automigrate works with local now) ... 
 also lastcolumn fix (might break something else, not sure about that yet)
 
 \automigrateinserts
 
 \starttext
 
 \setupnotes[continue=yes]
 
 \input tufte
 
 \input tufte \footnote{oeps}
 
 \startstandardmakeup
\setuptabulate[before=,after=]
\rotate [rotation=90] \bgroup \vbox to \textwidth \bgroup
\hsize\textheight
\startlocalnotes[footnote]
\placefigure [fixed] {} {
\starttabulate
\NC test \footnote{\input tufte } \NC \input tufte \NC \NR
\NC test \NC \input tufte \NC \NR
\stoptabulate
}
\vfill
\strut
\placelocalnotes[footnote]
\stoplocalnotes
\egroup \egroup
 \stopstandardmakeup
 
 \input tufte \footnote{oeps}
 
 \starttabulate
\NC test \footnote{\input tufte } \NC \input tufte \NC \NR
\NC test \NC \input tufte \NC \NR
 \stoptabulate
 
 \stoptext



Did not yet test it in a real project ... but your example looks great.

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

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


[NTG-context] Fwd: Re: [off-list] Rotated footnotes?

2010-02-11 Thread Hans Hagen



 Original Message 
Subject: Re: [off-list] Rotated footnotes?
Date: Thu, 11 Feb 2010 11:30:00 +0100
From: Taco Hoekwater t...@elvenkind.com
To: Steffen Wolfrum cont...@post.werksatz.com, Hans Hagen pra...@wxs.nl

Taco Hoekwater wrote:

Steffen Wolfrum wrote:

Am 11.02.2010 um 10:07 schrieb Taco Hoekwater:


Steffen Wolfrum wrote:

Hi Taco,
there really is no clean way to get a rotated figure/label/footnote
page?

Not that I know of, no. Unless you would consider actually rotating the
entire page 90 degrees a solution?


No, the actual page (width, height, position of pagenumber/header)
sould be the same.
It should be as shown in my faked example ... only in a right way.


Perhaps Hans can come up with a method for the \localfootnotes to use
(and update) the global footnote number. The rest of my hack is a ugly,
but functional. Hans?


new beta ... some fixes to footnotes (automigrate works with local now) 
... also lastcolumn fix (might break something else, not sure about that 
yet)


\automigrateinserts

\starttext

\setupnotes[continue=yes]

\input tufte

\input tufte \footnote{oeps}

\startstandardmakeup
\setuptabulate[before=,after=]
\rotate [rotation=90] \bgroup \vbox to \textwidth \bgroup
\hsize\textheight
\startlocalnotes[footnote]
\placefigure [fixed] {} {
\starttabulate
\NC test \footnote{\input tufte } \NC \input tufte \NC \NR
\NC test \NC \input tufte \NC \NR
\stoptabulate
}
\vfill
\strut
\placelocalnotes[footnote]
\stoplocalnotes
\egroup \egroup
\stopstandardmakeup

\input tufte \footnote{oeps}

\starttabulate
\NC test \footnote{\input tufte } \NC \input tufte \NC \NR
\NC test \NC \input tufte \NC \NR
\stoptabulate

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

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


Re: [NTG-context] endnotes grouped by chapter in a separate chapter

2009-01-26 Thread Hans Hagen

Jesse Alama wrote:

Just a re-ask (I've not been able to figure this out yet) for the
ConTeXt experts.


in mkii there ar elimitations with respect to endnotes as they are 
collected in boxes like any note


in mkiv they can also be collected in lists and then can be filtered and 
reformatted (this is present in the experimental fotmat but not that 
tested)



Jesse Alama al...@stanford.edu writes:


I'd like to have endnotes placed in an appendix.  I would like that
appendix not to be one large list of notes; instead, I would like the
notes to be grouped into sections within the appendix.  Currently, I'm
aware of 


  \setupnotes[endnote][way=bychapter]

and

  \placenotes[endnote]

This setup produces a list of notes labeled in ascending numerical
order, with numbering reset by chapters.

 Appendix A: Notes

 1 Note from chapter 1.
 2 Second note from chapter 1.
 3 Third note from chaper 1.
 1 First note from chapter 2.
 2 Second note from chapter 2.
 1 First note from chapter 3
 ...

I'd like to have the endnotes grouped by chapter and displayed something
like this

  Appendix A: Notes

  Notes from Chapter 1: My Great Chapter

  1 Note from chapter 1.
  2 Second note from chapter 1.
  3 Third note from chaper 1.

  Notes from Chapter 2: My Second Great Chapter  


  1 First note from chapter 2.
  2 Second note from chapter 2.

  Notes from Chapter 3: ...

  ...

I've looked through the mailing list and the wiki, but I've not been
able to find out how to accomplish what I'm after.  Any ideas?

Thanks,

Jesse





--

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

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


Re: [NTG-context] endnotes grouped by chapter in a separate chapter

2009-01-25 Thread Jesse Alama
Just a re-ask (I've not been able to figure this out yet) for the
ConTeXt experts.

Jesse Alama al...@stanford.edu writes:

 I'd like to have endnotes placed in an appendix.  I would like that
 appendix not to be one large list of notes; instead, I would like the
 notes to be grouped into sections within the appendix.  Currently, I'm
 aware of 

   \setupnotes[endnote][way=bychapter]

 and

   \placenotes[endnote]

 This setup produces a list of notes labeled in ascending numerical
 order, with numbering reset by chapters.

  Appendix A: Notes

  1 Note from chapter 1.
  2 Second note from chapter 1.
  3 Third note from chaper 1.
  1 First note from chapter 2.
  2 Second note from chapter 2.
  1 First note from chapter 3
  ...

 I'd like to have the endnotes grouped by chapter and displayed something
 like this

   Appendix A: Notes

   Notes from Chapter 1: My Great Chapter

   1 Note from chapter 1.
   2 Second note from chapter 1.
   3 Third note from chaper 1.

   Notes from Chapter 2: My Second Great Chapter  

   1 First note from chapter 2.
   2 Second note from chapter 2.

   Notes from Chapter 3: ...

   ...

 I've looked through the mailing list and the wiki, but I've not been
 able to find out how to accomplish what I'm after.  Any ideas?

 Thanks,

 Jesse

-- 
Jesse Alama (al...@stanford.edu)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] \setupnotes (Undefined control sequence ??)

2007-11-14 Thread Steffen Wolfrum
Hi,

is the 'split' parameter not supported anymore?


! Undefined control sequence.
l.6 \setupnotes
[footnote][split=strict]
?


Steffen

ConTeXt  ver: 2007.08.07 12:43 MKII  fmt: 2007.11.14  int: english/ 
english

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

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


Re: [NTG-context] \setupnotes (Undefined control sequence ??)

2007-11-14 Thread Steffen Wolfrum
... seems to exist only in the singular form, right?

Am 14.11.2007 um 09:28 schrieb Steffen Wolfrum:

 Hi,

 is the 'split' parameter not supported anymore?


 ! Undefined control sequence.
 l.6 \setupnotes
 [footnote][split=strict]
 ?



\setupnote[footnote][split=strict]% works!


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

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


Re: [NTG-context] Line spacing in footnotes

2007-03-13 Thread Aditya Mahajan
On Tue, 13 Mar 2007, Oliver Buerschaper wrote:

 is there a way to influence the linespacing of the footnote block?
 I'd like to typeset it in 9pt/11pt while the main text is set to
 12pt/
 14.5pt (using an OpenType font) ... Any help highly appreciated!

 If you just want a smaller font size

 \setupnotedefinition
[footnote]
[style=small]

 or if you also want to set interline space

 \setupnotedefinition
[footnote]
[before={\switchtobodyfont[9pt]\setupinterlinespace},
 after{\endgraf}]

 You can also pass parameters to \setupinterlinespace to get the
 precise spacing that you want.

 Thanks for your quick reply, Aditya. I'm afraid this doesn't quite
 work as expected ... the line spacing isn't changed at all here :-
 ( This is my setup:

 \setupnote
   [footnote]
   [before=, % remove blank line before
 %  bodyfont=9pt,
command=, % this disables the superscript
n=0] % footnote block as a single paragraph
 \setupnotedefinition
   [footnote]
   [location=serried,
before={\switchtobodyfont[9pt]\setupinterlinespace[line=11pt]},
after={\endgraf},
distance=1ex,
headstyle=\ss\bf]


If the only place you use 9pt font is footnotes then something like 
this should also work

\setupbodyfontenvironment[9pt][interlinespace=11pt]


Since you use n=0, you can also do

  \setupnote
 [footnote]
 [before={\setupinterlinespace[line=11pt]},
  bodyfont=9pt,
  command=, % this disables the superscript
  n=0] % footnote block as a single paragraph

\setupnotedefinition
 [footnote]
 [location=serried,
  distance=1ex,
  headstyle=\ss\bf]


 Also I'm somewhat puzzled ... why put these before and after commands
 in \setupnotedefinition rather than \setupnote?

Since you are working with line=11pt it does not make a difference. 
I was thinking of line=1.2ex (or something) where it matters what is 
the current font size.

If n=0 is not set, and you use absolute font sizes, it will work in 
both cases.

With n=0, things are a bit different. n=0 uses \starttextnotes instead 
of \setcolumnnotes and both work differently. So, with n=0, you need 
it in setupnotes.

 As far as I can tell
 \setupnote already has a bodyfont option (but none for the line
 spacing)

It is not too hard to add. For fun, try

\def\setnotebodyfont
{\switchtobodyfont[9pt]\setupinterlinespace[line=50pt]}

with default settings. (this of course is not a good idea, especially 
in this case, when there are other workarounds)


 ... also I always thought that \setupnotedefinition refers
 to a description and controls the way a single footnote is typeset
 while \setupnote is supposed to influence the whole block

Yes. What I reasoned was that interline space should be set for each 
footnote.

 ... On top of that does the \endgraf command conflict with the n=0 
 option in \setupnote?

Forget about what I said earlier. n=0 uses a different setup 
altogether.


Hans, does it make sense to interface interlinespace in footnotes? Or 
add a \everyfootnotebodyfontswitch token?

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Footnote Follies

2005-07-19 Thread Hans Hagen

John R. Culleton wrote:


Just finished a highly formatted job for a customer. Something
occurred that isn't supposed to happen with Tex. The reference
number for a footnote was on page a and the footnote itself was
on page a+1. As it happened the footnote was placed at the end
of a paragraph and the paragraph ended in a left parens.  So I
had:
blah blah blah.)\footnote{text of note} 


Also \goodbreak and \clubpenalty 1 in combination still do
not prevent all orphan (club) lines. Perhaps there is a magic Context
incantation that I missed. 
 


\setupnotes[footnote][split=strict]

options are: tolerant strict verystrick 'a number'

Hans


--

-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context