[NTG-context] \setuppagenumbering doublesided generates blank pages

2019-10-30 Thread Kerry Sainsbury
Hi there,

I am a newbie, and have *seem* to have discovered that

\setuppagenumbering [alternative=doublesided] generates a blank page
between chapters.


\setupheadertexts[chapter]

\setuppagenumbering [alternative=doublesided,location={header,inmargin}]

\starttext

\startchapter[title={October 2000}]

Blah One

\stopchapter


\startchapter[title={November 2000}]

Blah Two

\stopchapter

\stoptext

This produces a PDF in TeXworks containing 4 pages:

   - Page 1 with a header an 'October 2000' header and 'Blah One' content
   - Page 2 with a header an 'October 2000' header only.
   - Page 3 with a header an 'November 2000' header and 'Blah Two' content
   - Page 4 which is completely blank

If I remove the \setuppagenumbering line the PDF contains just two pages,
with the expected content.

I'm using "ConTeXt ver: 2019.10.11 15:47 MKIV beta fmt: 2019.10.25 int:
english/english"

Am I doing something wrong, or is this just a bug?

Thanks for your help. ConTeXt is making my life *much* easier right now!

Kerry
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \setuppagenumbering doublesided generates blank pages

2019-10-30 Thread Kerry Sainsbury
Thank you both for your replies.That has helped immensely.

On Thu, 31 Oct 2019 at 09:17, Henning Hraban Ramm  wrote:

>
> > Am 2019-10-30 um 19:58 schrieb Kerry Sainsbury :
> >
> > Hi there,
> >
> > I am a newbie, and have seem to have discovered that
> > \setuppagenumbering [alternative=doublesided] generates a blank page
> between chapters.
> >
> > Am I doing something wrong, or is this just a bug?
>
> What Wolfgang said, and you probably want
>
> \setuphead[chapter][page=yes] % or "no", but not "right"
>
> see https://wiki.contextgarden.net/Command/setuphead
> and https://wiki.contextgarden.net/Command/page
>
>
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
>
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] A5 != 210mm x 148mm ?

2019-11-03 Thread Kerry Sainsbury
Hi,

If A5 is 210mm x 148mm (and the internet assures me that it is
), then shouldn't these two setuppapersize
variants give the same result? They don't *seem* to.

%\setuppapersize[A5]

\setuppapersize[height=210mm, width=148mm]


\starttext

\input ward.tex

\stoptext



The reason I ask is because I'd like to prepare a PDF for printing via
IngramSpark, and have discovered that (bizarrely) their Australian branch
doesn't support A5 for colour books. They do offer 6x9 (229x152), and I was
wondering what values to use in 'setuppapersize', so I thought I'd
experiment with the A5 sizing because it's a well known size.


Now I have no idea :-(


Thanks

Kerry
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] A5 != 210mm x 148mm ?

2019-11-03 Thread Kerry Sainsbury
Thank you. That solves the problem.

On Sun, 3 Nov 2019 at 22:34, Tomas Hala  wrote:

> Hi,
>
> try:
>
> \definepapersize[myformat][height=210mm, width=148mm]
> \setuppapersize[myformat]
>
> Best wishes,
>
> Tomáš
>
> Sun, Nov 03, 2019 ve 09:51:40PM +1300 Kerry Sainsbury napsal(a):
> #Hi,
> #If A5 is 210mm x 148mm (and [1]the internet assures me that it is),
> then
> #shouldn't these two setuppapersize variants give the same result? They
> #don't seem to.
> #
> #%\setuppapersize[A5]
> #
> #\setuppapersize[height=210mm, width=148mm]
> #
> #\starttext
> #
> #\input ward.tex
> #
> #\stoptext
> #
> #The reason I ask is because I'd like to prepare a PDF for printing via
> #IngramSpark, and have discovered that (bizarrely) their Australian
> branch
> #doesn't support A5 for colour books. They do offer 6x9 (229x152), and
> I
> #was wondering what values to use in 'setuppapersize', so I thought I'd
> #experiment with the A5 sizing because it's a well known size.
> #
> #Now I have no idea :-(
> #
> #Thanks
> #
> #Kerry
> #
> # References
> #
> #Visible links
> #1. https://papersizes.io/a/a5
>
> #
> ___
> # 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://context.aanhet.net
> # archive  : https://bitbucket.org/phg/context-mirror/commits/
> # wiki : http://contextgarden.net
> #
> ___
>
>
>  Tomáš Hála
> 
> Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
> Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28
> 
> http://akela.mendelu.cz/~thala
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How to define the font size of the page header?

2019-11-05 Thread Kerry Sainsbury
Hi Folks,

Sorry for the constant interruptions, but I can't find an answer in any of
the many PDFs or webpages I can find.

How do I define the font size of the page header? If I'm not using a custom
font, I can call \switchbodyfont prior to calling \setuplayouttext, which,
if I'm honest, seems weird, but it doesn't work if I use a custom font. eg:

\definefontfamily [dejavu] [serif] [DejaVu Serif]

\definefontfamily [dejavu] [sans] [DejaVu Sans]


% Uncomment this and the page header font size drops dramatically.

% \setupbodyfont[dejavu]


% This seems to define the size of the page header, if \setpbodyfont is not
called.

\switchtobodyfont[50pt]


\setuplayouttext

[header][text]

[

style=small,

middletext=Page Header,

righttext=\pagenumber,

rightstyle=bold

]


\switchtobodyfont[8pt]


\starttext

\input ward.tex

\stoptext



I half expected the 'style' property to be involved in this, but I can't
get that to do anything either :-(


How do I define the font size in a page header defined using
\setuplayouttext ?


Thanks!

Kerry
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to define the font size of the page header?

2019-11-06 Thread Kerry Sainsbury
Hi Pablo,

Thanks for the response. I used \setuplayouttext specifically because it
supports the 'middletext' property (despite the fact that it doesn't seem
to be documented! I found 'middletext' in an August posting from Hans Hagen
( https://www.mail-archive.com/ntg-context@ntg.nl/msg91755.html )

Anyway, thanks to your prodding I have resolved the problem. I hadn't
realised that the calls to \setupheadertexts were cumulative. ie: I can
just do this:

\setupheadertexts[My Page Header]

\setupheadertexts[][pagenumber]


It seems odd that I can't explicitly specify a font size, but that's fine
\tfxx will just have to do.


Thanks again.

Kerry


PS: I promise the dumb questions will stop soon :-)


On Wed, 6 Nov 2019 at 20:46, Pablo Rodriguez  wrote:

> On 11/6/19 3:15 AM, Kerry Sainsbury wrote:
> > Hi Folks,
> >
> > Sorry for the constant interruptions, but I can't find an answer in any
> > of the many PDFs or webpages I can find.
> >
> > How do I define the font size of the page header?
>
> Hi Kerry,
>
> use the following:
>
> \setupheadertexts[Pagenumber][pagenumber]
> \setupheader[style=\bfd]
>
> I hope it helps,
>
> Pablo
>
>
> PS: I don’t know why \setuplayouttext doesn’t work, but you invoke some
> options that don’t seem to exist
> (
> http://www.pragma-ade.com/general/qrcs/setup-en.pdf#search=setuplayouttext
> ).
>



--
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How to sort list of sections?

2019-11-06 Thread Kerry Sainsbury
Hi Folks,

If sections are just lists, and lists can be sorted, how can I sort a list
of sections?
My actual goal is to generate an 'index' that is made up of section
headings.
Here's my attempt that does not work.


\setuphead[section][number=no ]


% This was a guess at how I might be able to sort sections. I was wrong :-)

\definesorting[section][sections]

\setupsorting[sections][criterium=all]


% I thought something like this might work too

\definesorting[wahs]

\definesorting[wah][wahs][\getmarking[section]][\getmarking[section]]


\starttext

placelist (not sorted, as you would expect):

\placelist[section]

\blank


placelistofsorts (doesn't render anything. My guess was wrong)

\placelistofsorts[wahs]


Sections start here:

\startsection[title={Beta}]

Hello


\startsection[title={Alpha}]

World

\stoptext



Thank you for your time. I really appreciate it.


Kerry
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to sort list of sections?

2019-11-07 Thread Kerry Sainsbury
Thanks Hans. For the sake of any future users who may have stumbled across
this post I want to point out that if you want the list of sections to
appear at the *end *of your document you need to use "criterium=previous"


\placelist[section][criterium=previous,order=title]


On Fri, 8 Nov 2019 at 04:52, Hans Hagen  wrote:

> On 11/7/2019 12:13 AM, Kerry Sainsbury wrote:
> > Hi Folks,
> >
> > If sections are just lists, and lists can be sorted, how can I sort a
> > list of sections?
> > My actual goal is to generate an 'index' that is made up of section
> > headings.
> > Here's my attempt that does not work.
> here's one that does ...
>
> \setuphead[section][number=no]
>
> \starttext
>
> \startchapter[title=foo]
>
>  \placelist[section][criterium=local,order=title]
>
>  \startsection[title={Beta}]  \input sapolsky \stopsection
>  \startsection[title={Alpha}] \input sapolsky \stopsection
>  \startsection[title={Gamma}] \input sapolsky \stopsection
>
> \stopchapter
>
> \stoptext
>
> it's an experimental feature already present for a while but probably
> unknown
>
> Hans
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Thank you

2019-12-16 Thread Kerry Sainsbury
ConTeXt is not causing me any problems. I just wanted to thank the
developers for creating such a useful tool, and for providing such
excellent support.

I have just received copies of my 730 page hard cover book that chronicles
part of my immediate family's life together, created by programmatically
converting Libre Office documents to ConTeXt, and a bit of manual tweaking.

It would never have been possible to produce such a book in such a short
time without a tool like ConTeXt, and, unfortunately, time is short for me.

Thank you again for making it possible to create such an important book for
me and my family.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___