Re: [NTG-context] outer floats on doublesided pages UNSOLVED

2013-09-17 Thread Tim Steenvoorden
Hi Robert,

As far as I know this is not (yet) possible in MkIV. Depends on Hans
if he adds it. See the conversation Placefigure inner/outer from
August. (http://thread.gmane.org/gmane.comp.tex.context/83680/focus=83684)

@Hans/Wolfgang: any idea it will be added in the (near) future?

Cheers,
Tim

2013/9/14 R. Ermers r.erm...@hccnet.nl:
 Hi Contexters,

 Does anyone know whether it is possible in mkiv to position figures 
 protruding in the outer margin?
 In mkii it used to work.

 It seems to me that this simple feature does not work in mkiv. See minimal 
 example below. Is this a bug?

 Regards,

 Robert


 Op 10 sep. 2013, om 22:05 heeft R. Ermers het volgende geschreven:

 Hi,

 Does anyone know if positioning figures  protruding into the outer margin 
 can be done in mkiv?

 Regards,

 Robert


 Hi Jörg and Marco,

 Thanks for your replies.

 I have tried the chemistry textbook examples too, especially vignette seems 
 to do what I want. I noticed you used mkii at the time, but I have mkiv 
 now. Should I return to mkii if I want to obtain this?

 Regards,

 Robert


 Op 10 sep. 2013, om 15:18 heeft Jörg Hagmann het volgende geschreven:

 Maybe what I did helps: see Figures III on
 http://wiki.contextgarden.net/Biochemistry_textbook.  Although I used
 mkII at the time.

 Cheers, Jörg

 R. Ermers writes:

 Hi Marco,

 Thank you very much indeed for your reply. This topic apparently does not 
 interest many people.

 In your suggestion the figures are put in the outer margin in a vertical 
 row below one another close to the top of the page, and not near the 
 position in the text.

 I want them positioned close to the place in the text which should flow 
 around them. I have seen examples of this made by Context. This can be 
 obtained by specifying default=left, or default=right, only I need the 
 figures to protrude into the (outer) margin. This for some reason does 
 not work under mkiv.

 I still have some time, but my deadline is approaching.

 Thanks again!

 Kind regards,

 Robert


 Op 10 sep. 2013, om 09:59 heeft Marco Patzer het volgende geschreven:

 On 2013–09–10 R. Ermers wrote:

 I have problems with the placement of floats. I need them to be
 placed in the outer edge of the text, but Context puts them in the
 middle of the page. The outer, inner, outeredge, inneredge,
 commands do not work. Right and left do work.

 You probably confused edge and margin. By default the edge has zero
 width and has to be enabled using \setuplayout.

 Preferably the criterium option should also work

 \setupexternalfigures
 [location=default]

 \setuppagenumbering
 [alternative=doublesided]

 \definefloat
 [marginfigure]
 [marginfigures]
 [figure]

 \setupfloat
 [marginfigure]
 [default=margin,
 criterium=\marginwidth]

 \setupcaption
 [marginfigure]
 [number=no]

 \showframe
 \starttext
 \dorecurse{9}{%%
 \input knuth
 \startplacemarginfigure
   \externalfigure [cow] [width=\recurselevel cm]
 \stopplacemarginfigure}
 \stoptext

 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
 ___

 ___
 If your question is of interest to others as well, please add an 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] Bug in maths prime (derivative)

2013-09-17 Thread Hans Hagen

On 9/16/2013 2:29 PM, Otared Kavian wrote:

Hi Hans,

I noticed that recently a discrepancy in the way the prime is positioned in the 
presence of an index as in $f'_n$ or $f_n'$ (please see the attached PDF). 
However the positioning is correct in expressions such as $u^k_n$.
The problem shows up only in mkiv, and as far as I can say the differnece 
between the results in mkii and mkiv appeared recently (unfortunately I can't 
say when…).


something got lost when cleaning up the code ... fixed (but we have 
smaller primes .. i'll make a large option one day but rather wait till 
there is a trivial extension to luatex (that i need to discuss with taco)


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

2013-09-17 Thread Hans Hagen

Hi,

A new (experimental) feature:

\setupbodyfont[dejavu]

\showglyphs

\starttext

Is it \mixedcaps{OpenType} or {\bf actually more 
\mixedcaps{CloseType}}?


\definefont[MixedCaps][CurrentFont*default cp 
\the\dimexpr1.05\exheight]


Is it \mixedcaps{OpenType} or {\bf actually more 
\mixedcaps{CloseType}}?


\stoptext

--

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

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


Re: [NTG-context] outer floats on doublesided pages UNSOLVED

2013-09-17 Thread Hans Hagen

On 9/14/2013 7:25 AM, R. Ermers wrote:

Hi Contexters,

Does anyone know whether it is possible in mkiv to position figures protruding 
in the outer margin?
In mkii it used to work


there is a check missing .. fixed 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
___


Re: [NTG-context] bug? gap appears in columnset

2013-09-17 Thread Hans Hagen

On 9/17/2013 5:02 PM, Lars Huttar wrote:

Aditya wrote:

Any particular reason you are using columnsets rather than \startcolumns
or \startmixedcolumns. Columnsets are for specialized layout requirements,
and in my experience, mixing columnsets with text that is not in
columnsets is a bit tricky.



Thanks for suggesting a potential workaround.

We do have pretty specialized layout requirements, including figures
(some of which are hangarounds within columns, and some are outside of
columnsets but on the same page) and page-width-centered section
headings that are outside of columnsets.
I suspect that we tried \startcolumns and couldn't get it to work, but I
will definitely try again


ok, but then, an interlinespace is normally around 1.2 times the 
bodyfontsize



I can't find \startmixedcolumns on the contextgarden wiki nor in the
ConTeXt manual. There are references to it on this mailing list, as a
rewrite of the old columns mechanism. I'm reluctant to entrust a big
production project to undocumented features, but at this point, if it
works, we'll probably go with it. I wonder if it's available in mkii as
well as in mkiv?


not in mkii, but it will be the main mkiv continuous multicolumn mode 
(we keep the old columns around for a while) and in due time I will make 
a new columnset implementation (must have some snippets of code 
somewhere but never found time)



\startsetups normal
\setupinterlinespace[line=12pt]
\stopsetups

\startsetups tight
\setupinterlinespace[line=9.3pt]
\stopsetups
\setupmixedcolumns[distance=5mm, balance=yes]

\starttext
\section{Introduction}
\startmixedcolumns[setups=normal]
 \dorecurse {7} { \input knuth }
\stopmixedcolumns

\section{Bibliography}

\startmixedcolumns[setups=tight]
 \dorecurse {10} { \input knuth }
\stopmixedcolumns


Aditya (not sure why the interlinespacing is not working)


At
http://tex.stackexchange.com/questions/133586/bug-unwanted-gap-in-2nd-columnset#comment301754_133586,
phg wrote If you want lines to adhere to a tighter line spacing you
will have to set a smaller font size, (the default one is 12pt I think)
e.g. |\setupbodyfont [7pt]| gets you the desired baseline skip and
decent leading. Doesn’t make the gap disappear, though.
I had left font settings out of the minimal example, since they aren't
necessary to exercise the bug.

Thanks again,
Lars


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://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] bug? gap appears in columnset

2013-09-17 Thread Hans Hagen

On 9/16/2013 11:29 PM, Lars Huttar wrote:

I was advised to report the bug back to this list, with an even more
minimized example.
Here it is below.
This bug occurs in both mkiv and mkii, in the latest versions (current
beta).

|\setupinterlinespace[line=12pt]

\definecolumnset[columnset1][n=2]
\setupcolumnset[columnset1][distance=5mm,balance=yes]

\starttext

\section{Introduction}
\startcolumnset[columnset1]
 \dorecurse {7} { \input knuth }
\stopcolumnset

\section{Bibliography}
\setupinterlinespace[line=9.3pt]
\startcolumnset[columnset1]
 \dorecurse {10} { \input knuth }
\stopcolumnset

\stoptext


Note the gap across both columns on p. 3, about 3/4 of the way down.
Any suggestions for a workaround would be appreciated.


Just wondering ... do you think that the first pages look ok? You mess 
with the interlinespace in a way that will make the outcome never look 
okay. Also, columnsets assume that the interlinespace is sane.


\setbox0\hbox{Tg}\the\htdp0,\the\baselineskip

gives

10.59601pt,9.3pt

so, any line that has a character with ascender and descender will 
enforce a larger than 9.3pt distance + lineskip and mess up any 
prediction cq. heuristics


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] \startitemize and \startinteraction problem in footnotes

2013-09-17 Thread Alan Bowen
The following fails with an “Unknown control sequence” error. It works if
one removes \setupinteraction… or if one removes the \startitemize... from
the footnote

\startcomponent test

\setupinteraction[state=start,color=blue,%
contrastcolor=darkred,
style=rm,
click=yes,
display=new,
]
\setupnotation[footnote][interaction=yes,
way=bytext,
numberconversion=numbers,
rule=on,
textstyle=normal]

\startitemize[n,broad,joinedup,packed,intro]
[itemalign=flushright,left={},right={},stopper={.},margin=1pc]
\item stuff
\sym{4.} stuff
\sym{10.} more stuff
\sym{11.} and yet more
\stopitemize

a few words.%
%
\footnote
{The current volumes are:
\startitemize[n,broad,joinedup,packed,intro]
[itemalign=flushright,left={},right={},stopper={.},margin=1pc]
\item stuff
\sym{4.} stuff
\sym{10.} more stuff
\sym{11.} and yet more
\stopitemize
}

\stopcomponent

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] bug? gap appears in columnset

2013-09-17 Thread Lars Huttar
Aditya wrote:
 Any particular reason you are using columnsets rather than \startcolumns 
 or \startmixedcolumns. Columnsets are for specialized layout requirements, 
 and in my experience, mixing columnsets with text that is not in 
 columnsets is a bit tricky.


Thanks for suggesting a potential workaround.

We do have pretty specialized layout requirements, including figures
(some of which are hangarounds within columns, and some are outside of
columnsets but on the same page) and page-width-centered section
headings that are outside of columnsets.
I suspect that we tried \startcolumns and couldn't get it to work, but I
will definitely try again

I can't find \startmixedcolumns on the contextgarden wiki nor in the
ConTeXt manual. There are references to it on this mailing list, as a
rewrite of the old columns mechanism. I'm reluctant to entrust a big
production project to undocumented features, but at this point, if it
works, we'll probably go with it. I wonder if it's available in mkii as
well as in mkiv?

 \startsetups normal
 \setupinterlinespace[line=12pt]
 \stopsetups

 \startsetups tight
 \setupinterlinespace[line=9.3pt]
 \stopsetups
 \setupmixedcolumns[distance=5mm, balance=yes]

 \starttext
 \section{Introduction}
 \startmixedcolumns[setups=normal]
 \dorecurse {7} { \input knuth }
 \stopmixedcolumns

 \section{Bibliography}

 \startmixedcolumns[setups=tight]
 \dorecurse {10} { \input knuth }
 \stopmixedcolumns


 Aditya (not sure why the interlinespacing is not working)

At
http://tex.stackexchange.com/questions/133586/bug-unwanted-gap-in-2nd-columnset#comment301754_133586,
phg wrote If you want lines to adhere to a tighter line spacing you
will have to set a smaller font size, (the default one is 12pt I think)
e.g. |\setupbodyfont [7pt]| gets you the desired baseline skip and
decent leading. Doesn’t make the gap disappear, though.
I had left font settings out of the minimal example, since they aren't
necessary to exercise the bug.

Thanks again,
Lars


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

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


Re: [NTG-context] outer floats on doublesided pages

2013-09-17 Thread R. Ermers
Okee, Thanks!

Robert

Op 17 sep. 2013, om 17:28 heeft Hans Hagen het volgende geschreven:

 On 9/14/2013 7:25 AM, R. Ermers wrote:
 Hi Contexters,
 
 Does anyone know whether it is possible in mkiv to position figures 
 protruding in the outer margin?
 In mkii it used to work
 
 there is a check missing .. fixed 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] Wrong spaces in verbatim mode with Consolas

2013-09-17 Thread Wolfgang Schuster
Hi,

the Consolas font produces proportional spaces even with “features=none”.

\starttypescript [mono] [consolas]
\setups[font:fallback:mono]
\definefontsynonym [Mono]   [file:consolas]   
[features=none]
\definefontsynonym [MonoBold]   [file:consolasbold]   
[features=none]
\definefontsynonym [MonoItalic] [file:consolasitalic] 
[features=none]
\definefontsynonym [MonoBoldItalic] [file:consolasbolditalic] 
[features=none]
\stoptypescript

\definetypeface [mainface] [rm] [serif] [modern]   [default]
\definetypeface [mainface] [tt] [mono]  [consolas] [default]
%\definetypeface [mainface] [tt] [mono]  [modern]   [default]

\setupbodyfont[mainface]

\starttext
\starttyping
a b  cd
x  y  z
\stoptyping
\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] Difference between base and third

2013-09-17 Thread john Culleton
I note that in texlive 2013 the typescripts are found in two
subdirectories, base and third.  Is there a reason for this
subdivision or is it just an accident of history?

-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at http://www.booklocker.com/books/4055.html
___
If your question is of interest to others as well, please add an 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? gap appears in columnset

2013-09-17 Thread Hans Hagen

On 9/17/2013 8:57 PM, Lars Huttar wrote:


Can you point me to documentation on the constraints that define what
kind of interlinespace is sane?


the default is 2.8ex which is pretty safe, then there is the ht/dp ratio 
which in some cases has to be adapted to fonts esp when they are 
non-typical



Also, given the goal that For using ConTeXt, no TeX programming skills
and no technical background are needed. Some basic knowledge of
typography and document design will enable you to use the full power of
ConTeXt (http://wiki.contextgarden.net/What_is_ConTeXt), does/could
ConTeXt issue an error when its assumptions are violated?


well, adapting interlinespace is already beyond basic ... if you have 
specifications from someplace else they are supposed to be experts (ok, 
in many case we get weird specs too, but i always tend to ignore those)



\setbox0\hbox{Tg}\the\htdp0,\the\baselineskip

gives

10.59601pt,9.3pt

so, any line that has a character with ascender and descender will
enforce a larger than 9.3pt distance + lineskip and mess up any
prediction cq. heuristics


I can't find any reference defining \htdp0, but I'm guessing it means
the height+depth (where depth means how far descenders extend below the
baseline) of the Tg box.


indeed, \htdp is a convenient macro, you could also add two dimensions 
or use a \dimexpr which is more work



I'm also confused as to why you're adding 9.3pt + lineskip, when in my
limited understanding of TeX, I understood lineskip to be *part* of the
distance between baselines, rather than an additional distance. But
maybe that's not important to the main issue.


\starttext

\showstruts \strut test \par \strut test

\showstruts \strut \ruledhbox{$\sqrt{test}$} \par \strut test

\stoptext

\lineskip (1pt by default) kicks in when the line distance minus 
baselineskip exceeds \lineskiplimit (0pt by default)



I'm trying to formulate a rule for knowing whether interlinespace is sane.
Is it that interlinespace needs to be more than or equal to the maximum
of (height + depth + lineskip) of any line in the text?


\setbox0\hbox{()} \the\htdp0

is the minumum and you'd better add one point at least

bodyfont/baseline : 10/12 12/14.4 etc are ok

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] Bug in maths prime (derivative)

2013-09-17 Thread Otared Kavian
Thanks Hans: I did some testing with several fonts and situations, and 
everything is perfect.

Best regards: OK

On 17 sept. 2013, at 14:58, Hans Hagen pra...@wxs.nl wrote:

 On 9/16/2013 2:29 PM, Otared Kavian wrote:
 Hi Hans,
 
 I noticed that recently a discrepancy in the way the prime is positioned in 
 the presence of an index as in $f'_n$ or $f_n'$ (please see the attached 
 PDF). However the positioning is correct in expressions such as $u^k_n$.
 The problem shows up only in mkiv, and as far as I can say the differnece 
 between the results in mkii and mkiv appeared recently (unfortunately I 
 can't say when…).
 
 something got lost when cleaning up the code ... fixed (but we have smaller 
 primes .. i'll make a large option one day but rather wait till there is a 
 trivial extension to luatex (that i need to discuss with taco)
 
 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] bug? gap appears in columnset

2013-09-17 Thread Lars Huttar
Hans wrote,
 Just wondering ... do you think that the first pages look ok?

Thanks for your response.
By look ok, are you referring to the closeness of the lines of text?
It does seem kind of close, but within acceptable limits, depending on
other constraints; however I'm not really the one to make aesthetic
decisions about the document. I'm just trying to implement what the
customer wants.

Also, the minimal example is stripped down to minimally exercise the
unexplained behavior, so it doesn't reflect the fact that in our actual
document, we reduce the font size in places where we reduce the
interlinespace. In that sense, maybe a less minimal example would serve
the purpose better. I'll work on that, now that I know the font size may
be an integral part of the problem.

 You mess 
 with the interlinespace in a way that will make the outcome never look 
 okay.

I'd like to know more what that means, but I think it's elaborated on
below when you talk about baselineskip.

 Also, columnsets assume that the interlinespace is sane.

Can you point me to documentation on the constraints that define what
kind of interlinespace is sane?

Also, given the goal that For using ConTeXt, no TeX programming skills
and no technical background are needed. Some basic knowledge of
typography and document design will enable you to use the full power of
ConTeXt (http://wiki.contextgarden.net/What_is_ConTeXt), does/could
ConTeXt issue an error when its assumptions are violated?

 \setbox0\hbox{Tg}\the\htdp0,\the\baselineskip

 gives

 10.59601pt,9.3pt

 so, any line that has a character with ascender and descender will 
 enforce a larger than 9.3pt distance + lineskip and mess up any 
 prediction cq. heuristics

I can't find any reference defining \htdp0, but I'm guessing it means
the height+depth (where depth means how far descenders extend below the
baseline) of the Tg box.
I'm also confused as to why you're adding 9.3pt + lineskip, when in my
limited understanding of TeX, I understood lineskip to be *part* of the
distance between baselines, rather than an additional distance. But
maybe that's not important to the main issue.

I'm trying to formulate a rule for knowing whether interlinespace is sane.
Is it that interlinespace needs to be more than or equal to the maximum
of (height + depth + lineskip) of any line in the text?

Thanks again for your help.

Lars

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

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


Re: [NTG-context] Difference between base and third

2013-09-17 Thread Mica Semrick
I think base are the basic TeX fonts, probably Computer Modern and Latin
Modern. Third is third-party.

Best,
Mica


On Tue, Sep 17, 2013 at 12:14 PM, john Culleton j...@wexfordpress.comwrote:

 I note that in texlive 2013 the typescripts are found in two
 subdirectories, base and third.  Is there a reason for this
 subdivision or is it just an accident of history?

 --
 John Culleton
 Wexford Press
 Free list of books for self-publishers:
 http://wexfordpress.net/shortlist.html
 PDF e-book: Create Book Covers with Scribus
 available at http://www.booklocker.com/books/4055.html

 ___
 If your question is of interest to others as well, please add an 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] section numbers in margin eventually get placed too far left

2013-09-17 Thread Sanjoy Mahajan
This test file

==
\setuplayout[leftmargindistance=0.125in,
  leftmargin=0.625in,
  width=4.75in,
  rightmargindistance=0.25in,
  rightmargin=0.25in]

\setuphead[section][alternative=inmargin]
\showframe

\starttext
\dorecurse{6}{\section{Blah} 
\input tufte
}

\stoptext
==

asks for section numbers in the left margin, separated from the section
title by the leftmargindistance.  It works fine for the first four
sections.  But sections 5 and 6 (on page 2) have the section number
shifted further left from the correct position by roughly 10pt or so.

It seems very sensitive to the layout.  If I change the
leftmargindistance to 0.25in, the section numbers are all placed
correctly.

I noticed the problem on my default context version:

ConTeXt  ver: 2013.05.28 00:36 MKIV current [from the Debian TL2013 pkgs]

It also happens with the live ConTeXt and with vanilla TL2013.  (Though
it works fine with MKII.)

Is this a bug, or just a change in setuphead that I didn't take account of?

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