[NTG-context] footnotes: is this a bug?

2011-07-22 Thread Thomas A. Schmitz

Hi all,

this is something that has made me wonder: am I doing something wrong 
here, or is this a bug with footnote placement? Run the attached 
example, look at the last 2 pages, 5 and 6. On p. 5, the footnotes run 
off the page area. On p. 6, why is there so much space between text area 
and footnote area. The reason for this somewhat exotic set-up: our 
publisher wanted the footnotes of the last page of every chapter to 
start right after the text, not at the bottom of the page. In the end, I 
told them I couldn't do it, and they were fine with it. But I still 
think it should be possible; I've looked into a number of books, and it 
seems a common layout in the humanities. Maybe someone has a bright 
idea? (Wolfgang, you answered to this problem 2 weeks ago and suggested 
having aftersection={\setupnote[footnote][location=high]} in 
\setuphead, but this triggers the same problems). So maybe a bug?


All best

Thomas

\showframe

\starttext

\dorecurse{21}{Imagine trying to live in a world dominated by dihydrogen 
oxide, a compound that has no taste or smell and is so viable in its 
properties that it is generally benign but at other times swiftly 
lethal.  Depending on its state, it can scald you or freeze you. In the 
presence of certain organic molecules it can form carbonic acids so 
nasty that they can strip the leaves from trees and eat the faces off 
statuary.  In bulk, when agitated, it can strike with a fury that no 
human edifice could withstand. Even for those who have learned to live 
with it, it is often murderous substance.\footnote{In bulk, when 
agitated, it can strike with a fury that no human edifice could 
withstand. Even for those who have learned to live with it, it is often 
murderous substance. We call it water. We call it water.  We call it 
water.}}


\setupnote[footnote][location=high]Imagine trying to live in a world 
dominated by dihydrogen oxide, a compound that has no taste or smell and 
is so viable in its properties that it is generally benign but at other 
times swiftly lethal.  Depending on its state, it can scald you or 
freeze you. In the presence of certain organic molecules it can form 
carbonic acids so nasty that they can strip the leaves from trees and 
eat the faces off statuary.  In bulk, when agitated, it can strike with 
a fury that no human edifice could withstand. Even for those who have 
learned to live with it, it is often murderous substance.\footnote{In 
bulk, when agitated, it can strike with a fury that no human edifice 
could withstand. Even for those who have learned to live with it, it is 
often murderous substance. We call it water. We call it water.  We call 
it water.}


\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] TeX capacity exceeded, sorry (was: mkiv: 'extras' option in cite command = error)

2011-07-22 Thread Taco Hoekwater

On 07/22/2011 12:33 AM, Christian wrote:


system  tex  error on line 1 in file example.mkiv: TeX capacity exceeded, 
sorry [ ...

1   \setupbibtex[database=example]
2 \setuppublications[alternative=apa,refcommand=data]
3 \starttext
4 Let's test adding specific page numbers in the cite
5 command\footnote{\cite[extras={, page 12}][Eijkhout1991]} \page
6 \placepublications[criterium=all] \stoptext
7


\@@pvdataright -, page 12
   \@@pvdataright
\docite ...secondargument \dowhatevercite {#1}{#2}
   \else \donumberedcite {#1}...


Looks like a macro recursion bug: \@@pvdataright contains \@@pvdataright 
which contains \@@pvdataright ...


bibl-tra.mkiv needs this patch:


@@ -945,6 +945,10 @@
  \ifx\LOextras\empty
 \setupcite[\@@currentalternative][#1]%
   \else
+ \expandafter\ifx\csname \??pv 
\@@currentalternative\c!right\endcsname\relax

+% avoids tail recursion
+\expandafter\let\csname \??pv 
\@@currentalternative\c!right\endcsname\empty

+ \fi
\expandafter\ifx\csname LOright\endcsname \relax
   \edef\LOextras{{\LOextras\bibalternative\c!right}}%
 \else

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

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

Re: [NTG-context] metapost question (bug?)

2011-07-22 Thread Peter Rolf
Am 21.07.2011 23:21, schrieb Alan Braslau:
 On Thu, Jul 21, 2011 at 05:39:48PM +0200, Peter Rolf wrote:
 use

 p2 := p0  p1;

 the reason for the 'unexpected' output is, that point 1 and 2 of the
 path p2 are equal. keep in mind that drawing with an asymmetrical pen
 has its own (complex) rules.
 
 Thank you -- I forgot about the path operator 

same here (i had to browse the metapost manual for the operator) :-)

 (Funny thing, though, that the problem shows up with point 0. I would also 
 think that having two consecutive identical points, although poor style, 
 should not cause problems as it does.)

i guess it has to do with the fact, that 'drawing' with non circular
pens always results in a *filled* path. metapost is calculating new
points for the shape, instead of just storing the given path points and
the pen size (like in a normal pencircle draw). and if a filled path is
intersecting with itself, funny things can happen. well, most times not
that funny (because unwanted).

probably not the best example (not drawn, no special pen), but it gives
a first impression of what is going on.

\startTEXpage
\startMPcode
path p[];
p0 := unitcircle scaled 10cm;
p1 := p0 scaled .5;

p2 := p0 -- reverse(p1) -- cycle;
fill p2;
\stopMPcode
\stopTEXpage

depending on their direction (clockwise or counter clockwise) and
location (intersection or not) such path 'cycles' are cleared or filled.
with this trick you are able to produce punches as in the glyphs of O
or e.

if you like and have the time you can debug your example (simply add a
loop that draws all points and labels them). you will then see the
difference between a drawn (pencircle) and a 'drawn' (non circular pen)
path. ;-)

 And yes, the use of an asymmetrical pen is indeed the whole point of this 
 figure -- I am using metapost to achieve very easily an effect, conceptually 
 very simple, that a colleague has not been able to produce using Adobe 
 Illustrator.
 
 Thank you again for helping out.

my pleasure.

Peter

 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
 ___
 

___
If your question is of interest to others as well, please add an 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] TeX capacity exceeded, sorry (was: mkiv: 'extras' option in cite command = error)

2011-07-22 Thread Christian
 
  system  tex  error on line 1 in file example.mkiv: TeX capacity exceeded,
 sorry [ ...
 
  1   \setupbibtex[database=example]
  2 \setuppublications[alternative=apa,refcommand=data]
  3 \starttext
  4 Let's test adding specific page numbers in the cite
  5 command\footnote{\cite[extras={, page 12}][Eijkhout1991]} \page
  6 \placepublications[criterium=all] \stoptext
  7
 
 
  \@@pvdataright -, page 12
 \@@pvdataright \docite ...secondargument
  \dowhatevercite {#1}{#2}
 \else \donumberedcite 
  {#1}...
 
 Looks like a macro recursion bug: \@@pvdataright contains \@@pvdataright
 which contains \@@pvdataright ...
 
 bibl-tra.mkiv needs this patch:
 
 
 @@ -945,6 +945,10 @@
 \ifx\LOextras\empty
   \setupcite[\@@currentalternative][#1]%
 \else
 + \expandafter\ifx\csname \??pv
 \@@currentalternative\c!right\endcsname\relax
 +% avoids tail recursion
 +\expandafter\let\csname \??pv
 \@@currentalternative\c!right\endcsname\empty
 + \fi
   \expandafter\ifx\csname LOright\endcsname \relax
 \edef\LOextras{{\LOextras\bibalternative\c!right}}%
   \else

How do I apply this patch? I changed (inserted the code above)  saved 
C:\ConTeXt\tex\texmf-context\tex\context\base\bibl-tra.mkiv so that the lines 
945–954 now look like this:

945   \ifx\LOextras\empty
946\setupcite[\@@currentalternative][#1]%
947  \else
948 \expandafter\ifx\csname \??pv
949 \@@currentalternative\c!right\endcsname\relax
950% avoids tail recursion
951 \expandafter\let\csname \??pv
952 \@@currentalternative\c!right\endcsname\empty
953  \fi
954 \expandafter\ifx\csname LOright\endcsname \relax

But the error still persists. Thanks for looking into this.

___
If your question is of interest to others as well, please add an 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] TeX capacity exceeded, sorry (was: mkiv: 'extras' option in cite command = error)

2011-07-22 Thread Thomas A. Schmitz

On 07/22/2011 12:22 PM, Christian wrote:

How do I apply this patch? I changed (inserted the code above)
saved C:\ConTeXt\tex\texmf-context\tex\context\base\bibl-tra.mkiv so
that the lines 945–954 now look like this:



Did you regenerate the format?

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
___

[NTG-context] problem with columnsetspan

2011-07-22 Thread Gordon Parrott


Hi All,

I wonder if you can help:

I have been having a problem with \startcolumnsetspan when I was trying to 
create a magazine layout for a Uk psychodrama organisation.

Out of curiosity ( and in the hope i might learn something) i turned on tracing 
for a short example that gives the problem





here is the source of the test.

\setuppapersize[A4][A4]
\definecolumnset[columntest][n=3]%
\definecolumnsetspan[wide][n=2]%
\starttext
\startcolumnset[columntest]
\input knuth
\tracingall
\startcolumnsetspan[wide]
\dorecurse{3}{\input knuth\par}
\stopcolumnsetspan
\dorecurse{10}{\input knuth\par}
\stopcolumnset
\stoptext


of course it spewed out a huge log file but when looking at it i found this:



\dostartcolumnsetspan [#1][#2][#3]-\endgraf \vskip \zeropoint \bgroup 
\forgetall \ifnum \columnsetlevel \zerocount \else \columnsetspanhsize \hsize 
\nofcolumns \plusone \mofcolumns \plusone \fi \setupframedtexts [cs:#1] 
[\c!width =\columnsetspanhsize , \c!linecorrection =\v!off , \c!depthcorrection 
=\v!off , #2]\!!countc \namedframedtextparameter {cs:#1}\c!n \!!countd 
\nofcolumns \ifnum \!!countc \!!countd \!!countc \!!countd \fi \advance 
\!!countd -\mofcolumns \advance \!!countd \plusone \doif 
{\namedframedtextparameter {cs:#1}\c!alternative }\v!a {\ifnum \!!countc 
\!!countd \!!countc \!!countd \fi }\setcolumnsetspanhsize \mofcolumns 
\!!countc \hsize \columnsetspanhsize \setbox \scratchbox \vbox \bgroup 
\dostartframedtext [cs:#1][\v!none ]\ifnum \columnsetlevel \zerocount 
\namedframedtextparameter {cs:#1}\c!before \fi \unexpanded \def 
\stopcolumnsetspan {\dostopcolumnsetspan {#1}}
#1-wide
#2-
#3-
{\par}
Lua linebreak_filter failed, reverting to default on line 9


Any ideas? my actual document exhibits the same sort of fault. It used to work 
before I had to update the minimals ( some time ago) when I moved to another 
computer and it failed then.


I must say I really like context and appreciate all the hard work that must 
have gone into it. I know that it is a large system and will take me some time 
to get to grips with. 


Any help would be appreciated.

Cheers
Gordon



___
If your question is of interest to others as well, please add an 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: is this a bug?

2011-07-22 Thread Hans Hagen

On 22-7-2011 8:03, Thomas A. Schmitz wrote:


\setuphead, but this triggers the same problems). So maybe a bug?


yes, a side effect of having multiple note instances and not having 
adapted the pagebuilder yet


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] context doens't work in cli mode on ubuntu 11.04?

2011-07-22 Thread Grummfy
the version of texlive is : 2009-11
the location of texmfcnf.lua : was not found or antithing like 'texmf*.lua'

2011/7/21 Mojca Miklavec mojca.miklavec.li...@gmail.com

 On Thu, Jul 21, 2011 at 11:20, Grummfy wrote:
  Hello everybody,
  I'm on Ubuntu 11.04 64bits, and try to generate a pdf without success. On
  ubuntu 10.10 64bit, it works perfectly, but after the upgrade, no ... So
 I
  ask you if you have any idea.

 What version of TeX Live is being used?

 Can you please post the exact location of texmfcnf.lua and its contents?

 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

 ___




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

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

Re: [NTG-context] context doens't work in cli mode on ubuntu 11.04?

2011-07-22 Thread Mojca Miklavec
On Fri, Jul 22, 2011 at 14:07, Grummfy wrote:
 the version of texlive is : 2009-11
 the location of texmfcnf.lua : was not found or antithing like 'texmf*.lua'

If you have TeX Live 2009 installed, you can forget about running
ConTeXt MKIV on it.

Install TeX Live 2011 or ConTeXt minimals or use ConTeXt MKII (using
texexec instead of context).

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] footnotes: is this a bug?

2011-07-22 Thread Thomas A. Schmitz

On 07/22/2011 12:53 PM, Hans Hagen wrote:

On 22-7-2011 8:03, Thomas A. Schmitz wrote:


\setuphead, but this triggers the same problems). So maybe a bug?


yes, a side effect of having multiple note instances and not having
adapted the pagebuilder yet


So, any ETA for a fix yet :-)

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
___


[NTG-context] mkiv and non-universal sans-serif kerning

2011-07-22 Thread Ondřej Hošek
Greetings,

long-time reader, first-time writer here. I've been using ConTeXt for
about a year and, until now, been able to solve all my problems using
the wiki or the mailing list, so a keep up the good work! is
certainly in order. ;-)

My problem concerns kerning in mkiv, which apparently doesn't work for
all sans-serif fonts. It does seem to work for TeX Gyre Heros and
Latin Modern Sans, but not, as an example of a font shipped with
ConTeXt, DejaVu.

Here's a short testcase:

\usetypescript[dejavu]
\setupbodyfont[dejavu,12pt,rm]

\starttext

Token (kerned)

T{\char200C}oken (unkerned)

{\ss Token (kerned)}

{\ss T{\char200C}oken (unkerned)}

\stoptext

(U+200C is the zero width non-joiner, rather useful as an invisible
breaker of kerns and ligatures.)

Expected behavior: first line To kerned, second line To not
kerned, third line To kerned, fourth line To not kerned.

Differences to expected behavior on my machine (ConTeXt minimals
2011.07.22 01:29): third line To not kerned either.

Thanks for the assistance in advance!

Cheers,
~~ Ondra Hošek
___
If your question is of interest to others as well, please add an 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] TeX capacity exceeded, sorry (was: mkiv: 'extras' option in cite command = error)

2011-07-22 Thread Christian
  How do I apply this patch? I changed (inserted the code above) saved
  C:\ConTeXt\tex\texmf-context\tex\context\base\bibl-tra.mkiv so that
  the lines 945–954 now look like this:
 
 
 Did you regenerate the format?

I did run
mtxrun --generate
context --generate
luatools --generate

and compiled the document thereafter (context filename). I'm still getting 
the error.
BTW: mtx-context | current version: 2011.07.19 11:22

___
If your question is of interest to others as well, please add an 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] TeX capacity exceeded, sorry (was: mkiv: 'extras' option in cite command = error)

2011-07-22 Thread Wolfgang Schuster

Am 22.07.2011 um 15:03 schrieb Christian:

 How do I apply this patch? I changed (inserted the code above) saved
 C:\ConTeXt\tex\texmf-context\tex\context\base\bibl-tra.mkiv so that
 the lines 945–954 now look like this:
 
 
 Did you regenerate the format?
 
 I did run
 mtxrun --generate
 context --generate
 luatools --generate
 
 and compiled the document thereafter (context filename). I'm still getting 
 the error.

You need “context --make”.

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] TeX capacity exceeded, sorry (was: mkiv: 'extras' option in cite command = error)

2011-07-22 Thread Christian
  How do I apply this patch? I changed (inserted the code above)
  saved C:\ConTeXt\tex\texmf-context\tex\context\base\bibl-tra.mkiv
 so
  that the lines 945–954 now look like this:
 
 
  Did you regenerate the format?
 
  I did run
  mtxrun --generate
  context --generate
  luatools --generate
 
  and compiled the document thereafter (context filename). I'm still
 getting the error.
 
 You need “context --make”.

Ha! That's it. Somehow I associated regenerate with generate and not with 
make :-\
It works now, problem solved.

Thank you for fixing this!

___
If your question is of interest to others as well, please add an 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] Using mycrotypography features with simplefont module and OTF/TTF

2011-07-22 Thread Alexandre Leray

Dear all,

I'm trying to enable protrusion on a text composed with a ttf font 
(tried otf converted from ttf as well)
and using the simplefont module. We have tried different things but did 
not see any difference in the results.


Our context version is 2011.07.20 14:10

The full context code is visible here: http://dpaste.com/574351/

The relevant chunk is this:

% USING SIMPLEFONT: FAILS %
%\usemodule[simplefonts][protrusion=quality,expansion=quality]
%\setmainfont[umepmincho]

% USING TYPESCRIPT: FAILS TOO %
\starttypescript [serif] [umepmincho]
\definefontsynonym [Serif]   [name:umepmincho]
\stoptypescript
\definetypeface[umepmincho][rm] [serif] [umepmincho]

\definefontfeature[default][default][expansion=quality,protrusion=quality]

\setupalign[hz,hanging]
\setupbodyfont[umepmincho, 10pt]
\definebodyfontenvironment[default][x=0.75 ,a=1.5, b=1.75, 
c=2,d=3.4] % defines higher sizes of fonts


Is there a way to make it work?


Thanks!

Alex
___
If your question is of interest to others as well, please add an 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] Using mycrotypography features with simplefont module and OTF/TTF

2011-07-22 Thread Wolfgang Schuster

Am 22.07.2011 um 15:56 schrieb Alexandre Leray:

 Dear all,
 
 I'm trying to enable protrusion on a text composed with a ttf font (tried otf 
 converted from ttf as well)
 and using the simplefont module. We have tried different things but did not 
 see any difference in the results.
 
 Our context version is 2011.07.20 14:10
 
 The full context code is visible here: http://dpaste.com/574351/
 
 The relevant chunk is this:
 
% USING SIMPLEFONT: FAILS %
%\usemodule[simplefonts][protrusion=quality,expansion=quality]
%\setmainfont[umepmincho]

For all fonts: \setupsimplefonts[protrusion=...,expansion=…]

For only one font: \set(main|sans|…)font[...][expansion=...,protrusion=...]

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: is this a bug?

2011-07-22 Thread Hans Hagen

On 22-7-2011 2:54, Thomas A. Schmitz wrote:

On 07/22/2011 12:53 PM, Hans Hagen wrote:

On 22-7-2011 8:03, Thomas A. Schmitz wrote:


\setuphead, but this triggers the same problems). So maybe a bug?


yes, a side effect of having multiple note instances and not having
adapted the pagebuilder yet


So, any ETA for a fix yet :-)


soon,

Hans


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

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


Re: [NTG-context] footnotes: is this a bug?

2011-07-22 Thread Hans Hagen

On 22-7-2011 2:54, Thomas A. Schmitz wrote:

On 07/22/2011 12:53 PM, Hans Hagen wrote:

On 22-7-2011 8:03, Thomas A. Schmitz wrote:


\setuphead, but this triggers the same problems). So maybe a bug?


yes, a side effect of having multiple note instances and not having
adapted the pagebuilder yet


So, any ETA for a fix yet :-)


beta uploaded

-
  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] markdown

2011-07-22 Thread Wolfgang Schuster

Am 21.07.2011 um 22:58 schrieb Hans Hagen:

 On 21-7-2011 9:31, Wolfgang Schuster wrote:
 
 %\unexpanded\def\markdownrule
 %  {\hairline\par}
 
 \unexpanded\def\markdownrule
   {\markdownparameter\c!rule}
 
 or maybe better
 
 \startsetups markdown:rule
   \hairline
   \par
 \stopsetups
 
 \unexpanded\def\markdownrule
  {\directsetup{markdown:rule}}

\setupmarkdown[rule=\...] would fir better in the normal setup concept of 
ConTeXt
but as this would be the only setting for \setupmarkdown it can wait till John
had more time to play with the module and find missing features.

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: is this a bug?

2011-07-22 Thread Thomas A. Schmitz

On 07/22/2011 05:33 PM, Hans Hagen wrote:

So maybe a bug?


yes, a side effect of having multiple note instances and not having
adapted the pagebuilder yet


So, any ETA for a fix yet :-)


beta uploaded


Hans,

thanks, this looks a lot better! Nevertheless, one more question: with 
the example I sent, the high setting for footnotes always begins on 
the page preceding the paragraph where the 
\setupnote[footnote][location=high] is put into the text. Is there a 
rule which governs this behavior? Or: haw can I make sure it is indeed 
applied to one page only?


Thanks, and best wishes

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

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


Re: [NTG-context] footnotes: is this a bug?

2011-07-22 Thread Wolfgang Schuster

Am 22.07.2011 um 18:45 schrieb Thomas A. Schmitz:

 thanks, this looks a lot better! Nevertheless, one more question: with the 
 example I sent, the high setting for footnotes always begins on the page 
 preceding the paragraph where the \setupnote[footnote][location=high] is put 
 into the text. Is there a rule which governs this behavior? 

TeX was still collecting material for page 5 when you set “high” for your 
footnotes.

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: is this a bug?

2011-07-22 Thread Hans Hagen

On 22-7-2011 6:45, Thomas A. Schmitz wrote:

On 07/22/2011 05:33 PM, Hans Hagen wrote:

So maybe a bug?


yes, a side effect of having multiple note instances and not having
adapted the pagebuilder yet


So, any ETA for a fix yet :-)


beta uploaded


Hans,

thanks, this looks a lot better! Nevertheless, one more question: with
the example I sent, the high setting for footnotes always begins on
the page preceding the paragraph where the
\setupnote[footnote][location=high] is put into the text. Is there a
rule which governs this behavior? Or: haw can I make sure it is indeed
applied to one page only?


currently not, so best put it at the end of the chapter and then do a \page



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

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


Re: [NTG-context] mkiv and non-universal sans-serif kerning

2011-07-22 Thread Hans Hagen

On 22-7-2011 2:56, Ondřej Hošek wrote:

Greetings,

long-time reader, first-time writer here. I've been using ConTeXt for
about a year and, until now, been able to solve all my problems using
the wiki or the mailing list, so a keep up the good work! is
certainly in order. ;-)

My problem concerns kerning in mkiv, which apparently doesn't work for
all sans-serif fonts. It does seem to work for TeX Gyre Heros and
Latin Modern Sans, but not, as an example of a font shipped with
ConTeXt, DejaVu.

Here's a short testcase:

\usetypescript[dejavu]
\setupbodyfont[dejavu,12pt,rm]

\starttext

Token (kerned)

T{\char200C}oken (unkerned)

{\ss Token (kerned)}

{\ss T{\char200C}oken (unkerned)}

\stoptext

(U+200C is the zero width non-joiner, rather useful as an invisible
breaker of kerns and ligatures.)


\zwnj


Expected behavior: first line To kerned, second line To not
kerned, third line To kerned, fourth line To not kerned.


works ok here


Differences to expected behavior on my machine (ConTeXt minimals
2011.07.22 01:29): third line To not kerned either.


the current version has some heuristics for mode (some fonts need node 
mode) and script/language (some fonts don't have dflt defined)


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
-


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

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

Re: [NTG-context] mkiv and non-universal sans-serif kerning

2011-07-22 Thread Ondřej Hošek
On Fri, Jul 22, 2011 at 21:28, Hans Hagen pra...@wxs.nl wrote:
 the current version has some heuristics for mode (some fonts need node mode)
 and script/language (some fonts don't have dflt defined)

Ah, thanks for the hint. Explicitly setting script=latn in the
default font feature solves the problem.

Cheers,
~~ Ondra
___
If your question is of interest to others as well, please add an 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
___