[NTG-context] author in ToC and other design complications

2020-09-03 Thread jbf
Very much at the conclusion of a complicated book where most if not all 
issues in the body of the text are resolved, but now comes the really 
difficult part: the Table of Contents.


Here is what I am currently using (but it does not produce what I have 
been asked for, which is explained below this MWE):


%--

\setuphead [subject] [incrementnumber=list]
\setuphead [title] [incrementnumber=list]
\setupcombinedlist
  [content]
[list={chapter,title,section,subsection}]\switchtobodyfont[10.5pt]
\setuplist[chapter][style=normal,alternative=b, before=]

And then I place the ToC using:

\definehead
  [tochead]
  [title]
\starttochead[title={Contents}]
  \placecombinedlist[content]
\stoptochead

%-

The last bit ensures that I get the word 'Contents' as the toc title, 
and avoid then getting 'contents' listed as an item with its page 
number. And if I want a relatively straightforward Table of Contents, 
then this mostly works, giving me (e.g.):


Foreword                    iii

One   Chapter title  1

Two    Chapter title  10

etc.

Of course, I would prefer it to say 'Chapter One' not just 'One', so 
that is a minor problem I still have to resolve. But in fact, the 
publisher wants something quite different and I really do not know how 
to go about it. I did look at 'Author in ToC' in the wiki, but that 
referred me to a somewhat complicated Proceedings style, and given that 
my Chapters are all set up anyway, I just couldn't follow that. Am 
hoping there is some other way I can achieve the design that follows:


Foreword            Author's name        iii

Chapter One       Chapter title

                            Author's name   1

Chapter Two    1820-1880

    Chapter title

    Author's name   10

I need to add that the current setup to obtain Chapter Two is with 
\setuplabeltext[chapter={{Chapter },{:1820-1880}}] which gives me 
Chapter Two:1820-1880


I had thought that maybe I could get the author with something like

\starttitle[title={\ss Foreword}][author={Author Name}]

Foreword content

\stoptitle

But that does not produce any author name in the ToC, and in fact the 
Author's name in the Chapter opening page is simply placed manually as a 
right-aligned item in the position where I want it, nothing to do with 
the setup for \chapter (or \title in this case).


Given the above complicated design (or so it seems to me) will I have to 
just set the ToC up manually with a table, or can it be achieved otherwise?


Julian


___
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] \setupuserpagenumber not working as expected

2020-09-03 Thread jbf
Thanks Jan, that is an extensive bit of work below! Might take me a 
while to digest, but I'll explore it carefully.


Julian

On 3/9/20 6:29 pm, Jan Willem Flamma wrote:


Dear Julian,

I use something similar using a main product file, an environment file 
that contain the styling and several components that build up the 
frontmatter, the manual and the appendices.


Below my setup where I start the roman numbering on the table of 
contents page (page 5 or v in roman)


Once the bodymatter starts the pagenumber is set  to the arabic 1 (see 
below in the main product file)


You should be able to copy and adapt to your needs.

Kind regards,

Jan Willem Flamma

*The main product file*

==

\environment env-WA

\startproduct currentproduct

% Document definitions

\define\MyManual{Course Manual}

\define\MyTitle{Title}

\define\MySubtitleOne{Subtitle 1}

\define\MySubtitleTwo{Subtitle 2}

\define\MyRevnumber{Revision number}

% Load frontmatter files

\startfrontmatter

\component fm-frontpage

\component fm-titlepage

\component fm-tableofcontents

\stopfrontmatter

% Load bodymatter file

\startbodymatter

\setupbackgrounds

[leftpage]

[setups=pagenumber:left]

\setupbackgrounds

[rightpage]

[setups=pagenumber:right]

\setuppagenumber[number=1]

\component co-01

\component co-02

\stopbodymatter

% Load backmatter files

\startbackmatter

\setupbackgrounds

[leftpage]

[setups=pagenumber:left]

\setupbackgrounds

[rightpage]

[setups=pagenumber:right]

\startappendices

\component co-ap-01

\component co-ap-02

\stopappendices

\stopbackmatter

% Load external PDF documents

\setuppagenumber[state=stop]

\copypages[External PDF/app1.pdf][n=4]

\stopproduct

=

*The env-WA.tex file (below is about pagenumbering only)*

=

% Start chapter on right (odd) page, pagenumber = bottom right

\setuppagenumbering

[alternative=doublesided,

 location=right]

% Pagenumbering style

\definestructureconversionset

[frontpart:pagenumber][][romannumerals]

\definestructureconversionset

[bodypart:pagenumber] [][numbers]

\definestructureconversionset

[appendix:pagenumber] [][numbers]

=

*The fm-frontpage.tex file*



\startcomponent currentcomponent

\product product

% Front page layout

\startstandardmakeup

% Place logo centered on page

\framed[height=5cm,width=broad,frame=off]

{\externalfigure[frontpage-logo.png][width=12cm]}

% Place course titles

\blank[6*big]

\color[Modu_Blue]{\midaligned{\bfc \MyManual}}

\blank[4*big]

\color[Modu_Blue]{\midaligned{\tfc \MyTitle}}

\blank[2*big]

\color[Modu_Blue]{\midaligned{\tfc \MySubtitleOne}}

\blank[2*big]

\color[Modu_Blue]{\midaligned{\tfc \MySubtitleTwo}}

\vfill

\stopstandardmakeup

\stopcomponent



*The fm-titlepage.tex file*



\startcomponent currentcomponent

\product product

\startstandardmakeup

\color[Modu_Blue]{\midaligned{\tfb \MyManual}}

\blank[2*big]

\color[Modu_Blue]{\midaligned{\tfb \MyTitle}}

\blank[2*big]

\color[Modu_Blue]{\midaligned{\tfb \MySubtitleOne}}

\blank[2*big]

\color[Modu_Blue]{\midaligned{\tfb \MySubtitleTwo}}

\blank[10*big]

\color[Modu_Blue]{\midaligned{\tfb \MyRevnumber}}

\blank

\midaligned{\color[Modu_Blue]{\tfb \currentdate[month,year]}}

\blank[10*big]

\midaligned{\color[Modu_Blue]{\tfb Written by:}}

\blank

\midaligned{\color[Modu_Blue]{\tfb Company name}}

\blank

\midaligned{\color[Modu_Blue]{\tfb City, Country}}

\vfill

\stopstandardmakeup

\stopcomponent



*The fm-tableofcontents.tex file*



\startcomponent currentcomponent

\product product

\setupbackgrounds

[leftpage]

[setups=pagenumber:left]

\setupbackgrounds

[rightpage]

[setups=pagenumber:right]

% This is where I want the roman numbering to start

\setuppagenumber[number=5]

\starttitle[title=Table of Contents]

\placecontent

\stoptitle

\stopcomponent



*From: *jbf 
*Sent: *Thursday, 3 September 2020 06:05
*To: *mailing list for ConTeXt users 
*Subject: *[NTG-context] \setupuserpagenumber not working as expected

Am seeking to have frontmatter pages in roman numerals and from 
Chapter 1 onwards in arabic numerals. I have achieved something of the 
kind, but page 1 (arabic) is appearing on the last page of the 
frontmatter and not the first page of Chapter 1. I do not know why 
this is happening. My setup for page numbering is as follows 
(something I found somewhere - wiki? elsewhere? Not sure. I didn't 
make it up!):


\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber] [][numbers]
\startsectionblockenvironment[frontpart]
\setupuserpagenumber[numberconversion=romannumerals]
\setuplist[chapter][pageconversionset=pagenumber]
\setuppagenumber[number=1]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setuppagenumber[number=1]
\stopsectionblockenvironment

The frontmatter is some 

Re: [NTG-context] defining font family for several options

2020-09-03 Thread jbf
The MWE was really just the only line affecting headers, which you 
suggested should be written as it is now written below, rather than the 
way I had it earlier (a leftover from a lack of understanding about font 
switches which Otared kindly explained to me).


\setupheader [style={\switchtobodyfont[10pt,ss]}]

This proper way of setting out the \setupheader has in fact resolved the 
situation and it now applies to both recto and verso headers. Thank you

Julian

On 4/9/20 7:16 am, Aditya Mahajan wrote:

On Fri, 4 Sep 2020, jbf wrote:


Thanks Otared. That clears up that little item :-)

BTW I know how to reduce font size in the headers (chapter titles) that
appear on the recto pages, which I can do with something like
\setupheader [style={\ss\switchtobodyfont[10pt]}], but it doesn't seem

Better to use style={\switchtobodyfont[10pt,ss]} or 
\switchtobodyfont[10pt]\ss...


to affect the header (title of the book) on the verso pages, which is
drawn from the simple statement:

\startdocument
    [metadata:title={Book title}]

Shouldn't  \setupheader affect both headers? Or is it possible I have
left something out of my \setupheader declaration?

A minimal example will make the debugging process much easier.

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://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
___


Re: [NTG-context] ebook

2020-09-03 Thread Bruce Horrocks
It looks to be the same screen as the one reviewed here. The video has a 
comparison of the resolution versus a regular b e-ink display.



> On 3 Sep 2020, at 18:25, Hans Hagen  wrote:
> 
> Hi,
> 
> Has anyone seen this device:
> 
> https://www.pocketbook-int.com/nl/products/pocketbook-color-lux
> 
> I wonder what the quality is (300 dpi bw, 100 dpi color overlayed).
> 
> 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
> ___

--
Bruce Horrocks
Hampshire, UK

___
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] defining font family for several options

2020-09-03 Thread Aditya Mahajan
On Fri, 4 Sep 2020, jbf wrote:

> Thanks Otared. That clears up that little item :-)
> 
> BTW I know how to reduce font size in the headers (chapter titles) that 
> appear on the recto pages, which I can do with something like 
> \setupheader [style={\ss\switchtobodyfont[10pt]}], but it doesn't seem 

Better to use style={\switchtobodyfont[10pt,ss]} or 
\switchtobodyfont[10pt]\ss...

> to affect the header (title of the book) on the verso pages, which is 
> drawn from the simple statement:
> 
> \startdocument
>    [metadata:title={Book title}]
> 
> Shouldn't  \setupheader affect both headers? Or is it possible I have 
> left something out of my \setupheader declaration?

A minimal example will make the debugging process much easier.

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


Re: [NTG-context] defining font family for several options

2020-09-03 Thread jbf

Thanks Otared. That clears up that little item :-)

BTW I know how to reduce font size in the headers (chapter titles) that 
appear on the recto pages, which I can do with something like 
\setupheader [style={\ss\switchtobodyfont[10pt]}], but it doesn't seem 
to affect the header (title of the book) on the verso pages, which is 
drawn from the simple statement:


\startdocument
  [metadata:title={Book title}]

Shouldn't  \setupheader affect both headers? Or is it possible I have 
left something out of my \setupheader declaration?


Julian

On 4/9/20 5:30 am, Otared Kavian wrote:

Hi Julian,

The tilde ~ in {\bf\ss #1.~#2} is only there to have an unbreakable fixed space 
between the dot and the first character of the chapter title.  Also in this way 
one can see that one has put a space there… :-)

Best tegards: Otared


On 2 Sep 2020, at 23:29, jbf  wrote:

Thanks Otared,

Still off list. You are very patient but also very thorough, and this is making 
a huge difference to what is in fact a considerable challenge for me, but one I 
am coming to grips with. I believe this aspect of things is now clear to me. No 
hurry, but when you have a moment can you explain the significance of the ~ in 
the {\bf\ss #1.~#2}}part of the definition, before the 2nd element?

After this I'll go back on list! I still have a couple of other queries (not 
font related) about things that are not functioning as they ought at the 
moment, which means I'll need either some understanding or some tweaking, but 
as always there are people on the list like yourself who are prompt with their 
assistance.

Kind regards,

Julian

On 3/9/20 12:34 am, Otared Kavian wrote:

Hi Julian,

First of all, your definition of mychapterfont is incomplete: a font family 
should contain also math fonts, because even if you don't have mathematics in 
your text where you use that font, ConTeXt may pick some characters from math 
fonts. So in my opinion you should define a whole font family named 
mychapterfont, where in particular the sans serif comes from what you are 
indicating.

The second point is that you should not setup bodyfont twice: when you say 
twice \setupbodyfont, ConTeXt will take the last one for the rest of your 
document…
So you say only once
\setupbodyfont[mainface]
and then only where you want to change the font you say
\start \switchtobodyfont[mychapterfont] \ss My special text. \stop

By the way, as we said earlier, you can also use braces instead of \start\stop, 
and even better you can say

\start \switchtobodyfont[mychapterfont,sans] My special text. \stop

A third point is that if you are using mychapterfont only to set the titles of 
chapters, in my opinion it would be better to define a command which takes care 
of all the formatting you are wishing, and then use it in the chapter header. 
Something like

\define[2]\MyChapterCommand{\switchtobodyfont[mychapterfont,12pt] {\bf\ss 
#1.~#2}}
\setuphead[chapter][command=\MyChapterCommand]

In this way you can just say

\startchapter[title={This is my first chapter}]

\input ward.tex

\stopchapter

without the hassles of formatting each title. If only some chapters have the 
special font, then you can define a new family of chapters which may share the 
same counter as the rest of your chapters.

Best regards: Otared


On 2 Sep 2020, at 03:30, jbf  wrote:

Otared, I thought I had it right - and it is partly right, but that newly 
declared font now applies to everything, not just the chapter title. So I 
haven't got it quite right! Maybe I shouldn't bother the list with these extra 
bits so am writing off list. Here is what my font definitions now look like 
(new one highlighted):

\definefontfamily [mainface] [rm] [alegreya] [sc=file:alegreyasc-bold]
\definefontfamily [mainface] [ss] [dax][tf=file:dax-regular,bf=file:dax-medium]
\definefontfamily [mainface] [mm] [alegreya]
\definefontfamily [mychapterfont] [ss] [itcavantgardepromd] 
[ss=file:itcavantgardepro-md]
\setupbodyfont[mainface]
\setupbodyfont[mychapterfont]

I presumed I would have to \setupbodyfont[mychapterfont], but is this where I 
have gone wrong?.

Then in the first chapter, I wrote as follows:

\chapter{{\switchtobodyfont[mychapterfont] \ss Introduction to the BDACE Online 
Project}} and I am getting my AvanteGardePro-MD font alright, but it now 
applies to the whole document!

I tried following title with \start switchtobodyfont[mainface] \rm and then my 
body text (followed by \stop obviously, at the end of the chapter). But this 
did not work.

I then thought that I could use this [mychapterfont] and include it somehow in 
my \setuphead[chapter] so it would work for all chapter titles, along the lines 
of: \setuphead [chapter] [header=empty, {\switchtobodyfont[mychapterfont] \ss}] 
but that hasn't worked either - my body text throughout is still in the sans 
serif, not the usual [mainface] [rm]

I think the problem is that if I define two or more \setupbodyfont items, it is 
the last of 

Re: [NTG-context] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Pablo Rodriguez
On 9/3/20 8:09 PM, Hans Hagen wrote:
> On 9/3/2020 4:52 PM, Pablo Rodriguez wrote:
>> [...]
>> I’m afraid that packed item lists are misbehaving.
>>
>> Could anyone confirm this?
> can you check again (new lmtx)

Many thanks for the new upload, Hans.

Now packed lists work as expected.

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


Re: [NTG-context] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Hans Hagen

On 9/3/2020 4:52 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \starttext
 \startitemize[n]
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \stopitemize

 \startitemize[a, packed]
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \stopitemize
 \stoptext

I’m afraid that packed item lists are misbehaving.

Could anyone confirm this?

can you check again (new lmtx)

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

2020-09-03 Thread Hans Hagen

Hi,

Has anyone seen this device:

https://www.pocketbook-int.com/nl/products/pocketbook-color-lux

I wonder what the quality is (300 dpi bw, 100 dpi color overlayed).

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
___


Re: [NTG-context] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Hans Hagen

On 9/3/2020 4:52 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \starttext
 \startitemize[n]
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \stopitemize

 \startitemize[a, packed]
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \stopitemize
 \stoptext

I’m afraid that packed item lists are misbehaving.

Could anyone confirm this?
hm, seems that i deleted a line somewhere ... fix later (took me a while 
as this is the only affected feature)


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] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\starttext
\startitemize[n]
\startitem Item\stopitem
\startitem Item\stopitem
\startitem Item\stopitem
\startitem Item\stopitem
\stopitemize

\startitemize[a, packed]
\startitem Item\stopitem
\startitem Item\stopitem
\startitem Item\stopitem
\startitem Item\stopitem
\stopitemize
\stoptext

I’m afraid that packed item lists are misbehaving.

Could anyone confirm this?

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


Re: [NTG-context] footnotes missing in heads

2020-09-03 Thread Pablo Rodriguez
On 9/3/20 12:12 PM, Hans Hagen wrote:
> On 9/3/2020 7:50 AM, Pablo Rodriguez wrote:
>> Dear list,
>>
>> the following minimal sample:
>>
>>  \starttext
>>  \chapter{Chapter\footnote{Note}}
>>  \section{Section\footnote{Note}}
>>  \stoptext
>>
>> Using current latest (from 2020.09.02 20:37) doesn’t display the footnotes.
>>
>> I’m afraid this may be a bug. Could anyone confirm this?
> not so much a bug as an uncatched case (the way to deal with deeply
> nested inserts is different in lmtx than in mkiv)
>
> (btw, it's not the latest ... that bit already changed a while ago)

Many thanks for the new latest, Hans.

I noticed this some time ago, but I thought my code was wrong.

Yesterday I checked it with a minimal sample.

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


Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread Wolfgang Schuster

jbf schrieb am 03.09.2020 um 06:32:
Thanks Wolfgang. I did have the respective setupsectionblocks, but 
they said [page= ], so I have now changed them to [page=yes] and 
things work as expected. I also tried the second \page method you 
offered, which, naturally enough, also works. I take it there is no 
'purist' preference for either of these solutions?


You can improve the second method with the following setup

\setupsectionblock [frontpart] [after=\page] % after={\page[right]}

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


Re: [NTG-context] MKIV - LMTX difference: stripping of leading white space in verbatim text

2020-09-03 Thread Christoph Reller
On Thu, Sep 3, 2020 at 5:53 AM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Christoph Reller schrieb am 03.09.2020 um 05:29:
> > Dear List,
> >
> > I am using ConTeXt LMTX 2018.05.19 21:46. Consider the following MWE:
> >
> > \starttext
> > \startLUA
> >  whatever
> > \stopLUA
> > \stoptext
> >
> > In contrast to ConTeXt MKIV, the leading four spaces in front of
> > "whatever" are not removed when processing the verbatim text:
> >
> > MKIV output:
> > whatever
> >
> > LMTX output:
> >  whatever
> >
> > Is there a way to get the old MKIV behavior back?
>
> \setuptyping[LUA][strip=yes]


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


Re: [NTG-context] force index entries without page number

2020-09-03 Thread mf

Il 03/09/20 11:38, Henning Hraban Ramm ha scritto:

Hi Massi, thank you!


Am 03.09.2020 um 11:09 schrieb mf :

This should be exactly what you asked for:

\defineprocessor[passim][right=\quad{\it passim}]


I didn’t think to use processors.


You need them to get the "passim"; if you include it in the name, then 
you should adapt also the \seeindex like this:


\seeindex{Ramm, Hraban\quad{\it passim}}{}
\seeindex{Hraban}{Ramm, Hraban\quad{\it passim}}

(i did not test it, i don't know if it works, and anyway i don't like it 
because it's not clean)





\seeindex{passim->Ramm, Hraban}{}


No, this results in
"Ramm, Hraban passim see passim"



Only with check=yes, otherwise it works right.


And
\index{passim->Ramm, Hraban}
results in
"Ramm, Hraban passim 1"



No, see attachment page 2.


I.e. I’m still looking for an index entry without "see" or page number.



\placeindex[check=no]


This is essential for references to not (exactly) existing entries, I forgot 
the option existed.



Use check=yes

Massi


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


Re: [NTG-context] footnotes missing in heads

2020-09-03 Thread Hans Hagen

On 9/3/2020 7:50 AM, Pablo Rodriguez wrote:

Dear list,

the following minimal sample:

 \starttext
 \chapter{Chapter\footnote{Note}}
 \section{Section\footnote{Note}}
 \stoptext

Using current latest (from 2020.09.02 20:37) doesn’t display the footnotes.

I’m afraid this may be a bug. Could anyone confirm this?
not so much a bug as an uncatched case (the way to deal with deeply 
nested inserts is different in lmtx than in mkiv)


(btw, it's not the latest ... that bit already changed a while ago)

(there are probably more cases that need checking)

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
___


Re: [NTG-context] force index entries without page number

2020-09-03 Thread Henning Hraban Ramm
Hi Massi, thank you!

> Am 03.09.2020 um 11:09 schrieb mf :
> 
> This should be exactly what you asked for:
> 
> \defineprocessor[passim][right=\quad{\it passim}]

I didn’t think to use processors.

> \seeindex{passim->Ramm, Hraban}{}

No, this results in
"Ramm, Hraban passim see passim"

And
\index{passim->Ramm, Hraban}
results in
"Ramm, Hraban passim 1"

I.e. I’m still looking for an index entry without "see" or page number.


> \placeindex[check=no]

This is essential for references to not (exactly) existing entries, I forgot 
the option existed.

Hraban
___
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] \pdfextension obj stream file

2020-09-03 Thread Hans Hagen

On 9/2/2020 10:23 PM, Alexander Grahn wrote:

Hello,

\pdfextension obj stream file {...}

stopped working in ConTeXt (TeXLive-2020). Here is a minimal example:

\starttext
test \immediate\pdfextension obj stream file {duck.mp3}
\stoptext

It produces an error:

mtx-context | fatal error: return code: 256
...4a3076dc514ba966a1fac9/formats/luatex/lpdf-ini-macro.lua:892: pdf.obj(): no "string" 
or "file" given

1 \starttext
2 >>  test \immediate\pdfextension obj stream file {duck.mp3}
3 \stoptext

mtx-context | fatal error: return code: 256


fixed in next upload

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


Re: [NTG-context] force index entries without page number

2020-09-03 Thread mf

Useful references I consulted to find a solution:

https://www.mail-archive.com/ntg-context@ntg.nl/msg88118.html
https://wiki.contextgarden.net/Registers#Processors

Massi
___
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] force index entries without page number

2020-09-03 Thread mf

This should be exactly what you asked for:

\defineprocessor[passim][right=\quad{\it passim}]
\starttext
\samplefile{ward}\index{Ward, Peter}

\samplefile{sapolsky}\index{Sapolsky, Robert}

\seeindex{passim->Ramm, Hraban}{}
\seeindex{Hraban}{Ramm, Hraban}

\page

\placeindex[check=yes]

\page

\placeindex[check=no]

\stoptext

Massi
___
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] force index entries without page number

2020-09-03 Thread mf

Il 03/09/20 10:17, Henning Hraban Ramm ha scritto:

Hi,

I’d like to have an (person) index entry like

Ramm, Hraban   passim

i.e. without actual page number.
How can I force that?

I also need to be able to refer to it like
\seeindex{Hraban}{Ramm, Hraban)




\starttext
\samplefile{ward}\index{Ward, Peter}

\samplefile{sapolsky}\index{Sapolsky, Robert}

\seeindex{Ramm, Hraban}{}
\seeindex{Hraban}{Ramm, Hraban}

\page

\placeindex[check=yes]

\page

\placeindex[check=no]

\stoptext


Massi
___
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] \setupuserpagenumber not working as expected

2020-09-03 Thread Jan Willem Flamma
Dear Julian, I use something similar using a main product file, an environment file that contain the styling and several components that build up the frontmatter, the manual and the appendices.  Below my setup where I start the roman numbering on the table of contents page (page 5 or v in roman) Once the bodymatter starts the pagenumber is set  to the arabic 1 (see below in the main product file) You should be able to copy and adapt to your needs. Kind regards,Jan Willem Flamma   The main product file==\environment env-WA \startproduct currentproduct % Document definitions\define\MyManual{Course Manual}\define\MyTitle{Title}\define\MySubtitleOne{Subtitle 1}\define\MySubtitleTwo{Subtitle 2}\define\MyRevnumber{Revision number} % Load frontmatter files\startfrontmatter    \component fm-frontpage    \component fm-titlepage    \component fm-tableofcontents\stopfrontmatter % Load bodymatter file\startbodymatter\setupbackgrounds    [leftpage]    [setups=pagenumber:left]\setupbackgrounds    [rightpage]    [setups=pagenumber:right]\setuppagenumber[number=1]    \component co-01    \component co-02\stopbodymatter % Load backmatter files\startbackmatter\setupbackgrounds   [leftpage]   [setups=pagenumber:left]\setupbackgrounds   [rightpage]   [setups=pagenumber:right]\startappendices   \component co-ap-01   \component co-ap-02\stopappendices\stopbackmatter % Load external PDF documents\setuppagenumber[state=stop]\copypages[External PDF/app1.pdf][n=4] \stopproduct=   The env-WA.tex file (below is about pagenumbering only)=% Start chapter on right (odd) page, pagenumber = bottom right\setuppagenumbering    [alternative=doublesided,  location=right]    % Pagenumbering style\definestructureconversionset    [frontpart:pagenumber][][romannumerals]\definestructureconversionset    [bodypart:pagenumber] [][numbers]\definestructureconversionset    [appendix:pagenumber] [][numbers]=   The fm-frontpage.tex file\startcomponent currentcomponent \product product % Front page layout\startstandardmakeup % Place logo centered on page \framed[height=5cm,width=broad,frame=off] {\externalfigure[frontpage-logo.png][width=12cm]} % Place course titles\blank[6*big]\color[Modu_Blue]{\midaligned{\bfc \MyManual}} \blank[4*big]\color[Modu_Blue]{\midaligned{\tfc \MyTitle}} \blank[2*big]\color[Modu_Blue]{\midaligned{\tfc \MySubtitleOne}} \blank[2*big]\color[Modu_Blue]{\midaligned{\tfc \MySubtitleTwo}} \vfill \stopstandardmakeup \stopcomponent   The fm-titlepage.tex file\startcomponent currentcomponent \product product \startstandardmakeup \color[Modu_Blue]{\midaligned{\tfb \MyManual}}    \blank[2*big]    \color[Modu_Blue]{\midaligned{\tfb \MyTitle}}    \blank[2*big]    \color[Modu_Blue]{\midaligned{\tfb \MySubtitleOne}}    \blank[2*big]    \color[Modu_Blue]{\midaligned{\tfb \MySubtitleTwo}} \blank[10*big] \color[Modu_Blue]{\midaligned{\tfb \MyRevnumber}}    \blank    \midaligned{\color[Modu_Blue]{\tfb \currentdate[month,year]}} \blank[10*big] \midaligned{\color[Modu_Blue]{\tfb Written by:}}    \blank    \midaligned{\color[Modu_Blue]{\tfb Company name}}    \blank    \midaligned{\color[Modu_Blue]{\tfb City, Country}} \vfill \stopstandardmakeup \stopcomponent The fm-tableofcontents.tex file\startcomponent currentcomponent \product product \setupbackgrounds   [leftpage]   [setups=pagenumber:left]\setupbackgrounds   [rightpage]   [setups=pagenumber:right] % This is where I want the roman numbering to start\setuppagenumber[number=5] \starttitle[title=Table of Contents]\placecontent\stoptitle \stopcomponent  From: jbfSent: Thursday, 3 September 2020 06:05To: mailing list for ConTeXt usersSubject: [NTG-context] \setupuserpagenumber not working as expected Am seeking to have frontmatter pages in roman numerals and from Chapter 1 onwards in arabic numerals. I have achieved something of the kind, but page 1 (arabic) is appearing on the last page of the frontmatter and not the first page of Chapter 1. I do not know why this is happening. My setup for page numbering is as follows (something I found somewhere - wiki? elsewhere? Not sure. I didn't make it up!):\definestructureconversionset[frontpart:pagenumber][][romannumerals]\definestructureconversionset[bodypart:pagenumber] [][numbers]\startsectionblockenvironment[frontpart]\setupuserpagenumber[numberconversion=romannumerals]\setuplist[chapter][pageconversionset=pagenumber]\setuppagenumber[number=1]\stopsectionblockenvironment\startsectionblockenvironment[bodypart]\setuppagenumber[number=1]\stopsectionblockenvironmentThe frontmatter is some 16 pages worth (ends on a verso page but that verso carries the arabic number 1 instead of page xvi which it should be, since the final paragraph on that page ends with 

[NTG-context] force index entries without page number

2020-09-03 Thread Henning Hraban Ramm
Hi,

I’d like to have an (person) index entry like

Ramm, Hraban   passim

i.e. without actual page number.
How can I force that?

I also need to be able to refer to it like
\seeindex{Hraban}{Ramm, Hraban)


Hraban
___
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] footnotes missing in heads

2020-09-03 Thread Wolfgang Schuster
Pablo Rodriguez  schrieb am Do., 3. Sept. 2020, 07:51:

> Dear list,
>
> the following minimal sample:
>
> \starttext
> \chapter{Chapter\footnote{Note}}
> \section{Section\footnote{Note}}
> \stoptext
>
> Using current latest (from 2020.09.02 20:37) doesn’t display the footnotes.
>
> I’m afraid this may be a bug. Could anyone confirm this?
>

Does ist work when you add \automigrateinserts?

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


Re: [NTG-context] footnotes missing in heads

2020-09-03 Thread Jan U. Hasecke
Am 03.09.20 um 07:50 schrieb Pablo Rodriguez:
> Dear list,
> 
> the following minimal sample:
> 
> \starttext
> \chapter{Chapter\footnote{Note}}
> \section{Section\footnote{Note}}
> \stoptext
> 
> Using current latest (from 2020.09.02 20:37) doesn’t display the footnotes.
> 
> I’m afraid this may be a bug. Could anyone confirm this?
> 

No notes with current version: 2020.08.31 22:16

juh

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