Re: [NTG-context] Simplefonts (new) fallback issue with Linux Libertine O
Am 22.11.2013 um 05:00 schrieb Rik amphib...@gmail.com: Fallbacks (at least the range I tested) do not work with the roman face of Linux Libertine O in the new (core) simplefonts implementation. I first thought that this might be a Libertine issue, but further testing makes me suspect it may be a simplefonts issue. Or perhaps I have used the wrong syntax with the new implementation. I can reproduce it and it does also happen with a typescript only solution (depends on how you define the fallback font) but it seems to happen only with the Linux Libertine font. 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] Footnote line position
Dear All, when a single line footnote is used, the footnote divider is rendered in larger distance than for footnotes with two or more lines (I mean a gap between the line and the footnote text). Initially I though there must be an 'empty' paragraph in my footnote but looking into the source it turned out to be a false alarm as it seems to be consistent. It can be tested easily: \chapter{Chapter}Foo\footnote{Bar}. \chapter{Chapter}Foo\footnote{Bar Bar}. Is this behaviour deliberate? Thanks, Jan ConTeXt 2013.11.14 Win 7 ___ If your question is of interest to others as well, please add an 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] Linespacing in TOC
On 2013-11-20 Hans Hagen wrote: On 11/19/2013 11:48 PM, Jan Tosovsky wrote: I'd like to tweak a default TOC linespacing... I've 'invented' this: \setupcombinedlist[content][list=chapter, alternative=c] \starttext \title{Table of Contents} \setupinterlinespace[line=0.8ex] % too small, just for testing \placecontent \setupinterlinespace[line=2.75ex] %\setupinterlinespace[reset] \startfrontmatter \chapter{Intro}text text text \startfrontmatter \startbodymatter \chapter{Chapter}text \stopbodymatter \startbackmatter \chapter{Appendix}text \stopbackmatter \stoptext I cannot use simply the \completecontent command as the linespacing is effective already between the title and the first entry line... so I am splitting the title and the rest and set the linespacing just before list rendering. Finally I am resetting the value manually. Are there better ways to tweak linespacing in TOC ? \title{Table of Contents} \start \setupinterlinespace[line=0.8ex] % too small, just for testing \placecontent \stop Thanks for the hint. But as I found, any value below 2.8ex causes interline inconsistencies when special cases appears, see the extreme below: \starttext \start \setupinterlinespace[line=1.0ex] \placecontent \stop \chapter{}. % line without descenders precedes a line without ascenders \chapter{}. % line with descenders is followed with a line with ascenders \chapter{}. % the result is an inconsistent baseline distance \stoptext Is there any remedy for this? Can I fix the baseline distance somehow? I have such cases in my TOC :-( (but not so extreme as here) Thanks, 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 ___
Re: [NTG-context] bug: \getmarking with mixedcolumns
On 11/21/2013 7:01 PM, Lars Huttar wrote: I now have a MWE that shows the problem. Where top and bottom work fine outside of columns, in mixedcolumns, any keyword I use with \getmarking always seem to return the *last* item on the page. Here's the MWE: I changed the example a bit \setupbodyfont[dejavu] \definemarking[country] \startsetups myheader (\getmarking[country][1][top]\enspace\emdash\enspace\getmarking[country][1][bottom]) \hfill (\getmarking[country][2][top]\enspace\emdash\enspace\getmarking[country][2][bottom]) \stopsetups \setupheadertexts [\setups{myheader}][] [][\setups{myheader}] \def\anothersection#1% {\par \dontleavehmode \marking[country]{#1}% \start\bf #1 \endgraf\stop \quad test \par} \starttext \startmixedcolumns[distance=5mm, balance=yes] \anothersection{Brazil} %\anothersection{Suriname} %\anothersection{Uruguay} %\anothersection{Bolivia} %\anothersection{Venezuela} \anothersection{Peru} \stopmixedcolumns \stoptext The problem, is/was that mixed columns had not yet mark synchronization enabled. I uploaded a new beta. In the process I also made marks a bit more restrictive but it might have (yet unknown) side effects. \enabledirectives[marks.boxestoo] can be used to see the effect of this. 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: \getmarking with mixedcolumns
On 11/22/2013 4:34 PM, Hans Hagen wrote: On 11/21/2013 7:01 PM, Lars Huttar wrote: I now have a MWE that shows the problem. Where top and bottom work fine outside of columns, in mixedcolumns, any keyword I use with \getmarking always seem to return the *last* item on the page. Here's the MWE: I changed the example a bit \setupbodyfont[dejavu] \definemarking[country] \startsetups myheader (\getmarking[country][1][top]\enspace\emdash\enspace\getmarking[country][1][bottom]) \hfill (\getmarking[country][2][top]\enspace\emdash\enspace\getmarking[country][2][bottom]) \stopsetups \setupheadertexts [\setups{myheader}][] [][\setups{myheader}] \def\anothersection#1% {\par \dontleavehmode \marking[country]{#1}% \start\bf #1 \endgraf\stop \quad test \par} \starttext \startmixedcolumns[distance=5mm, balance=yes] \anothersection{Brazil} %\anothersection{Suriname} %\anothersection{Uruguay} %\anothersection{Bolivia} %\anothersection{Venezuela} \anothersection{Peru} \stopmixedcolumns \stoptext The problem, is/was that mixed columns had not yet mark synchronization enabled. I uploaded a new beta. In the process I also made marks a bit more restrictive but it might have (yet unknown) side effects. \enabledirectives[marks.boxestoo] can be used to see the effect of this. Thanks. We will try this out. 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] Linespacing in TOC
On 11/22/2013 9:44 PM, Jan Tosovsky wrote: On 2013-11-20 Hans Hagen wrote: On 11/19/2013 11:48 PM, Jan Tosovsky wrote: I'd like to tweak a default TOC linespacing... I've 'invented' this: \setupcombinedlist[content][list=chapter, alternative=c] \starttext \title{Table of Contents} \setupinterlinespace[line=0.8ex] % too small, just for testing \placecontent \setupinterlinespace[line=2.75ex] %\setupinterlinespace[reset] \startfrontmatter \chapter{Intro}text text text \startfrontmatter \startbodymatter \chapter{Chapter}text \stopbodymatter \startbackmatter \chapter{Appendix}text \stopbackmatter \stoptext I cannot use simply the \completecontent command as the linespacing is effective already between the title and the first entry line... so I am splitting the title and the rest and set the linespacing just before list rendering. Finally I am resetting the value manually. Are there better ways to tweak linespacing in TOC ? \title{Table of Contents} \start \setupinterlinespace[line=0.8ex] % too small, just for testing \placecontent \stop Thanks for the hint. But as I found, any value below 2.8ex causes interline inconsistencies when special cases appears, see the extreme below: \starttext \start \setupinterlinespace[line=1.0ex] \placecontent \stop \chapter{}. % line without descenders precedes a line without ascenders \chapter{}. % line with descenders is followed with a line with ascenders \chapter{}. % the result is an inconsistent baseline distance \stoptext Is there any remedy for this? Can I fix the baseline distance somehow? I have such cases in my TOC :-( (but not so extreme as here) \definegridsnapping[crap] [fit,0.2] \setuplayout[grid=crap] but if you really need that kind of tweaks you might consider using a better font: if interlinespace is too small you will never get nice results you can try to play with the h/d ratio: \setupinterlinespace[line=2.8ex,height=0.8,depth=0.2] \showstruts \strut x \setupinterlinespace[line=2.8ex,height=0.7,depth=0.3] \showstruts \strut x or you can plug in a command (in the toc handler) that puts each line in a box with manipulated dimensions 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] a way to implement \testcolumn in mixedcolumns
On 11/20/2013 11:12 PM, Lars Huttar wrote: On 11/20/2013 4:47 PM, Lars Huttar wrote: However one thing we do miss from columnsets is the control over widows orphans in two ways: \testcolumn, and \setupcolumnsetlines. \testcolumn[n] allowed us to do a conditional column break, so when we were about to start a new subsection heading, we could prevent it being an orphan at the bottom of the column; and when starting a paragraph with a hangaround graphic framed flushright and bottom, we could similarly use \testcolumn to prevent the graphic from hanging down into the footer (which is what sometimes happened otherwise). So I'm wondering, is there some way to achieve the equivalent of \testcolumn in mixedcolumns? for the moment add \penalty1 Here is a MWE: \starttext \startmixedcolumns[distance=5mm, balance=yes] \dorecurse {20} { \testcolumn[8] \subsection{Subsection Heading} \input knuth \endgraf } \stopmixedcolumns \stoptext You can see that the heading for subsection 6 is an orphan at the bottom of a column (at least, with the paper size settings I have; otherwise, I'm sure it happens somewhere else). If \testcolumn worked, the \testcolumn[8] would have shoved the subsection heading to the next column, because there was not space for 8 lines left in the column at that point. Any thoughts on how to fix this kind of occurrence? Thanks, 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 ___
[NTG-context] Paragraph - the last line handling
Hello Everyone, in my document there are lot of cases when the last line in the paragraph has a very narrow gap on the right (case 1 below). I understand it is sometimes difficult to squeeze characters to the desired lenght (case 2) without any impact to the final quality, but this looks very unnatural now (besides all other lines, which are nicely typeset keeping the optical edge on the right). Is it possible to somehow define that under a certain limit the line will be expanded to the end (case 3)? (1) xx x (2) xx (3) xx xx I use the following setup now: \setupalign[hz, hanging] \setuptolerance[verystrict] % even 'strict' doesn't help here \setupindenting[medium, yes] Any idea? Thanks, 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 ___
Re: [NTG-context] a way to implement \testcolumn in mixedcolumns
On 11/22/2013 4:59 PM, Hans Hagen wrote: On 11/20/2013 11:12 PM, Lars Huttar wrote: On 11/20/2013 4:47 PM, Lars Huttar wrote: However one thing we do miss from columnsets is the control over widows orphans in two ways: \testcolumn, and \setupcolumnsetlines. \testcolumn[n] allowed us to do a conditional column break, so when we were about to start a new subsection heading, we could prevent it being an orphan at the bottom of the column; and when starting a paragraph with a hangaround graphic framed flushright and bottom, we could similarly use \testcolumn to prevent the graphic from hanging down into the footer (which is what sometimes happened otherwise). So I'm wondering, is there some way to achieve the equivalent of \testcolumn in mixedcolumns? for the moment add \penalty1 OK... where? In the same place we used to use \testcolumn? According to http://www.tug.org/utilities/plain/cseq.html#penalty-rp, If number is 10,000 or larger, TeX will never break a line or a page there. Also, if number is -10,000 or less, it will always break a line or a page there [97 and 110]. ... Plain TeX has \break and \nobreak macros which are defined to be: \penalty-1 and \penalty1. So it sounds like you're recommending the equivalent of a \nobreak. That wouldn't make sense in the place where we want to conditionally break the column. So I guess you're talking about using it e.g. right after the subsection heading, since we don't want it to break right there? If so, that sounds like it will be helpful for preventing that particular case. I don't think it will work for preventing external figures from hanging down below the bottom of the column though, will it? Because for that to work, we'd have to prevent breaks anywhere in the flowing-around paragraph. And I don't see a way to do that. Thanks, 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] Linespacing in TOC
On 2013-11-22 Hans Hagen wrote: On 11/22/2013 9:44 PM, Jan Tosovsky wrote: On 2013-11-20 Hans Hagen wrote: On 11/19/2013 11:48 PM, Jan Tosovsky wrote: I'd like to tweak a default TOC linespacing... \title{Table of Contents} \start \setupinterlinespace[line=0.8ex] % too small, just for testing \placecontent \stop But as I found, any value below 2.8ex causes interline inconsistencies when special cases appears, see the extreme below: \starttext \start \setupinterlinespace[line=1.0ex] \placecontent \stop \chapter{}. % line without descenders precedes a line without ascenders \chapter{}. % line with descenders is followed with a line with ascenders \chapter{}. % the result is an inconsistent baseline distance \stoptext Is there any remedy for this? Can I fix the baseline distance somehow? \definegridsnapping[crap] [fit,0.2] \setuplayout[grid=crap] This helps! But... it breaks something else :-( I am confused a bit. What exactly the linespacing is doing? It can set the baseline distance (line=...), but it is not handled correctly? Is that snapping a workaround for this deficiency of a standard solution? All lines in my book have a certain (default) linespacing. TOC entries are rendered (by default) using bigger linespacing. I just wanted to make that TOC distance smaller a bit. Is this really the only solution? \definegridsnapping[crap] [fit] % what was that magic number 0.2 ? \setuplayout[grid=crap] \start \setupinterlinespace[line=2.2ex] \placecontent \stop It works. But that snapping is set globally and it breaks whitespace handling in other parts of my document... It even produces widows/orphans what I haven't seen before. Just smaller gap between TOC lines, just that ;-) Thanks in advance, 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 ___