Re: [NTG-context] A book with sections

2021-10-23 Thread Wolfgang Schuster via ntg-context

Gerben Wierda schrieb am 23.10.2021 um 15:51:

On 23 Oct 2021, at 15:34, Wolfgang Schuster  
wrote:

 Gerben Wierda via ntg-context schrieb am 23.10.2021 um 15:20:

I’d like a book with chapters to have sections/parts, e.g. something that 
groups a few \chapter elements together. Is there support for this in LMTX? 
I.e. in such a way that it also shows up in the table of contents?

You can use \part.

Yes. Thanks. But that leads to additional questions:
- how do I get the parts to show up in the table of contents? Because I tried 
\part but it did not show up

I can't reproduce the problem, do you have a example.

- how do I let chapters number on (not restart in each part, and not a x.y 
number but simply ‘2. Chapter’

Use \defineresetset as shown below.

- what is a good way to create actual RHS ‘title’ pages for each chapter?

Use a doublesided layout.

- how do I get parts to number with Roman numerals?

See below.


% Change the number conversion for section titles

\defineconversionset [section] [Romannumerals] [numbers]

\setuphead
  [sectionconversionset=section]

% Show only the chapter value for chapter

\setuphead
  [chapter]
  [sectionsegments=chapter]

% Don't reset the counter for parts and chapters

\defineresetset [default] [0,0] [1]

\starttext

\completecontent

\dorecurse{4}
  {\expanded{\part{Part \recurselevel}}
   \dorecurse{5}{\expanded{\chapter{Chapter \recurselevel

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


Re: [NTG-context] A book with sections

2021-10-23 Thread Wolfgang Schuster via ntg-context

Gerben Wierda via ntg-context schrieb am 23.10.2021 um 15:20:
I’d like a book with chapters to have sections/parts, e.g. something 
that groups a few \chapter elements together. Is there support for 
this in LMTX? I.e. in such a way that it also shows up in the table of 
contents?


You can use \part.

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] How to enable the use of the blackboard font in modern ConTeXt

2021-10-23 Thread Wolfgang Schuster via ntg-context

Gerben Wierda via ntg-context schrieb am 23.10.2021 um 15:24:
On 23 Oct 2021, at 15:15, Pablo Rodriguez via ntg-context 
mailto:ntg-context@ntg.nl>> wrote:


On 10/23/21 3:00 PM, Gerben Wierda via ntg-context wrote:

By the way, neither does \blackboard{Q} work. But \rationals works in
the case of the letter Q.


Hi Gerben,

it only seems to work inside math:

 \starttext
 \dorecurse{26}{$\blackboard\characters{\recurselevel}
 \Characters{\recurselevel}$}
 \stoptext

I hope it helps,


Yes, the new \blackboard command works, so $\blackboard{Q}$ works. Thanks.


The \blackboard command is a switch like \it, to keep it local to a 
single character put the left brace before the command.


    $Q {\blackboard Q} Q$

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] Reading ConTeXt metadata values into Lua

2021-10-16 Thread Wolfgang Schuster via ntg-context

Ramkumar KB via ntg-context schrieb am 16.10.2021 um 06:00:

Hello All,

I was trying to read the value of '\totalnumberofpages' into lua to do 
something with it. As an example, see below.


Now, as I understand it, my example would not work as TeX gets the 
first go at this and therefore the variable 'pages' is the string 
'\totalnumberofpages' and not the actual value itself. And Lua cannot 
process this "calculation".


I tried to go thru the manual - *cld-mkiv.pdf *- in the distro but 
could not catch on how to read a metadata value (not print). I am sure 
that I am missing a small trick somewhere (or is it something more 
involved?).


\startluacode
function myFancyCalculations(pages)
  -- some fancy stuff but as an example
local myCal = tonumber(pages) + 1
return myCal
\stopluacode
\starttext

\blah

\ctxlua{context(myFancyCalculations("\\totalnumberofpages"))}

\stoptext


Everything gets easier when you use the Lua functions to access the 
counter values but be aware the values can be wrong when you're at a 
page break.


\startbuffer[pagenumber]
\startluacode
context.starttabulate()
    context.NC()
    context("Current page")
    context.EQ()
    context(structures.counters.get("realpage",1,"number"))
    context.NC()
    context.NR()
    context.NC()
    context("Last page")
    context.EQ()
    context(structures.counters.get("realpage",1,"last"))
    context.NC()
    context.NR()
context.stoptabulate()
\stopluacode
\stopbuffer

\starttext

\dorecurse
    {\randomnumber{5}{10}}
    {\getbuffer[pagenumber]
 \page}

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


Re: [NTG-context] Memo module not working with lmtx

2021-10-16 Thread Wolfgang Schuster via ntg-context

Jason Ross via ntg-context schrieb am 16.10.2021 um 06:10:
I made a mistake with the MWE for the mailing list, however, corrected 
MWE gives same error:


\usemodule[memo]

\setupmemo[
name={Jason Ross},
opening={People of Earth},
closing={Thanks for all the Fish,},
signature={The Dolphins}]
\starttext
\startmemo
  We are writing to let you know that we are all leaving
\stopmemo
\stoptext


There is a new version of the module online which fixes the bug.

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] setuplocalinterlinespace not affecting the whole group?

2021-10-13 Thread Wolfgang Schuster via ntg-context

Denis Maier via ntg-context schrieb am 13.10.2021 um 17:52:


Hi,

I have this MWE:

%

\definebodyfontenvironment

    [9bp]

    [

    normal=9bp,

    b=24bp,

    ]

\setupbodyfont[9bp]

\startTEXpage

{

\setuplocalinterlinespace[line=25.5bp]

%\setupinterlinespace[line=25.5bp]

\tfb

One\crlf

Two

Three

}

\stopTEXpage

%

For some reason \setuplocalinterlinespace[line=25.5bp] seems to affect 
only the first paragraph in the group, but not the distance between 
the two paragraphs. Using \setupinterlinespace instead of 
\setuplocalinterlinespace gives the same result.


(Adding a \crlf between Two and Three gives the correct visual 
appearance. But that’s an ugly hack of course...)


Any hints?



Add \par after Three or remove the curly braces.

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] combination with lua

2021-10-12 Thread Wolfgang Schuster via ntg-context

Hans Hagen via ntg-context schrieb am 12.10.2021 um 14:12:

On 10/11/2021 1:38 PM, Adam Reviczky via ntg-context wrote:

Hi,

I am trying to use a combination figure with luacode (both with 
latest MKIV and LMTX).

However, the figures do not line up in the grid of the combination.

I get the correct result with examples 1 and 2 below, but example 3 
using lua functions for combination and externalfigure is what I 
wanted to use in the first place.


MWE:

\starttext

\startluacode

-- Combination 1
context.startplacefigure({title = "Figure"})
context.startcombination({nx = "2", ny = "2"},

"\\externalfigure[cow][width=50mm]","Caption 1",
"\\externalfigure[cow][width=50mm]","Caption 2",
"\\externalfigure[cow][width=50mm]","Caption 3",
"\\externalfigure[cow][width=50mm]","Caption 4"
)

context.stopcombination()
context.stopplacefigure()

-- Combination 2

context.startplacefigure({title = "Figure"})
context.startcombination({nx = "2", ny = "2"},

"Picture 1","Caption 1",
"Picture 2","Caption 2",
"Picture 3","Caption 3",
"Picture 4","Caption 4"
)

context.stopcombination()
context.stopplacefigure()

-- Combination 3

context.startplacefigure({title = "Figure"})
context.startcombination({nx = "2", ny = "2"},

context.externalfigure({"cow"},{width = "50mm"}),"Caption 1",
context.externalfigure({"cow"},{width = "50mm"}),"Caption 2",
context.externalfigure({"cow"},{width = "50mm"}),"Caption 3",
context.externalfigure({"cow"},{width = "50mm"}),"Caption 4"
)

context.stopcombination()
context.stopplacefigure()

\stopluacode
\stoptext

Any hints on what I am doing wrong in example 3?
as in any prodedural language a function as argument gets immediately 
executed so you need to delay:


context.startplacefigure({title = "Figure"})
    context.startcombination({nx = "2", ny = "2"},
    context.delayed.externalfigure({"cow"},{width = "50mm"}), 
"Caption 1",
    context.delayed.externalfigure({"cow"},{width = "50mm"}), 
"Caption 2",
    context.delayed.externalfigure({"cow"},{width = "50mm"}), 
"Caption 3",
    context.delayed.externalfigure({"cow"},{width = "50mm"}), 
"Caption 4"

    )
    context.stopcombination()
context.stopplacefigure()

(this is why encoding complex documents completely in a scrtipt 
language is non trivial and why for instance these template systems 
are there because these accumulate)


Another solution is to use the content and caption blocks for each 
combination entry.


\starttext

\startluacode

context.startplacefigure({title = "Figure"})
    context.startcombination({nx = 1, ny = 1})
    context.startcontent()
    context.externalfigure({"cow"},{width = "50mm"})
    context.stopcontent()
    context.startcaption()
    context("Caption 1")
    context.stopcaption()
    context.stopcombination()
context.stopplacefigure()

\stopluacode

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


Re: [NTG-context] ConTeXt's equivalent of raisebox

2021-10-10 Thread Wolfgang Schuster via ntg-context

noib3 via ntg-context schrieb am 11.10.2021 um 00:16:
How can I make vertical microadjustments to individual characters in 
ConTeXt?


In LaTeX I would do it with

```
\documentclass{article}
\begin{document}
\raisebox{-1pt}{f}oo
\end{document}
```

however the following doesn't work

```
\starttext
\raisebox{-1pt}{f}oo
\stoptext
```


The \raisebox command expects a box for the second argument. A better 
solution is to use the \offset command but in both cases you need 
\dontleavehmode at the start of a paragraph.


 begin example
\starttext

\dontleavehmode\raisebox{1pt}\hbox{f}oo

\dontleavehmode\offset[y=-1pt]{f}oo

\stoptext
 end example

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] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-10 Thread Wolfgang Schuster via ntg-context

Joey McCollum via ntg-context schrieb am 10.10.2021 um 05:42:
The test using \removepunctuation that you provided does what it 
should be doing (it produces 6 instances of "test-test" with the 
intervening punctuation mark in each case removed), but it doesn't do 
what I'm trying to do in the MWE above. I'm trying to take certain 
punctuation marks that follow the \autopuncttest macro and place them 
before it instead. Looking at the typo-chr .lua and .mkiv files, I see 
that there are \pushpunctuation and \poppunctuationmethods in addition 
to the \removepunctuation method. These might be useful for this 
purpose, but in any case, I still have to check if the trailing 
character is one of the characters in a specified set/string, and this 
is where the error is arising.


Add \protected (or \unexpanded) to your command definition.

\startbtxrenderingdefinitions[myspec]
\protected\def\autopuncttest#1#2%
  {\removeunwantedspaces%
   \doifinstring{#2}{,.!?;:}{#2}%
   \footnote{#1}%
   \doifnotinstring{#2}{,.!?;:}{#2}}
\stopbtxrenderingdefinitions

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] Adaptation of ConTeXt to Esperanto

2021-10-09 Thread Wolfgang Schuster via ntg-context

Alain Delmotte schrieb am 09.10.2021 um 11:23:

Hi!

Le 9/10/2021 à 10:58, Wolfgang Schuster a écrit :

Alain Delmotte via ntg-context schrieb am 08.10.2021 um 22:07:

Hi,

Some time ago I did prepare the files to support Esperanto in 
Context (hyphenation and translation of terms).


I thought it was working, testing with the command \date, which 
gives the correct format.


But today I remarked that the legends for Figure and Table (and 
perhaps other) are in English.


The file lang-txt.lua is there and contains the translations for 
Esperanto.


The language definitions for esperanto in lang-def.mkxl are in the 
wrong order, the first definition has to be "eo".



\installlanguage
- [\s!esperanto]
+ [\s!eo]
  [\c!spacing=\v!packed,
   \c!leftsentence=\endash,
   \c!rightsentence=\endash,
   \c!leftsubsentence=\endash,
   \c!rightsubsentence=\endash,
   \c!leftquote=\upperleftsinglesixquote, %U+2018,
   \c!rightquote=\upperrightsingleninequote,  %U+2019,
   \c!leftquotation=\upperleftdoublesixquote, %U+201C,
   \c!rightquotation=\upperrightdoubleninequote,  %U+201D,
   \c!date={\v!day,-a\space de\space,\v!month,\space \v!year},
   \s!patterns=eo,
   \s!lefthyphenmin=2,
   \s!righthyphenmin=2]

-\installlanguage[\s!eo][\c!default=\s!esperanto]
+\installlanguage[\s!esperanto][\c!default=\s!eo]


Wolfgang


Thanks Wolfgang, I did find the file and the wrong order.

Now, what should I do? I modified it outside context-lmtx in a copy.

Replace the original and???


You have to make the changes in the original file and afterwards 
generate the format file with


    context --make

If everything works as expected report back and Hans can apply the fix 
on his machine to ensure they are included in the next release because 
when you make a update your changes are overwritten.


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] Adaptation of ConTeXt to Esperanto

2021-10-09 Thread Wolfgang Schuster via ntg-context

Alain Delmotte via ntg-context schrieb am 08.10.2021 um 22:07:

Hi,

Some time ago I did prepare the files to support Esperanto in Context 
(hyphenation and translation of terms).


I thought it was working, testing with the command \date, which gives 
the correct format.


But today I remarked that the legends for Figure and Table (and perhaps 
other) are in English.


The file lang-txt.lua is there and contains the translations for Esperanto.


The language definitions for esperanto in lang-def.mkxl are in the wrong 
order, the first definition has to be "eo".



\installlanguage
- [\s!esperanto]
+ [\s!eo]
  [\c!spacing=\v!packed,
   \c!leftsentence=\endash,
   \c!rightsentence=\endash,
   \c!leftsubsentence=\endash,
   \c!rightsubsentence=\endash,
   \c!leftquote=\upperleftsinglesixquote, %U+2018,
   \c!rightquote=\upperrightsingleninequote,  %U+2019,
   \c!leftquotation=\upperleftdoublesixquote, %U+201C,
   \c!rightquotation=\upperrightdoubleninequote,  %U+201D,
   \c!date={\v!day,-a\space de\space,\v!month,\space \v!year},
   \s!patterns=eo,
   \s!lefthyphenmin=2,
   \s!righthyphenmin=2]

-\installlanguage[\s!eo][\c!default=\s!esperanto]
+\installlanguage[\s!esperanto][\c!default=\s!eo]


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] ConTeXt's equivalent of standalone class

2021-10-02 Thread Wolfgang Schuster via ntg-context

noib3 via ntg-context schrieb am 02.10.2021 um 17:50:
Coming from LaTeX, when I had some TikZ pictures I wanted to add in my 
document I would usually keep them on a separate file, I would compile 
them with the standalone class so that the resulting PDF's size would 
be limited to exactly the dimensions of the figure. I would then 
import the compiled PDF in my main document. All this to not slow down 
compilation times.


What's the ConTeXt equivalent of this workflow? How can I keep the PDF 
dimensions limited to the figure?


\usemodule[tikz]

% uncomment \starttext and \stoptext when you use
% multiple TEXpage environments in your document

%\starttext

\startTEXpage
\starttikzpicture
...
\stoptikzpicture
\stopTEXpage

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


Re: [NTG-context] Question on style-italic vs style=italicface

2021-10-02 Thread Wolfgang Schuster via ntg-context

Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:49:


Wolfgang (off-list),

It is simply wrong to say that \italicface as defined gives only \it 
or \bi as a result. Look at the definition. If the current 
fontalternative is it \it it will give a \tf result. It is sensitive 
to the current state in a similar way that \em and \emph are, but it 
will always give an italic or roman result.




If we leave the comparisons between \em and \italicface aside and talk 
only about the results from \italicface we have a common ground.


You're right the results from \italicface aren't predictable and a fix 
is needed but the same applies also to \boldface, \slantedface and 
\typeface.


Attached is the output from a modified version of the styling command 
(the \sc column is the fallback style). \swapface is unchanged and I'm 
not sure about its output because it uses the \em code for italic and 
slanted which means \setupbodyfontenvironment[default][em=blue] affects 
also the \swapface results.


Wolfgang



emphasis.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] Question on style-italic vs style=italicface

2021-09-26 Thread Wolfgang Schuster via ntg-context

Rik Kabel via ntg-context schrieb am 27.09.2021 um 00:20:

On 9/26/2021 16:29, Wolfgang Schuster via ntg-context wrote:

Rik Kabel via ntg-context schrieb am 26.09.2021 um 22:13:


Hello list mavens,

What are the circumstances under which style=italicface should be 
used instead of style=italic. I note a difference when I define 
highlighting. I expected to see no difference in the line before and 
line after the hairline the example below, but see that italicface 
adapts to nesting, while italic does not:


Are there other places where this makes a difference?

\setupbodyfontenvironment
        [default]
    [em=italicface] %same with italic for this example
\definehighlight
    [emIt]
    [style=italic]
\definehighlight
    [emIf]
    [style=italicface]
\definehighlight
    [emEm]
    [style=\em]

\starttext

{\em abc {\em def} ghi}: \type{\em}

\emph{abc {\emph def} ghi}: \type{\emph}

\emEm{abc {\emEm def} ghi}: \type{\emEm \definehighlight[style=\em]}

\emIf{abc {\emIf def} ghi}: \type{\emIf
\definehighlight[style=italicface]}

\hairline

\emIt{abc {\emIt def} ghi}: \type{\emIt
\definehighlight[style=italic]}

\stoptext



The \em command has two special values which are allowed when you 
change the style with


    \setupbodyfontenvironment[default][em=...]

with the value "slanted" and "italic". When you choose one of them 
the result depends on the current weight (\tf or \bf) but with every 
other value you're just using whatever the style command/name provides.



When you pass "italicface" you're using a style which uses either \it 
or \bi dependant on the current weight. The result from the "italic" 
value doesn't depend on the behavior or the normal italic style (\it) 
which is the reason why you get different result when you use \em 
compared with \it.



Example:

\starttext

\tex{it}: normal {\it italic} {\bf bold {\it italic}}

\tex{italicface}: normal {\italicface italic} {\bf bold {\italicface 
italic}}


\tex{em}: normal {\em italic} {\bf bold {\em italic}}

\stoptext


Wolfgang 



Wolfgang,

I understand that mechanism, but I am asking a different question, I 
think.


When we specify style=\em or style=italic (and most examples I see use 
the later) in a setup of some sort, I think most folks expect similar 
behavior, but clearly it is not because italic does not track changes 
in emphasis. However, style=italicface does seem to match the behavior 
of style=\em (mostly, see the bug report below).




The basic font commands are \tf, \it, \sl, \bf, \bs and \bi and when you 
want for example bold italic text you always have to use \bi even the 
current text is already bold because \it produces normal italic text.


\em is a special case because it affects also italic text:

\starttext

\startlines
\tf normal {\em emphasized}
\sl slanted {\em emphasized}
\it italic {\em emphasized}
\bf bold {\em emphasized}
\bs bold slanted {\em emphasized}
\bi bold italic {\em emphasized}
\stoplines

\stoptext

So, I am asking whether, in places where folks often use style=italic, 
it might be better to consider style=italicface.


Bug report: \meaning\italicface gives:

protected macro:\relax \ifx \fontalternative \s!tf \it \orelse
\ifx \fontalternative
\s!bf \bi \else \tf \fi

This leaves out the transition from bi to bf. That transition is done 
by \emph, but \emph may give slanted while \italicface is always italic.




The \italicface command uses either \it or \bi as result but it never 
result in upright text and the "italic" in the name tells you this, 
there are commands (e.g. \boldface) with similar results. To get a 
slanted style you have to use the \slantedface command.


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] Question on style-italic vs style=italicface

2021-09-26 Thread Wolfgang Schuster via ntg-context

Rik Kabel via ntg-context schrieb am 26.09.2021 um 22:13:


Hello list mavens,

What are the circumstances under which style=italicface should be used 
instead of style=italic. I note a difference when I define 
highlighting. I expected to see no difference in the line before and 
line after the hairline the example below, but see that italicface 
adapts to nesting, while italic does not:


Are there other places where this makes a difference?

\setupbodyfontenvironment
        [default]
    [em=italicface] %same with italic for this example
\definehighlight
    [emIt]
    [style=italic]
\definehighlight
    [emIf]
    [style=italicface]
\definehighlight
    [emEm]
    [style=\em]

\starttext

{\em abc {\em def} ghi}: \type{\em}

\emph{abc {\emph def} ghi}: \type{\emph}

\emEm{abc {\emEm def} ghi}: \type{\emEm \definehighlight[style=\em]}

\emIf{abc {\emIf def} ghi}: \type{\emIf
\definehighlight[style=italicface]}

\hairline

\emIt{abc {\emIt def} ghi}: \type{\emIt
\definehighlight[style=italic]}

\stoptext



The \em command has two special values which are allowed when you change 
the style with


    \setupbodyfontenvironment[default][em=...]

with the value "slanted" and "italic". When you choose one of them the 
result depends on the current weight (\tf or \bf) but with every other 
value you're just using whatever the style command/name provides.



When you pass "italicface" you're using a style which uses either \it or 
\bi dependant on the current weight. The result from the "italic" value 
doesn't depend on the behavior or the normal italic style (\it) which is 
the reason why you get different result when you use \em compared with \it.



Example:

\starttext

\tex{it}: normal {\it italic} {\bf bold {\it italic}}

\tex{italicface}: normal {\italicface italic} {\bf bold {\italicface 
italic}}


\tex{em}: normal {\em italic} {\bf bold {\em italic}}

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


Re: [NTG-context] Placing pagenumer with coordinates (layers)

2021-09-21 Thread Wolfgang Schuster via ntg-context

Huseyin Özoguz via ntg-context schrieb am 21.09.2021 um 12:24:

Hello dear context-enthusiasts,

I want to place the pagenumber on a double-sided project with 
coordinates. I tried the layer-mechanism:


\setuppagenumbering[location=]

\definelayer
   [pagenumber]
   [width=\paperwidth,
    height=\paperheight,
    location={left,top},
    x=120mm,y=220mm,
    doublesided=yes]

\startsetups layer
\setlayer[pagenumber][even]{\pagenumber}
\stopsetups

\setupbackgrounds[page][setups=layer,background={pagenumber}]

\starttext
~\page~\page~\page
\stoptext


And it works, but only for the left (even) page. On the right page I 
want to place the pagenumber on different coordinates. I tried to copy 
the layer and then change [even] to [odd] with different coordinates, 
but that did not work (no pagenumber printed). What do you suggest?



Use a doublesided layout.

\setuppagenumbering
  [alternative={singlesided,doublesided},
   location=none]

\definelayer
  [pagenumber]
  [width=\paperwidth,
   height=\paperheight,
   x=12cm,
   y=22cm,
   doublesided=yes]

\startsetups layer
\setlayer[pagenumber][even][preset=lefttop]{\pagenumber}
\setlayer[pagenumber][odd][preset=righttop]{\pagenumber}
\stopsetups

\setupbackgrounds[page][setups=layer,background=pagenumber]

\starttext
\dorecurse{10}{\page[dummy]}
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] tabulate with lp columns

2021-09-19 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 13:14:

Am 19.09.2021 um 13:01 schrieb Wolfgang Schuster via ntg-context 
:

Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 12:44:

There are some problems in the following MWEs.

First example looks the same with MkIV and LMTX, second uses \NS that is only 
in LMTX.

The first column is justified even if it’s defined as left aligned; this happens also with a simple 
"l" column. With "p" the width is ignored.

You're missing a \NC at the start of each row.

You’re right; in testing I got an empty column when I started with \NC (and 
wasn’t sure any more if something changed that I forgot), but I probably missed 
one line or something.

The problem with \NS remains:

\starttabulate[|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|lp(.2\textwidth)|]
\NC Default \NC Linux \NC MacOS \NC Windows \NC\NR
\HL
\NC Text processor \NS[3][l] LibreOffice or else \NC\NR
\NC Drawing\NS[2][lp(.4\textwidth)] Inkscape \NC Corel Draw \NC\NR
\NC Simple Editor  \NC Nano \NC TextEdit \NC Notepad \NC\NR
\stoptabulate


You have to pass the number of additional columns are argument.

\starttext

\starttabulate[|*{4}{lp|}]
\NC Default    \NC Linux \NC MacOS    \NC Windows    \NC\NR
\HL
\NC Text processor \NS[2][p] LibreOffice or else \NC\NR
\NC Drawing    \NS[1][p]Inkscape  \NC Corel Draw \NC\NR
\NC Simple Editor  \NC Nano  \NC TextEdit \NC Notepad    \NC\NR
\stoptabulate

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


Re: [NTG-context] tabulate with lp columns

2021-09-19 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 19.09.2021 um 12:44:

There are some problems in the following MWEs.

First example looks the same with MkIV and LMTX, second uses \NS that is only 
in LMTX.

The first column is justified even if it’s defined as left aligned; this happens also with a simple 
"l" column. With "p" the width is ignored.


You're missing a \NC at the start of each row.

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] Roman PDF labels

2021-09-14 Thread Wolfgang Schuster via ntg-context



Pablo Rodriguez via ntg-context schrieb am 14.09.2021 um 14:38:

On 9/14/21 1:58 PM, Sylvain Hubert via ntg-context wrote:

Dear List,

Do we have something like "\pagenumbering{roman}" in latex, which sets
the pdf labels (page numbers for pdf viewers, not the ones rendered in
the footer) to roman numbers?

Hi Sylvain,

copied from
https://wiki.contextgarden.net/Table_of_Contents#Page_numbering_in_ToC:

   \definestructureconversionset[frontpart:pagenumber][][romannumerals]
   \definestructureconversionset[bodypart:pagenumber] [][numbers]

   \setuplist[chapter][pageconversionset=pagenumber]


There is no need to set the number conversion for list.


   \startsectionblockenvironment[frontpart]
   \setupuserpagenumber[numberconversion=romannumerals]
   \setuppagenumber[number=1]
   \stopsectionblockenvironment


No need for these settings because you already changed the number conversion
for the frontmatter and the counter starts at 1 by default.

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] Setting up the double pages of part beginnings

2021-09-13 Thread Wolfgang Schuster via ntg-context

Bruce Horrocks via ntg-context schrieb am 13.09.2021 um 22:18:

In the absence of any other replies I think...

(a) your example is a good one. The only improvement would be to turn it into a 
2 across, 3 or 4 down set of mini pages imposed onto a larger one so that it 
can be rendered on the Wiki page without taking too much space. (I don't know 
how to do that - my experiments didn't go well!)

(b) the Titles page seems to be the right place for it, but that page is 
already quite long. Maybe your example could be put into its own page with a 
link from the Titles page examples section?


In the past the titles page was spread over many smaller pages with 
AFAIR a separate page for each layout.


Going to back to this doesn't seem to be the best idea but creating a 
new page for all examples can be useful.


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] Headline with numbers in margin doubleside layout

2021-09-13 Thread Wolfgang Schuster via ntg-context

juh via ntg-context schrieb am 13.09.2021 um 13:07:

Hi all,

I have a doubleside layout with a big outer margin.

When I set alternative=margin in setuphead the chapter numbers appear in
the left margin which is the outer margin on left pages, but the inner
margin on right pages.

While this looks good on left pages, there is much free space on right
pages.

I would like to use this space for headlines to balance the impression.

Is it possible to assign headlines to the textarea+margin somehow only
on right pages so that headlines would run into the outermargin o right
pages??


Like this?

\setuphead
  [chapter]
  [page=yes,
   alternative=inmargin,
   location=outer,
   align=outer]

\setuppagenumbering
  [alternative=doublesided]

\showframe

\starttext
\dorecurse{10}{\expanded{\chapter{Chapter 
\convertnumber{word}{\recurselevel

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


Re: [NTG-context] Image cropped

2021-09-12 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 12.09.2021 um 12:10:

Hi Wolfgang,
That's what I understood but the problem is that if I reduce the 
margin, the logo is too small in my opinion : what would you do ?


Place the logo with a layer or shift is inwards.

\setuplayout
  [width=middle,
   height=middle]

\setupfootertexts
  [margin]
  []
  [{\offset[x=-1cm,y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]
  []
  [{\offset[x=1cm,y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]

%\showframe

\starttext
\dorecurse{8}{\samplefile{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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt inserts additional dots for Iosevka font

2021-09-12 Thread Wolfgang Schuster via ntg-context

Marcel Fabian Krüger via ntg-context schrieb am 12.09.2021 um 01:12:

Hi,

On Sun, Sep 12, 2021 at 12:01:08AM +0200, Hans Hagen wrote:

  \definefontfeature
[default:test]
[default]
[cv36=2,cv26=6]

What is the number supposed to indicate ? It is not an alternate, right?

Actually it is an alternate, but only partially.


There is a table on the github page with the results from all alternatives.

Look at section "Character Variats" on https://github.com/be5invis/Iosevka


  \definefont
[SomeFont]
[name:iosevka*default:test]


@Marcel: I suggest to load ttc fonts with the file option.

\starttext
\definedfont[file:iosevka.ttc(Iosevka)*none]Iosevka
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Image cropped

2021-09-11 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 11.09.2021 um 17:52:

Hi Wolfgang,
The red frame is the print area ?


The *green* frame are the margins of the A4 paper which is positioned in 
the middle of the A3 paper.


The larger paper allows you to the see the part of the margins which are 
outside of the printable area.


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] Image cropped

2021-09-11 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 11.09.2021 um 16:32:

Hello,
I like to put a logo on my statements but I noticed that the image is 
cropped on the edge.

I tried to change the printer's print settings but was unsuccessful.


Add these settings to your example and you see the problem.

\setuppapersize[A4][A3]

\setuplayout[location=middle]


\setuplayout[width=middle,height=middle]

\setupfootertexts
   [margin]
   []
 [{\offset[y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]
   []
 [{\offset[y=\strutdp]{\externalfigure[logo.pdf][factor=max]}}]

\showframe

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


Re: [NTG-context] Setting up the double pages of part beginnings

2021-09-11 Thread Wolfgang Schuster via ntg-context

Christian Dekant via ntg-context schrieb am 10.09.2021 um 19:25:

Dear List,

I am trying to set up double pages at the beginning of a new part in 
such a way that:
- on an odd/right-hand page there will be number and the title typeset 
in some fashion, and
- on the even/left-hand page there should be a full (printpaper)size 
image.


https://www.mail-archive.com/ntg-context@ntg.nl/msg94581.html

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] Equation alignment

2021-09-07 Thread Wolfgang Schuster via ntg-context

Sylvain Hubert via ntg-context schrieb am 07.09.2021 um 14:29:

Dear List,

The following example of equation alignment copied from An Excursion
is not reproducible under my context 2021.03.05 shipped with texlive
2021:

\starttext
\startformula
\eqalign{
ax^2+bx+c &= 0 \cr
x &= \frac{-b \pm \sqrt{b^2-4ac}}{2a} \cr
}
\stopformula
\stoptext

Both ampersands are rendered literally.

Does anyone know how to properly typeset aligned equations?


\starttext

\startformula
\startmathalignment%[align={right,left}]
\NC ax^2+bx+c \NC = 0    \NR
\NC x \NC = \frac{-b \pm \sqrt{b^2-4ac}}{2a} \NR
\stopmathalignment
\stopformula

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


Re: [NTG-context] features of fallback font

2021-09-07 Thread Wolfgang Schuster via ntg-context

Sylvain Hubert via ntg-context schrieb am 07.09.2021 um 13:32:

Dear List,

I'm using the chinese simsun font that has no builtin SerifBold.

I'm trying to define a fakebold feature for it, but the following code
does not work:

\definefontfeature[fakebold][effect={width=0.3, delta=0}]

\definefontfallback [sunfallback] [name:simsun] [cjkunifiedideographs]
\definefontfallback [sunbffallback] [name:simsun]
[cjkunifiedideographs][features=fakebold]

\definefontsynonym [Serif] [modern] [fallbacks=sunfallback]
\definefontsynonym [SerifBold] [modern] [fallbacks=sunbffallback]

\starttext
人 foo \bf 人 bar  % bar is bold, the second 人 is not
\stoptext

Does anyone know how to define features for fallback font?


\definefallbackfamily [sylvain] [serif] [SimSun]
  [range=cjkunifiedideographs,
   bf={style:regular,features:boldened}]

\definefontfamily [sylvain] [serif] [Latin Modern Roman]

\definefontfamily [sylvain] [math] [Latin Modern Math]

\setupbodyfont [sylvain]

\starttext
人 foo {\bf 人 bar} 人 foo
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Remove vertical space around typing

2021-09-07 Thread Wolfgang Schuster via ntg-context

Sylvain Hubert schrieb am 07.09.2021 um 13:38:

Thanks Wolfgang, this solves my problem.

But now I'm wondering why \starttyping[before=,after=] cannot do the same job?


Works here.

\starttext
Remove space below
\starttyping[before=,after=]
some
code
\stoptyping
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Remove vertical space around typing

2021-09-07 Thread Wolfgang Schuster via ntg-context

Sylvain Hubert via ntg-context schrieb am 07.09.2021 um 11:49:

Dear List,

How should we remove the vertical space above and below the following typing?

\starttext
Remove space below
\starttyping
some
code
\stoptyping
\stoptext


\setuptyping [before=,after=]

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] no looseness in LMTX?

2021-09-07 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 07.09.2021 um 11:49:

In my magazine and book projects, I sometimes fix pagebreaking by stretching 
paragraphs with \looseness=1

Unfortunately this works _in my project_ only with MkIV, i.e. \looseness has no 
effect with LMTX.

I tried different examples (e.g. the attached file) and can’t reproduce the 
problem, there MkIV and LMTX always behave the same.
So it must be something in my settings.

What could cause the difference?
I tried English and German and different settings of alignment and tolerance.
Might it be font dependent?


Do you enable protrusion and font expansion for your document font or is 
it just missing in your example?


Have you checked if the alignment changes when you use the 
"extremestretch" keyword for \setupalign?


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] line numbering restarts every page

2021-09-01 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 01.09.2021 um 18:01:

Hi again,

if a "typing" environment with line numbering goes over a page break, the line 
numbers start at 1 again on the new page.
It doesn’t happen with \start/stoplinenumbering.

MWE:

\setuptyping[
   numbering=file,
]


\setuptyping[numbering=line]

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] Test for displaying a header

2021-08-28 Thread Wolfgang Schuster via ntg-context

Fabrice,

there is difference between putting something on the first page 
regardless of the number of pages in your document or do something when 
your document contains only a single or more pages.



When you have a header or title which is always placed on the first page 
(but not on the following pages) you have to options.


    1. Check the current page when to header is placed which can be 
done with \doif{\pagenumber}{1}{...}


    2. Disable the header on the first page (\setupheader[state=high]) 
and place your own title as a regular element in the running text.



A case where you have to number the number of total pages is when you 
try to show the page counter in the form "Page x of y" for 2 or more 
pages. In this case you have to check against the value for the total 
number of pages which can be done with 
\doifnot{\totalnumberofpages}{1}{...}.



Below are two examples which show how the header/title placement works.

 start example 1
\startsetups [header]
    \startframed [width=max,height=max]
    First page header
    \stopframed
\stopsetups

\startsetups [footer]
    Page \userpagenumber\ of \lastuserpagenumber
\stopsetups

\setupheadertexts
  [\doif{\pagenumber}{1}{\directsetup{header}}]

\setupfootertexts
  [\doifnot{\totalnumberofpages}{1}{\directsetup{footer}}]

\starttext
\dorecurse{12}{\samplefile{lorem}\par}
\stoptext
 stop example 1

 start example 2
\startsetups [header]
    \setupheader[state=high]
    \startframed [width=max,height=3cm]
    First page header
    \stopframed
    \blank
\stopsetups

\startsetups [footer]
    Page \userpagenumber\ of \lastuserpagenumber
\stopsetups

\setuppagenumbering
  [location=none]

\setupfootertexts
  [\doifnot{\totalnumberofpages}{1}{\directsetup{footer}}]

\starttext

\setup[header]

\dorecurse{12}{\samplefile{lorem}\par}

\stoptext
 stop example 2

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] Test for displaying a header

2021-08-27 Thread Wolfgang Schuster via ntg-context



Fabrice Couvreur schrieb am 27.08.2021 um 10:04:

Hi Wolfgang,
This may not be nicest but seems to work
Fabrice

%%

\definelayout
[1]
  [header=10mm]

\setuplayout
  [header=0pt,
 height=middle]

\setuppagenumbering
[alternative=doublesided,location=]

\setupbackgrounds
[header]
  [text]
  [frame=off,bottomframe=on,
 framecolor=lightgray,rulethickness=1pt]

\startsetups[header]
\doifelse{\totalnumberofpages}{1}
    {\setuplayout[1]}
{\setuplayout[reset]}
\stopsetups


\starttext
\input knuth
%\dorecurse{10}{\input knuth\par}
\stoptext


I have no idea what you try to achieve but the check for the number of 
pages in your document is never used. The layout on the first page is 
different from the following pages but this is just how \definelayout 
work when you use a number as first argument.



What you have to understand is that a setups-environment is just a macro 
definition where you provide the names as argument to the start command. 
This means


    \startsetups [header]
    ...
    \stopsetups

works the same way as

    \def\internalname_header
      {...}

but you have to use

    \setups [header]

rather than

    \internalname_header

to get the content of the environment.


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] Test for displaying a header

2021-08-26 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 26.08.2021 um 19:06:

Hi,

Using this (almost what I'm trying to do) without success

[...]

\startsetups[header]
\doifelse{\totalnumberofpages}{1}
{\setupheadertexts[\setups{header}]}
    {}
\stopsetups


This stores the page check in the setups environment  but you never call 
it. The call from within the environment itself can't work because the 
content is never evaluated and even if it would be called you create an 
endless loop.


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] Test for displaying a header

2021-08-26 Thread Wolfgang Schuster via ntg-context

Taco Hoekwater via ntg-context schrieb am 26.08.2021 um 16:34:


Hi,


On 26 Aug 2021, at 16:07, Fabrice Couvreur via ntg-context  
wrote:

Hi,
I know I asked the question a few years ago, but I don't remember !
The idea is to test whether the document contains only one page or not.


Perhaps not the nicest solution, but this works:

\doifvalueelse
   {\lastpage}
   {1}
   {\message{true}}
   {\message{false}}



Same solution but better counter name:

\doifelse{\totalnumberofpages}{1}{...}{...}

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] layer disappears when showframe is set

2021-08-26 Thread Wolfgang Schuster via ntg-context

juh via ntg-context schrieb am 26.08.2021 um 14:46:

Hi,

this sample shows that the image in a layer in header disappears if showframe is
set.

\setupexternalfigures[location=default]
\definelayer[Cow]
[x=0, y=0]

\setlayer[Cow]
[x=10em, y=0mm]
{\externalfigure[cow][height=\lineheight]}
\setupbackgrounds[header][background=Cow]

\showframe

\starttext
\input knuth
\stoptext


The \showframe command is just a wrapper for \setupbackgrounds to enable 
the frames on certain parts of the page.


One of the settings which are passed to \setupbacgrounds when you use 
\showframe is "background=" which resets all previous values of the 
background-key.


To keep the layer setting you have to move \showframe above your own 
\setupbackgrounds command because the reset of the background-key 
happens then before you pass your own value.


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] Why does HerosBold give bold italic?

2021-08-25 Thread Wolfgang Schuster via ntg-context

Bruce Horrocks via ntg-context schrieb am 25.08.2021 um 23:15:

On 25 Aug 2021, at 13:56, Wolfgang Schuster  
wrote:

Bruce Horrocks via ntg-context schrieb am 25.08.2021 um 14:28:

Why does HerosBold give bold italic instead of just bold?

\definefont[TestA][name:Heros at 14pt]
\definefont[TestB][name:HerosBold at 14pt]
\definefont[TestC][name:HerosItalic at 14pt]
\starttext
\TestA {The quick brown}
\TestB {fox jumps over}
\TestC {the lazy dog}
\stoptext

I guess you try to use TeX Gyre Heros, when this is the case you use the wrong 
names for the font. The correct names are in the following example.

Another problem is how you use the new font commands, unlike many other user 
created commands \definefont creates a switch and you have to move the left 
braces before the command.

\definefont [TestA] [name:texgyreheros*default at 14pt]
\definefont [TestB] [name:texgyreherosbold*default at 14pt]
\definefont [TestC] [name:texgyreherositalic*default at 14pt]

\starttext
{\TestA The quick brown}
{\TestB fox jumps over}
{\TestC the lazy dog}
\stoptext


In my cases it is easier to use \switchtobodyfont rather than using a fixed 
font style, below is a modified version of your example above. While the 
example itself isn't very useful the method can be used to change the font for 
a header, typing environment etc.

\usebodyfont[heros]

\starttext
\style[style={\switchtobodyfont[heros,14pt]}]{The quick brown}
\style[style={\switchtobodyfont[heros,14pt]\bf}]{fox jumps over}
\style[style={\switchtobodyfont[heros,14pt]\it}]{the lazy dog}
\stoptext

Thanks Wolfgang. I always get very confused when ConTeXt 'nearly' works and 
this was one of those times. Your \style example is interesting and I'll bear 
it in mind but at the moment I only need this for some one-off title page text 
rather than body text.


In this case you change the font once at the start of the title page, 
afterwards you can use \bf and \it to change styles.


\usebodyfont[heros]

\definebodyfontenvironment [14pt]

\starttext

\startstandardmakeup [style={\switchtobodyfont[heros,14pt]}]

The quick brown
{\bf fox jumps over}
{\it the lazy dog}

\stopstandardmakeup

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


Re: [NTG-context] Why does HerosBold give bold italic?

2021-08-25 Thread Wolfgang Schuster via ntg-context

Bruce Horrocks via ntg-context schrieb am 25.08.2021 um 14:28:

Why does HerosBold give bold italic instead of just bold?

\definefont[TestA][name:Heros at 14pt]
\definefont[TestB][name:HerosBold at 14pt]
\definefont[TestC][name:HerosItalic at 14pt]
\starttext
\TestA {The quick brown}
\TestB {fox jumps over}
\TestC {the lazy dog}
\stoptext


I guess you try to use TeX Gyre Heros, when this is the case you use the 
wrong names for the font. The correct names are in the following example.


Another problem is how you use the new font commands, unlike many other 
user created commands \definefont creates a switch and you have to move 
the left braces before the command.


\definefont [TestA] [name:texgyreheros*default at 14pt]
\definefont [TestB] [name:texgyreherosbold*default at 14pt]
\definefont [TestC] [name:texgyreherositalic*default at 14pt]

\starttext
{\TestA The quick brown}
{\TestB fox jumps over}
{\TestC the lazy dog}
\stoptext


In my cases it is easier to use \switchtobodyfont rather than using a 
fixed font style, below is a modified version of your example above. 
While the example itself isn't very useful the method can be used to 
change the font for a header, typing environment etc.


\usebodyfont[heros]

\starttext
\style[style={\switchtobodyfont[heros,14pt]}]{The quick brown}
\style[style={\switchtobodyfont[heros,14pt]\bf}]{fox jumps over}
\style[style={\switchtobodyfont[heros,14pt]\it}]{the lazy dog}
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] TOC labeltext and no partlabel

2021-08-25 Thread Wolfgang Schuster via ntg-context

Adam Reviczky via ntg-context schrieb am 25.08.2021 um 02:02:

Hi,

I have asked this question before, but now I cannot get it working again.
https://ntg-context.ntg.narkive.com/lvvdNOQz/the-appendices-envrionment-and-title-in-toc

I want to set partlabels in my TOC but not in the document itself.

The desired output would be:
---
Contents
Chapter 1 Bodypart
Appendix A Appendix

1 Bodypart
A Appendix
---

[...]

But that does not show the labels in the TOC (trying it with LMTX and MKIV).


The easy way is to create a new heading for the appendices (e.g. 
\extrachapter) and set the label you want to use in the list.


\setuplist [chapter]  [label=chapter]
\setuplist [extrachapter] [label=appendix]


A complexer solution where you can keep \chapter in the appendices can 
be achieved with a customized number type and the use of the processor 
mechanism to set the labels in the list entries.


\setuplist
  [chapter]
  [width=fit,
   distance=\spaceamount]

\defineconversionset [bodypart:chapternumber] [] [bodypartnumber->n]
\defineconversionset [appendix:chapternumber] [] [appendixnumber->A]

\setuphead
  [chapter]
  [sectionconversionset=chapternumber]

\startsectionblockenvironment [frontpart]

\defineprocessor [bodypartnumber] [left=Chapter~]
\defineprocessor [appendixnumber] [left=Appendix~]

\stopsectionblockenvironment

\starttext

\startfrontmatter
\completecontent
\stopfrontmatter

\startbodymatter
\chapter{Bodypart}
\stopbodymatter

\startappendices
\chapter{Appendix}
\stopappendices

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


Re: [NTG-context] numbered exercises

2021-08-24 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 24.08.2021 um 21:26:



Am 24.08.2021 um 21:17 schrieb Wolfgang Schuster via ntg-context 
:

Henning Hraban Ramm via ntg-context schrieb am 24.08.2021 um 20:31:

Hi, I’m typesetting a textbook that contains numbered and indented exercises. 
They must not float.

Which structure should I use for them? There must be an easy answer, but I draw 
a blank.


Use an enumeration.


Thank you, but how can I define a title/caption for the enumeration and its 
reference?



\defineenumeration
  [Exercise]
  [text=Exercise,
   title=yes,
   titleleft=,
   titleright=,
   way=bytext,
   margin=1em]

\starttext

\samplefile{lorem}

\startExercise [title={Something to do},reference=ex:something]
\samplefile{lorem}
\stopExercise

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


Re: [NTG-context] numbered exercises

2021-08-24 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 24.08.2021 um 20:31:

Hi, I’m typesetting a textbook that contains numbered and indented exercises. 
They must not float.

Which structure should I use for them? There must be an easy answer, but I draw 
a blank.


Use an enumeration.

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] Place a logo at the bottom of the page with a layer

2021-08-24 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 24.08.2021 um 19:32:

Hi,
I want to insert a logo at the bottom of the page on the right on the 
first page, on the left on the second, on the right on the third ...

With the key repeat=yes, the logo is always at the bottom right


\useMPlibrary[dum]

\definelayer
  [MyLogo]
  [doublesided=yes,
   width=\paperwidth,
   height=\paperheight,
   repeat=yes]

\setupbackgrounds [page] [background=MyLogo]

\setuppagenumbering [alternative=doublesided]

\setlayer
  [MyLogo]
  [left]
  [preset=leftbottom,
   x=\dimexpr\cutspace-\rightmargindistance-\rightmarginwidth\relax,
   y=\bottomspace]
  {\externalfigure[dum][width=\rightmarginwidth,height=\footerheight]}

\setlayer
  [MyLogo]
  [right]
  [preset=rightbottom,
   x=\dimexpr\cutspace-\rightmargindistance-\rightmarginwidth\relax,
   y=\bottomspace]
  {\externalfigure[dum][width=\rightmarginwidth,height=\footerheight]}

\showframe

\starttext
\dorecurse{20}{\samplefile{lorem}}
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] lmtx update/t-vim (again)

2021-08-22 Thread Wolfgang Schuster via ntg-context

Benjamin Buchmuller via ntg-context schrieb am 23.08.2021 um 00:10:

Hi,

Thanks for having had a look into the t-vim.

At least the document compiles fine (I get a PDF), although multiple complaints from the lua end 
when I use "$" or "#" in my source, for example

#!/usr/bin/bash

etc. culminating in

Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn''t ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing 'I}' or 'I$' or 'I\par'.

Seems as if LMTX tried to interpret something literally here …

Further, I get a lot of

fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
fonts   > checking > char i (U+00069) in font '' with id 0: missing
fonts   > checking > char n (U+0006E) in font '' with id 0: missing

warnings. Maybe some things need to be adjusted?

(Second mail with another error in LMTX follows.)


Can you provide a minimal working (or in your case not working) example 
for the problem.


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] Adjustment for header and footer

2021-08-22 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 22.08.2021 um 13:13:

Hi,
In the file below (not minimal, sorry!) I am using commands from 
Wolfgang in different threads. We can see that the top frame overflows 
into the text: how to correct this ?
I would also like the top and bottom stroke to be adjusted to the 
width of the paper.

Thanks
Fabrice

[...]

  \setupheadertexts
        [{
            \startframed [headerframed] 
[align=flushleft,foregroundstyle=\ssx]

Lycée LA SALLE\\
                Durée : \getvariable{headertext}{time}\\
\date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]
          \stopframed
        }]
        [{
\startframed [headerframed] [align=flushright,foregroundstyle=\ssx]


Add "offset=overlay" to the frame for the image, the graphic has already 
the same height of the header and you're adding additional offset from 
the frame which pushes the complete header block down.



            \externalfigure[dum] [factor=max]
\stopframed
        }]

[...]


When you have a similar problem in the future I suggest to enable the 
frame for the header line with \showframe and in addition enable the 
frame for your \framed blocks.


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] file to buffer

2021-08-17 Thread Wolfgang Schuster via ntg-context

Hans van der Meer via ntg-context schrieb am 17.08.2021 um 15:15:
Is it possible to retrieve the contents of a file directly into a 
buffer? On the Wiki I could not find such a command. That is, 
equivalent to something like:

\startbuffer[from file]
contents of the file
\stopbuffer


Yes and no. The \samplefile command used to read file for example
stores the content of a file in a buffer to avoid rereading the file each
time the content is output but there is no way to suppress the output
neither to change the name of the buffer.

\starttext

\startnointerference
\samplefile{knuth}
\stopnointerference

\typebuffer[knuth]

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


Re: [NTG-context] Using Lua to format lecture titles

2021-08-17 Thread Wolfgang Schuster via ntg-context

noib3 via ntg-context schrieb am 17.08.2021 um 16:43:
I'm trying to create a new lecture environment starting from the base 
section.


I'd like its title to be `Lecture : ` if a title is 
provided, and `Lecture ` if it isn't. This title should also be 
reported in the left footer and in the table of contents.


This is the code I have so far:

[...]

Unfortunately none of them are reported correctly. The title in the body 
is formatted simply as `Lecture`, the one in the left footer is 
formatted as `Lecture`, and the one in the table of 
contents isn't affected at all.


Why do you need Lua to format the list entries and section titles?

\definehead
  [lecture]
  [section]

\define[1]\LectureTextCommand
  {\doiftext{#1}{: #1}}

\setuphead
  [lecture]
  [bodypartlabel=lecture,
   distance=0pt,
   textcommand=\LectureTextCommand,
   style=\bfc]

\setuplabeltext
  [en]
  [lecture={Lecture }]

\setupcombinedlist
  [content]
  [list={lecture}]

\define[3]\LectureListCommand
  {\labeltext{lecture}#1\doiftext{#2}{: #2}\filler[dotfill]#3\par}

\setuplist
  [lecture]
  [alternative=command,
   command=\LectureListCommand]

\startsetups [footer:left]
\labeltext{lecture} \getmarking[lecturenumber]
\doiftext{\getmarking[lecture]}{: \getmarking[lecture]}
\stopsetups

\setupfootertexts
  [\directsetup{footer:left}] []

\starttext

\completecontent

\startlecture [title={Foo}]
Foo bar baz
\stoplecture

\page

\startlecture
Foo bar baz
\stoplecture

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


Re: [NTG-context] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-16 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 12:18:

Hi Wolfgang,
Pablo's solution works, but I tried yours without success. Here are 
the main lines of my project


 begin project
\startproject[terminale-environment]

\environment[terminale-style]
 ...
\stopproject
 end project


Do you need a project file?


 begin component
\project[terminale-environment]

\startcomponent[terminale_recurrence]
...
\endcomponent
 end component


You ignored the order for \startcomponent and \project. The environment 
(or project) file has to be loaded *after* \startcomponent, otherwise 
the *component mode is set after the style is already loaded.


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] Adjustment in the table of contents

2021-08-16 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 16.08.2021 um 11:24:

Hi,
I wish to have the table of contents as the attached image. The result 
is almost as expected except for the margin of the subsection.


 \setuplist
   [chapter,section,subsection]
 [width=fit,distance=\spaceamount]

 \setuplist
   [chapter]
 [alternative=b]

 \setuplist [chapter][style=bold]


 \setuplist [section]    [margin=1em]
 \setuplist [subsection] [margin=2.75em]



Use fixed values for the width.

\setuplist
  [chapter]
  [width=1em]


\setuplist
  [section]
  [margin=1em,% chapter width
   width=1.75em]

\setuplist
  [subsection]
  [margin=2.75em,% chapter width + section width
   width=2em]

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] How not to display the header of the chapter page on the page with the table of contents ?

2021-08-15 Thread Wolfgang Schuster via ntg-context

Pablo Rodriguez via ntg-context schrieb am 15.08.2021 um 18:33:

On 8/15/21 6:02 PM, Fabrice Couvreur via ntg-context wrote:

A small note : this method works if I compile the project but if I
compile only one chapter, the header no longer appears.

Hi Fabrice,

I have never used projects and chapters (or whatever the right name is).

I’m not sure I get what you’re experiencing: with a single chapter, do
you have the fancy layout or not?

It would make sense that the fancy chapter doesn’t appear only compiling
a chapter. I guess there is no \startbodymatter...\stopbodymatter
wrapping it.

Another approach would be:

[...]


Setting values for \title is a way to avoid the chapter setup for the 
table of contents etc.
but there is a way to set values which are used only when you process a 
component file.


To make it work one has to load the environment file after 
\startcomponent because you
can use the *component mode to check whether the parent file is a 
product or a component.


 begin product
\startproduct [*]

\environment [...]

\startfrontmatter
...
\stopfrontmatter

\startbodymatter
\component [...]
\stopbodymatter

\stopproduct
 end product

 begin component
\startcomponent [*]

\environment [...]

...

\stopcomponent
 end component

 begin environment
\startenvironment [*]

\startsetups [section:chapter]

    \setuphead
    [chapter]
    [...]

\stopsetups

\startsectionblockenvironment [bodypart]
    \directsetup{section:chapter}
\stopsectionblockenvironment

\doifmode{*component}{\directsetup{section:chapter}}

\stopenvironment
 end environment

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] Create an enumeration style

2021-08-13 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 11.08.2021 um 12:57:

I forgot this : how to reduce the font size for the exponents "er", "e" ?


The exponents are placed with \high and you can change the style with

    \setuphigh[style=...]

but this affects all texts which use \high.

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] Create an enumeration style

2021-08-09 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur schrieb am 09.08.2021 um 14:16:

Hi Wolfgang,
Thank you for your suggestion.
I tested the code and the result is not what I expected from the 
second item : "2 exemple" instead of "2^{e} exemple", "3 exemple" 
instead of "3^{e} exemple" ...


core-con.lua (line 1155):

local ordinals = {
    [...]
    french = function(n)
    if n == 1 then
    return "er"
+   else
+   return "e"
    end
    end,
}



Then I tried to use the key alternative = serried but without success.


This works for me:

\defineenumeration
  [test]
  [text=,
   alternative=serried,
   width=fit,
   distance=.5em,
   numbercommand=\groupedcommand{}{~exemple},
   numberconversion=ordinal]

\mainlanguage [fr]

\starttext

\starttest
\input knuth
\stoptest

\starttest
\input knuth
\stoptest

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


Re: [NTG-context] Create an enumeration style

2021-08-08 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 08.08.2021 um 17:47:

Hello,
Is it possible to create an enumeration style to get this :
1 ^ {er} exemple
2 ^ {e} exemple
3 ^ {e} exemple


The conversion needs a fix but this is how you can do it.

\defineenumeration
  [test]
  [text=,
   numbercommand=\groupedcommand{}{~exemple},
   numberconversion=ordinal]

\mainlanguage [fr]

\starttext

\starttest
\input knuth
\stoptest

\starttest
\input knuth
\stoptest

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


Re: [NTG-context] Referencing fonts by path within ConTeXt

2021-08-07 Thread Wolfgang Schuster via ntg-context

Joey McCollum via ntg-context schrieb am 07.08.2021 um 22:29:

Hi,

I'm interested in packaging a ConTeXt project in a self-contained way, 
so that the environment/component/project .tex files, the bibliography 
.bib file(s), and fonts used for typesetting are all provided in one 
place. (The goal is that others can generate the PDFs themselves from 
the source files as long as they have a sufficiently recent version of 
ConTeXt installed.) The usual ConTeXt directory structure makes sense 
for most of this, but it doesn't address the possibility of accessing 
fonts locally. I think I could do this with a script that temporarily 
sets the OSFONTDIR variable to the local fonts directory and then 
invokes ConTeXt to typeset the project-level file, but I was wondering 
if there is an easier way to do this from within ConTeXt. 
Specifically, is there a way to specify a font via a local path with 
font setup commands in an environment file?


You can use

    \usefontpath[...]

to set a directory where ConTeXt searches for fonts but this works only 
when you use a typescript and not for \definefontfamily.


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] Rotating pages

2021-08-07 Thread Wolfgang Schuster via ntg-context

Jeroen via ntg-context schrieb am 07.08.2021 um 13:56:
For the following document, the last 3 pages are landscape, but I 
would like to have the pdf-ed rotated so they are in the pdf document 
portrait, ie rotated 90 degree to the left but leave the page as how 
they are now. Is there an easy way to achieve this?


\startbuffer[apx]

\setuppapersize[


\setuppapersize[%


  \dorecurse{\noffigurepages}
      {\startTEXpage
\externalfigure[\jobname-apx.pdf][page=\recurselevel]
 \stopTEXpage}


\externalfigure [...] [page=\recurselevel,orientation=90]

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] Setting a heading text on its own page with \setuphead

2021-08-07 Thread Wolfgang Schuster via ntg-context

Joey McCollum via ntg-context schrieb am 06.08.2021 um 19:12:

Hi,

I'd like to define my own class of heading derived from the "part" 
heading; in the MWE below, it's called "MyPart". I'd like this heading 
to have the following features:


  * Its title should appear in the ToC, but its number should never be
printed in the ToC or in the text.
  * It should always start on an odd page.
  * Its text should be in a larger size than the text of the body, set
in all caps, and set with extra letterspacing.
  * Most importantly, the title of the heading should appear on its own
page without a header or footer. The text of the body should begin
on the next odd page.

I was hoping to accomplish all of this within the \setuphead command, 
and it seems like this should be possible, but in the following example, 
I'm not getting the text of the header at all:


[...]

I expect there's something obvious that I'm missing, but any help is 
appreciated.


Most of the stuff was already answered by Pablo. Below is my version how 
to set the layout to fit the requirements.


\definefontfamily
  [garamond]
  [rm]
  [EBGaramond]

\setupbodyfont
  [garamond,12pt]

\definefont
  [MyPartFont]
  [Serif at 24pt]
  [line=36pt]

\setuppagenumbering
  [alternative=doublesided,
   location=]

\setupinterlinespace
  [line=18pt]

\definepagebreak
  [blankpagebreak]
  [yes,header,footer,right]

\definehead
  [MyPart]
  [part]

\definecharacterkerning
  [mypartkerning]
  [factor=0.,
   features=letterspacing]

\setuphead
  [MyPart]
  [placehead=yes,
   number=no,
   page=blankpagebreak,
   header=empty,
   footer=empty,
   align={flushleft,nothyphenated},
   style=MyPartFont,

textstyle={\setcharacterkerning[mypartkerning]\setcharactercasing[WORD]},
   after={\page[blankpagebreak]}]

\setupheadertexts
  [\structureuservariable{booktitle}] []
  [] [\structureuservariable{booktitle}]

\setupfootertexts
  [pagenumber] []
  [] [pagenumber]

\setupblank
  [line,fixed]

\starttext

\startMyPart [title={Title for Title Page}] [booktitle={Title for Header}]
\dorecurse{6}{\input knuth\par}
\stopMyPart

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


Re: [NTG-context] copies from \setupinteractionscreen not working?

2021-08-04 Thread Wolfgang Schuster via ntg-context

Pablo Rodriguez via ntg-context schrieb am 04.08.2021 um 15:53:

Dear list,

I have the following sample:

   \setupinteractionscreen[copies=5]
   \starttext
   \dorecurse{5}{\input zapf\par}
   \stoptext

The resulting file from current latest (2021.07.30 00:57) contains the
following /ViewerPreferences dictionary:

   /ViewerPreferences <<
 /Duplex /Simplex
 /PickTrayByPDFSize true
 /PrintScaling /None
   >>

I’m afraid that "copies" isn’t generating the proper /NumCopies entry in
the /ViewerPreferences dictionary.

Could anyone be so kind to confirm this?



A fix is needed in layo-ini.lmt, maybe not in the same way as below but 
the value has to be stored in canvas.copies.


function layouts.setupcanvas(specification)
[...]
--
local copies = specification.copies
if type(copies) == "number" and copies < 2 then
canvas.copies = false
+   else
+   canvas.copies = copies
end
--
[...]
end

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] Alignment of bullets withn \tabulate within \itemize

2021-08-04 Thread Wolfgang Schuster via ntg-context



Lukas/ConTeXt via ntg-context schrieb am 04.08.2021 um 17:03:

Hello,

let's have the following sample:


\starttext
   \startitemize[packed_,][headstyle_=,]
 \item CC

 \starttabulate[|l|||]
   \NI aa \NC bb \NC\NR
 \stoptabulate

 \item AA
   \stopitemize
\stoptext


How do I make bullets (\itemtag) horizontally aligned one bellow another?

In my case - bullets within \tabulate are indented (shifted rightwards) 
somehow, which is undesired.



You can use the 'intext' keyword but this works only well for short 
texts, otherwise text continus below the bullet point.


\starttext

\startitemize[intext]
\item XXX
\starttabulate[|l|||]
\NI aa \NC bb \NC\NR
\stoptabulate
\item YYY
\stopitemize

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


Re: [NTG-context] How to check if buffer or block has content

2021-08-02 Thread Wolfgang Schuster via ntg-context

Hans Hagen via ntg-context schrieb am 02.08.2021 um 17:17:

On 8/2/2021 4:43 PM, Aditya Mahajan via ntg-context wrote:

On Mon, 2 Aug 2021, Benjamin Buchmuller via ntg-context wrote:


Hi,

How can I check if a buffer or block has content (or is empty) 
before a \useblocks or \getbuffer statement?


I would like to typeset a headline only if the buffer/block has been 
used in a particular section and want to avoid headlines with empty 
sections.


There may be more efficient ways to do it (since buffers are stored 
at the lua end), but you can always do \doiftextelse(\getbuffer[...]} 
to test it buffer creates any output.

indeed you know there is a way ...

\starttext

\startbuffer[test]
test
\stopbuffer

\doifelsebuffer{test} {YES} {NOP}

\permanent\protected\def\doifelsebuffercontent#1%
  {\doifelse{\luaexpr{(string.strip(buffers.getcontent("#1")) ~= "" 
and "yes")}}{yes}}


\startbuffer[test]
\stopbuffer

\doifelsebuffercontent{test} {YES} {NOP}

\startbuffer[test]

\stopbuffer

\doifelsebuffercontent{test} {YES} {NOP}

\stoptext

if we can agree on a proper name then i can add a (more efficient) 
\doifelse...


To follow the existing commands we can use

\doifelsebufferempty
\doifelsebuffersomething
\doifelsebuffernothing

or (we already have \xmldoif... and \btxdoif...)

\bufferdoifelseempty
\bufferdoifelsesomething
\bufferdoifelsenothing

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] How to check if buffer or block has content

2021-08-02 Thread Wolfgang Schuster via ntg-context

Hans van der Meer via ntg-context schrieb am 02.08.2021 um 18:21:
And in pathological cases where even this does not work (as I 
encountered a few days ago):
\setbox\scratchbox=\vboxx{content}\ifdim\wd\scratchbox>\zeropoint .. 
\else .. \fi


This is how \doiftext works but it uses a \hbox.

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] Additional font variants

2021-08-01 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 01.08.2021 um 19:33:

Hi, I’m trying to set up a “handwriting” font.

In the example below I’m using Comic Sans, because probably everyone has it 
available, IRL I’m using the commercial “Supernett Cn” that has more styles. 
(Also, I’m using Alegreya Serif + Sans.)

If I name it "ss/sans/Sans", it works as expected, but with 
"hw/handwriting/Handwriting" it only uses the regular font, never other styles.

"mtxrun --script fonts ..." shows that the configured files are found.

Is this a limitation in ConTeXt, or what did I wrong?


The handwritten and calligraphic style are limited to upright 
alternatives. I can only speculate why this is the case but I guess Hans 
owns no font families where this is necessary (e.g. Lucida Bright has 
only one file for handwriting and calligraphy).


Adding additional alternatives to both styles is possible but the 
included typescripts (e.g. for lucida bright ot) have to be checked and 
fixed.


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] Code document and simpleslides and create in one go the document with simpleslides added

2021-08-01 Thread Wolfgang Schuster via ntg-context

Hans Hagen via ntg-context schrieb am 01.08.2021 um 13:56:

On 7/31/2021 10:23 PM, Jeroen via ntg-context wrote:
I worked around it, instead of simpleslides just use larger fonts to 
with regular pages

Tne next version will have this (easy cheap extension):

[...]

after that you have a file -slide.tex that has the slides 
that you can process (or include in a wrapper):


Is there a way to set a folder for \typesetfile where I can put files 
similar to


    \setupexternalfigure[directory=...]

or

    \usepath[...]


At the moment I can use \typesetfile only when the processed file is in 
the same folder as the main tex file. It would be nicer to have a sub 
folder (e.g. examples) where I can put the files and \typesetfile 
creates the pdf in this folder to prevent clutter in the main folder.



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] Verbatim text in a frame

2021-07-31 Thread Wolfgang Schuster via ntg-context

Hans Hagen via ntg-context schrieb am 31.07.2021 um 00:18:

On 7/30/2021 9:12 PM, Jeroen via ntg-context wrote:
I am using the following preamble to put a frame around 
verbatim text. How can I have all the text start some 5pt from the 
frame and how can I get rounded corners, corner=0 does not seem to work


\setupcolors[state=start]

\setupcolor[xwi]

\definetextbackground
   [Code]
   [frame=on,
    framecolor=black,
    %corner=0,
    %offset=10pt,
    background=color,
    backgroundcolor=gray,
    location=paragraph]

\setuptyping
   [before={\blank\starttextbackground[Code]},
    after={\stoptextbackground\blank}]

\starttext

\starttyping
example
\stoptyping

\stoptext

\definetextbackground
  [Code]
  [frame=on,
   framecolor=black,
   corner=round,
   radius=10pt,
   topoffset=10pt,
   leftoffset=5pt,
   background=color,
   backgroundcolor=gray,
   location=paragraph]


Both \blank settings can also be moved from \setuptyping to 
\setuptextbackground.


\definetextbackground
  [Code]
  [frame=on,
   framecolor=black,
   corner=round,
   background=color,
   backgroundcolor=gray,
   location=paragraph,
   leftoffset=5mm,
   topoffset=5mm,
   before=\blank,
   after=\blank]

\setuptyping
  [typing]
  [before={\starttextbackground[Code]},
   after={\stoptextbackground}]

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] Question about \groupedcommand{}{}

2021-07-27 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 27.07.2021 um 18:57:

Hi,
The name of the environment must always end with a dot both with a title 
and without title. How to do ?

Thanks
Fabrice

[...]



You can create simple dummy environments to test the parameters.

\defineenumeration
  [grouptest]
  [title=yes,
text={dummy text},
   titleleft=,
  titleright=,
 headcommand=\groupedcommand{[}{]},
   numbercommand=\groupedcommand{(}{)},
titlecommand=\groupedcommand{<}{>}]

\starttext

\startgrouptest [title={dummy title}]
\unknown
\stopgrouptest

\startgrouptest
\unknown
\stopgrouptest

\blank[2*line]

\setupenumeration
  [grouptest]
  [number=no]

\startgrouptest [title={dummy title}]
\unknown
\stopgrouptest

\startgrouptest
\unknown
\stopgrouptest

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


Re: [NTG-context] Macro that does not work in an environment

2021-07-27 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur schrieb am 27.07.2021 um 18:24:

Hi,
The macro \card must allow the word Card to be written in the normal style.
Hans' solution works well.


To use \text with a certain style use a \mathtext.. command, e.g.

\define[1]\card
  {\m{\mathtexttf{Card}\thinspace#1}}

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] Macro that does not work in an environment

2021-07-27 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 27.07.2021 um 16:32:

Hello,
How to make the macro work in the environment definition ?


Can you explain your problem with the \card.

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] Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame

2021-07-26 Thread Wolfgang Schuster via ntg-context

Fabrice Couvreur via ntg-context schrieb am 26.07.2021 um 13:13:

Hello,
Following on from my previous questions for writing my book (thanks 
again Wolfgang), I have to create a solution environment like the 
attached image.

My problem is adjusting the length of the frame.
Thank you.
Fabrice

\setupbodyfont[newcomputermodern-book,11pt]

\defineframed
    [ACFRAME]
    [frame=off,
     width=fit,
     align=flushleft,
     location=low,
     background=color,
     backgroundcolor=lightgray,
     foregroundcolor=,
     foregroundstyle=]


\startuseMPgraphic{acframe}
fill OverlayBox
leftenlarged (BackSpace + 5mm)
rightenlarged ExHeight
withcolor "lightgray";
setbounds currentpicture to OverlayBox;
\stopuseMPgraphic

\defineoverlay
  [acframe]
  [\useMPgraphic{acframe}]

\defineframed
   [ACFRAME]
   [...,
background=acframe,
...]

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] Testing for LMTX: \ifmode

2021-07-25 Thread Wolfgang Schuster

Axel Kielhorn schrieb am 25.07.2021 um 09:06:

Hi,

I have a document that doesn’t work with LMTX right now.

While testing LMTX I would like to exclude certain passages and work on them 
later.

When I run the following:

\doifmode{*mkiv}{mkiv}
\doifmode{*contextlmtxmode}{contextlmtx}
\doifmode{*lmtx}{lmtx}

I always get „mkiv“.
I’ve tried

- pre LMTX context
- LMTX --luatex
- LMTX (2021.07.23)

What is the recommended way to detect LMTX?


There is no mode value for LMTX, only MkIV is set. To check for LMTX
you have to use \ifcase\contextlmtxmode but an additional for lmtx
would be useful.

\starttext

\ifcase\contextlmtxmode
\MKIV
\else
\MKIV\ + \LMTX
\fi

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


Re: [NTG-context] Percentage stacked bars chart

2021-07-24 Thread Wolfgang Schuster

Jorge Manuel schrieb am 24.07.2021 um 10:13:

Good Morning,

The code sent by Hans doesn't work for me. Maybe it's my context tree.


I tried the first example from the manual and also Hans example and both 
worked for me.



Did you download all 3 files which are needed?

- t-readdata.lua
- t-statistical-charts.lua
- t-statistical-charts.mkiv


Does it work when you put the files and a document in the same folder?


Can you show use your error message.


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] Every odd row with a background color with extreme tables?

2021-07-23 Thread Wolfgang Schuster

T. Kurt Bond schrieb am 23.07.2021 um 17:55:

With natural tables I can define a color, tell the table to have to
use color backgrounds and turn the frame off and get every odd row in
all my tables will have that color for the background.

== Example 
\definecolor[grayback][r=.8,g=.8,b=.8]
\setupTABLE[background=color,frame=off]
\setupTABLE[row][odd][backgroundcolor=grayback]
== End of Example =

Can I get this same effect with extreme tables?

My first try with extreme tables looked like this:

== Example 
\definecolor[tablebackground][r=.8,g=.8,b=.8]
\setupxtable[background=color,frame=off]
\setupxtable[row][odd][backgroundcolor=tablebackground]
== End of Example =

That didn't seem to have any effect.

Is there a way to have every odd row of every table in my document
have color background?


\startuseMPgraphic{xtablerow}
fill OverlayBox withcolor "gray";
\stopuseMPgraphic

\defineoverlay
  [xtablerow]
  [\ifodd\currentxtablerow
 \useMPgraphic{xtablerow}%
   \fi]

\starttext

\startxtable[frame=off,background=xtablerow]
\dorecurse{20}
  {\startxrow
 \startxcell Column 1 \stopxcell
 \startxcell Column 2 \stopxcell
   \stopxrow}
\stopxtable

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


Re: [NTG-context] TrueType font styles suddenly not found anymore

2021-07-23 Thread Wolfgang Schuster

Gerben Wierda schrieb am 23.07.2021 um 12:35:


My font setup is like this:

[...]

Now, both worked earlier today. But I’ve lost the old Optima font 
somehow. If I now try —mode=OPTIMA I get:


selectfont      > the requested font 'Optima' has no files for the 'tf' 
alternative, Latin Modern is used instead.


and the document is set in Latin Modern Sans Serif. Another OpenType 
Postscript font like Chaparral Pro works. Another TrueType like Century 
Gothic does not. I seem not to be able to load any TrueType font anymore.


I recall there being some way to rebuild a font cache of LMTX ConTeXt 
but I can’t find the instructions. Can someone enlighten me?



Updating the font cache:

mtxrun --script fonts --reload

or

mtxrun --script fonts --reload --force


Listing all available fonts:

mtxrun --script fonts --list --all optima*


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] Use of lettrine module in LMTX

2021-07-23 Thread Wolfgang Schuster

Gerben Wierda schrieb am 22.07.2021 um 08:43:
So, basically, the page on ConTeXt garden about using older modules in 
LMTX is incomplete: not all modules actually work.


Many of the modules on the garden are 10 years and older and predate 
MkIV/LuaTeX.


A lot has changed since then and LMTX added many new commands which replaced
older mechanism. There is no way all modules can work after these changes
(especially modules which add font support in MkII).

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] Use of lettrine module in LMTX

2021-07-21 Thread Wolfgang Schuster

Gerben Wierda schrieb am 21.07.2021 um 12:00:
On 19 Jul 2021, at 09:56, Nicola > wrote:


On 2021-07-18, Gerben Wierda > wrote:

PS. switching \kap and \bf has an interesting result, the first
character of the words is not in bold. This did not happen with
lettrine in mkii


I do not have an answer to your question, but I'd like to point out that
you can keep using lettrine with ConTeXt LMTX, if you wish. You just
need to add the modules manually, currently:

https://wiki.contextgarden.net/Modules#ConTeXt_LMTX


I’ve tried this. Installed the modules and then I get with

[...]


Short version:

You get an error message for the \!!dimena command which is used by
the module but doesn't exist anymore.


Long version:

Hans started a few years ago to replace many of the old cryptic names
(e.g. \@EAEA) with sometimes longer but more readable names
(e.g. \doubleexpandafter). A short while ago he removed a few of these
old commands (in this case a length register) in LMTX because they
aren't used anymore in the core.

The lettrine module is very old and never got a proper MkIV/LMTX
version and the use of one of these old commands results in an error.

While it's easy to fix the problem you're going to find the next problem
because LMTX has a new mechanism which is related to paragraph
related settings like indentation. As a result of this new mechanism
\lettrine places the initial to the left of the paragraph without
reserving space to indent the first few lines.

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] LMTX and lettrine

2021-07-19 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 18.07.2021 um 18:16:

On 7/18/21 3:35 PM, Gerben Wierda wrote:

I am trying to find out how to move this setup in mkii

23     \usemodule[lettrine]
24 >>  \setuplettrine[Lines=3,
25                    Hang=.5,
26                    Oversize=0,
27                    Raise=0,
28                    Findent=0pt,
29                    Nindent=0em,
30                    Slope=0em,
31                    Ante=,
32                    FontHook=,
33                    TextFont=\sc,
34                    Image=no]

to lmtx. (Basically, ConTeXtgarden gives my mike info for lettrine)

Hi Gerben,

\setupinitial is your friend.

i-context.pdf (included in LMTX) contains the available options
(searching for "\setupinitial [", without quotation marks).


Both commands have different feature sets, e.g. with lettrine you can use
a image for the initial and you can also use the slope option to change the
indentation for letters like A or V.

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

2021-07-18 Thread Wolfgang Schuster

Hans van der Meer schrieb am 18.07.2021 um 16:39:

Here is something I think that should be added to the documentation.

/In the ConTeXt garden (page Command/mainlanguage) the description is:/

mainlanguage Set the language of auto-generated language elements, 
like the title of the table of contents or the appendix.


/On the Command/language page:/

Change the hyphenation rules, quotation marks, all that sort of thing, 
to that of a different language. (The default language is English.)


Testing showed that \mainlanguage sets both \currentlanguage and 
\currentmainlanguage to the same value, while \language sets 
\currentlanguage only.


My suggestion is to add info to this behaviour to the mainlanguage 
page, reflecting the fact that \mainlanguage does set both 
\currentlanguage and \currentmainlanguage.Which is not apparent from 
the current documentation.


It's a wiki, it's possible to add the information yourself.

Another solution would be to separate \language and \mainlanguage 
completely. An option I would prefer for clarity, because now the 
order of calling \language and \mainlanguage makes a difference.


1. You're breaking nearly every existing document.

2. \language is only needed when you use more than 1 language in a 
document, otherwise \mainlanguage is enough to change labels and 
hyphentation patterns.


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] (no subject)

2021-07-18 Thread Wolfgang Schuster

T. Kurt Bond schrieb am 17.07.2021 um 08:38:

I have the following file:

\setupfloat[table][default=nonumber]

\starttext
\section[title={Tables without force}]

Here is a table without a caption, unforced.

\startplacetable[location=none]
   \bTABLE
   \bTR\bTD r1c1 \eTD\bTD r1c2\eTD\eTR
   \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR
   \eTABLE
\stopplacetable

Here is a table with a caption, unforced.

\startplacetable[title={Table With A Caption}]
   \bTABLE
   \bTR\bTD r1c1 \eTD\bTD r1c2\eTD\eTR
   \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR
   \eTABLE
\stopplacetable

This is after the table with a caption.


\section[title={Tables with force}]

Here is a table without a caption, forced.

\startplacetable[location={force,none}]
   \bTABLE
   \bTR\bTD r1c1 \eTD\bTD r1c2\eTD\eTR
   \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR
   \eTABLE
\stopplacetable

Here is a table with a caption, forced.

\startplacetable[title={Table With A Caption},location=force]
   \bTABLE
   \bTR\bTD r1c1 \eTD\bTD r1c2\eTD\eTR
   \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR
   \eTABLE
\stopplacetable

This is after the table with a caption.
\stoptext


The second pair of tables have force added.
[...]
Why does the last table have "Table 1", when there is a 
\setupfloat[table][default=nonumber]?


The default value is only used when you provide no arguments to the 
location key which isn't the case for your last table. To get rid of the 
counter add "nonumber" to the location argument, e.g.


\startplacetable[title=...,location={nonumber,force}]

but you can also disable the counter for all table floats with

\setupcaption [table] [number=no].

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] Moving the old book-structure to a recent ConTeXt

2021-07-18 Thread Wolfgang Schuster

Gerben Wierda schrieb am 16.07.2021 um 15:51:


Is there a new template I can download somewhere to start from scratch?


There is no template but show below a example for a document which
uses the project structure. The examples are just my own preference
and there are many ways to change them to fit your own style.


1. File names

In the example all sub files (style + chapters) start with the
name of the main file and append a sub name. Another popular
naming scheme is to prefix the files with c_ (component),
p_ (product) or s_ (style/environment).

To avoid problems should also try to use only ASCII characters
for the file names and avoid anything which is special in TeX,
using spaces or extra periods should be avoided as well.


2. Arguments for \component etc.

In my example I passed the argument to \component, \startproduct
etc. in square brackets but this is only a alternative form
to older way, where you passed it without the brackets. Both

\component document-xxx

and

\component [document-xxx]

are valid and you can use whatever you prefer.


3. Position of \environment

In my example I load the environment-file after \startproduct
and \startcomponent but it's also possible to load it before
them. There are reasons for both positions and when you choose
one you should keep it for all files.


4. \startdocument

In my product file I added a document-environment, while it
isn't necessary in this case it provides a nice hook to insert
a title page for your document.


 begin document.tex
\startproduct [*]

\environment [document-environment]

\startdocument

% \startfrontmatter
%
% load components with table of contents, introduction etc.
%
% \stopfrontmatter

\startbodymatter

\component [document-xxx]

\stopbodymatter

\stopdocument

\stopproduct
 end document.tex

 begin document-environment.tex
\startenvironment [*]

% sub directory for images
%
% \setupexternalfigures
%   [directory=...]
%
% sub directories for components
%
% \usepath
%   [...]

% put you setups here

\stopenvironment
 end document-environment.tex

 begin document-xxx.tex
\startcomponent [*]

\environment [document-environment]

% put your content here

\stopcomponent
 end document-xxx.tex


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] number in \doloopoverlist?

2021-07-14 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 14.07.2021 um 20:41:

Dear list,

I have the following sample:

   \starttext
   \doloopoverlist{a,b,c,d}
 {\recursestring, number: \recurselevel\\}
   \stoptext

Which is the way to get the number when looping over a list?



There is no number, you're just iterating over a list.


\definecounter [loopcounter]

\starttext

\resetcounter [loopcounter]

\doloopoverlist
  {a,b,c,d}
  {\recursestring, number: \incrementedcounter [loopcounter]\par}

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


Re: [NTG-context] Header for a book

2021-07-13 Thread Wolfgang Schuster

Fabrice Couvreur schrieb am 12.07.2021 um 16:32:

Hi,
For my book, the header for each chapter should be like the attached 
image. I don't know if I am using the best method, but the result looks 
like what I want. Nevertheless, I am having some problems :

1. the header appears on each page ;
2. the title of the chapter should not appear in the body of the text.
Thanks for your help.
Fabrice

[...]



You can use the following example as a start.


\definefont
  [ChapterNumberStyle]
  [Sans*default,uppercasing sa 1.5]

\definefont
  [ChapterTextStyle]
  [SansBold*default sa 2.2]

\startuseMPgraphic{chapterframe}
fill OverlayBox
leftenlarged (BackSpace + 5mm)
rightenlarged (CutSpace + 5mm)
topenlarged (TopSpace + 5mm)
withcolor "lightgray";
setbounds currentpicture to OverlayBox;
\stopuseMPgraphic

\defineoverlay
  [chapterframe]
  [\useMPgraphic{chapterframe}]

\defineframedtext
  [ChapterFrame]
  [frame=off,
   background=chapterframe,
   width=max,
   height=6cm,
   after={\blank[2*line]},
   offset=0pt]

\setuphead
  [chapter]
  [align=flushright,
   textcommand=\groupedcommand{\blank[medium]}{},
   numbercolor=darkgray,
   textstyle=ChapterTextStyle,
   numberstyle=ChapterNumberStyle,
   before=\startChapterFrame,
   after=\stopChapterFrame,
   header=high]

\setuplabeltext
  [fr]
  [chapter=Chapitre ]

\mainlanguage
  [fr]

\starttext

\chapter {La récurrence}

\samplefile{lorem}

\chapter {Combinatoire-Dénombrement}

\samplefile{lorem}

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


Re: [NTG-context] weekend upload - stacking and animation

2021-07-13 Thread Wolfgang Schuster

Jeong Dal schrieb am 13.07.2021 um 12:25:

Dear Hans, Aditya,

Now, I understand the stacking method.
I made a simple animation using it.

\startuseMPgraphic{demo}
for i=1 upto 10:
draw fullcircle scaled (.3*i*cm) withcolor (.1*i*red) withpen 
pencircle scaled (.5*bp) withstacking i;

endfor;
\stopuseMPgraphic
\setupinteraction[state=start]
\usemodule[animation]
\starttext
\startanimation[menu=yes]
% \dorecurse{10}
% { {\useMPgraphic[stacking={#1}]{demo}}}
{\useMPgraphic[stacking={1}]{demo}}
{\useMPgraphic[stacking={2}]{demo}}
{\useMPgraphic[stacking={3}]{demo}}
{\useMPgraphic[stacking={4}]{demo}}
{\useMPgraphic[stacking={5}]{demo}}
{\useMPgraphic[stacking={6}]{demo}}
{\useMPgraphic[stacking={7}]{demo}}
{\useMPgraphic[stacking={8}]{demo}}
{\useMPgraphic[stacking={9}]{demo}}
{\useMPgraphic[stacking={10}]{demo}}
\stopanimation
\stoptext

However, I cannot succeed to use \dorecurse to make the code simple.
If there is another good method, please let me know.


\dorecurse {...} {\frame{...}}

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

2021-07-12 Thread Wolfgang Schuster

Thomas A. Schmitz schrieb am 12.07.2021 um 18:02:

Hi all,

I don’t know if I’m overlooking something really basic or if this is a bug. The 
following MWE compiles with mkiv, but not with lmtx:

\startreusableMPgraphic{fold}
fill unitsquare xyscaled (1mm,1mm) withcolor blue ;
\stopreusableMPgraphic

\definelayer[foldingmarkslayer][width=\paperwidth,height=\paperheight]
\setlayer[foldingmarkslayer][y=101mm,x=11mm]{\reuseMPgraphic{fold}}

\setupbackgrounds [page][background=foldingmarkslayer]

\starttext

Test

\stoptext

The error I get:

tex error on line 6 in file ./test.tex: Use of \meta_usempgraphic_nop doesn't 
match its definition

Any pointers? Thanks


meta-ini.mkxl

-\def\meta_usempgraphic_nop#=#*#=%
+\tolerant\def\meta_usempgraphic_nop#=#*#=%
  {\meta_begin_graphic_group{#1}%
   ...
   \meta_end_graphic_group}

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] Ampersand in \unprotect fails in LMTX

2021-07-09 Thread Wolfgang Schuster

Marco Patzer schrieb am 09.07.2021 um 14:46:

On Fri, 9 Jul 2021 14:29:20 +0200
Hans Hagen  wrote:


As \& works for MkIV as well as LMTX, there's an easy workaround.
But maybe this isn't intended behaviour and needs checking.

intended ... author passes different through the system in lmtx
(better)

Apparently not only author. Also title, subtitle, …


\starttext

\unprotect
\setupinteraction
  [\c!author=\detokenize{Foo & Bar}]
\protect

That works as well.


but why unprotect and not just

\setupinteraction
[author={Foo & Bar}]

That's just an MWE to demonstrate the problem. The actual code is
part of a module (therefore it's \unprotect'ed).


1. While most modules use \unprotect there is often no need for it.

2. You can stop and restart protected mode in a module.

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

2021-07-05 Thread Wolfgang Schuster

Fabrice Couvreur schrieb am 05.07.2021 um 19:49:

Hi,
I have to write a book :
on the even pages at the bottom and on the left : the page number, a 
vertical line and the number of the chapter preceded by the text 
"Chapter" ;
on the odd pages at the bottom and on the right : the title of the 
chapter, a line vertical and page number.

Thanks for your help.
Fabrice

  \setupfootertexts
     [{\getmarking[chapter]}]
     [{\pagenumber}]
     [{\pagenumber}]
     [Chapter\space\pagenumber]

\starttext
\startchapter
   [title=First chapter]
   \dorecurse{10}{\input knuth}
\stopchapter
\startchapter
   [title=Second chapter]
   \dorecurse{10}{\input knuth}
\stopchapter
\stoptext



\startsetups [footer:leftpage]
\prefixedpagenumber
\space
\undepthed{\blackrule
[
width=\linewidth,
height=\strutht,
depth=\dimexpr\footerheight+\bottomspace\relax,
]}
\space
\labeltext{chapter} \getmarking[chapternumber]
\stopsetups

\startsetups [footer:rightpage]
\getmarking[chapter]
\space
\undepthed{\blackrule
[
width=\linewidth,
height=\strutht,
depth=\dimexpr\footerheight+\bottomspace\relax,
]}
\space
\prefixedpagenumber
\stopsetups

\setuplabeltext
[en]
[chapter=Chapter]

\setuphead
[chapter]
[bodypartlabel=]

\setupfootertexts
[] [\directsetup{footer:rightpage}]
[\directsetup{footer:leftpage}] []

\setuppagenumbering
[alternative=doublesided]

\starttext

\startchapter [title=First chapter]
\dorecurse{10}{\input knuth}
\stopchapter

\startchapter [title=Second chapter]
\dorecurse{10}{\input knuth}
\stopchapter

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


Re: [NTG-context] log: use \thinspace instead of \,

2021-06-30 Thread Wolfgang Schuster

Alan Braslau schrieb am 29.06.2021 um 17:40:

On Tue, 29 Jun 2021 14:06:02 +0200
Henning Hraban Ramm  wrote:


Maybe, but in running text I use \, all the time e.\,g. in
abbreviations or for numbers (10\,000). At least in German typography
these “spatiums” are necessary.

In French typography as well.

Indeed,
American: 10,000.00
French:   10\,000,00
(and other languages).

This is quite readable, and much preferred to the use of any kind of
macro that might format numbers according to language.

I find that students often need such helpers when deciphering many
digits.


Let's not forget all of these spaces commands are used in math mode.

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] hyphenate nothyphenated

2021-06-30 Thread Wolfgang Schuster

Alan Braslau schrieb am 30.06.2021 um 20:40:

On 30/06/21 12:25, Hans Hagen wrote:

On 6/30/2021 7:35 PM, Alan Braslau wrote:

On 29/06/21 05:52, Hans Hagen wrote:

well, you ask for nothyphenated; we could define

\permanent\protected\def\-%
   {\begingroup
\hyphenationmode\explicithyphenationmodecode\explicitdiscretionary
    \endgroup}

i will ponder this


I believe that \- defines an *optional* hyphenation point.
Specifying nothyphenated should not hyphenate, even at optional points.
The author can otherwise use hyphenated and arrange to help the 
words get hyphenated at certain points.


Perhaps a new "optional" hyphenation point macro can be added that 
would have super-powers to override the align parameter. There would 
be no surprises using such a feature.

We can't use \= unless we drop the \= being macros (anyone using that?)

We can also use \+ which currently is just "+" because it needs some 
value (sometimes it gets a local meaning).


So here is something to ponder:

\pushoverloadmode \unprotect

 \permanent\protected\def\superexplicitdiscretionary
   {\begingroup
\hyphenationmode\explicithyphenationmodecode\explicitdiscretionary
    \endgroup}

\aliased\let\lang_explicit_discretionary_nop\explicitdiscretionary

 \permanent\protected\def\lang_explicit_discretionary_yes-%
   {\superexplicitdiscretionary}

 \permanent\protected\def\-%

{\doifelsenextcharcs-\lang_explicit_discretionary_yes\lang_explicit_discretionary_nop} 



 \protect \popoverloadmode

 \nohyphens \hsize 1mm

 test\-test \par test\--test

\stoptext


\= macron accent (bar) should not be changed.

\-- is a good suggestion, like insisting, and should not get confused 
with -- (en dash).


Is there some problem to make it just another option.

\enabledirectives[hyphenators.discretionary=hyphenated|nothyphenated]

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] color conversion eats note

2021-06-27 Thread Wolfgang Schuster

Steffen Wolfrum schrieb am 27.06.2021 um 15:55:

uncommenting the following \setupcolors changes magenta to black when running 
luatex.

but when running luametatex the footnote is crippled to «error»:


\starttext

\definestartstop[UL][color=magenta]

%\setupcolors[state=stop,conversion=never]% <- bw with lualatex, but «error» 
with luametatex?

\input ward \footnote{foo foo \startUL{}foo\stopUL{} foo foo foo foo foo 
\startUL{}foo\stopUL{} error}

\stoptext



Don't use extra stuff (e.g. footnotes) when they aren't necessary to 
reproduce the error.



%\setupcolors[cmyk=no,rgb=no,conversion=no]
%\setupcolors[state=stop,conversion=no]

\setcolormodel[none]

\starttext

\dorecurse{20}{\convertnumber{word}{#1} }%
\color[red]{not a number}
\dorecurse{20}{\convertnumber{word}{#1} }

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


Re: [NTG-context] Invalid keyword \spaceskip

2021-06-26 Thread Wolfgang Schuster

Steffen Wolfrum schrieb am 26.06.2021 um 23:38:

Am 26.06.2021 um 22:43 schrieb Wolfgang Schuster 
:

Steffen Wolfrum schrieb am 26.06.2021 um 22:26:

PS: with

% engine=luatex

it works fine.

Add \relax after the last skip value, i.e.

   \spaceskip = 1pt plus 1pt minus 1.5pt\relax

LMTX allows multiple plus and minus values for a skip value and the M in 
Matilda starts the scan for an additional minus value.

Wow, this sounds interesting. Is there an example of how to use multiple values?


I think the only examples are in mails from Hans. When you set multiple 
plus or minus values (as far as i remember) only the last setting is 
used and all previous ones are ignored.


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] Invalid keyword \spaceskip

2021-06-26 Thread Wolfgang Schuster

Steffen Wolfrum schrieb am 26.06.2021 um 22:26:

PS: with

% engine=luatex

it works fine.


Add \relax after the last skip value, i.e.

    \spaceskip = 1pt plus 1pt minus 1.5pt\relax

LMTX allows multiple plus and minus values for a skip value and the M in 
Matilda starts the scan for an additional minus value.


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] paragraph standing out of the normal layout comsuming the margin

2021-06-25 Thread Wolfgang Schuster

Jan U. Hasecke schrieb am 25.06.2021 um 13:19:

Dear all,

the mwe shows my try to define a paragraph that stand out like this:


On right pages

xxx
xxx
    xx
    xx
xxx
xxx


On left pages

   xxx
   xxx
xx
xx
   xxx
   xxx


My try with setups does not work. The textcolor is restored but not the 
layout. Can I reset to the standard layout with an \after command?



You can't change to a different layout in the middle of a page.

What you're looking for is the narrower environment where you can
change the margins in the left and right side.


\startsetups [userdata:shiftblock]
\signalrightpage
\doifelserightpage {
\startnarrower[2*left,-2*right]
\getuserdata
\stopnarrower
} {
\startnarrower[-2*left,2*right]
\getuserdata
\stopnarrower
}
\stopsetups

\defineuserdataalternative
[shiftblock]
[renderingsetup=userdata:shiftblock]

\defineuserdata
[shiftblock]
[before=\blank,
 after=\blank,
 alternative=shiftblock]

\setuppagenumbering
[alternative=doublesided]

\starttext

\startbuffer
\dorecurse{2}{\input knuth\par}
\startuserdata[shiftblock]
\input ward
\stopuserdata
\dorecurse{2}{\input zapf\par}
\stopbuffer

\dorecurse{10}{\getbuffer}

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


Re: [NTG-context] Align in setup header/footer

2021-06-25 Thread Wolfgang Schuster

denis.ma...@unibe.ch schrieb am 25.06.2021 um 12:36:

but you'll perhaps have to put the stuff inside a hbox first

\definehbox[pagenumber][12.5mm]

\setupfootertexts
[] [{\getmarking[chapter]}\hboxpagenumber{\hfill\pagenumber}]
 [\hboxpagenumber{\pagenumber\hfill}{\getmarking[part]}][]



\setuppagenumbering
  [alternative=doublesided]

\setupfootertexts
  [margin]
  [\leftaligned {A}]
  [\rightaligned{B}]
  [\leftaligned {C}]
  [\rightaligned{D}]

\setuplayout
  [backspace=4cm,
   width=12cm]

\showframe

\starttext
\dorecurse{4}{\dontleavehmode\page}
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] setupquotation[method=font] problem

2021-06-24 Thread Wolfgang Schuster

Hans Hagen schrieb am 24.06.2021 um 23:47:

On 6/24/2021 10:00 PM, Rik Kabel wrote:
I get no quotation marks at all (and no protrusion) with 
\quotation{text} using \setupquotation[method=font]. This seems to 
have started earlier this month, but for the record, I am using 
ConTeXt  ver: 2021.06.24 19:19 LMTX.


Wolfgang's example from a related thread earlier this month 
(https://www.mail-archive.com/ntg-context@ntg.nl/msg98669.html) 
should have quotation marks and protrusion for the third line, 
matching the second line.


    \definefontfeature
   [default]
   [default]
   [protrusion=quality,expansion=quality]

    \setupquotation
   [method=font]

    \setupalign[hz,hanging]

    \starttext

    oh hi there

    “you are so”

    \quotation{you are so}

    here here

    \stoptext

Similarly with \setupquote. Help, please!

Let's see what Wolfgang says ...


The change on line 855 and 865 in typo-del.mkxl from \currentparentXXX 
to \currentXXXparent is wrong.


\def\typo_delimited_fontdriven_e
  {\typo_delimited_stop_content
 % \usedlanguageparameter{\c!right\currentparentdelimitedtext}% was: 
\currentdelimitedtext

   \usedlanguageparameter{\c!right\currentdelimitedtextparent}%
   \dostoptagged
   \typo_delimited_pop
   \endgroup}

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] typescripts and variants

2021-06-23 Thread Wolfgang Schuster

denis.ma...@unibe.ch schrieb am 23.06.2021 um 11:05:

Hi,


Am 23.06.2021 um 08:43 schrieb Henning Hraban Ramm :



Am 23.06.2021 um 00:17 schrieb denis.ma...@unibe.ch:

Hi
In my current project I need to use different variants if the Noto
Serif font (Regular, Medium, Semi Condensed Bold, Regular ExtraBold.) Is

my understanding of typescripts correct that I cannot have bold and extrabold
in the same typescript? And that I need a typescript for regular and one for the
semicondensed variants?

You can combine whatever you like in one typescript, but you’re restricted to

six styles (regular, italic, slanted, bold, bold italic, bold slanted). You can 
just
“abuse” the italic or slanted styles for your other weights.

... or use roman styles, if you don’t need roman.

Thanks for your help.
After playing a bit more with the different variants for loading fonts it looks 
like I don't even need to use typescripts. \definefontfamily works just as good:

\definefontfamily[mainface][rm][Noto Serif]
\definefontfamily[mainface-semicond][rm][Noto Serif]
   [tf=file:NotoSerif-SemiCondensed.ttf,
   it=file:NotoSerif-SemiCondensedItalic.ttf,
   bf=file:NotoSerif-SemiCondensedBold.ttf,
   bi=file:NotoSerif-SemiCondensedBoldItalic.ttf]

But, do typescripts have any advantages over that approach?


Even when you use \definefontfamily the internal font handling relies on 
the typescripts.


The advantage of hand written (or generated) typescripts is better 
reliability, most of the time you pass just a name to \definefontfamily 
and some font is chosen for each style but this can fail because all 
depends on the information in the font files. When you use a typescript 
each alternative is associated with a certain font file and almost no 
guess work is required.



Then, for fonts used only in specific contexts, you can also do something like
  
\definefont [TitleFont] [notoserifsemicondensedextrabold]

and use that with \TitleFont
But you will then also need \TitleMonoFont etc, whereas it seems easier to keep 
things consistent with \definefontfamily...

One thing I'm wondering about: Would it be possible to add a easy mechanism to 
switch to different variants of a font, say, to use the SemiCondensed variant 
or the ExtraCondensed or so? (Or does that already exist?)
And, what about adding more styles so that you could have Light, Medium, 
SemiBold, Bold, ExtraBold, Black etc. all defined in a single fontfamily? If 
that was available each font family would then define all the styles for one 
variant (SemiCondensed, ExtraCondensed, Condensed, each with 18 styles!)


You can add more alternatives (\it, \bf ...) to the font mechanism but 
this requires additional settings (\definebodyfont ...) to get it 
working. A limiting factor is that you have to stick to two-letter names 
for each alternative and the easier solution is to create additional 
typefaces.


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] Setup output name from within ConTeXt document

2021-06-22 Thread Wolfgang Schuster

Pascal Pascali schrieb am 22.06.2021 um 13:55:

Dear ConTeXt community,

Is it possible to set the file name of the output from within the document?
I can do it on the command line by adding --result="CustomName.pdf", but I'd 
need to do it according to certain variables in the content of the file itself...


You can set a different name at the first line of your document, e.g.

% result="newfilename"

but this is only a alternative to the result-argument on the command line.


Setupinteraction[title="CustomName.pdf"] will just set the internal pdf name, 
not the file system name.


With \setupinteraction you can set/change metadata values but not the 
file name.


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] Concatenate buffers without newline

2021-06-22 Thread Wolfgang Schuster

Pascal Pascali schrieb am 22.06.2021 um 20:21:

Hello!

Is there a way to concatenate predefined blocks or buffers without ConTeXt 
printing newlines between them?

I'd like to have something like:

\startBitOfData [name1]
Some part of paragraph here.
\stopBitOfData

\startBitOfData [name2]
Some more going on here.
\stopBitOfData


And then:

\getBitOfData [name1]
\getBitOfData [name2]

Outputting:
Some part of paragraph here. Some more going on here.

Not outputting:
Some part of paragraph here.
Some more going on here.


Thank you for any tip!


Please send a *working* minimal example next time.

\starttext

\startbuffer[first]
First paragraph.
\stopbuffer

\startbuffer[second]
Second paragraph.
\stopbuffer

\start
  \setupbuffer[before=,after=]
  \getbuffer[first]%
  \getbuffer[second]
\stop

\blank

\getbuffer[first,second]

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


Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-22 Thread Wolfgang Schuster

Otared Kavian schrieb am 22.06.2021 um 15:49:

Dear Dalyoung, dear Mikael

Thank you both for your explanations: indeed this « whatever » command 
in MetaPost is magic and very useful (I am not sure whether it is a 
command only in MetaFun, or it exists also in the original MetaPost).


You have to go further back, whatever already existed in MetaFont.

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] xtable as list item (again)

2021-06-16 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 15.06.2021 um 19:57:

Dear list,

I already posted a similar question some time ago
(https://mailman.ntg.nl/pipermail/ntg-context/2021/101021.html), but I
got no reply.

I have the following sample:

   \showframe\showstruts
   \starttext
   \startitemize[n][margin=yes]
   \item a
   \item
 \startembeddedxtable[option={stretch, width}]
 \dorecurse{25}{\startxrow
   \startxcell \Characters{\recurselevel}\stopxcell
   \startxcell \characters{\recurselevel}\stopxcell
 \stopxrow}
   \stopembeddedxtable



\item
  \startfixed
% put your table here
  \stopfixed

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] Natural tables | 2 tables in a page seem to interfere with each other?

2021-06-16 Thread Wolfgang Schuster

Ramkumar KB schrieb am 16.06.2021 um 17:33:

Hi,

I have 2 "natural tables" in one page and it appears that I have to 
(manually) reset the columns in the second table, for those columns 
that I had set specific width. See the example below -


Maybe I am missing a trick or two - or this indeed is the desired 
behavior? Thank you very much.


\setupTABLE[r][each][height=0.5cm,frame=on] 
\setupTABLE[c][each][width=0.6cm] 
\setupTABLE[r][1][height=0cm,topframe=off] 
\setupTABLE[c][1][width=5cm] \setupTABLE[c][4,7][width=3cm] \bTABLE 
... \eTABLE \setupTABLE[r][each][height=1.3cm,topframe=on] 
\setupTABLE[c][each][width=1.7cm] 
\setupTABLE[c][1,4,7][width=1.7cm] %This is to reset from the previous Table\setupTABLE[r][1][height=0cm,topframe=off] 
\setupTABLE[c][2][width=0.3cm,frame=off] \bTABLE ... \eTABLE


When you need a certain setup for multiple tables you can put all 
\setupTABLE commands in a setups-environment and load these settings at 
the start of the table, e.g.



\startsetups [tablesettings]
    \setupTABLE [r] [1] [..,..=..,..]
    \setupTABLE [c] [2] [..,..=..,..]
\stopsetups

\bTABLE[setups=tablesettings]
    ...
\eTABLE


When you need individual settings for each table add \start before the 
setup-commands and \stop after the table, this keeps all setups local to 
the current table, e.g.


\start

\setupTABLE [r] [1] [..,..=..,..]
\setupTABLE [c] [2] [..,..=..,..]

\bTABLE
    ...
\eTABLE

\stop


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] [#1] CJK regression? | lmtx-20210613 .

2021-06-15 Thread Wolfgang Schuster

Richard Mahoney schrieb am 13.06.2021 um 21:42:

I'm wondering if there has been a regression in the rendering of
CJK recently? I'm attaching two screenshots from the same code:
one with lmtx-20210509 (correct); and the other lmtx-20210613
(incomplete).

This is what I have in the setups:

% Support for Japanese

\setscript[hanzi]

\starttypescript[serif][sourcehanserifregular]

\definefontsynonym[Serif][name:sourcehanserifregular][features={aalt,hist,kern,liga}]

\stoptypescript

\definetypeface[sourcehanserifregular][rm][serif][sourcehanserifregular]

\define[1]\JA{\language[ja]{{\setscript[hanzi]\sourcehanserifregular #1}}}



You can try to play with this font setup, all settings within the 
setups-block are applied when you change the language.



% font setup for english ...

\definefontfamily [source] [rm] [Source Serif]

\switchtobodyfont [source]

% font setup for japanese

\definefontfamily [source-han] [rm] [Source Han Serif]

\startsetups [japanese]
  \switchtobodyfont [source-han]
  \setscript [hanzi]
\stopsetups

\setuplanguage
  [ja]
  [setups=japanese]

\starttext
English {\ja 日本語}
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \startplacetable[location=none] doesn't have a "Table X" label, but \startplacetable[location=force] does

2021-06-14 Thread Wolfgang Schuster
T. Kurt Bond  schrieb am Mo., 14. Juni 2021, 09:23:

> I've got three questions:
>
>1.
>
>I've got a document with some xtables. If I use
>\startplacetable[location=none] the tables *don't* have a "Table X"
>label, but they float and end up in locations where I don't want them. If I
>use \startplacetable[location=force] the tables *do* have a "Table X"
>label (which I don't want), but the tables *do* show up where I want
>them, that is, they don't float.
>
>How do I get rid of the "Table X" label when I use
>\startplacetable[location=force]?
>
>
\startplacetable [location={force,none}]

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] dictionary example

2021-06-12 Thread Wolfgang Schuster

jbf schrieb am 12.06.2021 um 12:39:
I am wondering if someone has tried a two-column dictionary layout 
with ConTeXt. What is confounding me at the moment is the gap between 
entries in the columns. My MWE is below. Try as I may, I seem unable 
to get rid of those gaps! I obviously want each entry to follow on 
from the other. I'm obviously not doing things right! If someone has 
already set up a dictionary and has a model they could share I'd be 
grateful. I'm attaching a screenshot of the result from the code below.


The gaps between the entries are the subsubject titles where you omit 
the title. Omitting the title for a heading doesn't mean no space is 
inserted, to change this you can use the 'placehead=hidden' setting but 
I guess your goal is to add a mark entry for each description.


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
___


  1   2   3   4   5   6   7   8   9   10   >