Re: [NTG-context] setting margins in makeup

2014-12-20 Thread Pablo Rodriguez
On 12/19/2014 04:38 PM, Mark Szepieniec wrote:
> [...]
> Incidentally, what threw me off was the phrasing in the manual:
> 
> 4.19
> Makeup
> A document may have a titlepage, a colofon and some pages that are
> not directly related to the main part of the document. Mostly these
> pages are not numbered and can do without headers and footers.
> Because their layout needs extra attention we prefer the word makeup
> for defining their specific layout.
> 
> Since my makeup pages indeed don't have page numbers, I presumed they
> wouldn't have headers either. I may have read too much into that, but
> perhaps that passage can be improved?

Hi Mark,

makeups don’t have either headers or footers, but have the document
layout unless otherwise specified.

You are right: makeups don’t have header or footer /texts/, although
they don’t have the space for headers and footers removed.


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] setting margins in makeup

2014-12-20 Thread Pablo Rodriguez
On 12/19/2014 03:33 PM, Mark Szepieniec wrote:
> Also, the manual says I can use the command \showframe to display frames
> to help in debugging, but that doesn't seem to do anything for me?

Hi Mark,

I removed the most part of the message, because I think you solved it
(as you posted in a reply to your original message).

Regarding to \showframe, if you put it as the first line of your
document preamble, you would see side margins and frames for headers and
footers.

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
___

Re: [NTG-context] vertical alignment of table of contents in makeup

2014-12-20 Thread Pablo Rodriguez
On 12/20/2014 03:13 AM, Mark Szepieniec wrote:
> There is a trick mentioned on the wiki for top-aligning the contents of
> a makeup page, namely adding "top=,", which cancels the default value of
> \vss, which is infinitely strechable space.
> 
> However, that doesn't seem to work when the first element in the makeup
> page is \completecontent:

Hi Mark,

this is what it happens when you start a makeup page with a \chapter
command. \chapter inserts a page break before the heading.

> [...]
> Here, the table of contents and the section are both placed on the
> makeup page, but they are centered vertically. If the \completecontent
> line is commented out, the correct vertical alignment of the section
> header is obtained. Is there a way to get top-alignment when a makeup
> page starts with \completecontent? Is this a bug?

As far as I know, this isn’t a bug.

You can disable the page break before chapter with:

\setuphead[chapter][page=]

This way it works as you intend.

> Or should I even be using makeup pages in my table of contents?

I wonder whether this makes sense at all.

Why do you want or why do you think you need the table of contents
wrapped in a makeup page?

A makeup page is fine for contents such as title pages, colophons or
similar ones. Their contents should fit in a single page, because the
contents won’t be split across pages.

Here you have a sample that shows why makeup pages shouldn’t be used for
table of contents:

\starttext
\startmakeup[standard][top=,]
\chapter{Contents}
\dorecurse{50}{\section{testsection}}
\stopmakeup
\stoptext

I hope 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
___

Re: [NTG-context] access to system fonts under MacOSX

2014-12-20 Thread Pablo Rodriguez
On 12/20/2014 07:31 PM, j. van den hoff wrote:
> newbie question:
> 
> how can I get access to fonts installed outside the TeX tree under MacOSX  
> (10.9 to be precise)?
> 
> mtxrun --script font --list --name --pattern=*
> 
> shows lots of fonts (so they are recognized by context, I'd guess)
> 
> but the simple-minded approach, namely to trying something like
> 
> \starttypescript [stix]
>  \definetypeface [stix] [rm] [serif] [stix]  [default]
>  \definetypeface [stix] [ss] [sans]  [adventor]  [default]
>  \definetypeface [stix] [tt] [mono]  [cursor][default]
>  \definetypeface [stix] [mm] [math]  [stix]  [default]
> \stoptypescript
> 
> \usetypescript[stix]
> \setupbodyfont[stix,12pt]
> 
> fails with `unknown library stix'.
> 
> obviously I am doing something wrong -- or is this a luatex problem not  
> being able to find the system fonts?

Hi Jörg,

I don’t have a Mac, but this works in ConTeXt:

\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\definefontfamily [mainface] [sans]  [Helvetica]
\definefontfamily [mainface] [mono]  [Courier]
\definefontfamily [mainface] [math]  [TeX Gyre Pagella Math]
\setupbodyfont[mainface]

You don’t need to define a typescript. \definefontfamily is the command
you need.

Typeface should be defined only once ([rm] and [serif] are redundant).

Default body font size is 12pt.

I think it is easier to invoke typefaces with the system font name. I
mean, use the same name as you use in Word or any other MacOS X program.

I hope this helps. Don’t hesitate to ask, if you have further questions.


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] access to system fonts under MacOSX

2014-12-20 Thread j. van den hoff

newbie question:

how can I get access to fonts installed outside the TeX tree under MacOSX  
(10.9 to be precise)?


mtxrun --script font --list --name --pattern=*

shows lots of fonts (so they are recognized by context, I'd guess)

but the simple-minded approach, namely to trying something like

\starttypescript [stix]
\definetypeface [stix] [rm] [serif] [stix]  [default]
\definetypeface [stix] [ss] [sans]  [adventor]  [default]
\definetypeface [stix] [tt] [mono]  [cursor][default]
\definetypeface [stix] [mm] [math]  [stix]  [default]
\stoptypescript

\usetypescript[stix]
\setupbodyfont[stix,12pt]

fails with `unknown library stix'.

obviously I am doing something wrong -- or is this a luatex problem not  
being able to find the system fonts?


thx, joerg

--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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
___