[NTG-context] Incorrect math kerning

2016-05-29 Thread Aditya Mahajan

Hi,

This is based on a question about latex on tex.stackexchange:
http://tex.stackexchange.com/q/312098/323

but context shows the same behaviour.

The subscript "i" in the following example is kerned incorrectly (it is 
too far away from W). Is this a bug in the font, or with the fontloader?


\setupbodyfont[cambria]

\starttext

\startTEXpage[offset=2mm]
$W_i^i$
\stopTEXpage

\stoptext

Thanks,
Aditya
___
If your question is of interest to others as well, please add an 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] Allow for hyphenation in 'firstline' ConTeXt feature ?

2016-05-29 Thread josephcanedo
Yes, I probably should have written ‘Would it be time consuming etc… ?’ :-)

In any case, I had a try to the test file, and it works very well.


Thanks for your very swift reply.


Best regards


Joseph Canedo





From: pra...@wxs.nl
Sent: ‎Sunday‎, ‎May‎ ‎29‎, ‎2016 ‎5‎:‎18‎ ‎PM
To: ntg-context@ntg.nl





On 5/29/2016 11:40 AM, josephcan...@gmail.com wrote:
> Dear all,
>
> I use the nifty ‘firstline’ feature ConTeXt offers (using a larger font
> size, line mode, 1 line only) and I notice that the last word of the
> first line is never hyphenated even if doing so could reduce underful in
> the first line. From typo-fln.lua it looks like that’s expected as the
> decision to break the first line happens only at nodes which are not
> glyphs, disc_nodes or kern nodes. There is a comment saying it could be
> added some option to handle disc nodes. I’d be happy to add such option
> but do not have enough knowledge in nodes manipulation in luatex,
> especially those related to hyphenation. Would it be very difficult to
> add such option please ?

depends on what one finds 'difficult' ... by now i can probably do most 
i want at that level in which difficult is replace by 'just takes time'; 
also, one needs to keep in mind that trickery like this also needs to 
cooperate with other mechanisms

i'll send you a file to test (no beta as i'm cleaning up some display math)

> I post a MWE showing some extreme non real non sensible case, to double
> check that hyphenation is never performed.
>
> \definefirstline[FirstLine][alternative=line, style=\tfd] % exegerate size
>
> \starttext
>
> % exagerated case as MWE
>
> \setfirstline[FirstLine] A few words larger
> largestwordwordlongwordthatcouldbehyphenated bar bar.
> A few words larger largest word word foo bar word bar bar. A few words
> larger largest
> word word foo bar word bar bar. A few words larger largest word word foo
> bar word bar bar.
>
> \stoptext
>
> Thanks a lot,
>
> Best regards
>
> Joseph Canedo
>
>
>
> ___
> If your question is of interest to others as well, please add an 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 | 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] Tabulate \NN not working

2016-05-29 Thread Hans Åberg

> On 29 May 2016, at 20:58, Wolfgang Schuster  
> wrote:
> 
>> Hans Åberg 29. Mai 2016 um 20:49

>> The pages [1], "Using math mode” suggests
>>   \NN 
>> is equivalent to
>>   \NC $$ 
>> 
>> 1. 
>> http://wiki.contextgarden.net/Tabulate
> The description is wrong, the \NN command calls the \digits command at the 
> begin of the cell, i.e.
> 
> \NN …
> 
> is the same as
> 
> \NC \digits …

OK. Perhaps a \NM … command call $…$, then.

The output on the \digits page is wrong, too. (Because of the confusion of “,” 
and “.” in numbers, an international standard suggests to use either of them as 
a decimal separator, and a single space between digits if so wished. Haven’t 
caught on much, though.)

http://wiki.contextgarden.net/Command/digits


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

2016-05-29 Thread Wolfgang Schuster

Hans Åberg 
29. Mai 2016 um 20:49

On 29 May 2016, at 18:57, Wolfgang Schuster  wrote:


Hans Åberg 29. Mai 2016 um 18:38
For some reason, the use of \NN as in the first table below is not working. It 
works fine using math columns, though, as in the second table below.

What do you expect?


The pages [1], "Using math mode” suggests
   \NN
is equivalent to
   \NC $$

1. http://wiki.contextgarden.net/Tabulate
The description is wrong, the \NN command calls the \digits command at 
the begin of the cell, i.e.


\NN …

is the same as

\NC \digits …

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] Tabulate \NN not working

2016-05-29 Thread Hans Åberg

> On 29 May 2016, at 20:42, L.S.-Soc  wrote:
> 
> You also shouldn't paste blackboard characters as you did in your example.
> 
> Instead you should use \blackboard command -> 

I want to use Unicode characters, making the source code more readable.


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

2016-05-29 Thread Hans Åberg

> On 29 May 2016, at 18:57, Wolfgang Schuster  
> wrote:
> 
>> Hans Åberg 29. Mai 2016 um 18:38
>> For some reason, the use of \NN as in the first table below is not working. 
>> It works fine using math columns, though, as in the second table below.
> What do you expect?

The pages [1], "Using math mode” suggests
  \NN 
is equivalent to
  \NC $$ 

1. http://wiki.contextgarden.net/Tabulate

> You use in your table math characters which aren’t available in the text font 
> and as a result nothing is shown.

But it ain’t.


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

2016-05-29 Thread L.S.-Soc

You also shouldn't paste blackboard characters as you did in your example.

Instead you should use \blackboard command -> check wiki. You will have 
to place it within a math environment though, so it might be wiser to 
read into "natural TABLES". -> also check wiki.


For example:

\startformula {\blackboard Hello World} \stopformula

or

\startformula {\blackboard R} \stopformula



Greets, Seba


Am 29.05.2016 um 18:38 schrieb Hans Åberg:

For some reason, the use of \NN as in the first table below is not working. It 
works fine using math columns, though, as in the second table below.


\setupbodyfont[xits,10pt]

\starttabulate[|c|c|]
   \NN x \NN ¬x \NR
   \HL
   \NN 핗 \NN 핥 \NR
   \NC 핥 \NN 핗 \NR
\stoptabulate

\starttabulate[|mc|mc|]
   \NC x \NC ¬x \NR
   \HL
   \NC 핗 \NC 핥 \NR
   \NC 핥 \NC 핗 \NR
\stoptabulate


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

2016-05-29 Thread Wolfgang Schuster

Hans Åberg 
29. Mai 2016 um 18:38
For some reason, the use of \NN as in the first table below is not 
working. It works fine using math columns, though, as in the second 
table below.

What do you expect?

You use in your table math characters which aren’t available in the text 
font and as a result nothing is shown.


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

2016-05-29 Thread Hans Hagen

On 5/29/2016 6:36 PM, Thomas Fehige wrote:

I'm still trying to understand some ConTeXt ways of doing things, being
a kind of LaTeX native myself. I bought the context-fonts manual, but
still can't figure out how to implement a macro that does the simple(?)
following, especially item 3:

1. Make #1 uppercase [OK, in simple situations I could just type the
uppercase letters]
2. change #1's color to xxx [not a problem]
3. apply an amount of letterspacing to the capitalized #1 that I can
specify myself.

Maybe I'm only using the wrong search term, maybe the letterspace
feature is well hidden in the documentation, maybe it doesn't exist: I
simply don't know and don't see a way to find out. \stretched is not an
answer.


\starttext

some words

\WORD{some words}

\definecharacterkerning[mine][factor=0.5]
\definecharacterkerning[less][factor=0.05]
\definecharacterkerning[more][factor=0.1]

\WORD{\setcharacterkerning[mine]some words}

{\setcharactercasing[WORD]\setcharacterkerning[mine]some words}

{\setcharactercasing[Words]\setcharacterkerning[less]some words}

{\setcharactercasing[Words]\setcharacterkerning[more]some words}

\stoptext


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

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

[NTG-context] Tabulate \NN not working

2016-05-29 Thread Hans Åberg
For some reason, the use of \NN as in the first table below is not working. It 
works fine using math columns, though, as in the second table below.


\setupbodyfont[xits,10pt]

\starttabulate[|c|c|]
  \NN x \NN ¬x \NR
  \HL
  \NN 핗 \NN 핥 \NR
  \NC 핥 \NN 핗 \NR
\stoptabulate

\starttabulate[|mc|mc|]
  \NC x \NC ¬x \NR
  \HL
  \NC 핗 \NC 핥 \NR
  \NC 핥 \NC 핗 \NR
\stoptabulate


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

2016-05-29 Thread Thomas Fehige
I'm still trying to understand some ConTeXt ways of doing things, being 
a kind of LaTeX native myself. I bought the context-fonts manual, but 
still can't figure out how to implement a macro that does the simple(?) 
following, especially item 3:


1. Make #1 uppercase [OK, in simple situations I could just type the 
uppercase letters]

2. change #1's color to xxx [not a problem]
3. apply an amount of letterspacing to the capitalized #1 that I can 
specify myself.


Maybe I'm only using the wrong search term, maybe the letterspace 
feature is well hidden in the documentation, maybe it doesn't exist: I 
simply don't know and don't see a way to find out. \stretched is not an 
answer.


Any hints appreciated.

Cheers -- 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] issue in the wiki

2016-05-29 Thread Mohammad Hossein Bateni
The version on the wiki is the stable version from mid 2015.
On May 29, 2016 12:36 PM, "Pablo Rodriguez"  wrote:

> Dear list,
>
> modifying http://wiki.contextgarden.net/Command/hrule#Example, I added
> an "\hrule height .25in".
>
> I’m afraid that this command make all rules vanish in the final document.
>
> The same source compiles fine with latest beta (2016.05.22 15:18) on my
> laptop.
>
> Is there anything that I’m missing or have i hit 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
>
> ___
___
If your question is of interest to others as well, please add an 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] Allow for hyphenation in 'firstline' ConTeXt feature ?

2016-05-29 Thread Hans Hagen

On 5/29/2016 11:40 AM, josephcan...@gmail.com wrote:

Dear all,

I use the nifty ‘firstline’ feature ConTeXt offers (using a larger font
size, line mode, 1 line only) and I notice that the last word of the
first line is never hyphenated even if doing so could reduce underful in
the first line. From typo-fln.lua it looks like that’s expected as the
decision to break the first line happens only at nodes which are not
glyphs, disc_nodes or kern nodes. There is a comment saying it could be
added some option to handle disc nodes. I’d be happy to add such option
but do not have enough knowledge in nodes manipulation in luatex,
especially those related to hyphenation. Would it be very difficult to
add such option please ?


depends on what one finds 'difficult' ... by now i can probably do most 
i want at that level in which difficult is replace by 'just takes time'; 
also, one needs to keep in mind that trickery like this also needs to 
cooperate with other mechanisms


i'll send you a file to test (no beta as i'm cleaning up some display math)


I post a MWE showing some extreme non real non sensible case, to double
check that hyphenation is never performed.

\definefirstline[FirstLine][alternative=line, style=\tfd] % exegerate size

\starttext

% exagerated case as MWE

\setfirstline[FirstLine] A few words larger
largestwordwordlongwordthatcouldbehyphenated bar bar.
A few words larger largest word word foo bar word bar bar. A few words
larger largest
word word foo bar word bar bar. A few words larger largest word word foo
bar word bar bar.

\stoptext

Thanks a lot,

Best regards

Joseph Canedo



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

2016-05-29 Thread Hans Hagen

On 5/29/2016 11:57 AM, Pablo Rodriguez wrote:

On 05/27/2016 02:49 PM, Wolfgang Schuster wrote:

Pablo Rodriguez 26. Mai 2016 um 21:29

In a much simpler case, it seems to work:

\setuphead[section]
[style=\ss\tfa, after={\hrule\blank[samepage,big]}]
%~ [style=\ss\tfa, after={\hrule\blank[big]}]
[..]


A good idea but it can be improved.

\definevspace[sectionrule][3mm]

\setuphead
  [section]
  [   width=0.8\textwidth,
   commandafter={\vspace[sectionrule]\hrule},
 before={\blank[0.5cm]},
  after={\blank[1cm]}]


Wolfgang,

many thanks for the improvement.

I have a question about your code:

What prevents page break between heading the next paragraph?


a rather complex method of weighted penalties that also needs to make 
sure we don't break between successive heads but at the same time makes 
sure that we don't overflow the page



I might guess that is the two distinct options commandafter and after.
But this is only my suspicion on what may work there.

Many thanks for your help,

Pablo




--

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

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

Re: [NTG-context] extended printing options in ConTeXt

2016-05-29 Thread Pablo Rodriguez
On 02/04/2016 07:51 PM, Hans Hagen wrote:
> On 2/1/2016 8:22 AM, Pablo Rodriguez wrote:
>> Hans,
>>
>> would it be possible to implement two extended printing options defined
>> in the PDF specification?
> 
> remind me in a few weeks as i have other priorities now

Hans,

would it be the right time to implement the extended printing features
(explained below)?

Many thanks for your help,

Pablo


>> You have kindly implemented duplex printing and page scaling options.
>> At my workplace, we are it on a daily basis for mail merging (I had to
>> make an “extension” to distinguish between duplex printing and page
>> scaling [it isn’t an option for me]).
>>
>> In the present implementation, page, portrait and landscape values sets
>> page scaling to none. In most of the documents we generate, we have to
>> fit page contents to printer margins. It is a must for us, since
>> corporate templates are the way they are (wrong designed).
>>
>> Would it be possible to have the PDF printing options in different keys
>> than the one used for the the viewing options?
>>
>> It would be also extremely useful to be able to specify the number of
>> copies and select page size from PDF document. These are the keys
>> /NumCopies and /PickTrayByPDFSize (described on page 365 from the PDF
>> specification).
>>
>> The keys and their values would be:
>>
>>  duplex  page portrait landscape (only a duplex key required)
>>
>>  fixed   (no value is required)
>>
>>  copies  number
>>
>>  pdfsize yes no
>>
>> This way, the user has only to press the OK button in the printing
>> dialog or enter (and forget about selecting which kind of document
>> requires which options).
>>
>> I’m asking this for my own needs (it is essential for us at work,
>> where none knows what ConTeXt might be).
>>
>> But this implementation benefits any ConTeXt user.
>>
>> 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] issue in the wiki

2016-05-29 Thread Pablo Rodriguez
Dear list,

modifying http://wiki.contextgarden.net/Command/hrule#Example, I added
an "\hrule height .25in".

I’m afraid that this command make all rules vanish in the final document.

The same source compiles fine with latest beta (2016.05.22 15:18) on my
laptop.

Is there anything that I’m missing or have i hit 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
___

[NTG-context] Allow for hyphenation in 'firstline' ConTeXt feature ?

2016-05-29 Thread josephcanedo
Dear all,


I use the nifty ‘firstline’ feature ConTeXt offers (using a larger font size, 
line mode, 1 line only) and I notice that the last word of the first line is 
never hyphenated even if doing so could reduce underful in the first line. From 
typo-fln.lua it looks like that’s expected as the decision to break the first 
line happens only at nodes which are not glyphs, disc_nodes or kern nodes. 
There is a comment saying it could be added some option to handle disc nodes. 
I’d be happy to add such option but do not have enough knowledge in nodes 
manipulation in luatex, especially those related to hyphenation. Would it be 
very difficult to add such option please ?


I post a MWE showing some extreme non real non sensible case, to double check 
that hyphenation is never performed.


\definefirstline[FirstLine][alternative=line, style=\tfd] % exegerate size


\starttext


% exagerated case as MWE


\setfirstline[FirstLine] A few words larger 
largestwordwordlongwordthatcouldbehyphenated bar bar. 
A few words larger largest word word foo bar word bar bar. A few words larger 
largest 
word word foo bar word bar bar. A few words larger largest word word foo bar 
word bar bar.


\stoptext



Thanks a lot,


Best regards


Joseph Canedo

test_firstline.pdf
Description: test_firstline.pdf
___
If your question is of interest to others as well, please add an 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] orphan headline

2016-05-29 Thread Pablo Rodriguez
On 05/27/2016 02:49 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 26. Mai 2016 um 21:29
>>
>> In a much simpler case, it seems to work:
>>
>> \setuphead[section]
>> [style=\ss\tfa, after={\hrule\blank[samepage,big]}]
>> %~ [style=\ss\tfa, after={\hrule\blank[big]}]
>> [..]
> 
> A good idea but it can be improved.
> 
> \definevspace[sectionrule][3mm]
> 
> \setuphead
>   [section]
>   [   width=0.8\textwidth,
>commandafter={\vspace[sectionrule]\hrule},
>  before={\blank[0.5cm]},
>   after={\blank[1cm]}]

Wolfgang,

many thanks for the improvement.

I have a question about your code:

What prevents page break between heading the next paragraph?

I might guess that is the two distinct options commandafter and after.
But this is only my suspicion on what may work there.

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
___