[NTG-context] drop cap (initial) and indentation

2021-07-18 Thread Gerben Wierda
With the following minimal example:

\definemeasure[CAindent][12pt]
% Every chapter body text starts with a drop cap:
\setupinitial[n=3,m=1,-\measure{CAindent}]]
\setupindenting[yes,\measure{CAindent}]

\starttext
\placeinitial S{\bf{\kap uppose we}} have a system for the approval of
loans. \input knuth
\stoptext

both the initial and the bold stuff after it is indented. With hoffset I can 
move the initial, but not what comes after. I have been experimenting but 
haven’t found a way to solve this.

Gerben Wierda (LinkedIn )
R Enterprise Architecture  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate 

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

___
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] Problem getting lmtx version up

2021-07-18 Thread jdh

Mojca,
   sorry I missed you query about the location of the image zip.

I used:
 
https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2020-05-28/2020-05-27-raspios-buster-arm64.zip

But the lite version you mention below should use the same library.

> Does this look like the correct place for fetching the images with Debian 
> 10?
> 
> https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2021-05-28/
> 
> Mojca

Regards,
  Jay

p.s. I'm away from the rpi now but will try out the new runtime prog you sent 
and get back to you.

--- END
___
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] Problem getting lmtx version up

2021-07-18 Thread Mojca Miklavec
Jdh,

Can you please try again with this binary?
https://dl.contextgarden.net/build/luametatex/aarch64-linux/

On Fri, 16 Jul 2021 at 22:16, Alan Braslau wrote:
>
> Freebsd on arm64 is now a Tier 1 architecture. ;-)

I figured out that there are should-be-working-out-of-the-box images
for FreeBSD for RPi.
Maybe we just need to fetch another one for the farm ;)

I installed

https://download.freebsd.org/ftp/releases/VM-IMAGES/13.0-RELEASE/aarch64/Latest/
inside
https://github.com/utmapp/UTM
but I had some issues figuring out how to install packages. Maybe
something for another weekend.

I also got Debian 10 working inside UTM and it resulted in pretty fast
compilation.
(I still need to set up automatic start-up after the power outage.)
Tests with Windows ARM64 come next. The installation procedure seems
to have started at least,
I guess that the support is much better now than what it used to be
when M1 got released.

Mojca
___
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] mp-geo Metapost package with ConTeXt

2021-07-18 Thread Henning Hraban Ramm

> Am 17.07.2021 um 20:50 schrieb Hans Hagen :
> 
> On 7/17/2021 2:42 PM, Arthur Rosendahl wrote:
>> On Sat, Jul 17, 2021 at 12:53:33PM +0200, Hans Hagen wrote:
>>> Just as an example, the context meeting is att the attached location:
>>> 
>>>   50°45’7” / 5°35’19”
>>> 
>>> https://www.openstreetmap.org/export#map=18/50.75175/5.58883
>>   If you want official data you can try the Belgian cadastre:
>> https://data.gov.be/en/dataset/tt098dcb-f5c7-49b8-8e0b-7c3811630d85 :-)
> Yet another format? No way. I managed to go big so for instance the area 
> where the colorado user group is located:
> 
>  https://www.openstreetmap.org/export#map=12/40.5117/-104.9496
> 
> produces a 122 MB osm file
> 
>  https://overpass-api.de/api/map?bbox=-105.1817,40.4096,-104.9493,40.6272
> 
> that gets turned into a 15 MB metapost file that becomes an 8.7 MB pdf file. 
> Unfortunately it takes 36 seconds to be produced (9 seconds xml loading, 17 
> seconds map processing, 3 seconds mp -- which is not that bad -- and some 
> 2.56 seconds pdf production) plus some 3 GB memory but that's still under my 
> limit. Maybe a decent modern desktop can do it in half that time, who knows.
> 
> Of course the rather detailed colorfull image is a challenge for the pdf 
> viewer but (sumatra) it manages and one can then zoom in a lot. I tried the 
> whole of slovenia to prove myself to mojca but overran my quota for that api 
> (and I'm not in the mood to install all kind of stuff here).

I downloaded a few countries for you:
https://sedna.fiee.net/d/328d53f6a3e04b23aee2/

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] (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] (no subject)

2021-07-18 Thread Pablo Rodriguez
On 7/17/21 8:38 AM, T. Kurt Bond wrote:
> I have the following file:
>
> \setupfloat[table][default=nonumber]
>
> \starttext
> \startplacetable[title={Table With A Caption},location=force]
>   \bTABLE
>   \bTR\bTD r2c1 \eTD\bTD r2c2\eTD\eTR
>   \eTABLE
> \stopplacetable
> \stoptext
> [...]
> Why does the last table have "Table 1", when there is
> a \setupfloat[table][default=nonumber]?

Hi Kurt,

I think this might be what you intend:

   \setupcaption[table][number=no]

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

As to your quetsion, I have no idea why this happens.

Just in case it might help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] LMTX and lettrine

2021-07-18 Thread Pablo Rodriguez
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).

I hope it helps,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] date formatting

2021-07-18 Thread Hans van der Meer

From Wikipedia:

In English-language  
outside North America (mostly in Anglophone Europe and some countries in 
Australasia), full dates are written as 7 December 1941 (or 7th December 1941) 
and spoken as "the seventh of December, nineteen forty-one" (exceedingly common 
usage of "the" and "of"), with the occasional [my emphasis] usage of December 
7, 1941 ("December the seventh, nineteen forty-one"). In common with most 
continental European usage, however, all-numeric dates are invariably ordered 
dd/mm/.

From this I infer that \language[en] or \language[en-gb] should format dates 
normally in day-month-year order, reserving mont-day-year for \language[us] 
i.e. language[en-us].

But in ConTeXt both \language[en] and \language[en-gb] produce the us ordering 
for \currentdate. I would be pleased if ConTeXt could be changed to the above 
mentioned normal behaviour for english. That is [en] and [en-gb] produce the 
day-month-year order and that [us] and [en-us] month-day-year.

dr. Hans van der Meer


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] languages

2021-07-18 Thread Hans van der Meer
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. 

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.

dr. Hans van der Meer


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] LMTX and lettrine

2021-07-18 Thread Gerben Wierda
I am trying to find out how to move this setup in mkii

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

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

Gerben Wierda (LinkedIn )
R Enterprise Architecture  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate 

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