[NTG-context] multicolumn title and abstact (bachotex) using tugboat.mkxl

2024-03-07 Thread Damien Thiriet via ntg-context

Hello,


I am currently writing my paper for last year's BachoTeX proceedings.
I am using tugboat.mkxl module to design the layout.

In bachotex proceedings, the author's data and abstract are on a single 
column and the article is usually typeset on two columns.

Comments in tugboat.mkxl states:

%D We have several column mechanisms and they all serve a different 
purpose. Here we
%D use pagecolumns. They support much of what we can do in single 
columns, but of
%D course there are exceptions. Floats can go into columns of aremoved 
to the top or
%D bottom when there is no room. We don't span mid column. Notes can go 
in columns
%D or at the end. We can start with a single column (for titles and 
such).


I can't figure out which part of the file should be used/adapted to 
start with a single column.
What I did is to put datas and abstract in a frame and use \placefigure. 
As stated in pagecolumns
manual, everything is put on the top of next page. (BTW, there is a 
typo: «of aremoved»)


I don't know, whether this MWE helps is relevant, but just in case, here 
is what I did:


* copy tugboat.mkxl to a new file p-bachotex.mkxl
* changed p-bachotex.mkxl like this:

\startsetups bachotex:naglowek:columns
\defineframedtext [Dane]
\setupframedtext
[Dane]
[width=18cm ,
 align=normal,
 frame=no]
\definenarrower
[Streszczenia]
[2*middle]

\startplacefigure [location={here,none}]
{\startDane
{\tfa\getvariable{tugboat}{author}}\par
\getvariable{tugboat}{address}\par
{\tt\getvariable{tugboat}{email}}\par

\startStreszczenia
\doifelsebufferempty {abstract} {
% no abstract
} {
\blank[line]

\enforced\let\\\endgraf
\setups[tugboat:abstract:setup]
\startAbstracts[title={Abstract}]
\stopAbstracts
}
\stopStreszczenia
\stopDane}
\stopplacefigure
\stopsetups

\startsetups tugboat:article:start

  \starttext

\setups{tugboat:columns:presets}

\setups{tugboat:banner:setup:\getvariable{tugboat}{type}}

\setupheadertexts
[\setups{tugboat:banner:text:article}]
[pagenumber]

\setuppagenumber
[number=\getvariable{tugboat}{page}]

\startmode[columns]
\startpagecolumns
\stopmode

\setups[tugboat:introduction:article]
\doifmodeelse{columns}{
\setups{bachotex:naglowek:columns}
} {
\setups{bachotex:naglowek:nocolumns}
}

\stopsetups

My article begins so:

\enablemode [columns]
\usemodule [bachotex]

% skipped tugboat variables for this MWE

\StartAbstract
  \input tufte
\StopAbstract
\StartArticle
   \input knuth
\StopArticle

Thank you for your help

Damien T
___
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: OpenBSD install failed

2024-01-23 Thread Damien Thiriet via ntg-context




Dear Hans,


can you test with

 OpenBSD|openbsd)
 case "$CPU" in
 i*86)
 PLATFORM="openbsd" ;;
 amd64)
 PLATFORM="openbsd$-amd64" ;;
 *)

instead?


I tested it, with and without the typo at
openbds$-amd64

Having fixed it to

  OpenBSD|openbsd)
  case "$CPU" in
  i*86)
  PLATFORM="openbsd" ;;
  amd64)
  PLATFORM="openbsd-amd64" ;;
  *)

I could install the binaries and compile the basic test doc with \input 
tufte


Thanks a lot!

Dear Hraban,



Did you try to compile your own binaries?
You need CMake and a C compiler.

PWD = your installation directory
PLATFORM = openbsd7.4-amd64 (if that’s still right)

cd $PWD/tex/texmf-context/source/luametatex
sh build.sh
cp build/native/luametatex "$PWD/tex/texmf-$PLATFORM/bin/"

Have fun,
Hraban




I did not try but took good note, making a port of context suite is in 
my very long
TODO list. Not an official one, I am not able to run -current, but 
something that helps when I need to upgrade quickly OpenBSD and context.


Best regards,


Damien Thiriet
___
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: vim syntax highlighting bug?

2024-01-22 Thread Damien Thiriet via ntg-context

Thanks Vincent for your patch, solved this issue.

Best regards,

Damien Thiriet
___
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] OpenBSD install failed

2024-01-22 Thread Damien Thiriet via ntg-context

Hello,

I tried to install OpenBSD 7.4 binaries but failed.
What I did:
download the zip from pragma
unpack it in /usr/local/context
chmod 744 install.sh
./install.sh

After running it, there is no file in

/usr/local/context/tex/texmf-openbsd7.4-amd64/

I searched the mailing list archive and after reading that post from 
Mojca

https://www.mail-archive.com/ntg-context@ntg.nl/msg92131.html
I took a look at mtxrun.lua

Don't know if this is the issue, but here is

grep bsd /usr/local/context/bin/mtxrun.lua
output:
 elseif name=="freebsd" then
   bits,platform=64,"freebsd-amd64"
   bits,platform=32,"freebsd"
 elseif name=="kfreebsd" then
   bits,platform=64,"kfreebsd-amd64"
   bits,platform=32,"kfreebsd-i386"

Best regards,

Damien Thiriet
___
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] vim syntax highlighting bug?

2024-01-06 Thread Damien Thiriet via ntg-context

Hello,


Happy New Year!

I got into a bug in my Vim syntax highlighting version.
Highlight stays in lua mode after ctxlua macro is closed.
Here is a MWE, where «this should not be highlitghted as
a comment indeed is.

\starttext

Hello!
\ctxlua{context("does the parser work?")}

-- this should not be highlighted as a comment

\stoptext

Do other Vim users come into this?
Is my syntax file outdated?

I am using this Vim version on OpenBSD 7.3 -stable:
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Sep  6 2023 08:55:14)
Included patches: 1-1876

Best regards,

Damien Thiriet
___
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] OBSD 7.3 binary locally compiled… what next?

2023-05-08 Thread damien thiriet via ntg-context

Hello,


you should make

tex/texmf-openbsd7.3-amd64

and put 5 files there:

luametatex
context -> luametatex
mtxrun  -> luametatex
mtxrun.lua
context.lua


Thanks for your hints. I did as you said but got stucked with a tree 
structure problem.
Since I was lacking the time to dig into it, and a new update was 
announced, I simply loaded the new binary from pragma.
But I now understand the workflow to update to 7.4: update to the latest 
lmtx (I do not update so often), ugrade OBSD, build the new binary if no 
upload is available.


Anyway, 7.3 binaries work ok.
Many thanks!

Damien T
___
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] OBSD 7.3 binary locally compiled… what next?

2023-05-04 Thread damien thiriet via ntg-context

Hi,


I upgraded today my OBSD to 7.3 and… realized too late that texlive 
binaries were on the compile farm, but not the lmtx ones. That was the 
opportunity to learn self-install, though.

I compiled the binary, but I am stuck with the next step

What I did:

- rm -rf /usr/local/context/* (now I suspect I should have first updated 
my 7.2 installation and then, after upgrading to 7.3, compiled the 
binaries…)

- download  https://www.pragma-ade.nl/context/latest/cont-tmf.zip
- unpacked it into /usr/local/context (unzip cont-tmf.zip -d 
/usr/local/context/)

- cd /usr/local/context/source/luametatex
- ./build.sh --native

Compilation succeeded, looks like the binary lies in
/usr/local/context/source/luametatex/build/native/luametatex

What's the next step?

There was this message:

==
tex trees

resources like public fonts  : tex/texmf/
the context macro package: tex/texmf-context/
the luametatex binary: tex/texmf-native/bin/...
optional third party modules : tex/texmf-context/
fonts installed by the user  : tex/texmf-fonts/fonts/data/
styles made by the user  : tex/texmf-projects/tex/context/user/

binaries:

tex/texmf-/bin/luametatex : the compiled binary (some 
2-3MB)
tex/texmf-/bin/mtxrun : copy of or link to 
luametatex
tex/texmf-/bin/context: copy of or link to 
luametatex
tex/texmf-/bin/mtxrun.lua : copy of 
tex/texmf-context/scripts/context/lua/mtxrun.lua
tex/texmf-/bin/context.lua: copy of 
tex/texmf-context/scripts/context/lua/context.lua


commands:

mtxrun --generate : create file database
mtxrun --script fonts --reload: create font database
mtxrun --autogenerate context ... : run tex file (e.g. from editor)
https://www.pragma-ade.nl/context/latest/cont-tmf.zip

The tex/texmf/ folder does not exist yet.

Does this mean I have to create that part of the tree by hand (which 
means should I have unpacked the zip at /usr/local/context/tex/texmf 
rather than /usr/local/context)?I’d bet copying anything(copying mtxrun 
from

/usr/local/context/scripts/context/stubs/unix/mtxrun ?

Should I run install.sh – which I not did, assuming maybe wrongly that 
it would fail, and if so, which options?


Thank you for your time,

Damien

___
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] filling buffers in cld documents

2022-11-27 Thread damien thiriet via ntg-context

Hi,


I am used to giving very extensive feedbacks to my pupils.
These are buffers with xtables flushing lua vectors.
Here is their basic structures:

* an environment that stores xtables. Turned into MWE, look like:

   \startenvironment env_corrige.mkiv

   \startluacode
  userdata = userdata or {}
   function userdata.Critere (commentaire,note,notemax)
  context.startxcell {"width=11cm","height=2.75cm"}
 context(Eleve[commentaire])
  context.stopxcell ()
  context.startxcell {"width=1.5cm","align=flushright"}
 context(Eleve[note])
 context("/")
 context(notemax)
  context.stopxcell ()
   end
   \stopluacode

   \startbuffer [grille]
   \startxtable
  \startxrow
 \startxcell
\ctxlua {userdata.Critere ("structure","NoteStructure",2)}
 \stopxcell
  \stopxrow
   \stopxtable
   \stopbuffer
   \stopenvironment

* The main file is divided in subjects, each one of them
being the feedback to one pupil. In a MWE fashion

   \useenvironment [env_corrige]
   \starttext
   \startsubject[title={Astérix}]
   \startluacode
   Eleve = {
  structure = "analyse très fine",
  NoteStructure = 2,
   }
   \stopluacode
   \getbuffer [grille]
   \stopsubject

   \startsubject[title={Obélix}]
   Eleve = {
  structure = "le détail doit être travaillé. Pensez à la finesse de 
vos menhirs…"

  NoteStructure = 1,
   }
   \stopsubject
   \getbuffer [grille]
   \stoptext

Since whatever I fill in those files is written
inside luacode environment, I tried to switch to
cld documents.

Here is my main file in cld version

   context.useenvironment({"env_corrige"})

   context.starttext()

   context.startsubject({title="Asterix"})

   Eleve = {
  structure = "analyse très fine",
  NoteStructure = 2,
   }
   context.getbuffer({"ExoCorrection"})
   context.stopsubsubject()

   context.startsubject({title="Obélix"})

   Eleve = {
  structure = "le détail doit être travaillé. Pensez à la finesse de 
vos menhirs…"

  NoteStructure = 1,
   }
   context.getbuffer({"ExoCorrection"})
   context.stopsubsubject()
   context.stoptext()

The troubles is that buffers are filled with
the last version of Eleve table.
I guess this is because the whole file
is parsed and then filled in buffers.
My understanding of the cld manuel is that
context.tobuffer()
and
context.direct()

should be used, but couldn't figure out how.
Tried several times, also with context.step but
all failed.
I think I didn't properly understand the "temp"
and str of context.tobuffer description in manual.

What changes should I introduce to my cld files?

Best regards,

Damien Thiriet
___
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] OpenBSD binaries

2022-11-09 Thread damien thiriet via ntg-context

Wasn't it you who actually suggested to have the two versions?


I bet I was… mea maxima culpa.
Looks anyway like there are not many OBSD users dealing with ConTeXt…


the sources are in the distribution as is build.sh


Thanks Hans. I understand these are on

https://www.pragma-ade.nl/download-1.htm

I'll give it a try during my next holidays…

Best regards,

Damien Thiriet
___
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] OpenBSD binaries

2022-11-04 Thread damien thiriet via ntg-context

Hi,


I have two question regarding OBSD binaries:

1)
the building farm holds two binaries: current -stable version (or 
-release?) and the previous version.
Since upgrading OBSD with sysupgrade is very easy, but AFAIU works only 
to upgrade from version (n-1) to n where n is current relase number, I 
wonder if it wouldn't easier to maintain binaries only for the current 
version: keeping the OS up to date is strongly recommended.


https://www.openbsd.org/faq/faq5.html#Flavors

This might ease OBSD binaries management.
What do other OBSD users think about it?

2) AFAIU, sources are now available for downloading.
I understand it would be possible to make a package build for my system, 
so that I can upgrade OBSD without having to wait for the next binaries 
upload.
* binaries are quite small, so they should compile quite quickly. Am I 
right?

* I believe Mojca has already a compiling script. Where can I find it?
* which adress should I point to fetch the sources for compilation?

Best regards,

Damien Thiriet

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

2022-05-18 Thread Damien Thiriet via ntg-context
Hi śrīrāma,

> I hope you made the format (context --make) after
> applying the changes.

That's exactly what I missed. Should have read the whole 
thread and not the last part…

Reading your diff, I also didn't comment out the lines with
string.tolower and local lowered, but I guess this is not an issue
since I commented out all the entries with lowered[tag|field]

Many thanks,

Damien Thiriet 
___
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 Damien Thiriet via ntg-context
> 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

Unfortunately, commenting out all occurrences of those two lines
didn't make the job for me.
And using lowercase characters is unfortunately a no-op as far as
I'm concerned: my bib files have been filled with CamelCase for years,
and are loaded by dozens of other files…

is there something I missed?
current version: 2022.05.02 16:19

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

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


Re: [NTG-context] ConTeXt meeting 2023(!)

2022-05-17 Thread Damien Thiriet via ntg-context
Hi,


Being a teacher, I would indeed prefer a meeting during holidays,
that would give me a chance to attend sometimes, and meeting locations
are often mid-way between France and Poland… 

Greetings,

Damien Thiriet 
___
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] 32-bit OpenBSD

2022-05-07 Thread Damien Thiriet via ntg-context
Hi Mojca, hi Hans,


OpenBSD 7.1 64-bit binaries works fine, thanks for upgrading ConTeXt to
the new OpenBSD version. I don't use 32-bit version so as far as I am
concerned, there is no need to compile them.
Best regards,

Damien Thiriet 
___
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] right item marks for associative questions? (śrīrāma)

2022-04-16 Thread Damien Thiriet via ntg-context
Hi,

> In function 'ListeAleatoireGauche' calling startitemize as below should
> help:
>  context.startitemize ({"8","packed","random"}, {align="righttoleft"})
>
>  Further, I think you might also need to put the entry into stream in a
>  group:
>context.start() context.lefttoright(t[k]) context.stop()
>
>  Sreeram

Many thanks, this solved my problems. I understand
context.startitemize() is designed to get several vectors as arguments,
something I didn't thought about.
Could you explain the whereabouts of calling to context.(start|stop)()?
Some expansion stuff? 
In my MWE, only the first item was left-to-right.

Best regards,

Damien Thiriet 
___
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] right item marks for associative questions?

2022-04-15 Thread Damien Thiriet via ntg-context
> You can use different alignment settings to move the bullet points to
> the right side of your lists.

Thank you Wolfgang, this is exactly what I need.
One more question: I am typesetting those questions in lua,
because lua vectors were more convenient for reading the whole 
but I am not sure how should I pass the righttoleft option.
I read the cld manual and my guess is I should use function() 
but looks like I lack some understanding of context proceeding.


This is what I did so far


\startluacode 
   userdata = userdata or {}
   function ListeAleatoireGauche(t)
  context.startitemize {"8","packed","random"}
 for k=1,#t do
context.startitem()
   context.lefttoright(t[k])
context.stopitem()
 end
  context.stopitemize()
   end
   function ListeAleatoireDroite(t)
  context.startitemize {"8","packed","random"}
 for k=1,#t do
context.startitem()
   context(t[k])
context.stopitem()
 end
  context.stopitemize()
   end

   function QCMAssociatif(t,u)
  context.startxtable {"frame=no","columndistance=3cm"}
 context.startxrow()
context.startxcell()
   ListeAleatoireGauche(t)
context.stopxcell()
context.startxcell()
   ListeAleatoireDroite(u)
context.stopxcell()
 context.stopxrow()
  context.stopxtable()
   end
\stopluacode
\starttext
\startluacode 
Author = {"Nietzsche","God"}
Quote = {"God is dead","Nietzsche is Dead"}
QCMAssociatif (Author,Quote)
\stoptext


Damien Thiriet 
___
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] right item marks for associative questions?

2022-04-12 Thread Damien Thiriet via ntg-context
Thank you for all your answers.
I will have a deeper look at them. 
My first comments:

> If you are certain that the there will be no
> multi-line item
Unfortunately there are often some. History
teachers are not known for loving short texts,
at least in France.

> Using the “columns" feature is one way to go
Might be, but I do not always give the same
number of answers on both columns

Something I forgot to put in my MWE is that I 
randomize both lists. Messing the answers is a 
good way to prevent pupils from cheating, 
especially with long answers..
That makes a four columns table more cumbersome,
so I believe.

Damien

___
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] right item marks for associative questions?

2022-04-11 Thread Damien Thiriet via ntg-context
Hi!

I am used to giving associative questions to my pupils,
something like

* connect the author with its ideas

Friedrich Nietzsche *  * "God is dead"
Woody Allen *  * "Nietzsche is dead, God is dead 
  and I don't feel so good"
God *  * "Nietzsche is dead"

I design it as a two-cells xtable with itemized lists inside.
How can I have the item mark on the right side?

\starttext
\startitemize [8]
\startitem Nietzsche \stopitem
\startitem Allen \stopitem
\startitem God \stopitem
\stopitemize
\stoptext

Greetings,

Damien Thiriet 
___
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] withcolor does not apply when anglestriped

2022-01-21 Thread Damien Thiriet via ntg-context
Thanks Hans,

I like very much your (meta)fun answers, since it
is less magic and more understandable for me. 
Let's play with it now…

Damien Thiriet

On Fri, Jan 21, 2022 at 01:01:23AM +0100, Hans Hagen wrote:
> 
> but this is way more (meta)fun:
> 
> draw (fullsquare scaled 4cm)
> withpattern image (
>   draw (bottomboundary p) rotated -60
>   withcolor "darkblue" ;
> )
> withpatternscale (1/10,1/10)
> withpen pencircle scaled 1mm
> ;
> 
> (examples in the test suite)
> 
> Hans
> 
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] withcolor does not apply when anglestriped

2022-01-20 Thread Damien Thiriet via ntg-context
Hello list,


I noticed today that anglestriped does not take
withcolor into account. Givent this MWE

\starttext
\startMPpage

path p; 
p:= fullsquare scaled 20;
draw p anglestriped (1,60,4) withcolor red;

\stopMPpage
\stoptext

p is in black, while I'd expect red 

Greetings,

Damien Thiriet
___
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] hatching an area without drawing its borders (Hans Hagen)

2021-10-08 Thread Damien Thiriet via ntg-context
Hi, 

Many thanks for this quick addition to the codebase.
Best regards,

Damien Thiriet 
___
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] hatching an area without drawing its borders

2021-10-07 Thread Damien Thiriet via ntg-context
Hi,

I read the 2015 thread Hatch an area with Metapost (Metafun)
and started playing with anglestriped. However in my maps
I would like to get my shapes hatched with no borders drawn. 
How can I achieve it? 

path p;
p := fullcircle scaled 50 randomized 5;
draw p anglestriped (1,60,4);


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