Re: [NTG-context] Makeup on same page as main content

2022-03-05 Thread śrīrāma via ntg-context
On Sunday, March 6, 2022 5:17 AM mastermind_ x via ntg-context wrote:
> Any pointers on how I can achieve this?

You don't have a MWE, so based on my understanding of your illustration, I have 
the following:

%%% SOF
  % required for 'cow'
  \setupexternalfigures[location={local,default}]

  \setvariables
[assignments]
[set={\setups[assignments:set]}]

  \startsetups assignments:set
  \writestatus{variables}{assignments:set is being called..}
  \startalignment[middle]
  \bTABLE[frame=off]
  \setupTABLE[c][1][align=flushleft,style=bold,distance=2cm]
  \setupTABLE[c][2][align={flushright,lohi}]
  \bTR
\bTD \externalfigure[cow][height=2cm] \eTD
\bTD 
\doiftextelse{\getvariable{assignments}{date}}{\getvariable{assignments}{date}}{\date}
 \eTD
  \eTR
  \bTR
\bTD Course: \getvariable{assignments}{code} \eTD
\bTD \getvariable{assignments}{assignment} \eTD
  \eTR
  \bTR
\bTD Name \eTD
\bTD \getvariable{assignments}{name} \eTD
  \eTR
  \bTR
\bTD Class \eTD
\bTD \getvariable{assignments}{class} \eTD
  \eTR
  \eTABLE
  \stopalignment
  \stopsetups

  \starttext
  \setvariables
[assignments]
[code={AB1234},
date={January 1, 2038},
assignment={whatever},
name={the name},
class={1970}]
  \input tufte

  \page
  \setvariables
[assignments]
[code={AB1234},
date=,
assignment={whatever},
name={the name},
class={2038}]
  \input knuth
  \stoptext
%%% EOF

Essentially, variables in ConTeXt has a nice set key which can be made to 
trigger anything when the variables are set. So you can give it a setup to do 
whatever you want by just saying 
\setvariables[assignments][...]
wherever in the document you desire. See here for an example [there is also a 
'reset' key]:
https://wiki.contextgarden.net/Setups

[Since you said 'framed assignment box' you can enable the frames of the cell 
you want, and change formatting as needed]

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
___


[NTG-context] Makeup on same page as main content

2022-03-05 Thread mastermind_ x via ntg-context
Hi all,

I would like to create a makeup environment that will contain author, 
university logo and date and other information that doesn’t occupy its own page 
that I can define in an environment file and reuse. 

The logo and date should occupy the margins at the top at the left and right 
respectively. Then there will be course information on the left and a framed 
assignment box on the right (as it will have special fonts). Much like the 
title of a latex article class. It should look something like this:

[logo] [date]
-
[course]: [Code] [assignment]
[name]   [   ]
[class][ 1]
--

body

Any pointers on how I can achieve this?

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

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


Re: [NTG-context] LMTX | (.\) at end of line causes fatal error

2022-03-05 Thread Hans Hagen via ntg-context

On 3/5/2022 9:39 PM, Richard Mahoney via ntg-context wrote:

Something I've noticed for a little while now, although it may be
long standing, I'm not sure. If one ends some of the lines in
the input files with a full stop (.) and a back slash (\) then LMTX
will fail to compile with a fatal error. The only way to recover is
to go through each of the files and ensure that no line ends with
(.\).

Is this a bug?

can there be somee invisible character after the \ ?

otherwise, we need a mwe

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] LMTX | (.\) at end of line causes fatal error

2022-03-05 Thread Richard Mahoney via ntg-context
Something I've noticed for a little while now, although it may be
long standing, I'm not sure. If one ends some of the lines in
the input files with a full stop (.) and a back slash (\) then LMTX
will fail to compile with a fatal error. The only way to recover is
to go through each of the files and ensure that no line ends with
(.\).

Is this a bug?


Best, Richard



-- 
T +6433121699  M +64210640216
rmaho...@indica-et-buddhica.org
https://indica-et-buddhica.org/

Indica et Buddhica
Littledene  Bay Road  Oxford  NZ
NZBN: 9429041761809



___
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] the resolver databases are not present or outdated

2022-03-05 Thread Fabrice Couvreur via ntg-context
Hello,
Some files no longer compile, I tried updating lmtx but I get this.
Thank you
Fabrice

viserion@archlinux LMTX]$ install install.sh
install: opérande de fichier cible manquant après 'install.sh'
Saisissez « install --help » pour plus d'informations.
[viserion@archlinux LMTX]$ sh install.sh
mtxrun  | forcing cache reload
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/home/viserion/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/home/viserion/texmf-local/web2c' from specification
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/home/viserion/texmf-context/web2c' from specification
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/home/viserion/texmf-dist/web2c' from specification
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given
path '/home/viserion/texmf/web2c' from specification
'selfautoparent:/texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/viserion/texmf/web2c' from specification
'home:texmf/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/viserion/texmf-local/web2c' from specification
'selfautoparent:/texmf-local/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/viserion/texmf-context/web2c' from specification
'selfautoparent:/texmf-context/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/viserion/texmf-dist/web2c' from specification
'selfautoparent:/texmf-dist/web2c'
resolvers   | resolving | looking for fallback 'contextcnf.lua' on
given path '/home/viserion/texmf/web2c' from specification
'selfautoparent:/texmf/web2c'
resolvers   | resolving |
resolvers   | resolving | warning: no lua configuration files found
resolvers   | resolving | no texmf paths are defined (using TEXMF)
resolvers   | resolving |
mtxrun  | the resolver databases are not present or outdated
mtx-install | provide valid server and instance
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] No svg file output

2022-03-05 Thread Jan-Erik Hägglöf via ntg-context
It worked, thank you very much.

/Jan-Erik

> 4 mars 2022 kl. 10:59 skrev Hans Hagen :
> 
> On 3/3/2022 10:54 PM, Jan-Erik Hägglöf via ntg-context wrote:
>> Dear list!
>> This seems strange, what is wrong? No output from svg-file.
>> \starttext
>> \startMPcode
>> picture utf1; utf1:= lmt_svg [ filename = "utfall01b.svg"];
>> numeric l ; l := bbwidth(utf1);
>> numeric h ; h := bbheight(utf1);
>> numeric scale ; scale := 3 ;
>> draw utf1 xsized l*scale ysized h*scale;
>> \stopMPcode
>> \stoptext
> 
> 
> \starttext
> \startMPcode
> picture ValidName; ValidName:= lmt_svg [ filename = "utfall01b.svg"];
> numeric l ; l := bbwidth(ValidName);
> numeric h ; h := bbheight(ValidName);
> numeric scale ; scale := 3 ;
> draw ValidName xysized (l*scale,h*scale);
> \stopMPcode
> \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
___