[NTG-context] Re: Figure reference failing

2024-04-10 Thread Willi Egger
Hm, I see.

This question appeared while using the tug-boat-style. Taking the example at 
the end of the style I adapted my article accordingly. However I missed the 
point to enable the mode “columns”…

Thanks for the explanation!
Willi

> On 10 Apr 2024, at 14:21, Hans Hagen  wrote:
> 
> On 4/10/2024 1:30 PM, Taco Hoekwater wrote:
>>> On 10 Apr 2024, at 13:04, Willi Egger  wrote:
>>> 
>>> Hello,
>>> 
>>> It seems, that the referencing mechanism is failing. I detected this with 
>>> the January version and the current version: 2024.04.01 08:59.
>>> 
>>> Could some one confirm this?
>> It fails for me as well, when "mode=columns" is used.
> compare with and without mode columns:
> 
> \starttext
> 
>\enablemode[columns]
> 
>As we see \doifelsemode {columns} {in \in {table} [demo-1]} {below} we can 
> have
>more than one cell in a row.
> 
>\startplacetable[mode=columns,reference=demo-1]
>\externalfigure[cow][width=\textwidth]
>\stopplacetable
> 
>\samplefile{tufte}
> 
> \stoptext
> 
> so basically we have an "at the spot" placement or a float
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Figure reference failing

2024-04-10 Thread Willi Egger
Hello,

It seems, that the referencing mechanism is failing. I detected this with the 
January version and the current version: 2024.04.01 08:59.

Could some one confirm this?

Kind regards
Willi

test.pdf
Description: Adobe PDF document


test.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Underbar

2024-03-28 Thread Willi Egger
Thank you Wolfgang!

This is what I needed.

Willi

> On 28 Mar 2024, at 17:56, Wolfgang Schuster 
>  wrote:
> 
> Willi Egger schrieb am 28.03.2024 um 17:23:
>> Hello everybody,
>> 
>> I have a text, where a couple of lines are typeset with \underbar. — To me 
>> this underbar is a fraction to near the text. So I wanted to use 
>> \setupbar[…] to change the offset. Unfortunately nothing happens whatever I 
>> try.
>> 
>> MWE:
>> 
>> \setupbar[offset=-.5,dy=-.5]
> 
> \setupbar[underbar][offset=-0.5]
> 
> Wolfgang
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Underbar

2024-03-28 Thread Willi Egger
Hello everybody,

I have a text, where a couple of lines are typeset with \underbar. — To me this 
underbar is a fraction to near the text. So I wanted to use \setupbar[…] to 
change the offset. Unfortunately nothing happens whatever I try.

MWE:

\setupbar[offset=-.5,dy=-.5]

\starttext
Hello!
\blank
\underbar{Good buye!}
\stoptext

I am using the latest version of ConTeXt from March 11.

Do I miss something?

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: command line arguments

2024-03-19 Thread Willi Egger
Hello Hraban,

I puzzled a while. To me the —arguments= option does not work. I saw then on 
the Wiki, that one can also add documentarguments as —schema=2UP 
—numberofpages=16.

I further changed to \startdocument … \stopdocument.

Please look at the attached file

Willi

impositiontest-2.tex
Description: Binary data


> On 19 Mar 2024, at 21:41, Hraban Ramm  wrote:
> 
> Following up on the other imposition question, I'm trying to make an example 
> file that shows an imposition schema according to command line arguments.
> 
> This way it works for the number of pages, as used in \dorecurse{\Pages}{…}, 
> but not for the imposition schema. Typesetting \Schema looks right, but 
> \setuparranging doesn’t work. Where's my error?
> 
> \def\Schema{\doifelsedocumentargument{schema}{\getdocumentargument{schema}}{1*8}}
> \def\Pages{\doifelsedocumentargument{numberofpages}{\getdocumentargument{numberofpages}}{16}}
> 
> \setuparranging[\Schema]
> 
> 
> Find the full example attached, I call it like
> 
> context --autopdf=auto --arrange impositiontest.tex --schema=TRYPTICHON 
> --numberofpages=32
> 
> Hraban
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: can we do binding correction?

2024-03-19 Thread Willi Egger
Hi Hraban,

> On 19 Mar 2024, at 21:56, Hraban Ramm  wrote:
> 
> Thank you Willi!
> 
> Generally I know for what binding correction is used, I just never tried to 
> set it up. If I look carefully at one of our printed booklets, the printshop 
> also didn’t. So I'd need pageshift without applying imposition (setting it up 
> wouldn’t hurt).

I organise this always with correction to the backspace.

> 
> I didn’t think about vertical pageshift, but of course that’s also needed for 
> cross-folded sheets.
> 
> I'm not sure how (horizontal) pageshift is supposed to work with full page 
> images without introducing white borders, but bleed at the inner edge should 
> be enough.
> 
> Theoretically the shift value should be the same as the paper thickness 
> (don’t you think?), but there’s some deformation involved, so a factor might 
> make sense?

I think that this would be quite cumbersome, paper thickness of higly coated 
papers vs. novel-printing paper… I believe one would have to establish this 
thickness for each project unless the same paper is used...


> Unfortunately I threw out my old books on printing technology long ago, and 
> my newer one doesn’t cover bookbinding (I’m not at home anyway).

I think, that many printshops do not possess neither old books including 
bookbinding nor do they care about the wishes of the binder … Pity, that you 
threw them out, but i understand, that circumstances might be such that you 
have to take decisions…

Willi
> 
> Hraban
> 
> Am 19.03.24 um 17:01 schrieb Willi Egger:
>> Hi Hraban,
>> 
>> I think we should clarify this.
>> 
>> Binding correction is a fixed amount of whitespace in the spine added to the 
>> inner white-space. This is to ensure, that the binding, which is consuming 
>> white-space, keeps the inner white-space optically as intended..
>> 
>> The page shift mechanism works only with imposition enabled. This ensures, 
>> that the type-setting area does not creep towards the spine because multiple 
>> sheets of paper are folded in the spine.
>> 
>> I doubt whether it is enough to have the measure of the thickness do 
>> determine this creeping effect, because we are making folds which are 
>> probably more circles than just adding thickness of paper.
>> 
>> 
>> Willi
>> 
>>> On 18 Mar 2024, at 17:35, Hraban Ramm  wrote:
>>> 
>>> 
>>> Am 17.03.24 um 23:54 schrieb Wolfgang Schuster:
>>>> Hraban Ramm schrieb am 17.03.2024 um 22:48:
>>>>> Hi, this question was rised in my ConTeXt beginners workshop* at Chemnitz 
>>>>> Linux Days today:
>>>>> 
>>>>> Can I configure binding correction for saddle-stitched or thread-bound 
>>>>> booklets, and if, does it only work with arranging (imposition) or can I 
>>>>> enable it somehow for the layout (if the printshop does the imposition)?
>>>> 1. \definepageshift + \setuppageshift
>>>> 
>>>> 2. \setuplayout[horoffset=]
>>>> 
>>>>> Also I recognized I'm not sure about the difference of the layout 
>>>>> parameters backspace and cutspace.
>>>> backspace is the inner margin and cutspace the outer
>>>> 
>>> Hi Wolfgang, thank you! Seems like I was too dense to understand the 
>>> description for the \setuplayout parameters in the wiki (and there are more 
>>> that I never used, oh my…), and since I never use ConTeXt’s imposition for 
>>> serious print products (and never set up a scheme myself), I didn’t know 
>>> about pageshift.
>>> 
>>> Ok, if I leave imposition to the printshop and they don't do binding 
>>> correction in their workflow, I'd need to set horoffset differently for 
>>> every single page (i.e. first, second, second-to-last and last the same; 
>>> 3th, 4th and from back the same etc.). Or is pageshift applied 
>>> independently from arranging?
>>> 
>>> And then, it makes no sense to add the same value all the time. I don’t 
>>> know if BCOR works this way in LaTeX, but one value (paper thickness) 
>>> should be enough in combination with an imposition schema. I.e. if I define 
>>> a paper thickness and the number of pages that are in one booklet (as a 
>>> single booklet or part of a "proper" book), then the page shift should work 
>>> automatically.
>>> 
>>> Well, for a single booklet, it could. In a book, booklets can have 
>>> different numbers of pages, and then you'd need to define a list… Okay, too 
>>> c

[NTG-context] Re: can we do binding correction?

2024-03-19 Thread Willi Egger
Hi Hraban,

I think we should clarify this.

Binding correction is a fixed amount of whitespace in the spine added to the 
inner white-space. This is to ensure, that the binding, which is consuming 
white-space, keeps the inner white-space optically as intended..

The page shift mechanism works only with imposition enabled. This ensures, that 
the type-setting area does not creep towards the spine because multiple sheets 
of paper are folded in the spine.

I doubt whether it is enough to have the measure of the thickness do determine 
this creeping effect, because we are making folds which are probably more 
circles than just adding thickness of paper.


Willi

> On 18 Mar 2024, at 17:35, Hraban Ramm  wrote:
> 
> 
> Am 17.03.24 um 23:54 schrieb Wolfgang Schuster:
>> Hraban Ramm schrieb am 17.03.2024 um 22:48:
>>> Hi, this question was rised in my ConTeXt beginners workshop* at Chemnitz 
>>> Linux Days today:
>>> 
>>> Can I configure binding correction for saddle-stitched or thread-bound 
>>> booklets, and if, does it only work with arranging (imposition) or can I 
>>> enable it somehow for the layout (if the printshop does the imposition)?
>> 
>> 1. \definepageshift + \setuppageshift
>> 
>> 2. \setuplayout[horoffset=]
>> 
>>> Also I recognized I'm not sure about the difference of the layout 
>>> parameters backspace and cutspace.
>> 
>> backspace is the inner margin and cutspace the outer
>> 
> Hi Wolfgang, thank you! Seems like I was too dense to understand the 
> description for the \setuplayout parameters in the wiki (and there are more 
> that I never used, oh my…), and since I never use ConTeXt’s imposition for 
> serious print products (and never set up a scheme myself), I didn’t know 
> about pageshift.
> 
> Ok, if I leave imposition to the printshop and they don't do binding 
> correction in their workflow, I'd need to set horoffset differently for every 
> single page (i.e. first, second, second-to-last and last the same; 3th, 4th 
> and from back the same etc.). Or is pageshift applied independently from 
> arranging?
> 
> And then, it makes no sense to add the same value all the time. I don’t know 
> if BCOR works this way in LaTeX, but one value (paper thickness) should be 
> enough in combination with an imposition schema. I.e. if I define a paper 
> thickness and the number of pages that are in one booklet (as a single 
> booklet or part of a "proper" book), then the page shift should work 
> automatically.
> 
> Well, for a single booklet, it could. In a book, booklets can have different 
> numbers of pages, and then you'd need to define a list… Okay, too 
> complicated. It’s the printshops's responsibility anyway, and nobody 
> complained about my books so far. (I'm not perfectionist enough to care.)
> 
> Hraban
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: regular online meet-up

2024-02-12 Thread Willi Egger
Hi Hraban,

hm there is a incongruence of the date. Either it is Wednesday the 14th of 
February or Tuesday the 13th of February… Which correct?

Cheers 
Willi

> On 10 Feb 2024, at 23:01, Henning Hraban Ramm  wrote:
> 
> You’re invited to our regular online meet-up, this upcoming
> Wednesday, February 13th, 19:00 CET (UTC+1)
> 
> at https://lecture.senfcall.de/hen-rbr-rku-oke
> (same, but shorter: https://u.mtxrun.eu/ctxmtg)
> 
> ConTeXt users of all levels are welcome!
> 
> Do you have a subject that you’d like to talk about?
> (I hope I’ll manage to show a poster draft…)
> 
> Looking forward to seeing you,
> Hraban
> 
> 
> (Same blurb as always:)
> 
> [Howto]
> * No special software installation required; most modern browsers should work 
> (WebRTC required).
> * Open the URL above, accept the privacy statement,
> * enter your name,
> * click "join" (or "start" if you’re the first),
> * click "with microphone", allow your browser to access it, check the audio.
> * Your microphone is muted if you join. Activate microphone and/or camera 
> with the buttons at the bottom.
> * Minimize the default presentation with the "screen" button, bottom right.
> 
> * If you’d like to share your screen or upload a file, you can make yourself 
> the presenter: Click on your user name, change the setting, then you’ll see 
> the "screen sharing" button beside the camera button; also there’s now 
> "manage presentations" behind the "plus" button.
> Beware there is only one presenter at a time, so don’t kill someone else’s 
> presentation.
> 
> [Technical hints]
> * Sound is usually better if you use a headset (less noise for everyone).
> * Connection problems are mostly due to low bandwidth or high latency on your 
> side, e.g. with mobile connections.
> * Sometimes leaving and re-entering helps.
> * If audio/video doesn’t work for you, you can still use the text chat.
> * Screen sharing needs a lot of bandwidth.
> * BigBlueButton documentation applies: 
> https://bigbluebutton.org/teachers/tutorials/
> 
> [Netiquette]
> * Please use a name that we recognize from here. Some feel uncomfortable with 
> anonymous lurkers.
> * Mute your microphone while you’re not talking.
> * It’s nice to show your face at least when you join.
> * If there are connection problems, stop camera sharing.
> * The room is set to “everyone’s a moderator“, I trust you...
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: 2024

2024-01-02 Thread Willi Egger
Wow Hans!

As Fabrice mentioned, this is really like kind of a language and messaging from 
an ancient time… The shapes are genius.

I believe playing this game with open cards is already a challenge to find the 
matching pairs. I just imagine how difficult it would be to play it as an old 
fashioned memory with the pictures covered… At least one would have to reduce 
the number of pairs significantly…

Great thing, thank you so much!

Willi



> On 1 Jan 2024, at 13:28, Hans Hagen  wrote:
> 
> Hi,
> 
> As a side effect (spin off) of this years xmas card we have a new years 
> gimmick:
> 
>   https://www.pragma-ade.nl/2023
> 
> Of course it screams metapost but tex and lua are also involved. See it as 
> compensation for the lack of an end-of-year update. The last page of the 
> result has a bit of explanation.
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: error: Control sequence expected instead of undefined

2023-12-25 Thread Willi Egger
Hello,

I just copied your example code and run it on version 2023-09-26. It compiled 
just fine. 

Cheers

Willi

> On 25 Dec 2023, at 16:09, Jeong Dal via ntg-context  
> wrote:
> 
> Hi,
> 
> I got an error message as following:
> 
> Control sequence expected instead of undefined
> 
> If I comment out the “\externalfigure[][]” line, then there is no error 
> message.
> 
> I don’t know what is wrong in the sample code.
> Please check the code.
> 
> Thank you for reading.
> 
> Best regards,
> 
> Dalyoung
> 
> %%%*
> \starttext
> \in{figure}[fig:kruskal1] is my point.
> 
> \startplacefigure[location=,reference=fig:kruskal1,title={}]
> \externalfigure[cow][width=.5\makeupwidth]
> \stopplacefigure
> \stoptext
> %
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] Layout with equal margins.

2023-05-21 Thread Willi Egger via ntg-context
As Wolfgang mentions, the whitespace at the left margin is set with 
“backspace=60pt”

If the whitespace at the right margin of the papersize should be equal to the 
backspace you also can use

\setuplayout
  [backspace=60pt,
   width=middle,
   topspace=“your topspace”,
   height=middle]


Kind regards

Willi


> On 21 May 2023, at 13:56, Pawel Urbanski via ntg-context  
> wrote:
> 
> Dear Friends,
> 
> I played wih hte setup and read the posts on the list. Apparently the 
> mechanism for setting different margins can be confusing at times. At least, 
> it is for a beginner.
> 
> 
> I want to create 2 versions of my book:
> 
> Version 1: Goes to printing with different inner and outer margins due to 
> binding and so on,
> 
> Version 2: Can be downloaded and the left and right margins are equal size.
> 
> 
> I want ot keep the 6x9 size of a page, which is: 432x648pt. The sum of 
> margins in both cases is 120pt. It leaves 312pt for the text content.
> 
> 
> When I do hte following:
> 
> \setuplayout[
> 
> alternative=doublesided, width=fit, height=fit,
> 
> leftmargin=60pt, leftmargin=60pt, ...]
> 
> The makeup width and text width is calculated as 472pt and the margin appears 
> to be set just on one side.
> 
> I set both cutspace and backspace to 0pt. I assumed that either value is a 
> particular area of the page.
> 
> 
> Has any one of you handled such a case? I'll be very glad to get some 
> directions.
> 
> I can create a simple document with modes or documents to illustrate my case 
> if needed...
> 
> 
> Thank you,
> 
> Pawel
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] Kaktovik numerals

2023-04-20 Thread Willi Egger via ntg-context
Hans thank you very much for this update. Indeed now automatic conversion comes 
out correctly.

Willi

> On 19 Apr 2023, at 23:41, Hans Hagen via ntg-context  
> wrote:
> 
> On 4/19/2023 10:45 PM, Willi Egger via ntg-context wrote:
>> Hello Gavin,
>> thank you so much for your input. — Indeed you are right. Please find 
>> attached the corrected version.
>> Willi
>>> On 19 Apr 2023, at 20:58, Gavin via ntg-context  wrote:
>>> 
>>> Hi Willi,
>>> 
>>> What fun! I think I found a couple math items to correct.
>>> 
>>> 1) The second line of the tables at the top of page 2 should be:
>>>1000' 100, 10, 1; 8000, 400, 20, 1
>>> 
>>> 2) For the year conversion: 2023 = 5x20^2 + 1x20 + 3. (Your 0 should be my 
>>> 1). This will give a three digit Kaktovik numeral. You have 4 digit 
>>> Kaktovik numerals for 2023, with both a 0 and a 1.
> je kunt direct dat nummer converteren maar blijkbaar gaf ik de verkeerde 
> volgorde uit:
> 
> \useMPlibrary[kaktovik] % de officiele manier
> 
> \definefontfeature
>  [default]
>  [default]
>  [metapost=kaktovik]
> 
> \setupbodyfont[dejavu]
> 
> \starttext
> 2023 \kaktoviknumerals{5}\kaktoviknumerals{1}\kaktoviknumerals{3}
> 
> \kaktoviknumerals{2023} % deze split dus voor je, order fixed
> 
> \stoptext
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] Kaktovik numerals

2023-04-19 Thread Willi Egger via ntg-context
Hello Gavin,

thank you so much for your input. — Indeed you are right. Please find attached 
the corrected version.



kaktovik-numerals-info.pdf
Description: Adobe PDF document


kaktovik-numerals-info.tex
Description: Binary data

Willi

> On 19 Apr 2023, at 20:58, Gavin via ntg-context  wrote:
> 
> Hi Willi,
> 
> What fun! I think I found a couple math items to correct.
> 
> 1) The second line of the tables at the top of page 2 should be:
>1000' 100, 10, 1; 8000, 400, 20, 1
> 
> 2) For the year conversion: 2023 = 5x20^2 + 1x20 + 3. (Your 0 should be my 
> 1). This will give a three digit Kaktovik numeral. You have 4 digit Kaktovik 
> numerals for 2023, with both a 0 and a 1.
> 
> Gavin
> 
> 
>> On Apr 19, 2023, at 12:36 PM, Willi Egger via ntg-context 
>>  wrote:
>> 
>> Hi all,
>> 
>> after playing around and watching YouTube the attached  composition is made…
>> 
>> Willi
>> 
>> 
>>> On 18 Apr 2023, at 10:57, Henning Hraban Ramm via ntg-context 
>>>  wrote:
>>> 
>>> I just came across this thread about the base-20 system of the Inuit people 
>>> and the numerals invented for it in the 1990s:
>>> https://mathstodon.xyz/@johncarlosbaez/110215432175491555
>>> 
>>> This makes simple calculations just beautiful.
>>> 
>>> Hraban
>>> ___
>>> If your question is of interest to others as well, please add an entry to 
>>> the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl / 
>>> https://www.ntg.nl/mailman/listinfo/ntg-context
>>> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : https://contextgarden.net
>>> ___
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> https://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : https://contextgarden.net
>> ___
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] Kaktovik numerals

2023-04-19 Thread Willi Egger via ntg-context
Hi all,

after playing around and watching YouTube the attached  composition is made…

Willi


kaktovik-numerals-info.pdf
Description: Adobe PDF document


kaktovik-numerals-info.tex
Description: Binary data


> On 18 Apr 2023, at 10:57, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> I just came across this thread about the base-20 system of the Inuit people 
> and the numerals invented for it in the 1990s:
> https://mathstodon.xyz/@johncarlosbaez/110215432175491555
> 
> This makes simple calculations just beautiful.
> 
> Hraban
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] Kaktovik numerals

2023-04-19 Thread Willi Egger via ntg-context
Hi everybody,

because I am not a mathematician, I looked on the internet for more 
explanations for the Katovik numerals. I found on YouTube films, worthwhile to 
enjoy:

https://www.youtube.com/watch?v=fIZB4bRwxqI_channel=Dave%27sMathVideos

https://www.youtube.com/watch?v=ObRFHiU_r9I_channel=TheFerret

Willi

> On 18 Apr 2023, at 10:57, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> I just came across this thread about the base-20 system of the Inuit people 
> and the numerals invented for it in the 1990s:
> https://mathstodon.xyz/@johncarlosbaez/110215432175491555
> 
> This makes simple calculations just beautiful.
> 
> Hraban
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] Kaktovik numerals

2023-04-18 Thread Willi Egger via ntg-context
Hans, genial. Once you told to me “hoe krijg je het voor elkaar…”. Now I tell 
you, how do you get this done… the mail has not even had the time to “cool” 
down and you post this. I am astonished.

Kind regards

Willi

> On 18 Apr 2023, at 15:01, Hans Hagen via ntg-context  
> wrote:
> 
> On 4/18/2023 10:57 AM, Henning Hraban Ramm via ntg-context wrote:
>> I just came across this thread about the base-20 system of the Inuit people 
>> and the numerals invented for it in the 1990s:
>> https://mathstodon.xyz/@johncarlosbaez/110215432175491555
>> This makes simple calculations just beautiful.
> interesting ... quick hack attached
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] Kaktovik numerals

2023-04-18 Thread Willi Egger via ntg-context
Hi!

dit is really interesting, I just spent two hours reading different sources. 
And yes, the SIL GentiumKatovik made the wikipedia show everything nicely!

Thanks Hraban

Willi

> On 18 Apr 2023, at 10:57, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> I just came across this thread about the base-20 system of the Inuit people 
> and the numerals invented for it in the 1990s:
> https://mathstodon.xyz/@johncarlosbaez/110215432175491555
> 
> This makes simple calculations just beautiful.
> 
> Hraban
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] Software upgrade for ntg and contextgarden server 6 April

2023-04-12 Thread Willi Egger via ntg-context
Thank you Taco, Jules and Robbert! — All this work for our so precious group of 
users! Thanks!

Willi

> On 11 Apr 2023, at 22:42, Taco Hoekwater via ntg-context  
> wrote:
> 
> Hi,
> 
> So … the server now runs Ubuntu 22.04. Jay!
> 
> This was a much harder upgrade though. Various things were wrong, and are 
> likely still a bit wrong in places. Robbert had to rescue the network 
> configuration that went missing completely after the upgrade (requiring a 
> trip to the data center). Various packages have been discontinued by our 
> linux distribution, including the version of the mailing list software that 
> we use (so that had to be installed manually). The new version of php is much 
> stricter than the old version (so some website hacks were also needed). Et 
> cetera. It has been a “process” ...
> 
> The basic functionality appears to be back online, although the web interface 
> to the mailing lists does not work yet (we will try to fix that tomorrow). 
> But there are likely to be small problems with other services still. Please 
> *do* let me know if you notice something odd!
> 
> In any case, today was the last of the big software update procedures (at 
> least for the next year or so).
> 
> Best wishes,
> Taco and Jules and Robbert
> 
> 
> 
> 
>> On 6 Apr 2023, at 18:20, Taco Hoekwater  wrote:
>> 
>> If you notice anything wrong, please warn either me personally or 
>> ntg-ser...@ntg.nl. 
>> 
>> Unless major problems develop, we will continue the update process on 
>> Tuesday afternoon. 
> 
> 
> 
> — 
> Taco Hoekwater  E: t...@bittext.nl
> genderfluid (all pronouns)
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] update / punctuation / math

2023-04-01 Thread Willi Egger via ntg-context
Cute, as always today :-)

Willi

> On 1 Apr 2023, at 10:27, Hans Hagen via ntg-context  
> wrote:
> 
> Hi,
> 
> There have been some mails about punctuation spacing and a fix was added to 
> the engine that related to that. As tests showed it to be okay so we made an 
> update. It took a bit longer than normal because we were in the middle of 
> some other math stuff: additional fonts and extensibles.
> 
> Daniel Flipo maintains a few math fonts (like concrete, xcharter, erewhon, 
> kp, euler) and the last few weeks more extensive support for extensibles was 
> added and concrete became quite nice too, so these fonts make a nice 
> benchmark. As they are part of the lmtx install and we made sure to support 
> them.
> 
> In the process we adapted our 2023 roadmap of which part is attached (we 
> included an example end then decided to show of concrete).
> 
> When we go through the process of 'upgrading' we noticed some interesting 
> names for symbols and 'constructs'. Quite some come from plain and/or amsmath 
> (in the past taco and aditya did some porting to context) and we're not 
> always sure if something is really used (or even what it was intended for) so 
> if you notice something weird or missing, let us know. Examples are welcome 
> too. It might also be that something can go away because it's obsolete or 
> never needed (so far we could resist te kick-out-symbole-name temptation when 
> it comes to symbol names that we think no sane user can remember or imagine 
> to be there).
> 
> When often add extra tests to the test suite (math subsection).
> 
> Hans & Mikael
> 
> ps. Alan and I are still messing around with some cross referencing. That 
> code is still experimental and can have issues that we're looking at but hard 
> to nail down (huge complex cross-referencing documents). More about that 
> later.
> 
> ==
> 
> We added the tex of the pdf below
> 
> == extract from roadmap ==
> 
> \usemodule[article-basic,abbreviations-logos]
> 
> \setupbodyfont[concrete]
> 
> \starttext
> 
> \startsubject[title=Math in \CONTEXT\ roadmap]
> 
> \startitemize[n]
> 
> \startitem
>After playing with math support for more than a year, we have come to the
>conclusion that it is time to move on. We have already discarded italic
>correction and now are replacing rules with extensibles. Much was already 
> in
>place (and applied) but experiences with type one antykwas made us review
>some \OPENTYPE\ fonts. Not using rules makes some of them look better. The
>effect is subtle and probably not \AMS\ compliant, but we think that it 
> will
>work out well for simple math like fractions of decimal numbers.
>Consequently, we have added to our shrinking to-do list the burden to
>investigate whether we can remove those obsolete code paths from the 
> engine.
>After all, who needs italic correction, who prefers ugly rules to beautiful
>glyphs, and who understands all these font parameters? Furthermore, after 
> all
>these years, we don't expect \OPENTYPE\ font and \UNICODE\ math 
> technologies
>to improve much; we don't know if \MICROSOFT\ is developing their 
> technology
>further at all. Therefore, we are confident that what we are doing is the 
> way
>it should have been done when math was upgraded. Hopefully users will 
> notice
>the improvements.
> \stopitem
> 
> \startitem
>Math also means physics and units (that topic was brought up recently on 
> the
>list by Gavin). Therefore, because we're in cleanup mode, we decided to
>eliminate some more. With \ISO\ now in place for a long time, we are going 
> to
>ignore the existence of the inch as unit from now on. The unit will 
> probably
>remain in the engine for nostalgic reasons, but it will no be accepted in
>MWE. Instead, we will provide some more modern, culturally correct,
>kid-friendly units that we will use in examples, manuals and such. Because
>the four-person strong team dealing with this wants to avoid making 
> mistakes,
>we will go through a careful and scientifically sound process of 
> calibration
>first, using a selected tex savvy audience. We expect these new units to be
>stable a month from now. Believe it or not, in the process of documenting 
> all
>this, we found a buglet in the new math dimension spacing, so it has 
> already
>paid off. Expect to hear more in a month or so, and enjoy your inches as 
> long
>as you still can. In case you wonder how this relates to math other than
>mentioned: the math subsystem has 'mu' as adaptive unit, and that inspired 
> is
>to come up with one for text (in addition to two new more or less fixed
>units).
> \stopitem
> 
> \startitem
>The math family model is a fundamental concept in \TEX\ but we think we can
>do without. First of all, \OPENTYPE\ math fonts have (design) script and
>scriptscript sizes built in, so for that we have 

Re: [NTG-context] Numbering of figures after defining a new float

2023-03-31 Thread Willi Egger via ntg-context
Thank you Alan, I tried many different things but as Wolfgang pointed out I had 
a mistake in the float definition!

Kind regards

WIlli

> On 31 Mar 2023, at 00:08, Alan Braslau via ntg-context  
> wrote:
> 
> Have you tried:
> 
> \setuplist [figure] [partnumber=no]
> 
> ...
> 
> \placelistoffigures [criterium=part]
> 
> 
> 
> Alan
> 
> 
> On Thu, 30 Mar 2023 17:09:15 +0200
> Willi Egger via ntg-context  wrote:
> 
>> Hello everybody,
>> 
>> 
>> I am still working on the previously mentioned project, consisting
>> out of different parts. There are about 25 chapters in each part and
>> most of the chapters contain figures. When using the predefined
>> figure environment, then all figures in the figure-list are placed
>> correctly though at each part the numbering restarts.
>> 
>> Now I tried to implement for each part its own float environment,
>> which enables me to produce a figure-list per part with subtitels.
>> How ever in the newly defined floats there is no continuous numbering
>> i.e. chapternumber.serialnumber. Instead each float get the chapter
>> number only.
>> 
>> How to get the numbering right?
>> 
>> Kind regards
>> Willi
>> 
>> The following example shows what happens:
>> 
>> \useMPlibrary[dum]
>> 
>> \definefloat[Afigure][Afigures][figures]
>> \definefloat[Bfigure][Bfigures][figures]
>> 
>> \setuphead
>>  [part]
>>  [placehead=yes,
>>   page=yes]
>> 
>> \setuphead
>>  [chapter]
>>  [page=no]
>> 
>> \starttext
>> 
>> \starttitle[title=List of figures]
>>  \startsubject[title=Figures (predefined figureenvironment)]
>>\placelistoffigures
>>  \stopsubject
>> 
>>  \startsubject[title=Figures A]
>>  \placelistofAfigures
>>  \stopsubject
>> 
>>  \startsubject[title=Figures B]
>>\placelistofBfigures
>>  \stopsubject
>> \stoptitle
>> 
>> \startpart[title=Part ONE]
>> \startchapter[title={Chapter one in part one}] %les21
>> 
>> \startplaceAfigure
>>  [location=left,
>>   reference=fig:dumA,
>>   title={Dummy A}]
>>  {\externalfigure[dummy][width=0.6\textwidth]}
>> \stopplaceAfigure
>> 
>> \startplacefigure
>>  [location=left,
>>   reference=fig:dumB,
>>   title={Dummy B}]
>>  {\externalfigure[dummy][width=0.6\textwidth]}
>> \stopplacefigure
>> 
>> \startsection[title=Section A]
>> 
>> \startplaceAfigure
>>  [location=left,
>>   reference=fig:dumC,
>>   title={Dummy C}]
>>  {\externalfigure[dummy][width=0.6\textwidth]}
>> \stopplaceAfigure
>> 
>> \stopsection
>> \stopchapter
>> \stoppart
>> 
>> \startpart[title=Part TWO]
>> \startchapter[title=Chapter one in part two]
>> 
>> \startplaceBfigure
>>  [location=left,
>>   reference=fig:dumD,
>>   title={Dummy D}]
>>  {\externalfigure[dummy][width=0.6\textwidth]}
>> \stopplaceBfigure
>> \stopchapter
>> \stoppart
>> \stoptext
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] Numbering of figures after defining a new float

2023-03-30 Thread Willi Egger via ntg-context
Hi Hraban,

thanks for your answer, however this is not precisely what I am talking about. 

If you have 3 figures in chapter  1, you want  them to be numbered as 1.1 , 1.2 
, 1.3. However with floats defined with \definefloat[Afigure][Afigures][figure] 
they all get solely the chapter number: 1.

Kind regards
Willi 

> On 30 Mar 2023, at 18:01, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Am 30.03.23 um 17:09 schrieb Willi Egger via ntg-context:
>> I am still working on the previously mentioned project, consisting out of 
>> different parts. There are about 25 chapters in each part and most of the 
>> chapters contain figures. When using the predefined figure environment, then 
>> all figures in the figure-list are placed correctly though at each part the 
>> numbering restarts.
>> Now I tried to implement for each part its own float environment, which 
>> enables me to produce a figure-list per part with subtitels. How ever in the 
>> newly defined floats there is no continuous numbering i.e. 
>> chapternumber.serialnumber. Instead each float get the chapter number only.
>> How to get the numbering right?
> 
> You can define the resetting of numbering with 
> \setupcaption[Afigure][way=bytext|bypart|bychapter].
> 
> For the list, \placelist[Afigure][criterium=chapter] (or local?) should work.
> 
> HTH,
> Hraban
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


[NTG-context] Numbering of figures after defining a new float

2023-03-30 Thread Willi Egger via ntg-context
Hello everybody,


I am still working on the previously mentioned project, consisting out of 
different parts. There are about 25 chapters in each part and most of the 
chapters contain figures. When using the predefined figure environment, then 
all figures in the figure-list are placed correctly though at each part the 
numbering restarts.

Now I tried to implement for each part its own float environment, which enables 
me to produce a figure-list per part with subtitels. How ever in the newly 
defined floats there is no continuous numbering i.e. 
chapternumber.serialnumber. Instead each float get the chapter number only.

How to get the numbering right?

Kind regards
Willi

The following example shows what happens:

\useMPlibrary[dum]

\definefloat[Afigure][Afigures][figures]
\definefloat[Bfigure][Bfigures][figures]

\setuphead
[part]
[placehead=yes,
 page=yes]

\setuphead
  [chapter]
[page=no]

\starttext

\starttitle[title=List of figures]
  \startsubject[title=Figures (predefined figureenvironment)]
\placelistoffigures
  \stopsubject

  \startsubject[title=Figures A]
\placelistofAfigures
  \stopsubject

  \startsubject[title=Figures B]
\placelistofBfigures
  \stopsubject
\stoptitle

\startpart[title=Part ONE]
\startchapter[title={Chapter one in part one}] %les21

\startplaceAfigure
[location=left,
 reference=fig:dumA,
 title={Dummy A}]
{\externalfigure[dummy][width=0.6\textwidth]}
\stopplaceAfigure

\startplacefigure
[location=left,
 reference=fig:dumB,
 title={Dummy B}]
{\externalfigure[dummy][width=0.6\textwidth]}
\stopplacefigure

\startsection[title=Section A]

\startplaceAfigure
[location=left,
 reference=fig:dumC,
 title={Dummy C}]
{\externalfigure[dummy][width=0.6\textwidth]}
\stopplaceAfigure

\stopsection
\stopchapter
\stoppart

\startpart[title=Part TWO]
\startchapter[title=Chapter one in part two]

\startplaceBfigure
[location=left,
 reference=fig:dumD,
 title={Dummy D}]
{\externalfigure[dummy][width=0.6\textwidth]}
\stopplaceBfigure
\stopchapter
\stoppart
\stoptext

test.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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-27 Thread Willi Egger via ntg-context
Thank you Hans,

that is, what I need. It was even easy to implement in the layout-file only :-) 
because these sections where already under a “mysection” head.

Kind regards

Willi

> On 27 Mar 2023, at 15:52, Hans Hagen via ntg-context  
> wrote:
> 
> On 3/26/2023 3:10 PM, Willi Egger via ntg-context wrote:
>> Hello Hraban,
>> thank you. I missed this point. However, adding a dot behind the number does 
>> not appear to solve the problem. The title’s text still starts at the left 
>> margin which looks very odd.
>> Kind regards
>> Willi
>>> On 26 Mar 2023, at 12:51, Henning Hraban Ramm via ntg-context 
>>>  wrote:
>>> 
>>> Am 25.03.23 um 23:05 schrieb Willi Egger via ntg-context:
>>>> Good evening!
>>>> I have a setup in which I need to send info to the TOC:
>>>> Consider the following example:
>>>> \starttext
>>>> \starttitle[title=Contents]
>>>>   \placelist[chapter][criterium=all]
>>>> \stoptitle
>>>> \startchapter[title=Mychapter]
>>>>   \input knuth
>>>>   \startsubject[title=Subject will be in TOC]
>>>> \writetolist[chapter]{1}{I am in TOC!}
>>>> \input ward
>>>>   \stopsubject
>>>> \stopchapter
>>>> \stoptext
>>>> According to the Wiki I should get te number (1) in the TOC. Instead the 
>>>> text starts at the height of the chapter-numbering and is not carrying the 
>>>> given number.
>>>> Am I doing something wrong?
>>> 
>>> The wiki says:
>>> 
>>> “The default table of contents is combined list. To write to it one has to 
>>> choose the level to which it should be inserted: 
>>> \writetolist[chapter]{1.}{Chapter list entry A},
>>> \writetolist[section]{1.1}{Section list entry A}, etc.”
>>> 
>>> https://wiki.contextgarden.net/Command/writetolist
>>> 
>>> So maybe you need a dot?
>>> 
>>> Otherwise I don’t know.
> \definehead[xsubject][section][number=no]
> 
> \setuplist[xsubject][margin=2em]
> 
> \starttext
>\starttitle[title=Contents]
>  \placelist[chapter,xsubject][criterium=all]
>\stoptitle
>\startchapter[title=Mychapter]
>  \input knuth
>  \startxsubject[title=Subject will be in TOC1] \input ward \stopxsubject
>  \startxsubject[title=Subject will be in TOC2] \input ward \stopxsubject
>\stopchapter
> \stoptext
> 
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-26 Thread Willi Egger via ntg-context
Hello Hraban,

thank you. I missed this point. However, adding a dot behind the number does 
not appear to solve the problem. The title’s text still starts at the left 
margin which looks very odd.

Kind regards
Willi

> On 26 Mar 2023, at 12:51, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Am 25.03.23 um 23:05 schrieb Willi Egger via ntg-context:
>> Good evening!
>> I have a setup in which I need to send info to the TOC:
>> Consider the following example:
>> \starttext
>> \starttitle[title=Contents]
>>   \placelist[chapter][criterium=all]
>> \stoptitle
>> \startchapter[title=Mychapter]
>>   \input knuth
>>   \startsubject[title=Subject will be in TOC]
>> \writetolist[chapter]{1}{I am in TOC!}
>> \input ward
>>   \stopsubject
>> \stopchapter
>> \stoptext
>> According to the Wiki I should get te number (1) in the TOC. Instead the 
>> text starts at the height of the chapter-numbering and is not carrying the 
>> given number.
>> Am I doing something wrong?
> 
> The wiki says:
> 
> “The default table of contents is combined list. To write to it one has to 
> choose the level to which it should be inserted: 
> \writetolist[chapter]{1.}{Chapter list entry A},
> \writetolist[section]{1.1}{Section list entry A}, etc.”
> 
> https://wiki.contextgarden.net/Command/writetolist
> 
> So maybe you need a dot?
> 
> Otherwise I don’t know.
> 
> Hraban
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


[NTG-context] How to prefix the list of figures with part number?

2023-03-25 Thread Willi Egger via ntg-context
Hello again,

My project has different parts. Each part contains a whole list of figures. At 
the beginning of the book I would like to place a list of all figures. Hoever 
they should be prefixed with the part number. I can not figure out how to 
achieve this.

May be someone can hint me…

Cheers 

Willi

\setuplist[figures][pageprefixsegments=part:chapter] % Pageprefix? 

\setuphead[part][placehead=yes] 

\starttext
\startpart[title=part one]

\starttitle[title=Contents]
  \placelist[part,chapter][criterium=all]

  \startsubject[title=Figures]  
\placelistoffigures[criterium=all]
  \stopsubject

\stoptitle


\startchapter[title=Mychapter]
  \input knuth
  \startsubject[title=Subject will be in TOC]
\writetolist[chapter]{1}{I am in TOC!}
\input ward
 \startplacefigure
[location=middle,
 title=Cow 1]
{\externalfigure[cow][width=7cm]}
\stopplacefigure

  \stopsubject 
\stopchapter
\stoppart

\startpart[title=Part two]
 \startchapter[title=Myotherchapter] 
   \startplacefigure
 [location=middle,
  title=Cow 2]
{\externalfigure[cow][width=7cm]}
  \stopplacefigure
  \stopchapter
\stoppart
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] \writetolist not writing the number to the TOC

2023-03-25 Thread Willi Egger via ntg-context
Good evening!

I have a setup in which I need to send info to the TOC:

Consider the following example:

\starttext

\starttitle[title=Contents]
  \placelist[chapter][criterium=all]
\stoptitle

\startchapter[title=Mychapter]
  \input knuth
  \startsubject[title=Subject will be in TOC]
\writetolist[chapter]{1}{I am in TOC!}
\input ward
  \stopsubject 
\stopchapter

\stoptext

According to the Wiki I should get te number (1) in the TOC. Instead the text 
starts at the height of the chapter-numbering and is not carrying the given 
number.

Am I doing something wrong?

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

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


Re: [NTG-context] How to rotate the caption of a table...

2023-03-25 Thread Willi Egger via ntg-context
Hello Hraban,

thank you! indeed the trick is to use \startplacetable[location=90]

Cheers

Willi

> On 25 Mar 2023, at 21:55, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Am 25.03.23 um 21:39 schrieb Willi Egger via ntg-context:
>> Hello everybody,
>> in my project is a table which does not fit the width of the page. Hence I 
>> need to rotate it. Rotating the table is ok, but the caption is not rotated. 
>> My question is how can I instruct ConTeXt to rotate the caption and place it 
>> on the right side?
>> My attempt:
>> \setupcaption[table][location=right,orientation=90]
>> \startplacetable
>>  [location=middle,
>>   reference=tab:papierformaten,
>>   title={Standaardformaten}]
>>   \rotate[rotation=90]{\externalfigure[Table1][type=buffer]}
>> \stopplacetable
> 
> I think \setupcaption[orientation=90] should work. Did you try different 
> locations?
> 
> But the problem might be your use of \rotation, since \startplacefloat as 
> well as \setupTABLE have options for rotation.
> Try \startplacetable[location=90]
> 
> Hraban
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


[NTG-context] How to rotate the caption of a table...

2023-03-25 Thread Willi Egger via ntg-context
Hello everybody,


in my project is a table which does not fit the width of the page. Hence I need 
to rotate it. Rotating the table is ok, but the caption is not rotated. My 
question is how can I instruct ConTeXt to rotate the caption and place it on 
the right side?

My attempt:


test.pdf
Description: Adobe PDF document

\setupcaption[table][location=right,orientation=90]
\startplacetable
[location=middle,
 reference=tab:papierformaten,
 title={Standaardformaten}]
 \rotate[rotation=90]{\externalfigure[Table1][type=buffer]}
\stopplacetable

Thank you for your support

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

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


Re: [NTG-context] Building fomula

2023-03-25 Thread Willi Egger via ntg-context
Hello Alexandre, thank you so much, this is precisely what I was looking for!


Cheers
 
Willi
> On 25 Mar 2023, at 18:28, Alexandre Christe via ntg-context 
>  wrote:
> 
> Hi Willi,
> 
> A dead simple solution would be
> 
> \starttext
> \startformula
> {\frac{47 \times 62}{44 \times 56}} \times {12} \qquad \rm{or} \qquad 
> {{\frac{47 \times 62 \times 12}{44 \timess 56}}=14.2 \rm kilo}
> \stopformula
> 
> \stoptext
> 
> 
> Le sam. 25 mars 2023 à 18:09, Willi Egger via ntg-context 
>  a écrit :
> Good afternoon everybody,
> 
> I should place two faily simple formulae next to each other, they should be 
> coupled by ‘or’. What I have now is, that the formulae indeed are next to 
> each other and separated by ‘or’, but the result of the second formula is 
> moved und this formula to the next line.
> In the setup of  book there would be enough place, if I coud decrease the 
> space left and right of the ‘or’.
> 
> How can I achieve this?
> 
> Cheers 
> 
> Willi
> 
> \starttext
>   \startformulas
> \startformula[align=right]
>   {\frac{47 \times 62}{44 \times 56}} \times {12}
> \stopformula
> \startformula[align=right,width=0.2\textwidth]
>   or
> \stopformula
> \startformula[align=right]
>   {{\frac{47 \times 62 \times 12}{44 \times 56}}=14.2 \rm kilo}
> \stopformula
> 
>   \stopformulas
>   \blank[small]
>   rounded 14 kilo.
> \stoptext
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


[NTG-context] Building fomula

2023-03-25 Thread Willi Egger via ntg-context
Good afternoon everybody,

I should place two faily simple formulae next to each other, they should be 
coupled by ‘or’. What I have now is, that the formulae indeed are next to each 
other and separated by ‘or’, but the result of the second formula is moved und 
this formula to the next line.
In the setup of  book there would be enough place, if I coud decrease the space 
left and right of the ‘or’.

How can I achieve this?

Cheers 

Willi

\starttext
  \startformulas
\startformula[align=right]
  {\frac{47 \times 62}{44 \times 56}} \times {12}
\stopformula
\startformula[align=right,width=0.2\textwidth]
  or
\stopformula
\startformula[align=right]
  {{\frac{47 \times 62 \times 12}{44 \times 56}}=14.2 \rm kilo}
\stopformula
  
  \stopformulas
  \blank[small]
  rounded 14 kilo.
\stoptext


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

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


Re: [NTG-context] Printing problem

2023-03-16 Thread Willi Egger via ntg-context
Hello Mikael,

As asked, I printed the page on a HP Officejet Pro 7740 as well in draft- as in 
high-quality mode.
The print-out looks ok in both cases, there is all text and no errors.

Kind regards

Willi

> On 16 Mar 2023, at 12:49, Mikael Sundqvist via ntg-context 
>  wrote:
> 
> Hi all,
> 
> I have had some printing problems lately, and it is not perfectly
> clear to me (or to Hans, we have discussed this a bit) whether it is
> the printer that has a lack of memory or if the pdf files are somehow
> corrupted. It might have to do with type3 fonts.
> 
> I attach a pdf file that does not print on our printer at work. Or
> well, it prints almost all of the page, but stops at the word
> "negativa" (or was it "egenvärden", I do not have the printout here
> right now). Then the printer also prints an error report about some
> "offending command".
> 
> So, a request: If you have an easy access to a printer, can you print
> this page and report back if all of it comes out, or what is
> happening?
> 
> Thanks
> 
> /Mikael
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] Math issue

2023-02-18 Thread Willi Egger via ntg-context
Hello Hans and Anditya,

thank you both for your answers. — Reconstructing now the math…

Kind regards

Willi

> On 16 Feb 2023, at 18:12, Aditya Mahajan via ntg-context  
> wrote:
> 
> On 2/16/2023 6:05 PM, Willi Egger via ntg-context wrote:
>> Hi math gurus,
>> I should typeset a couple of simple math formulae. However I do not get the 
>> desired result. I attach my output as pdf.
>> 1. Why is the \times 12 in the denominator although the fraction is grouped? 
>> — I tried also the grouping with bracis, which gives the same result.
>> 2. Why is the result after the equalsign in the denominator?
>> \starttext
>> \startformulas
>>  \startformula
>>\bgroup{47 \times 62}\over {44 \times 56}\egroup \times {12}
>>  \stopformula
>>  \startformula
>>{{47 \times 62 \times 12} \over {44 \times 56}}=14.2\ \rm kilo
>>  \stopformula
>> \stopformulas
>> \stoptext
>> Thank you for hinting me how to this correctly.
> 
> \frac{...}{...} .. forget about \over
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


[NTG-context] Math issue

2023-02-16 Thread Willi Egger via ntg-context
Hi math gurus,

I should typeset a couple of simple math formulae. However I do not get the 
desired result. I attach my output as pdf.

1. Why is the \times 12 in the denominator although the fraction is grouped? — 
I tried also the grouping with bracis, which gives the same result.
2. Why is the result after the equalsign in the denominator?


\starttext
\startformulas
\startformula
  \bgroup{47 \times 62}\over {44 \times 56}\egroup \times {12}
\stopformula
\startformula
  {{47 \times 62 \times 12} \over {44 \times 56}}=14.2\ \rm kilo 
\stopformula

\stopformulas
\stoptext

Thank you for hinting me how to this correctly.
Kind regards

Willi


test.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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] A new version of the PocketDiary module and a collection of examples for creating calenders

2023-01-20 Thread Willi Egger via ntg-context
Hi everybody,

I uploaded a new version of the PocketDiary module to the ConTeXt garden. The 
version 2.2 is providing the  calendar functionality as it is presented in 
PocketMods (https://pocketmod.com/). It includes day, week, month and year 
tables. There are two variations of the outcome. The first is that the module 
creates a week calendar with eahc working day on one page and the weekend on 
one page. The other version allows to setup an individual setup of the pages. 
This module also comes with a couple of templates for general information 
keeping. The new version includes also sun and moon data calculations. The 
latest version now calculates the Daylight Saving Time automatically for 
America and Europe or none if desired.

Next to this I uploaded a collection of calendars based on the PocketDiary 
module’s machinery. These calendars are typeset either as A6 or A5 sized pages 
printed on A4 paper and impositioned for making books.. There is also a 
photo-calender on A4 paper.

Calendar types included are: year calendar with 1 day per page, year calendar 
with 1 week on two facing pages, a menu calendar and a sun and moon data 
calendar.

Also included in this collection is a so called date-driven list generator. 
This allows to produce lists with any kind of date interval in days for any 
duration. It allows to adjust the number of columns in the list as well as 
changing the column heads to the requirements of the list.

I hope that some of you might find this helpful.

Kind regards

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

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


Re: [NTG-context] multimedia inclusion added to the wiki

2023-01-17 Thread Willi Egger via ntg-context
Pablo, thanks for this nice article!

Willi

> On 16 Jan 2023, at 19:00, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> Dear list,
> 
> just in case it might help, I have just added a new wiki article about
> how to add multimedia in PDF documents.
> 
>  https://wiki.contextgarden.net/Multimedia_Inclusion
> 
> I hope it helps,
> 
> Pablo
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] No format file after updating...

2023-01-12 Thread Willi Egger via ntg-context
Bedankt Hans for je antwoord.

The only way to get it fixed was to do a new installation. Then it worked fine!

Kind regards

Willi 

> On 9 Jan 2023, at 20:45, Hans Hagen via ntg-context  
> wrote:
> 
> On 1/9/2023 6:54 PM, Willi Egger via ntg-context wrote:
>> Good morning!
>> Last night I updated LMTX on my Raspberry Pi4. — After this action it 
>> appeared, that I could no-more compile tex-files: error no format found.
>> I tried to generate a format manually., however this did not work out. In 
>> the log-file the following error is placed:
>> …/anch-pgr.lmt:901: unexpected symbol near ‘0”
>> ...
>> error loading file: anch-pgr.lmt (aborting).
> Wrong bin?
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


[NTG-context] No format file after updating...

2023-01-09 Thread Willi Egger via ntg-context
Good morning!

Last night I updated LMTX on my Raspberry Pi4. — After this action it appeared, 
that I could no-more compile tex-files: error no format found.
I tried to generate a format manually., however this did not work out. In the 
log-file the following error is placed:

…/anch-pgr.lmt:901: unexpected symbol near ‘0”
...

error loading file: anch-pgr.lmt (aborting).

Kind regards

Willi




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

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


Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread Willi Egger via ntg-context
Hello Zdeněk,

in addition to the former mail I would like to tell you, that I tested now also 
with Firefox (108.01). — Login went fine, logout went fine, the files I 
uploaded/created are shown in the fil-pane and the letter-eating bug did not 
occur with the test-file. — It looks like there is something also related to 
Chrome…

I would like to congratulate you also for the “progress” animation, cute!

Kind regards
Willi

> On 27 Dec 2022, at 20:44, Zdeněk Svoboda via ntg-context  
> wrote:
> 
> Hi Willi,
> 
> Thank you for the feedback!
> 
> Strange bug being thrown out of the editor while not logged in -- I'll have 
> to look into that because I have not encountered it yet.
> 
> May I ask what browser and OS are you using? I'm unable to reproduce the bug 
> with the tab-key in tabulate.
> 
> I know about the letter-eating bug and apparently I haven't been successful 
> in fixing it yet.
> 
> As for the files lost:
>   1. you created an account,
>   2. uploaded some files and pictures,
>   3. then tried to generate a PDF which got stuck,
>   4. so you refreshed the page,
>   5. and the files were lost?
> Am I correct? I will try to reproduce it taking your steps and will try to 
> fix it.
> 
> And for the logout -- you did not manage to logout at all?
> 
> 
> Thank you for the kind words. I'm hoping it will be a useful tool to promote 
> ConTeXt!
> 
> 
> Sincerely,
> Zdeněk Svoboda
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread Willi Egger via ntg-context
Hello Zdeněk,

> On 27 Dec 2022, at 20:44, Zdeněk Svoboda via ntg-context  
> wrote:
> 
> Hi Willi,
> 
> Thank you for the feedback!
> 
> Strange bug being thrown out of the editor while not logged in -- I'll have 
> to look into that because I have not encountered it yet.
> 
> May I ask what browser and OS are you using? I'm unable to reproduce the bug 
> with the tab-key in tabulate.

I am working on a MacBook Air, 10 year old, updated to the latest possible Os 
version, which is Big Sur (11.7), in this case I used Google Chrome.
> 
> I know about the letter-eating bug and apparently I haven't been successful 
> in fixing it yet.
> 
> As for the files lost:
>   1. you created an account,
>   2. uploaded some files and pictures,
>   3. then tried to generate a PDF which got stuck,
>   4. so you refreshed the page,
>   5. and the files were lost?
> Am I correct? I will try to reproduce it taking your steps and will try to 
> fix it.
> 
You are correct. I created a file with the provided interface and saved it 
several times while building the test. During the building I uploaded two 
pictures, which were present in the file-pane. After this experimenting with 
the letter-eating bug the engine got in a endless loop which I had to terminate 
by closing the browser. After reopening the web-site the three files were gone.

> And for the logout -- you did not manage to logout at all?

I was not at all able to logout.
Is it the normal behaviour of this site, that you are automatically logged in 
again when starting?

Again thank you for your work. I am also impressed about the overall 
performance of the tool!

Kind regards

Willi
> 
> 
> Thank you for the kind words. I'm hoping it will be a useful tool to promote 
> ConTeXt!
> 
> 
> Sincerely,
> Zdeněk Svoboda
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread Willi Egger via ntg-context
Hi Zdeněk!

Congratulation, the online version, the web-site looks very nice. you have 
built in a lot of nice features!

I tried the interface for a short while. During testing I was thrown out each 
time and you do not understand why. — Does this have to do with the fact that I 
did not create a user-account?

While creating a tabulate I detected, that the use of the tab-key is only 
possible at the beginning of the line. When using the tab-key inside a tabulate 
line the whole line is indented for another tab.

While it is nice to see all the available command-choices it is rather less 
intuitive, that always the brackets are placed. Specially while editing \bTABLE 
… \eTABLE and the commands belonging to this table-type it could be good to 
have the right arrow key to have the command placed with brackets and with the 
down-arrow-key the command being placed without brackets (?) — I think, that 
the source should not be cluttered with empty brackets all over the place.

When you start the editor from the website you have no idea, what the layout of 
the page will be. While being somewhere in the edited text I switched to the 
layout-wizzard. Strange enough it is A4 on A3-Paper, I think for a normal user 
it should be A4 on A4 paper. The default layout dimension is in pt. — I doubt 
whether this is the best for a newcomer. May be mm would be better? — After 
returning to the editor I detected, that the new layout is placed at the 
cursor's position. Might it be a good idea, to place this at the top of the 
document or probably to ask the user whether the layout change should be placed 
at the cursor’s place?

In the meantime I also created an account. — Strange that I have to confirm the 
account to an e-mail, which does not make any reference to what account this 
confirmation is asked for.

Nice is that now I was not kicked out of the editor anymore!

While testing further I experienced, that the system is eating up a letter: 
\blank[small] —> caused a sequence undefined error: in the log there was 
\blank[smal … Hereafter I put a space after small  and it worked correctly. 
Then I withdrew the space, saved the file and started generation of PDF. — got 
a hanger… After restarting everything it appeared, that my test file was not 
listed in the editor’s left pane and also not the two uploaded picture-files. — 
I tried to logout. Logout does not seem to work.

Not withstanding all my comments, I am impressed how your system works. Once it 
will be stable I am convinced, that it can be a useful tool to promote the use 
of ConTeXt. Thank you for all the work performed so far!

Kind regards

Willi



 
> On 27 Dec 2022, at 00:57, Zdeněk Svoboda via ntg-context  
> wrote:
> 
> Hello ConTeXt community!
> 
> I'm Zdeněk Svoboda, a master degree student at Mendel university in Brno. 
> I've been using ConTeXt for a while now and have always been impressed by its 
> capabilities and the helpfulness of this community.
> 
> For my thesis project with Tomáš Hála as the supervisor, I've developed an 
> online application for working with ConTeXt. The main goal was to create an 
> application capable of compiling ConTeXt source right from the browser but I 
> thought that it's not enough and added a few features or tools on top of 
> that. Functions of the application include:
> 
> - User accounts to save files and access them from other computers.
> - Editor with syntax highlighting and autocompletion for ConTeXt command.
> - Generating PDF document and previewing it directly from the browser.
> - Layout designer to customize the layout of their documents with a 
> variety of options and mouse resizability of each layout element.
> - Table designer for creating and customize tables with alignment and 
> border settings, colors, merging and splitting cells eg.
> - Lists designer with a simple interface to customize lists.
> - Help function for ConTeXt commands (hidden under the "?" button)
> 
> Developing this application was a great learning experience for me, and I 
> faced a number of technical challenges along the way. For example, having to 
> dig through the XML document to extract all the information needed for the 
> "?" help function.
> 
> I'm excited to share my project with the ConTeXt community and hope that it 
> will be a useful resource for someone. If you're interested in trying it out, 
> you can find it at https://www.context-on-web.eu/. I'd love to hear any 
> feedback or suggestions you have. If you find a bug or encounter an error 
> while using the application, please let me know (and cc: th...@mendelu.cz) 
> the steps you took that caused it.
> 
> Known bugs:
> - Generated code from table designer needs better formatting
> - Duplicated color definitions in table designer
> - Layout designer -- numbers are not rounded
> 
> Best regards,
> Zdeněk Svoboda
> 
> ___
> If your 

Re: [NTG-context] LMTX generates PDFs with non-working fonts on real printers

2022-10-13 Thread Willi Egger via ntg-context
Now! I am astonished about this blog! Super that you, Leah and Hans, insisted 
to find out what the culprit was! Thank you both so much for your effort!

Kind regards
Willi

> On 11 Oct 2022, at 21:07, Leah Neukirchen via ntg-context 
>  wrote:
> 
> Hans Hagen via ntg-context  writes:
> 
>> On 10/9/2022 8:03 AM, Max Chernoff via ntg-context wrote:
>>> Hi all,
>>> 
 I use LuaMetaTeX 2.10 20220918 + ConTeXt LMTX 2022.09.11.
 
 Here's a tiny test document, I disabled PDF compression but it also
 doesn't work with the default settings.
 
 \setupbackend[level=0,compresslevel=0]
 \starttext
 Just a line of text.
 \stoptext
 
 When I print this "directly" (i.e. sending the raw PDF to the printer)
 on a Ricoh MP3053 or on a Samsung CLP-680DW, I just get an empty page.
>>> Just to add some more data points, I tested the attached MkXL file
>>> on
>>> two printers, and the file printed perfectly on both.
>>> Printer 1:
>>>Brother HL-3170CDW
>>>Printed via running "cat test.mkxl.pdf | nc Colour-Printer.local 9100"
>>>Printer 2:
>>>HP M227f LaserJet
>>>Printed from the PDF file on a USB stick
>>>Neither printer is anything fancy; they're both fairly
>>> inexpensive home
>>> laser printers. I've got a much older Brother laser printer that I may be
>>> able to test with next week.
>>> Sorry I can't be of more help.
>> Leah and I are zooming in on the issue. It might relate to wrong font
>> matrix default behavior in the pdf printer driver, and GS got a fix
>> for that long ago, so maybe old printers with not-updated drivers can
>> be affected.
>> 
>> Once we're confident that we can catch it Leah (who does the low level
>> introspective testing with viewers, printers and tools) likely will
>> report on it and there will be a test file for users to test if what
>> we do is okay before we apply the safeguard.
> 
> There's a write up now on the issue:
> https://leahneukirchen.org/blog/archive/2022/10/50-blank-pages-or-black-box-debugging-of-pdf-rendering-in-printers.html
> 
> -- 
> Leah Neukirchenhttps://leahneukirchen.org/
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] Help test a LMTX bug fix: tweaks in PDF generation

2022-10-10 Thread Willi Egger via ntg-context
I printed the file with a HP Officejet 7740 through Wifi from a MacBook Air 
(old form 2013). - The PDF-reader is Skim.  ConTeXt Version 2022.09.11 20:44 — 
There is a perfect print. 

Willi

> On 10 Oct 2022, at 11:24, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Am 10.10.22 um 10:50 schrieb Keith McKay via ntg-context:
>> Hi,
>> I printed the file from my Apple mac mini M1 wirelessly to my HP Color 
>> LaserJet MFP M283fdw from Thunderbird, Adobe Acrobat DC, Skim and Texshop. 
>> The latter three were essentially identical and clear but that from 
>> Thunderbird was fuzzy and not as sharp as the others.
> 
> The latter is because Thunderbird uses pdf.js, and that prints PDFs as images 
> (rasterized in a low resolution), as Leah confirmed my guess.
> 
> Hraban
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] startTEXpage on A4

2022-10-10 Thread Willi Egger via ntg-context
I would suggest the approach of Wolfgang because the standard setting of 
\framed(texts)’ width is fit and the height setting can be changed to this too. 
Further I would suggest to use an overlay and a Metafun graphic for the 
cut-indicators.


\defineoverlay[Cutpointstight][\useMPgraphic{Cutpointstight}]

\startuniqueMPgraphic{Cutpointstight}
path p;
p := unitsquare xscaled OverlayWidth yscaled OverlayHeight;
draw ulcorner p;
draw urcorner p;
draw llcorner p;
draw lrcorner p;
\stopuniqueMPgraphic

\framedtext
[height=fit,
 align={lohi,center},
 background=Cutpointstight,
 foregroundcolor=black,
 frame=off,
 offset=3pt]
{{\tfa HALITGARII EPISCOPI
 \blank[small]
 De vitiis et virtutibus
 \blank[small]
 Ordinum Poenitentium}
\blank[small]
Libri V.}

I hope this solves your issue

Willi
> On 9 Oct 2022, at 20:49, Leah Neukirchen via ntg-context  
> wrote:
> 
> Hans Hagen via ntg-context  writes:
> 
>> On 10/9/2022 3:52 PM, Leah Neukirchen via ntg-context wrote:
>>> Wolfgang Schuster via ntg-context  writes:
>>> 
 Leah Neukirchen via ntg-context schrieb am 09.10.2022 um 15:19:
> Hi,
> 
> is there a way to have something like
> 
> \setuppapersize[A5][A4]
> 
> but have the "inner paper size" be a computed fit like in
> \startTEXpage?
> 
> Or, alternatively, is there is a way to print crop marks around
> an environment like \startTEXpage?
 
 Can you be more concrete what your goal is, there are a few ways to solve
 your problem but with a few more information we can give you a good
 solution.
>>> Say I want to print some stickers or paper strips of non-fixed size,
>>> and get crop marks around them to know where to cut.
>>> With \setuppapersize and \setuparranging I can do this nicely if I
>>> know the size in advance, but in some cases I don't.
>> 
>> \definepapersize
>>  [label]
>>  [width=6cm,
>>   height=25mm]
> 
> But that requires knowing the size in advance.  Think of the labels in
> a museum that depend how long the description is. ;)
> 
> -- 
> Leah Neukirchenhttps://leahneukirchen.org/
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] PDF viewer

2022-09-26 Thread Willi Egger via ntg-context
Hi Pablo,

Hraban refers to Paulo Ney de Souza from US. He recently joined the ConTeXt 
meeting and indeed he mentioned that TUG had a fund raising campaign which was 
successful.

Kind regards
Willi

> On 23 Sep 2022, at 17:23, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> On 9/22/22 20:07, Henning Hraban Ramm via ntg-context wrote:
>> […]
>> I suggest we’ll discuss funding in the context group board, but there
>> was also a discussion about fundraising at the 2022 meeting that I
>> didn’t follow – I think Paulo said he had experience in fundraising?
> 
> Hi Hraban,
> 
> sorry if I’m misreading, but I’m afraid I wasn’t able to find any Paulo
> in the messages I have from this list.
> 
> Now I wonder who he might be.
> 
> Many thanks for your help,
> 
> Pablo
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] CLD setupheadertexts

2022-08-25 Thread Willi Egger via ntg-context
Hello!

based on the answer Hans posted on my question how to correctly setup header 
texts in a ConTeXt Lua Document I added a section on the Wiki: 
https://wiki.contextgarden.net/CLD#Setting_up_Header_Texts

Kind regards

Willi

> On 25 Aug 2022, at 19:45, Hans Hagen  wrote:
> 
> On 8/25/2022 7:32 PM, Willi Egger via ntg-context wrote:
>> Hello!
>> I have a ConTeXt Lua Document where I need to have headertexts.
>> When running the enclosed file I get 6 pages where only page 1 and 2 have 
>> header texts and the others none. — Why is that?
>> Thanks for hints!
> you use a function but headertexts are not frozen which meand that you need 
> to do this:
> 
>   context.setupheadertexts(
>{
>function()
>context("\\bf")
>context(monthname)
>return true
>end
>},
>{
>function()
>context(year)
>return true
>end
>},
>   {
>function()
>context("\\bf")
>context(monthname)
>return true
>end
>},
>{
>function()
>context(year)
>return true
>end
>}
>)
> 
> the "return true" makes sure that the function stays around
> 
> I'm sure that you will wikify this ...
> 
> Hans
> 
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

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

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


Re: [NTG-context] CLD setupheadertexts

2022-08-25 Thread Willi Egger via ntg-context
Hans! Thank you so much for your help and quick answer. Indeed now all header 
texts appear as expected :-)

I will wikify this of course!

Kind regards

Willi

> On 25 Aug 2022, at 19:45, Hans Hagen  wrote:
> 
> On 8/25/2022 7:32 PM, Willi Egger via ntg-context wrote:
>> Hello!
>> I have a ConTeXt Lua Document where I need to have headertexts.
>> When running the enclosed file I get 6 pages where only page 1 and 2 have 
>> header texts and the others none. — Why is that?
>> Thanks for hints!
> you use a function but headertexts are not frozen which meand that you need 
> to do this:
> 
>   context.setupheadertexts(
>{
>function()
>context("\\bf")
>context(monthname)
>return true
>end
>},
>{
>function()
>context(year)
>return true
>end
>},
>   {
>function()
>context("\\bf")
>context(monthname)
>return true
>end
>},
>{
>function()
>context(year)
>return true
>end
>}
>)
> 
> the "return true" makes sure that the function stays around
> 
> I'm sure that you will wikify this ...
> 
> Hans
> 
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

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

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


[NTG-context] CLD setupheadertexts

2022-08-25 Thread Willi Egger via ntg-context
Hello!

I have a ConTeXt Lua Document where I need to have headertexts.

When running the enclosed file I get 6 pages where only page 1 and 2 have 
header texts and the others none. — Why is that?

Thanks for hints!

Kind regards

Willi

Test-headertexts.pdf
Description: Adobe PDF document


Test-headertexts.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] How to switch off the numbering of a float in a CLDocument?

2022-07-21 Thread Willi Egger via ntg-context
Hraban thank you for your answer.

I tried diffrent approaches in the meantime, however I am unable to get it 
working.

What is wrong with this code? — The code woks a for the context.framedtext()

\setupexternalfigures[location={local,default}]

\startluacode

function Foto_page() --thirddata

  context.startplacefigure({number="",textstyle="red",title="A Test"})
context.externalfigure("{cow.pdf}",{width="0.5\\textwidth"}) 
  --context.framedtext(
--  {frame="on",style="\\bfd"},
--  "{This is a test}")
  context.stopplacefigure()
end

\stopluacode

\define\Test{\ctxlua{Foto_page()}}

\starttext
\strut
\Test
\stoptext

KR
Willi

> On 18 Jul 2022, at 20:56, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Am 18.07.22 um 20:31 schrieb Willi Egger via ntg-context:
>> Hi all,
>> I wanted to place a figure in a cld. The example in the cld manual does not 
>> reveal how to influence bahavior except for the caption.
>> context.placefigure(
>> “caption”,
>>function() context.externalfigure({i}, { width = "\\textwidth" } ) end )
>> Can anybody enlighten me?
> 
> Just use
> 
> context.startplacefigure({ option = "some", otheroption = "thing" })
> ...
> context.stopplacefigure()
> 
> Hraban
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


Re: [NTG-context] How to setup a headertext in a doublesided document in a cld?

2022-07-20 Thread Willi Egger via ntg-context
Hi Wolfgang,

Thanks for your respons!

Tonight I prepared a simplified version of the issue. It appears, that the 
header as I set it up in my previous mail works correclty on odd and even 
pages. However the struggle is, that after setting up the header on a odd page, 
there follows a table which is split over two pages. Now on the even page there 
is no header. So the question is how to convince cld to setup the header when 
the table is  split ….

I attach my “minimal” example, which shows the problem.

Kind regards

Willi

test.tex
Description: Binary data


> On 18 Jul 2022, at 22:05, Wolfgang Schuster via ntg-context 
>  wrote:
> 
> Willi Egger via ntg-context schrieb am 16.07.2022 um 17:03:
>> Hello!
>> 
>> I tried to setup a headertext in a context-lua-document. — No problem for 
>> the singlesided version, however hoe to pass the info for a double sided 
>> version?
>> Unfortunately the cld-mkiv manual contains an example for a singlesided 
>> document.
>> 
>> It ried
>> 
>> context.setupheadertexts({
>> function()
>>   context("\\bf”)
>>   context.labeltext(monthname)
>>   context("\\hfill”)
>>   context(year)
>>  end},
>>  {function()
>>context("\\bf”)
>>context.labeltext(monthname)
>>context("\\hfill”)
>>context(year)
>> end})
>> 
>> but this is apparently not the good approach.
>> 
>> Does someone of you have experience how to do this correctly?
> 
> What is the desired layout/content for the header?
> 
> You're using monthname and year in your example but do they come from, a 
> proper minimal example can help here.
> 
> Is it even necessary to set the header with Lua or can't you use a regular 
> TeX file and load it afterwards as environment file when you process your 
> document (context --environment=mystyle.tex mydocument.cld).
> 
> Wolfgang
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

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

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


[NTG-context] How to switch off the numbering of a float in a CLDocument?

2022-07-18 Thread Willi Egger via ntg-context
Hi all,

I wanted to place a figure in a cld. The example in the cld manual does not 
reveal how to influence bahavior except for the caption.

context.placefigure(
 “caption”,
function() context.externalfigure({i}, { width = "\\textwidth" } ) end )

Can anybody enlighten me?

Kind regards

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

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


[NTG-context] How to setup a headertext in a doublesided document in a cld?

2022-07-16 Thread Willi Egger via ntg-context
Hello!

I tried to setup a headertext in a context-lua-document. — No problem for the 
singlesided version, however hoe to pass the info for a double sided version?
Unfortunately the cld-mkiv manual contains an example for a singlesided 
document.

It ried

context.setupheadertexts({
 function()
   context("\\bf”)
   context.labeltext(monthname)
   context("\\hfill”)
   context(year)
  end},
  {function()
context("\\bf”)
context.labeltext(monthname)
context("\\hfill”)
context(year)
 end})

but this is apparently not the good approach.

Does someone of you have experience how to do this correctly?

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

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


Re: [NTG-context] return a labeltext with color...

2022-06-24 Thread Willi Egger via ntg-context
Hans, Wolfgang,

I am so happy to receive your immediate answers. — Thanks a lot, the problem is 
solved and I get the colored labeltext!

Thank you

Willi

> On 24 Jun 2022, at 19:19, Hans Hagen via ntg-context  
> wrote:
> 
> On 6/24/2022 4:34 PM, Willi Egger via ntg-context wrote:
>> Hi all,
>> Sorry for bothering you again.
>> I would like that lua is returning a colored string, which is a label-text.
>> The following does not work, the labeltext remains black, there is no error 
>> though:
>> return context.color({"red"},context.labeltext(s))
> 
> context.color({"red"},function() context.labeltext(s) end)
> 
>> What is the correct approach?
>> Thanks for enlighten me :-)
>> Willi
>> ___
>> 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
>> ___
> 
> 
> -- 
> 
> -
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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] return a labeltext with color...

2022-06-24 Thread Willi Egger via ntg-context
Hi all,


Sorry for bothering you again.

I would like that lua is returning a colored string, which is a label-text.

The following does not work, the labeltext remains black, there is no error 
though:

return context.color({"red"},context.labeltext(s))

What is the correct approach?

Thanks for enlighten me :-)

Willi
___
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] Failing \doifemptyelse

2022-06-24 Thread Willi Egger via ntg-context
Hans, Wolfgang!

Thank you so much for your instructions! — This expansion thing is something I 
will probably never master ;-(

Thank you!
Kind regards
Willi

> On 24 Jun 2022, at 05:42, Wolfgang Schuster via ntg-context 
>  wrote:
> 
> Hans Hagen via ntg-context schrieb am 23.06.2022 um 23:00:
>> On 6/23/2022 9:16 PM, Willi Egger via ntg-context wrote:
>>> Good evening gurus!
>>> 
>>> Why is the minimal example failing? i.e. executing always the else-branch?
>>> 
>>> \setuppapersize[A6][A6]
>>> 
>>> \setvariables
>>>[Test]
>>>[Number=]
>>> 
>>> 
>>> \starttext
>>>Value of variable Number before test: \getvariable{Test}{Number} \crlf
>>> 
>>>  \doifemptyelse{\getvariable{Test}{Number}}
>>>{\dorecurse
>>> {5}
>>> {TEST}
>>>}
>>>{Nothing defined \par
>>> Contents of variable Number: \getvariable{Test}{Number}
>>>}
>>> 
>>> \stoptex
>> there's also
>> 
>> \doifelsevariable {Test} {Number}
>> 
>> that can be used
> 
> in this case
> 
> \doifelseemptyvariable{Test}{Number}{...}{...}
> 
> is the better choice
> 
> 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
> ___

___
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] Failing \doifemptyelse

2022-06-23 Thread Willi Egger via ntg-context
Good evening gurus!

Why is the minimal example failing? i.e. executing always the else-branch?

\setuppapersize[A6][A6]

\setvariables
[Test]
[Number=]


\starttext
Value of variable Number before test: \getvariable{Test}{Number} \crlf

 \doifemptyelse{\getvariable{Test}{Number}}
{\dorecurse
{5}
{TEST}
}
{Nothing defined \par 
 Contents of variable Number: \getvariable{Test}{Number}
}

\stoptex


I am using ConTeXt version 2022.05.11 11:36 LMTX  fmt: 2022.6.15

Kind regards

Willi
___
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] List of publications...

2022-05-17 Thread Willi Egger via ntg-context
Hello everybody, 

sorry for not being responsive in recent days. — I have not been working on the 
computer in recent days…

Thank you so much for all your testing and help for finding a fix for the time 
being! — I will look into the lua file and apply your suggestion.

Many thanks 

Best

Willi



> On 11 May 2022, at 11:53, śrīrāma via ntg-context  wrote:
> 
> On 5/11/22 2:24 PM Willi Egger via ntg-context wrote:
>> I ws trying to finish my list of publications. How ever I now get a very
>> strange list.
>> 
>> Could someone compile the attached tex-sample-file and see?
>> 
>> I have ConTeXt  ver: 2022.04.20 19:18 LMTX  fmt: 2022.4.22
> 
> Yes: this issue has been there for some time now. Please see:
> https://mailman.ntg.nl/pipermail/ntg-context/2022/105649.html, and,
> https://mailman.ntg.nl/pipermail/ntg-context/2022/105585.html
> 
> Till there is a fix, I am able to workaround it by:
> • using only lowercase characters (a-z) in the item tags 
> • comment out all occurrences of 
>   tag   = lowered[tag]
>   field = lowered[field]
> in publ-ini.lua
> 
> Sreeram
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] List of publications...

2022-05-11 Thread Willi Egger via ntg-context
Good morning!I ws trying to finish my list of publications. How ever I now get a very strange list.Could someone compile the attached tex-sample-file and see?I have ConTeXt  ver: 2022.04.20 19:18 LMTX  fmt: 2022.4.22ThanksWilli

publist-test.bbl
Description: Binary data


publist-test.pdf
Description: Adobe PDF document


publist-test.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-09 Thread Willi Egger via ntg-context
Hi Joel,

I think you can achieve what you want by using \placelist[chapter,section] 
instead of \completecontent. Then you can start the TOC by 
\startchapter[Content] \placelist…. \stopchapter. The same approach can be used 
for other lists/indexes.

Kind regards

Willli

> On 8 May 2022, at 04:49, Joel via ntg-context  wrote:
> 
> I created a chapter title style with a large number telling the chapter 
> number, and below it the title of the chapter.
> 
> It looks like this:
> 
> -
>1   <--really big chapter number
> === <-- there is a border created by a background image between these
>How to keep  <--chapter title
>fish
> 
> This is the article <-- the article begins
> about how to keep
> fish
> -
> 
> \definefontsize[a]%
> \definefontsize[b]%
> \definefontsize[c]%
> \definefontsize[l]%
> \setupbodyfontenvironment[default]%
>[%
>a=1.200,
>b=1.440,
>c=1.728,
>l=8.916
>]%
> %
> 
> \setuplabeltext[chapter=\strut]
> \setuphead[chapter][style=\ssc,placehead=yes,expansion=yes,page=yes,
> numbercommand=\groupedcommand{}{\blank[1cm]},
> alternative=middle,
> numberstyle=ssl,
> numbercolor=green,
> strut=yes]
> 
> \starttext
> 
>\completecontent
> 
>\chapter{Test}
>\input knuth
> 
>\chapter{Test}
>\input knuth
> 
> \stoptext
> 
> The problem I'm facing, is anytime a chapter title is called, such as 
> "Content" in complete content, or something in the appendix, such as one of 
> the indexes, no number is printed above, so the vertical distance from the 
> top of the page to the top of the chapter title changes. I need these to be 
> consistent, as there is a background image, with vertical lines.
> 
> Basically, if I call \chapter{}, it appears perfectly aligned vertically on 
> the page, with no other settings. But when calling \completecontent or a 
> similar title that won't get a number, because the number isn't placed, it is 
> vertically higher on the page, but I need it to be printed the same height, 
> as it it had an invisible number.
> 
> I've tried adding strut (the code has it in two places), but don't know if 
> I've used it appropriately, and it didn't solve the problem.
> 
> --Joel
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] Centering figures that extend into the margin

2022-04-20 Thread Willi Egger via ntg-context
Hi Yann,

I have not a solution for you  but I would like to point you to the “details” 
manual, where many of special placements of floats are discussed.

Kind regards

Willi

> On 20 Apr 2022, at 11:39, yann--- via ntg-context  wrote:
> 
> Hi,
> 
> I've been playing around with 'marginnote' layout similar to tufte's books.  
> The
> main thing that I can't figure out is how to centre figures that extend into 
> the
> margin.  These should take over the whole page, but the content of the figure
> should be centred, which is normally the case in normal figures.
> 
> Below is my try of defining a marginnote that does this, by calculating the
> textarea size and setting the width to that.  However, I can't seem to then
> figure out how to center the externalfigure inside of the figure.
> 
> Thanks in advance!
> Yann
> 
> \useMPlibrary[dum]
> 
> \setuplayout[
> edgedistance=1cm,
> backspace=2cm,
> rightmargin=4.5cm,
> leftmargin=0cm,
> topspace=1cm,
> header=1cm,
> footer=1cm,
> headerdistance=0.5cm,
> width=fit,
> height=fit,
> ]
> 
> \newdimen\LeftMarginSize
> \LeftMarginSize=\dimexpr \backspace + \rightmarginwidth + 
> \rightmargindistance \relax
> \newdimen\TextAreaSize
> \TextAreaSize=\dimexpr \textwidth + \rightmarginwidth + \rightmargindistance 
> \relax
> \definefloat[marginfigure][marginfigures][figure]
> \setupfloat[marginfigure][location=inner,default=top,width=\TextAreaSize]
> \setupcaptions[marginfigure][
> leftmargin=\dimexpr \LeftMarginSize / 2 \relax,
> location=bottom,
> width=\textwidth,
> ]
> \setuplabeltext[marginfigure=Figure~]
> \showframe
> 
> \starttext
> 
> \startplacemarginfigure
> \externalfigure[][width=13cm]
> \stopplacemarginfigure
> 
> \stoptext
> 
> -- 
> Yann Herklotz
> https://yannherklotz.com
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] TeXworks on Linux

2022-04-16 Thread Willi Egger via ntg-context
Hello Alain,

sorry fro the late reaction. — I thought that I had done precisely what you 
mention in your reply. — however I will double-check this. Thank you for your 
answer.

Willi

> On 10 Apr 2022, at 14:01, Alain Delmotte via ntg-context  
> wrote:
> 
> Hi Willi!
> 
> Le 9/04/2022 à 21:52, Willi Egger via ntg-context a écrit :
>> Good evening!
>> 
>> Currently I am trying to test different editors on a Linux-box. — Tonight I 
>> installed TeXworks. Now I wanted to change the editor to use ConTeXt LMTX. I 
>> added in the tab “typesetting" the path to the executables in the TeX tree. 
>> Then I added funder editing the processing tools following the Wiki as a 
>> programme mtxrun and as parameters —script context $fullname.
>> 
>> After restarting the application I get the error:
>> 
>> “unknown script ‘mtx-base.lua' or ‘mtx-mtx-base.lua’” 
>> 
>> My question is, is there a user out there who knows how to fix this?
>> 
>> Kind regards
>> 
>> Willi
>> 
> I have an old computer under Linux 18.04
> In TeXworks/Edit/Preferences/Typesetting I have an entry for ConTeXt lmtx:
> 
> path:
> /usr/bin
> /usr/local/sbin
> /usr/local/bin
> /usr/sbin
> /sbin
> /bin
> /usr/games
> /home/alain/context-lmtx/bin
> /home/alain/context-lmtx/tex/texmf-linux/bin
> /usr/local/texlive/2020/bin/i386-linux
> 
> Most of the path is automatically created when installing TeXworks. You 
> should perhaps take care that the paths for context-lmtx is "before the one 
> for texlive, if you have it.
> 
> Now for the definition for the program:
> name:   Context (which will appear in the drop-down menu
> program:  context
> parameters: --synctex(which is not fonctionnal)
> $fullname
> 
> That'all!
> 
> I hope it  will help.
> 
> Alain
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] placing (on) layers

2022-04-16 Thread Willi Egger via ntg-context
Hi Hraban,

if you flush a layer like in your example, then the layer is attached to the 
left top of the text area. If you want to place it in another place, you will 
have to move it by x and y dimensions to the right place in the first brackets 
of the \setlayerframed command . — What would be possible is to attach the 
layer as a background to one of the different areas of the  paper.

I hope this gives you a hint how to proceed..

Willi

> On 15 Apr 2022, at 21:51, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Hi again,
> 
> I’m always struggling with putting stuff on layers, since these just never 
> start where I’d expect them to, and the offsets changed a few times within 
> the last years.
> 
> Please explain how I should define a layer that covers the whole page, since 
> the following MWE is wrong (the layer always starts below the first line):
> 
> 
> \useMPlibrary[dum]
> 
> \setuppapersize[A5][A4]
> \setuplayout[
>  marking=on,
>  location=middle,
> ]
> \definemeasure[Bleed][3mm]
> \definemeasure[MaxHeight][{\dimexpr\paperheight + 2\measure{Bleed}\relax}]
> \definemeasure[MaxWidth][{\dimexpr\paperwidth + 2\measure{Bleed}\relax}]
> 
> \definelayer[papier][
>  preset=lefttop,
>  %x=0mm,y=0mm,
>  width=\paperwidth,
>  height=\paperheight,
> ]
> \setupbackgrounds[paper][background=cover,state=start]
> 
> 
> \starttext
> \showframe
> TEST
> 
> \setlayerframed[papier][
>  preset=lefttop,
>  %x=-\measure{Bleed},
>  %y=-\measure{Bleed},
>  offset=overlay,
>  %frame=off,
>  width=\measure{MaxWidth},
>  height=\measure{MaxHeight},
> ]{\externalfigure[dummy][
>  width=\measure{MaxWidth},height=\measure{MaxHeight}
> ]}
> 
> \flushlayer[papier]
> 
> \stoptext
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] TeXworks on Linux

2022-04-09 Thread Willi Egger via ntg-context
Good evening!

Currently I am trying to test different editors on a Linux-box. — Tonight I 
installed TeXworks. Now I wanted to change the editor to use ConTeXt LMTX. I 
added in the tab “typesetting" the path to the executables in the TeX tree. 
Then I added funder editing the processing tools following the Wiki as a 
programme mtxrun and as parameters —script context $fullname.

After restarting the application I get the error:

“unknown script ‘mtx-base.lua' or ‘mtx-mtx-base.lua’” 

My question is, is there a user out there who knows how to fix this?

Kind regards

Willi
___
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] new upload / more math

2022-04-01 Thread Willi Egger via ntg-context
Hi Hans,

congrats for this new society! — At this date it is specially hilarious :-)

Happy CMS!

Willi

> On 1 Apr 2022, at 16:30, jdh via ntg-context  wrote:
> 
> 
> 
> Wrong.  The imperial measurement system, may give Europeans a headache, but 
> is NOT obsolete, by any means.  A good chunk of the world use the imperial 
> measurment system and may be required in certain books, depending on a 
> country's standards.
> 
> dh
> 
> -
> 
> 
> Henning Hraban Ramm via ntg-context  wrote:
> 
>> Oh, great work, thank you! (While I keep working with WebCMS and avoid
>> math...)
>> 
>> And I guess you forgot to mention that you discontinued the support
>> for non-metric measures like the obsolete inch, except Potrzebie, of
>> course.
>> 
>> Hraban
>> 
>> Am 01.04.22 um 10:02 schrieb Hans Hagen via ntg-context:
>>> Hi,
>>> As most of you know by now, Mikael and I are working on a math
>>> support upgrade. In order to let users keep up we uploaded a new
>>> version. We have been revisioning some of the more obscure
>>> constructs where we have   no clue of usage, like pmod, bmod,
>>> bordermatrix etc, commands that we   took (and reimplemented)
>>> decades ago from plain TeX or AMS TeX, assuming that these are
>>> standards.
>>> In this release, encouraged by the positive response we received
>>> from users regarding the new simplealignment construction, and in
>>> particular regarding the self-explaining sesac, we have decided to
>>> introduced some new constructs. First out is
>>> \startformula
>>> \startxıɹʇɐɯ
>>> \NC a_1 \NC b_1 \NC c_1 \NR
>>> \NC a_2 \NC b_2 \NC c_2 \NR
>>> \NC a_3 \NC b_3 \NC c_3 \NR
>>> \stopxıɹʇɐɯ
>>> \stopformula
>>> for rotation matrices. This was demanded for some advanced math
>>> courses that Mikael teaches. It might inspire users to come up with
>>> demands that suits their own obscure but nevertheless interesting
>>> math.
>>> At some point we realized that, with (also) scientific publishers
>>> (of math journals) moving to MS Word and Indesign, we operate in a
>>> rather peculiar niche and the fact that we use an upgraded and more
>>> granular math engine, made us wonder how to communicate all these
>>> new features and standards that we set. It is for that reason that
>>> from now on we will operate under the CMS umbrella. That
>>> abbreviation stands for ConTeXt Math Society. It has no funny swirly
>>> TeX logo which itself is a statement: in Unicode math script and
>>> calligraphic alphabets are so messed up that it is impossible to
>>> have a reliable and predictable rendering. We go for Dutch and
>>> Swedish simplicity in the spirit of W.N. Lansburgh: back to the
>>> times before TeX was written (1964). There will be no limits and
>>> boundaries set. (Talking math limits and boundaries: these can
>>> already go everywhere anyway, as can fences.)
>>> So, when we mention CMS, we mean serious math business, but
>>> kindergarten math is also embraced! There are no consequences for
>>> users: ConTeXt users with a proven math track record are
>>> automatically a member, but we are not too picky, everyone is
>>> welcome. We don't have honorary members but Taco (the first ConTeXt
>>> math user) and Aditya (the most experienced   one) might consider
>>> themselves as such. Mikael Sundqvist is the chairman, which is a
>>> livelong appointment. (A nice side effect is that with Arthur living
>>> in Sweden too, that gives us a very strong position in the TeX
>>> landscape there.)
>>> So, today's upload is sort of special: welcome CMS (ConTeXt Math 
>>> Shines), goodbye AMS (American Math Second). Of course we're open
>>> for suggestions and it being an open society all voices will be
>>> heard, but only proper (retro) math cf Lansburgh will be honored. Of
>>> course we only listen to ConTeXt users and, as that package is not
>>> supposed to be used for serious math, we don't bother about the few
>>> publishers left that still do math.
>>> Are we done? Not yet. We're in the middle of (colorful and graphic) 
>>> alignment ornaments and after that we're going to expand and improve
>>> multi-line display formulas and equation numbering.
>>> It will be no coincidence that the cover of Landburghs book about
>>> math typesetting has a prominent 'AWE' embedded in a logo with a
>>> lion on top: we hope all users are in awe about what the TeX lion
>>> can do.
>>> Mikael S & Hans H
>>> 
>> ___
>> 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] documentation for \cite and \setupcite commands

2022-03-28 Thread Willi Egger via ntg-context
Amine,

The thing is, that in the MKIV-publications.pdf (see in the doc subtree of 
texmf-context) \setupcite does not exist. This command is used by the 
implementation by Taco Hoekwater. This system is still in the distro.

In order to get your bibliography working you will have to study the 
MKIV-publicaations document. — I say this, because I started to use it recently 
for one of my projects. And yes it is rather a complex system…

Willi

> On 27 Mar 2022, at 20:36, A A via ntg-context  wrote:
> 
> Another question, Bibliographies, the ConTeXt way by Hans Hagen and Alan 
> Braslau introduces a parameter not shown in the \cite doc in ConTeXt garden, 
> namely "righttext".
> 
> Moreover, this answer introduces an "extras" parameter, also not included in 
> ConTeXt garden. Am I missing something here?
> 
> -- Forwarded message -
> From: A A 
> Date: Sun, 27 Mar 2022 at 20:16
> Subject: Fwd: documentation for \cite and \setupcite commands
> To: 
> 
> 
> Nevermind, for \cite there is detailed documentation here
> 
> Can I safely assume that \setupcite uses the same arguments? Can I generalize 
> this assumption to all \command and \setupcommand in ConTeXt?
> 
> -- Forwarded message -
> From: A A 
> Date: Sun, 27 Mar 2022 at 20:09
> Subject: documentation for \cite and \setupcite commands
> To: 
> 
> 
> Dear All,
> 
> Does anyone know where I can find more or less detailed information about the 
> \cite and \setupcite commands? I checked ConTeXt garden and the book 
> "ConTeXt: An excursion". I also checked the mailing list search engine and 
> did a couple of generic google searches but found nothing to the level of 
> detail I'm looking for.
> 
> Thanks in advance for your help.
> 
> Regards,
> 
> Amine
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] Chapter number retrieval

2022-03-23 Thread Willi Egger via ntg-context
Hello Adam,


What I am actually using (at least basically) is the code given in the second 
example on the wiki. So this moving graphic is not the problem. The problem 
lays in the fact, that I need the chapter number for calculating the position 
of the graphic along the outer edge of the page. — Because the book in question 
is a dictionary, it is not nice to have the chapter titles numbered, because it 
is only the letter of the alphabet. If I turned off the numbering, I lost the 
possibility to retrieve the chapter number. Through the definition of a new 
command \ChapterTitle, ignoring the first argument (which is the number) the 
title gets typeset without the number, but the number is still available in the 
TOC or as in my case for the calculation.

Thank you for your support and help!

Willi

> On 23 Mar 2022, at 00:41, Adam Reviczky via ntg-context  
> wrote:
> 
> Hi Willi,
> 
> You could also access the number by using the 
> \getmarking[chapternumber][current].
> I think you have used a similar approach in the 
> https://wiki.contextgarden.net/Thumb_index.
> 
> Adam
> 
> On Tue, Mar 22, 2022 at 11:15 PM Willi Egger via ntg-context 
>  wrote:
> Hello Adam!
> 
> Many thanks for your solution. — It works very well in your example and also 
> in an extended version with \startfrontmatter..\stopfrontmatter 
> \startbodymatter…\stopbodymatter. — Unfortunately It does not work to my wish 
> in the actual setup of my book. — I am using now the solution presented by 
> Sreeram.
> 
> Again thank you so much!
> Kind regards
> 
> Willi
> 
>> On 22 Mar 2022, at 01:21, Adam Reviczky via ntg-context  
>> wrote:
>> 
>> Hi,
>> 
>> There is a good overview of accessible variables at: 
>> https://tex.stackexchange.com/questions/134474/context-part-chapter-section-and-subsection-names
>> 
>> Maybe you want something like this?
>> 
>> \starttext
>> \setuphead[chapter][number=no]
>> \startchapter[title={My Chapter}]
>> Hello world!
>> \startMPcode
>> label("\currentstructurelistnumber\ \currentstructuretitle", origin);
>> draw fullcircle scaled 3cm;
>> \stopMPcode
>> \stopchapter
>> \stoptext
>> 
>> Adam
>> 
>> On Mon, Mar 21, 2022 at 11:46 PM jbf via ntg-context  
>> wrote:
>> Willi, offlist: Have to admit I didn't actually try your own comment, 
>> but if it doesn't work, I'll be interested in the eventual answer. I 
>> recently had to do something similar for the TOC, and Hraban pointed me 
>> to \currentlistentrynumber. There probably has to be a command along 
>> those lines (which led me to your 2011 comment, sorry ) for non-list 
>> retrieval. \structurenumber? \currentstructurenumber? Something along 
>> those lines? There seem to be a number of these but as yet undocumented 
>> as far as I can see.
>> 
>> Julian
>> 
>> On 22/3/22 10:19, Willi Egger via ntg-context wrote:
>>> Hi Julian,
>>> 
>>> :-) I am confronted with my own comments :-)
>>> 
>>> However, this is precisely what I am using in my attempt to get this hidden 
>>> number. But no it does not appear…
>>> 
>>> Thank you!
>>> Willi
>>> 
>>>> On 21 Mar 2022, at 22:33, jbf via ntg-context  wrote:
>>>> 
>>>> Willi,
>>>> 
>>>> I see a comment by yourself back in 2011 at 
>>>> https://wiki.contextgarden.net/Last_Head_Number
>>>> 
>>>> I wonder if this helps?
>>>> 
>>>> Julian
>>>> 
>>>> On 22/3/22 07:47, Willi Egger via ntg-context wrote:
>>>>> Hello everybody!
>>>>> 
>>>>> 
>>>>> I would like to typeset the chapter title without number in the text. — 
>>>>> However I still would need to retrieve the number for a calculation in a 
>>>>> MetaFun graphic. I assume, that even though this number is not typeset, 
>>>>> it is kept in the background. How to retrieve it?
>>>>> 
>>>>> Kind regards
>>>>> 
>>>>> Willi
>>>>> ___
>>>>> 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/
>>

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Willi Egger via ntg-context
Hello Adam!

Many thanks for your solution. — It works very well in your example and also in 
an extended version with \startfrontmatter..\stopfrontmatter 
\startbodymatter…\stopbodymatter. — Unfortunately It does not work to my wish 
in the actual setup of my book. — I am using now the solution presented by 
Sreeram.

Again thank you so much!
Kind regards

Willi

> On 22 Mar 2022, at 01:21, Adam Reviczky via ntg-context  
> wrote:
> 
> Hi,
> 
> There is a good overview of accessible variables at: 
> https://tex.stackexchange.com/questions/134474/context-part-chapter-section-and-subsection-names
> 
> Maybe you want something like this?
> 
> \starttext
> \setuphead[chapter][number=no]
> \startchapter[title={My Chapter}]
> Hello world!
> \startMPcode
> label("\currentstructurelistnumber\ \currentstructuretitle", origin);
> draw fullcircle scaled 3cm;
> \stopMPcode
> \stopchapter
> \stoptext
> 
> Adam
> 
> On Mon, Mar 21, 2022 at 11:46 PM jbf via ntg-context  
> wrote:
> Willi, offlist: Have to admit I didn't actually try your own comment, 
> but if it doesn't work, I'll be interested in the eventual answer. I 
> recently had to do something similar for the TOC, and Hraban pointed me 
> to \currentlistentrynumber. There probably has to be a command along 
> those lines (which led me to your 2011 comment, sorry ) for non-list 
> retrieval. \structurenumber? \currentstructurenumber? Something along 
> those lines? There seem to be a number of these but as yet undocumented 
> as far as I can see.
> 
> Julian
> 
> On 22/3/22 10:19, Willi Egger via ntg-context wrote:
> > Hi Julian,
> >
> > :-) I am confronted with my own comments :-)
> >
> > However, this is precisely what I am using in my attempt to get this hidden 
> > number. But no it does not appear…
> >
> > Thank you!
> > Willi
> >
> >> On 21 Mar 2022, at 22:33, jbf via ntg-context  wrote:
> >>
> >> Willi,
> >>
> >> I see a comment by yourself back in 2011 at 
> >> https://wiki.contextgarden.net/Last_Head_Number
> >>
> >> I wonder if this helps?
> >>
> >> Julian
> >>
> >> On 22/3/22 07:47, Willi Egger via ntg-context wrote:
> >>> Hello everybody!
> >>>
> >>>
> >>> I would like to typeset the chapter title without number in the text. — 
> >>> However I still would need to retrieve the number for a calculation in a 
> >>> MetaFun graphic. I assume, that even though this number is not typeset, 
> >>> it is kept in the background. How to retrieve it?
> >>>
> >>> Kind regards
> >>>
> >>> Willi
> >>> ___
> >>> If your question is of interest to others as well, please add an entry to 
> >>> the Wiki!
> >>>
> >>> maillist : ntg-context@ntg.nl / 
> >>> http://www.ntg.nl/mailman/listinfo/ntg-context
> >>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> >>> archive  : https://bitbucket.org/phg/context-mirror/commits/
> >>> wiki : http://contextgarden.net
> >>> ___
> >> ___
> >> If your question is of interest to others as well, please add an entry to 
> >> the Wiki!
> >>
> >> maillist : ntg-context@ntg.nl / 
> >> http://www.ntg.nl/mailman/listinfo/ntg-context
> >> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> >> archive  : https://bitbucket.org/phg/context-mirror/commits/
> >> wiki : http://contextgarden.net
> >> ___
> > ___
> > If your question is of interest to others as well, please add an entry to 
> > the Wiki!
> >
> > maillist : ntg-context@ntg.nl / 
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> > ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
&g

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Willi Egger via ntg-context
Hello Sreeram!

What a nice and simple solution. After fiddling a bit I got it working also in 
my environment for the book! — Thank you so much for the support.

Kind regrards

Willi

> On 22 Mar 2022, at 03:29, śrīrāma via ntg-context  wrote:
> 
> On Tuesday, March 22, 2022 2:17 AM Willi Egger via ntg-context wrote:
>> I would like to typeset the chapter title without number in the text. — 
>> However I still would need to retrieve the number for a calculation in a 
>> MetaFun graphic. I assume, that even though this number is not typeset, it 
>> is kept in the background. How to retrieve it?
>> 
> 
> Hi,
> On Tuesday, March 22, 2022 2:17 AM Willi Egger via ntg-context wrote:
>> 
>> I would like to typeset the chapter title without number in the text. — 
>> However I still would need to retrieve the number for a calculation in a 
>> MetaFun graphic. I assume, that even though this number is not typeset, it 
>> is kept in the background. How to retrieve it?
>> 
> 
> Hi,
> 
> You can define a custom command for the chapter, where the first argument 
> (i.e, the number) is 'ignored' –
> 
> \define[2]\ChapterTitle{#2}
> \setuphead[chapter][command=\ChapterTitle]
> 
> It will still appeared as numbered in any lists (ToC, etc). Also, it can be 
> accessed using \headnumber[...][...]. An example graphic – 
> 
> \startuseMPgraphic {graphic:chapter}
> picture cg;
> cg := outlinetext.d
>   ("\ssbfd \headnumber[chapter]")
>   (withcolor transparent(1,0.5,blue));
> fill boundingcircle cg withcolor transparent(1, 0.5, lightgray);
> draw cg;
> \stopuseMPgraphic
> 
> Using \headnumber[..][..] any 'conversion' applied to the chapter number 
> (romannumerals, words, etc) are also preserved.
> 
> Best,
> Sreeram
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread Willi Egger via ntg-context

Hi Julian,

:-) I am confronted with my own comments :-)

However, this is precisely what I am using in my attempt to get this hidden 
number. But no it does not appear…

Thank you!
Willi

> On 21 Mar 2022, at 22:33, jbf via ntg-context  wrote:
> 
> Willi,
> 
> I see a comment by yourself back in 2011 at 
> https://wiki.contextgarden.net/Last_Head_Number
> 
> I wonder if this helps?
> 
> Julian
> 
> On 22/3/22 07:47, Willi Egger via ntg-context wrote:
>> Hello everybody!
>> 
>> 
>> I would like to typeset the chapter title without number in the text. — 
>> However I still would need to retrieve the number for a calculation in a 
>> MetaFun graphic. I assume, that even though this number is not typeset, it 
>> is kept in the background. How to retrieve it?
>> 
>> Kind regards
>> 
>> Willi
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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] Chapter number retrieval

2022-03-21 Thread Willi Egger via ntg-context
Hello everybody!


I would like to typeset the chapter title without number in the text. — However 
I still would need to retrieve the number for a calculation in a MetaFun 
graphic. I assume, that even though this number is not typeset, it is kept in 
the background. How to retrieve it?

Kind regards

Willi
___
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] Metafun, difficulty with graphical element in the margin

2022-03-21 Thread Willi Egger via ntg-context
Hello Wolfgang,

thank you so much for your time and investigation. — Indeed your solution works 
fine! 

I use the latest version from March 2022.
I use \startbodymatter cum suis.

Lieber Gruß

Willi

> On 20 Mar 2022, at 17:21, Wolfgang Schuster via ntg-context 
>  wrote:
> 
> Willi Egger via ntg-context schrieb am 20.03.2022 um 17:05:
>> Hoi Wolfgang,
>> 
>> I tested both variants (bodymatter and bodypart. The compilation runs 
>> through, however without the thumb-picture in the margin and the metafun 
>> error is in the log.
> 
> 1. Do you use \startfrontmatter and \startbodymatter in your document to 
> create blocks?
> 
> 2. Is you installation up-to-date?
> 
> Attached is a slightly modified version of your example, the only thing which 
> has to be local to the bodypart is the background setting to enable the thumb 
> pictures.
> 
> 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
> ___

___
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] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Willi Egger via ntg-context
Hoi Wolfgang,

I tested both variants (bodymatter and bodypart. The compilation runs through, 
however without the thumb-picture in the margin and the metafun error is in the 
log.

Gruß!
Willi

> On 20 Mar 2022, at 17:00, Wolfgang Schuster via ntg-context 
>  wrote:
> 
> Willi Egger via ntg-context schrieb am 20.03.2022 um 16:53:
>> Hoi Wolfgang!
>> 
>> thank you for your suggestion. Your example indeed works. However if I apply 
>> this to my situation, which is
>> 
>> \startsectionblockenvironment[bodymatter]
> 
> You use the wrong name for the argument:
> 
> \startsectionblockenvironment[bodypart]
> 
> 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
> ___

___
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] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Willi Egger via ntg-context
Hoi Wolfgang!

thank you for your suggestion. Your example indeed works. However if I apply 
this to my situation, which is

\startsectionblockenvironment[bodymatter]
\setups{Thumb-pictures}
\stopsectionblockenvironment

nothing happens. I.e. I get no error, but also no picture, indicating, that the 
\setups command is not executed..

Kind regards

Willi

> On 20 Mar 2022, at 11:28, Wolfgang Schuster via ntg-context 
>  wrote:
> 
> Willi Egger via ntg-context schrieb am 19.03.2022 um 21:42:
>> Hello Otared,
>> thanks so much for your testing and comments. — Tthe problem is, that this 
>> thumb-picture should only be placed in the \startboydmatter..\stopbodymatter 
>> sections. In the case of this book however there are the title pages and 
>> quite some text including the TOC in the 
>> \startfrontmatter..\stopfrontmatter. SO I end up with being forced to invoke 
>> the setups at the beginning of the bodymatter.
> 
> Use sectionblockenvironment to set value which are only applied in the 
> frontmatter, bodymatter etc.
> 
>  begin example
> % Global settings for all chapters
> \setuphead[chapter][style=\ssc]
> 
> % Local settings for chapter in the bodymatter block
> \startsectionblockenvironment[bodypart]
> \setuphead[chapter][color=blue]
> \stopsectionblockenvironment
> 
> \starttext
> 
> \startfrontmatter
> 
> \title{Table of content}
> 
> \placecontent
> 
> \stopfrontmatter
> 
> \startbodymatter
> 
> \chapter{Knuth}
> 
> \input knuth
> 
> \chapter{Zapf}
> 
> \input zapf
> 
> \stopbodymatter
> 
> \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
> ___

___
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] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Willi Egger via ntg-context
Hi Otared,

thank you for your help. — I tried your approach aswel on my Mac as also on 
Linux. Unfortunately neither installation did give me a positive result. The 
error remains.

Kind regards

Willi

> On 19 Mar 2022, at 23:39, Otared Kavian via ntg-context  
> wrote:
> 
> Hi Willi,
> 
> How about invoking the command \setups{Thumb-pictures} between a \start \stop 
> pair as in the following:
> 
> \showframe
> 
> \starttext
> 
> \startfrontmatter
> \startchapter[title=Test A]
>   \samplefile{knuth}
> \stopchapter
> 
> \stopfrontmatter
> 
> %\page[yes]
> 
> \start
> \setups{Thumb-pictures}
> 
> \startbodymatter
> \startchapter[title=Test B]
>   \samplefile{ward}
> \stopchapter
> 
> \startchapter[title=Test C]
>   \samplefile{ward}
> \stopchapter
> 
> \startchapter[title=Test D]
>   \samplefile{ward}
> \stopchapter
> 
> 
> \stopbodymatter
> \stop
> 
> \startbackmatter
> \dorecurse{5}{\startchapter[title=Test #1]
>       \samplefile{thuan}
>   \stopchapter}
>   
> \stopbackmatter
> 
> \stoptext
>   
> 
>> On 19 Mar 2022, at 21:42, Willi Egger via ntg-context  
>> wrote:
>> 
>> Hello Otared,
>> 
>> thanks so much for your testing and comments. — Tthe problem is, that this 
>> thumb-picture should only be placed in the \startboydmatter..\stopbodymatter 
>> sections. In the case of this book however there are the title pages and 
>> quite some text including the TOC in the 
>> \startfrontmatter..\stopfrontmatter. SO I end up with being forced to invoke 
>> the setups at the beginning of the bodymatter.
>> 
>> Thanks!
>> Kind regards
>> 
>> Willi
>> 
>>> On 19 Mar 2022, at 16:52, Otared Kavian via ntg-context 
>>>  wrote:
>>> 
>>> Hi Willi,
>>> 
>>> Your test file works fine if I place 
>>> \setups{Thumb-pictures}
>>> before \starttext (using version 2022.03.12 17:56 LMTX).
>>> However in the file you sent the choice of the command
>>> \setups{Thumb-pictures}
>>> is between chapter A and B, which seems starnge to me...
>>> 
>>> Best regards: Otared K.
>>> 
>>>> On 18 Mar 2022, at 20:29, Willi Egger via ntg-context  
>>>> wrote:
>>>> 
>>>> Good evening!
>>>> 
>>>> I have a dictionary where I would like to include thumb-pictures in the 
>>>> margin. — When I use the attached code with a single 
>>>> \startchapter...\stopchapter, it works. However if I add another 
>>>> \startchapter…\stopchapter before loading the setups for the thumb-picture 
>>>> metafun throws an error about not having complete information for 
>>>> performing a transformation.
>>>> 
>>>> I am currently using the before last version of LMTX-ConTeXT (January 21st 
>>>> 2022).
>>>> 
>>>> Could someone try to compile?
>>>> 
>>>> Thanks, kind regards
>>>> 
>>>> Willi___
>>>> If your question is of interest to others as well, please add an entry to 
>>>> the Wiki!
>>>> 
>>>> maillist : ntg-context@ntg.nl / 
>>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>>> wiki : http://contextgarden.net
>>>> ___
>>> 
>>> ___
>>> If your question is of interest to others as well, please add an entry to 
>>> the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl / 
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> ___
>> 
>> ___
>> 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://con

[NTG-context] Metafun, difficulty with graphical element in the margin, again.

2022-03-19 Thread Willi Egger via ntg-context
Hello,

I am a little desperate… I have installed in a new directory the latest version 
of ConTeXt.

I run the sample file I provided before. After enabling a second 
chapter-section before the \setups{Thumb-picture} the metafun error reoccurs. — 
Looking at the log I do net get really wiser, lacking the background of the 
implementation… 

So here follows the section of the log with the error:

metafun > log >
metafun > log > error: Transform components aren't all known
metafun > log >
metapost> trace >  (0,0,mfun_page_hsize[-4],0,0,1)
metapost> trace >  yscaled
metapost> trace >  mfun_page_field [ (EXPR 0) ] [ (-40) ] := 
unitsquare xscaled mfun_page_hsize [ (EXPR 0) ] yscaled mfun_page_vsize [ (-40) 
] shifted ( mfun_page_hstep [ (EXPR 0) ] , mfun_page_vstep [ (-40) ] ) ; 
mfun_page_field [ (-40) ] [ (EXPR 0) ] := mfun_page_field [ (EXPR 0) ] [ (-40) 
] ;  ENDFOR
metapost> trace >  for HorPos = LeftEdge step 1 until 
RightEdge : mfun_page_field [ HorPos ] [ (EXPR 0) ] := unitsquare xscaled 
mfun_page_hsize [ HorPos ] yscaled mfun_page_vsize [ (EXPR 0) ] shifted ( 
mfun_page_hstep [ HorPos ] , mfun_page_vstep [ (EXPR 0) ] ) ; mfun_page_field [ 
(EXPR 0) ] [ HorPos ] := mfun_page_field [ HorPos ] [ (EXPR 0) ] ; endfor ;  
ENDFOR
metapost> trace >  mfun_check_page_field -> -> 
mfun_check_page_dimensions;for.VerPos=Top.step10until.Bottom:for.HorPos=LeftEdge.step1until.RightEdge:mfun_page_field[HorPos][VerPos]:=unitsquare.xscaled.mfun_page_hsize[HorPos]yscaled.mfun_page_vsize[VerPos]shifted(mfun_page_hstep[HorPos],mfun_page_vstep[VerPos]);mfun_page_field[VerPos][HorPos]:=mfun_page_field[HorPos][VerPos];endfor;endfor;
metapost> trace >  mfun_check_page_field ;
metapost> trace >  hide -> (TEXT0)-> 
exitif.numeric.begingroup(TEXT0);endgroup;
metapost> trace >  Field -> -> 
hide(mfun_check_page_field;)mfun_page_field
metafun > log >
metafun > log > I'm unable to apply a partially specified 
transformation except to a fully known
pair or transform. Proceed, and I'll omit the transformation.
metafun > log > 


How to interprete, wha tto try next?

Kind regards

Willi
___
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] Metafun, difficulty with graphical element in the margin

2022-03-19 Thread Willi Egger via ntg-context
Hello Otared,

thanks so much for your testing and comments. — Tthe problem is, that this 
thumb-picture should only be placed in the \startboydmatter..\stopbodymatter 
sections. In the case of this book however there are the title pages and quite 
some text including the TOC in the \startfrontmatter..\stopfrontmatter. SO I 
end up with being forced to invoke the setups at the beginning of the 
bodymatter.

Thanks!
Kind regards

Willi

> On 19 Mar 2022, at 16:52, Otared Kavian via ntg-context  
> wrote:
> 
> Hi Willi,
> 
> Your test file works fine if I place 
>   \setups{Thumb-pictures}
> before \starttext (using version 2022.03.12 17:56 LMTX).
> However in the file you sent the choice of the command
>   \setups{Thumb-pictures}
> is between chapter A and B, which seems starnge to me...
> 
> Best regards: Otared K.
> 
>> On 18 Mar 2022, at 20:29, Willi Egger via ntg-context  
>> wrote:
>> 
>> Good evening!
>> 
>> I have a dictionary where I would like to include thumb-pictures in the 
>> margin. — When I use the attached code with a single 
>> \startchapter...\stopchapter, it works. However if I add another 
>> \startchapter…\stopchapter before loading the setups for the thumb-picture 
>> metafun throws an error about not having complete information for performing 
>> a transformation.
>> 
>> I am currently using the before last version of LMTX-ConTeXT (January 21st 
>> 2022).
>> 
>> Could someone try to compile?
>> 
>> Thanks, kind regards
>> 
>> Willi___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ___
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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] Metafun, difficulty with graphical element in the margin

2022-03-18 Thread Willi Egger via ntg-context
Good evening!

I have a dictionary where I would like to include thumb-pictures in the margin. 
— When I use the attached code with a single \startchapter...\stopchapter, it 
works. However if I add another \startchapter…\stopchapter before loading the 
setups for the thumb-picture metafun throws an error about not having complete 
information for performing a transformation.

I am currently using the before last version of LMTX-ConTeXT (January 21st 
2022).

Could someone try to compile?

Thanks, kind regards

Willi

test-thumb-picture.tex
Description: Binary data


test-thumb-picture.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] Force a hyphenation

2022-03-17 Thread Willi Egger via ntg-context
Thanks everybody very much for the explanations. — As I am Swiss, these matters 
with ß were never correctly understood and my knowledge about hyphenation is 
old…

Thank you Thomas for pointing me to the Duden-rules. I will check-out the same 
issue about ck and k-k …

Kind regards

Willi

> On 16 Mar 2022, at 17:29, Arthur Rosendahl via ntg-context 
>  wrote:
> 
> On Wed, Mar 16, 2022 at 05:17:46PM +0100, Thomas A. Schmitz via ntg-context 
> wrote:
>> So Eiwei-ßes may in fact be correct... But I assume that Arthur has some
>> authoritative answer to this question.
> 
> I’ll refer to the German hyphenation pattern list as an authority
> (https://lists.dante.de/mailman/listinfo/trennmuster) :-)  But I do
> believe that you, Thomas, are right and that Eiwei-ßes is correct (while
> Ei-weißes is much better anyway).  It is in fact logical: ‘ß’ in the new
> spelling means that the preceding sound is long, hence it has to be
> spelt that way always, not “analysed” as ‘ss’.  If you were to hyphenate
> Straße as Stras-se, it would indicate a different pronunciation.
> 
>   Best,
> 
>   Arthur
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] Force a hyphenation

2022-03-16 Thread Willi Egger via ntg-context
Hi,

at the moment I am dealing with a German text. Although I have 
\mainlanguage[de] in the preamble the word 'des Eiweißes' is hyphenated as 'des 
Eiwei-ßes'. Of course this should be 'des Eiweis-ses'.

How can I make sure that ConTeXt is hyphenating this corerctly?

Kind regards
Willi
___
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] Fwd: Bibliography (follow up)

2022-03-12 Thread Willi Egger via ntg-context
Hello again,as I was preparing today another old document with literature references. Hereby I came across another glitch in the bibliography environment.When replacing the field \number{} in the \startpublication…\stoppublication ( bbl file) with \volume{} it appears, that there is no comma after the journal name in the list of publications.I tried to find out where these glitches in the source happen, however that was in vain.I hope that these issues can be fixed in due timeKind regardsWilli 

publist-test.pdf
Description: Adobe PDF document
Begin forwarded message:From: Willi Egger via ntg-context <ntg-context@ntg.nl>Subject: [NTG-context] Bibliography (follow up)Date: 12 March 2022 at 12:12:18 CETTo: mailing list for ConTeXt users <ntg-context@ntg.nl>Cc: Willi Egger <cont...@boede.nl>Reply-To: mailing list for ConTeXt users <ntg-context@ntg.nl>Hello,I am following up on my previous mail from 22-02-2022…In the meantime I was able to find out, what the problem with the crippled publication in the list was. — After adapting the *.bbl file it now works. — However there is  most probably a bug in the setup of the list-layout. What you can see in the attached pdf, the issue-number is collated to the title, no comma no space.I would be really happy, if someone could confirm this problem.Attachments:MWE including the publist-test.tex, publist-test.bbl and the publist-test.pdf

publist-test.bbl
Description: Binary data


publist-test.tex
Description: Binary data


publist-test.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-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : https://bitbucket.org/phg/context-mirror/commits/wiki : http://contextgarden.net__
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Bibliography (follow up)

2022-03-12 Thread Willi Egger via ntg-context
Hello,I am following up on my previous mail from 22-02-2022…In the meantime I was able to find out, what the problem with the crippled publication in the list was. — After adapting the *.bbl file it now works. — However there is  most probably a bug in the setup of the list-layout. What you can see in the attached pdf, the issue-number is collated to the title, no comma no space.I would be really happy, if someone could confirm this problem.Attachments:MWE including the publist-test.tex, publist-test.bbl and the publist-test.pdf

publist-test.bbl
Description: Binary data


publist-test.tex
Description: Binary data


publist-test.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
___


[NTG-context] Bibliography

2022-02-22 Thread Willi Egger via ntg-context
Hi all,I have a rather old project which involves a bibbliography of about 60 entries. — Now I tried to use the publications environment after reading the manual. — I must say environment this is impressive!However I struggle with getting it working.1. When using my dataset, which is encoded as a ‘bbl’ type file I get a list of publications but the entries are uncomplete. enclosed files: publist-test.tex, test-literaturliste.bbl, publist-test.pdf2. When I use a buffer for testing, I do not get \cite reference nor a publication list: publist-buffer-test,texCan someone advise?Kind regardsWilli

test-literaturliste.bbl
Description: Binary data


publist-buffer-test.tex
Description: Binary data


publist-buffer-test.pdf
Description: Adobe PDF document


publist-test.tex
Description: Binary data


publist-test.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
___


[NTG-context] Fwd: Placement of figures

2022-01-24 Thread Willi Egger via ntg-context
Hi,I spent this evening again on this issue. It appears that it does not matter, whether the pages are made up with means of the \FilliIn-macro or typed completely page by page. I also tried to use the layer-mechanism. All attempts result in the same misplacement:odd side of the paper: page 4,14,24, have all the \framed placed considerably lower than the resteven side of the paper: page 6,16,26 are placed considerably higher than the rest of the pages.I have really no clue what this is about. — Unfortunately I can not print the book in this way, the movement of the pictures is too visible.I would really appreciate any hint for improvement.KRWilliBegin forwarded message:From: Willi Egger via ntg-context <ntg-context@ntg.nl>Subject: [NTG-context] Placement of figuresDate: 13 January 2022 at 18:29:25 CETTo: mailing list for ConTeXt users <ntg-context@ntg.nl>Cc: Willi Egger <cont...@boede.nl>Reply-To: mailing list for ConTeXt users <ntg-context@ntg.nl>Hi all,I have a project with my brother in which 5 foto’s are placed with the XY arrangement in a row. Now we see, that the floats are not placed all on the correct position. I tried all kind of things, but I am not able to fix them in the desired position. — When using the key location=top, all figures are placed correctly. This does not work with location=center.I attach the sources in this mai and will send the compiled file in a next mail.

stops.dat
Description: Binary data


test-placefigures.tex
Description: Binary data
May be somebody can give me a hint how to solve this.Willi___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-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : https://bitbucket.org/phg/context-mirror/commits/wiki : http://contextgarden.net__
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \installpagearrangement doublesided stickers

2022-01-22 Thread Willi Egger via ntg-context
Hello Jigé,

Adapt your layout to the following and it works.

\setuplayout
[%]
margin=0mm,
topspace=0mm,
backspace=1mm,
width=80mm,
height=50mm,
nx=2,
ny=5,
dx=0mm,
dy=0mm,
location=middle,
marking=on,
]

Kind regards
Willi

> On 16 Jan 2022, at 15:18, Jigé via ntg-context  wrote:
> 
> Greetings everyone.
> 
> Well, it's not exactly about double-sided stickers but sort of. Imagine 
> printing a double-sided sheet and using a so-called plastifying device to 
> make tokens.
> I began with the File Card and Labels examples from the wiki, then tried to 
> change the \installpagearrangement example from the 'imposition' wiki page.
> 
> My question is:
> how to position everything in the middle of the sheet, so that double-siding 
> actually works?
> As is, it's all in the top left corner. Changing the location argument for 
> "location=middle" in \setuplayout doesn't work here. What should it be?
> 
> By the way, I'm not sure about the 3rd, 4th and 6th arguments in the 
> dosetuparrangement command.
> 
> Thanks a lot!
> 
> Here it is:
> 
> \installpagearrangement 2*5*double*2*5
> {\dosetuparrangement{5}{2}{10}{3}{6}% X,Y,Total,hcutmarks,vcutmarks
>  \pusharrangedpageTWOFIVEDOUBLESIDED\poparrangedpagesAB\relax}
> 
> \def\pusharrangedpageTWOFIVEDOUBLESIDED#1%
> {\advancearrangedpageN
> \reportarrangedpage\arrangedpageN
> \ifcase\arrangedpageN
> \or \handlearrangedpageXandY{#1}000\arrangedpageA %  1 rot,hskip,vskip
> \or \handlearrangedpageXandY{#1}010\arrangedpageB %  2
> \or \handlearrangedpageXandY{#1}010\arrangedpageA %  3
> \or \handlearrangedpageXandY{#1}000\arrangedpageB %  4
> \or \handlearrangedpageXandY{#1}001\arrangedpageA %  5
> \or \handlearrangedpageXandY{#1}011\arrangedpageB %  6
> \or \handlearrangedpageXandY{#1}011\arrangedpageA %  7
> \or \handlearrangedpageXandY{#1}001\arrangedpageB %  8
> \or \handlearrangedpageXandY{#1}002\arrangedpageA %  9
> \or \handlearrangedpageXandY{#1}012\arrangedpageB %  10
> \or \handlearrangedpageXandY{#1}012\arrangedpageA %  ...
> \or \handlearrangedpageXandY{#1}002\arrangedpageB %  
> \or \handlearrangedpageXandY{#1}003\arrangedpageA %  
> \or \handlearrangedpageXandY{#1}013\arrangedpageB %  
> \or \handlearrangedpageXandY{#1}013\arrangedpageA %  
> \or \handlearrangedpageXandY{#1}003\arrangedpageB %  
> \or \handlearrangedpageXandY{#1}004\arrangedpageA %  
> \or \handlearrangedpageXandY{#1}014\arrangedpageB %  
> \or \handlearrangedpageXandY{#1}014\arrangedpageA %  
> \or \handlearrangedpageXandY{#1}004\arrangedpageB %  
>   \poparrangedpages
> \fi}
> 
> \definepapersize[Etiquette][width=80.0mm,height=50.0mm]
> \setuppapersize [Etiquette][A4]
> \setuparranging [2*5*double*2*5]
> %\setuplayout [margin=0pt, width=fit]
> \setuplayout[
> %location=middle,%nx=2,ny=5,
> %location=middle,
> location=left,
> marking=on,
> margin=0mm,
> topspace=0mm,
> backspace=0mm,
> width=fit,
> %header=0mm,
> %footer=0mm,
> %align=middle,
> ]
> 
> \showframe
> %\setuppagenumbering[state=stop]
> \setuppagenumbering[alternative=doublesided]
> 
> \starttext
> \dorecurse{20}{\vbox to \textheight{\vfill\midaligned{\tfd ABC}\vfill}\page}
> \stoptext
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] Placement of floats

2022-01-13 Thread Willi Egger via ntg-context
Hi all, 

here follows the compilation of the example-file, this time I replaced the 
dummy-figure with a simple \framedtext in order to comply with the 100kB rule 
of the mailing-list.

I added a black line at the bottom with “Preview” on Mac OSX

test-placefigures.pdf
Description: Adobe PDF document
, so the problem is visible immediately.

Kind regards

Willi___
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] Placement of figures

2022-01-13 Thread Willi Egger via ntg-context
Hi all,

I have a project with my brother in which 5 foto’s are placed with the XY 
arrangement in a row. Now we see, that the floats are not placed all on the 
correct position. I tried all kind of things, but I am not able to fix them in 
the desired position. — When using the key location=top, all figures are placed 
correctly. This does not work with location=center.

I attach the sources in this mai and will send the compiled file in a next mail.

stops.dat
Description: Binary data


test-placefigures.tex
Description: Binary data


May be somebody can give me a hint how to solve this.

Willi___
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 create cell data that spans four rows in a table?

2022-01-08 Thread Willi Egger via ntg-context
I would suggest not to use \starttable at all.

To me the most suitable table environment for such a table is \bTABLE \eTABLE. 
It gives you all kind of control over layout, dimensions, frames on and off etc.

\setupTABLE[c][1][leftframe=off,width=40mm]
\setupTABLE[c][2][rightframe=off, width=60mm]
\setupTABLE[c][each][align={lohi,center}]
\bTABLE
\bTR
\bTD {\bf Eons}\eTD \bTD {\bf Eras} \eTD
\eTR
\bTR
\bTD  Hadeon Eon \eTD \bTD \eTD
\eTR
\bTR
\bTD[ny=4] Archanon Eon  \eTD \bTD Eoarchean Era \eTD
\eTR
\bTR
\bTD Paleoarchean Era \eTD
\eTR
\bTR
\bTD Mesoarchean Era \eTD 
\eTR
\bTR
\bTD Neoarchean Era \eTD
\eTR
\bTR
\bTD[ny=3] Proterozoic Eon \eTD \bTD Paleoproterozoic Era \eTD
\eTR
\bTR
\bTD Mesoproterozoic Era \eTD
\eTR
\bTR
\bTD Neoproterozoic Era\eTD
\eTR
\bTR
\bTD[ny=3] Phanerozoic Eon \eTD \bTD Paleozoic Era \eTD
\bTR
 \bTD Mesozoic Era\eTD
\eTR
\bTR
\bTD Cenozoic Era \eTD
\eTR
\eTABLE

Willi

> On 8 Jan 2022, at 22:39, Joel via ntg-context  wrote:
> 
> I created a table that has some cells span multiple rows. This works good 
> with cells that span an odd-number of rows, but when I try to span 4 rows, 
> the text isn't quite vertically centered. How can I get the cell with the 
> text "Archaeon Eon" to be a little lower, so it is centered within its box?
> 
> --Joel
> 
> Minimum working example:
> 
> \starttext
> 
> \starttable[|c|c|]
> \NC {\bf Eons} \NC {\bf Eras} \NC \AR
> \HL
> \NC Hadeon Eon \VL \NC \AR
> \HL
> \NC \VL Eoarchean Era \NC \AR
> \DC \DL[1] \DR
> \NC \smash{Archaeon Eon} \VL Paleoarchean Era \NC \AR
> \DC \DL[1] \DR
> \NC \VL Mesoarchean Era \NC \AR
> \DC \DL[1] \DR
> \NC \VL Neoarchean Era \NC \AR
> 
> \HL\NC \VL Paleoproterozoic Era \NC \AR
> \DC \DL[1] \DR
> \NC Proterozoic Eon \VL Mesoproterozoic Era \NC \AR
> \DC \DL[1] \DR
> \NC \VL Neoproterozoic Era \NC \AR
> \HL
> 
> 
> \HL\NC \VL Paleozoic Era \NC \AR
> \DC \DL[1] \DR
> \NC Phanerozoic Eon \VL Mesozoic Era \NC \AR
> \DC \DL[1] \DR
> \NC \VL Cenozoic Era \NC \AR
> \HL
> \stoptable
> 
> \stoptext
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] How to use a variable in a macro agrument

2021-12-18 Thread Willi Egger via ntg-context
May be \useexternalfigure is your friend instead of your \define[]\logofile{}, 
which allows you to give a symbolic name of the logo-file. This symbolic name 
you can use then in the setlayer construct.

Willi

> On 18 Dec 2021, at 10:52, skyhorse--- via ntg-context  
> wrote:
> 
> 
> 
> I have a need to use a logo graphics file several times in a document.
> I somethings need to update to a newer graphics file.
> I only want to make one change to the original variable value definition.
> 
> I've tried using \define.. but it's not working for me.
> Here is my MWE:
> 
> 
> 
> \define[]\logofile{an_image_file.png} % Here defining the variable with the 
> filename to use.
> 
> \definelayer[stillimage]
> \setlayer[stillimage]{\externalfigure[\logofile]}  % Here trying to use the 
> \logofile macro.
> \setupbackgrounds[page][background=stillimage]
> 
> \starttext
>   \input knuth
> \stoptext
> 
> 
> 
> 
> What's the accepted way to do this or are macro arguments not allowable?
> 
> 
> Thanks
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] Font Maguntia not rendering correctly...

2021-06-08 Thread Willi Egger
Hi all,i have a text from an old publication typeset in Fraktur. — The font I would like to use here is Unifraktur Maguntia. This Font worked before quite well, however now I get wrong renderings. Please refer to the attached MWE.Context version: 2021.06.01 17:04 LMTX What is oing wrong here?Kind regardsWilli

MWE.tex
Description: Binary data


MWE.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] combinations

2021-05-22 Thread Willi Egger
Hello everybody,

this example given by Hans is interesting. I added it to the Wiki to the 
command \startcombination.

Willi

> On 14 May 2021, at 11:39, Hans Hagen  wrote:
> 
> On 5/14/2021 6:30 AM, Benny Schurig wrote:
>> Hi Julian,
>> for me first reply ever with a suggestion:
>> You have to set a caption
>> https://wiki.contextgarden.net/Command/startcombination
>> That worked fine for me:
>> \startplacefigure[location=here]
>>   \setupcombination[distance=0mm,after=]
>>   {\startcombination[2*1]
>> {\externalfigure[res1.jpg][width=.4\textwidth]} {pic 1}
>> {\externalfigure[res2.jpg][width=.4\textwidth]} {pic 2}
>>   \stopcombination}
>> \stopplacefigure
>> Best, Benny
>> Am 14.05.21 um 05:27 schrieb jbf:
>>> Hi list,
>>> 
>>> The following MWE is giving me two photos under each other, not beside 
>>> each. What am I doing wrong?
>>> 
>>> Julian
>>> 
>>> 
>>> \startplacefigure[location=here]
>>> \setupcombination[distance=0mm,after=]
>>> {\startcombination[2*1]
>>> {\externalfigure[res1.jpg][width=.4\textwidth]}
>>> {\externalfigure[res2.jpg][width=.4\textwidth]} \stopcombination}
>>> \stopplacefigure
> You can also do this:
> 
> \startplacefigure[location=here]
>\startcombination[distance=2mm,after=,nx=2,ny=1,location=middle]
>\startcontent
>\externalfigure[mill.png]  [width=.4\textwidth]
>\stopcontent
>\startcaption
>pic 1
>\stopcaption
>\startcontent
>\externalfigure[hacker.jpg][width=.4\textwidth]
>\stopcontent
>\startcaption
>pic 2
>\stopcaption
>\stopcombination
> \stopplacefigure
> 
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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] Trouble constructing a drawer rail with MP

2021-05-22 Thread Willi Egger
Hello Mikael,

thank you very much for the explanation. Indeed I was assuming that giving the 
starting point of a path followed by a dir would result in a vector starting 
from that point. — My knowledge about vectors is unfortunately super restricted 
:-(

Thanks

Willli 

> On 21 May 2021, at 21:58, Mikael Sundqvist  wrote:
> 
> Hi,
> 
> It was in fact not really "working", but it just happened that it
> looked more or less correct in one case, but not in the other.
> 
> For example: The path Pkt[1]--dir(194)*10mm for example is not given
> by the two points Pkt[1] and "Pkt[1] shifted 10mm in direction 194
> degrees", but Pkt[1] and the point which is 10mm from the origin,
> rotated 194 degrees.
> 
> /Mikael
> 
> On Fri, May 21, 2021 at 9:27 PM Willi Egger  wrote:
>> 
>> Hi Jairo!
>> 
>> thank you so much, this is precisely what I need.
>> 
>> Still I am wondering why this is not working starting at the Pkt[2] but 
>> working when starting from Pkt[1].
>> 
>> Kind regards
>> 
>> Willi
>> 
>>> On 21 May 2021, at 13:15, Jairo A. del Rio  wrote:
>>> 
>>> Hi!
>>> 
>>> Do
>>> 
>>> p[102] := (origin--dir(194)*10mm) shifted Pkt[1];
>>> 
>>> and
>>> 
>>> p[103] := (origin--dir(166)*10mm) shifted Pkt[2];
>>> 
>>> do what you need?
>>> 
>>> Jairo
>>> 
>>> El vie, 21 de may. de 2021 a la(s) 05:57, Willi Egger (cont...@boede.nl) 
>>> escribió:
>>> Hello MP Gurus!
>>> 
>>> I wanted to make a technical drawing. However the enclosed mwe does not 
>>> give me the required results.
>>> 
>>> While the vector from point 1 is directing in the desired direction of 194 
>>> degrees, the second vector from point 2 does not as defined point in the 
>>> direction of 166 degrees.
>>> 
>>> What am I doing wrong here?
>>> 
>>> 
>>> Thanks for pointing me into the right direction :-)
>>> 
>>> Willi
>>> 
>>> 
>>> ___
>>> If your question is of interest to others as well, please add an entry to 
>>> the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl / 
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> ___
>>> ___
>>> If your question is of interest to others as well, please add an entry to 
>>> the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl / 
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> ___
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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] Trouble constructing a drawer rail with MP

2021-05-21 Thread Willi Egger
Hi Jairo!

thank you so much, this is precisely what I need.

Still I am wondering why this is not working starting at the Pkt[2] but working 
when starting from Pkt[1].

Kind regards

Willi

> On 21 May 2021, at 13:15, Jairo A. del Rio  wrote:
> 
> Hi! 
> 
> Do
> 
> p[102] := (origin--dir(194)*10mm) shifted Pkt[1];
> 
> and
> 
> p[103] := (origin--dir(166)*10mm) shifted Pkt[2];
> 
> do what you need? 
> 
> Jairo
> 
> El vie, 21 de may. de 2021 a la(s) 05:57, Willi Egger (cont...@boede.nl) 
> escribió:
> Hello MP Gurus!
> 
> I wanted to make a technical drawing. However the enclosed mwe does not give 
> me the required results.
> 
> While the vector from point 1 is directing in the desired direction of 194 
> degrees, the second vector from point 2 does not as defined point in the 
> direction of 166 degrees.
> 
> What am I doing wrong here?
> 
> 
> Thanks for pointing me into the right direction :-)
> 
> Willi
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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] Trouble constructing a drawer rail with MP

2021-05-21 Thread Willi Egger
Hello MP Gurus!I wanted to make a technical drawing. However the enclosed mwe does not give me the required results.While the vector from point 1 is directing in the desired direction of 194 degrees, the second vector from point 2 does not as defined point in the direction of 166 degrees.What am I doing wrong here?Thanks for pointing me into the right direction :-)Willi

test-rail.pdf
Description: Adobe PDF document


test-rail.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] A Metafun-Problem

2021-04-12 Thread Willi Egger
Hi,

Ok, changing the unitsquare into fullsquare is giving a better result, however 
it is still not the right drawing. I realise, that in this case probably the 
use of a vector in this way is not appropriate. — I have changed the drawing 
into something with rotating the top-line of the rectangle around the corner. 
If I am correct, then this is the right drawing.

Thank you again for your answer, it made me see the culprit correctly!

Kind regards

Willi

test.tex
Description: Binary data


test.pdf
Description: Adobe PDF document


> On 12 Apr 2021, at 23:22, Jairo A. del Rio  wrote:
> 
> Is this what you need? If so, change unitsquare by fullsquare.
> 
> Jairo
> 
> El lun, 12 de abr. de 2021 a la(s) 16:06, Willi Egger (cont...@boede.nl) 
> escribió:
> Hi
> 
> can somebody tell me why I do not get a trapezoid with bottom angles of 120 
> degrees?
> 
> Please try the attached minimal example.
> 
> Thank you!
> 
> Willi
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

2021-04-12 Thread Willi Egger
Thank you Jairo for your immediate answer. Although it is not yet what I have 
in mind, I see now what to do.

Thanks!

Willi

> On 12 Apr 2021, at 23:22, Jairo A. del Rio  wrote:
> 
> Is this what you need? If so, change unitsquare by fullsquare.
> 
> Jairo
> 
> El lun, 12 de abr. de 2021 a la(s) 16:06, Willi Egger (cont...@boede.nl) 
> escribió:
> Hi
> 
> can somebody tell me why I do not get a trapezoid with bottom angles of 120 
> degrees?
> 
> Please try the attached minimal example.
> 
> Thank you!
> 
> Willi
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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] A Metafun-Problem

2021-04-12 Thread Willi Egger
Hican somebody tell me why I do not get a trapezoid with bottom angles of 120 degrees?Please try the attached minimal example.Thank you!Willi

test.tex
Description: Binary data


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


[NTG-context] Problem creating format file after downloading current version: 2021.03.09 11:42

2021-03-11 Thread Willi Egger
Hello,

todau I decided to upgrade my ConTeXt LMTX installation.
However I get troubles and can not make a format file due to a fatal error. 
Please see cont-en-error.log

Kind regards

Willi

cont-en-error.log
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] upload

2020-11-17 Thread Willi Egger
Hans,

I was looking trough your new manuals. Chapeau! Very interesting and good 
reading! — I wonder whether your day still has 24 hours ;-) — Thank you so much!

Willi

> On 17 Nov 2020, at 12:55, Hans Hagen  wrote:
> 
> Hi,
> 
> I uploaded a new version of lmtx (and mkiv). We're still in the process of 
> migrating code from mkiv to lmtx (using new features). Anyway, I also 
> uploaded a few more (preliminary) 'manuals'
> 
> http://www.pragma-ade.com/general/manuals/lowlevel-macros.pdf
> http://www.pragma-ade.com/general/manuals/lowlevel-security.pdf
> http://www.pragma-ade.com/general/manuals/lowlevel-conditionals.pdf
> http://www.pragma-ade.com/general/manuals/lowlevel-boxes.pdf
> 
> but some is work in progress. It shows a bit how things evolve(d) and what ws 
> and i are dealing with now.  More (details) in due time.
> 
> Hans
> 
> -
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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 reproduce a particular head/title style (reformat)

2020-11-15 Thread Willi Egger
Hi Garulfo!

Now! — You  managed do do a nice job! :-)

Willi

> On 15 Nov 2020, at 19:53, Garulfo  wrote:
> 
> Hi,
> 
> finally I made some progress and uploaded files to the wiki in "Reports and 
> articles" Samples section (https://wiki.contextgarden.net/Sample_documents)
> 
> Initial PDF document:
>> https://www.hautconseilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-france-1.pdf
>>  
> 
> ConTeXt output :
>> https://wiki.contextgarden.net/images/4/45/2020_hcc_rapport_maitriser-l-empreinte-carbone-de-la-france.pdf
> 
> ConTeXt input files (build with pdftotext > markdown > pandoc > manual work 
> and inkscape):
>> https://wiki.contextgarden.net/images/4/45/2020_hcc_rapport_maitriser-l-empreinte-carbone-de-la-france.pdf
> 
> Any feedback is welcome (even if source code is not really clean)
> 
> I learned a lot, and I definitely recommend such an exercise for document 
> design with ConTeXt :
> - take a PDF file with a design you appreciate
> - extract the content
> - try to reproduce the design with ConTeXt
> 
> 
> 
>> I would like to learn "how to ConTeXt" complex titles styles like the one 
>> seen in the following document:
>> - https://wiki.contextgarden.net/images/f/f1/Screenshot_20201103_220818.png
>> - source document: 
>> https://www.hautconseilclimat.fr/wp-content/uploads/2020/10/hcc_rapport_maitriser-lempreinte-carbone-de-la-france-1.pdf
>>  1. doublesided document
>> 2. on both side, section title are underlined by a red rule, always "left 
>> aligned" in the text area, shifted to the right by the same distance than it 
>> is done for the text of the title, which ends at the right border of the page
>> 3. on the left page : section title are overlined by a "second red rule", 
>> which starts "left aligned" in the text area, and goes across the whole page 
>> width
>> 4. on the right page : the "second red rule" starts from the left border of 
>> the page, and terminates at the end of the text area
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] Filler rules

2020-10-22 Thread Willi Egger
Thank you Wolfgang! — In the meantime i was indeed able to setup what i needed 
with \blackrule

Kind regards

Willi

> On 22 Oct 2020, at 22:09, Wolfgang Schuster 
>  wrote:
> 
> Willi Egger schrieb am 15.10.2020 um 21:59:
>> Hoi,
>> 
>> In earlier times we had something like \definerule[…][…] and 
>> \setuprule[…][…]. This made it possible to create lines of a define width.
> 
> I'm sorry but I'm unable to find any code or proper example for the command.
> 
>> So what I found is the fillers, which apparently are not meant for the 
>> purpose I am looking for.
> 
> You can try the \blackrule command to add a custom rule after your title.
> 
> 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
> ___

___
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 Spanish introduction to ConTeXt Mark IV

2020-10-15 Thread Willi Egger
Good evening Joaquin,

first of all congratulations for your initiative, this is really an impressive 
piece of work!

Without wanting to critisize I think, that in general MKIV documents should be 
made up with \start”elment” … \stop”element”. This will be important for all 
those, who also need to produce xml. 

I encountred two things in your book:

page 96 at the bottom. You write that the “height” is header + headerdistance + 
textheight + bottomdistance + bottom. This should be footerdistance and footer. 
— The graphic showing the areas however is correct.

page 139 at the top: \chapter[title=…,reference=..]. This should be 
\startchapter[title=…,reference=…] … \stopchapter

Again, thank you for all your work! — Sorry “no hablo Espaniol”…

Saludos cordiales

Willi

> On 14 Oct 2020, at 06:27, Joaquín Ataz López  wrote:
> 
> Sorry. By mistake I sent the message as a reply to another one, when in fact 
> I was trying to start a new thread with it. I'm sending it again (I think 
> I'll do it right now):
> 
> -
> 
> Good morning to everyone.
> 
> Although I guess it will not be of interest to most of the list members, I 
> wanted to communicate that I have written an introduction to ConTeXt Mark IV 
> in Spanish, which can be downloaded at 
> https://webs.um.es/jal/docs/introCTX.pdf. Its title is "An Introduction (not 
> too short) to ConTeXt Mark IV".
> 
> ConTeXt is a wonderful document composition system, but there is not much 
> literature to help you get into it, hence my initiative. The problem is that 
> I've only been using ConTeXt for a short time and still have many doubts, so 
> it's possible that the introduction may contain errors. As it has been 
> written in Spanish I don't think many of you will be able to read it, but I 
> would appreciate, of course, any suggestions for improvement. The document 
> is, on the other hand, free and anyone who wants to include it in any ConTeXt 
> distribution can, of course, do so. Also, if anyone wants the source files, I 
> have no problem providing them.
> 
> I have not based my introduction on LMTX because I think that for beginners a 
> more stable system, like LuaTeX, is preferable.
> 
> Finally, I apologize for my bad English level. I read it reasonably well, but 
> expressing myself in it is much harder for me.
> 
> -- 
> Joaquín Ataz López
> Derecho Civil
> Universidad de Murcia
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


  1   2   3   4   5   6   7   8   9   10   >