Re: [NTG-context] OK, I Don't Quite Understand \definefontfamily

2020-09-25 Thread Michael Urban


> On Sep 25, 2020, at 12:12 PM, Michael Urban  wrote:
> 
> \definetypeface [Bookman] [rm] [serif] [bonum] [sl=name:unituscndboldoblique]

Oops, this was one of my bad attempts.   the fifth argument is actually omitted 
in the normally working version.

___
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] VisualStudioCode on Linux

2020-09-25 Thread Willi Egger
Hi Mikael,

thank you so much for your instructions and tasks.json!

Indeed it works!

Kind regards

Willi

> On 25 Sep 2020, at 07:50, Mikael Sundqvist  wrote:
> 
> Hi,
> 
> I got help from the list, and in the end I did the following (I have ConTeXt 
> installed in $HOME/ConTeXt-lmtx/). I hope it is complete.
> 
> ln -s 
> $HOME/ConTeXt-lmtx/tex/texmf-context/context/data/vscode/extensions/context 
> $HOME/.vscode/extensions/
> 
> Then I added a task file (also essentially found here, I think):
> 
> %%% Begin of file $HOME/.config/Code/User/tasks.json
> {
> "name" : "context",
> "tasks" : [
>{
>"label": "ConTeXt LuaMetaTeX",
>"type": "shell",
>"command": "export 
> PATH=$HOME/ConTeXt-lmtx/tex/texmf-linux-64/bin/:$PATH;mtxrun --autogenerate 
> --script context '${file}'",
>"args": [],
>"options": {
>"cwd": "${fileDirname}"
>},
>"group": {
>"kind": "build",
>"isDefault": true
>},
>"problemMatcher": []
>}
> ]
> }
> %%% End of file
> 
> Then, in the extension setting inside code, I had to enable the color scheme 
> for context.
> 
> Then it works to compile with ctrl+shift+B.
> 
> /Mikael
> 
> PS I also have some add-on for LaTeX installed, and for that reason I have 
> started to use the file extension .mkiv for ConTeXt. Then the add-ons don't 
> clash.
> 
> On Thu, Sep 24, 2020 at 11:30 PM Willi Egger  wrote:
> Hello Linux users!
> 
> Can somebody tell me how to get the extension for ConTeXt to be installed for 
> VisualStudioCode?
> 
> Thani you in advance!
> 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] OK, I Don't Quite Understand \definefontfamily

2020-09-25 Thread Michael Urban
I don't seem quite able to put it all together, forgive the question.

I have a 'Bookman' font setup, pretty vanilla:

\definetypeface [Bookman] [rm] [serif] [bonum] [sl=name:unituscndboldoblique]
\definetypeface [Bookman] [tt] [mono]  [modern] [default]
\definetypeface [Bookman] [ss] [sans] [unitus] [default]
\definetypeface [Bookman] [mm] [math] [modern] [default]

(Unitus is the fontsite 500 'Univers' substitute, works fine)

Now, the built-in gyre bonum font doesn't have a slanted/oblique variant, so if 
I have Bookman as my main body
font, \sl  produces (unsurprisingly) the same result as \it, 
TexGyreBonum-Italic.   If I want \sl to summon
Latin Modern for the variant, I have tried variations on

\definetypeface [Bookman] [rm] [serif] [bonum] [sl=file:Latin Modern Roman 
Slanted]


but to no avail — not helped by the fact that the \definetypeface contextgarden 
page doesn't have any pointer to just what that fifth
argument can contain.


How do I accomplish this?



___
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] VisualStudioCode on Linux

2020-09-25 Thread Arthur Rosendahl
On Fri, Sep 25, 2020 at 07:50:33AM +0200, Mikael Sundqvist wrote:
> I got help from the list, and in the end I did the following (I have
> ConTeXt installed in $HOME/ConTeXt-lmtx/). I hope it is complete.
> 
> ln -s
> $HOME/ConTeXt-lmtx/tex/texmf-context/context/data/vscode/extensions/context
> $HOME/.vscode/extensions/
> 
> Then I added a task file (also essentially found here, I think):
> 
> [snip]

  An addition for the wiki?  https://wiki.contextgarden.net/Text_Editors
could be a good starting point as it is missing VScode.

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
___


Re: [NTG-context] Running context-lmtx on Linux

2020-09-25 Thread Henning Hraban Ramm

> Am 25.09.2020 um 13:17 schrieb Alain Delmotte :
> 
> I did want to do the same on an old portable computer running lubuntu 16.04 
> (it's a 32 bits machine with small disk and RAM). I followed all the steps to 
> install it.

Did you follow the French instructions or those from 
https://wiki.contextgarden.net/Installation ?

I don’t understand much of French and didn’t find installation instructions on 
that site.

If your system is 32bit, of course you must use the 32bit Linux package.

> But this didn't work neither in the console (I get the message "Le programme 
> « context » n'est pas encore installé. Vous pouvez l'installer en tapant: 
> sudo apt install context" - but this, I suppose will install the context from 
> the linux distribution) , nor under TeXworks (message: "startup error: no 
> format file given, quitting".

It’s not clear what you did. Apparently your context (or mtxrun) binary is not 
in the PATH.


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
___


[NTG-context] Running context-lmtx on Linux

2020-09-25 Thread Alain Delmotte

  
  
Hi!
I am coming back to ConTeXt after some
years; but lately I did find a funny introduction to ConTeXt in
French based on context-lmtx (http://www.lesfichesabebert.fr/).
I did install it for Windows-64, added
the reference to the context folders under TeXworks, re-difined
the Context command and everything went OK.
I did want to do the same on an old
portable computer running lubuntu 16.04 (it's a 32 bits machine
with small disk and RAM). I followed all the steps to install
it. But this didn't work neither in the console (I get the
message "Le programme « context » n'est pas encore installé.
Vous pouvez l'installer en tapant: sudo apt install context" -
but this, I suppose will install the context from the linux
distribution) , nor under TeXworks (message: "startup error: no
format file given, quitting".
Is there a solution? Or my system is
too old?
Thanks for your attention and for your
help.
Regards,
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
___


Re: [NTG-context] numbering pages included by \copypages

2020-09-25 Thread Hans Hagen

On 9/25/2020 5:53 AM, Aditya Mahajan wrote:

On Fri, 25 Sep 2020, Wolfgang Schuster wrote:


Aditya Mahajan schrieb am 24.09.2020 um 23:48:

On Thu, 24 Sep 2020, Alan Bowen wrote:

Any suggestions or pointers will be most welcome.


See if this gives you any ideas 

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


When both document have the same size you can replace TeXpage with a "page"
layout.

\startlayout[page]
\dorecurse{\noffigurepages}{\externalfigure[...][page=\recurselevel]}
\stoplayout


Thanks for the comment (also I didn't know about \startlayout .. \stoplayout). 
Unfortunately, in my use case, the paper sizes may not be the same.. I am 
typically attaching published journal articles and some are published on letter 
paper and some on A4.


\setupexternalfigures[location=default]

\starttext

\dorecurse {5} {Before #1\page}

\getfiguredimensions[oeps.pdf]

\startsetups SomeNumber
\vbox to \overlayheight \bgroup
\vss
\hbox to \overlaywidth \bgroup
\hss
\bfd \red You can figure it out: \pagenumber
\hss
\egroup
\vss
\egroup
\stopsetups

\defineoverlay[SomeNumber][\setups{SomeNumber}]

\dorecurse {\noffigurepages} {
\startTEXpage[pagestate=start]
\externalfigure[oeps.pdf][page=#1,background=SomeNumber]%
\stopTEXpage
}

\dorecurse {5} {After #1\page}

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