[NTG-context] using lua fonts

2018-05-03 Thread Ulrike Fischer
I'm trying to run one of the examples of fonts-mkiv.pdf

I copied the code from 4.5 Lua fonts to a file
"fonts-demo-rule.lua". This lua file is in the same directory as my
test file.

Then I tried

\definefont
[MyRuleFont]
[file:fonts-demo-rule.lua*default sa 1]

\starttext

{\MyRuleFont So when we use it we get text }

\stoptext

but I get in the log

fonts > defining > forced type 'lua' of 'fonts-demo-rule' not found
fonts > defining > font with asked name 'fonts-demo-rule' is not
found using lookup 'file'
fonts > defining > unknown font 'fonts-demo-rule', loading aborted
fonts > defining > unable to define 'fonts-demo-rule.lua' as
'MyRuleFont--0'

The file itself is found (I can see its path later on). What is
going on here?

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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] ToC as itemize

2018-05-03 Thread Henning Hraban Ramm
Hi again,
Alan Bowen invented this interesting setup where the table of contents is to be 
included in an itemize.
E.g.

   Foreword   I
1. Smth unrelated .. II
2. Author: Title ...  1
3. Author: Title ...  5

etc.
Only 2. and 3. come from a "list" of chapters, other entries are added manually.


The attached not-really-minimal working example also handles the author setup – 
IRL we use a lot of user variables for metadata that needs different 
representation in ToC and titling.

This is the core code:

\define[1]\ChapterTocEntry{%
  \startitem
\structurelistuservariable{author}:
#1\leaderfill\currentlistentrypagenumber
  \stopitem
}

\definelist[chapter][%
alternative=b,
interaction=all,
criterium=all,
textcommand=\ChapterTocEntry,
pagecommand=\gobbleoneargument,
]

\startContentsList
%\sym{}Preface\leaderfill\at{Preface} % Preface unnumbered

\startitem Test entry\leaderfill 123 \stopitem

\placelist[chapter][criterium=all]

\stopContentsList


The actual problem:
The chapter list entries don’t adhere to the formatting of the itemize.
I guess there’s some expansion problem, due to the \startitem inside if the 
textcommand?


Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD



toctest.tex
Description: Binary data
___
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] "unusual usage" (was: ConTeXt Meeting 2018 – registration)

2018-05-03 Thread Henning Hraban Ramm
Am 2018-05-03 um 15:08 schrieb Jano Kula :

> The main theme for this meeting is Unusual usage of ConTeXt.

What’s *your* unusual use?

I create books, songbooklets, forms, a magazine, my invoices and business 
letters with ConTeXt and don’t think that’s unusual...

But all the time I run into things that I can’t accomplish on my own, so maybe 
my use of ConTeXt *is* unusual?

Recently I got solutions for margin notes as I need for "my" German 
literature/linguistics magazine "Kritische Ausgabe". (There are some edge cases 
where the mechanism doesn’t work, but I found workarounds.)

At the last meeting some of you helped me a lot with image placement (bleeding 
floats etc.), so I have now a good foundation for the books I publish, e.g. our 
series of architectural guide booklets. But there are still some options open 
to desire (e.g. I never got a reliable placement on the text baseline).

While I like to show off my works, I don’t think my code is good enough for a 
presentation...

BTW I would love to publish a book about (the making of) historical-critical 
editions, as far as I found there’s (in German) only one very old one. I 
enjoyed some interesting presentations about such projects with LaTeX and 
ConTeXt, but lack the expertise myself. In case you would be interested – our 
publishing house Dreiviertelhaus would be interested...

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
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
___

[NTG-context] ConTeXt Meeting 2018 – registration

2018-05-03 Thread Jano Kula
Dear list members,

registration for 12th ConTeXt Meeting 2018
, September 2–8 is now open. Early
bird payments are available till the end of June. New participants are
always welcome: for those who never visited the meeting and students
discounts are available.

The main theme for this meeting is *Unusual usage of ConTeXt*. Check
preliminary
abstracts , fees
 and don't forget to
register  before July
1, 2018.

Join the the friendly informal meeting of people who use and misuse ConTeXt
with passion!

Jano
on behalf of the ConTeXt Group board
___
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] keeping together \subject and a table without a page break

2018-05-03 Thread Robert Zydenbos
YES! Thank you!

> On 3. May 2018, at 13:07, Hans Hagen  wrote:
> 
> On 5/3/2018 12:22 PM, Robert Zydenbos wrote:
>> I am looking for a way to keep a subject header and a following table 
>> together on one page, without a page break. Something like:
>> […]
> you can put \testpage[4] before the \subsubject (number of lines you want)


___
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] keeping together \subject and a table without a page break

2018-05-03 Thread Hans Hagen

On 5/3/2018 12:22 PM, Robert Zydenbos wrote:

I am looking for a way to keep a subject header and a following table together 
on one page, without a page break. Something like:

---snippet begins---

\subsubject{Personal suffixes for the present tense}

\starttabulate 
[|w(.1\textwidth)|p(.2\textwidth)|pI(.2\textwidth)|p(.2\textwidth)|pI(.2\textwidth)|]
[…here comes the table…]
\stoptabulate

---snippet ends---

but everything together on one page. (The example uses \starttabulate, but I 
would also need this for \startTABLE.)

On the wiki I found a command \blank[samepage], but this does not seem to work 
(at least not in MkII), because the parameter 'samepage' is not recognized.

I would be very grateful for suggestions.

you can put \testpage[4] before the \subsubject (number of lines you want)


-
  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] keeping together \subject and a table without a page break

2018-05-03 Thread Robert Zydenbos
I am looking for a way to keep a subject header and a following table together 
on one page, without a page break. Something like:

---snippet begins---

\subsubject{Personal suffixes for the present tense}

\starttabulate 
[|w(.1\textwidth)|p(.2\textwidth)|pI(.2\textwidth)|p(.2\textwidth)|pI(.2\textwidth)|]
[…here comes the table…]
\stoptabulate

---snippet ends---

but everything together on one page. (The example uses \starttabulate, but I 
would also need this for \startTABLE.)

On the wiki I found a command \blank[samepage], but this does not seem to work 
(at least not in MkII), because the parameter 'samepage' is not recognized.

I would be very grateful for suggestions.

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