[NTG-context] \startnarrower[left, right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower

2014-01-22 Thread Rudolf Bahr

Hello listmembers,

ConTeXt  ver: 2013.05.28 00:36 MKIV current  fmt: 2014.1.6

I'm typesetting a book in A4 landscape and would like to indent the TOC
at both sides. I tried two solutions which both didn't work as expected.

1. attempt with \startnarrower[left,right] 
\completecontent[pageboundaries={0.1.1.5}] \stopnarrower:
   The output of the following minimalistic example is partly attached as .pdf 
file. I shortened there
   the textheight to 80mm.
   a.) I would expect the TOC to be midaligned. But it isn't. It is leftaligned.
   b.) I would expect the TOC stopped after the 5th subsection row at page 
bottom and to be
   continued at the next page due to [pageboundaries={0.1.1.5}]. But it 
isn't.

2. attempt with 
\line{\hfill\vbox{\hsize=.75\hsize\completecontent[pageboundaries={0.1.1.5}]}\hfill},
   outcommented in the following example. The TOC is really indented at both 
sides, but
   it doesn't stop at all at page bottom.

Something must be wrong here. But what?

Regards,

Rudolf Bahr

-8
\setuppapersize[A4,landscape]
\setuplayout[backspace=27.5mm,topspace=20mm,height=80mm,width=242mm,footer=5mm,header=8mm,margin=18mm]

\setuplayout [location=middle, marking=on, margindistance=3mm]

\setuppagenumbering[alternative=singlesided,
location={footer, margin},
style=bold,
command=\midaligned]
\setupheader[text][after=\hrule]

\setupbodyfont[default]

\definebodyfontswitch [xvii] [17.3pt]
\definebodyfontswitch [xiv]  [14.4pt]
\definebodyfontswitch [xii]  [12pt]

\setupheadtext[content=\rm\xvii\bf Inhaltsverzeichnis]
\definelist[chapter]
\setuplist[chapter]   [style=\rm\xvii\bf, pagenumber=no]

\definelist[section]
\setuplist[section]   [margin=1.5em, style=\rm\xiv\bf, pagenumber=no]

\definelist[subsection]
\setuplist[subsection][margin=3.0em, style=\rm\xii, alternative=c]

\setuphead[chapter]   [header=empty, style=\rm\xvii\bf, number=no, 
align=middle, textstyle=\rm\xvii\bf]
\setuphead[section]   [header=empty, style=\rm\xiv\bf,  number=no, align=middle]
\setuphead[subsection][header=empty, style=\rm\xii\bf,  number=no. align=middle]

\showframe

\setupnarrower[left=.125\hsize,right=.125\hsize]
 % -

\starttext

%\line{\hfill\vbox{\hsize=.75\hsize\completecontent[pageboundaries={0.1.1.5}]}\hfill}
\startnarrower[left,right] \completecontent[pageboundaries={0.1.1.5}] 
\stopnarrower  % -

\chapter{2010}
\section{My Home Is My Castle}

\subsection{A}
Here we are in subsection A.
\subsection{B}
Here we are in subsection B.
\subsection{C}
Here we are in subsection C.
\subsection{D}
Here we are in subsection D.
\subsection{E}
Here we are in subsection E.
\subsection{F}
Here we are in subsection F.
\subsection{G}
Here we are in subsection G.
\subsection{H}
Here we are in subsection H.
\subsection{I}
Here we are in subsection I.

\stoptext
-8



1_pdfsam_test.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] New header

2014-01-22 Thread Fabrice Couvreur
Hi Joshua,
To the right and left but not up and down. I would like margin to 1.5cm on
the right, left, up and down.
Thank you.


2014/1/21 Joshua Krämer joshua.krae...@gmail.com

 Am Tue, 21 Jan 2014 20:02:19 +0100
 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com:

  I would also fit the dimensions of my papers as I used to do
  (\usepackage [ a4paper, hmargin = 1.5cm, vmargin =1.5cm] {geometry})
  Thank you.

 There is a wiki page about setting up the page layout:
 http://wiki.contextgarden.net/Layout

 The following sets the space around the type area to 1.5cm:

 \setuplayout
 [
 backspace=1.5cm,
 width=middle,
 topspace=1.5cm,
 height=middle,
 ]
 \showframe % very useful when setting up the layout
 \starttext
 \input{knuth}
 \stoptext

 Kind regards,
 Joshua Krämer



 ___
 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] enable kerning with discretionary hyphen

2014-01-22 Thread Pablo Rodriguez
On 01/21/2014 10:01 PM, Wolfgang Schuster wrote:
 You can use the \fontalternative command to check for the current
 alternative (upright, italic, bold etc.) of the font.
 
 \def\Test
   {\processaction
  [\fontalternative]
 [ tf=Upright,
it=Italic,
sl=Slanted,
bf=Bold,
bi=Bolditalic,
bs=Boldslanted,
   unknown=Unknown fontalternative]}
   
 \starttext
 “\Test” {\it “\Test”} {\bs “\Test”} {\sc “\Test”}
 \stoptext

Many thanks for the solution and your excellent explanation, Wolfgang.

This was exactly what I needed.

Many thanks again,


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
___


Re: [NTG-context] New header

2014-01-22 Thread Wolfgang Schuster
You have to disable the header and footer by setting the values to 0pt. 

\setuplayout 
  [backspace=15mm,
   width=middle,
   topspace=15mm,
   height=middle,
   header=0pt,
   footer=0pt]

\showframe 

\starttext 
\input knuth
\stoptext


You can also use the fullpage module when you equal margins for your document. 

\usemodule[fullpage][style={margin,empty},margin=15mm] 

\showframe 

\starttext 
\input knuth
\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
___

Re: [NTG-context] New header

2014-01-22 Thread Fabrice Couvreur
Thank you Wolfgang.
With LuaLaTeX, for my header, I use the commands \footnotesize\itshape
and \Large\scshape.
Is there an equivalent with ConTeXt ?


2014/1/22 Wolfgang Schuster schuster.wolfg...@gmail.com

 You have to disable the header and footer by setting the values to 0pt.

 \setuplayout
   [backspace=15mm,
width=middle,
topspace=15mm,
height=middle,
header=0pt,
footer=0pt]

 \showframe

 \starttext
 \input knuth
 \stoptext

 You can also use the fullpage module when you equal margins for your
 document.

 \usemodule[fullpage][style={margin,empty},margin=15mm]

 \showframe

 \starttext
 \input knuth
 \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

 ___

___
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] New header

2014-01-22 Thread Aditya Mahajan

On Wed, 22 Jan 2014, Fabrice Couvreur wrote:


Thank you Wolfgang.
With LuaLaTeX, for my header, I use the commands \footnotesize\itshape
and \Large\scshape.
Is there an equivalent with ConTeXt ?


\setupheader[style={\switchtobodyfont[small]\italic}]
\setupfooter[style={\switchtobodyfont[big]\smallcaps}]

You can also try

style=\itx\setupinterlinespace (or \itxx)

or

style=\scb\setupinterlinespace (or \sca \scc etc.)

See:

http://wiki.contextgarden.net/Font_Switching
http://wiki.contextgarden.net/Style_Alternatives


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
___


[NTG-context] new interface to simplefonts

2014-01-22 Thread Pablo Rodriguez
Dear list,

using the latest beta from today (ConTeXt - 2014.01.22 01:31) in Linux
32-bit, I cannot get the new simplefonts working.

Here is the sample:

\definefallbackfamily [mainface] [serif] [DejaVu Serif]
[range={greek,extendedgreek},force=yes]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setupbodyfont[mainface]
\starttext
\input knuth

χαλεπὰ τὰ καλά
\stoptext

But I only get the font LatinModernMath-Regular.

Am I missing something or is this 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
___

Re: [NTG-context] new interface to simplefonts

2014-01-22 Thread Wolfgang Schuster
This is a context bug which was probably introduced with the recent 
optimization/speedup for the generation of the font database. As a result of 
this the following fields in the database (which are needed for simplefonts) 
are no longer available:  

- designsize  
- maxsize
- minsize
- pfmweight
- pfmwidth


Also some fonts like “Latin Modern Roman” can’t be loaded anymore because the 
font is no saved as  

  {  
   [cleanfilename]=lmroman10regular,
   [familyname]=lmroman10,
   [filename]=lmroman10-regular.otf,
   [fontname]=lmroman10regular,
   [fontweight]=book,
   [format]=otf,
   [fullname]=lmroman10regular,
   [modification]=1254935040,
   [rawname]=LMRoman10-Regular,
   [style]=normal,
   [variant]=normal,
   [weight]=normal,
   [width]=normal,
  },

but in an older version of the database the entry for the font looked like 
this:  

  {  
   [cleanfilename]=lmroman10regular,
   [designsize]=100,
   [familyname]=latinmodernroman,
   [filename]=lmroman10-regular.otf,
   [fontname]=lmroman10regular,
   [format]=otf,
   [fullname]=lmroman10regular,
   [maxsize]=110,
   [minsize]=95,
   [modification]=1254935040,
   [modifiers]=10regular,
   [pfmweight]=400,
   [pfmwidth]=5,
   [rawname]=LMRoman10-Regular,
   [style]=normal,
   [subfamily]=regular,
   [variant]=normal,
   [weight]=normal,
   [width]=normal,
  },



When you’re in a hurry and can’t wait for this to be fixed you can switch to an 
alternative search method of the fontfamily commands but the results can be 
differ from the default method.  

\definefallbackfamily [mainface] [serif] [DejaVu Serif] 
[alternative=simplefonts,preset=range:greek]  
\definefontfamily [mainface] [serif] [TeX Gyre Pagella] 
[alternative=simplefonts]

\setupbodyfont[mainface]  

\starttext  

\input knuth  

χαλεπὰ τὰ καλά  

\stoptext  

Wolfgang  

On 22.01.2014 21:22:24, Pablo Rodriguez oi...@gmx.es wrote: Dear list,

using the latest beta from today (ConTeXt - 2014.01.22 01:31) in Linux
32-bit, I cannot get the new simplefonts working.

Here is the sample:

\definefallbackfamily [mainface] [serif] [DejaVu Serif]
[range={greek,extendedgreek},force=yes]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setupbodyfont[mainface]
\starttext
\input knuth

χαλεπὰ τὰ καλά
\stoptext

But I only get the font LatinModernMath-Regular.

Am I missing something or is this 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] \startnarrower[left, right] \completecontent[pageboundaries={0.1.1.5}] \stopnarrower

2014-01-22 Thread Wolfgang Schuster

Hi Rudolf,  

what you try doesn’t work because the narrower environment and the list 
alternative you use try to change the same internal register for the distance 
from the left margin. What you have to do is to write your own layout for the 
section entries in the TOC because this way you don’t reset the margins added 
by \startnarrower.  

Wolfgang


On 22.01.2014 12:05:33, Rudolf Bahr qu...@quasi.de wrote:  
Hello listmembers,

ConTeXt ver: 2013.05.28 00:36 MKIV current fmt: 2014.1.6

I'm typesetting a book in A4 landscape and would like to indent the TOC
at both sides. I tried two solutions which both didn't work as expected.

1. attempt with \startnarrower[left,right] 
\completecontent[pageboundaries={0.1.1.5}] \stopnarrower:
The output of the following minimalistic example is partly attached as .pdf 
file. I shortened there
the textheight to 80mm.
a.) I would expect the TOC to be midaligned. But it isn't. It is leftaligned.
b.) I would expect the TOC stopped after the 5th subsection row at page bottom 
and to be
continued at the next page due to [pageboundaries={0.1.1.5}]. But it isn't.

2. attempt with 
\line{\hfill\vbox{\hsize=.75\hsize\completecontent[pageboundaries={0.1.1.5}]}\hfill},
outcommented in the following example. The TOC is really indented at both 
sides, but
it doesn't stop at all at page bottom.

Something must be wrong here. But what?

Regards,

Rudolf Bahr  ___
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] new interface to simplefonts

2014-01-22 Thread Hans Hagen

On 1/22/2014 10:49 PM, Wolfgang Schuster wrote:

This is a context bug which was probably introduced with the recent
optimization/speedup for the generation of the font database. As a
result of this the following fields in the database (which are needed
for simplefonts) are no longer available:

- designsize
- maxsize
- minsize
- pfmweight
- pfmwidth


indeed these are missing (in fact they are zero) ... we can get pfm* 
back but designsize etc will not be part of the fontloader.info method 
as it involves too much loading (instead one can do a normal open)


so, we fix that part of luatex and in context will use the more complete 
loading method (which is efficient enough for our purpose)


(new beta)

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] new interface to simplefonts

2014-01-22 Thread Pablo Rodriguez
On 01/23/2014 02:06 AM, Hans Hagen wrote:
 On 1/22/2014 10:49 PM, Wolfgang Schuster wrote:
 This is a context bug which was probably introduced with the recent
 optimization/speedup for the generation of the font database. As a
 result of this the following fields in the database (which are needed
 for simplefonts) are no longer available:

 - designsize
 - maxsize
 - minsize
 - pfmweight
 - pfmwidth
 
 indeed these are missing (in fact they are zero) ... we can get pfm* 
 back but designsize etc will not be part of the fontloader.info method 
 as it involves too much loading (instead one can do a normal open)
 
 so, we fix that part of luatex and in context will use the more complete 
 loading method (which is efficient enough for our purpose)
 
 (new beta)

Many thanks for the quick fix,  Hans.


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
___