Re: [NTG-context] \replaceword in footnotes

2016-04-06 Thread Wolfgang Schuster

Thomas A. Schmitz <mailto:thomas.schm...@uni-bonn.de>
6. April 2016 um 08:25
Hi all,

I use replacements to break unwanted ligatures in German text. This 
works in the text body, but not in footnotes. How can this be achieved 
in footnotes as well? Example attached!


Thanks

Thomas

\setreplacements [german]

\replaceword [german] [Auflage] [Au{fl}age]

\mainlanguage [de]

\setupbodyfont [termes, 12pt]

\starttext

flüssig Auflage\footnote{flüssig Auflage}

\stoptext

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

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

\setupnote[footnote][setups=footnote]

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] different \setupdelimitedtext for notes

2016-03-06 Thread Pablo Rodriguez
On 03/06/2016 07:35 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 6. März 2016 um 17:12
>> [...]
>> How can I have differet setups for blockquotes in footnotes?
> 
> \startsetups[note:blockquote]
> 
> \setupdelimitedtext
> [blockquote]
> [before={\blank[small]}, after={\blank[small]}]
> 
> \stopsetups
> 
> \setupnote[footnote][setups=note:blockquote]

Many thanks for your reply, Wolfgang.

I would have never thought of that possibility.

Many thanks for your help,

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

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

Re: [NTG-context] different \setupdelimitedtext for notes

2016-03-06 Thread Wolfgang Schuster

Pablo Rodriguez <mailto:oi...@gmx.es>
6. März 2016 um 17:12
Dear list,

I have the following sample:

\setupdelimitedtext
[blockquote]
[before={\blank[big]}, after={\blank[big]}]
\setupdelimitedtext
[blockquote:note]
[before={\blank[small]}, after={\blank[small]}]
\starttext
This is text.
\startblockquote
This is a quote\footnote{This is a footnote.
\startblockquote This is another quote.\stopblockquote}
\stopblockquote
\stoptext

How can I have differet setups for blockquotes in footnotes?

\startsetups[note:blockquote]

\setupdelimitedtext
[blockquote]
[before={\blank[small]}, after={\blank[small]}]

\stopsetups

\setupnote[footnote][setups=note:blockquote]

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] two issues with interactive hyperlinks (please comment)

2016-02-22 Thread Hans Hagen

On 2/21/2016 8:54 PM, Pablo Rodriguez wrote:

Hans,

I’m afraid there is a regression partially displayed in the following
code:

 \setupinteraction[state=start, focus=standard]
 \enabledirectives[references.border]
 \setupinteractionscreen[option=fit]
 \setupnote[footnote][way=bytext, location=text]
 \starttext
 \completecontent

 \chapter{Main issue}
 Simple steps to reproduce the issue with notes:

 \startitemize[n]
 \item Open the file and keep browsing it fit to width.
 \item Click on link for note 24 (on next page).
 \item Change view to fit to width.
 \item Search for note 24 in footnotes.
 \item Click back to return to main text from anchor 24.
 \item Change view to fit to width.
 \item Search again for the text with footnote 24 referenced.
 \item Keep in mind that in a 15 inch screen the fit to height,
 text is hardly readable.
 \stopitemize

 \page
 \dorecurse{10}{%
 \dorecurse{10}{This is text.%
 \footnote{This is a footnote.}\par}}
 \placefootnotes
 \stoptext

The regression is that \setupinteraction[focus=standard] doesn’t work
with hyperlink in table of contents for chapter in betas from 2016.02.15
10:26.


a bit too complex example


Beta from 2016.02.08 15:35 adds a link with named destination (/XYZ).
Next beta from 2016.02.15 10:26 adds a link pointing only to the page
(/Fit).

This is the regression.


i checked the changes and uploaded beta (split the methods a bit) .. 
hopefully i didn't break the patches that taco needed (option=name)



And I think it is time to discuss an issue with textual links. I know
you don’t like it. I’m sorry, but I think it is an essential feature for
hyperlinks.


well, in general i only read full screen, or print a document, or don't 
read a pdf at all as i just loose track when views keep changing (so for 
me a viewing device is only useful when it can show a page, which the 
surface (or even a nexus) can do quite ok)



[I’d request other users to contribute their experiences with this
issue, please.]

We need that all links in a text file behave the same way to reach
their destination. Page 2 from sample above describes what is wrong
(and crazy to send a PDF document generated this way [at least, not
relaxing to the reader]).

And if \setupinteraction[focus=standard] is used, all link destinations
should be named ones (/XYZ). Of course, I’m not talking about widgets
for presentations. But footnotes, references, linenotes and other
similar links that may appear in a text should behave the same way in
the same document.


this also depends on if that xyz info is available in a consistent way 
which is not always the case (even then one needs take margins and other 
things into account so whatever gets added in the core will always be 
suboptimal and imo kind of crappy, so never default)



Sorry, but some users complained to me about this behavior. I know that
some PDF readers don’t follow this (only mupdf that I’m aware of
[and I opened an issue:
http://bugs.ghostscript.com/show_bug.cgi?id=696442]). SumatraPDF,
Adobe, evince and xpdf implement named destinations.


well, that is the problem: for 15 years there has been no real 
consistent viewer behaviour ... for long i tested using acrobat, but the 
interface kept changing and got worse so now i test with sumatrapdf 
which lacks some features or has issues) and i find it real hard to test 
this kind of stuff (i simply lack the mindset for it) so when something 
is needed i need real simple and small examples and/or know what kind of 
pdf code is needed that works in most viewers



It is an extremely useful feature and it isn’t reasonable to expect
from users that they have huge screens to read PDF documents generated
with ConTeXt. And in many scenarios, having a screen version (different
from the print version) is not an option. And as explained in the
sample code above, I have only a 15-inch screen.


actually i wonder if screens need to be huge ... small high res screens 
are quite readable (i consider reading pdf on a small phone a no-go 
whatever scaling gets applied and i expect epub like devices eventually 
to get the same quality as paper)



Would it be possible that the destinations with links in a text all
honored \setupinteraction[focus=standard]?


this can only be implemented stepwise (given that i can motivate myself 
so it also depends on the weather, music, reasonable background movie or 
talkshow, lack of other tasks, etc) .. and of course a reasonable viewer 
(i wasted too much time already on bypassing fuzzy features that i don't 
need myself)


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

[NTG-context] two issues with interactive hyperlinks (please comment)

2016-02-21 Thread Pablo Rodriguez
Hans,

I’m afraid there is a regression partially displayed in the following
code:

\setupinteraction[state=start, focus=standard]
\enabledirectives[references.border]
\setupinteractionscreen[option=fit]
\setupnote[footnote][way=bytext, location=text]
\starttext
\completecontent

\chapter{Main issue}
Simple steps to reproduce the issue with notes:

\startitemize[n]
\item Open the file and keep browsing it fit to width.
\item Click on link for note 24 (on next page).
\item Change view to fit to width.
\item Search for note 24 in footnotes.
\item Click back to return to main text from anchor 24.
\item Change view to fit to width.
\item Search again for the text with footnote 24 referenced.
\item Keep in mind that in a 15 inch screen the fit to height,
text is hardly readable.
\stopitemize

\page
\dorecurse{10}{%
\dorecurse{10}{This is text.%
\footnote{This is a footnote.}\par}}
\placefootnotes
\stoptext

The regression is that \setupinteraction[focus=standard] doesn’t work
with hyperlink in table of contents for chapter in betas from 2016.02.15
10:26.

Beta from 2016.02.08 15:35 adds a link with named destination (/XYZ).
Next beta from 2016.02.15 10:26 adds a link pointing only to the page
(/Fit).

This is the regression.

And I think it is time to discuss an issue with textual links. I know
you don’t like it. I’m sorry, but I think it is an essential feature for
hyperlinks.

[I’d request other users to contribute their experiences with this
issue, please.]

We need that all links in a text file behave the same way to reach
their destination. Page 2 from sample above describes what is wrong
(and crazy to send a PDF document generated this way [at least, not
relaxing to the reader]).

And if \setupinteraction[focus=standard] is used, all link destinations
should be named ones (/XYZ). Of course, I’m not talking about widgets
for presentations. But footnotes, references, linenotes and other
similar links that may appear in a text should behave the same way in
the same document.

Sorry, but some users complained to me about this behavior. I know that
some PDF readers don’t follow this (only mupdf that I’m aware of
[and I opened an issue:
http://bugs.ghostscript.com/show_bug.cgi?id=696442]). SumatraPDF,
Adobe, evince and xpdf implement named destinations.

It is an extremely useful feature and it isn’t reasonable to expect
from users that they have huge screens to read PDF documents generated
with ConTeXt. And in many scenarios, having a screen version (different
from the print version) is not an option. And as explained in the
sample code above, I have only a 15-inch screen.

Would it be possible that the destinations with links in a text all
honored \setupinteraction[focus=standard]?

Many thanks for your excellent work and your help,

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

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

[NTG-context] Character rotation font feature available?

2016-02-14 Thread Zhichu Chen

Dear list,

I have some special needs that requires all the characters be rotated by 
90 degrees. I've searched around the web and maybe adding

/FontMatrix [0 1 -1 0 0 0]
to the font descriptor dictionary is helpful. But I can't find a \pdf??? 
primitive that can achieve this. (Am I wrong about this?)


Another solution might be the "vrt2" font feature. There's no difference 
between the results with or without enabling the feature. But

I do see the font has the feature by using the shell command:
otfinfo -f 


May I put my temporary unsatisfying code here and ask for optimization?

Thanks in advance.









===
\startluacode


pdf.setcompresslevel(0)
pdf.setobjcompresslevel(0)

local registerotffeature = fonts.handlers.otf.features.register
--local registerafmfeature = fonts.handlers.afm.features.register

local setmetatableindex  = table.setmetatableindex



local function jian(tfmdata,value)
if value then
local characters = tfmdata.characters
local resources  = tfmdata.resources
local additions  = { }
local private= resources.private
for unicode, old_c in next, characters do
private = private + 1
local width  = old_c.width  or 0
local height = old_c.height or 0
local depth  = old_c.depth  or 0
local htsp,wdsp,dpsp = 
(height/65536)*(72.0/72.27),(width/65536)*(72.0/72.27),(depth/65536)*(72.0/72.27)

local bboxrulewd = 0.5
local baserulewd = 0.9
local new_c
new_c = {
width= width,
height   = height,
depth= depth,
commands = {
{ "push" },
{ "right", width },
{ "special", "pdf: q 0 0 1 RG 0 0 1 rg " .. 
bboxrulewd .. " w 0 " .. -dpsp .. " m 0 " .. htsp .. " l " .. -wdsp .. " 
" .. htsp .. " l " .. -wdsp .. " " .. -dpsp .. " l s 1 0 1 RG 1 0 1 rg " 
.. baserulewd .. " w [2 1] 0 d 0 0 m " .. -wdsp .. " 0 l S Q" },

{ "pop" },
{"special", "pdf: q 0 1 -1 0 0 0 cm"},
{ "down", 0.9*width },
{ "right", -0.1*width },
{ "slot", 1, private },
{ "down", -0.9*width },
{ "right", -0.9*width },
{"special", "pdf: 1 0 0 1 0 0 cm Q"},
}
}
setmetatableindex(new_c,old_c)
characters[unicode] = new_c
additions[private]  = old_c
end
for k, v in next, additions do
characters[k] = v
end
resources.private = private
end
end

registerotffeature {
name= "jian",
description = "rotate glyphs",
manipulators = {
base = jian,
node = jian,
}
}

\stopluacode

\definefontfeature
  [vertical]
  [default]
  [jian=yes]


\definefallbackfamily [mainface] [serif] [Adobe Ming Std]
  [range={0x00400-0x2FA1F}%
  ,force=yes%
  ,features=vertical%
  ]
\definefallbackfamily [mainface] [sans] [Adobe Heiti Std]
  [range={0x00400-0x2FA1F}%
  ,force=yes%
  ,features=vertical%
  ]
\definefallbackfamily [mainface] [mono] [Adobe Fangsong Std]
  [range={0x00400-0x2FA1F}%
  ,force=yes%
  ,features=vertical%
  ]


\definefontfamily
  [mainface]
  [serif]
  [TeX Gyre Termes]
  [features=vertical]
\definefontfamily
  [mainface]
  [sans]
  [TeX Gyre Heros]
  [features=vertical]
\definefontfamily
  [mainface]
  [mono]
  [TeX Gyre Cursor]
  [features=vertical]
\definefontfamily
  [mainface]
  [math]
  [TeX Gyre Termes Math]
  [features=vertical]


\setscript
  [hanzi]

\startsetups footnote:hanzi
  \setscript[hanzi]
\stopsetups

\setupnote[footnote][setups={footnote:hanzi}]

\setupalign[hz,hanging]
\setupbodyfont[mainface,20pt]


\showframe

\starttext



裴駰曰凡是徐氏義稱徐姓名以別之餘者悉是駰%
注解并集衆家義。司馬貞索隱曰紀者記也本其%
%
事而記之故曰本紀又紀理也絲縷有紀而帝王書%
稱紀者言爲後代綱紀也。正義曰鄭玄注中候勅%
%
省圖云德合五帝坐星者稱帝又坤靈圖云德配天%
地在正不在私曰帝按太史公依世本大戴禮以黃%
%
帝顓頊帝嚳唐堯虞舜爲五帝譙周應劭宋均皆同%
而孔安國尚書序皇甫謐帝王世紀孫氏注世本並%
%
以伏犧神農黃帝爲三皇少昊顓頊高辛唐虞爲五%
帝裴松之史目云天子稱本紀諸侯曰世家本者繫%
%
其本系故曰本紀者理也統理衆事繫之年月名之%
曰紀第者次序之目一者舉數之由故曰五帝本紀%
%
第一。又曰禮云動則左史書之言則右史書之正%
義云左陽故記動右隂故記言言爲尚書事爲春秋%
%
按春秋時置左右%
史故云史記也%
%
%
裴駰曰凡是徐氏義稱徐姓名以別之餘者悉是駰%
注解并集衆家義。司馬貞索隱曰紀者記也本其%
%
事而記之故曰本紀又紀理也絲縷有紀而帝王書%
稱紀者言爲後代綱紀也。正義曰鄭玄注中候勅%
%
省圖云德合五帝坐星者稱帝又坤靈圖云德配天%
地在正不在私曰帝按太史公依世本大戴禮以黃%
%
帝顓頊帝嚳唐堯虞舜爲五帝譙周應劭宋均皆同%
而孔安國尚書序皇甫謐帝王世紀孫氏注世本並%
%
以伏犧神農黃帝爲三皇少昊顓頊高辛唐虞爲五%
帝裴松之史目云天子稱本紀諸侯曰世家本者繫%
%
其本系故曰本紀者理也統理衆事繫之年月名之%
曰紀第者次序之目一者舉數之由故曰五帝本紀%
%
第一。又曰禮云動則左史書之言則右史書之正%
義云左陽故記動右隂故記言言爲尚書事爲春秋%
%
按春秋時置左右%
史故云史記也%


\stoptext

--
Best regards,
ℤhichu ℂhen

Shanghai Institute of Applied Physics
No. 2019, Jialuo Ro

Re: [NTG-context] horizontal spacing under special circumstances

2015-12-08 Thread Wolfgang Schuster

Henning Hraban Ramm <mailto:te...@fiee.net>
7. Dezember 2015 um 10:54
Hi again,

since my bibliographic setup works well, thanks again, I’d like to 
tighten it a bit, i.e. reduce spacing under defined circumstances.


In the docs and sources I found only how to affect spacing of 
languages, and only "packed" or "broad".


In lang-spa.mkiv I found \definehspace, and in spac-hor.mkiv I found 
\spac_spacecodes_set_fixed{}, but I don’t understand if they can do 
what I want, and how.


This doesn’t help:

\unprotect
\definedescription[BibItem][
headcommand=\gobbleoneargument,
align=right,
before={\bgroup\spac_spacecodes_set_fixed{50}}, % does this take a 
value or a unicode point?

after={\egroup}, %\spac_spacecodes_set_stretch},
]
\protect

I’d also like to have footnotes in tighter spacing.


You have to change the value of the \spaceskip register when you want to 
change with width of a space.


\startsetups[footnote:space]
  \spaceskip .7\interwordspace plus .5\interwordstretch minus 
\interwordshrink

\stopsetups

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

\starttext

\input zapf
\startfootnote
\input zapf
\stopfootnote

\stoptext

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

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

Re: [NTG-context] horizontal spacing under special circumstances

2015-12-08 Thread Wolfgang Schuster

Henning Hraban Ramm <mailto:te...@fiee.net>
8. Dezember 2015 um 12:11

Thank you for the suggestion, but I can’t see any change, even if I 
use extreme values for \spaceskip (like 0.1 or 10.0), neither in footnotes

The footnote on the second page is a line shorter.

\startsetups[footnote:space]
  \spaceskip .7\interwordspace plus .5\interwordstretch minus 
\interwordshrink

\stopsetups

\starttext

\input zapf
\startfootnote
\input zapf
\stopfootnote

\page

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

\input zapf
\startfootnote
\input zapf
\stopfootnote

\stoptext
nor in my description (is the setups key even supposed to work in 
\definedescription?).
No, there is no setups key for description and you have to misuse the 
style key.


\define\CompressSpace
  {\spaceskip .7\interwordspace plus .5\interwordstretch minus 
\interwordshrink}


\definedescription[compressedspace]

\starttext

\startcompressedspace
\input zapf
\stopcompressedspace

\setupdescription[compressedspace][style=\CompressSpace]

\startcompressedspace
\input zapf
\stopcompressedspace

\stoptext

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

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

Re: [NTG-context] horizontal spacing under special circumstances

2015-12-08 Thread Henning Hraban Ramm
Am 2015-12-08 um 15:01 schrieb Wolfgang Schuster <schuster.wolfg...@gmail.com>:

>> \unprotect
>> \definedescription[BibItem][
>> headcommand=\gobbleoneargument,
>> align=right,
>> before={\bgroup\spac_spacecodes_set_fixed{50}}, % does this take a value or 
>> a unicode point?
>> after={\egroup}, %\spac_spacecodes_set_stretch},
>> ]
>> \protect
>> 
>> I’d also like to have footnotes in tighter spacing.
> 
> You have to change the value of the \spaceskip register when you want to 
> change with width of a space.
> 
> \startsetups[footnote:space]
>   \spaceskip .7\interwordspace plus .5\interwordstretch minus \interwordshrink
> \stopsetups
> 
> \setupnote[footnote][setups=footnote:space]

Thank you for the suggestion, but I can’t see any change, even if I use extreme 
values for \spaceskip (like 0.1 or 10.0), neither in footnotes nor in my 
description (is the setups key even supposed to work in \definedescription?).

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

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

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

Re: [NTG-context] footnote coloring

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

Hi Hans,

this setup works fine in MkIV:

  \setupnote[footnote][textcolor=blue]

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


I hope it helps,


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

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

Re: [NTG-context] footnote coloring

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

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

Hans van der Meer


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

this setup works fine in MkIV:

 \setupnote[footnote][textcolor=blue]

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


I hope it helps,

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

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

Re: [NTG-context] footnote coloring

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

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

Hans van der Meer


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

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

\setupnotation[footnote][headcolor=red]

Wolfgang
___

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

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

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-08-01 Thread tala...@fastmail.fm
I’ve run into a hiccup. In the previous MWE that worked with Woflgang and Hans’ 
patch, the notes were footnotes. However, if make them into linenotes, we run 
into a strange problem: the first note is typeset correctly, but all the 
remaining linenotes in that stream are typeset on the bottom left corner of the 
page. See attached files.

Best wishes,
Talal



linenotes r2l.tex
Description: Binary data


linenotes r2l.pdf
Description: Adobe PDF document


 On 31 Jul 2015, at 12:07, tala...@fastmail.fm wrote:
 
 Excellent. This seems to solve the problem completely. I even tried mixing 
 Arabic and English text in the RTL footnotes, switched on the 
 “alternative=serried” option, and defined my own custom note streams — 
 everything worked very well. The only thing that didn’t work is to mix, in 
 the same stream, footnotes that are LTR with footnotes that are RTL. But I 
 did not expect this to work, and I cannot think of a real world scenario in 
 which such footnotes would/should be mixed in the same stream.
 
 Attached are both the .tex file and the PDF with a perfectly working example. 
 Many thanks to you both, Wolfgang and Hans. Hans, I assume we’ll know if the 
 patch eventually makes it into a beta? 
 
 Best,
 Talal
 
 RTL-paragraphed-footnotes.texRTL-paragraphed-footnotes.pdf
 
 On 31 Jul 2015, at 09:39, Hans Hagen pra...@wxs.nl wrote:
 
 On 7/31/2015 1:51 AM, tala...@fastmail.fm wrote:
 You’re right. The patch gets us half way to the desired behaviour
 (namely, correct ordering of the footnotes within the paragraph). But it
 seems that the ‘paragraph’ option doesn’t play well with RTL generally,
 resulting in the second note disappearing when using
 \startsetups[note:footnote] \setupdirections[bidi=global] \stopsetups.
 
 can you try
 
 \unprotect
 
 \unexpanded\def\leftorrightvbox{\ifconditional\displaylefttoright\expandafter\lefttorightvbox\else\expandafter\righttoleftvbox\fi}
 
 \def\strc_notes_flush_global
 {\begingroup
  \useinterlinespaceparameter\noteparameter
  \doifelse{\noteparameter\c!paragraph}\v!yes
{\leftorrightvbox
   {\starthboxestohbox
 \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber
\stophboxestohbox}}
 {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}%
  \endgroup}
 
 \protect
 
 
 On 30 Jul 2015, at 20:04, Wolfgang Schuster
 schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com wrote:
 
 tala...@fastmail.fm mailto:tala...@fastmail.fm
 30. Juli 2015 20:37
 I’ve come across a snag. When using parentheses in Arabic footnotes, they 
 are flipped. In any earlier email 
 (http://article.gmane.org/gmane.comp.tex.context/91501/match=setupdirections+bidi+global),
  you had advised adding the following:
 
 \startsetups[note:footnote]
  \setupdirections[bidi=global]
 \stopsetups
 
 \setupnote[footnote][setups=note:footnote] % align=righttoleft
 However, if one does this with your patch, the second footnote gets 
 dropped. Here is the MWE:
 
 The second note disappears even without the patch, the problem this
 the paragraph option for the notes.
 
 Wolfgang
 ___
 If your question is of interest to others as well, please add an entry
 to the Wiki!
 
 maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 
 
 
 ___
 If your question is of interest to others as well, please add an entry to 
 the Wiki!
 
 maillist : ntg-context@ntg.nl / 
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 
 
 
 -- 
 
 -
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to 
 the Wiki!
 
 maillist : ntg-context@ntg.nl / 
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-31 Thread Hans Hagen

On 7/31/2015 1:51 AM, tala...@fastmail.fm wrote:

You’re right. The patch gets us half way to the desired behaviour
(namely, correct ordering of the footnotes within the paragraph). But it
seems that the ‘paragraph’ option doesn’t play well with RTL generally,
resulting in the second note disappearing when using
\startsetups[note:footnote] \setupdirections[bidi=global] \stopsetups.


can you try

\unprotect

\unexpanded\def\leftorrightvbox{\ifconditional\displaylefttoright\expandafter\lefttorightvbox\else\expandafter\righttoleftvbox\fi}

\def\strc_notes_flush_global
  {\begingroup
   \useinterlinespaceparameter\noteparameter
   \doifelse{\noteparameter\c!paragraph}\v!yes
 {\leftorrightvbox
{\starthboxestohbox

\iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber
 \stophboxestohbox}}

{\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}%
   \endgroup}

\protect



On 30 Jul 2015, at 20:04, Wolfgang Schuster
schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com wrote:


tala...@fastmail.fm mailto:tala...@fastmail.fm
30. Juli 2015 20:37
I’ve come across a snag. When using parentheses in Arabic footnotes, they are 
flipped. In any earlier email 
(http://article.gmane.org/gmane.comp.tex.context/91501/match=setupdirections+bidi+global),
 you had advised adding the following:


\startsetups[note:footnote]
   \setupdirections[bidi=global]
\stopsetups

\setupnote[footnote][setups=note:footnote] % align=righttoleft

However, if one does this with your patch, the second footnote gets dropped. 
Here is the MWE:


The second note disappears even without the patch, the problem this
the paragraph option for the notes.

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

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




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

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




--

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

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

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-31 Thread tala...@fastmail.fm
Excellent. This seems to solve the problem completely. I even tried mixing 
Arabic and English text in the RTL footnotes, switched on the 
“alternative=serried” option, and defined my own custom note streams — 
everything worked very well. The only thing that didn’t work is to mix, in the 
same stream, footnotes that are LTR with footnotes that are RTL. But I did not 
expect this to work, and I cannot think of a real world scenario in which such 
footnotes would/should be mixed in the same stream.

Attached are both the .tex file and the PDF with a perfectly working example. 
Many thanks to you both, Wolfgang and Hans. Hans, I assume we’ll know if the 
patch eventually makes it into a beta? 

Best,
Talal



RTL-paragraphed-footnotes.tex
Description: Binary data


RTL-paragraphed-footnotes.pdf
Description: Adobe PDF document


 On 31 Jul 2015, at 09:39, Hans Hagen pra...@wxs.nl wrote:
 
 On 7/31/2015 1:51 AM, tala...@fastmail.fm wrote:
 You’re right. The patch gets us half way to the desired behaviour
 (namely, correct ordering of the footnotes within the paragraph). But it
 seems that the ‘paragraph’ option doesn’t play well with RTL generally,
 resulting in the second note disappearing when using
 \startsetups[note:footnote] \setupdirections[bidi=global] \stopsetups.
 
 can you try
 
 \unprotect
 
 \unexpanded\def\leftorrightvbox{\ifconditional\displaylefttoright\expandafter\lefttorightvbox\else\expandafter\righttoleftvbox\fi}
 
 \def\strc_notes_flush_global
  {\begingroup
   \useinterlinespaceparameter\noteparameter
   \doifelse{\noteparameter\c!paragraph}\v!yes
 {\leftorrightvbox
{\starthboxestohbox
 \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber
 \stophboxestohbox}}
 {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}%
   \endgroup}
 
 \protect
 
 
 On 30 Jul 2015, at 20:04, Wolfgang Schuster
 schuster.wolfg...@gmail.com mailto:schuster.wolfg...@gmail.com wrote:
 
 tala...@fastmail.fm mailto:tala...@fastmail.fm
 30. Juli 2015 20:37
 I’ve come across a snag. When using parentheses in Arabic footnotes, they 
 are flipped. In any earlier email 
 (http://article.gmane.org/gmane.comp.tex.context/91501/match=setupdirections+bidi+global),
  you had advised adding the following:
 
 \startsetups[note:footnote]
   \setupdirections[bidi=global]
 \stopsetups
 
 \setupnote[footnote][setups=note:footnote] % align=righttoleft
 However, if one does this with your patch, the second footnote gets 
 dropped. Here is the MWE:
 
 The second note disappears even without the patch, the problem this
 the paragraph option for the notes.
 
 Wolfgang
 ___
 If your question is of interest to others as well, please add an entry
 to the Wiki!
 
 maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 
 
 
 ___
 If your question is of interest to others as well, please add an entry to 
 the Wiki!
 
 maillist : ntg-context@ntg.nl / 
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 
 
 
 -- 
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-30 Thread tala...@fastmail.fm
You’re right. The patch gets us half way to the desired behaviour (namely, 
correct ordering of the footnotes within the paragraph). But it seems that the 
‘paragraph’ option doesn’t play well with RTL generally, resulting in the 
second note disappearing when using \startsetups[note:footnote] 
\setupdirections[bidi=global] \stopsetups.

 On 30 Jul 2015, at 20:04, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 tala...@fastmail.fm mailto:tala...@fastmail.fm 30. Juli 2015 20:37
 I’ve come across a snag. When using parentheses in Arabic footnotes, they 
 are flipped. In any earlier email 
 (http://article.gmane.org/gmane.comp.tex.context/91501/match=setupdirections+bidi+global
  
 http://article.gmane.org/gmane.comp.tex.context/91501/match=setupdirections+bidi+global),
  you had advised adding the following:
 
 \startsetups[note:footnote]
   \setupdirections[bidi=global]
 \stopsetups
 
 \setupnote[footnote][setups=note:footnote] % align=righttoleft
 However, if one does this with your patch, the second footnote gets dropped. 
 Here is the MWE:
 
 The second note disappears even without the patch, the problem this the 
 paragraph option for the notes.
 
 Wolfgang
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-30 Thread Wolfgang Schuster

tala...@fastmail.fm mailto:tala...@fastmail.fm
30. Juli 2015 20:37
I’ve come across a snag. When using parentheses in Arabic footnotes, they are 
flipped. In any earlier email 
(http://article.gmane.org/gmane.comp.tex.context/91501/match=setupdirections+bidi+global),
 you had advised adding the following:


\startsetups[note:footnote]
   \setupdirections[bidi=global]
\stopsetups

\setupnote[footnote][setups=note:footnote] % align=righttoleft


However, if one does this with your patch, the second footnote gets dropped. 
Here is the MWE:

The second note disappears even without the patch, the problem this the 
paragraph option for the notes.


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

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

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-30 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Wolfgang,

On Thu, 30 Jul 2015 11:54:55 -0600, Wolfgang Schuster  
schuster.wolfg...@gmail.com wrote:



Pablo Rodriguez mailto:oi...@gmx.es
30. Juli 2015 16:26

I wonder whether there is a bug somewhere in notes, because you may have
r2l notations, but the notes paragraph is built l2r:

\setuppapersize[A6]
\starttext \showframe

\definenote[afootnote][rule={on,right}, paragraph=yes]
\definenotation[afootnote][align=r2l]

\startalignment[r2l]
Testing.\afootnote{This is footnote one.}
Testing testing.\afootnote{This is footnote two.}
Testing testing testing.\afootnote{This is footnote three.}
\stopalignment

\stoptext

Can you test the following patch.

\unprotect

\def\strc_notes_flush_global
   {\begingroup
\useinterlinespaceparameter\noteparameter
\doifelse{\noteparameter\c!paragraph}\v!yes
  {%\vbox\starthboxestohbox
   \vbox\ifconditional\displaylefttoright \else dir TRT
\fi\starthboxestohbox
\iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber
   \stophboxestohbox}
{\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}%
\endgroup}

\protect

%\setupalign[righttoleft]

\setupnote[footnote][paragraph=yes,align=righttoleft]
\setupnotation[footnote][align=righttoleft]

\showframe

\starttext

First note.\footnote{This is the first footnote.}
Second note.\footnote{This is the second footnote.}

\stoptext

Wolfgang


Looking good... Question:

From strc-not.mkvi===
\def\strc_notes_flush_global
  {\begingroup
   \useinterlinespaceparameter\noteparameter
   \doifelse{\noteparameter\c!paragraph}\v!yes
 {\vbox\starthboxestohbox
\iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber
  \stophboxestohbox}
 
{\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}%
   \endgroup}
=

What was key point of attack in the original definition that was  
hardwiring the TLT in the note markers?


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

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

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-30 Thread tala...@fastmail.fm
Indeed, that seems to do the trick, Wolfgang.

 On 30 Jul 2015, at 18:54, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 Pablo Rodriguez mailto:oi...@gmx.es30. Juli 2015 16:26
 
 I wonder whether there is a bug somewhere in notes, because you may have
 r2l notations, but the notes paragraph is built l2r:
 
 \setuppapersize[A6]
 \starttext \showframe
 
 \definenote[afootnote][rule={on,right}, paragraph=yes]
 \definenotation[afootnote][align=r2l]
 
 \startalignment[r2l]
 Testing.\afootnote{This is footnote one.}
 Testing testing.\afootnote{This is footnote two.}
 Testing testing testing.\afootnote{This is footnote three.}
 \stopalignment
 
 \stoptext
 Can you test the following patch.
 
 \unprotect
 
 \def\strc_notes_flush_global
   {\begingroup
\useinterlinespaceparameter\noteparameter
\doifelse{\noteparameter\c!paragraph}\v!yes
  {%\vbox\starthboxestohbox
   \vbox\ifconditional\displaylefttoright \else dir TRT 
 \fi\starthboxestohbox
 \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber
   \stophboxestohbox}
  
 {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}%
\endgroup}
 
 \protect
 
 %\setupalign[righttoleft]
 
 \setupnote[footnote][paragraph=yes,align=righttoleft]
 \setupnotation[footnote][align=righttoleft]
 
 \showframe
 
 \starttext
 
 First note.\footnote{This is the first footnote.}
 Second note.\footnote{This is the second footnote.}
 
 \stoptext
 
 Wolfgang
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-30 Thread Pablo Rodriguez
On 07/30/2015 07:54 PM, Wolfgang Schuster wrote:
 Pablo Rodriguez 30. Juli 2015 16:26

 I wonder whether there is a bug somewhere in notes, because you may have
 r2l notations, but the notes paragraph is built l2r:
 [...]
 Can you test the following patch.

Hi Wolfgang,

your patch works fine with both samples.

What I wonder is wheter \setupnote and \setupnototation should inherit
the property from \setupalign[r2l] or from the alignment in the body
position where they are inserted.


Pablo



 \unprotect
 
 \def\strc_notes_flush_global
   {\begingroup
\useinterlinespaceparameter\noteparameter
\doifelse{\noteparameter\c!paragraph}\v!yes
  {%\vbox\starthboxestohbox
   \vbox\ifconditional\displaylefttoright \else dir TRT
 \fi\starthboxestohbox

 \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber
   \stophboxestohbox}
 
 {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}%
\endgroup}
 
 \protect
 
 %\setupalign[righttoleft]
 
 \setupnote[footnote][paragraph=yes,align=righttoleft]
 \setupnotation[footnote][align=righttoleft]
 
 \showframe
 
 \starttext
 
 First note.\footnote{This is the first footnote.}
 Second note.\footnote{This is the second footnote.}
 
 \stoptext
 
 Wolfgang
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 


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

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

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-30 Thread tala...@fastmail.fm
I’ve come across a snag. When using parentheses in Arabic footnotes, they are 
flipped. In any earlier email 
(http://article.gmane.org/gmane.comp.tex.context/91501/match=setupdirections+bidi+global),
 you had advised adding the following:

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


However, if one does this with your patch, the second footnote gets dropped. 
Here is the MWE:

 \unprotect
 
 \def\strc_notes_flush_global
   {\begingroup
\useinterlinespaceparameter\noteparameter
\doifelse{\noteparameter\c!paragraph}\v!yes
  {%\vbox\starthboxestohbox
   \vbox\ifconditional\displaylefttoright \else dir TRT 
 \fi\starthboxestohbox
 \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber
   \stophboxestohbox}
  
 {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}%
\endgroup}
 
 \protect
 
 \definefontfamily[mainface][serif][ALMFixed][features=arabic,range=arabic,]
 \setupbodyfont [mainface]
 
 \startsetups[note:footnote]
\setupdirections[bidi=global]
 \stopsetups
 
 \setupnote[footnote][paragraph=yes,align=righttoleft,setups=note:footnote,]
 \setupnotation[footnote][align=righttoleft,alternative=serried,]
 
 \showframe
 
 \starttext
 
 First note.\footnote{هذه هي (التعليقة) الأولى.}
 Second note.\footnote{هذه هي (التعليقة) الثانية.}
 
 \stoptext


All the best,
Talal


 On 30 Jul 2015, at 18:54, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 Pablo Rodriguez mailto:oi...@gmx.es30. Juli 2015 16:26
 
 I wonder whether there is a bug somewhere in notes, because you may have
 r2l notations, but the notes paragraph is built l2r:
 
 \setuppapersize[A6]
 \starttext \showframe
 
 \definenote[afootnote][rule={on,right}, paragraph=yes]
 \definenotation[afootnote][align=r2l]
 
 \startalignment[r2l]
 Testing.\afootnote{This is footnote one.}
 Testing testing.\afootnote{This is footnote two.}
 Testing testing testing.\afootnote{This is footnote three.}
 \stopalignment
 
 \stoptext
 Can you test the following patch.
 
 \unprotect
 
 \def\strc_notes_flush_global
   {\begingroup
\useinterlinespaceparameter\noteparameter
\doifelse{\noteparameter\c!paragraph}\v!yes
  {%\vbox\starthboxestohbox
   \vbox\ifconditional\displaylefttoright \else dir TRT 
 \fi\starthboxestohbox
 \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber
   \stophboxestohbox}
  
 {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}%
\endgroup}
 
 \protect
 
 %\setupalign[righttoleft]
 
 \setupnote[footnote][paragraph=yes,align=righttoleft]
 \setupnotation[footnote][align=righttoleft]
 
 \showframe
 
 \starttext
 
 First note.\footnote{This is the first footnote.}
 Second note.\footnote{This is the second footnote.}
 
 \stoptext
 
 Wolfgang
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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

Re: [NTG-context] footnotes when using RtL (Arabic)

2015-07-30 Thread Wolfgang Schuster

Pablo Rodriguez mailto:oi...@gmx.es
30. Juli 2015 16:26

I wonder whether there is a bug somewhere in notes, because you may have
r2l notations, but the notes paragraph is built l2r:

\setuppapersize[A6]
\starttext \showframe

\definenote[afootnote][rule={on,right}, paragraph=yes]
\definenotation[afootnote][align=r2l]

\startalignment[r2l]
Testing.\afootnote{This is footnote one.}
Testing testing.\afootnote{This is footnote two.}
Testing testing testing.\afootnote{This is footnote three.}
\stopalignment

\stoptext

Can you test the following patch.

\unprotect

\def\strc_notes_flush_global
  {\begingroup
   \useinterlinespaceparameter\noteparameter
   \doifelse{\noteparameter\c!paragraph}\v!yes
 {%\vbox\starthboxestohbox
  \vbox\ifconditional\displaylefttoright \else dir TRT 
\fi\starthboxestohbox

\iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber

  \stophboxestohbox}
 
{\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}%

   \endgroup}

\protect

%\setupalign[righttoleft]

\setupnote[footnote][paragraph=yes,align=righttoleft]
\setupnotation[footnote][align=righttoleft]

\showframe

\starttext

First note.\footnote{This is the first footnote.}
Second note.\footnote{This is the second footnote.}

\stoptext

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

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

Re: [NTG-context] Minimum distance between text and footnotes

2015-05-22 Thread Hannes Riebl

On 05/21/2015 06:15 PM, Mojca Miklavec wrote:

If nothing else this is not valid syntax because the first closing
bracket ] is treated as the one closing \setupnote. The correct
syntax would be:

\setupnote[footnote]
[before={\blank[8mm]}]


Oh well, stupid me. Thanks for the clarification, Mojca.

Best regards
Hannes Riebl



--
Hannes Riebl
Abteilung Forschung  Entwicklung

Georg-August-Universität Göttingen
Niedersächsische Staats- und Universitätsbibliothek Göttingen
D-37070 Göttingen

Papendiek 14 (Historisches Gebäude, Raum 2.409)

hri...@sub.uni-goettingen.de
http://www.sub.uni-goettingen.de
http://www.rdd.sub.uni-goettingen.de
http://dhd-blog.org
___
If your question is of interest to others as well, please add an 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] Minimum distance between text and footnotes

2015-05-21 Thread Hannes Riebl

On 05/20/2015 05:19 PM, Hannes Riebl wrote:

Dear list,

is there a way to set a minimum distance between the text and the
footnotes? I have done some research but could not find anything helpful.

Best regards
Hannes Riebl


Just for the record: Mojca addressed this problem in 2005:

http://article.gmane.org/gmane.comp.tex.context/22155

However, this code results in ! Argument of \spac_vspacing_yes_indeed 
has an extra }:


\setupnote[footnote]
  [before=\blank[8mm]]

\starttext
\dorecurse{3}{\input knuth\footnote{abc}}
\stoptext

Guess that's a bug? Using this code instead, everything works out as 
expected:


\def\myblank{\blank[8mm]}

\setupnote[footnote]
  [before=\myblank]

\starttext
\dorecurse{3}{\input knuth\footnote{abc}}
\stoptext

Best regards
Hannes Riebl



--
Hannes Riebl
Abteilung Forschung  Entwicklung

Georg-August-Universität Göttingen
Niedersächsische Staats- und Universitätsbibliothek Göttingen
D-37070 Göttingen

Papendiek 14 (Historisches Gebäude, Raum 2.409)

hri...@sub.uni-goettingen.de
http://www.sub.uni-goettingen.de
http://www.rdd.sub.uni-goettingen.de
http://dhd-blog.org
___
If your question is of interest to others as well, please add an 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] Minimum distance between text and footnotes

2015-05-21 Thread Mojca Miklavec
On Thu, May 21, 2015 at 6:01 PM, Hannes Riebl wrote:
 On 05/20/2015 05:19 PM, Hannes Riebl wrote:

 Dear list,

 is there a way to set a minimum distance between the text and the
 footnotes? I have done some research but could not find anything helpful.

 Best regards
 Hannes Riebl


 Just for the record: Mojca addressed this problem in 2005:

 http://article.gmane.org/gmane.comp.tex.context/22155

As AR would say: I deny everything ;)

 However, this code results in ! Argument of \spac_vspacing_yes_indeed has
 an extra }:

 \setupnote[footnote]
   [before=\blank[8mm]]

If nothing else this is not valid syntax because the first closing
bracket ] is treated as the one closing \setupnote. The correct
syntax would be:

\setupnote[footnote]
   [before={\blank[8mm]}]

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

2015-05-17 Thread Wolfgang Schuster

 Am 17.05.2015 um 00:58 schrieb Sam Ḥilluc shil...@gmx.com:
 
 Greetings,
 
 I'm trying to typeset an Arabic text, but I have a problem with parenthesis in
 footnotes. The following example:
 
\usemodule[simplefonts]
 
\setmainfont[amiri][features=arabic,range=arabic]
\setupdirections[bidi=global]
\setupalign[righttoleft]
 
\def\text{(ب)}
 
\startdocument
\text\footnote{\text}.
\stopdocument
 
 gives the correct order in the text but the parenthesis are not adapted in the
 footnote.
 
 So in the text I get: (ب)
 And in the footnote: )ب(.

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

\startsetups[note:footnote]
  \setupdirections[bidi=global]
\stopsetups

\setupnote[footnote][setups=note:footnote] % align=righttoleft

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] parenthesis in Arabic text

2015-05-17 Thread Sam Ḥilluc
On 2015-05-17 12:20, Wolfgang Schuster wrote:
 
  Am 17.05.2015 um 00:58 schrieb Sam Ḥilluc shil...@gmx.com:
  
  Greetings,
  
  I'm trying to typeset an Arabic text, but I have a problem with parenthesis 
  in
  footnotes. The following example:
  
 \usemodule[simplefonts]
  
 \setmainfont[amiri][features=arabic,range=arabic]
 \setupdirections[bidi=global]
 \setupalign[righttoleft]
  
 \def\text{(ب)}
  
 \startdocument
 \text\footnote{\text}.
 \stopdocument
  
  gives the correct order in the text but the parenthesis are not adapted in 
  the
  footnote.
  
  So in the text I get: (ب)
  And in the footnote: )ب(.
 
 You have to set the bidi settings again for the footnotes because
 the notes mechanism resets many of these setups.
 
 \startsetups[note:footnote]
   \setupdirections[bidi=global]
 \stopsetups
 
 \setupnote[footnote][setups=note:footnote] % align=righttoleft
 
 Wolfgang

Works perfectly, thanks.
___
If your question is of interest to others as well, please add an 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] alphabetically ordered notes

2015-04-08 Thread Hans Hagen

On 4/5/2015 8:32 PM, Pablo Rodriguez wrote:

Hans,

as you told me to remind you latter, here you have the proposal for
alphabetically ordered footnotes:

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

 Ἔστι μὲν οὖν τὰ ἐν τῇ φωνῇ\dict{φωνή, -ῆς, ἡ: voice} τῶν ἐν τῇ
 ψυχῇ\dict{ψυχῇ, -ῆς, ἡ: soul} παθημάτων\dict{πάθημα, -ατος, τό:
 affections} σύμβολα\dict{σύμβολον, -ου, τό: symbol}, καὶ τὰ
 γραφόμενα\dict{γραφόμενον: written} τῶν ἐν τῇ φωνῇ.
 \page
 \title{Vocabulary}
 \placenotes[dict]
 \stoptext

BTW, it would be extremely useful to be able to place this kind of notes
on each page and also with a \placenotes command.


quite tricky due to synchronization issues


Many thanks for your help,


in next beta:

\placelist[dict][order=title]

(no language control yet .. no time now)

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

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

[NTG-context] alphabetically ordered notes

2015-04-05 Thread Pablo Rodriguez
Hans,

as you told me to remind you latter, here you have the proposal for
alphabetically ordered footnotes:

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

Ἔστι μὲν οὖν τὰ ἐν τῇ φωνῇ\dict{φωνή, -ῆς, ἡ: voice} τῶν ἐν τῇ
ψυχῇ\dict{ψυχῇ, -ῆς, ἡ: soul} παθημάτων\dict{πάθημα, -ατος, τό:
affections} σύμβολα\dict{σύμβολον, -ου, τό: symbol}, καὶ τὰ
γραφόμενα\dict{γραφόμενον: written} τῶν ἐν τῇ φωνῇ.
\page
\title{Vocabulary}
\placenotes[dict]
\stoptext

BTW, it would be extremely useful to be able to place this kind of notes
on each page and also with a \placenotes command.

Many thanks for your help,


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

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

Re: [NTG-context] line break between number and footnote text in paragraph footnotes

2015-04-02 Thread mf
Il giorno ven, 03/04/2015 alle 00.36 +0200, Hans Hagen ha scritto:
 On 4/3/2015 12:31 AM, mf wrote:
  Hello,
  I have a problem with paragraph footnotes. I don't know how to prevent a
  line break occurring between the footnote number and the footnote text.
  Sometimes a thing like this happens:
 
  ... [main text] ...
 
  --
  1. text of the first footnote --- 2. text of the second one --- 3.
  text of the third one
 
  Is there a way to force ConTeXt to keep the 3. with text of the third
  one?
 
  Thanks in advance,
  Massi
  ...
 
  \definenote[footnote]
  \setupnotation[footnote][
 alternative=serried,
 numberstopper=,
 numbercommand={\high},
 numberconversion=a,
 way=bypage,
 width=0.5pt,
 location=page]
 
  \setupnote[footnote][
 alternative=serried,
 paragraph=yes,
 inbetween= \emdash{} ,
 location=page,
 before={\blank[2*line]}]
 
  \starttext
  First footnote\footnote{this is the text of the first footnote}.
  Another
  one\footnote{the second one, longer to get to the right margin}.
  And the third one,\footnote{third footnote} with the “c” letter
  separated by a line break from the footnote text.
  \stoptext
 
  I found a solution: adding a negative penalty at the end of the
  inbetween parameter:
 
  \setupnote[footnote][
 alternative=serried,
 paragraph=yes,
 inbetween= \emdash{} \penalty-1000,
 location=page,
 before={\blank[2*line]}]
 
  The footnotes' area was like this:
  -
  ^a this is the text of the first footnote --- ^b the second... --- ^c
  third footnote
 
  Now it is like this:
  -
  ^a this is the text of the first footnote --- ^b the second... ---
  ^c third footnote
 
  The first line ends with an em dash: it's not so fine, but it's better
  than a letter (footnote number) split from the text of the footnote by a
  line break.
 
 it is already handled in the beta
 

I've downloaded it and I was glad to see the result.
Now the footnotes' area looks like this:
-
^a this is the text... --- ^b the second... --- ^c third
footnote

It's much better. Thank you, Hans.

___
If your question is of interest to others as well, please add an 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] line break between number and footnote text in paragraph footnotes

2015-04-02 Thread Hans Hagen

On 4/3/2015 12:31 AM, mf wrote:

Hello,
I have a problem with paragraph footnotes. I don't know how to prevent a
line break occurring between the footnote number and the footnote text.
Sometimes a thing like this happens:

... [main text] ...

--
1. text of the first footnote --- 2. text of the second one --- 3.
text of the third one

Is there a way to force ConTeXt to keep the 3. with text of the third
one?

Thanks in advance,
Massi

...


\definenote[footnote]
\setupnotation[footnote][
   alternative=serried,
   numberstopper=,
   numbercommand={\high},
   numberconversion=a,
   way=bypage,
   width=0.5pt,
   location=page]

\setupnote[footnote][
   alternative=serried,
   paragraph=yes,
   inbetween= \emdash{} ,
   location=page,
   before={\blank[2*line]}]

\starttext
First footnote\footnote{this is the text of the first footnote}.
Another
one\footnote{the second one, longer to get to the right margin}.
And the third one,\footnote{third footnote} with the “c” letter
separated by a line break from the footnote text.
\stoptext


I found a solution: adding a negative penalty at the end of the
inbetween parameter:

\setupnote[footnote][
   alternative=serried,
   paragraph=yes,
   inbetween= \emdash{} \penalty-1000,
   location=page,
   before={\blank[2*line]}]

The footnotes' area was like this:
-
^a this is the text of the first footnote --- ^b the second... --- ^c
third footnote

Now it is like this:
-
^a this is the text of the first footnote --- ^b the second... ---
^c third footnote

The first line ends with an em dash: it's not so fine, but it's better
than a letter (footnote number) split from the text of the footnote by a
line break.


it is already handled in the beta



--

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

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

Re: [NTG-context] line break between number and footnote text in paragraph footnotes

2015-04-02 Thread mf
 Hello,
 I have a problem with paragraph footnotes. I don't know how to prevent a
 line break occurring between the footnote number and the footnote text.
 Sometimes a thing like this happens:
 
 ... [main text] ...
 
 --
 1. text of the first footnote --- 2. text of the second one --- 3.
 text of the third one
 
 Is there a way to force ConTeXt to keep the 3. with text of the third
 one?
 
 Thanks in advance,
 Massi
...

 \definenote[footnote]
 \setupnotation[footnote][
   alternative=serried,
   numberstopper=, 
   numbercommand={\high},  
   numberconversion=a, 
   way=bypage, 
   width=0.5pt,
   location=page]
 
 \setupnote[footnote][
   alternative=serried,
   paragraph=yes,
   inbetween= \emdash{} ,
   location=page,
   before={\blank[2*line]}]
 
 \starttext
 First footnote\footnote{this is the text of the first footnote}.
 Another
 one\footnote{the second one, longer to get to the right margin}.
 And the third one,\footnote{third footnote} with the “c” letter 
 separated by a line break from the footnote text.
 \stoptext

I found a solution: adding a negative penalty at the end of the
inbetween parameter:

\setupnote[footnote][
  alternative=serried,
  paragraph=yes,
  inbetween= \emdash{} \penalty-1000,
  location=page,
  before={\blank[2*line]}]

The footnotes' area was like this:
-
^a this is the text of the first footnote --- ^b the second... --- ^c
third footnote

Now it is like this:
-
^a this is the text of the first footnote --- ^b the second... ---
^c third footnote

The first line ends with an em dash: it's not so fine, but it's better
than a letter (footnote number) split from the text of the footnote by a
line break.


___
If your question is of interest to others as well, please add an 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] line break between number and footnote text in paragraph footnotes

2015-04-01 Thread massifr
 On 4/1/2015 12:15 AM, mf wrote:
  Hello,
  I have a problem with paragraph footnotes. I don't know how to prevent a
  line break occurring between the footnote number and the footnote text.
  Sometimes a thing like this happens:
 
  ... [main text] ...
 
  --
  1. text of the first footnote --- 2. text of the second one --- 3.
  text of the third one
 
  Is there a way to force ConTeXt to keep the 3. with text of the third
  one?
 
 example needed
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -

Here it is:

\definenote[footnote]
\setupnotation[footnote][
  alternative=serried,
  numberstopper=, 
  numbercommand={\high},  
  numberconversion=a, 
  way=bypage, 
  width=0.5pt,
  location=page]

\setupnote[footnote][
  alternative=serried,
  paragraph=yes,
  inbetween= \emdash{} ,
  location=page,
  before={\blank[2*line]}]

\starttext
First footnote\footnote{this is the text of the first footnote}. Another
one\footnote{the second one, longer to get to the right margin}.
And the third one,\footnote{third footnote} with the “c” letter 
separated by a line break from the footnote text.
\stoptext

I'm using the ConTeXt package from Debian testing, version 
2014.05.21.20140528-2.
Here's the output of context --version:
mtx-context | ConTeXt Process Management 0.60
mtx-context |
mtx-context | main context file: 
/usr/share/texmf/tex/context/base/context.mkiv
mtx-context | current version: 2014.05.21 22:04


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

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

Re: [NTG-context] footnotes broken in latest beta?

2015-03-28 Thread Pablo Rodriguez
On 03/27/2015 09:37 PM, Hans Hagen wrote:
 On 3/27/2015 6:46 PM, Pablo Rodriguez wrote:
 Hans,

 I’m afraid that footnotes are broken in latest beta from 
 2015-03-26 22:54:

  \starttext
  a\footnote{b}
  \stoptext

 Both numbers in body and footnote are missing.

 Many thanks for your help,
 
 i uploaded a beta ... with a few more things done in notes (some 1000 
 changes to go)
 
 thanks for testing

Many thanks for the fast fix, Hans.

What I see in the new beta is that with one of my documents blank
between footnotes is much higher than in the previous beta from
2015.03.25 22:13. But I will provide a minimal sample later.

Since you are changing so many things in notes, I wonder whether this is
the right time to ask for a feature.

Just in case it were, I would suggest the following:

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

Alphabetically sorted notes would be extremely useful for language teaching?

Many thanks for your help,


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

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

Re: [NTG-context] Indentation within footnotes

2015-03-15 Thread Pablo Rodriguez
On 03/15/2015 03:16 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
 [...]
 \setupnotation[footnote][indenting=yes,next]
 \setupfootnotedefinition[before={\setupindenting[big,yes]}]
 
 will give me what I want. But can anyone explain why *both* commands are  
 needed? Toggling these two commands doesn't work.

Hi Idris,

this does what you need:

\setupindenting[big,yes]
\startsetups[footnote:indenting]
\setupindenting[big,yes]
\stopsetups
\setupheads[indentnext=no]
\setupnote[footnote][setups=footnote:indenting]
\setupnotation[footnote][indenting=yes,next]

\starttext
\startsubject[title=Indentation Within a Footnote]
\input ward
\startfootnote
\input ward

\input ward

\input ward
\stopfootnote

The explanation (you are a ConTeXt expert and I’m only a long-term
newbie :-)) is that setups are required.

Setups belong to \setupnote and indenting belongs to \setupnotation.

I hope it helps,


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

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

Re: [NTG-context] Indentation within footnotes

2015-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Pablo,

On Sun, 15 Mar 2015 10:29:25 -0600, Pablo Rodriguez oi...@gmx.es wrote:


On 03/15/2015 03:16 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:

[...]
\setupnotation[footnote][indenting=yes,next]
\setupfootnotedefinition[before={\setupindenting[big,yes]}]

will give me what I want. But can anyone explain why *both* commands are
needed? Toggling these two commands doesn't work.


snip


\setupindenting[big,yes]
\startsetups[footnote:indenting]
\setupindenting[big,yes]
\stopsetups
\setupheads[indentnext=no]
\setupnote[footnote][setups=footnote:indenting]
\setupnotation[footnote][indenting=yes,next]


Fortunately, it's much easier that that ;-)

% Argument to after= controls vertical space between notes
\setupnotation
[footnote][before={\setupwhitespace[big]},indenting={yes,big},after={\blank[small]}]

As mentioned in the other email, the first next is apparently already  
built in, no no need for it.



(you are a ConTeXt expert and I’m only a long-term newbie :-))


Well, all users are long-term ConTeXt newbies, now and forever... The only  
exception is Wolfgang ;-)


And I still suspect Wolfgang is just Hans in disguise :D

Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an 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] Indentation within footnotes

2015-03-15 Thread Pablo Rodriguez
On 03/15/2015 05:55 PM, Wolfgang Schuster wrote:
 Am 15.03.2015 um 14:42 schrieb Idris Samawi Hamid ادريس سماوي حامد:

 Dear gang,

 In the attached example: For a given footnote I would like for the
 first line of each paragraph after paragraph one to be indented. What do
 I need to do to get this right? Thanks in advance, and

 Best wishes
 Idris

 
 \setupindenting[big,yes]
 \setupheads[indentnext=no]
 \setupnotation[footnote][command={\setupindenting[big,yes]},indenting=yes,next]
 
 1. You have to put braces around the arguments for the indenting key.
 
 2. Change the notation setup to
 \setupnotation[footnote][indenting={yes,big}] because notes ignore the
 global indent value.

Hi Wolfgang,

with the following sample:

\setupindenting[big,yes]
\startsetups[footnote:indenting]
\setupindenting[big,yes]
\stopsetups
\setupheads[indentnext=no]
\setupnote[footnote][setups=footnote:indenting]
\setupnotation[footnote][indenting={yes}]
\starttext
\input ward\footnote{\dorecurse{3}{\input ward\par}}

\input ward
\stoptext

it works as expected. Changing indenting to {yes, next} only the third
paragraph in the footnote is indented.

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

Re: [NTG-context] Indentation within footnotes

2015-03-15 Thread Pablo Rodriguez
On 03/15/2015 07:36 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
 On Sun, 15 Mar 2015 10:29:25 -0600, Pablo Rodriguez wrote:
 On 03/15/2015 03:16 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
 [...]
 will give me what I want. But can anyone explain why *both* commands are
 needed? Toggling these two commands doesn't work.

 \setupindenting[big,yes]
 \startsetups[footnote:indenting]
 \setupindenting[big,yes]
 \stopsetups
 \setupheads[indentnext=no]
 \setupnote[footnote][setups=footnote:indenting]
 \setupnotation[footnote][indenting=yes,next]
 
 Fortunately, it's much easier that that ;-)
 
 % Argument to after= controls vertical space between notes
 \setupnotation
 [footnote][before={\setupwhitespace[big]},indenting={yes,big},after={\blank[small]}]

Hi Idris,

I’m not sure whether this is clearer to me. It seems that your approach
enables indenting by setting vertical space in paragraphs.

I may be missing something, since I’d bet that the setups for notes
approach is clearer.

 (you are a ConTeXt expert and I’m only a long-term newbie :-))
 
 Well, all users are long-term ConTeXt newbies, now and forever... The only  
 exception is Wolfgang ;-)
 
 And I still suspect Wolfgang is just Hans in disguise :D

Good point.

It is Hans in his Superman disguise , :D.


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

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

[NTG-context] bug in paragraph footnotes?

2015-03-12 Thread Pablo Rodriguez
Dear list,

I’m afraid that the following sample shows a bug in interline space for
footnotes:

\startsetups[setups:footnote]
   \setupinterlinespace[line=6ex]
\stopsetups

\setupnotation[footnote][alternative=serried]
\setupnote[footnote][paragraph=yes, setups=setups:footnote]

\starttext
\dorecurse{2}{These are footnotes\footnote{\input knuth}. }
\stoptext

Could anyone confirm it or explain me what I’m missing?

Many thanks for your help,


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

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

Re: [NTG-context] bug in paragraph footnotes?

2015-03-12 Thread Hans Hagen

On 3/12/2015 5:52 PM, Pablo Rodriguez wrote:

Dear list,

I’m afraid that the following sample shows a bug in interline space for
footnotes:

 \startsetups[setups:footnote]
\setupinterlinespace[line=6ex]
 \stopsetups

 \setupnotation[footnote][alternative=serried]
 \setupnote[footnote][paragraph=yes, setups=setups:footnote]

 \starttext
 \dorecurse{2}{These are footnotes\footnote{\input knuth}. }
 \stoptext

Could anyone confirm it or explain me what I’m missing?


these paragraph notes are kind of special as we need to cheat a bit to 
let tex handle them right as inserts (see the texbook)


i'll send you a patch offline but no guaranteed

(some day i'll redo this a bit in a more mkiv-isch way)

Hans

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

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

Re: [NTG-context] paragraph footnotes line height

2015-03-10 Thread mf
Il giorno sab, 07/03/2015 alle 10.59 +0100, Wolfgang Schuster ha
scritto:
  Am 07.03.2015 um 00:08 schrieb mf mass...@fastwebnet.it:
  
  Hello,
  I'd like to know how I can set the line height of paragraph footnotes.
  They get the line height set with \setupinterlinespace, whether I use
  the grid or not.
  Here's my configuration:
  
  \setupnotation[footnote][
   alternative=serried,
   numbercommand=,
   numberstopper=,
   numbercommand=\high,
   numberconversion=a,
   way=bypage,
   width=0pt,
   location=page
  ]
  \setupnote[footnote][
   paragraph=yes,
   inbetween= \emdash{} ,
   location=page
  ]
 
 \startsetups[footnote:interlinespace]
   \setupinterlinespace[line=10pt]
 \stopsetups
 
 \setupnote[footnote][setups=footnote:interlinespace]
 
 Wolfgang

I have found a solution, searching with docfetcher for the occurrencies
of \baselineskip in all the ConTeXt documentation I've downloaded.
In LaTeX in proper ConTeXt, at page 26, Berend de Boer shows how to
set the the interline space relatively to the body font size.

My layout has a body font size of 11 points on 12 points of interline
space; I'm using grid snapping (\setuplayout[ ... grid=tolerant, ... ]).

Instead of setting the interline space like this:
\setupinterlinespace[12pt]
I've used:
\setupinterlinespace[1.09\bodyfontsize]  % 11pt * 1.09 = 12pt

This way:
- the paragraph footnotes' interline space is less than the 12 points of
the grid
- Wolfgang's solution works too: 
  \startsetups[footnote:interlinespace]
\setupinterlinespace[line=1.2\bodyfontsize]
  \stopsetups
  but only to widen the interline space of footnotes;

When I try to shrink the footnotes' interline space with:
  \startsetups[footnote:interlinespace]
\setupinterlinespace[line=.9\bodyfontsize]
  \stopsetups
the only vertical space that shrinks it the one between the bottom of
the main text and the footnotes' top.

Have you an explanation for that behaviour? I'm new to ConTeXt and I
still need to develop a ConTeXt mindset; perhaps the people who know
how ConTeXt works will find that understandable.
Any hint is welcome.

Thanks,
Massi

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

2015-03-10 Thread Hans Hagen

On 3/10/2015 10:58 PM, mf wrote:

Il giorno sab, 07/03/2015 alle 10.59 +0100, Wolfgang Schuster ha
scritto:

Am 07.03.2015 um 00:08 schrieb mf mass...@fastwebnet.it:

Hello,
I'd like to know how I can set the line height of paragraph footnotes.
They get the line height set with \setupinterlinespace, whether I use
the grid or not.
Here's my configuration:

\setupnotation[footnote][
  alternative=serried,
  numbercommand=,
  numberstopper=,
  numbercommand=\high,
  numberconversion=a,
  way=bypage,
  width=0pt,
  location=page
]
\setupnote[footnote][
  paragraph=yes,
  inbetween= \emdash{} ,
  location=page
]


\startsetups[footnote:interlinespace]
   \setupinterlinespace[line=10pt]
\stopsetups

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

Wolfgang


I have found a solution, searching with docfetcher for the occurrencies
of \baselineskip in all the ConTeXt documentation I've downloaded.
In LaTeX in proper ConTeXt, at page 26, Berend de Boer shows how to
set the the interline space relatively to the body font size.

My layout has a body font size of 11 points on 12 points of interline
space; I'm using grid snapping (\setuplayout[ ... grid=tolerant, ... ]).

Instead of setting the interline space like this:
\setupinterlinespace[12pt]
I've used:
\setupinterlinespace[1.09\bodyfontsize]  % 11pt * 1.09 = 12pt

This way:
- the paragraph footnotes' interline space is less than the 12 points of
the grid
- Wolfgang's solution works too:
   \startsetups[footnote:interlinespace]
 \setupinterlinespace[line=1.2\bodyfontsize]
   \stopsetups
   but only to widen the interline space of footnotes;

When I try to shrink the footnotes' interline space with:
   \startsetups[footnote:interlinespace]
 \setupinterlinespace[line=.9\bodyfontsize]
   \stopsetups
the only vertical space that shrinks it the one between the bottom of
the main text and the footnotes' top.

Have you an explanation for that behaviour? I'm new to ConTeXt and I
still need to develop a ConTeXt mindset; perhaps the people who know
how ConTeXt works will find that understandable.
Any hint is welcome.


the defaults are these:

\setupinterlinespace
  [height=.72,
   depth=.28,
   line=2.8\exheight]

so you can try for instance

\setupinterlinespace
  [line=3.2\exheight]

the height/depth are ratios used in struts etc



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

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

Re: [NTG-context] paragraph footnotes line height

2015-03-09 Thread massifr
On 03/07/2015 10:59 AM, Wolfgang Schuster wrote:
 Am 07.03.2015 um 00:08 schrieb mf:
 I'd like to know how I can set the line height of paragraph footnotes.
 [...]
 
 \startsetups[footnote:interlinespace]
   \setupinterlinespace[line=10pt]
 \stopsetups
 
 \setupnote[footnote][setups=footnote:interlinespace]

Wolfgang,

this doesn’t work with paragraph footnotes:

\startsetups[setups:footnote]
  \setupinterlinespace[line=8ex]
\stopsetups

\setupnotation[footnote][
  alternative=serried,
  numbercommand=\high,
  numberconversion=a,
  way=bypage,
  width=0pt,
]
\setupnote[footnote][
  paragraph=yes,
  inbetween= \emdash{} ,
  setups=setups:footnote,
]

\starttext
\dorecurse{2}{These are footnotes\footnote{\input knuth}. }
\stoptext

Is it a bug?


Pablo

This problem was already outlined here: 
http://www.ntg.nl/pipermail/ntg-context/2007/024384.html

Is it a bug or a feature that has not been implemented?
I know that paragraph footnotes are less common, but a smaller font with the 
same line space of the main text is ugly.
Is there a workaround? Where should I look for a solution?
I tried to modify the interline space in before parameter, without success.
I looked at strc-not.mkvi, but it's too difficult for me (at least for now), 
since I'm new to ConTeXt (and TeX).
Any suggestions?
Thanks in advance,
Massi
___
If your question is of interest to others as well, please add an 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] paragraph footnotes line height

2015-03-07 Thread Pablo Rodriguez
On 03/07/2015 10:59 AM, Wolfgang Schuster wrote:
 Am 07.03.2015 um 00:08 schrieb mf:
 I'd like to know how I can set the line height of paragraph footnotes.
 [...]
 
 \startsetups[footnote:interlinespace]
   \setupinterlinespace[line=10pt]
 \stopsetups
 
 \setupnote[footnote][setups=footnote:interlinespace]

Wolfgang,

this doesn’t work with paragraph footnotes:

\startsetups[setups:footnote]
  \setupinterlinespace[line=8ex]
\stopsetups

\setupnotation[footnote][
  alternative=serried,
  numbercommand=\high,
  numberconversion=a,
  way=bypage,
  width=0pt,
]
\setupnote[footnote][
  paragraph=yes,
  inbetween= \emdash{} ,
  setups=setups:footnote,
]

\starttext
\dorecurse{2}{These are footnotes\footnote{\input knuth}. }
\stoptext

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

Re: [NTG-context] paragraph footnotes line height

2015-03-07 Thread Wolfgang Schuster

 Am 07.03.2015 um 00:08 schrieb mf mass...@fastwebnet.it:
 
 Hello,
 I'd like to know how I can set the line height of paragraph footnotes.
 They get the line height set with \setupinterlinespace, whether I use
 the grid or not.
 Here's my configuration:
 
 \setupnotation[footnote][
  alternative=serried,
  numbercommand=,
  numberstopper=,
  numbercommand=\high,
  numberconversion=a,
  way=bypage,
  width=0pt,
  location=page
 ]
 \setupnote[footnote][
  paragraph=yes,
  inbetween= \emdash{} ,
  location=page
 ]

\startsetups[footnote:interlinespace]
  \setupinterlinespace[line=10pt]
\stopsetups

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

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] paragraph footnotes line height

2015-03-07 Thread mf
  Am 07.03.2015 um 00:08 schrieb mf mass...@fastwebnet.it:
  
  Hello,
  I'd like to know how I can set the line height of paragraph footnotes.
  They get the line height set with \setupinterlinespace, whether I use
  the grid or not.
  Here's my configuration:
  
  \setupnotation[footnote][
   alternative=serried,
   numbercommand=,
   numberstopper=,
   numbercommand=\high,
   numberconversion=a,
   way=bypage,
   width=0pt,
   location=page
  ]
  \setupnote[footnote][
   paragraph=yes,
   inbetween= \emdash{} ,
   location=page
  ]
 
 \startsetups[footnote:interlinespace]
   \setupinterlinespace[line=10pt]
 \stopsetups
 
 \setupnote[footnote][setups=footnote:interlinespace]
 
 Wolfgang

Comment out the paragraph=yes and it works.
But paragraph footnotes don't seem to work with it, 
as also Pablo pointed out.

Anyway, thank you both.

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

2015-03-06 Thread mf
Hello,
I'd like to know how I can set the line height of paragraph footnotes.
They get the line height set with \setupinterlinespace, whether I use
the grid or not.
Here's my configuration:

\setupnotation[footnote][
  alternative=serried,
  numbercommand=,
  numberstopper=,
  numbercommand=\high,
  numberconversion=a,
  way=bypage,
  width=0pt,
  location=page
]
\setupnote[footnote][
  paragraph=yes,
  inbetween= \emdash{} ,
  location=page
]

Thanks,
Massi

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

2015-03-01 Thread Gerben Wierda
On 01 Mar 2015, at 23:00, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 01.03.2015 um 22:53 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 What do I replace these mkii command with in mkiv? The first seems to be 
 ignored (all numbering is capital roman) and the others lead to an error 
 message in mkiv
 
 \setupfootnotes[conversion=set 2,way=bypage,align=flushleft]
 \setupnotedefinition[footnote][indenting={yes,medium}]
 \setupnotedefinition[endnote][indenting={yes,medium},style={\switchtobodyfont[10pt]}]
 
 The new name for \setupnotedefinition is \setupnotation and the counter 
 settings have moved from \setupnote to \setupnotation.

Thanks,

so this should work?

\setupnotation[footnote][numberconversion=set 
2,way=bypage,align=flushleft,indenting={yes,medium}]
\setupnotation[endnote][numberconversion=numbers,indenting={yes,medium},style={\switchtobodyfont[10pt]}]


 
 Wolfgang
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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

Re: [NTG-context] \setupnotedefinition in mkiv?

2015-03-01 Thread Wolfgang Schuster

 Am 01.03.2015 um 22:53 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 What do I replace these mkii command with in mkiv? The first seems to be 
 ignored (all numbering is capital roman) and the others lead to an error 
 message in mkiv
 
 \setupfootnotes[conversion=set 2,way=bypage,align=flushleft]
 \setupnotedefinition[footnote][indenting={yes,medium}]
 \setupnotedefinition[endnote][indenting={yes,medium},style={\switchtobodyfont[10pt]}]

The new name for \setupnotedefinition is \setupnotation and the counter 
settings have moved from \setupnote to \setupnotation.

Wolfgang

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

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

Re: [NTG-context] superior numbers for footnote numbers?

2015-02-05 Thread Jörg Weger

Thank you very much! I had not thought it was that easy!

Jörg

On 05.02.2015 13:14, Wolfgang Schuster wrote:

\definefontfamily [mainface][rm][Linux Libertine O]
\definefontfamily [mainface][mm][TeX Gyre Pagella Math]

\definefontfeature[f:sups][sups=yes]

\setupbodyfont[mainface]

\setupnote[footnote][textcommand=,textstyle=\addff{f:sups}]
\setupnotation[footnote][numbercommand=,headstyle=\addff{f:sups}]

\starttext

\input knuth\footnote{Knuth sample text}

\input ward\footnote{Ward sample text}

\stoptext

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

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

Re: [NTG-context] superior numbers for footnote numbers?

2015-02-05 Thread Hans Hagen

On 2/5/2015 2:10 PM, Jörg Weger wrote:

Thank you very much! I had not thought it was that easy!

Jörg

On 05.02.2015 13:14, Wolfgang Schuster wrote:

\definefontfamily [mainface][rm][Linux Libertine O]
\definefontfamily [mainface][mm][TeX Gyre Pagella Math]

\definefontfeature[f:sups][sups=yes]

\setupbodyfont[mainface]

\setupnote[footnote][textcommand=,textstyle=\addff{f:sups}]
\setupnotation[footnote][numbercommand=,headstyle=\addff{f:sups}]

\starttext

\input knuth\footnote{Knuth sample text}

\input ward\footnote{Ward sample text}

\stoptext


i'll add:

\definefontfeature[f:superiors][sups=yes]

\unexpanded\def\setsuperiors{\doaddfeature{f:superiors}}

(we already have \setsmallcaps, \settabular and \setoldstyle)

Hans



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

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

Re: [NTG-context] superior numbers for footnote numbers?

2015-02-05 Thread Jörg Weger

Hello Hans,


Those are nice self-explanatory commands which also mean I don’t have to 
define them myself.


From my short opentype feature experience I would add the following 
combinations (defined names could be shortened, long names here only for 
better explanation):



Tabular oldstyle numbers (oldstyle numbers aligning correctly in tables 
through fixed spacing):


\definefontfeature[f:tabular_oldstyle][onum=yes,tnum=yes]

\unexpanded\def\settaboldstyle{\doaddfeature{f:tabular_oldstyle}}

\settaboldstyle


Proportional oldstyle numbers (oldstyle numbers for in-text use 
spaced/kerned according to their forms):


\definefontfeature[f:proportional_oldstyle][onum=yes,pnum=yes]

\unexpanded\def\setpropoldstyle{\doaddfeature{f:proportional_oldstyle}}

\setpropoldstyle


Tabular lining numbers (lining numbers aligning correctly in tables 
through fixed spacing):


\definefontfeature[f:tabular_lining][lnum=yes,tnum=yes]

\unexpanded\def\settablining{\doaddfeature{f:tabular_lining}}

\settablining


Proportional lining numbers (lining numbers spaced/kerned according to 
their forms):


\definefontfeature[f:proportional_lining][lnum=yes,pnum=yes]

\unexpanded\def\setproplining{\doaddfeature{f:proportional_lining}}

\setproplining


plus

Scientific inferiors (numbers for subscript, e.g. in chemical formulas):

\definefontfeature[f:inferiors][sinf=yes]

\unexpanded\def\setinferiors{\doaddfeature{f:inferiors}}

\setinferiors


Of course all this works only if the font offers the according opentype 
features.



Greetings Jörg



On 05.02.2015 23:46, Hans Hagen wrote:

On 2/5/2015 2:10 PM, Jörg Weger wrote:

Thank you very much! I had not thought it was that easy!

Jörg

On 05.02.2015 13:14, Wolfgang Schuster wrote:

\definefontfamily [mainface][rm][Linux Libertine O]
\definefontfamily [mainface][mm][TeX Gyre Pagella Math]

\definefontfeature[f:sups][sups=yes]

\setupbodyfont[mainface]

\setupnote[footnote][textcommand=,textstyle=\addff{f:sups}]
\setupnotation[footnote][numbercommand=,headstyle=\addff{f:sups}]

\starttext

\input knuth\footnote{Knuth sample text}

\input ward\footnote{Ward sample text}

\stoptext


i'll add:

\definefontfeature[f:superiors][sups=yes]

\unexpanded\def\setsuperiors{\doaddfeature{f:superiors}}

(we already have \setsmallcaps, \settabular and \setoldstyle)

Hans



-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___

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

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

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

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

Re: [NTG-context] superior numbers for footnote numbers?

2015-02-05 Thread Wolfgang Schuster

 Am 05.02.2015 um 13:01 schrieb Jörg Weger joerg73@googlemail.com:
 
 
 Better equipped opentype fonts offer so called superior numbers as an 
 opentype feature. Those are special smaller figures for “superscript” 
 (opentype feature “sups”) that are not simply scaled down versions of the 
 normal figures (be they oldstyle or lining) you are normally using.
 
 Scaling down is as far as I understood the default way context is using to 
 generate the numbers for footnotes. Is there a way to define the use of 
 unscaled superiors according to the fontsizes of body text and footnote text 
 instead?
 
 Greetings Jörg
 
 PS: I am using for serif the “Linux Libertine O” family (installed as OTF and 
 invoked by the included mkiv simplefont mechanism) which has the “sups” 
 feature.

\definefontfamily [mainface][rm][Linux Libertine O]
\definefontfamily [mainface][mm][TeX Gyre Pagella Math]

\definefontfeature[f:sups][sups=yes]

\setupbodyfont[mainface]

\setupnote[footnote][textcommand=,textstyle=\addff{f:sups}]
\setupnotation[footnote][numbercommand=,headstyle=\addff{f:sups}]

\starttext

\input knuth\footnote{Knuth sample text}

\input ward\footnote{Ward sample text}

\stoptext

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

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

Re: [NTG-context] inline footnotes

2015-01-30 Thread Wolfgang Schuster

 Am 30.01.2015 um 22:44 schrieb mf mass...@fastwebnet.it:
 
 Hi Massi,
 
 Could you possibly provide a small pdf sample that illustrates exactly
 what you are looking for? Thanks and 
 
 Best wishes 
 Idris
 
 Thanks for your reply, Idris. Here's an example:
 
 *** traditional (stacked) footnotes ***
 ***
 
 1. This is the text of the first footnote
 2. This is the text of the second footnote
 
 
 *** inline footnotes (one paragraph for all the footnotes) ***
 **
 
 1. first footnote --- 2. second footnote --- 3. the third
 footnote, extending to the next line --- 4. fourth one
 
 
 *** footnotes in columns in ConTeXt (\setupfootnotes[n=3]) ***
 **
 
 1. first footnote 2. second one 3. third one
 4. fourth one, hy-phenated
 
 
 Inline footnotes are good when you have a lot of short notes,
 that would eat a lot of vertical space, and sometimes other
 longer footnotes.
 I've put an m-dash as a separator, but you could use a wide
 space or another separator.
 
 Footnotes in columns are good if they are ALL shorter than
 the column width.
 
 The LaTeX package footmisc provides the inline footnotes
 by the option para. But, if I understand right, LaTeX packages
 are not compatible with ConTeXt.

\setupnotation[footnote][alternative=serried,numbercommand=,numberstopper=.]
\setupnote[footnote][paragraph=yes,inbetween=~–~]

\starttext

One\footnote{first footnote}
Two\footnote{second footnote}
Three\footnote{The third footnote, extending to the next line}
Four\footnote{fourth one}

\stoptext

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

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

Re: [NTG-context] mkii definition of \setupnotedefinition

2014-12-13 Thread Wolfgang Schuster

 Am 13.12.2014 um 12:25 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks.
 
 Is it possible to influence the font size of the endnote number too, 
 preferably separate in the text and at the location where the endnotes are 
 printed?

\setupcolors[state=start]

\setupnotedefinition
  [endnote]
  [style={\switchtobodyfont[10pt]},
   headstyle=\ttb,
   headcolor=blue]

\setupnote
  [endnote]
  [%textcommand=,
   %numbercommand=,
   textstyle=\ssb,
   textcolor=red]

\starttext

Ward.\endnote{\input ward }

\placenotes[endnote]

\stoptext

Wolfgang

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

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

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

2014-12-11 Thread Pablo Rodriguez
Dear list,

I have the following sample:

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

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

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

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

Could anyone confirm the bug?

Many thanks for your help,


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

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

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

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

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

Many thanks for your reply. Wolfgang.

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

Many thanks for your help,


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

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

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

2014-12-11 Thread Wolfgang Schuster

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

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

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

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

[NTG-context] interline space in final notes?

2014-12-08 Thread Pablo Rodriguez
Dear list,

I have the following sample:

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

\definenote[specialnote]
\setupnote[specialnote][setups=setups:footnote]
\setupnote[footnote][way=bytext, location=text,
setups=setups:footnote]

\def\snote#1{\footnote{#1}\specialnote{#1}}

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

And I dont know how to setup the different interline space for final
footnotes?

Aren’t setups the right way to do this?

Many thanks for your help,


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

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

[NTG-context] wrong line break in linenotes

2014-11-24 Thread Pablo Rodriguez
Dear list,

sorry for writting again about this, but I have this sample:

\showframe
\definepapersize[HippPaper][width=6in, height=9in]
\setuppapersize[HippPaper]
\setupnote[linenote][rule=off, paragraph=yes, split=verystrict,
scope=text, inbetween=\hskip1.5em, compress=yes]
\setupnotation[linenote][numbercommand=, width=broad,
alternative=serried, distance=1em]

\starttext
\startlinenumbering
\showhyphens{testing paragraph}
\dorecurse{50}{This\linenote{That} is\linenote{was} a\linenote{one}
testing\linenote{nesting} sentence\linenote{table}. }
\stoplinenumbering
\stoptext

It has wrong line breaks in linenotes with latest beta from 2014.11.17
14:32. It has also wrong linebreaks with stable version form 2014.01.03
00:40.

But line breaks are right with version 2013.05.28 00:36 (which comes
with TeX Live 2013).

Line breaks are right, if I use footnotes instead of linenotes.

Could anyone confirm this bug?

Many thanks for your help,


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

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

Re: [NTG-context] bug in hyphenation?

2014-09-04 Thread Pablo Rodriguez
On 08/30/2014 12:00 PM, Hans Hagen wrote:
 On 8/30/2014 6:47 AM, Pablo Rodriguez wrote:
 Dear list,

 the following sample shows bad hyphenation in the first body line and in
 many linenotes:

 \showframe
 \definepapersize[HippPaper][width=6in, height=9in]
 \setuppapersize[HippPaper]
 \setupnote[linenote][rule=off, paragraph=yes, split=verystrict,
 scope=text, inbetween=\hskip1.5em, compress=yes]
 \setupnotation[linenote][numbercommand=, width=broad,
 alternative=serried, distance=1em]

 \starttext
 \startlinenumbering
 \showhyphens{testing paragraph}
 \dorecurse{50}{This\linenote{That} is\linenote{was} a\linenote{one}
 testing\linenote{nesting} sentence\linenote{table}. }
 \stoplinenumbering
 \stoptext

 If this is not a bug, what am I missing here?

 Many thanks for your help,
 
 more a side effect of binding a reference node and such ... possible 
 solution in next beta

Hans,

I’m afraid that beta from today has still this 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Internal clickable links

2014-09-03 Thread Wolfgang Schuster

Am 03.09.2014 um 11:13 schrieb Keith McKay mckaymeis...@gmail.com:

 Thanks for the advice Wolfgang.
 I went back to the wiki and found \setupfootnotes, \placefootnotes and 
 \setupfootnotedefinition.  Playing around with these I almost get what I 
 want.  What I don't get is two way interaction i.e. clicking on the 
 superscript in the text doesn't take me to the footnote (or endnote in this 
 case), but clicking on the superscript of the footnote takes me back to the 
 word in the text.  I would really prefer to be able to click on a word to 
 take me to the definition and click on the definition to take me back to the 
 word.

I can’t reproduce this behavior, both links from the footnote marker in the 
text and back from the footnote to the reference work for me.

\setupinteraction[state=start]

\setupnote[footnote][location=text]

\starttext

barley\footnote{barley} chocolate\footnote{chocolate}

\page

\placenotes[footnote]

\stoptext

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

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

Re: [NTG-context] Internal clickable links

2014-09-03 Thread Keith McKay
I'm running ConText through TeXworks on my mac mini.  The console shows 
that I running Context Mkiv


This is LuaTeX, Version beta-0.76.0-2013061817 (rev 4627)

\write18 enabled.

(/usr/local/texlive/2013/texmf-dist/tex/context/base/cont-yes.mkiv


ConTeXt ver: 2013.05.28 00:36 MKIV current fmt: 2014.9.3 int: 
english/english



However, when I change the typesetting engine to Context(pdftex) or 
Context(XeTex) it works as you said it should.


I think I should maybe upgrade to the latest version of Context. :-[

Thanks for help

Best Wishes
Keith McKay

On 03/09/2014 10:24, Wolfgang Schuster wrote:


Am 03.09.2014 um 11:13 schrieb Keith McKay mckaymeis...@gmail.com 
mailto:mckaymeis...@gmail.com:



Thanks for the advice Wolfgang.
I went back to the wiki and found \setupfootnotes, \placefootnotes 
and \setupfootnotedefinition.  Playing around with these I almost get 
what I want.  What I don't get is two way interaction i.e. clicking 
on the superscript in the text doesn't take me to the footnote (or 
endnote in this case), but clicking on the superscript of the 
footnote takes me back to the word in the text.  I would really 
prefer to be able to click on a word to take me to the definition and 
click on the definition to take me back to the word.


I can't reproduce this behavior, both links from the footnote marker 
in the text and back from the footnote to the reference work for me.


\setupinteraction[state=start]

\setupnote[footnote][location=text]

\starttext

barley\footnote{barley} chocolate\footnote{chocolate}

\page

\placenotes[footnote]

\stoptext

Wolfgang


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

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


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

2014-09-02 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\startsetups[footssetups]
\setupinterlinespace[line=5ex]
\stopsetups
\setupnote[footnote][setups=footsetups]
\starttext
\footnote{\input zapf}\input knuth
\stoptext

AFAIK, the footnote should have extra interline space. But I don’t get
it. I’m using beta from 2014.08.29 20:57.

Am I missing something?

Many thanks for your help,


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

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


Re: [NTG-context] setups not working

2014-09-02 Thread Hans Hagen

On 9/2/2014 5:08 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \startsetups[footssetups]

^^ 2


 \setupinterlinespace[line=5ex]
 \stopsetups
 \setupnote[footnote][setups=footsetups]

   ^ 1

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

AFAIK, the footnote should have extra interline space. But I don’t get
it. I’m using beta from 2014.08.29 20:57.

Am I missing something?

Many thanks for your help,


Pablo




--

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

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


Re: [NTG-context] setups not working

2014-09-02 Thread Pablo Rodriguez
Many thanks for your help, Hans.

Pablo


On 09/02/2014 08:02 PM, Hans Hagen wrote:
 On 9/2/2014 5:08 PM, Pablo Rodriguez wrote:
 Dear list,

 I have the following sample:

  \startsetups[footssetups]
  ^^ 2
 
  \setupinterlinespace[line=5ex]
  \stopsetups
  \setupnote[footnote][setups=footsetups]
 ^ 1
  \starttext
  \footnote{\input zapf}\input knuth
  \stoptext

 AFAIK, the footnote should have extra interline space. But I don’t get
 it. I’m using beta from 2014.08.29 20:57.

 Am I missing something?

 Many thanks for your help,


 Pablo


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

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


Re: [NTG-context] bug in hyphenation?

2014-08-30 Thread Hans Hagen

On 8/30/2014 6:47 AM, Pablo Rodriguez wrote:

Dear list,

the following sample shows bad hyphenation in the first body line and in
many linenotes:

\showframe
\definepapersize[HippPaper][width=6in, height=9in]
\setuppapersize[HippPaper]
\setupnote[linenote][rule=off, paragraph=yes, split=verystrict,
scope=text, inbetween=\hskip1.5em, compress=yes]
\setupnotation[linenote][numbercommand=, width=broad,
alternative=serried, distance=1em]

\starttext
\startlinenumbering
\showhyphens{testing paragraph}
\dorecurse{50}{This\linenote{That} is\linenote{was} a\linenote{one}
testing\linenote{nesting} sentence\linenote{table}. }
\stoplinenumbering
\stoptext

If this is not a bug, what am I missing here?

Many thanks for your help,


more a side effect of binding a reference node and such ... possible 
solution in next beta


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

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


[NTG-context] bug in hyphenation?

2014-08-29 Thread Pablo Rodriguez
Dear list,

the following sample shows bad hyphenation in the first body line and in
many linenotes:

\showframe
\definepapersize[HippPaper][width=6in, height=9in]
\setuppapersize[HippPaper]
\setupnote[linenote][rule=off, paragraph=yes, split=verystrict,
scope=text, inbetween=\hskip1.5em, compress=yes]
\setupnotation[linenote][numbercommand=, width=broad,
alternative=serried, distance=1em]

\starttext
\startlinenumbering
\showhyphens{testing paragraph}
\dorecurse{50}{This\linenote{That} is\linenote{was} a\linenote{one}
testing\linenote{nesting} sentence\linenote{table}. }
\stoplinenumbering
\stoptext

If this is not a bug, what am I missing here?

Many thanks for your help,


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

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


[NTG-context] issues with footnotes

2014-08-25 Thread Pablo Rodriguez
Dear list,

using beta from 2014-08-21 09:59, I’m trying to generate a document that
has two bodies of notes: footnotes and linenotes.

Since the document isn’t minimal, I include only the notes definitions:

\definenote[dict]
\setupnote[dict][setups=setups:linenote, n=2, rule=off,
split=verystrict, scope=text, inbetween=\hskip1.5em]
\setupnotation[dict][number=no, width=broad]

\definelinenote[grammatical]
\setupnote[grammatical][setups=setups:linenote, rule=off, paragraph=yes,
split=verystrict, scope=text, inbetween=\hskip1.5em, compress=yes]
\setupnotation[grammatical][numbercommand=, alternative=serried,
distance=1em]

The output can be found at http://www.ousia.tk/unbalanced-columns.pdf.

In all four pages, columns in footnotes are unbalanced. Is there any way
to get balanced columns in footnotes?

The second issue is that the columnar footnotes don’t respect space
before and after defined in \setupnote. How can I avoid this? (BTW, this
also happens with the space before when paragraph=yes.)

BTW, if I add the following code to avoid widows and orphans:

\setuplayout[setups=*lessstrict]
\startsetups[*lessstrict]
\setup[reset]
\widowpenalty=1
\clubpenalty=1
\brokenpenalty=0
\stopsetups

The footnotes aren’t displayed in columns at all
(http://www.ousia.tk/no-columns.pdf).

Is there no way that I can avoid widows and orphans for the body text?

Many thanks for your help,


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

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


Re: [NTG-context] Bugs in linenumbering ?

2014-04-03 Thread Pablo Rodriguez
On 04/03/2014 04:19 PM, Hans Hagen wrote:
 On 4/2/2014 3:17 PM, Stéphane Goujet wrote:

 3) linenumbering does not work within footnotes (neither with line
 numbers in margin nor in text).
 
 i've added support for notes (somewhat tricky)

Sorry, but I cannot refrain from asking: how about having line numbers
in \setupnote and being optional to have different or the same counting
than the rest of the page?


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

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

Re: [NTG-context] Footnote maker in parentheses

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

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

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

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


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

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

Re: [NTG-context] Endnotes bug

2014-03-19 Thread Hans Hagen

On 3/19/2014 12:58 AM, Rik Kabel wrote:

Using both TL2013 and the current standalone beta (2014-03-16) I see a
spurious comma in index entries referring to endnote locations. The
following MWE shows the problem:

\setupnote[footnote][location=none]
\starttext
Index in endnote.\footnote{\index{Why a comma?}Endnote.}
\placefootnotes
\placeindex
\stoptext


fixed (sort of) but i'm not sure about side effects

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

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


[NTG-context] Endnotes bug

2014-03-18 Thread Rik Kabel
Using both TL2013 and the current standalone beta (2014-03-16) I see a 
spurious comma in index entries referring to endnote locations. The 
following MWE shows the problem:


   \setupnote[footnote][location=none]
   \starttext
   Index in endnote.\footnote{\index{Why a comma?}Endnote.}
   \placefootnotes
   \placeindex
   \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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] (again) bug?: \about disables \setupnote[split=strict]

2014-03-16 Thread Hans Hagen

On 3/13/2014 6:12 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

\setuppapersize[A6]
\setupnote[footnote][split=strict]
\starttext
\section[bspaces]{Blank spaces}
\section[paragraph]{Paragraphs}

\dorecurse{11}{This is a sentence.\par}

This is already explained in sections
\about[bspaces] y \about[paragraph].
%~ \namedstructurevariable{section}{title} and
\namedstructurevariable{section}{title}.
\dorecurse{2}{This is a sentence. }.\footnote{\dorecurse{5}
{this is a footnote sentence. }}

This is another sentence.
\stoptext

If I use the lines with \about, footnote reference in body and footnote
are placed in different pages.

If I use \namedstructurevariable, footnote reference in body and
footnote are placed in the same page.

I have two questions:

Could anyone confirm this is a bug in \about?

Is there any way to use \namedstructurevariable for sections other than
the current? (So I would be able to avoid using \about.)

Many thanks for your help,


It relates to postponing notes. If we add \flushnotes here it works ok:

\unexpanded\def\strc_references_about[#label]%
  {\dontleavehmode
   \begingroup
   \let\crlf\space
   \let\\\space
   \postponenotes % might go
   \referencingparameter\c!left
   \doifreferencefoundelse{#label}

{\goto{\limitatetext\currentreferencetitle{\referencingparameter\c!width}\unknown}[#label]}% 
not so efficient (dup lookup)

 {}% todo
   \flushnotes % might go
   \referencingparameter\c!right
   \endgroup}

The question is, can we just omit the postponing in mkiv ... probably ...

Hans

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

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


[NTG-context] (again) bug?: \about disables \setupnote[split=strict]

2014-03-13 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setuppapersize[A6]
\setupnote[footnote][split=strict]
\starttext
\section[bspaces]{Blank spaces}
\section[paragraph]{Paragraphs}

\dorecurse{11}{This is a sentence.\par}

This is already explained in sections
\about[bspaces] y \about[paragraph].
%~ \namedstructurevariable{section}{title} and
\namedstructurevariable{section}{title}.
\dorecurse{2}{This is a sentence. }.\footnote{\dorecurse{5}
{this is a footnote sentence. }}

This is another sentence.
\stoptext

If I use the lines with \about, footnote reference in body and footnote
are placed in different pages.

If I use \namedstructurevariable, footnote reference in body and
footnote are placed in the same page.

I have two questions:

Could anyone confirm this is a bug in \about?

Is there any way to use \namedstructurevariable for sections other than
the current? (So I would be able to avoid using \about.)

Many thanks for your help,


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

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


[NTG-context] \about disables \setupnote[footnote][split=strict]

2014-03-11 Thread Pablo Rodriguez
Dear list,

I have just accidentally noted that \about disables the option
[split=strict] in \setupnote.

Here is a sample:

\mainlanguage[es]
\setuppapersize[A6]
\setupnote[footnote][split=strict]
\starttext
\section[espacios]{Espacios}
\section[parrafos]{Párrafos}

\dorecurse{5}{Esta es una frase.\par}

En el preámbulo sólo existen órdenes. Antes de \tex{starttext}, no debe
haber texto, únicamente órdenes de configuración. Cada orden puede
formar un parrafo, esto es, puede contener saltos de línea, pero no una
línea en blanco. Y no debemos mezclar órdenes distintas en la misma
línea. En el preámbulo se aplica también lo dicho en las secciones
%~ «Espacios» y «Párrafos».
\about[espacios] y \about[parrafos].
Entre diferentes órdenes, puede haber tantos saltos de línea como
queramos\footnote{En este caso, ni siquiera tiene que haber una línea en
blanco. La única regla es la legibilidad de nuestro código. Es
especialmente importante, porque las órdenes de configuración del
preámbulo son más difíciles de leer que el texto mezclado con órdenes.}.

Esta es otra frase.
\stoptext

If you comment the \about line and uncomment the previous line, you will
see the different behavior. Note reference in body shouldn’t have the
footnote in a different page.

I’m afraid this is a bug. Would anyone be so kind to confirm it?

Many thanks for your help,


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

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


[NTG-context] (critical edition) wrong page breaks with linenotes

2014-03-04 Thread Pablo Rodriguez
Hi Thomas, Luigi and Hans,

I have a sample (http://www.ousia.tk/hefestio-ctx.tex) that
shows problematic page breaks with notes in paragraph form. This is
especially relevant for linenotes in critical editions.

The compiled version (http://www.ousia.tk/hefestio-ctx.pdf) shows
results at twelve, thirteen and fourteen points.

I know I’m using a font that is not part of the ConTeXt Suite, but it
is the one that gives me the faulty results. Of course, it isn’t the
only problematic one.

In the source, \setupnote is set in both linenotes to
[split=verystrict, scope=page] to avoid having linenotes that refer to
a line from the previous page.

If I’m not missing something or doing something wrong, I think that a
way to solve this (sorry, I don’t know the internals, but the
suggestion might be a valid one) is to set a kind of penalty that does
the following: if the line in its final position doesn’t observe the
space before of the first apparatus, it should be moved to the next
page.

Isn’t this proposal similar to the way widow and orphans are avoided by
setting penalties?

Many thanks for your help,


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

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


[NTG-context] tolerance only in notes

2014-03-03 Thread Pablo Rodriguez
Dear list,

which is the option to setup tolerance in notes?

Sorry, but tolerance doesn’t seem to be an option either in \setupnote
or \setupnotation.

Many thanks for your help,


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

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


Re: [NTG-context] tolerance only in notes

2014-03-03 Thread Aditya Mahajan
Use the align key: align=tolerant. 

Aditya

 On Mar 3, 2014, at 3:28 PM, Pablo Rodriguez oi...@gmx.es wrote:
 
 Dear list,
 
 which is the option to setup tolerance in notes?
 
 Sorry, but tolerance doesn’t seem to be an option either in \setupnote
 or \setupnotation.
 
 Many thanks for your help,
 
 
 Pablo
 -- 
 http://www.ousia.tk
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
___
If your question is of interest to others as well, please add an 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] tolerance only in notes

2014-03-03 Thread Pablo Rodriguez
On 03/03/2014 09:53 PM, Aditya Mahajan wrote:
 Use the align key: align=tolerant. 

Many thanks for your help, Aditya.

Pablo


 On Mar 3, 2014, at 3:28 PM, Pablo Rodriguez oi...@gmx.es wrote:

 Dear list,

 which is the option to setup tolerance in notes?

 Sorry, but tolerance doesn’t seem to be an option either in \setupnote
 or \setupnotation.

 Many thanks for your help,


 Pablo


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

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

Re: [NTG-context] Footnote mark gap

2014-03-01 Thread Wolfgang Schuster

Am 28.02.2014 um 19:56 schrieb Jan Tosovsky j.tosov...@email.cz:

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

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

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

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

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

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


Re: [NTG-context] Footnote mark gap

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

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

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

Jan

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

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


[NTG-context] (critical edition) notes alphabetically sorted

2013-12-22 Thread Pablo Rodriguez
Hi Thomas, Luigi and Hans,

I’m aware that this isn’t exactly a feature for critical editions, but
this is a useful feature for educational material.

This is a minimal sample:

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

Having these notes alphabetically ordered would be extremely useful for
language teaching-

Many thanks for your help,


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

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

Re: [NTG-context] line notes compress

2013-12-03 Thread Hans Hagen

On 12/2/2013 9:04 PM, Pablo Rodriguez wrote:

On 12/02/2013 03:31 PM, Hans Hagen wrote:

Hi,

The linenote compression options (and control) has been upgraded:


Hi Hans,

many thanks for the new compression options.


Keep in mind that paragraph notes are somewhat special so some tolerance
in alignment helps.


This is not directly related to linenotes, but to paragraph notes. There
are some cases a note starts in the next page to body text it refers to.

With the following scenario (I have seen this): poetry with verses
numbered to the page, two apparatus (critical and similar) and the first
linenote on at least one apparatus comes from the previous page (so
numbers in this apparatus go from 30 to 2).

Is \setupnote[linenote][split=verystrict,scope=page] a reliable method
to avoid this?


Hard to predict as many factors determine this. Best is to be somewhat 
tolerant and have enough space available before the footnote(rule) but 
even then there can be casas where no other solution is left than to 
split the note over a page. A magic interplay of penalties.



I mean, if you have to typeset a critical edition of the Illiad or the
Odyssey, you cannot check every single page looking for displaced linenotes.

Many thanks for your help,


Pablo




--

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

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


[NTG-context] line notes compress

2013-12-02 Thread Hans Hagen

Hi,

The linenote compression options (and control) has been upgraded:

\definepapersize
  [mine]
  [width=8cm,
   height=6cm]

\setuplayout
  [location=middle,
   width=middle,
   height=middle,
   headerdistance=5mm]

\setuppapersize
  [mine]
  [oversized]

\definelinenote
  [MyNote]

\setupnote
  [MyNote]
  [paragraph=yes]

\setupnotation
  [MyNote]
  [alternative=serried,
   distance=.5em,
   width=broad]

\setupalign
  [verytolerant]

\showframe

\startbuffer
\setupfootertexts[\ttxx 
compress=\namednoteparameter{MyNote}{compress}\quad 
compressmethod=\namednoteparameter{MyNote}{compressmethod}]

\startlinenumbering
This\MyNote{That} context\MyNote{document} is\MyNote{was} a
sample\MyNote{an example} that I\MyNote{she} want\MyNote{didn’t
want} to show\MyNote{publish}
\stoplinenumbering
\page
\stopbuffer

\starttext
\setupnote[MyNote][compress=yes,compressmethod=stopper]   \getbuffer
\setupnote[MyNote][compress=yes,compressmethod=separator] \getbuffer
\setupnote[MyNote][compress=yes,compressmethod=space] \getbuffer
\setupnote[MyNote][compress=yes,compressmethod=]  \getbuffer
\setupnote[MyNote][compress=no,compressmethod=stopper]\getbuffer
\setupnote[MyNote][compress=no,compressmethod=separator]  \getbuffer
\setupnote[MyNote][compress=no,compressmethod=space]  \getbuffer
\setupnote[MyNote][compress=no,compressmethod=]   \getbuffer
\stoptext

Keep in mind that paragraph notes are somewhat special so some tolerance 
in alignment helps.


Hans

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

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

Re: [NTG-context] line notes compress

2013-12-02 Thread Pablo Rodriguez
On 12/02/2013 03:31 PM, Hans Hagen wrote:
 Hi,
 
 The linenote compression options (and control) has been upgraded:

Hi Hans,

many thanks for the new compression options.

 Keep in mind that paragraph notes are somewhat special so some tolerance 
 in alignment helps.

This is not directly related to linenotes, but to paragraph notes. There
are some cases a note starts in the next page to body text it refers to.

With the following scenario (I have seen this): poetry with verses
numbered to the page, two apparatus (critical and similar) and the first
linenote on at least one apparatus comes from the previous page (so
numbers in this apparatus go from 30 to 2).

Is \setupnote[linenote][split=verystrict,scope=page] a reliable method
to avoid this?

I mean, if you have to typeset a critical edition of the Illiad or the
Odyssey, you cannot check every single page looking for displaced linenotes.

Many thanks for your help,


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

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


[NTG-context] (critical edition) compressseparatorbefore and compressseparatorafter

2013-11-18 Thread Pablo Rodriguez
Dear Thomas, Luigi and Hans,

code first:

\definepapersize[mine][width=3in,height=2in]
\setuppapersize[mine]
\definelinenote[Variant]
\setupnote[Variant][paragraph=yes, inbetween=\hskip2.5em]
\setupnotation[Variant][alternative=serried,distance=1em,compress=yes,
width=broad]
\starttext
\startlinenumbering
This\Variant{That} context\Variant{document} is\Variant{was} a
sample\Variant{an example} that I\Variant{she} want\Variant{didn’t
want} to show\Variant{publish}\stoplinenumbering
\stoptext

With compressed linenotes (when compressseparator isn’t set to none), I
think is important to have the ability to specify different lengths for
the compressseparator than for the linenotes.

If neither of them is defined, compressseparatorbefore should have the
same value as inbetween from setupnote and compressseparatorafter should
take its value from distance in setupnotation.

But with the sample above, I think that the spacing that can make sense
for line numbers might be visually misleading for separators.

Here I’m only an amateur, Thomas, you are the professional. What do you
think of this feature?

Many thanks for your help,


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

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


Re: [NTG-context] Footnotes italic or normal? And BEFORE for footnotes

2013-09-06 Thread Marco Patzer
On 2013–09–06 H. Özoguz wrote:

 \starttext
 {\it This was\footnote{And actually is.} my way of typesetting.}
 Is\footnote{Another fn.} this not beautiful?
 \stoptext
 
 You see, the first number is italic, the second normal. How can I
 force ALL fn-numbers to appear in normal style, independent from the
 textstyle of the text, they were set in?

  \setupnote
[footnote]
[textstyle=normal]

 2. I want to add a \narrownobreakspace before every footnote-number
 (because of the closing quotation marks, which often overlap with
 them, especially if they are set italic).

  \setupnote
[footnote]
[textstyle=small,
 textcommand=\FootNoteCmd]

  \define[1]\FootNoteCmd
{\narrownobreakspace\high{#1}}


Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Footnotes italic or normal? And BEFORE for footnotes

2013-09-06 Thread H. Özoguz

   \setupnote
 [footnote]
 [textstyle=small,
  textcommand=\FootNoteCmd]

   \define[1]\FootNoteCmd
 {\narrownobreakspace\high{#1}}


Marco


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

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


Re: [NTG-context] Footnotes italic or normal? And BEFORE for footnotes

2013-09-06 Thread J. R. Schmid
Thank you Marco, this solved my problem (footnote numbers inside of Arabic
text) as well!


On 6 September 2013 10:07, Marco Patzer li...@homerow.info wrote:

 On 2013–09–06 H. Özoguz wrote:

  \starttext
  {\it This was\footnote{And actually is.} my way of typesetting.}
  Is\footnote{Another fn.} this not beautiful?
  \stoptext
 
  You see, the first number is italic, the second normal. How can I
  force ALL fn-numbers to appear in normal style, independent from the
  textstyle of the text, they were set in?

   \setupnote
 [footnote]
 [textstyle=normal]

  2. I want to add a \narrownobreakspace before every footnote-number
  (because of the closing quotation marks, which often overlap with
  them, especially if they are set italic).

   \setupnote
 [footnote]
 [textstyle=small,
  textcommand=\FootNoteCmd]

   \define[1]\FootNoteCmd
 {\narrownobreakspace\high{#1}}


 Marco


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

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

 ___

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

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

Re: [NTG-context] footnotes on wrong page

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

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

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

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

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

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

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

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

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


Re: [NTG-context] footnotes on wrong page

2013-07-24 Thread Alan Bowen
Thanks to all for drawing my attention to the wiki page on \setupnotation
vs \setupnote and thanks to Hans for introducing the scope key.

In the original example, only scope=page gets the footnote calls and the
footnotes on the same page.

So what is the difference between the split and scope keys and what does
scope=text do?

Alan


On Wed, Jul 24, 2013 at 6:23 AM, Schmitz Thomas A. 
thomas.schm...@uni-bonn.de wrote:


 On Jul 24, 2013, at 11:57 AM, Marco Patzer home...@lavabit.com wrote:

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

 I wasn't aware of this page - thanks a lot, this is VERY useful!

 Thomas


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

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

 ___

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

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

Re: [NTG-context] footnotes on wrong page

2013-07-24 Thread Hans Hagen

On 7/24/2013 1:34 PM, Alan Bowen wrote:

Thanks to all for drawing my attention to the wiki page on
\setupnotation vs \setupnote and thanks to Hans for introducing the
scope key.


not so much introducing ... the key was already there


In the original example, only scope=page gets the footnote calls and the
footnotes on the same page.

So what is the difference between the split and scope keys and what does
scope=text do?


being even more strict (using different control mechanism)

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

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


[NTG-context] weird interaction in linenotes command (again)

2013-07-17 Thread Pablo Rodríguez
Dear list,

sorry for posting this again, but I don’t know how to solve this issue
and I really need your help.

I have the following sample:

\setuppapersize[A6]
\newcounter\LineNote

\setupnote[linenote][paragraph=yes]
\setupnotation[linenote][alternative=serried]

\define[2]\Variant
  {\increment\LineNote
   \startlinenote[LineNote:\LineNote]{#2}#1%
   \stoplinenote[LineNote:\LineNote]}

\starttext

\startlinenumbering
\dorecurse{10}{\Variant{\showhyphens{legislation}not
original}{variant} \Variant{\showhyphens{legibility}origin}
{variants} }
\stoplinenumbering
\stoptext

The problem here is that \Variant gets always #1 not hyphenated,
although \showhyphens works fine in that argument.

The cause of this is the \increment command within \Variant. I don’t
know why this happens, but the increment is required by \Variant to make
sense at all.

I guess this might be a bug. Is there no possible workaround for this?

Many thanks for your help,


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

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


Re: [NTG-context] weird interaction in linenotes command (again)

2013-07-17 Thread Wolfgang Schuster

Am 17.07.2013 um 19:46 schrieb Pablo Rodríguez oi...@web.de:

 Dear list,
 
 sorry for posting this again, but I don’t know how to solve this issue
 and I really need your help.
 
 I have the following sample:
 
\setuppapersize[A6]
\newcounter\LineNote
 
\setupnote[linenote][paragraph=yes]
\setupnotation[linenote][alternative=serried]
 
\define[2]\Variant
  {\increment\LineNote
   \startlinenote[LineNote:\LineNote]{#2}#1%
   \stoplinenote[LineNote:\LineNote]}
 
\starttext
 
\startlinenumbering
\dorecurse{10}{\Variant{\showhyphens{legislation}not
original}{variant} \Variant{\showhyphens{legibility}origin}
{variants} }
\stoplinenumbering
\stoptext
 
 The problem here is that \Variant gets always #1 not hyphenated,
 although \showhyphens works fine in that argument.
 
 The cause of this is the \increment command within \Variant. I don’t
 know why this happens, but the increment is required by \Variant to make
 sense at all.
 
 I guess this might be a bug. Is there no possible workaround for this?


I have no solution but a better example because it’s a bug in the reference 
mechanism
(also used by line notes) as shown below.

\setuppapersize[A6]

\starttext

\dorecurse{10}{not original }

\dorecurse{10}{not \pagereference[test:#1]original }

\stoptext


The problem is the following code in the reference macros (str-ref.mkvi),
when the box code is commented the hyphenation works.

\unexpanded\def\strc_references_set_named_reference_indeed#kind#labels#userdata#text%
 labels userdata text - todo: userdata
  {...
   % will become an option:
   \ifnum\lastdestinationattribute\zerocount
 \dontleavehmode\hbox attr 
\destinationattribute\lastdestinationattribute\bgroup
   \strc_references_flush_destination_nodes
 \egroup
   \fi}

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] PDF-Toc text is wrong for new \start? commands

2013-07-16 Thread Andres Conrado
\textwidth)|]
\NC \tfa \sc University of Massachusetts   \NC
   \NR
\NC \tfa \sc Amherst   \NC
  \correspondenceparameter{dept} \NR
\NC   \NC
   \NR
\NC\correspondenceparameter{building} \NC  tel
 \correspondenceparameter{phone} \NR
\NC\correspondenceparameter{street} \NC fax
 \correspondenceparameter{fax}\NC\NR
\NC\correspondenceparameter{city} \NC
 \correspondenceparameter{email} \NC\NR
\stoptabulate
  \stopcolor}

  \setupletterlayer[location]
  [alternative=example,
  x=42mm,
  y=4mm
  ]


 \starttext

\startletter[
toname={Professor Addressee},
toaddress={123 West Home Ave.\\Chicago, IL 60614},
opening={Dear Dr. Addressee,},
subject={A test letter},
closing={Best regards,},
signature={\externalfigure[dummy]\\Michael Ash}
]


  Thank you very much for the invitation I am truly honored by the
  opportunity and delighted to attend. I look forward to meeting
  you.  Thank you again for the invitation.


\stopletter

 \stoptext
 -- next part --
 An HTML attachment was scrubbed...
 URL: 
 http://www.ntg.nl/pipermail/ntg-context/attachments/20130715/b268035b/attachment-0001.html

 --

 Message: 2
 Date: Mon, 15 Jul 2013 18:51:36 +0200
 From: Pablo Rodr?guez oi...@web.de
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: [NTG-context] counter in linenote disables hyphenation in
 body text
 Message-ID: 51e42898.8020...@web.de
 Content-Type: text/plain; charset=windows-1252

 Dear list,

 in the following sample:

 \setuppapersize[A6]
 \newcounter\LineNote

 \setupnote[linenote][paragraph=yes]
 \setupnotation[linenote][alternative=serried]

 \define[2]\Variant
   {\increment\LineNote
\startlinenote[LineNote:\LineNote]{#1 #2}
#1%
\stoplinenote[LineNote:\LineNote]}

 \starttext

 \startlinenumbering
 \dorecurse{10}{\Variant{not original}{variant}
 \Variant{origin}{variants} }
 \stoplinenumbering
 \stoptext

 I have realized that hyphenation is disabled in body text when
 \increment\LineNote is used in the \Variant command definition.

 I don?t know whether this is a bug, but I don?t know how to workaround
 it either.

 Does anyone how to get the body text hyphenated with this command?

 Many thanks for your help,


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


 --

 Message: 3
 Date: Tue, 16 Jul 2013 03:50:56 +0200
 From: Sietse Brouwer sbbrou...@gmail.com
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Table cell spanning multiple columns in
 tabulate
 Message-ID:
 CAF=dkzwm7ctdxcbyy-f6vzfbbp0y7_pk-zeauetzaqmmzbj...@mail.gmail.com
 Content-Type: text/plain; charset=UTF-8

 Thomas Friedrich wrote:
 I am switching from texexec to context, and from table to tabulate.
 Question: What is the equivalent for \use{2}\ReFormat[c]{text} in the
 \table environment, when you what to do the same in the \tabulate
 environment? I couldn't find the answer in the context garden.

 Wolfgang Schuster wrote:
 The tabulate environment has no support for spanned cells.

 The TABLE mechanism does, though, and that is probably the mkiv
 standard for writing non-trivial tables. It's a bit more verbose, but
 it can do an enormous number of things -- including many things that
 the tabulate mechanism can't. Wiki link:
 http://wiki.contextgarden.net/TABLE

 The equivalent of \use{2}\ReFormat[c]{text} would be this (rest of
 table code added to make this example self-contained and compilable):

 \bTABLE
   \bTR
 \bTD[nc=2, align=center] text \eTD
   \eTR
   \bTR
 \bTD apples \eTD
 \bTD oranges \eTD
   \eTR
 \eTABLE

 Hope this help!
 Cheers,
 Sietse

 On 15 July 2013 16:49, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 Am 15.07.2013 um 16:39 schrieb Thomas Friedrich 
 friedr...@statistik.tu-dortmund.de:

 Hello ConTeXt users,

 I am switching from texexec to context, and from table to tabulate.
 Question: What is the equivalent for \use{2}\ReFormat[c]{text} in the
 \table environment, when you what to do the same in the \tabulate
 environment? I couldn't find the answer in the context garden.

 The tabulate environment has no support for spanned cells.

 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
 ___


 --

 Message: 4
 Date: Tue, 16 Jul 2013 10:10:29 +0200
 From: Steffen Kram s...@kram.io

[NTG-context] counter in linenote disables hyphenation in body text

2013-07-15 Thread Pablo Rodríguez
Dear list,

in the following sample:

\setuppapersize[A6]
\newcounter\LineNote

\setupnote[linenote][paragraph=yes]
\setupnotation[linenote][alternative=serried]

\define[2]\Variant
  {\increment\LineNote
   \startlinenote[LineNote:\LineNote]{#1 #2}
   #1%
   \stoplinenote[LineNote:\LineNote]}

\starttext

\startlinenumbering
\dorecurse{10}{\Variant{not original}{variant}
\Variant{origin}{variants} }
\stoplinenumbering
\stoptext

I have realized that hyphenation is disabled in body text when
\increment\LineNote is used in the \Variant command definition.

I don’t know whether this is a bug, but I don’t know how to workaround
it either.

Does anyone how to get the body text hyphenated with this command?

Many thanks for your help,


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

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


[NTG-context] still a bug with compressed linenotes and no compressseparator

2013-07-14 Thread Pablo Rodríguez
Dear Hans,

many thanks for the latest beta, that fixes the line range numbering.

I’m afraid there are still two issues with compressed linenotes when
the compressseparator is missing.

Having linenotes from the same line separated with only blank space is
a standard practice in critical editions. I’m not a philologist and I
don’t have access to a library on a regular basis. If samples from
http://context.aanhet.net/epen2007/share/idris/cr-apparatus.pdf are
allowed, from three possible examples, figures 4.2 and 4.4 only include
blank space as separator for “compressed” linenotes and figure 4.6
includes a separator (||).

Here a sample (I know there is no hyphenation on body text) that shows
the two issues I’m having problems with:

\setuppapersize[A6]
\setuppagenumbering[location=,]
\definelinenote[Critico]
\setupnote[Critico][paragraph=yes]
\setupnotation[Critico][alternative=serried,
compress=yes, compressseparator=, width=broad]
\newcounter\Contadorvar
\def\apcritico#1#2{\increment\Contadorvar%
\startCritico[Varia:\Contadorvar]{#2}#1%
\stopCritico[Varia:\Contadorvar]}
\starttext
\startlinenumbering
\dorecurse{22}{\apcritico{origin}{variant}
\apcritico{not original,}{variant} }
\stoplinenumbering
\stoptext

If compressseparator is suppressed (such as in the sample), the space
before the missing separator is removed, but the space after the
separator remains. This default is buggy when the compressed
linenote starts at the beginning of the line (as it is the case on lines
4-9 in the apparatus).

But even with linenotes starting at other places in the critical
apparatus, there is another issue: compressed linenotes have more
blank space before than uncompressed ones. I think this might be
visually misleading in some cases.

I think there is a simple way to solve both issues: if
compressseparator is set to none, the space after should be removed in
all cases.

Would it be possible to implement this?

Many thanks for your help,


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

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


Re: [NTG-context] keeping headings with following texts

2013-07-13 Thread Pablo Rodríguez
On 13/07/13 15:19, Wolfgang Schuster wrote:
 [...]
 Can you make a minimal tex document out of this. It would be also
 interesting to see your definition for the problematic heading which
 seems to use your own code.

Here you have it:

\usemodule[simplefonts]
\setmainfont[TeX Gyre Pagella]
\setuplayout[setups=*lessstrict]
\startsetups[*lessstrict]
\setup[reset]
\widowpenalty=1
\clubpenalty=1
\brokenpenalty=1
\stopsetups
\setupinterlinespace[line=3.2ex]

\setupnote[footnote][split=verystrict]

\starttext

\dorecurse{28}{line\\}

\subsection{Subsection Heading}

line one\\
line two%
\footnote{This should be on the same page.}.
\stoptext

I need split set to verystrict in footnotes, otherwise footnotes can be
placed in the next page where their body text reference occurs (I have
never seen this on any printed book). This is exactly what happens when
\setupnote[footnote] is disabled.

But even removing the footnote itself and setting the recursion to 30
times, the subsection heading is also left alone on the first page.

What am I doing wrong here?


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

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


[NTG-context] hyphenation not working inside macro

2013-07-13 Thread Pablo Rodríguez
Dear list,

I have the following sample:

\setuppapersize[A6]
\setuppagenumbering[location=,]
\definelinenote[Critico]
\setupnote[Critico][paragraph=yes]
\newcounter\Contadorvar
\def\apcritico#1#2{\increment\Contadorvar%
\startCritico[Varia:\Contadorvar]{#2}#1%
\stopCritico[Varia:\Contadorvar]}
\starttext
\startlinenumbering
\dorecurse{10}{origin\Critico{variant} not original\Critico{variant} }\par
\dorecurse{10}{\apcritico{origin}{variant} \apcritico{not
original}{variant} }
\stoplinenumbering
\stoptext

And I don’t understand why the first five text body lines are
hyphenated, while the other five aren’t.

What am I doing wrong in the macro?

Many thanks for your help,


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

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


<    1   2   3   4   5   6   7   >