Re: [NTG-context] Finalizing my book

2015-09-10 Thread Hans Hagen

On 9/5/2015 10:15 PM, Mikoláš Štrajt wrote:

I am finalizing my semi-autogenerated e-book and i ran into three issues:

1) its impossible to place table of content after the content itself. It
simply doesnt display without any trace in log.


you can set a criterium: criterium=text


2) i am triying to use Antykwa Torunska with "\definetypeface [antykwa]
[rm] [serif] [antykwa-torunska] [default] [encoding=ec]", but it
complaint for misssing typescript. Is there some working way to install
it? (Using minimals)


mkiv? omit the encoding


3) is there some trick to protect stanzas of poems against pagebreak in
the middle of stanza? Or there are some usefult tips/modules when
typeseting poetry in Context?


\starttext

\interlinepenalty\maxdimen \dorecurse{10}{\input tufte \par}

\stoptext

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] Finalizing my book

2015-09-06 Thread Mikoláš Štrajt
>> 1) its impossible to place table of content after the content itself. It
>> simply doesnt display without any trace in log.
>
>Hi Mikoláš,
>
>\placecontent[criterium=previous] is the right command.
>
>> 2) i am triying to use Antykwa Torunska with "\definetypeface [antykwa]
>> [rm] [serif] [antykwa-torunska] [default] [encoding=ec]", but it
>> complaint for misssing typescript. Is there some working way to install
>> it? (Using minimals)
>
>I use MkIV and this works (no typescripts involved):
>
>  \definefontfamily [antykwa] [rm] [Antykwa Torunska]
>
>   \definefontfamily [iwona] [rm] [Iwona]
>
>   \setupbodyfont[iwona,12pt]
>
>   \setuphead[section]  [style=\tfc\antykwa]
>
>   \setuphead[subsection]   [style=\tfb\antykwa, page=yes]


Both suggestions worked like a charm. Thank you.

Mikoláš
___
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] Finalizing my book

2015-09-06 Thread Wolfgang Schuster

Mikoláš Štrajt 
5. September 2015 22:15
I am finalizing my semi-autogenerated e-book and i ran into three issues:

1) its impossible to place table of content after the content itself. 
It simply doesnt display without any trace in log.
2) i am triying to use Antykwa Torunska with "\definetypeface 
[antykwa] [rm] [serif] [antykwa-torunska] [default] [encoding=ec]", 
but it complaint for misssing typescript. Is there some working way to 
install it? (Using minimals)

Use

\definetypeface [antykwa] [rm] [serif] [antykwa] [default]

to set the font.
3) is there some trick to protect stanzas of poems against pagebreak 
in the middle of stanza? Or there are some usefult tips/modules when 
typeseting poetry in Context?

You can use the lines environment with the packed option.

 begin example
\definetypeface [antykwa] [rm] [serif] [antykwa] [default]

\setupbodyfont[antykwa]

\setuplines[option=packed,inbetween={\blank[line,preference]}]

\setuppapersize[A6]

\showframe

\starttext

\subsection{Co mě tak láká?}

\startlines
A ty se ptáš,
co mě tak láka, na tobě?
Odpoveď máš
tady i když v snivé podobě

Dostal jsem ochutnat
z poháru štěstí.
Je to jak tancovat
na poušti v dešti.

Rychle mi však došlo,
že byl to jen sen
Nad pouští slunce vyšlo
a zase další horký den.

Tak buď mi oázou,
do které toužím jít.
Pouští mé kroky jdou,
mám žízeň, musím pít.

I kdybys byla jen fata morgána,
tak dáváš mi směr.
Oslovit můžu pak, to slunce nad náma:
Jen do mě si per!
\stoplines

\stoptext
 end example

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] Finalizing my book

2015-09-06 Thread Pablo Rodriguez
On 09/05/2015 10:15 PM, Mikoláš Štrajt wrote:
> I am finalizing my semi-autogenerated e-book and i ran into three issues:
> 
> 1) its impossible to place table of content after the content itself. It
> simply doesnt display without any trace in log.

Hi Mikoláš,

\placecontent[criterium=previous] is the right command.

> 2) i am triying to use Antykwa Torunska with "\definetypeface [antykwa]
> [rm] [serif] [antykwa-torunska] [default] [encoding=ec]", but it
> complaint for misssing typescript. Is there some working way to install
> it? (Using minimals)

I use MkIV and this works (no typescripts involved):

   \definefontfamily [antykwa] [rm] [Antykwa Torunska]

   \definefontfamily [iwona] [rm] [Iwona]

   \setupbodyfont[iwona,12pt]

   \setuphead[section]  [style=\tfc\antykwa]

   \setuphead[subsection]   [style=\tfb\antykwa, page=yes]


BTW, you define section and subsection heads in lines 24-25 and 59-60.
Main typeface is defined in lines 19 and 57. Are these redefinitions
intended or is it a bug? (Even if they were intended, I’d remove them
for the sake of clarity.)

> 3) is there some trick to protect stanzas of poems against pagebreak in
> the middle of stanza? Or there are some usefult tips/modules when
> typeseting poetry in Context?

Sorry, but I don’t know how to do that.

Just in case it helps,


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

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