Re: [NTG-context] Fuzzy lines

2021-05-11 Thread Aditya Mahajan


On Tue, 11 May 2021, Jairo A. del Rio wrote:

> For simple pens, you may define your own (section 9.7 of MetaPost manual).
> For complicated strokes, something along these lines could be useful as a
> starting point (I'm not taking cyclic paths in consideration, btw). I did
> something similar with duck footprints some weeks ago:
> 
> %Sorry for the ugly code...

Look at this old code on how hide such code behind a macro to have a clean 
interface:

https://github.com/adityam/mp-sketch/blob/master/mp-sketch.mp

Sometimes I use such effects in presentations but you have to resist the 
temptation to overdo it:

http://www.cim.mcgill.ca/~adityam/talks/2016-it-forum.pdf

Aditya

___
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] Include PDF pages

2021-05-11 Thread Aditya Mahajan
On Tue, 11 May 2021, denis.ma...@ub.unibe.ch wrote:

> > Von: ntg-context  Im Auftrag von MANUEL 
> > GONZALEZ SUAREZ
> > Gesendet: Dienstag, 11. Mai 2021 09:30
> > An: Context 
> > Betreff: [NTG-context] Include PDF pages
> > 
> > Hello everybody:
> > 
> > 
> > My query is as follows: in LaTeX there is the package "pdfpages" 
> > (https://www.ctan.org/pkg/pdfpages) that allows pages from a PDF file to be 
> > included in a TeX document. Is there a similar procedure that works in 
> > ConTeXt?
>
> https://wiki.contextgarden.net/Including_pages_from_PDF_documents

If these don't meet your needs, it is also relatively easy to roll your own 
macro:

https://adityam.github.io/context-blog/post/include-multi-page-pdf/

Aditya
___
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] \char not working with private unicodes

2021-05-11 Thread Hans Hagen

On 5/11/2021 3:40 PM, Taco Hoekwater wrote:




On 11 May 2021, at 15:16, Hans Hagen  wrote:

On 5/11/2021 2:08 PM, Jairo A. del Rio wrote:

Hi, list! Following this thread: 
https://tex.stackexchange.com/questions/596610/how-to-use-luatex-with-large-unicode-codepoint
 
,
 I tried to replicate it in ConTeXt. Both LMTX and LMTX fail to display the right 
symbol and, as it's discussed in the linked page, there's an offset by 14. Is this 
intentional (in ConTeXt)? A bug? Minimal (non-)working example:
%Font available here: https://materialdesignicons.com/ 

\starttext
\definedfont[file:materialdesignicons-webfont.ttf]\char"F1372\relax
\stoptext

You need to employ a sense of humour for that font:

\starttext
\definefontfeature[materialicons][default][rlig=yes]
\definedfont[file:materialiconsregular.ttf*materialicons]
baby_changing_station
\stoptext


That only works with the regular font, not with the webfont version from the 
‘easy download’
link (it is cool, though :)).

But that is not the issue. The issue is that you have this super-useful page 
online:

   https://pictogrammers.github.io/@mdi/font/5.4.55/

where you can just copy the code point and/or the encoding hex value. But those 
values
do not match the ones in ConTeXt because the duplicates are removed while 
creating the tma,
which condenses the encoding, resulting in an encoding offset, and that in turns 
make cut
useless. :(


Also, it is a bit of a shame that the XXX-webfont.ttf has postscript glyph 
names that map to the
online cheat sheet, but these names are not preserved in the tma file (at least 
not in my lmtx
version). Keeping those would make the whole typset-a-specific-glyph procedure 
be a lot less
error-prone, at least.

i suppose you noted the message -)

can you confirm / check that we can safely assume zero length names to 
be okay?


local length = readbyte(f)
if length > 0 then
glyphs[mapping].name = readstring(f,length)
else
 -- report("quit post name fetching at %a of %a: 
%s",i,maxnames,"overflow")

 -- break
end

i bet this check is there because of some other font needed it in order 
to get loaded



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


Re: [NTG-context] KeenWrite 2.0

2021-05-11 Thread Nicola
On 2021-05-10, Thangalin  wrote:
> Happy to announce that invoking ConTeXt from KeenWrite is now possible.

Cool. To make it easier to install in macOS, I have quickly cooked a
couple of Homebrew formulas (see below). Use like this:

cd 
brew install ./zulufx16.rb
brew install ./keenwrite.rb
keenwrite

Nicola


# Save as zulufx16.rb

cask "zulufx16" do
  version "16.0.1,16.30.15-ca"

  if Hardware::CPU.intel?
sha256 
"cbb3b96d80a0675893f21dc51ba3f532049c501bd7dc4c8d1ee930e63032c745"

url 
"https://cdn.azul.com/zulu/bin/zulu#{version.after_comma}-fx-jdk#{version.before_comma}-macosx_x64.tar.gz;,
  referer: "https://www.azul.com/downloads/zulu/zulu-mac/;
  else
sha256 
"6b66194ee69ac0abc28a6fb00cad37fc29a8b5085776cfbaeebf4a600b03a16e"

url 
"https://cdn.azul.com/zulu/bin/zulu#{version.after_comma}-fx-jdk#{version.before_comma}-macosx_aarch64.tar.gz;,
  referer: "https://www.azul.com/downloads/zulu/zulu-mac/;
  end

  name "ZuluFX 16"
  desc "Azul Zulu Java 16 Standard Edition Development Kit"
  homepage "https://www.azul.com/downloads/zulu/zulu-mac/;

  depends_on macos: ">= :yosemite"

  artifact "zulu16.30.15-ca-fx-jdk16.0.1-macosx_x64/zulu-16.jdk", target: 
"/Library/Java/JavaVirtualMachines/zulu-16.jdk"

  zap delete: "/Library/Java/JavaVirtualMachines/zulu-16.jdk"
end





# Save as keenwrite.rb

class Zulufx16Requirement < Requirement
  fatal true
  satisfy(build_env: false) { 
Dir.exist?("/Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home") }
  def message
<<~EOS
  Execute `brew install --cask zulufx16` before installing Keenwrite.
EOS
  end
end

class Keenwrite < Formula
  desc "Java-based desktop text editor with live preview, string 
interpolation, and formulas"
  homepage "https://github.com/DaveJarvis/keenwrite;
  url 
"https://github.com/DaveJarvis/keenwrite/releases/download/2.0.0/keenwrite.jar;
  version "2.0.0"
  sha256 "259743af0728502e89abac043973ef5c213573183ba71ba93accb2a330f0e7a8"
  head "https://github.com/DaveJarvis/keenwrite.git;

  def install
java_home = 
"/Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home"
ENV["JAVA_HOME"] = java_home
libexec.install "keenwrite.jar"
(bin/"keenwrite").write <<~EOS
  #!/bin/bash
  export JAVA_HOME="#{java_home}"
  exec "${JAVA_HOME}/bin/java" --illegal-access=permit -jar 
"/usr/local/Cellar/keenwrite/#{version}/libexec/keenwrite.jar" "$@"
EOS
  end

  test do
false
  end
end



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

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


Re: [NTG-context] \char not working with private unicodes

2021-05-11 Thread Taco Hoekwater


> On 11 May 2021, at 15:16, Hans Hagen  wrote:
> 
> On 5/11/2021 2:08 PM, Jairo A. del Rio wrote:
>> Hi, list! Following this thread: 
>> https://tex.stackexchange.com/questions/596610/how-to-use-luatex-with-large-unicode-codepoint
>>  
>> ,
>>  I tried to replicate it in ConTeXt. Both LMTX and LMTX fail to display the 
>> right symbol and, as it's discussed in the linked page, there's an offset by 
>> 14. Is this intentional (in ConTeXt)? A bug? Minimal (non-)working example:
>> %Font available here: https://materialdesignicons.com/ 
>> 
>> \starttext
>> \definedfont[file:materialdesignicons-webfont.ttf]\char"F1372\relax
>> \stoptext
> You need to employ a sense of humour for that font:
> 
> \starttext
>\definefontfeature[materialicons][default][rlig=yes]
>\definedfont[file:materialiconsregular.ttf*materialicons]
>baby_changing_station
> \stoptext

That only works with the regular font, not with the webfont version from the 
‘easy download’ 
link (it is cool, though :)).

But that is not the issue. The issue is that you have this super-useful page 
online:

  https://pictogrammers.github.io/@mdi/font/5.4.55/

where you can just copy the code point and/or the encoding hex value. But those 
values
do not match the ones in ConTeXt because the duplicates are removed while 
creating the tma, 
which condenses the encoding, resulting in an encoding offset, and that in 
turns make cut
useless. :(


Also, it is a bit of a shame that the XXX-webfont.ttf has postscript glyph 
names that map to the 
online cheat sheet, but these names are not preserved in the tma file (at least 
not in my lmtx 
version). Keeping those would make the whole typset-a-specific-glyph procedure 
be a lot less 
error-prone, at least.

Best wishes,
Taco

— 
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 / 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] Fuzzy lines

2021-05-11 Thread Henning Hraban Ramm
Hi Mikael,

thank you, there are some interesting ideas.

We have already seen a lot of randomization in paths; duplicating a randomized 
path with varying saturation enhances the effect.

With PGF/TikZ I could maybe use a brush decoration on a path.

Is it possible to use a irregular "pen" in MetaPost? With transparency?
The MF manual says in 1.11, pens are limited, but not how.

Or are properties (MF manual 8.10) the way to go?

Hraban


> Am 11.05.2021 um 13:30 schrieb Mikael Sundqvist :
> 
> Not really what you ask for, perhaps, but this could be interesting
> for you: https://tex.stackexchange.com/q/39296/52406
> 
> /Mikael
> 
> On Tue, May 11, 2021 at 12:58 PM Henning Hraban Ramm  wrote:
>> 
>> is it possible to get lines with Metapost that look like they were drawn 
>> with a pencil or brush?
>> 
>> Some vector graphics apps (in my case: Affinity Designer) can use such 
>> naturally looking brushes for vector graphics (and I don’t know how they do 
>> it), but I’d like to automate/parametrize some designs, and that would 
>> finally be a reason to learn Metapost...
>> 
>> Hraban

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

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


Re: [NTG-context] \char not working with private unicodes

2021-05-11 Thread Hans Hagen

On 5/11/2021 2:08 PM, Jairo A. del Rio wrote:
Hi, list! Following this thread: 
https://tex.stackexchange.com/questions/596610/how-to-use-luatex-with-large-unicode-codepoint 
, 
I tried to replicate it in ConTeXt. Both LMTX and LMTX fail to display 
the right symbol and, as it's discussed in the linked page, there's an 
offset by 14. Is this intentional (in ConTeXt)? A bug? Minimal 
(non-)working example:



%Font available here: https://materialdesignicons.com/ 



\starttext

\definedfont[file:materialdesignicons-webfont.ttf]\char"F1372\relax

\stoptext

You need to employ a sense of humour for that font:

\starttext
\definefontfeature[materialicons][default][rlig=yes]
\definedfont[file:materialiconsregular.ttf*materialicons]
baby_changing_station
\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 / 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] Fuzzy lines

2021-05-11 Thread Jairo A. del Rio
For simple pens, you may define your own (section 9.7 of MetaPost manual).
For complicated strokes, something along these lines could be useful as a
starting point (I'm not taking cyclic paths in consideration, btw). I did
something similar with duck footprints some weeks ago:

%Sorry for the ugly code...

\starttext

\startMPpage
%Unit size

numeric u; u := 1mm;

%In a picture you are able to include everything, kinda

picture Pluma;

Pluma := image(

for i = 1 upto 5:

for j = 1 upto 5:

draw (i,j) randomized 1;

endfor

endfor

);


%Simple curve

path Camino;

Camino := origin for i = 1 upto 30: .. (u*i, u*sind (12i mod 360)) endfor;


%Strokes

for i = 0 step 1/2 until length Camino:

draw Pluma rotated (90 + angle direction i of Camino)

shifted point i of Camino;

endfor

\stopMPpage

\stoptext


Not sure if that's what you need...

Regards,


Jairo

El mar, 11 de may. de 2021 a la(s) 06:31, Mikael Sundqvist (mic...@gmail.com)
escribió:

> Hi!
>
> Not really what you ask for, perhaps, but this could be interesting
> for you: https://tex.stackexchange.com/q/39296/52406
>
> /Mikael
>
> On Tue, May 11, 2021 at 12:58 PM Henning Hraban Ramm 
> wrote:
> >
> > Hi MetaFans,
> >
> > is it possible to get lines with Metapost that look like they were drawn
> with a pencil or brush?
> >
> > Some vector graphics apps (in my case: Affinity Designer) can use such
> naturally looking brushes for vector graphics (and I don’t know how they do
> it), but I’d like to automate/parametrize some designs, and that would
> finally be a reason to learn Metapost...
> >
> > Hraban
> >
> ___
> > If your question is of interest to others as well, please add an entry
> to the Wiki!
> >
> > maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> >
> ___
>
> ___
> 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
>
> ___
>


163.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] \char not working with private unicodes

2021-05-11 Thread Jairo A. del Rio
Hi, list! Following this thread:
https://tex.stackexchange.com/questions/596610/how-to-use-luatex-with-large-unicode-codepoint,
I tried to replicate it in ConTeXt. Both LMTX and LMTX fail to display the
right symbol and, as it's discussed in the linked page, there's an offset
by 14. Is this intentional (in ConTeXt)? A bug? Minimal (non-)working
example:


%Font available here: https://materialdesignicons.com/

\starttext

\definedfont[file:materialdesignicons-webfont.ttf]\char"F1372\relax

\stoptext

Thanks in advance.

Cordially,

Jairo
___
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] Fuzzy lines

2021-05-11 Thread Mikael Sundqvist
Hi!

Not really what you ask for, perhaps, but this could be interesting
for you: https://tex.stackexchange.com/q/39296/52406

/Mikael

On Tue, May 11, 2021 at 12:58 PM Henning Hraban Ramm  wrote:
>
> Hi MetaFans,
>
> is it possible to get lines with Metapost that look like they were drawn with 
> a pencil or brush?
>
> Some vector graphics apps (in my case: Affinity Designer) can use such 
> naturally looking brushes for vector graphics (and I don’t know how they do 
> it), but I’d like to automate/parametrize some designs, and that would 
> finally be a reason to learn Metapost...
>
> Hraban
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
___
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] Fuzzy lines

2021-05-11 Thread Henning Hraban Ramm
Hi MetaFans,

is it possible to get lines with Metapost that look like they were drawn with a 
pencil or brush?

Some vector graphics apps (in my case: Affinity Designer) can use such 
naturally looking brushes for vector graphics (and I don’t know how they do 
it), but I’d like to automate/parametrize some designs, and that would finally 
be a reason to learn Metapost...

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

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


Re: [NTG-context] Adjusting parameters for a single page

2021-05-11 Thread denis.maier

Von: ntg-context  Im Auftrag von luigi scarso
Gesendet: Dienstag, 11. Mai 2021 10:41
An: mailing list for ConTeXt users 
Betreff: Re: [NTG-context] Adjusting parameters for a single page



On Tue, May 11, 2021 at 10:29 AM 
mailto:denis.ma...@ub.unibe.ch>> wrote:
-Ursprüngliche Nachricht-
> Von: Hans Hagen mailto:j.ha...@xs4all.nl>>
> Gesendet: Dienstag, 11. Mai 2021 00:13
> An: mailing list for ConTeXt users 
> mailto:ntg-context@ntg.nl>>; Maier, Denis
> Christian (UB) mailto:denis.ma...@ub.unibe.ch>>
> Betreff: Re: [NTG-context] Adjusting parameters for a single page
>
> On 5/10/2021 5:15 PM, denis.ma...@ub.unibe.ch 
> wrote:
> > Hi everyone,
> >
> > I know it is possible to make local changes by enclosing text in
> > \start \stop pairs to make local changes. Then, there are also
> > commands that only affect the next/current paragraph, such as \looseness.
> >
> > But is there a similar mechanism for page-layout changes? For example
> > your penalty settings allow widows and orphans, but on one particular
> > page you want to change the penalties. Or, you use
> > \setupalign[height], but on one page you want to use
> > \setupalign[bottom] instead. Is there a way to do this ?
> it works per paragraph so then you need to adapt it for a specific paragraph

So, that means you cannot make changes to a page, but only to paragraph. If a 
paragraph goes over page boundaries, you cannot add stretch or shrink 
interlinespace for just one page... correct?

this looks more a otr technique, e.g.
 https://www.tug.org/TUGboat/tb11-1/tb27salomon.pdf
(or grep the context code for otr)


Thanks for the hint. I have TeX by Topic open at the moment :-)

Denis
___
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] Adjusting parameters for a single page

2021-05-11 Thread luigi scarso
On Tue, May 11, 2021 at 10:29 AM  wrote:

> -Ursprüngliche Nachricht-
> > Von: Hans Hagen 
> > Gesendet: Dienstag, 11. Mai 2021 00:13
> > An: mailing list for ConTeXt users ; Maier, Denis
> > Christian (UB) 
> > Betreff: Re: [NTG-context] Adjusting parameters for a single page
> >
> > On 5/10/2021 5:15 PM, denis.ma...@ub.unibe.ch wrote:
> > > Hi everyone,
> > >
> > > I know it is possible to make local changes by enclosing text in
> > > \start \stop pairs to make local changes. Then, there are also
> > > commands that only affect the next/current paragraph, such as
> \looseness.
> > >
> > > But is there a similar mechanism for page-layout changes? For example
> > > your penalty settings allow widows and orphans, but on one particular
> > > page you want to change the penalties. Or, you use
> > > \setupalign[height], but on one page you want to use
> > > \setupalign[bottom] instead. Is there a way to do this ?
> > it works per paragraph so then you need to adapt it for a specific
> paragraph
>
> So, that means you cannot make changes to a page, but only to paragraph.
> If a paragraph goes over page boundaries, you cannot add stretch or shrink
> interlinespace for just one page... correct?
>

this looks more a otr technique, e.g.
 https://www.tug.org/TUGboat/tb11-1/tb27salomon.pdf
(or grep the context code for otr)


-- 
luigi
___
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] Adjusting parameters for a single page

2021-05-11 Thread denis.maier
-Ursprüngliche Nachricht-
> Von: Hans Hagen 
> Gesendet: Dienstag, 11. Mai 2021 00:13
> An: mailing list for ConTeXt users ; Maier, Denis
> Christian (UB) 
> Betreff: Re: [NTG-context] Adjusting parameters for a single page
> 
> On 5/10/2021 5:15 PM, denis.ma...@ub.unibe.ch wrote:
> > Hi everyone,
> >
> > I know it is possible to make local changes by enclosing text in
> > \start \stop pairs to make local changes. Then, there are also
> > commands that only affect the next/current paragraph, such as \looseness.
> >
> > But is there a similar mechanism for page-layout changes? For example
> > your penalty settings allow widows and orphans, but on one particular
> > page you want to change the penalties. Or, you use
> > \setupalign[height], but on one page you want to use
> > \setupalign[bottom] instead. Is there a way to do this ?
> it works per paragraph so then you need to adapt it for a specific paragraph

So, that means you cannot make changes to a page, but only to paragraph. If a 
paragraph goes over page boundaries, you cannot add stretch or shrink 
interlinespace for just one page... correct?


___
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] Adjusting parameters for a single page

2021-05-11 Thread denis.maier
Thanks, Hans, really interesting stuff.

> so, basically, you have a lot of control, all together some 36 parameters
> (pablo probably loves the somewhat secret on the fly adjustspacing step,
> stretch and shrink tweakability)
Any hints where I can find these 36 parameters?

Thanks for your help,
Denis
___
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] Include PDF pages

2021-05-11 Thread MANUEL GONZALEZ SUAREZ
Thanks very much, Denis.

De: ntg-context [mailto:ntg-context-boun...@ntg.nl] En nombre de 
denis.ma...@ub.unibe.ch
Enviado el: martes, 11 de mayo de 2021 9:37
Para: ntg-context@ntg.nl
Asunto: Re: [NTG-context] Include PDF pages

https://wiki.contextgarden.net/Including_pages_from_PDF_documents


Von: ntg-context 
mailto:ntg-context-boun...@ntg.nl>> Im Auftrag von 
MANUEL GONZALEZ SUAREZ
Gesendet: Dienstag, 11. Mai 2021 09:30
An: Context mailto:ntg-context@ntg.nl>>
Betreff: [NTG-context] Include PDF pages

Hello everybody:

My query is as follows: in LaTeX there is the package "pdfpages" 
(https://www.ctan.org/pkg/pdfpages) that allows pages from a PDF file to be 
included in a TeX document. Is there a similar procedure that works in ConTeXt?
Thanks.
M. González.
___
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] Include PDF pages

2021-05-11 Thread denis.maier
https://wiki.contextgarden.net/Including_pages_from_PDF_documents


Von: ntg-context  Im Auftrag von MANUEL GONZALEZ 
SUAREZ
Gesendet: Dienstag, 11. Mai 2021 09:30
An: Context 
Betreff: [NTG-context] Include PDF pages

Hello everybody:


My query is as follows: in LaTeX there is the package "pdfpages" 
(https://www.ctan.org/pkg/pdfpages) that allows pages from a PDF file to be 
included in a TeX document. Is there a similar procedure that works in ConTeXt?

Thanks.
M. González.
___
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] Include PDF pages

2021-05-11 Thread MANUEL GONZALEZ SUAREZ
Hello everybody:

My query is as follows: in LaTeX there is the package "pdfpages" 
(https://www.ctan.org/pkg/pdfpages) that allows pages from a PDF file to be 
included in a TeX document. Is there a similar procedure that works in ConTeXt?
Thanks.
M. González.
___
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] simpleslides gives 'input stack overflow'

2021-05-11 Thread luigi scarso
On Sun, May 9, 2021 at 11:25 PM Adam Reviczky  wrote:

> Hi,
>
> Looks like it is a problem with "StartPage" and "StopPage" in metapost.
>
> I get the same error with any MP graphic using those commands.
>
> More minimal example (without simpleslides) as per the wiki:
> https://wiki.contextgarden.net/Cover_Pages
>
> colors  > 'rgb' color space is supported
> colors  > 'cmyk' color space is supported
> fonts   > preloading latin modern fonts (second stage)
> fonts   > 'fallback modern-designsize rm 12pt' is loaded
> metapost> initializing instance 'metafun:1' using format 'metafun'
> and method 'default'
> metapost> loading 'metafun' as
> '/usr/share/texmf/metapost/context/base/mpiv/metafun.mpiv' using method
> 'default'
> metapost> initializing number mode 'scaled'
> input stack overflow
> mtx-context | fatal error: return code: 256
>
> Commenting out "StartPage" and "StopPage" compiles.
>
> mtx-context | current version: 2021.05.09 17:14
> This is LuaTeX, Version 1.14.0
> Development id: 7438
>

it should be ok now in Development id: 7439
 (just for the records)

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