Re: [NTG-context] notes in the margin

2019-10-04 Thread Henning Hraban Ramm
Hi Andres,
I have a working solution and another approach by Wolfgang:

This is not a MWE, and it contains probably a lot of unnecessary stuff.
Since Hans fixed some problems since, it might have become much easier.
E.g. I seldom need my FNVOffset correction any more.


% I thought I could setup those two together, but it didn’t work
\setupmargindata[inmargin][
  location=right,
  stack=continue,
  align=flushright,
  style={\switchtobodyfont[6pt]},
]
\setupmargindata[inouter][
  location=right,
  stack=continue,
  align=flushright,
  style={\switchtobodyfont[6pt]},
]

\def\FNVOffset{0} % Negative vertical offset of footnotes in lines
% Redefine this as necessary (e.g. if long footnotes overflow into the footer)

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

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

\def\FNo#1{{#1~}} %\crlf\gobblespacetokens}}
% Distance/glue after number or before note text never disappears :(

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

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

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


% different approach:
\definecounter[Mnote][way=bychapter,prefix=no]
\def\mnote#1{%
  \incrementcounter[Mnote]%
  \high{\color[mnotemark]{\convertedcounter[Mnote]}}%
  \inouter{{%
\FootnoteFont%
\color[mnotemark]{\convertedcounter[Mnote]}\crlf #1\blank[yes]}}%
}
%

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD


> Am 2019-10-04 um 03:32 schrieb Andres Conrado Montoya 
> :
> 
> I've been tinkering with this problem. It's kind of frustrating not having a 
> right solution for this. 
> After trying and failing to the last solution published by Hraban on 
> 2018-02-12, I tried to implement my own approach, from the other way around, 
> I mean: not trying to implement notes as marginal material, but to implement 
> the marginalia as some type of notes. A different type, apart from footnotes, 
> with their own counter, etc.
> 
> Below, a MWE, with some caveats:. 
> 1. This is a poor quality hack. I'm not a developer.
> 2. If notes are too long, they clash with each other. I tried to understand 
> the options that would allow me to move them up or down, according to the 
> Wiki (https://wiki.contextgarden.net/Command/inmargin), but they don't seem 
> to do anything, or I don't understand how to work with them. But if there is 
> actually a way to manually instruct \inmargin to move up or down, it should 
> be easy to make it work as an optional third argument, for example. 
> 3. The counter introduces some horizontal space that I cant manage to remove 
> except by introducing manual negative \hspace. The MWE doesn't include that 
> space, to display the isse. 
> 4.  There are probably a ton of issues I have not thought about, but this 
> seems to work for this project I'm working on, at least. 
> 
> %%% Start MWE
> 
> \setuplayout[
> topspace=0.722in,
> header=0.311in,
> footer=0.622in,
> width=4.211in,
> height=9.622in,
> backspace=1.311in,
> rightmargin=1.8in,
> margindistance=24pt
> ]
> \definecounter[marginales][way=bytext,prefix=no]
> \def\romanMarginales{\convertnumber{r}{\rawcountervalue[marginales]}}
> \def\marginal{\dosingleempty\doMarginal}
> \def\doMarginal[#1]#2{%
>   \incrementnumber[marginales]
>   \iffirstargument
> \high{\romanMarginales}\inouter[#1]{\romanMarginales.\ #2}
>   \else
> \high{\romanMarginales}\inouter{\romanMarginales.\ #2}
>   \fi
> }
> 
> \starttext
> \dorecurse{6}{\input weisman And so on, and so on\marginal{This is a test, 
> with some words and some more words.}.\par \input thuan\par}
> \stoptext
> 
> %%% Stop MWE
> 
> Andrés Conrado Montoya
> Andi Kú
> andresconr...@gmail.com
> http://sesentaycuatro.com
> http://messier87.com
> http://chiquitico.org
> 
> Los fines no justifican los medios, porque la medida verdadera de nuestro 
> carácter está dada por los medios que estamos dispuestos a utilizar, no por 
> los fines que proclamamos.
> ---

Re: [NTG-context] Place footnote after reference

2019-07-23 Thread Huseyin Özoguz
Thank Taco, that worked in the example, of course the general problem 
stays (thanks to Rik Kabel, too).


But with your suggestion I dicovered a interesting behaviour, see this 
example:


\showgrid
\setupnote[footnote][before=]
\starttext
\input tufte
\input tufte \footnote{Footnote 1}
\input tufte
\input tufte \dorecurse{35}{Blub or what }\footnote{Footnote 2} That 
does\footnote{Footnote 3} only\footnote{Footnote 4} work in special cases.

\stoptext

Now Context indeed sets the third and fourth footnote on the second 
page, but leaves the reference to them on the last line of the first 
page. This is exactly the behaviour I want in general. Could we force that?


/For testing: /If we add another footnote in the example above, it fails 
again - despite of the possibility to just typeset the lines exactly 
like in the example above, just move the footnotes on the next page, not 
the references - here might be some logic-mistake at work, because there 
should be no difference in my opinion between the examples:


\showgrid
\setupnote[footnote][before=]
\starttext
\input tufte
\input tufte \footnote{Footnote 1}
\input tufte
\input tufte \footnote{Footnote extra} \dorecurse{35}{Blub or what 
}\footnote{Footnote 2} That does\footnote{Footnote 3} 
only\footnote{Footnote 4} work in special cases.

\stoptext

--
Huseyin Özoguz

E-Mail: h.oezo...@mmnetz.de

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

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


Re: [NTG-context] Place footnote after reference

2019-07-23 Thread Taco Hoekwater
Hi,

> On 22 Jul 2019, at 18:34, Huseyin Özoguz  wrote:
> 
> 
> The problem is, that Context (or Tex) skips lines, which is poor typesetting, 
> too many even than necessary in some cases, and that is not suitable. 

ConTeXt does not skip too much in this example, it the second footnote
will just not fit with the (default) parameter set ConTeXt is using.

If the footnote 2 would be on the first page, that is an extra line for
the reference line, and an extra line for the actual note. There is 
an implicit \blank before the footnote rule, and that is a third ‘line’.

Since there only is 2 lines (and a bit) of space available, it will not fit.

Disable the default \blank with:

  \setupnote[footnote][before=]

and both notes will fit on the first page.

Best wishes,
Taco


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Place footnote after reference

2019-07-22 Thread Wolfgang Schuster

Alan Braslau schrieb am 22.07.2019 um 16:37:

I do not know the details, but take a look at the following keywords
(which do the *opposite* of what you are seeking):

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


The scope setting isn't used in the current beta and the code is 
commented in the source.


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] Place footnote after reference

2019-07-22 Thread Rik Kabel

On 7/22/2019 12:34, Huseyin Özoguz wrote:


Hi,


But I admit that I do not understand the problem all that well. I have
never run into a situation where I want the footnote to explicitly
*not* appear with its reference (except in endnotes). If my grid
settings were that specific, I would be using endnotes anyway.


I have this problem everywhere in a 400-page project with hundrets of 
footnotes and no special grid settings at all. How would you solve 
this situation (my minexamle):


\showgrid
\starttext
\input tufte
\input tufte \footnote{Footnote 1}
\input tufte
\input tufte \dorecurse{35}{Blub or what }\footnote{Footnote 2} \input tufte
\stoptext

The problem is, that Context (or Tex) skips lines, which is poor typesetting, 
too many even than necessary in some cases, and that is not suitable. Endnotes 
are no solutions aswell, I need footnotes. So the solution to have reference 
and footnote not on the same page seems the least bad workaround, if possible 
at all.

Thanks
Huseyin

--
Huseyin Özoguz

E-Mail:h.oezo...@mmnetz.de


Have you tried \setupnote[footnote][before={\blank[none]}] ?

--

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] Place footnote after reference

2019-07-22 Thread Alan Braslau
On Mon, 22 Jul 2019 16:27:45 +0200
Denis Maier  wrote:

> llI don't know a solution for this, but would be very interested.
> With LaTeX you can use the `atbegshi`-package that gives you a
> command ` \AtBeginShipoutNext`:
> 
> ```
> \footnotemark
> \clearpage
> \AtBeginShipoutNext{\footnotetext{Text.}}
> ```
> 
> This only works for individual footnotes, but it's already quite
> useful. Is there something similar for ConTeXt?
> I can think of at least three situations:
> 
> 1. Put footnote text to the next page for a single footnote.
> 2. Allow footnote text on next page for all footnotes.
> 3. Allow footnote text on next page of a double page spread  for all
> footnotes.
> 
> Best,
> Denis
> 
> 
> 
> 
> 
> 
> Am Mo., 22. Juli 2019 um 08:43 Uhr schrieb Huseyin Özoguz <
> h.oezo...@mmnetz.de>:
> 
> > Hello,
> >
> > ConText seems to try to place the footnote on the same page as the
> > footenotereference. See this example:
> >
> > \showgrid
> > \starttext
> > \input tufte
> > \input tufte \footnote{Footnote 1}
> > \input tufte
> > \input tufte \dorecurse{35}{Blub or what }\footnote{Footnote 2}
> > \input tufte
> > \stoptext
> >
> > But that results into one (or two?) fewer line on the first page.
> >
> > Is there a possibility to implement the following rule? -> NEVER
> > move lines onto the next page to achieve footnote and reference
> > beging on the same page. If necessary set the footnote on the next
> > page, after the reference.
> >
> > Or would you suggest a better solution? I have a book with
> > grid=yes, so the default-setting is not suitable.
> >
> > Thanks
> > Huseyin


I do not know the details, but take a look at the following keywords
(which do the *opposite* of what you are seeking):

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

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

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


Re: [NTG-context] footnotes in columns not working

2019-07-22 Thread Taco Hoekwater
Hi,

I cannot offer a proper fix, but I can testify that there are serious problems 
with footnotes in the latest betas.
The default subsystem for columns has been rewritten, but it still has some 
teething problems with regard to footnotes
and float placement.

While Hans is sorting out the problems, you can get back the old columns code 
with

  \loadmarkfile{page-mul}

somewhere in the setup section of your document.

Best wishes,
Taco


> On 18 Jul 2019, at 14:27, Charles Doherty  wrote:
> 
> 
> Dear Hans,
> 
> I have been typesetting a Newsletter using ConTeXt since 2003. I have updated 
> the programme regularly and made adjustments to my template as needed.
> 
> Following the most recent update I have problems with footnotes in columns. 
> Depending on the number and length of the footnotes I have varied between 
> placing them at the end of each column or as a list at the end of each page 
> using:
> 
> \setupnote[footnote][location=columns]
> 
> or commenting out 
> 
> %\setupnote[footnote][location=columns] 
> 
> to get what I need. In the attached image I had commented out 
> %\setupnote[footnote][location=columns] expecting to get footnotes arranged 
> one beneath the other at the bottom of the page but I get them in two columns 
> and both run off the page.
> 
> Can you help on this?
> 
> I attach an .png of the result.
> 
> Thanks,
> Charlie
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

Taco Hoekwater
Elvenkind BV




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Wrong breaks in footnote for column texts

2019-06-20 Thread Wolfgang Schuster
Am Do., 20. Juni 2019 um 17:00 Uhr schrieb Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com>:

> Hi Hans,
>
> as mentioned a few times by others long footnote entries have problems
> with line breaks.
>
> In mixed columns you get a single line for each entry and in page
> columns the width for the entries is wrong.
>
> \starttext
>
> \dorecurse{2}{\samplefile{dawkins}\footnote{\samplefile{jojomayer}} }
>
> \page
>
> \startmixedcolumns
> \dorecurse{2}{\samplefile{dawkins}\footnote{\samplefile{jojomayer}} }
> \stopmixedcolumns
>
> \page
>
> \setupnote[footnote][alternative=columns,n=2]
>

The setup above shouldn't be part of the example.

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

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


[NTG-context] Wrong breaks in footnote for column texts

2019-06-20 Thread Wolfgang Schuster

Hi Hans,

as mentioned a few times by others long footnote entries have problems 
with line breaks.


In mixed columns you get a single line for each entry and in page 
columns the width for the entries is wrong.


\starttext

\dorecurse{2}{\samplefile{dawkins}\footnote{\samplefile{jojomayer}} }

\page

\startmixedcolumns
\dorecurse{2}{\samplefile{dawkins}\footnote{\samplefile{jojomayer}} }
\stopmixedcolumns

\page

\setupnote[footnote][alternative=columns,n=2]

\startpagecolumns
\dorecurse{2}{\samplefile{dawkins}\footnote{\samplefile{jojomayer}} }
\stoppagecolumns

\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] two (2) questions about footnotes

2019-05-27 Thread Hans Hagen

On 5/27/2019 8:45 AM, Thomas A. Schmitz wrote:

\unexpanded\def\MyRule{\blackrule[width=\textwidth,height=3pt]}
\setupfootnotes[rule=\MyRule]

\starttext
Test1: \index{Adam}Adam.\footnote{Test2: \index{Eve}Eve.}
\page
\placeregister [index]
\stoptext


\setupnote
  [footnote]
  [rule=command,
   rulecommand=\MyRule]


--

-
  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] Spacing between text and footnote line

2019-03-24 Thread Wolfgang Schuster

Huseyin Özoguz schrieb am 24.03.19 um 16:23:
Thank you both, that was my mistake: Instead of copy I wrote: 
"setupnotation" (which I used already), not setupnote.


Btw: The default setup seems to be two lines distance, is that a 
correct understanding?
It’s only a single line but the rule itself adds additional vertical 
space which results in two lines.


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] Spacing between text and footnote line

2019-03-24 Thread Huseyin Özoguz

On 3/24/19 3:50 PM, Huseyin Özoguz wrote:
>/[...] />/Thanks, but that does not work. It only changes the distance between the 
/>/footnote-line and the footnote-text. But I want to manipulate the />/distance above 
the footnote-line: between the (standard) text and the />/footnote-line. /
Hi Huseyin,

it isn’t clear (at least, to me) what you mean with the footnote line
(there is a rule for all footnotes).

I think that the "before" key from \setupnote does exactly what you say
you want: specify the distance between the rule and the main text.

You might use the "before" key in \setupnotation, but that will alter
the space before in all footnotes.

Maybe you might check the i-context.pdf document (on pages 233 and 234)
to check the options for both the \setupnotation (the individual note)
and \setupnote (the notes group). (It comes with the ConTeXt Suite
distribution, tex/texmf-context/tex/context/interface/mkiv/i-context.pdf)

Just in case it might help,

Pablo


Thank you pablo, it was just my mistake, I confused the both. Thanks for 
the reference, I will check it out.


Huseyin

--
Huseyin Özoguz

E-Mail: h.oezo...@mmnetz.de

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

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


Re: [NTG-context] Spacing between text and footnote line

2019-03-24 Thread Huseyin Özoguz
Thank you both, that was my mistake: Instead of copy I wrote: 
"setupnotation" (which I used already), not setupnote.


Btw: The default setup seems to be two lines distance, is that a correct 
understanding?


It works fine, thanks Tomáš!

Huseyin Özoguz

E-Mail: h.oezo...@mmnetz.de

Am 24.03.2019 um 16:02 schrieb Wolfgang Schuster:

Huseyin Özoguz schrieb am 24.03.19 um 15:50:



Hello,

one way could be

\setupnote[footnote][before={\blank[10*big]}]

Best wishes,

Tomáš

Thanks, but that does not work. It only changes the distance between 
the footnote-line and the footnote-text. But I want to manipulate the 
distance above the footnote-line: between the (standard) text and the 
footnote-line.




Can you give a example for this because Tomas solution works for me.

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] Spacing between text and footnote line

2019-03-24 Thread Pablo Rodriguez
On 3/24/19 3:50 PM, Huseyin Özoguz wrote:
> [...]
> Thanks, but that does not work. It only changes the distance between the
> footnote-line and the footnote-text. But I want to manipulate the
> distance above the footnote-line: between the (standard) text and the
> footnote-line.

Hi Huseyin,

it isn’t clear (at least, to me) what you mean with the footnote line
(there is a rule for all footnotes).

I think that the "before" key from \setupnote does exactly what you say
you want: specify the distance between the rule and the main text.

You might use the "before" key in \setupnotation, but that will alter
the space before in all footnotes.

Maybe you might check the i-context.pdf document (on pages 233 and 234)
to check the options for both the \setupnotation (the individual note)
and \setupnote (the notes group). (It comes with the ConTeXt Suite
distribution, tex/texmf-context/tex/context/interface/mkiv/i-context.pdf)

Just in case it might help,

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

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


Re: [NTG-context] Spacing between text and footnote line

2019-03-24 Thread Wolfgang Schuster

Huseyin Özoguz schrieb am 24.03.19 um 15:50:



Hello,

one way could be

\setupnote[footnote][before={\blank[10*big]}]

Best wishes,

Tomáš

Thanks, but that does not work. It only changes the distance between 
the footnote-line and the footnote-text. But I want to manipulate the 
distance above the footnote-line: between the (standard) text and the 
footnote-line.




Can you give a example for this because Tomas solution works for me.

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] Spacing between text and footnote line

2019-03-24 Thread Huseyin Özoguz

Hello,

one way could be

\setupnote[footnote][before={\blank[10*big]}]

Best wishes,

Tomáš

Thanks, but that does not work. It only changes the distance between the 
footnote-line and the footnote-text. But I want to manipulate the 
distance above the footnote-line: between the (standard) text and the 
footnote-line.


Huseyin

--
Huseyin Özoguz

E-Mail: h.oezo...@mmnetz.de

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

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


Re: [NTG-context] Spacing between text and footnote line

2019-03-24 Thread Tomas Hala
Hello,

one way could be 

\setupnote[footnote][before={\blank[10*big]}]

Best wishes,

Tomáš 


Sun, Mar 24, 2019 ve 02:22:34PM +0100 Huseyin Özoguz napsal(a):
# Hello,
# 
# how an I change the distance between the text and the line of the
# footnotes? See this min-example:
# 
# \setuplayout[grid=yes]
# \showgrid
# \starttext
# First sentence.\footnote{Test.}
# \dorecurse{5}{\input knuth}
# \stoptext
# 
# That produces two lines distance between the footnote-line and the
# last line of the text on the first page. How can I reduce or
# increment it?
# 
# Thank you!
# Huseyin
# 
# -- 
# Huseyin Özoguz
# 
# E-Mail: h.oezo...@mmnetz.de
# 
# 
___
# If your question is of interest to others as well, please add an entry to the 
Wiki!
# 
# maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
# webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
# archive  : https://bitbucket.org/phg/context-mirror/commits/
# wiki : http://contextgarden.net
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Footnotes being broken over two pages

2019-02-27 Thread Alan Braslau
On Tue, 26 Feb 2019 01:04:25 +0100
Lars  wrote:

> Hi there,
> 
> I've stumbled upon some behaviour that looks like a bug to me. Sometimes 
> longer footnotes are being broken over two pages. Please see the 
> attached picture:
> 
> As you can see the last footnote on p. 6 is being continued on p. 7. I 
> don't think it's a problem of too many footnote lines on one page as on 
> p. 17 there are more lines and the breaking is in order.
> 
> The code for all links that I create like this is:
> 
> \define\NytAsimov{
> \goto{
> \hyphenatedurl{
> https://www.nytimes.com/1992/04/12/business/technology-a-celebration-of-isaac-asimov.html}}
> [url(https://www.nytimes.com/1992/04/12/business/technology-a-celebration-of-isaac-asimov.html)]
> (Abrufdatum 12.12.2018)}
> 
> The line breaking I only did for readability. In my source all those 
> definitions are in single lines. Does anyone have an idea why this is 
> happening? If you need anything just let me know please.
> 
> Thanks in advance, Lars.
> 

Maybe try

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

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

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


Re: [NTG-context] Footnotes being broken over two pages

2019-02-27 Thread Lars

Hi there,

Am 26/02/2019 um 16:06 schrieb Alan Braslau:

On Tue, 26 Feb 2019 01:04:25 +0100
Lars  wrote:


Hi there,

I've stumbled upon some behaviour that looks like a bug to me. Sometimes
longer footnotes are being broken over two pages. Please see the
attached picture:

As you can see the last footnote on p. 6 is being continued on p. 7. I
don't think it's a problem of too many footnote lines on one page as on
p. 17 there are more lines and the breaking is in order.

The code for all links that I create like this is:

\define\NytAsimov{
\goto{
\hyphenatedurl{
https://www.nytimes.com/1992/04/12/business/technology-a-celebration-of-isaac-asimov.html}}
[url(https://www.nytimes.com/1992/04/12/business/technology-a-celebration-of-isaac-asimov.html)]
(Abrufdatum 12.12.2018)}

The line breaking I only did for readability. In my source all those
definitions are in single lines. Does anyone have an idea why this is
happening? If you need anything just let me know please.

Thanks in advance, Lars.


Maybe try

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

Alan


The text shortened slightly due to correction. After that, the problem 
seems gone. But I will take your solution commented into my doc and will 
try it and report should it occur again.


Thank you!

Lars

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

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


Re: [NTG-context] Footnotes and endnotes

2018-11-18 Thread Axel Kielhorn

> Am 17.11.2018 um 15:43 schrieb Pablo Rodriguez :
> 
> On 11/17/18 1:51 PM, Axel Kielhorn wrote:
>> Hello,
> 
> Hi Axel,
> 
>> I want to show the translator notes in a different way. Right now I
>> have the footnote in green, but the footnote marker in the text does
>> change neither font nor color?> Shouldn’t the marker be green and
>> bold? Setting numberconversion works, but the other options seem to
>> be without effect.
> 
>\setupnote[translaternote][textstyle=\bf, textcolor=green]

With this information I found:

https://wiki.contextgarden.net/Unexpected_behavior#Footnotes:_The_Difference_between_.5Csetupnotation_and_.5Csetupnote

The headcolor in \setupnotation is actually the color of the marker in the note
while the maker in the text is defined with \setupnote.

I guess I have to request edit rights for the garden.
DONE

> 
>> I want to include longer notes as endnotes. I can change the marker
>> shown with the notes to (1) but he marker in the text does not
>> change. Thus you can’t distinguish between a footnote and an
>> endnote.
> 
> As far as I know, left and right arent’t options in \setupnote.

The page mentioned above offers the following solution:

\definenote[commentnote][endnote]  
  \setupnotation[commentnote] [color=red,left={(},right={)}]
  \setupnote [commentnote] [textcommand=\mycommentcommand]
\define[1]\mycommentcommand{\high{\tfxx(#1)}}

Thanks for pointing me in the right direction.

Axel

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

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

Re: [NTG-context] Footnotes and endnotes

2018-11-17 Thread Pablo Rodriguez
On 11/17/18 1:51 PM, Axel Kielhorn wrote:
> Hello,

Hi Axel,

> I want to show the translator notes in a different way. Right now I
> have the footnote in green, but the footnote marker in the text does
> change neither font nor color?> Shouldn’t the marker be green and
> bold? Setting numberconversion works, but the other options seem to
> be without effect.

\setupnote[translaternote][textstyle=\bf, textcolor=green]

> I want to include longer notes as endnotes. I can change the marker
> shown with the notes to (1) but he marker in the text does not
> change. Thus you can’t distinguish between a footnote and an
> endnote.

As far as I know, left and right arent’t options in \setupnote.

> I tried a footnote within a footnote, that didn’t work, should it? (I
> don’t actually need this, I was just curious.)

They don’t work (I wonder what might they be useful for). But Hans or
Wolfgang know better.

> When I define commentnote based on endnote I get the same numbering. 
> How can I either - use different counters for both kind of notes or

I guess you have to avoid defining commentnote based on endnote.

You may always do the following:

\setupnotation
[authornote, endnote, commentnote, footnote, translaterpnote]
[style=bold]

> - print both notes with the same placenotes command, in the right
> order?

Then, place the notes in the right order. But in that case, only using
one kind of notes may be less problematic.

I hope it helps,

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

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

[NTG-context] moving the first line of a page to the previous page

2018-10-09 Thread mf

Hello list,
sometimes ConTeXt moves the (would-be) last line of a page to the next 
page, even when there's room for it at the bottom of a page, before the 
footnotes.


Sometimes i understand why it does so: when the line contains a footnote 
that would increase the footnotes' height, for example; or when you have 
widows or orphans.


But sometimes it happens in an inexplicable way: in some pages there's 
room at the bottom and it keeps the last line, in some other pages 
there's more room (than in the previous case), but it moves the last 
line to the next page anyway.
Even looking at hyphenations, i can't find an explanation fot that 
behaviour.


So i'm looking for a way to prevent ConTeXt from moving the last line to 
the next page.


A solution i found is to insert a \vadjust{\kern -0.5pt} in the 
second-last line of the page. It works -- see the attachments -- but it 
modifies the interline, so it's feasible only for corrections under 1pt.


Another way would be locally shrinking the space before footnotes, but i 
don't know how and when to do it.


Some words about the attachments:

- there are some footnotes and line height setups to resemble the real 
configuration i'm working with


- keep-line-in-page-0.tex is the reference case

- keep-line-in-page-1.tex is the solution with \vadjust{\kern -0.5pt}

Best wishes,
Massimiliano
\definevspacingamount[glueOverFootnotes][18pt plus 18pt minus 6pt]

\setupnotation[
  alternative=serried,
  style=\ss,
  numberstopper=,
  way=bypage,
  distance=1pt,
  location=page]

\setupnote[
  alternative=serried,
  paragraph=yes,
  bodyfont=small,
  inbetween=\penalty1{ }\emdash{}{ }\penalty-100,  % \emdash{}
  location=page,
  before={\blank[glueOverFootnotes]},
  height=10cm]

\definebodyfontenvironment[11pt][interline=12pt]
\setupbodyfont[11pt]

\starttext
\showgrid
Lorem ipsum dolor sit amet, consectetur adipiscing elit.\footnote{a footnote}\par

\blank[12*line,fixed]

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\footnote{another footnote}

\blank[12*line,fixed]

Lorem ipsum dolor sit amet, consectetur adipiscing elit.% \footnote{another
% longer footnote: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
% Ut mattis volutpat elit sit amet fermentum.}

\blank[12*line,fixed]

Quisque vel arcu ut tellus congue vulputate. Praesent nec tortor vitae
nibh elementum semper. Cras sit amet turpis ac quam bibendum interdum.
Orci varius natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus. Maecenas ac mi sed nisl bibendum ultricies.
Nullam ac augue non ex euismod fermentum id quis nulla.
Cras vel lorem aliquet eros maximus interdum nec fermentum ligula.
Cras eu eros nec justo blandit ullamcorper ut et magna.
Curabitur aliquam nunc at pharetra semper.
Pellentesque vel lectus ut diam varius vestibulum. Etiam non varius erat.
Nunc scelerisque, dolor sit amet feugiat vestibulum, nulla erat eleifend
mauris, eget ultricies neque velit non neque. Donec vitae tempus est,
a feugiat magna.

\stoptext
\definevspacingamount[glueOverFootnotes][18pt plus 18pt minus 6pt]

\setupnotation[
  alternative=serried,
  style=\ss,
  numberstopper=,
  way=bypage,
  distance=1pt,
  location=page]

\setupnote[
  alternative=serried,
  paragraph=yes,
  bodyfont=small,
  inbetween=\penalty1{ }\emdash{}{ }\penalty-100,  % \emdash{}
  location=page,
  before={\blank[glueOverFootnotes]},
  height=10cm]

\definebodyfontenvironment[11pt][interline=12pt]
\setupbodyfont[11pt]

\starttext
\showgrid
Lorem ipsum dolor sit amet, consectetur adipiscing elit.\footnote{a footnote}\par

\blank[12*line,fixed]

Lorem ipsum dolor sit amet, consectetur adipiscing elit.\footnote{another footnote}

\blank[12*line,fixed]

Lorem ipsum dolor sit amet, consectetur adipiscing elit.% \footnote{another
% longer footnote: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
% Ut mattis volutpat elit sit amet fermentum.}

\blank[12*line,fixed]

Quisque vel arcu ut tellus congue vulputate. Praesent nec tortor vitae
nibh elementum semper. Cras sit amet turpis ac quam bibendum interdum.
Orci varius natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus. \vadjust{\kern -.5pt}Maecenas ac mi sed nisl bibendum ultricies.
Nullam ac augue non ex euismod fermentum id quis nulla.
Cras vel lorem aliquet eros maximus interdum nec fermentum ligula.
Cras eu eros nec justo blandit ullamcorper ut et magna.
Curabitur aliquam nunc at pharetra semper.
Pellentesque vel lectus ut diam varius vestibulum. Etiam non varius erat.
Nunc scelerisque, dolor sit amet feugiat vestibulum, nulla erat eleifend
mauris, eget ultricies neque velit non neque. Donec vitae tempus est,
a feugiat magna.

\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

Re: [NTG-context] referencing a footnote (and getting the right number)

2018-08-12 Thread Robert Zydenbos

> On 12. Aug 2018, at 17:38, Pablo Rodriguez  wrote:
> 
> Hi Robert,
> 
> the reference command in notes is \in (for both MkII and MkIV), such as in:
> 
>\starttext
>\dorecurse{30}{\footnote{Footnote}}
>\footnote[uvu-avu]{These two suffixes […]}
>\dorecurse{30}{\footnote{Footnote}}
>…
>\footnote{See n.~\in[uvu-avu].}
>\stoptext

Aha. I didn’t find that in contextref.pdf (2013 edition). But it works!

What does disturb me, however, is that I have this one chapter where the wrong 
note number is indicated (note 19 is referred to as note '18'), and I do not 
know why. Could it be that this is because earlier in the chapter I have also 
used

\setupnote [localnote] [location=none]
…
\startlocalfootnotes[conversion=characters,n=0]
…
\placenotes [localnote]
\stoplocalfootnotes

and that this somehow interferes with the referencing of other footnotes? That 
is the only difference I see between this chapter and the others.

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

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

Re: [NTG-context] resetting footnote counter

2018-08-08 Thread Robert Zydenbos
Pablo's example works well on my machine. So there must be a disturbance at a 
different level in my complex text – perhaps in my settings:

\setupnotedefinition [footnote] [location=serried, distance=1em, hang=1em]

or

\setupfootnotes[bodyfont={Mainfont,8pt}, width=\textwidth, frameoffset=1em, 
location=none, way=bychapter]

which in all other respects work fine? ('Mainfont' is my own definition, from a 
typescript; I also added 'way=bychapter', to no effect.) The only thing that 
does not happen is the resetting of the note counter.

If I had a command that simply says "the counter named X (=footnote counter) is 
now 0 again", which I could insert at the beginning of every chapter, the 
problem would be solved. (Not so elegant, but it would be a solution.)

Robert

> On 8. Aug 2018, at 17:36, Pablo Rodriguez  wrote:
> 
> On 08/08/2018 05:03 PM, Robert Zydenbos wrote:
>> Sorry, neither of these work (MkII with XeTeX). I get no error
>> messages with Pablo's suggestion, but not the desired result either.
> 
> Weird, this works for me (with and without XeTeX):
> 
>\setuppapersize[A8]
>\setupnote[footnote][way=bychapter]
>\starttext
>\chapter{Chapter}
>\dorecurse{2}{Text\footnote{Footnote.}}
>\chapter{Chapter}
>\dorecurse{2}{Text\footnote{Footnote.}}
>\stoptext
> 
> Pablo


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

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

Re: [NTG-context] resetting footnote counter

2018-08-08 Thread Pablo Rodriguez
On 08/08/2018 05:03 PM, Robert Zydenbos wrote:
> Sorry, neither of these work (MkII with XeTeX). I get no error
> messages with Pablo's suggestion, but not the desired result either.

Weird, this works for me (with and without XeTeX):

\setuppapersize[A8]
\setupnote[footnote][way=bychapter]
\starttext
\chapter{Chapter}
\dorecurse{2}{Text\footnote{Footnote.}}
\chapter{Chapter}
\dorecurse{2}{Text\footnote{Footnote.}}
\stoptext

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] general suggestion for ConTeXt documentation

2018-08-08 Thread Pablo Rodriguez
On 08/08/2018 03:30 PM, Robert Zydenbos wrote:
> On 8. Aug 2018, at 00:54, Alan Braslau wrote:
>>
>> tex/context/interface/mkiv/i-context.pdf
> 
> Thank you! I didn’t know I already had this updated version of a
> document I’ve already been using. But however useful this document
> already is, it does illustrate some of my problems. For instance, in
> the entry ‘\setupnote’ I see:
> 
> …
> indicator: yes no
> distance: dimension
> …
> 
> Surely this is fine for those who have been working on ConTeXt for
> years at a very low coding level.

Hi Robert,

please, don’t consider me among those who have been worked on ConTeXt at
a very low level (even for milliseconds).

> But I see this and ask myself: “indicator of what? distance to what?” etc.

Indicator that the note goes to the following page. But I don’t know
what "distance" in \setupnote does.

> (Sometimes, when confronted with such information, I just play
> around a bit with changing parameters and see what happens: sometimes
> I discover the meanings, sometimes I don’t.)

Lucky you, I have to play all the time to see what happens. I only learn
by doing.

> ‘\setupnote’ inherits from ‘\setupframed’. There one finds
> 
> …
> profile = NAME
> empty = yes no
> …
> 
> and similar questions arise: “what kind of profile?”, “what is empty
> or not?” etc.

The note zone is a frame. Empty or full is the text in that frame. In
that case (if this frame is empty), it removes the footnotes themselves.

I don’t know what are profiles. But I never needed to use them.

> Unfortunately the source browser on the Wiki is out of order,
> otherwise that might have helped.

http://source.contextgarden.net/ does work for me. But it is better that
you search your distribution, since the sources from your computer may
be the latest beta. In the garden, they are outdated.

> Suggestion / request: all the ConTeXt source files are, of course,
> read and processed in a particular order. It would surely be useful if
> someone could indicate where this chain begins. Anybody who would be
> interested in sorting out the workings of ConTeXt and writing a manual
> (no, I am not making any promises yet :-) ) could then trace how one
> command leads to another, another, another… and how the entire system is
> built up.

I wonder how many participants in this list might be able to do that
(Hans, Wolfgang and Taco excluded, of course).

No doubt that you are way smarter than me, but let me say a word on your
approach to ConTeXt.

Typography is a craftmanship. I don’t think it is totally different when
it is digital. Learning by doing is a good approach.

Of course, you may afford to learn from the source. But after all,
ConTeXt knowledge is relevant to typeset texts.

I might be totally missing your point here, but it seems to me that you
try to know what can be achieved in general with ConTeXt, even before to
learn how to use ConTeXt for your typesetting needs.

I hope it helps,

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

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

Re: [NTG-context] resetting footnote counter

2018-08-08 Thread Wolfgang Schuster

%\setupnote[footnote][way=bychapter,location=none]
\setupfootnotes[way=bychapter,location=none]

\starttext

\dorecurse{10}
  {\expanded{\chapter{Chapter \recurselevel}}
   \dorecurse{10}{\input tufte\footnote{\input ward }\par}
   \placenotes[footnote]}

\stoptext

Wolfgang


Robert Zydenbos schrieb am 08.08.18 um 17:03:

Sorry, neither of these work (MkII with XeTeX). I get no error messages with 
Pablo's suggestion, but not the desired result either.

Perhaps I need a very primitive command that I can insert at the beginning of 
every chapter.

Robert


On 8. Aug 2018, at 16:54, Pablo Rodriguez  wrote:

On 08/08/2018 03:55 PM, Taco Hoekwater wrote:

On 8 Aug 2018, at 15:33, Robert Zydenbos  wrote:

A simple footnote question this time. I would like to print
endnotes at the end of every chapter in my book, and then reset the
footnote ounter so that in the next chapter the first note will be
‘1’ again. I suppose this should be done by means of \setupfootnotes
– but with which parameter?

Like this (and I also agree that footnote/endnote setup is a bit
complicated, but of course the concept is already quite complicated
itself): [...]

Taco,

I’m afraid Robert needs that for MkII (although he didn‘t mention it).

Robert,

your command reads:

\setupfootnotes[way=bychapter]

By default, footnote numbering seems to be reset by part.

Pablo



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

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


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

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

Re: [NTG-context] general suggestion for ConTeXt documentation (was: footnote and endnote markers...)

2018-08-08 Thread Robert Zydenbos
On 8. Aug 2018, at 00:54, Alan Braslau  wrote:
> 
> tex/context/interface/mkiv/i-context.pdf

Thank you! I didn’t know I already had this updated version of a document I’ve 
already been using. But however useful this document already is, it does 
illustrate some of my problems. For instance, in the entry ‘\setupnote’ I see:

…
indicator: yes no
distance: dimension
…

Surely this is fine for those who have been working on ConTeXt for years at a 
very low coding level. But I see this and ask myself: “indicator of what? 
distance to what?” etc. (Sometimes, when confronted with such information, I 
just play around a bit with changing parameters and see what happens: sometimes 
I discover the meanings, sometimes I don’t.)

‘\setupnote’ inherits from ‘\setupframed’. There one finds

…
profile = NAME
empty = yes no
…

and similar questions arise: “what kind of profile?”, “what is empty or not?” 
etc.

Unfortunately the source browser on the Wiki is out of order, otherwise that 
might have helped.

Suggestion / request: all the ConTeXt source files are, of course, read and 
processed in a particular order. It would surely be useful if someone could 
indicate where this chain begins. Anybody who would be interested in sorting 
out the workings of ConTeXt and writing a manual (no, I am not making any 
promises yet :-) ) could then trace how one command leads to another, another, 
another… and how the entire system is built up.

Robert

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

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

Re: [NTG-context] general suggestion for ConTeXt documentation

2018-08-08 Thread Pablo Rodriguez
On 08/08/2018 12:40 AM, Robert Zydenbos wrote:
> That is it. I have no idea why – but that is the solution.

Dear Robert,

I will try to explain the reason of this (in my very limited
understanding of how ConTeXt works).

Notes in both MkII and MkII have two setup commands. One is for the
group of notes and the other is for each individual note.

This is why configuring notes might be tricky sometimes. Some options
belong to \setupnote and some to \setupnotedefinition (or \setupnotation
in MkIV).

> (For all readers:)

I hope I’m also included .

Your example is a very special one. I mean, notes have two setup
commands and you are using MkII.

We already know you need support for Indic scripts (is Kannada the
language you need?).

I wonder whether we could do something to improve the situation in MkIV.

> ConTeXt is great. Let me make that clear right way. I think it's the
> future of TeX. I'm already doing things in ConTeXt that I dread
> trying to do in LaTeX or any other system. But (yes, of course there
> was a 'but' coming) the one thing that is missing, the one obstacle
> which I think exists for ConTeXt gaining wider currency, is really
> good documentation.

I moved from LaTeX to ConTeXt a decade ago. Back then, I also thought
that ConTeXt needed better documentation.

In the meanwhile, I realized that there are more things in heaven and
earth, that were dreamt in my philosophy. I mean, ConTeXt involves much
more than I thought.

Hans explained in the list why general documentation is not his task:
https://mailman.ntg.nl/pipermail/ntg-context/2010/047500.html.

As an introduction to that, you can read my own take on the matter:
https://mailman.ntg.nl/pipermail/ntg-context/2017/090111.html.

In short, users have to write the general documentation about ConTeXt.
Or at least, we cannot expect (I’m not saying that you imply this) that
Hans develops both ConTeXt and LuaTeX, replies many questions in too
many mailing lists, writes technical documentation for both softwares
and also writes introductory manuals.

> Take this last question of mine which Pablo solved: I had to put a
> certain parameter in \setupnotedefinition [footnote]. First I did it
> wrongly, putting it in \setupnote [footnote] (why? because the names of
> the values, like 'location', look so much alike). So what goes into
> \setupnotedefinition and what goes into \setupnote? How do I know?

Welcome to the club. I mean, I also had my problems understanding why
notes were so complex to setup.

For MkIV (as Alan mentioned), you have
tex/texmf-context/tex/context/interface/mkiv/i-context.pdf.

For MkII, there seems to be no document for the English interface (at
least, in tex/texmf-context/tex/context/interface/mkii). I might be
wrong here, since I only used MkII for your notes.

> (How does Pablo know this? Maybe he can tell me off-list. :-) )

Who says I knew it? I simply searched in the source.

I know that \setupnotations[alternative=serried] is the command in MkIV.

So I grepped for "serried" in tex/texmf-context/tex/context/base/mkii/.

It took me a while to realize that strc-lnt.mkii had exactly the key I
was looking for (on line 109).

I must confess, if I hand’t find this line, I wouldn’t have been able to
give an answer from what I read in strc-not.mkii.

> Many of the commands are not, or badly, documented in the otherwise useful 
> Wiki.

The wiki is written by users. I don’t know whether it is useful to add
MkII information to the wiki, but updating the wiki

> What are all the parameters that are recognized by the various
> commands, and just what do they mean? What are the default settings?

See above for that list.

> ConTeXt looks like an object oriented programming language with
> inheritances, but it is unclear just what is inherited from where,
> and why.

I don’t code, but I wonder whether this is more complex. ConTeXt MkII is
a macro package programmed in TeX (which is a typographical programming
language). ConTeXt MkIV adds Lua.

For a more complete description,
http://www.pragma-ade.com/general/manuals/what-is-context.pdf.

> I appreciate all the effort made by various people to provide
> documentation and demos. But I think the cause of ConTeXt would be
> greatly served if someone would bring out a hierarchic list of the
> ConTeXt commands with a brief description of what the commands and the
> parameters do and why they exist at all, so that the reader gets an idea
> of the structure of the whole system and the philosophy behind it (i.e.,
> explaining why it is thus structured and why it works).
> 
> Once again: I think ConTeXt is great, and so is this forum, which is
> a huge help. I also realize ConTeXt is complex and that the great
> people behind it also have other things to do in life. But still:
> maybe the kind of documentation I propose would help to make things
> still a bit greater?

The ques

Re: [NTG-context] general suggestion for ConTeXt documentation (was: footnote and endnote markers...)

2018-08-07 Thread Alan Braslau
tex/context/interface/mkiv/i-context.pdf


On Wed, 8 Aug 2018 00:40:37 +0200
Robert Zydenbos  wrote:

> > On 7. Aug 2018, at 17:54, Pablo Rodriguez  wrote:
> > 
> > On 08/06/2018 11:59 PM, Robert Zydenbos wrote:  
> >> Sorry for all these footnote questions, […]  
> > 
> > Hi Robert,
> > 
> > […]
> > 
> > I hope it helps,
> > 
> > Pablo  
> 
> That is it. I have no idea why – but that is the solution.
> 
> (For all readers:)
> 
> ConTeXt is great. Let me make that clear right way. I think it's the future 
> of TeX. I'm already doing things in ConTeXt that I dread trying to do in 
> LaTeX or any other system. But (yes, of course there was a 'but' coming) the 
> one thing that is missing, the one obstacle which I think exists for ConTeXt 
> gaining wider currency, is really good documentation.
> 
> Take this last question of mine which Pablo solved: I had to put a certain 
> parameter in  \setupnotedefinition  [footnote]. First I did it wrongly, 
> putting it in \setupnote [footnote] (why? because the names of the values, 
> like 'location', look so much alike). So what goes into \setupnotedefinition 
> and what goes into \setupnote? How do I know? (How does Pablo know this? 
> Maybe he can tell me off-list. :-) ) Many of the commands are not, or badly, 
> documented in the otherwise useful Wiki. What are all the parameters that are 
> recognized by the various commands, and just what do they mean? What are the 
> default settings? ConTeXt looks like an object oriented programming language 
> with inheritances, but it is unclear just what is inherited from where, and 
> why.
> 
> I appreciate all the effort made by various people to provide documentation 
> and demos. But I think the cause of ConTeXt would be greatly served if 
> someone would bring out a hierarchic list of the ConTeXt commands with a 
> brief description of what the commands and the parameters do and why they 
> exist at all, so that the reader gets an idea of the structure of the whole 
> system and the philosophy behind it (i.e., explaining why it is thus 
> structured and why it works).
> 
> Once again: I think ConTeXt is great, and so is this forum, which is a huge 
> help. I also realize ConTeXt is complex and that the great people behind it 
> also have other things to do in life. But still: maybe the kind of 
> documentation I propose would help to make things still a bit greater?
> 
> Robert
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] general suggestion for ConTeXt documentation (was: footnote and endnote markers...)

2018-08-07 Thread Robert Zydenbos
> On 7. Aug 2018, at 17:54, Pablo Rodriguez  wrote:
> 
> On 08/06/2018 11:59 PM, Robert Zydenbos wrote:
>> Sorry for all these footnote questions, […]
> 
> Hi Robert,
> 
> […]
> 
> I hope it helps,
> 
> Pablo

That is it. I have no idea why – but that is the solution.

(For all readers:)

ConTeXt is great. Let me make that clear right way. I think it's the future of 
TeX. I'm already doing things in ConTeXt that I dread trying to do in LaTeX or 
any other system. But (yes, of course there was a 'but' coming) the one thing 
that is missing, the one obstacle which I think exists for ConTeXt gaining 
wider currency, is really good documentation.

Take this last question of mine which Pablo solved: I had to put a certain 
parameter in  \setupnotedefinition  [footnote]. First I did it wrongly, putting 
it in \setupnote [footnote] (why? because the names of the values, like 
'location', look so much alike). So what goes into \setupnotedefinition and 
what goes into \setupnote? How do I know? (How does Pablo know this? Maybe he 
can tell me off-list. :-) ) Many of the commands are not, or badly, documented 
in the otherwise useful Wiki. What are all the parameters that are recognized 
by the various commands, and just what do they mean? What are the default 
settings? ConTeXt looks like an object oriented programming language with 
inheritances, but it is unclear just what is inherited from where, and why.

I appreciate all the effort made by various people to provide documentation and 
demos. But I think the cause of ConTeXt would be greatly served if someone 
would bring out a hierarchic list of the ConTeXt commands with a brief 
description of what the commands and the parameters do and why they exist at 
all, so that the reader gets an idea of the structure of the whole system and 
the philosophy behind it (i.e., explaining why it is thus structured and why it 
works).

Once again: I think ConTeXt is great, and so is this forum, which is a huge 
help. I also realize ConTeXt is complex and that the great people behind it 
also have other things to do in life. But still: maybe the kind of 
documentation I propose would help to make things still a bit greater?

Robert


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

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

Re: [NTG-context] using both footnotes and endnotes in a document

2018-08-05 Thread Robert Zydenbos
> On 28. Jul 2018, at 16:48, Pablo Rodriguez  wrote:
> 
> On 07/27/2018 11:47 AM, Robert Zydenbos wrote:
>> This works fine with MkIV, but not with MkII (I tried by altering
>> \setupnotation to the MkII command \setupfootnotes, but that doesn't
>> work). I need MkII for my project.
> Hi Robert,
> 
> why is this required? Support for Indic scripts?

Indeed.

> I think Hans added it for MkIV.
> 
>> Is what I am looking for at all possible in MkII?
> 
>  \setupnote [endnote] [conversion=characters]
> 
> I have learn how to create the format and invoke MkII, but this seems to
> solve the problem.
> 
> I hope it helps,

It does!

Robert

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

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

Re: [NTG-context] using both footnotes and endnotes in a document

2018-07-28 Thread Pablo Rodriguez
On 07/27/2018 11:47 AM, Robert Zydenbos wrote:
> This works fine with MkIV, but not with MkII (I tried by altering
> \setupnotation to the MkII command \setupfootnotes, but that doesn't
> work). I need MkII for my project.
Hi Robert,

why is this required? Support for Indic scripts?

I think Hans added it for MkIV.

> Is what I am looking for at all possible in MkII?

  \setupnote [endnote] [conversion=characters]

I have learn how to create the format and invoke MkII, but this seems to
solve the problem.

I hope it helps,

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

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

Re: [NTG-context] bidi in footnotes

2018-06-27 Thread Idris Samawi Hamid ادريس سماوي حامد
On Wed, 27 Jun 2018 02:03:32 -0600, Wolfgang Schuster  
 wrote:





Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
23. Juni 2018 um 23:49
On Sat, 23 Jun 2018 07:10:27 -0600, Wolfgang Schuster
 wrote:


When you use the global whitespace settings in footnotes you get the
same space between each footnote entry. What can be done is to add a
whitespace key to setupnote which is easier than using
setups-environment.


Could this be a feature request then? So

\setupnote[whitespace=big,bidi=on]

I forgot that you can set the whitespace also with the style-key from
\setupnotation.

\setupnotation[footnote][style={\setupwhitespace[line]}]

\starttext
\input ward\footnote{\input{knuth}}
\stoptext


Many thanks. Although bidi is not technically a "style" option, and one  
may be accused of mixing apples and oranges here, decided to test - see  
attached and below:


===
\setupdirections[bidi=global]
\setupwhitespace[big]
\setupnotation[footnote][style={\setupwhitespace[big],\setupdirections[bidi=global]}]

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

Why does bidi=global get applied to the second paragraph of the footnote,  
but not to the first?


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

scratch.tex
Description: TeX document


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

2018-06-27 Thread Wolfgang Schuster



Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
23. Juni 2018 um 23:49
On Sat, 23 Jun 2018 07:10:27 -0600, Wolfgang Schuster 
 wrote:



When you use the global whitespace settings in footnotes you get the
same space between each footnote entry. What can be done is to add a
whitespace key to setupnote which is easier than using 
setups-environment.


Could this be a feature request then? So

\setupnote[whitespace=big,bidi=on]
I forgot that you can set the whitespace also with the style-key from 
\setupnotation.


\setupnotation[footnote][style={\setupwhitespace[line]}]

\starttext
\input ward\footnote{\input{knuth}}
\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] bidi in footnotes

2018-06-23 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sat, 23 Jun 2018 07:10:27 -0600, Wolfgang Schuster  
 wrote:



Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
23. Juni 2018 um 14:17
On Fri, 22 Jun 2018 14:13:22 -0600, Wolfgang Schuster
 wrote:


2. a complete list of those typographical settings (bidi, whitespace,
etc,) which are have to explicitly setup for such environments?



Whitespace etc. are unrelated to the problem above and can be changed
with the normal setup-commands.


Counterexample to whitespace attached and below:

\setupwhitespace[big]

\starttext
\input ward \par \input ward
\startfootnote
\input ward \par \input ward
\stopfootnote{}
\stoptext

Whitespace is applied in the main text but not in the footnotes. How
is this case different from global declaration of bidi etc.? It seems
these elements really do live in their own world now..


This would lead to other side effects shown in the following example.


Yes, ok.


When you use the global whitespace settings in footnotes you get the
same space between each footnote entry. What can be done is to add a
whitespace key to setupnote which is easier than using  
setups-environment.


Could this be a feature request then? So

\setupnote[whitespace=big,bidi=on]

[Although in the case of bidi I still think that one declaration of  
bidi=global at the beginning of the document should radiate to all other  
elements, except as otherwise configured through their \setup's  
etc.]


Many thanks for the explanations.

Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] bidi in footnotes

2018-06-23 Thread Wolfgang Schuster



Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
23. Juni 2018 um 14:17
On Fri, 22 Jun 2018 14:13:22 -0600, Wolfgang Schuster 
 wrote:


2. a complete list of those typographical settings (bidi, whitespace, 
etc,) which are have to explicitly setup for such environments?


Whitespace etc. are unrelated to the problem above and can be changed 
with the normal setup-commands.


Counterexample to whitespace attached and below:

\setupwhitespace[big]

\starttext
\input ward \par \input ward
\startfootnote
\input ward \par \input ward
\stopfootnote{}
\stoptext

Whitespace is applied in the main text but not in the footnotes. How 
is this case different from global declaration of bidi etc.? It seems 
these elements really do live in their own world now..


This would lead to other side effects shown in the following example.

When you use the global whitespace settings in footnotes you get the 
same space between each footnote entry. What can be done is to add a 
whitespace key to setupnote which is easier than using setups-environment.


\definedescription[Spaced][before=,after=]

\starttext

\startSpaced
First entry.
\stopSpaced

\startSpaced
Second entry.
\stopSpaced

\blank[2*line]

\setupwhitespace[big]

\startSpaced
Third entry.
\stopSpaced

\startSpaced
Fourth entry.
\stopSpaced

\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] how to change the colour of the footnote marker

2018-04-08 Thread Wolfgang Schuster



Robert Zydenbos <mailto:cont...@zydenbos.net>
9. April 2018 um 00:40
Greetings, Wolfgang,

On 08.04.2018 17:46, Wolfgang Schuster wrote:


definecolor[kleur][blue]

setupcolors[state=start,textcolor=kleur]

setupnotedefinition[footnote][color=kleur]
setupnote [footnote][rulecolor=kleur]



…etc…


It works! Thank you for the solution.

One thing that puzzles me, however, is that you (Wolfgang) are able to 
produce solutions using (so it seems) undocumented commands and 
parameters. How did you hit upon the idea to use 'rulecolor' here? I 
rely on the ConTeXt manual (2013 version), and there is nothing there 
to suggest that 'rulecolor' determines the colour of the text of 
footnotes. Neither did the Wiki help me.


Is there some hidden documentation I do not know about?
You can look them up in the command reference which exists since a very 
long time (the current version is MkIV/LuaTeX only):


http://pragma-ade.com/show-man-5.htm

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] how to change the colour of the footnote marker

2018-04-08 Thread Robert Zydenbos

Greetings, Wolfgang,

On 08.04.2018 17:46, Wolfgang Schuster wrote:


definecolor[kleur][blue]

setupcolors[state=start,textcolor=kleur]

setupnotedefinition[footnote][color=kleur]
setupnote [footnote][rulecolor=kleur]



…etc…


It works! Thank you for the solution.

One thing that puzzles me, however, is that you (Wolfgang) are able to 
produce solutions using (so it seems) undocumented commands and 
parameters. How did you hit upon the idea to use 'rulecolor' here? I 
rely on the ConTeXt manual (2013 version), and there is nothing there to 
suggest that 'rulecolor' determines the colour of the text of footnotes. 
Neither did the Wiki help me.


Is there some hidden documentation I do not know about?

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

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

Re: [NTG-context] how to change the colour of the footnote marker

2018-04-08 Thread Tomas Hala
Hi Robert,

I don't understand if you need solution for MkII, or
if you tried something from MkII. 

For MkIV you can use this:

\def\mycmd#1{\startcolor[\kleur]#1\stopcolor}
\setupnotation[footnote][numbercommand=\mycmd]

(But I don't know whether it will work witk MkII.)

The best,

Tomáš

Sun, Apr 08, 2018 ve 01:02:45PM +0200 Robert Zydenbos napsal(a):
# Today I wanted to print an entire document not in standard black,
# but in blue. I added (Mk II) –
# 
# \setupcolors [state=start]
# \define\kleur{blue} % so I can change the colour uniformly
# everywhere through this variable
# \startcolor [\kleur]
# \setupnote[footnote][before={\color[\kleur]}]
# \setupfooter [color=\kleur]
# 
# – and everything becomes blue, but NOT the footnote number before
# the footnote itself at the bottom of the page (the marker in the
# main text is coloured the way I want).
# 
# Can anyone tell me how to change the colour of the footnote number
# in the note?
# 
# Robert
# 
# 
___
# If your question is of interest to others as well, please add an entry to the 
Wiki!
# 
# maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
# webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
# archive  : https://bitbucket.org/phg/context-mirror/commits/
# wiki : http://contextgarden.net
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] how to change the colour of the footnote marker

2018-04-08 Thread Robert Zydenbos
Today I wanted to print an entire document not in standard black, but in 
blue. I added (Mk II) –


\setupcolors [state=start]
\define\kleur{blue} % so I can change the colour uniformly everywhere 
through this variable

\startcolor [\kleur]
\setupnote[footnote][before={\color[\kleur]}]
\setupfooter [color=\kleur]

– and everything becomes blue, but NOT the footnote number before the 
footnote itself at the bottom of the page (the marker in the main text 
is coloured the way I want).


Can anyone tell me how to change the colour of the footnote number in 
the note?


Robert

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

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

Re: [NTG-context] notes in the margin

2018-02-12 Thread Henning Hraban Ramm
Ahoi,
I’m still working on this issue.

For the usual cases, the current mechanism is good (see attachment).

* I gave up on the number placement in its own line (without text indent).

* Footnotes in captions mostly disappear.

* Footnotes in captions or other boxed environments (chapter title in my case) 
get misplaced, e.g. if a figure is narrower than \textwidth, the margin note is 
moved into the textarea by the difference.

\startplacefigure[location=here,title={Some caption\footnote{Source of the 
image. This disappeares or gets misplaced}}]
\externalfigure[cow]%[width=.8\textwidth]
\placelocalfootnotes % doesn’t change anything
\stopplacefigure

* Further, in some cases it would be good to move the margin note by a few 
lines higher or lower.
 \inmargin has this first parameter: "+ - low" in reference, e.g. \inmargin 
[method=first,voffset=-6pt] in source typo-mar.mkiv)
 I just need a way to transfer this option through \footnote: I used a global 
definition that I redefine where I need it:

\def\FNVOffset{0} % vertical shift of footnotes in negative lines
% this is unclean, but works quite well

\define\PlaceFootnote%
 
{\inmargin[voffset=\dimexpr-\FNVOffset\lineheight\relax]{\vtop{\placelocalnotes[footnote][before=,after=]}}}
\def\FNo#1{{\ss\tfx #1}}

\setupnote[footnote]
 [location=text,
  bodyfont=,
  indenting=no,
  before={\noindent},
  next=\PlaceFootnote]
\setupnotation[footnote][
   way=bychapter,
   align=flushleft,
   style={\ss\tfx},
   indenting=no,
   location=serried,
   alternative=serried,
   width=broad,
   numbercommand=\FNo,
]
\setuptexttexts[margin][]
   [{\framed[
 align={flushleft,bottom},
 frame=off,
 height=\textheight,
 width=\rightmarginwidth]{%
 \strut\vfill\placenotes[footnote]}}]

\setupmargindata[inmargin][location=outer,stack=continue,align=flushleft,style={\ss\tfx}]
\setupmargindata[inouter][location=outer,stack=continue,align=flushleft,style={\ss\tfx}]



Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD


sidenotetest.tex
Description: Binary data


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] notes in the margin

2018-01-23 Thread Henning Hraban Ramm
These issues are still open, I attached my current test file.

1)
There’s always space/indent in front of the note text, I’d like to get rid of 
that.
Notes should look like:

texttext text
texttext12 text   12
text texttext Some remarks

But at the moment they’re like:

texttext text
texttext12 text   12
text texttext __Some remarks


2)
If there is a possibility to influence the page breaking algorithm for notes, 
I’d like to know about that.
Stacking works nicely most of the time, but I have a few pages where the notes 
don’t fit.
The only option I know of is \adaptlayout to move lines of the main text. 
Something similar for note lines would be nice.

Another possibility would be to have some (very long) notes as footnotes 
instead of margin notes.
Is it possible to switch placement but keep the numbering? Maybe via different 
note setups and manually setting the counter?


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

Am 2017-10-24 um 09:54 schrieb Henning Hraban Ramm <te...@fiee.net>:

> Am 2017-04-09 um 21:46 schrieb Wolfgang Schuster 
> <schuster.wolfg...@gmail.com>:
> 
>>> Henning Hraban Ramm 30. März 2017 um 10:30
>>> While I’m still waiting for answers to my other questions, I got some more:
>>> 
>>> In my layout, left margin width is zero, but \inmargin always uses left 
>>> margin.
>>> I didn’t find a setup to change that – should 
>>> \setupmargindata[location=right] do the trick? (it doesn’t, also not with 
>>> left)
>>> 
>>> Further I’d like to place "foot"notes into the margin.
>>> It works like this:
>>> 
>>> \setupnote[footnote][location=none]
>>> \setupnotation[footnote][
>>> align=flushleft,
>>> location=serried,
>>> width=broad,
>>> ]
>>> \setuptexttexts[margin][]
>>> [{\framed[%
>>> align=right,
>>> frame=off,
>>> height=\textheight,
>>> width=\rightmarginwidth 
>>> ]{\placenotes[footnote]}}]
>>> 
>>> But I’d like the notes to start in the line of the marker, if there’s space.
>>> How can I achieve that?
>> The only way I found to achieve this is by flushing the notes at the end of 
>> each footnote
>> entry which can be done with the next key. The positioning of each margin 
>> text is tricky
>> because \placenotes adds skips at the begin of the block (which can be 
>> reduced with
>> \placelocalnotes) but a inline version of the command (e.g. 
>> \placeinlinenotes) which
>> flushes the notes without vertical skips and a rule at the begin would help.
>> 
>> \define\PlaceFootnote
>>  {\inrightmargin{\vtop{\placelocalnotes[footnote][before=,after=]}}}
>> 
>> \setupnote
>>  [footnote]
>>  [location=text,
>>   bodyfont=,
>>   next=\PlaceFootnote]
>> 
>> \setupnotation
>>  [footnote]
>>  [alternative=serried]
>> 
>> \setuplayout
>>  [width=12cm,
>>   rightmargindistance=0.5cm,
>>   rightmargin=5cm]
>> 
>> \starttext
>> \dorecurse{6}{\input ward\expanded{\footnote{This is a footnote 
>> \recurselevel}} }
>> \stoptext
> 
> Oh, seems like I didn’t answer to that, sorry.
> 
> Thank you very much, this solves my problem for the most part.
> 
> Coming back to this now, since I completed my previous book project (with the 
> register issues) and attacking the next one (that needs those numbered 
> marginal notes).
> 
> It would be nice if we had a solution how those notes won’t collide; is there 
> some trick how I can shift a note up or down manually?
> 
> Additionally, since my note number gets its own line, I’d like to get rid of 
> the indenting, but couldn’t find the right parameter.
> This setup adds to Wolfgang’s:
> 
> \def\FNo#1{#1\crlf}
> 
> \setupnotation
>  [footnote]
>  [alternative=serried,
>  width=broad,
>  align=flushleft,
>  numbercommand=\FNo]
> 
> 
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD



sidenotetest.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] \cite not working with notes in xtables

2017-12-12 Thread Alan Braslau
Michael,

Hans seems to have fixed this problem, which was an obscure lua issue
having to do with collecting references interacting badly with trial
typesetting, as is done in xtables. The correction should make it to
the beta soon.

Alan


On Tue, 5 Dec 2017 21:06:59 +0100
Michael Eidenbenz <eidenb...@arch.ethz.ch> wrote:

> Hello List,
> 
> I have this MWE that reflects my current layout where I have images
> in an xtable with captions defined as note. Both, footnotes and
> captions are set in the margin. The Example compiles correct with
> just one caption in a xcell. If there are two (as in the MWE) the
> \cite command doesnt work.
> 
> Could this be a conflict on the lua side of xtables/publication
> framework?
> 
> The second problem of course are the footnotes that are not placed on
> the correct side. I thought \automigrateinserts would help here. But
> it doesnt.
> 
> Any hints how to solve this?
> 
> Thanks Michael
> 
> 
> ---
> \useMPlibrary[dum]
> 
> \startbuffer[bib]
> @article{tufte, author = {Edward Tufte} }
> \stopbuffer
> \definebtxdataset[bib]
> \usebtxdataset [bib][bib.buffer]
> \definebtxrendering[bib][dataset=bib]
> 
> \setuplayout[backspace=80mm,width=120mm]
> 
> \setupnote[footnote]
>   [location={none}]
> 
> \definenote   [caption]
>   [location={none}]
> 
> \automigrateinserts
> 
> \setuptexttexts
>   [margin]
>   [{{\vbox to\textheight%
> {\placenotes[caption]%
>  \null\vfilll%
>  \placenotes[footnote]}}}]
>   []
> 
> \starttext
> 
> \input tufte
>   \footnote{\cite[bib::tufte]}
>   \par
> 
>   \startembeddedxtable[distance=10mm]
> \startxrow
>   \startxcell[width=55mm]
> \externalfigure[dummy][factor=fit]
> \caption[dummy]{caption}
>   \stopxcell
>   \startxcell[width=55mm]
> \externalfigure[dummy][factor=fit]
> % \caption[dummy]{caption} %without this note the \cite
> command compiles \stopxcell
> \stopxrow
>   \stopembeddedxtable
> 
> \input tufte
>   \footnote{\cite[bib::tufte]}
>   \par
> 
> \placebtxrendering [bib]
> 
> \stoptext

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

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

Re: [NTG-context] \cite not working with notes in xtables

2017-12-05 Thread Alan Braslau
Hans,

Including the second \caption (note) leads to:

publications> no entry 'tufte' found in dataset 'bib'
publications> no entry 'tufte' found in dataset 'bib'

Strange...

Alan

On Tue, 5 Dec 2017 21:06:59 +0100
Michael Eidenbenz <eidenb...@arch.ethz.ch> wrote:

> Hello List,
> 
> I have this MWE that reflects my current layout where I have images
> in an xtable with captions defined as note. Both, footnotes and
> captions are set in the margin. The Example compiles correct with
> just one caption in a xcell. If there are two (as in the MWE) the
> \cite command doesnt work.
> 
> Could this be a conflict on the lua side of xtables/publication
> framework?
> 
> The second problem of course are the footnotes that are not placed on
> the correct side. I thought \automigrateinserts would help here. But
> it doesnt.
> 
> Any hints how to solve this?
> 
> Thanks Michael
> 
> 
> ---
> \useMPlibrary[dum]
> 
> \startbuffer[bib]
> @article{tufte, author = {Edward Tufte} }
> \stopbuffer
> \definebtxdataset[bib]
> \usebtxdataset [bib][bib.buffer]
> \definebtxrendering[bib][dataset=bib]
> 
> \setuplayout[backspace=80mm,width=120mm]
> 
> \setupnote[footnote]
>   [location={none}]
> 
> \definenote   [caption]
>   [location={none}]
> 
> \automigrateinserts
> 
> \setuptexttexts
>   [margin]
>   [{{\vbox to\textheight%
> {\placenotes[caption]%
>  \null\vfilll%
>  \placenotes[footnote]}}}]
>   []
> 
> \starttext
> 
> \input tufte
>   \footnote{\cite[bib::tufte]}
>   \par
> 
>   \startembeddedxtable[distance=10mm]
> \startxrow
>   \startxcell[width=55mm]
> \externalfigure[dummy][factor=fit]
> \caption[dummy]{caption}
>   \stopxcell
>   \startxcell[width=55mm]
> \externalfigure[dummy][factor=fit]
> % \caption[dummy]{caption} %without this note the \cite
> command compiles \stopxcell
> \stopxrow
>   \stopembeddedxtable
> 
> \input tufte
>   \footnote{\cite[bib::tufte]}
>   \par
> 
> \placebtxrendering [bib]
> 
> \stoptext
> 
> ---
> 
> ___
> If your question is of interest to others as well, please add an
> entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
> http://www.pragma-ade.nl / http://context.aanhet.net archive  :
> https://bitbucket.org/phg/context-mirror/commits/ wiki :
> http://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] \cite not working with notes in xtables

2017-12-05 Thread Michael Eidenbenz
Hello List,

I have this MWE that reflects my current layout where I have images in an 
xtable with captions defined as note. Both, footnotes and captions are set in 
the margin.
The Example compiles correct with just one caption in a xcell. If there are two 
(as in the MWE) the \cite command doesnt work.

Could this be a conflict on the lua side of xtables/publication framework?

The second problem of course are the footnotes that are not placed on the 
correct side. 
I thought \automigrateinserts would help here. But it doesnt.

Any hints how to solve this?

Thanks Michael


---
\useMPlibrary[dum]

\startbuffer[bib]
@article{tufte, author = {Edward Tufte} }
\stopbuffer
\definebtxdataset[bib]
\usebtxdataset [bib][bib.buffer]
\definebtxrendering[bib][dataset=bib]

\setuplayout[backspace=80mm,width=120mm]

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

\definenote [caption]
[location={none}]

\automigrateinserts

\setuptexttexts
  [margin]
  [{{\vbox to\textheight%
{\placenotes[caption]%
 \null\vfilll%
 \placenotes[footnote]}}}]
  []

\starttext

\input tufte
  \footnote{\cite[bib::tufte]}
  \par

  \startembeddedxtable[distance=10mm]
\startxrow
  \startxcell[width=55mm]
\externalfigure[dummy][factor=fit]
\caption[dummy]{caption}
  \stopxcell
  \startxcell[width=55mm]
\externalfigure[dummy][factor=fit]
% \caption[dummy]{caption} %without this note the \cite command compiles
  \stopxcell
\stopxrow
  \stopembeddedxtable

\input tufte
  \footnote{\cite[bib::tufte]}
  \par

\placebtxrendering [bib]

\stoptext

---

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

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

Re: [NTG-context] Setting the footnote symbol

2017-11-17 Thread Pablo Rodriguez
On 11/16/2017 10:14 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> On Thu, 16 Nov 2017 11:40:40 -0700, Pablo Rodriguez wrote:
>> [...]
>> I must confess that this is far beyond my knowledge. I never used
>> \definefont.
> 
> Mainly useful for testing for bugs in other macros etc..

Dear Idris,

I may be wrong, but I see it \definefont as remains from MkII in MkIV.
(I know that my previous statement comes from my lack of ConTeXt knowledge.)

I tend to use a single typeface (maybe with a fallback for Greek glyphs)
in my documents. This is much easier to maintain.

>> No previous typescript is required (Larabiefont doesn’t have one).
> 
> Yes, SimpleFonts work, but then might as well set the whole document that  
> way -)

This is already ConTeXt core code. BTW, contrary to your fears, it
doesn’t set the whole document that way:

\definefont[PagellaRegular] [texgyrepagella-regular.otf at 14pt]
\definefont[PagellaRegularSmall][texgyrepagella-regular.otf at 12pt]

\definefontfamily[nonexisting][rm][TeX Gyre Cursor]
\setupbodyfont[helvetica]

\setupwhitespace[big]
\setuplayout[width=4.5in,height=5.5in,backspace=2in]

\setupnotation[footnote][style={\PagellaRegularSmall},
  numbercommand=\PagellaRegularSmall]
\setupnote [footnote]
[textcommand={\setupbodyfont[nonexisting]\high}]

\noheaderandfooterlines

\starttext
\startframedtext[width=4.5in,offset=0pt] \PagellaRegular
\startlocalfootnotes
Text
\startfootnote
Note
\stopfootnote\
More text
\placelocalfootnotes
\stoplocalfootnotes
\stopframedtext

\dorecurse{5}{\input zapf}
\stoptext

Or use \switchtobodyfont[nonexisting] (if you feel more confortable with
it). In any case, both commands work as you’d expect on my computer.

>> But for explanations, I’m afraid I’m only an average user :-(.
> 
> Pablo, you are anything but an average user :-) Many thanks for your time  
> and help.

With average user, I mean I don’t fully understand the code that I read
(and I cannot write code for ConTeXt [either TeX or Lua]). Otherwise, I
would be contributing code to ConTeXt.

I hope it helps,

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

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

Re: [NTG-context] Setting the footnote symbol

2017-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد

On Thu, 16 Nov 2017 11:40:40 -0700, Pablo Rodriguez <oi...@gmx.es> wrote:


On 11/16/2017 07:18 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
Yes, but the point of this scenario is to do everything with  
\definefont.

pagella is just for purposes of a MWE: otherwise the scenario calls for
using a font that has no associated typescript.

Put another way: We want to set up full control over font-style of each
element of a footnote using only \definefont. If that's impossible, it
would be good to know that as well as why.


I must confess that this is far beyond my knowledge. I never used
\definefont.


Mainly useful for testing for bugs in other macros etc..


If you don’t mind using \definefontfamily, this works fine:

  \definefontfamily[lareba][rm][Larabiefont]

  \setupnote[footnote][textstyle={\setupbodyfont[lareba, 12pt]\high}

No previous typescript is required (Larabiefont doesn’t have one).


Yes, SimpleFonts work, but then might as well set the whole document that  
way -)



But for explanations, I’m afraid I’m only an average user :-(.


Pablo, you are anything but an average user :-) Many thanks for your time  
and help.


Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Setting the footnote symbol

2017-11-16 Thread Pablo Rodriguez
On 11/16/2017 07:18 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Yes, but the point of this scenario is to do everything with \definefont.  
> pagella is just for purposes of a MWE: otherwise the scenario calls for  
> using a font that has no associated typescript.
> 
> Put another way: We want to set up full control over font-style of each  
> element of a footnote using only \definefont. If that's impossible, it  
> would be good to know that as well as why.

I must confess that this is far beyond my knowledge. I never used
\definefont.

If you don’t mind using \definefontfamily, this works fine:

  \definefontfamily[lareba][rm][Larabiefont]

  \setupnote[footnote][textstyle={\setupbodyfont[lareba, 12pt]\high}

No previous typescript is required (Larabiefont doesn’t have one).

But for explanations, I’m afraid I’m only an average user :-(.

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] Setting the footnote symbol

2017-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد

On Thu, 16 Nov 2017 11:11:50 -0700, Pablo Rodriguez <oi...@gmx.es> wrote:


On 11/16/2017 06:57 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
On Thu, 16 Nov 2017 10:47:13 -0700, Pablo Rodriguez <oi...@gmx.es>  
wrote:

[...]
You should rewrite your \setupnote command in the following way:

  \setupnote[footnote][textcommand={\PagellaRegularSmall\high}]


Many thanks. This fixes the height, but we lose the styling of the
reference symbol in the main text - see attached.


I see. One of these commands should work:

\setupnote[footnote][textcommand={\switchtobodyfont[pagella, 12pt]\high}

\setupnote[footnote][textcommand={\setupbodyfont[pagella, 12pt]\high}


Yes, but the point of this scenario is to do everything with \definefont.  
pagella is just for purposes of a MWE: otherwise the scenario calls for  
using a font that has no associated typescript.


Put another way: We want to set up full control over font-style of each  
element of a footnote using only \definefont. If that's impossible, it  
would be good to know that as well as why.


Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Setting the footnote symbol

2017-11-16 Thread Pablo Rodriguez
On 11/16/2017 06:57 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> On Thu, 16 Nov 2017 10:47:13 -0700, Pablo Rodriguez <oi...@gmx.es> wrote:
>> [...]
>> You should rewrite your \setupnote command in the following way:
>>
>>   \setupnote[footnote][textcommand={\PagellaRegularSmall\high}]
> 
> Many thanks. This fixes the height, but we lose the styling of the  
> reference symbol in the main text - see attached.

I see. One of these commands should work:

\setupnote[footnote][textcommand={\switchtobodyfont[pagella, 12pt]\high}

\setupnote[footnote][textcommand={\setupbodyfont[pagella, 12pt]\high}

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] Setting the footnote symbol

2017-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear Pablo,

On Thu, 16 Nov 2017 10:47:13 -0700, Pablo Rodriguez <oi...@gmx.es> wrote:


On 11/16/2017 06:11 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

What do we need to do to get a raised footnote symbol in the main text
(line 6 of the pdf)? Thanks in advance.


BTW, I mixed the number which had to be raised.

By default, the textcommand option has a value of \high in \setupnote.

You should rewrite your \setupnote command in the following way:

  \setupnote[footnote][textcommand={\PagellaRegularSmall\high}]


Many thanks. This fixes the height, but we lose the styling of the  
reference symbol in the main text - see attached.


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

test-note.pdf
Description: Adobe PDF document


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Setting the footnote symbol

2017-11-16 Thread Pablo Rodriguez
On 11/16/2017 06:11 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> What do we need to do to get a raised footnote symbol in the main text  
> (line 6 of the pdf)? Thanks in advance.

BTW, I mixed the number which had to be raised.

By default, the textcommand option has a value of \high in \setupnote.

You should rewrite your \setupnote command in the following way:

  \setupnote[footnote][textcommand={\PagellaRegularSmall\high}]

I hope it is clear 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
___

[NTG-context] Setting the footnote symbol

2017-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد

Der gang,

For the following \definefont scenario, the footnote symbol in the main  
text is not raised:


===
\setuppapersize[letter][letter]

% \setupbodyfont[schola,12pt]
\definefont[PagellaRegular] [texgyrepagella-regular.otf at 14pt]
\definefont[PagellaRegularSmall][texgyrepagella-regular.otf at 12pt]

\setupwhitespace[big]
\setuplayout[width=4.5in,height=5.5in,backspace=2in]

\setupnotation[footnote][style={\PagellaRegularSmall},   % text style  
of the footnote text
 numbercommand=\PagellaRegularSmall, % symbol-font  
style in the footnote
 titlestyle={\PagellaRegularSmall}]  % Why is this  
necessary?
\setupnote[footnote][textcommand={\PagellaRegularSmall}] % symbol-font  
style in the main text


\noheaderandfooterlines

\starttext \PagellaRegular
\startframedtext[width=4.5in,offset=0pt]
\startlocalfootnotes
Hence in Met VII, where Aristotle debates with masterly penetration how to  
meet the claim of substance to be at once universal, intelligible, and  
definable, and at the same time unique and individual, the singular is at  
length superseded on the throne of substance by the infima species.

\startfootnote
Or \quotation{materiate form,} as Aristotle also calls it because it  
attains existence in a material embodiment and cannot be defined without  
reference to matter, though matter is itself indefinable. The discussion  
is interspersed with criticism of the forms. Aristotle attacks the theory  
as a purely arbitrary individualisation of universals, and the detail of  
the polemic, as well as the context, suggest that he is attacking Plato  
not for divorcing infimae species from singulars, but for separating and  
reifying genera taken apart from species. [\textellipsis]

\stopfootnote\
That is to say the genus is taken to be fully actualised in its infimae  
species, and its further differentiation into singulars is treated as  
irrelevant.


\placelocalfootnotes
\stoplocalfootnotes
\stopframedtext
\stoptext
===

What do we need to do to get a raised footnote symbol in the main text  
(line 6 of the pdf)? Thanks in advance.


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

test-note.pdf
Description: Adobe PDF document


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] definenote and localfootnotes

2017-11-03 Thread Pablo Rodriguez
On 11/03/2017 08:39 PM, Stanislav Sokolenko wrote:
> Hi,
> 
> I'm not sure if this is a bug or feature, but I noticed that custom 
> footnotes defined through \definenote do not appear when using 
> \placelocalfootnotes as per the following example:

Hi Stanislav,

footnotes are only one kind of notes. Not all notes are footnotes.

If you ask for footnotes, you will only get footnotes.

> Both the local and global footnotes appear as 1, 2 (so noteone is 
> numbered locally). Is there an alternative command to 
> \placelocalfootnotes that I can use to make noteone appear in the local 
> context?

\setuppapersize [A5]

\definenote [noteone] [footnote] % there is no different number
\setupnotation [noteone] [style=bold, headstyle=bold]
\setupnote [noteone] [textstyle=bold]

\starttext
   \startlocalnotes[footnote]
   \startlocalnotes[noteone]
   Testing footnote \footnote{this is a footnote}
   Testing noteone \noteone{this is noteone}
   \placelocalnotes[footnote]
   \placelocalnotes[noteone]
   \stoplocalnotes
   \stoplocalnotes

   Testing footnote \footnote{this is a footnote}
   Testing noteone \noteone{this is noteone}
\stoptext

BTW, I wonder whether it makes sense to have both kind of notes to share
numbering.

Just in case it may 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
___

[NTG-context] definenote and localfootnotes

2017-11-03 Thread Stanislav Sokolenko

Hi,

I'm not sure if this is a bug or feature, but I noticed that custom 
footnotes defined through \definenote do not appear when using 
\placelocalfootnotes as per the following example:


%
\setuppapersize [A5]

\definenote [noteone] [footnote]
\setupnotation [noteone] [style=bold, headstyle=bold]
\setupnote [noteone] [textstyle=bold]

\starttext
  \startlocalfootnotes
  Testing footnote \footnote{this is a footnote}
  Testing noteone \noteone{this is noteone}
  \placelocalfootnotes
  \stoplocalfootnotes

  Testing footnote \footnote{this is a footnote}
  Testing noteone \noteone{this is noteone}
\stoptext
%

Both the local and global footnotes appear as 1, 2 (so noteone is 
numbered locally). Is there an alternative command to 
\placelocalfootnotes that I can use to make noteone appear in the local 
context?


Thanks,

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] notes in the margin

2017-10-24 Thread Henning Hraban Ramm
Am 2017-04-09 um 21:46 schrieb Wolfgang Schuster <schuster.wolfg...@gmail.com>:

>> Henning Hraban Ramm 30. März 2017 um 10:30
>> While I’m still waiting for answers to my other questions, I got some more:
>> 
>> In my layout, left margin width is zero, but \inmargin always uses left 
>> margin.
>> I didn’t find a setup to change that – should 
>> \setupmargindata[location=right] do the trick? (it doesn’t, also not with 
>> left)
>> 
>> Further I’d like to place "foot"notes into the margin.
>> It works like this:
>> 
>> \setupnote[footnote][location=none]
>> \setupnotation[footnote][
>> align=flushleft,
>> location=serried,
>> width=broad,
>> ]
>> \setuptexttexts[margin][]
>> [{\framed[%
>> align=right,
>> frame=off,
>> height=\textheight,
>> width=\rightmarginwidth 
>> ]{\placenotes[footnote]}}]
>> 
>> But I’d like the notes to start in the line of the marker, if there’s space.
>> How can I achieve that?
> The only way I found to achieve this is by flushing the notes at the end of 
> each footnote
> entry which can be done with the next key. The positioning of each margin 
> text is tricky
> because \placenotes adds skips at the begin of the block (which can be 
> reduced with
> \placelocalnotes) but a inline version of the command (e.g. 
> \placeinlinenotes) which
> flushes the notes without vertical skips and a rule at the begin would help.
> 
> \define\PlaceFootnote
>   {\inrightmargin{\vtop{\placelocalnotes[footnote][before=,after=]}}}
> 
> \setupnote
>   [footnote]
>   [location=text,
>bodyfont=,
>next=\PlaceFootnote]
> 
> \setupnotation
>   [footnote]
>   [alternative=serried]
> 
> \setuplayout
>   [width=12cm,
>rightmargindistance=0.5cm,
>rightmargin=5cm]
> 
> \starttext
> \dorecurse{6}{\input ward\expanded{\footnote{This is a footnote 
> \recurselevel}} }
> \stoptext

Oh, seems like I didn’t answer to that, sorry.

Thank you very much, this solves my problem for the most part.

Coming back to this now, since I completed my previous book project (with the 
register issues) and attacking the next one (that needs those numbered marginal 
notes).

It would be nice if we had a solution how those notes won’t collide; is there 
some trick how I can shift a note up or down manually?

Additionally, since my note number gets its own line, I’d like to get rid of 
the indenting, but couldn’t find the right parameter.
This setup adds to Wolfgang’s:

\def\FNo#1{#1\crlf}

\setupnotation
  [footnote]
  [alternative=serried,
  width=broad,
  align=flushleft,
  numbercommand=\FNo]


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] size of footnote numbers

2017-09-30 Thread Otared Kavian
Hi Hraban,

If you want to change the way the footnote number in the text is shown 
something like a variation of the following might help you (copying this from a 
solution given by Wolfgang S. a few years ago…):

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


\starttext
Hi there!\footnote{I’m a footnote.}
\stoptext

Best regards: OK

> On 29 Sep 2017, at 13:34, Henning Hraban Ramm <te...@fiee.net> wrote:
> 
> Ahoi,
> 
> in my current book there are some quotations typeset in a smaller type (via 
> \switchtobodyfont in a defined startstop).
> 
> Now the author insists that their footnote numbers should have the same size 
> as in the body text.
> Since the footnotes are mostly source annotations at the end, it makes some 
> sense.
> 
> What would be the best way to achieve this?
> 
> Here’s my setup:
> 
> \setupbodyfont[alegreya,rm,11pt] % usual font size
> 
> \startsetups[myQuotation]
>  \setupwhitespace[none]
>  \setupnarrower[left=2em,right=2em]
>  \switchtobodyfont[rm,10pt]
> % I guess I should change the footnote number font size here?
> \stopsetups
> 
> \definestartstop[myQuotation][
>setups=myQuotation,
>before={
>  \testpage[2]
>  \startnarrower[left,right]
>  \noindent},
>after={\stopnarrower
>  \indenting[next]}]
> 
> 
> 
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] bug in latest beta (2017.08.02 18:59)

2017-08-03 Thread Hans Hagen

On 8/3/2017 7:49 AM, Pablo Rodriguez wrote:

On 08/03/2017 07:13 AM, Pablo Rodriguez wrote:

On 08/02/2017 11:08 PM, Hans Hagen wrote:

ok i uploaded a new beta (but with some experimental font stuff so who
knows what happens now)


I’m afraid I get a new crash with the same source (the log contains it):
[...]
lua error   > lua error on line 1 in file tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: You
cannot set field glue_sign in a node of type glue_spec
stack traceback:
[C]: in function 'setfield'
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]


Hans,

since it seems you don’t reproduce the bug, I wonder whether this might
be caused by Linux 32bit luatex binaries being version 1.0.5 and Windows
64bt has version 1.0.6.x.
no, it's more that i always have a newer luatex so older stuff has to be 
simulated


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] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Pablo Rodriguez
On 08/03/2017 07:13 AM, Pablo Rodriguez wrote:
> On 08/02/2017 11:08 PM, Hans Hagen wrote:
>> ok i uploaded a new beta (but with some experimental font stuff so who 
>> knows what happens now)
> 
> I’m afraid I get a new crash with the same source (the log contains it):
> [...]
> lua error   > lua error on line 1 in file tex-bug.tex:
> 
> ...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: You
> cannot set field glue_sign in a node of type glue_spec
> stack traceback:
>   [C]: in function 'setfield'
>   ...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: in
> function 'setboxglue'
>   ...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
> function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>
> 
> 1 >>  \setupnote[footnote]
> 2 [align={hanging}]

Hans,

since it seems you don’t reproduce the bug, I wonder whether this might
be caused by Linux 32bit luatex binaries being version 1.0.5 and Windows
64bt has version 1.0.6.x.

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] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Pablo Rodriguez
On 08/02/2017 11:08 PM, Hans Hagen wrote:
> ok i uploaded a new beta (but with some experimental font stuff so who 
> knows what happens now)

Hans,

I’m afraid I get a new crash with the same source (the log contains it):

open source > level 1, order 1, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  >
system  > ConTeXt  ver: 2017.08.02 23:00 MKIV beta  fmt:
2017.8.3  int: english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'tex-bug', input './tex-bug.xml',
result 'tex-bug'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name 'tex-bug.tex'
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
open source > level 3, order 4, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/sample/common/knuth.tex'
close source> level 3, order 4, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/sample/common/knuth.tex'

lua error   > lua error on line 1 in file tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: You
cannot set field glue_sign in a node of type glue_spec
stack traceback:
[C]: in function 'setfield'
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7


?

lua error   > lua error on line 1 in file tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: You
cannot set field glue_sign in a node of type glue_spec
stack traceback:
[C]: in function 'setfield'
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:965: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7

End of file on the terminal!

Many thanks for your help
-- 
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] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Hans Hagen

On 8/2/2017 10:53 PM, Pablo Rodriguez wrote:


lua error   > lua error on line 1 in file /home/ousia/tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: attempt
to call global 'setfield' (a nil value)
stack traceback:
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7

End of file on the terminal!

Many thanks for your help,
ok i uploaded a new beta (but with some experimental font stuff so who 
knows what happens now)


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] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Pablo Rodriguez
On 08/02/2017 10:43 PM, Hans Hagen wrote:
> On 8/2/2017 9:58 PM, Pablo Rodriguez wrote:
>> Hans,
>>
>> I’m afraid latest beta (2017.08.02 18:59) crashes with this source:
>> [...]
> crashes with what message?
Hans,

here you have the log contents:

open source > level 1, order 1, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  >
system  > ConTeXt  ver: 2017.08.02 18:59 MKIV beta  fmt:
2017.8.2  int: english/english
system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'tex-bug', input './tex-bug', result
'tex-bug'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/home/ousia/tex-bug.tex'
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
open source > level 3, order 4, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/sample/common/knuth.tex'
close source> level 3, order 4, name
'/home/ousia/ctxbeta/tex/texmf-context/tex/context/sample/common/knuth.tex'

lua error   > lua error on line 1 in file /home/ousia/tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: attempt
to call global 'setfield' (a nil value)
stack traceback:
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7


?

lua error   > lua error on line 1 in file /home/ousia/tex-bug.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: attempt
to call global 'setfield' (a nil value)
stack traceback:
...eta/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:962: in
function 'setboxglue'
...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:131: in
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-rul.lua:64>

1 >>  \setupnote[footnote]
2 [align={hanging}]
3
4 \starttext
5 a\footnote{\input knuth}
6 \stoptext
7

End of file on the terminal!

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] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Hans Hagen

On 8/2/2017 9:58 PM, Pablo Rodriguez wrote:

Hans,

I’m afraid latest beta (2017.08.02 18:59) crashes with this source:

 \setupnote[footnote]
 [align={hanging}]

 \starttext
 a\footnote{\input knuth}
 \stoptext

I’m afraid it might be a bug.

crashes with what message?


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

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

[NTG-context] bug in latest beta (2017.08.02 18:59)

2017-08-02 Thread Pablo Rodriguez
Hans,

I’m afraid latest beta (2017.08.02 18:59) crashes with this source:

\setupnote[footnote]
[align={hanging}]

\starttext
a\footnote{\input knuth}
\stoptext

I’m afraid it might be a bug.

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] whitespace between endnotes

2017-07-14 Thread Meer, Hans van der
Exactly what I was looking for. Thanks!

Hans van der Meer




> On 14 Jul 2017, at 17:07, Pablo Rodriguez <oi...@gmx.es> wrote:
> 
> On 07/14/2017 02:44 PM, Meer, Hans van der wrote:
>> \placenotes[endnote] puts a list of endnotes spaced out with the
>> setting of \setupwhitespace. Is there a means to keep
>> \setupwhitespace undisturbed but changing this for the endnotes
>> alone? Some parameter to be specified in \setupnote, \setupnotation
>> or one of its friends perhaps?
> Hans,
> 
> I guess this is what you need:
> 
>\startsetups[setups:endnotes]
>    \setupwhitespace[5em]
>\stopsetups
> 
>\setupnote
>[endnote]
>[before=\directsetup{setups:endnotes}]
> 
>\starttext
>\dorecurse{5}{\input zapf\endnote{\input knuth}}
>\placenotes[endnote]
>\stoptext
> 
> I hope it helps,
> 
> Pablo
> -- 
> http://www.ousia.tk
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] whitespace between endnotes

2017-07-14 Thread Pablo Rodriguez
On 07/14/2017 02:44 PM, Meer, Hans van der wrote:
> \placenotes[endnote] puts a list of endnotes spaced out with the
> setting of \setupwhitespace. Is there a means to keep
> \setupwhitespace undisturbed but changing this for the endnotes
> alone? Some parameter to be specified in \setupnote, \setupnotation
> or one of its friends perhaps?
Hans,

I guess this is what you need:

\startsetups[setups:endnotes]
\setupwhitespace[5em]
\stopsetups

\setupnote
[endnote]
[before=\directsetup{setups:endnotes}]

\starttext
\dorecurse{5}{\input zapf\endnote{\input knuth}}
\placenotes[endnote]
\stoptext

I hope it helps,

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

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

[NTG-context] whitespace between endnotes

2017-07-14 Thread Meer, Hans van der
\placenotes[endnote] puts a list of endnotes spaced out with the setting of 
\setupwhitespace. Is there a means to keep  \setupwhitespace undisturbed 
but changing this for the endnotes alone? Some parameter to be specified in 
\setupnote, \setupnotation or one of its friends perhaps?


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
___

[NTG-context] Problem with columns and footnotes

2017-06-30 Thread Henri Menke
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?

Cheers, Henri

---


\setupnote
  [footnote]
  [n=4,
   rule=no,
   frame=on,
   frameoffset=1ex]

\setupnotation
  [footnote]
  [alternative=hanging,
   align={raggedright,verytolerant}]

\setupcolumns
  [rule=on]

\starttext

\startcolumns[n=2]
  \input Knuth\footnote{FreeBSD tire ses origines de l'UNIX de Berkeley.}
  \input ward\footnote{This does not seem to be implemented yet.}
  \input hawking\footnote{Left, right (raggedleft, raggedright).}
  \input Knuth\footnote{Distance between columns bad hyphenation.}
  \input ward\footnote{Draw a line between the columns. Default is off.}
  \input Knuth\footnote{FreeBSD tire ses origines de l'UNIX de Berkeley.}
  \input ward\footnote{Draw a line between the columns. Default is off.}
  \input hawking\footnote{Left, right (raggedleft, raggedright).}
  \input Knuth\footnote{Distance between columns bad hyphenation.}
  \input ward\footnote{Draw a line between the columns. Default is off.}
  \input ward\footnote{Draw a line between the columns. Default is off.}
\stopcolumns

\stoptext

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] Index with distinguishable entries -- again

2017-04-27 Thread Rik Kabel

On 2017-04-27 07:14, Florian Grammel wrote:

Thank you very much for your example -- it really helps a lot!

That’s one smart trick for the endnotes. It will do fine for my 
current project, but obviously it will not work for footnotes directly 
on the pages.
I had somehow hoped that there would be something like „if within some 
environment/command" to the processors. With this also the formating 
of the items within the captions could be done automatically.


A real problem though is that adding
\setupregister [index] [compress=yes]
will wrongly compress e.g. "aaa 1, 2, 1n“ to "aaa 1–1n“. I’ll need to 
use compressed ranges and would be happy with a result, where 
formatted numbers a subsumed under the regular ones.

You don’t happen to know how to make this work correctly, do you?


I do not think that it is wrong in the way it reports compressed page 
numbers. The aaa entry is indeed on those consecutive pages. Add some 
blank pages (or pages without the indexed items) and look at the result.


You can use the same method I showed with indexed terms in footnotes. 
Just create another processor and use it in within the indexing command 
in the footnote, or create a new command to wrap it, as


   \defineprocessor[Footnote][style=bold,color=blue]
   \define[1]\fnindex{\index[Footnote->]{#1}}

of course, if you use the optional indexunder component already ( 
\index[as if it were spelled this way]{displayed as} ) then you will 
have to create a more complex command. (I leave that as an exercise for 
those who need it and do not want to fall back to the \index command.) So:


   \defineprocessor [backpart] [style=slanted,right=n]
   \defineprocessor [Figure] [style=\tf,color=red,left=f]
   \defineprocessor [Footnote] [style=bold,color=blue]
   \define[1]\fnindex{\index[Footnote->]{#1}}
   \define[1]\fiindex{\index[Figure->]{#1}}
   \defineconversionset [backpart:pagenumber][][backpart->o]
   \setupuserpagenumber[way=byblock]
   \setuppagenumbering [location=none]
   \setupheadertexts[{\convertedcounter[userpage][numberconversionset=number]}]
   \setupregister[index][compress=yes]
   %\setupnote[footnote][location=none]
   \useMPlibrary[dum]
   \starttext
   \startbodymatter
   \startchapter[title=A chapter]
  \index{aaa}This is in the main body.\footnote{\fnindex{bbb}This
   is a footnote.}
   \stopchapter
   \startchapter[title={Another chapter}]
  \index{aaa}This is in the main body.\footnote{\fnindex{bbb}This
   is a footnote.}
  \startplacefigure[location=default,
  title={Body illustration\fiindex{ccc}}]
\externalfigure[dummy][]
  \stopplacefigure
   \stopchapter
   \startchapter[title=A third chapter]
  This is in the main body.\footnote{This is a footnote.}
   \stopchapter
   \startchapter[title=A fourth chapter]
  This is in the main body.
   \stopchapter
   \startchapter[title={Another chapter}]
  \index{aaa}This is in the main body.\footnote{\fnindex{bbb}This
   is a footnote.}
  \startplacefigure[location=default,
  title={Body illustration\fiindex{ccc}}]
\externalfigure[dummy][]
  \stopplacefigure
   \stopchapter
   \stopbodymatter
   \page
   \startbackmatter
   \startchapter[title=An appendix]
  This is in the backmatter.\index{aaa}\footnote{\index{bbb}This is
   a footnote.}
  \startplacefigure[location=default,
  title={Appendix illustration\index[Figure->]{ddd}}]
\externalfigure[dummy][]
  \stopplacefigure
   \stopchapter
   \startchapter[title=Notes]
  \placenotes[footnote]
   \stopchapter
   \startchapter[title=Index]
  \placeregister[index]
   \stopchapter
   \stopbackmatter
   \stoptext

Of course, there may be conflicts. You may index the same term twice on 
one page, once in the text, once in a footnote. Context will not choke, 
and there is a fifty-fifty chance it will default to what you want.


--
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] Index with distinguishable entries -- again

2017-04-27 Thread Florian Grammel
Thank you very much for your example -- it really helps a lot!

That’s one smart trick for the endnotes. It will do fine for my current 
project, but obviously it will not work for footnotes directly on the pages.
I had somehow hoped that there would be something like „if within some 
environment/command" to the processors. With this also the formating of the 
items within the captions could be done automatically.

A real problem though is that adding
\setupregister [index] [compress=yes]
will wrongly compress e.g. "aaa 1, 2, 1n“ to "aaa 1–1n“. I’ll need to use 
compressed ranges and would be happy with a result, where formatted numbers a 
subsumed under the regular ones.
You don’t happen to know how to make this work correctly, do you?

Best,
Florian.


> 
> On 2017-04-26 09:18, Florian Grammel wrote:
>> Back in april 2012 Robert Blackstone asked some questions about indexing
>> http://www.mail-archive.com/ntg-context@ntg.nl/msg63134.html 
>> <http://www.mail-archive.com/ntg-context@ntg.nl/msg63134.html>
>> i.a.:
>> 
>>> For a book in the area of musicology I would like to make one register with 
>>> entries of different kinds, distinguishable by their appearance in the  
>>> register (or index or whatever).
>>> The index entries will mostly be authors, including composers, musical 
>>> terms 
>>> and musical compositions. The titles of the compositions and the foreign 
>>> words 
>>> are set in italic characters throughout in the text of the book.
>>> What I would like is to be able to distinguish all entries according to 
>>> whether 
>>> they are treated in the text, are shown in a musical example, or are 
>>> mentioned 
>>> only in a foot- or endnote.
>>> 
>>> In many books page numbers indicating illustrations are set in italics. 
>>> Pagenumbers indicating foot- or endnotes often have a suffix "n".
>>> 
>> His other question were resolved, but this one remained unanswered, apart 
>> from that two other users also wanted to do exactly the same thing.
>> 
>> I would like to do something very similar and was wondering: Has this been 
>> addressed/solved since then?
>> 
>> 
> Perhaps the following can help. It has separate user page numbers for the 
> main matter and back matter, with a suffixed ‘n’ for the items indexed from 
> backmatter pages, but no suffix on the backmatter page numbers. The index 
> entries for figures are rubricated and have a leading ‘f’.
> 
> \defineprocessor [backpart] [style=slanted,right=n]
> \defineprocessor [Figure] [style=\tf,color=red,left=f]
> \defineconversionset [backpart:pagenumber][][backpart->o]
> \setupuserpagenumber[way=byblock]
> \setuppagenumbering [location=none]
> \setupheadertexts[{\convertedcounter[userpage][numberconversionset=number]}]
> \setupnote[footnote][location=none]
> \useMPlibrary[dum]
> \starttext
> \startbodymatter
> \startchapter[title=A chapter]
>   \index{aaa}This is in the main body.\footnote{\index{bbb}This is a 
> footnote.}
> \stopchapter
> \startchapter[title={Another chapter}]
>   \index{aaa}This is in the main body.\footnote{\index{bbb}This is a 
> footnote.}
>   \startplacefigure[location=default,
>   title={Body illustration\index[Figure->]{ccc}}]
> \externalfigure[dummy][]
>   \stopplacefigure
> \stopchapter
> \stopbodymatter
> \page
> \startbackmatter
> \startchapter[title=An appendix]
>   This is in the backmatter.\index{aaa}\footnote{\index{bbb}This is a 
> footnote.}
>   \startplacefigure[location=default,
>   title={Appendix illustration\index[Figure->]{ddd}}]
> \externalfigure[dummy][]
>   \stopplacefigure
> \stopchapter
> \startchapter[title=Notes]
>   \placenotes[footnote]
> \stopchapter
> \startchapter[title=Index]
>   \placeregister[index]
> \stopchapter
> \stopbackmatter
> \stoptext
> 
> -- 
> Rik
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Index with distinguishable entries -- again

2017-04-26 Thread Rik Kabel

On 2017-04-26 09:18, Florian Grammel wrote:

Back in april 2012 Robert Blackstone asked some questions about indexing
http://www.mail-archive.com/ntg-context@ntg.nl/msg63134.html
i.a.:


For a book in the area of musicology I would like to make one register with
entries of different kinds, distinguishable by their appearance in the
register (or index or whatever).
The index entries will mostly be authors, including composers, musical terms
and musical compositions. The titles of the compositions and the foreign words
are set in italic characters throughout in the text of the book.
What I would like is to be able to distinguish all entries according to whether
they are treated in the text, are shown in a musical example, or are mentioned
only in a foot- or endnote.

In many books page numbers indicating illustrations are set in italics.
Pagenumbers indicating foot- or endnotes often have a suffix "n".


His other question were resolved, but this one remained unanswered, apart from 
that two other users also wanted to do exactly the same thing.

I would like to do something very similar and was wondering: Has this been 
addressed/solved since then?


Perhaps the following can help. It has separate user page numbers for 
the main matter and back matter, with a suffixed ‘n’ for the items 
indexed from backmatter pages, but no suffix on the backmatter page 
numbers. The index entries for figures are rubricated and have a leading 
‘f’.


   \defineprocessor [backpart] [style=slanted,right=n]
   \defineprocessor [Figure] [style=\tf,color=red,left=f]
   \defineconversionset [backpart:pagenumber][][backpart->o]
   \setupuserpagenumber[way=byblock]
   \setuppagenumbering [location=none]
   \setupheadertexts[{\convertedcounter[userpage][numberconversionset=number]}]
   \setupnote[footnote][location=none]
   \useMPlibrary[dum]
   \starttext
   \startbodymatter
   \startchapter[title=A chapter]
  \index{aaa}This is in the main body.\footnote{\index{bbb}This is
   a footnote.}
   \stopchapter
   \startchapter[title={Another chapter}]
  \index{aaa}This is in the main body.\footnote{\index{bbb}This is
   a footnote.}
  \startplacefigure[location=default,
  title={Body illustration\index[Figure->]{ccc}}]
\externalfigure[dummy][]
  \stopplacefigure
   \stopchapter
   \stopbodymatter
   \page
   \startbackmatter
   \startchapter[title=An appendix]
  This is in the backmatter.\index{aaa}\footnote{\index{bbb}This is
   a footnote.}
  \startplacefigure[location=default,
  title={Appendix illustration\index[Figure->]{ddd}}]
\externalfigure[dummy][]
  \stopplacefigure
   \stopchapter
   \startchapter[title=Notes]
  \placenotes[footnote]
   \stopchapter
   \startchapter[title=Index]
  \placeregister[index]
   \stopchapter
   \stopbackmatter
   \stoptext


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

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

Re: [NTG-context] notes in the margin

2017-04-09 Thread Wolfgang Schuster




Henning Hraban Ramm <mailto:te...@fiee.net>
30. März 2017 um 10:30
While I’m still waiting for answers to my other questions, I got some 
more:


In my layout, left margin width is zero, but \inmargin always uses 
left margin.
I didn’t find a setup to change that – should 
\setupmargindata[location=right] do the trick? (it doesn’t, also not 
with left)


Further I’d like to place "foot"notes into the margin.
It works like this:

\setupnote[footnote][location=none]
\setupnotation[footnote][
align=flushleft,
location=serried,
width=broad,
]
\setuptexttexts[margin][]
[{\framed[%
align=right,
frame=off,
height=\textheight,
width=\rightmarginwidth
]{\placenotes[footnote]}}]

But I’d like the notes to start in the line of the marker, if there’s 
space.

How can I achieve that?
The only way I found to achieve this is by flushing the notes at the end 
of each footnote
entry which can be done with the next key. The positioning of each 
margin text is tricky
because \placenotes adds skips at the begin of the block (which can be 
reduced with
\placelocalnotes) but a inline version of the command (e.g. 
\placeinlinenotes) which

flushes the notes without vertical skips and a rule at the begin would help.

\define\PlaceFootnote
  {\inrightmargin{\vtop{\placelocalnotes[footnote][before=,after=]}}}

\setupnote
  [footnote]
  [location=text,
   bodyfont=,
   next=\PlaceFootnote]

\setupnotation
  [footnote]
  [alternative=serried]

\setuplayout
  [width=12cm,
   rightmargindistance=0.5cm,
   rightmargin=5cm]

\starttext
\dorecurse{6}{\input ward\expanded{\footnote{This is a footnote 
\recurselevel}} }

\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] notes in the margin

2017-04-09 Thread Pablo Rodriguez
On 04/08/2017 07:01 PM, Henning Hraban Ramm wrote:
> Am 2017-04-05 um 20:42 schrieb Pablo Rodriguez:
>> doesn’t \setupmargindata[inmargin][location=right] do the trick?
> 
> No, but \setupmargindata[inmargin][location=outer]

Hi Hraban,

since your layout had left margin width set to zero, I recommended
[location=right].

Glad to read it helped.

> The notes collide with my moved "foot"notes, but I wasn’t planning to
> use both anyway.

Even if there were no collision, I guess that using the same margin for
both notes would be misleading.

>> But I guess that this may be implemented (if Hans agrees) with
>> \setupnote[location=margin].
> 
> That would be very nice.

I guess Hans won’t be able to take a look until ConTeXt and LuaTeX are
released for TeX Live 2017.

> I guess the stacking mechanism from \inmargin could be reused, so 
> that the notes start at the same height as the footnote marker, if
> there is enough space.
> 
> I don’t understand the code – is this in page-one.mkiv?

Which code? The file you mention is all Greek to me.

> Or should I try to use marginblocks (page-mbk.mvi) or margindata
> (typo-mar.mkiv)?

I don’t know, but both mechanisms aren’t able to split content between
pages:

\setupmarginblocks[width=.8\rightmarginwidth]
\starttext
\dorecurse{5}{\input zapf
\startmarginblock\input knuth\stopmarginblock}
\stoptext

Just in case it helps,

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

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

Re: [NTG-context] notes in the margin

2017-04-08 Thread Henning Hraban Ramm
Am 2017-04-05 um 20:42 schrieb Pablo Rodriguez <oi...@gmx.es>:

> On 04/04/2017 10:27 AM, Henning Hraban Ramm wrote:
>>> In my layout, left margin width is zero, but \inmargin always uses left 
>>> margin.
>> Ok, I can use \inouter.
> 
> doesn’t \setupmargindata[inmargin][location=right] do the trick?

No, but \setupmargindata[inmargin][location=outer]

Thank you! ;)

The notes collide with my moved "foot"notes, but I wasn’t planning to use both 
anyway.

>>> Further I’d like to place "foot"notes into the margin.
>>> It works like this:
>> 
>> "it works" means: The footnotes are placed in the margin, but collected at 
>> the bottom, like normal footnotes.
>> I’d like numbered marginals.
> 
> Sorry, my ConTeXt ignorance cannot deal with that.
> 
> But I guess that this may be implemented (if Hans agrees) with
> \setupnote[location=margin].

That would be very nice.

I guess the stacking mechanism from \inmargin could be reused, so that the 
notes start at the same height as the footnote marker, if there is enough space.

I don’t understand the code – is this in page-one.mkiv?

Or should I try to use marginblocks (page-mbk.mvi) or margindata 
(typo-mar.mkiv)?


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] notes in the margin

2017-04-05 Thread Pablo Rodriguez
On 04/04/2017 10:27 AM, Henning Hraban Ramm wrote:
> Bump. I’d really appreciate answers, since my next project depends on it. 
> Thank you.
> 
> Am 2017-03-30 um 10:30 schrieb Henning Hraban Ramm <te...@fiee.net>:
> 
>> While I’m still waiting for answers to my other questions, I got some more:
>>
>> In my layout, left margin width is zero, but \inmargin always uses left 
>> margin.
> 
> Ok, I can use \inouter.

Hi Hraban,

doesn’t \setupmargindata[inmargin][location=right] do the trick?

>> I didn’t find a setup to change that – should 
>> \setupmargindata[location=right] do the trick? (it doesn’t, also not with 
>> left)
>>
>> Further I’d like to place "foot"notes into the margin.
>> It works like this:
> 
> "it works" means: The footnotes are placed in the margin, but collected at 
> the bottom, like normal footnotes.
> I’d like numbered marginals.

Sorry, my ConTeXt ignorance cannot deal with that.

But I guess that this may be implemented (if Hans agrees) with
\setupnote[location=margin].

I thought something similar about notes, but I didn’t dare to mention
it, since I had other issues first and Hans seems to be especially busy
these days.


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] notes in the margin

2017-04-04 Thread Henning Hraban Ramm
Bump. I’d really appreciate answers, since my next project depends on it. Thank 
you.

Am 2017-03-30 um 10:30 schrieb Henning Hraban Ramm <te...@fiee.net>:

> While I’m still waiting for answers to my other questions, I got some more:
> 
> In my layout, left margin width is zero, but \inmargin always uses left 
> margin.

Ok, I can use \inouter.

> I didn’t find a setup to change that – should 
> \setupmargindata[location=right] do the trick? (it doesn’t, also not with 
> left)
> 
> Further I’d like to place "foot"notes into the margin.
> It works like this:

"it works" means: The footnotes are placed in the margin, but collected at the 
bottom, like normal footnotes.
I’d like numbered marginals.

> 
> \setupnote[footnote][location=none]
> \setupnotation[footnote][
>align=flushleft,
>location=serried,
>width=broad,
> ]
> \setuptexttexts[margin][]
> [{\framed[%
>align=right,
>frame=off,
>height=\textheight,
>width=\rightmarginwidth   
> ]{\placenotes[footnote]}}]
> 
> But I’d like the notes to start in the line of the marker, if there’s space.
> How can I achieve that?
> 
> 
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> GPG Key ID 1C9B22FD

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] notes in the margin

2017-03-30 Thread Henning Hraban Ramm
While I’m still waiting for answers to my other questions, I got some more:

In my layout, left margin width is zero, but \inmargin always uses left margin.
I didn’t find a setup to change that – should \setupmargindata[location=right] 
do the trick? (it doesn’t, also not with left)

Further I’d like to place "foot"notes into the margin.
It works like this:

\setupnote[footnote][location=none]
\setupnotation[footnote][
align=flushleft,
location=serried,
width=broad,
]
\setuptexttexts[margin][]
[{\framed[%
align=right,
frame=off,
height=\textheight,
width=\rightmarginwidth   
]{\placenotes[footnote]}}]

But I’d like the notes to start in the line of the marker, if there’s space.
How can I achieve that?


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Altering footnotes via \setupfootnotes

2017-03-27 Thread Rik

On 2017-03-27 09:16, Procházka Lukáš Ing. wrote:

Hello Henri,

that's it - thank you for the solution!

BTW - Your code seems to work even without \blank[-line]:


\setupnote
  [footnote]
  [after={\switchtobodyfont[\noteparameter{bodyfont}]}]

\setupnotation
  [footnote]
  [
after={\blank[line]},
indenting={yes,medium},
  ]

\starttext

\input knuth\footnote{\input knuth }

\input ward\footnote{\input ward }

\stoptext


Thank you anyway.

Best regards,

Lukas


On Sat, 25 Mar 2017 03:43:54 +0100, Henri Menke <henrime...@gmail.com> 
wrote:


Indenting is easy.  For space in between I haven’t found anything 
useful.  You can hack something with after.


\setupnote
  [footnote]
[after={\switchtobodyfont[\noteparameter{bodyfont}]\blank[-line]}]

\setupnotation
  [footnote]
  [
after={\blank[line]},
indenting={yes,medium},
  ]

\starttext

\input knuth\footnote{\input knuth }

\input ward\footnote{\input ward }

\stoptext

The \blank[-line] in \setupnote is necessary. It acts to remove the 
final \blank[line] via \setupnotation. To see, process the file with and 
without an addeed \showframe.


--
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] Altering footnotes via \setupfootnotes

2017-03-27 Thread Procházka Lukáš Ing .

Hello Henri,

that's it - thank you for the solution!

BTW - Your code seems to work even without \blank[-line]:


\setupnote
  [footnote]
  [after={\switchtobodyfont[\noteparameter{bodyfont}]}]

\setupnotation
  [footnote]
  [
after={\blank[line]},
indenting={yes,medium},
  ]

\starttext

\input knuth\footnote{\input knuth }

\input ward\footnote{\input ward }

\stoptext


Thank you anyway.

Best regards,

Lukas


On Sat, 25 Mar 2017 03:43:54 +0100, Henri Menke <henrime...@gmail.com> wrote:


Indenting is easy.  For space in between I haven’t found anything useful.  You 
can hack something with after.

\setupnote
  [footnote]
  [after={\switchtobodyfont[\noteparameter{bodyfont}]\blank[-line]}]

\setupnotation
  [footnote]
  [
after={\blank[line]},
indenting={yes,medium},
  ]

\starttext

\input knuth\footnote{\input knuth }

\input ward\footnote{\input ward }

\stoptext

On 03/25/2017 12:06 PM, Lukas Prochazka wrote:

Hello,

are there keys to \setupfootnotes to:

- increase vertical space between two footnotes,
- enable indenting paragraphs in the scope of footnotes?

I tried some keys following wiki but with no success... Is there a way?

Thank you in advance.

Best regards,

Lukas

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

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



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] Altering footnotes via \setupfootnotes

2017-03-24 Thread Henri Menke
Indenting is easy.  For space in between I haven’t found anything useful.  You 
can hack something with after.

\setupnote
  [footnote]
  [after={\switchtobodyfont[\noteparameter{bodyfont}]\blank[-line]}]

\setupnotation
  [footnote]
  [
after={\blank[line]},
indenting={yes,medium},
  ]

\starttext

\input knuth\footnote{\input knuth }

\input ward\footnote{\input ward }

\stoptext

On 03/25/2017 12:06 PM, Lukas Prochazka wrote:
> Hello,
> 
> are there keys to \setupfootnotes to:
> 
> - increase vertical space between two footnotes,
> - enable indenting paragraphs in the scope of footnotes?
> 
> I tried some keys following wiki but with no success... Is there a way?
> 
> Thank you in advance.
> 
> Best regards,
> 
> Lukas
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] compression not working in linenotes

2017-03-02 Thread Pablo Rodriguez
On 03/01/2017 07:40 PM, Pablo Rodriguez wrote:
> Dear list,
> 
> I don’t get compressed linenotes with this source:
> 
> \setuppapersize[A5]
> \setupnote[linenote][paragraph=yes]
> \setupnotation[linenote]
> [alternative=serried, compress=yes, compressseparator=]
> [...]
> Am I missing something or is it a bug?

Replying to myself: the compression options belong to \setupnote and not
to \setupnotation.

Sorry for the noise.

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] compression not working in linenotes

2017-03-01 Thread Pablo Rodriguez
Dear list,

I don’t get compressed linenotes with this source:

\setuppapersize[A5]
\setupnote[linenote][paragraph=yes]
\setupnotation[linenote]
[alternative=serried, compress=yes, compressseparator=]
\starttext
\startlinenumbering
\dorecurse{100}{text\linenote{variant} }
\stoplinenumbering
\stoptext

Am I missing something or is it a 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] interlinespace for \setuplist

2016-12-06 Thread Pablo Rodriguez
Hans,

I have the following sample:

\setuppapersize[A5]
\setupinterlinespace[line=4em]
\startsetups[interlinesp:section]
\setupinterlinespace[line=3em]
\stopsetups
\startsetups[interlinesp:subsection]
\setupinterlinespace[line=2.8em]
\stopsetups
\setuplist[section][style=\scb, setups=interlinesp:section]
\setuplist[subsection]
[style=\itx, alternative=d, pagenumber=no, headnumber=no,
setups=interlinesp:subsection]
\starttext
\completecontent
\section{Zweites Hauptstück. Von der Deduction der reinen
Verstandesbegriffe}\dorecurse{5}{\subsection{Erster Abschnitt. Von
den Principien einer transscendentalen Deduction überhaupt}}
\stoptext

I’m afraid interlinespace for \setuplist cannot be set even using setups
(no matter which alternative \setuplist uses).

As you did with \setupnote, would it be possible to implement a
interlinespace key in \setuplist?

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
___

[NTG-context] first and last note in page

2016-11-26 Thread Pablo Rodriguez
Hans,

I have the following sample:

\setuppagenumbering[A6]

\setupheadertexts[{\getmarking[chapter]}]

\definesectionblock
[whatcomeslast]
[lastmatter]
[number=no]

\setupsectionblock
[lastmatter]
[page=no,
 after=\page]

\setupnote
[footnote]
[location=text]

\starttext
\chapter{Knuth}
\dorecurse{50}{\input knuth\footnote{\input zapf}}
\chapter{Notes}\placefootnotes
\stoptext

Is there any way to have the first and last footnote number in header
text, so that it will be "Notes 5 to 10"?

I think something like \firstreferenceinpage[footnote] and
\lastreferenceinpage[footnote] would make sense here.

(This could be also applied to \firstreferenceinpage[linenumber] and
\lastreferenceinpage[linenumber].)

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 Pablo Rodriguez
On 11/23/2016 10:58 PM, Hans Hagen wrote:
> On 11/23/2016 10:31 PM, Pablo Rodriguez wrote:
>> [...]
>> I reported an issue about the distance in the before option from
>> \setupnote not being honoured when using paragraphed notes (many times,
>> being the last one
>> https://mailman.ntg.nl/pipermail/ntg-context/2014/077280.html).
>>
>> In the attached PDF file, pages 1, 4 and 5 (maybe page 2 should be
>> included in that series) don’t respect
>> \setupnote[critical][before={\blank[big]}].
>>
>> So my question is: would the key "spacebefore" fix this issue?
> 
> you could try it ... with paragraph notes you'd better then use a bit 
> larger spacebefore because rendering them is kind of fuzzy (i.e. the 
> paragraph can only be rendered after the page is split so there is some 
> guess work involved (which can result in the blank space begin used as 
> overflow)

So, looking forward the next luatex binary being released for the Linux
32bit platform... ;-)

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 Hans Hagen

On 11/23/2016 10:31 PM, Pablo Rodriguez wrote:

On 11/22/2016 08:14 PM, Hans Hagen wrote:

[...]
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).


Hans,

I reported an issue about the distance in the before option from
\setupnote not being honoured when using paragraphed notes (many times,
being the last one
https://mailman.ntg.nl/pipermail/ntg-context/2014/077280.html).

In the attached PDF file, pages 1, 4 and 5 (maybe page 2 should be
included in that series) don’t respect
\setupnote[critical][before={\blank[big]}].

So my question is: would the key "spacebefore" fix this issue?


you could try it ... with paragraph notes you'd better then use a bit 
larger spacebefore because rendering them is kind of fuzzy (i.e. the 
paragraph can only be rendered after the page is split so there is some 
guess work involved (which can result in the blank space begin used as 
overflow)



-
  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] TwoColumns in two different languages, with alternate text on even and odd page.

2016-11-23 Thread Pablo Rodriguez
On 11/22/2016 08:14 PM, Hans Hagen wrote:
> [...]
> 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).

Hans,

I reported an issue about the distance in the before option from
\setupnote not being honoured when using paragraphed notes (many times,
being the last one
https://mailman.ntg.nl/pipermail/ntg-context/2014/077280.html).

In the attached PDF file, pages 1, 4 and 5 (maybe page 2 should be
included in that series) don’t respect
\setupnote[critical][before={\blank[big]}].

So my question is: would the key "spacebefore" fix this issue?

Many thanks for your help,

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


hefestio-ctx-mailinglist.pdf
Description: Adobe PDF document
\showframe
\mainlanguage[la]
\setuplanguage[la][patterns={la,agr}]
\definefontfamily[mainface][serif][Minion Pro]
\setupbodyfont[mainface,12pt]
\setupbodyfontenvironment[default][em=italic]
\setupinterlinespace[line=3ex]
\setuplinenumbering[location=left, step=5, method=section, style=\tfxx, align=left, distance=1em, width=0.4em]
\setuppagenumbering[alternative=doublesided,location=]

\definelinenote[comment]
\setupnote[comment][paragraph=yes, rule=off, split=verystrict, scope=page, inbetween={\hskip1.5em plus.15em minus.15em}]
\setupnotation[comment][numbercommand=,alternative=serried,distance=.5em,width=broad,compress=yes,compressseparator=]

\definelinenote[critical]
\setupnote[critical][paragraph=yes, rule=off, split=verystrict, scope=page, inbetween=\hskip1.5em, before={\blank[big]}]
\setupnotation[critical][numbercommand=,alternative=serried,distance=.5em,width=broad,compress=yes,compressseparator=]

\def\variante#1#2{#1\critical{#1] #2}}
\def\comentario#1#2{#1\comment{#2}}

\starttext

\title{Ἰωάννου γραμματικοῦ τοῦ Τζέτζου\\Τὰ πρὸ Ὁμήρου}

\startlinenumbering
Ἀργαλεοῦ πολέμοιο \variante{μέγαν κλόνον}{κακὸν πόνον Jac.} Ἰλιακοῖο\\
ἔννεπε, Καλλιόπεια, ὑφ᾽ ἡμετέρῃσιν ἀοιδαῖς,\\
ἀρχῆθε δ᾽ ἐπαέιδε καὶ ἐς τέλος ἐξερέεινε,\\
ἐξ \variante{ὅτεο}{ὅτεω P, ὅτε ὁ Jac.} Πρίαμος λοιγὸν Τρώεσσι φυτεύει\\
\comentario{δύσπαριν}{δύσπαριν, cf. {\em Il.} 3.39, 13.769 (δύσπαρι). Cf. et {\em Sud.} δ, 1681: Δύσπαρι· ἐπὶ κακῷ ὠνομασμένε, οἷον ζήσας ὡς Πάρις, δυσώνυμε. } οὐλόμενον, \comentario{ἀρχὴν πολέμοιο κακοῖο}{ἀρχὴν πολέμοιο κακοῖο cf. {\em Il.} 8.374: Ἀλεξάνδροιο, τοῦ εἵνεκα νεῖκος ὄρωρε.},\\
τὸν νόος οὐκ ἐρέεινεν Ὁμήρου κυδαλίμοιο.\\
Ἔννεπε δ᾽ Ἀργείης Ἑλένης ἐρόεσσαν ὀπωπήν,\\
πῶς τέ \variante{μιν}{μέν A} ἦγεν Ἀλέξανδρος \variante{Σπάρτηθεν Τροίην}{Σπάρτηθεν ἐς Τροίην P, Σπαρτῆθε Τροΐην Jac.}.\\
Ἔννεπε δὲ πλόον Ἑλλήνων καὶ νῆας ἁπάσας·\\
εἰπὲ δὲ Πηλείδαο κότον καὶ ὄλεθρον Ἀχαιῶν,\\
Σαρπηδόντος Πατρόκλου τε καὶ Ἕκτορος οἶτον·\\
εἰπὲ δὲ Πενθεσίλειαν, \comentario{κούρην ἀντιάνειραν}{κούρην ἀντιάνειραν cf. {\em Il.} 3.189, 6.186 et Nonnus, {\em Dyon.} 48.248.}.\\
Ἔννεπε δ᾽ Αἰθιόπων στρατόν, \variante{υἱέα τ᾽}{υἷά τε V, υἷα δ᾽ A} Ἠριγενείης.\\
Φράζεο δ᾽ Αἰακίδαο πότμον \variante{δακρυόεντα}{ὀκρυόεντα V}·\\
Εὐρύπυλόν τε ἄειδε καὶ υἱέα Αἰακίδαο·\\
μαντείας δ᾽ Ἑλένου καὶ Ἀλεξάνδροιο φονῆα.\\
Εἰπὲ δὲ καὶ πτολίπορθον Ἐπείου \variante{δούριον}{δούρειον A, δούρεον Jac.} ἵππον,\\
εἴσοκεν ἠϊστωσε πελώρια τείχεα Τροίης.\\
Ταῦτά μοι εὐπατέρεια, Διὸς τέκος, ἔννεπε Μοῦσα.\\
\variante{Ἤτοι}{ἥ τοι Schir.} μὲν Τροίη πολέμοις \variante{προτέροις}{πρότερον Bekk.} μογέεσκε,\\
πέρσε γὰρ αὐτὴν Ἡρακλέος μένος ἀγριοθύμου·\\
δουρὶ δ᾽ αὖ \variante{αἱ}{om. Jac.} Σκυθόμητρες ἐπέδραμον εἶτα γυναῖκες,\\
\comentario{θυγατέρες Ἄρηος}{θυγατέρες á

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

Re: [NTG-context] Notes after a chapter

2016-07-22 Thread Ursula Hermann
Hallo Wolfgang

 

That works. Thanks a lot. 

 

Uschi

 

Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang
Schuster
Gesendet: Donnerstag, 21. Juli 2016 22:55
An: mailing list for ConTeXt users
Betreff: Re: [NTG-context] Notes after a chapter

 

 <mailto:ursula.herm...@univie.ac.at> Ursula Hermann

21. Juli 2016 um 16:04

Hello list, 

 

I would like to have notes after a section. Now I would like to know: in the
command\setupfootnote there is a key called :after, but  the key had a red
color, i don’t know if i could need it, and i don’t know what command i
should give in the key after: maybe after=section? Sorry for the long text
below.

I don’t know what you mean with the red color but you can place notes at the
end of a chapter with the following setup.

\setupnote[footnote][location=none]

\setuphead[chapter][aftersection={\placenotes[footnote]}]

\starttext

\startchapter[title={Ward}]
\dorecurse{12}{\input ward \footnote{Footnote #1}\par}
\stopchapter

\stoptext




My second question is: When there are notes, which are after all sections,
what there is the right command: 

I have : 

\setuppapersize[A4]

\definelinenote[note]

\setuplinenote[note]

\setupdescription[note]

\starttext

\startchapter

\mainlanguage[de]

DIE INFORMELLE WIRTSCHAFT

Zwischen neuen Entwicklungen und alten Rahmenbedingungen

Das Wachstum einer informellen Wirtschaft in den Großstädten
hochentwickelter Länder wirft neue Fragen über die Beziehung auf, die heute
zwischen der Wirtschaft einerseits und den gesetzlichen Regelungen
andererseits besteht. \note {1}Den Begriff »informelle Wirtschaft« verwende
ich für jene einkommenbringenden Tätigkeiten, die außerhalb der gesetzlichen
Regelungen stattfinden, aber dennoch denen, die sich daran halten, ähneln;
so werden Umfang und Wesen der informellen Wirtschaft dennoch durch diese
Regelungen, denen sie sich eigentlich entziehen, bestimmt. Aus diesem Grund
kann man das Wesen der informellen Wirtschaft, der Schattenwirtschaft, nur
dann erfassen, wenn man sie in Beziehung zur offiziellen Wirtschaft setzt,
also zu den geregelten einkommenbringenden Tätigkeiten.

\stoptext

 

1. \stopchapter is missing in your example

2. The \note command already exists and you redefine it in your example
which is a bad idea.

3. Where do you have a note *after* a section in your example?

Wolfgang

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

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

Re: [NTG-context] Notes after a chapter

2016-07-21 Thread Wolfgang Schuster

Ursula Hermann <mailto:ursula.herm...@univie.ac.at>
21. Juli 2016 um 16:04

Hello list,

I would like to have notes after a section. Now I would like to know: 
in the command\setupfootnote there is a key called :after, but  the 
key had a red color, i don't know if i could need it, and i don't know 
what command i should give in the key after: maybe after=section? 
Sorry for the long text below.


I don't know what you mean with the red colorbut you can place notes at 
the end of a chapter with the following setup.


\setupnote[footnote][location=none]

\setuphead[chapter][aftersection={\placenotes[footnote]}]

\starttext

\startchapter[title={Ward}]
\dorecurse{12}{\input ward \footnote{Footnote #1}\par}
\stopchapter

\stoptext

My second question is: When there are notes, which are after all 
sections, what there is the right command:


I have :

\setuppapersize[A4]

\definelinenote[note]

\setuplinenote[note]

\setupdescription[note]

\starttext

\startchapter

\mainlanguage[de]

DIE INFORMELLE WIRTSCHAFT

Zwischen neuen Entwicklungen und alten Rahmenbedingungen

Das Wachstum einer informellen Wirtschaft in den Großstädten 
hochentwickelter Länder wirft neue Fragen über die Beziehung auf, die 
heute zwischen der Wirtschaft einerseits und den gesetzlichen 
Regelungen andererseits besteht. \note {1}Den Begriff »informelle 
Wirtschaft« verwende ich für jene einkommenbringenden Tätigkeiten, die 
außerhalb der gesetzlichen Regelungen stattfinden, aber dennoch denen, 
die sich daran halten, ähneln; so werden Umfang und Wesen der 
informellen Wirtschaft dennoch durch diese Regelungen, denen sie sich 
eigentlich entziehen, bestimmt. Aus diesem Grund kann man das Wesen 
der informellen Wirtschaft, der Schattenwirtschaft, nur dann erfassen, 
wenn man sie in Beziehung zur offiziellen Wirtschaft setzt, also zu 
den geregelten einkommenbringenden Tätigkeiten.


\stoptext



1. \stopchapter is missing in your example

2. The \note command already exists and you redefine it in your example 
which is a bad idea.


3. Where do you have a note *after* a section in your example?

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

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

Re: [NTG-context] Change font for footnote-symbols

2016-06-19 Thread Pablo Rodriguez
On 06/19/2016 10:10 PM, Alias 1 wrote:
> Hello ConTeXt-Users,
>  
> I want to change the font for the footnote-symbols. I want to change
> the font for the footnote-symbols (the numbers 1, 2, 3 etc.) to
> latinmodern. How do I do this? I tried to add the commands
> \setupnote[footnote][textstyle={\switchtobodyfont[latinmodern]}] and
> \setupnotation[footnote][headstyle={\switchtobodyfont[latinmodern]}].
> If I only add one of these, the symbols in the text/notes at the
> bottom of the page, get changed, but if I add both, only the font of
> the symbols in the text get changed (In front of the first
> footnote-symbol (the 1) there is also some whitespace added, which
> looks like a bug or something; or I used the commands in a wrong
> way). So I assume, this is not the intended way. But what is the
> right way to do it?>

Hi Jannik,

this is another approach:

\definefontfamily[dejava][rm][DejaVu Serif]
\definefontfamily[dejava][hw][Latin Modern Roman]
\setupbodyfont[dejava]

\setupnote[footnote][textstyle={\hw}]

\setupnotation[footnote][headstyle={\hw}]

\starttext

\dorecurse{10}{foo\footnote{bar} }

\stoptext

Just in case it helps,


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

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

Re: [NTG-context] Change font for footnote-symbols

2016-06-19 Thread Thomas A. Schmitz

On 06/19/2016 08:10 PM, Alias 1 wrote:

I want to change the font for the footnote-symbols (the numbers 1, 2, 3 etc.) 
to latinmodern. How do I do this? I tried to add the commands 
\setupnote[footnote][textstyle={\switchtobodyfont[latinmodern]}] and 
\setupnotation[footnote][headstyle={\switchtobodyfont[latinmodern]}]. If I only 
add one of these, the symbols in the text/notes at the bottom of the page, get 
changed, but if I add both, only the font of the symbols in the text get 
changed (In front of the first footnote-symbol (the 1) there is also some 
whitespace added, which looks like a bug or something; or I used the commands 
in a wrong way). So I assume, this is not the intended way. But what is the 
right way to do it?



Thanks for your help

Jannik Voges


Here is your example, somewhat simplified. I use bold italic to make the 
font change more visible; you will modify as necessary.


Best wishes

Thomas

\definefont[NoteFont][file:lmsans10-boldoblique sa 0.9]

\def\NoteRef#1%
  {\high{\NoteFont #1}}

\setupfootnotes[textcommand=\NoteRef]

\setupnotation[footnote][numbercommand=\NoteRef]

\setupbodyfont[dejavu]

\starttext

\dorecurse{10}{foo\footnote{bar} }

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

[NTG-context] Change font for footnote-symbols

2016-06-19 Thread Alias 1
Hello ConTeXt-Users,


I want to change the font for the footnote-symbols. I give a minimal example:

\starttypescript [serif] [dejavu] [name]
\definefontsynonym [Serif] [name:dejavuserif] [features=default]
\definefontsynonym [SerifBold] [name:dejavuserifbold] [features=default]
\definefontsynonym [SerifItalic] [name:dejavuserifitalic] [features=default]
\definefontsynonym [SerifBoldItalic] [name:dejavuserifbolditalic] 
[features=default]
\stoptypescript

\starttypescript[dejavu]
\definetypeface [dejavu] [rm] [serif] [dejavu] [default]
\stoptypescript

\starttypescript [serif] [latinmodern] [name]
\definefontsynonym [Serif] [name:latinmodernromanregular] [features=default]
\stoptypescript

\starttypescript[latinmodern]
\definetypeface [latinmodern] [rm] [serif] [latinmodern] [default]
\stoptypescript

\setupbodyfont[dejavu]



\starttext

\dorecurse{10}{foo\footnote{bar} }

\stoptext

I want to change the font for the footnote-symbols (the numbers 1, 2, 3 etc.) 
to latinmodern. How do I do this? I tried to add the commands 
\setupnote[footnote][textstyle={\switchtobodyfont[latinmodern]}] and 
\setupnotation[footnote][headstyle={\switchtobodyfont[latinmodern]}]. If I only 
add one of these, the symbols in the text/notes at the bottom of the page, get 
changed, but if I add both, only the font of the symbols in the text get 
changed (In front of the first footnote-symbol (the 1) there is also some 
whitespace added, which looks like a bug or something; or I used the commands 
in a wrong way). So I assume, this is not the intended way. But what is the 
right way to do it?



Thanks for your help

Jannik Voges

signature.asc
Description: Message signed with OpenPGP using AMPGpg
___
If your question is of interest to others as well, please add an 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] \replaceword in footnotes

2016-04-06 Thread Hans Hagen

On 4/6/2016 9:04 AM, Thomas A. Schmitz wrote:

On 04/06/2016 08:57 AM, Wolfgang Schuster wrote:

The feature is disabled in footnotes and you have to reenable it:

\startsetups[footnote]
 \setreplacements [german]
\stopsetups

\setupnote[footnote][setups=footnote]


Thank you, Wolfgang, this works indeed!


in lang-rep we can define that property to be global

\definesystemattribute[replacements][public,global]

in which case it doesn't get reset.

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] \replaceword in footnotes

2016-04-06 Thread Thomas A. Schmitz

On 04/06/2016 08:57 AM, Wolfgang Schuster wrote:

The feature is disabled in footnotes and you have to reenable it:

\startsetups[footnote]
 \setreplacements [german]
\stopsetups

\setupnote[footnote][setups=footnote]


Thank you, Wolfgang, this works indeed!

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

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

<    1   2   3   4   5   6   7   >