[NTG-context] Problems with luametatex and texlive on OpenBSD

2023-07-27 Thread Edd Barrett
Hi everyone,

I'm finalising packaging TeX Live 2023 for OpenBSD and have an issue with
context using the new luametatex engine.

I'm getting various Lua errors when running `context --make`, like:

  node-ini.lmt:54: attempt to call a nil value (local 'getvalues')

and:

  node-nut.lmt:22: attempt to index a nil value (local 'nodecodes')

(full log below)

As far as I can see, I've set up the system in the same way as the other
downstream packagers have (according to
https://github.com/contextgarden/luametatex/issues/1 and
https://wiki.contextgarden.net/Building_LuaMetaTeX_for_TeX_Live):

 - make symlinks
  * /usr/local/bin/context.lua -> 
../share/texmf-dist/scripts/context/lua/context.lua
  * /usr/local/bin/mtx-context.lua -> 
../share/texmf-dist/scripts/context/lua/mtx-context.lua
  * /usr/local/bin/mtxrun.lua -> 
../share/texmf-dist/scripts/context/lua/mtxrun.lua
  * /usr/local/bin/context -> luametatex
  * /usr/local/bin/mtxrun -> luametatex

 - patch resolvers
   * 
https://github.com/jasperla/openbsd-wip/blob/master/print/texlive/texmf/patches/patch-texmf-dist_scripts_context_lua_mtxrun_lua
   * 
https://github.com/jasperla/openbsd-wip/blob/master/print/texlive/texmf/patches/patch-texmf-dist_tex_context_base_mkiv_data-res_lua
   * 
https://github.com/jasperla/openbsd-wip/blob/master/print/texlive/texmf/patches/patch-texmf-dist_web2c_texmf_cnf

In OpenBSD, we install the trees in /usr/local/share/texmf* (a hangover from
teTeX), so in these patches, TRUEPREFIX resolves to /usr/local. This does mean
selfauto doesn't work, but in the past I've always just patched in absolute
paths and it's been fine.

Does anyone know what may cause these errors? I've prodded around inside the
lua and luametatex sources, but I don't really know what's going on. I tend to
agree with Lua that the variables in question are not defined, so using them
causes a `nil` to appear which can't be indexed or called. Something else must
be expected to set up the undefined variables somewhere...

Any help would be greatly appreciated.

Full output of `context --make`:

```
resolvers   | resolving | configuration files already identified
resolvers   | resolving | loading configuration file 
'/usr/local/share/texmf-dist/web2c/texmfcnf.lua'
resolvers   | resolving |
resolvers   | resolving | locating list of 'home:.texlive2023/texmf-config' 
(runtime) (tree:///home:.texlive2023/texmf-config)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'tree', argument 'tree:///home:.texlive2023/texmf-config'
resolvers   | trees | locator 'home:.texlive2023/texmf-config' not found
resolvers   | resolving | locating list of 'home:texmf' (runtime) 
(tree:///home:texmf)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'tree', argument 'tree:///home:texmf'
resolvers   | trees | locator 'home:texmf' not found
resolvers   | resolving | locating list of '/usr/local/share/texmf-config' 
(cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'file', argument '/usr/local/share/texmf-config'
resolvers   | files | file locator '/usr/local/share/texmf-config' not found
resolvers   | resolving | locating list of '/usr/local/share/texmf-var' 
(cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'file', argument '/usr/local/share/texmf-var'
resolvers   | files | file locator '/usr/local/share/texmf-var' found as 
'/usr/local/share/texmf-var'
resolvers   | resolving | locating list of '/usr/local/share/texmf-project' 
(cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'file', argument '/usr/local/share/texmf-project'
resolvers   | files | file locator '/usr/local/share/texmf-project' not 
found
resolvers   | resolving | locating list of '/usr/local/share/texmf-fonts' 
(cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'file', argument '/usr/local/share/texmf-fonts'
resolvers   | files | file locator '/usr/local/share/texmf-fonts' not found
resolvers   | resolving | locating list of '/usr/local/share/texmf-local' 
(cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'file', argument '/usr/local/share/texmf-local'
resolvers   | files | file locator '/usr/local/share/texmf-local' found as 
'/usr/local/share/texmf-local'
resolvers   | resolving | locating list of '/usr/local/share/texmf-dist' 
(cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'file', argument '/usr/local/share/texmf-dist'
resolvers   | files | file locator '/usr/local/share/texmf-dist' found as 
'/usr/local/share/texmf-dist'
resolvers   | resolving |
resolvers   | methods | resolving, method 'generators', how 'uri', handler 
'file', argument '/usr/local/share/texmf-var'
resolvers   | expansions | scanning path '/usr/local/share/texmf-var', 
branch 

[NTG-context] Various ConTeXt Questions

2008-04-03 Thread Edd Barrett
Hi there,

I am taking a look at conTeXt as a means of typesetting documents with
more advanced page layouts which otherwise would be produced with
desktop publishing suites.

I am very new to conTeXt, so I know very little about it. The only
documentation I have been able to find on the internet is:
ConTeXt Garden
ConTeXt an excursion
ConTeXt : The manual

I have been sifting through these for a while, and whilst the
documentation is good, I still have questions. I must apologise if I
missed the answers in the docs or if the questions are just plain
dumb.

1) Is there a way to make ConTeXt stricter?
It seem that ConTeXt will not complain if you misspell the names of
colours, layers, overlays etc. I would rather it did.

2) Is there a way to overlay many layers/overlays at one place.
It seems using background= can only take 1 layer/overlay. Even better
if I could offset the layer/overlay from an origin.

3) I have had difficulty pushing the whole layout including the margin
to the right about 2cm.
I have tried using setuplayout to alter leftedge, leftedgedistance and
backspace. Is that not the way to do it?

3a) Similarly I would like to make the textheight longer so that the
footer is about 1cm from the bottom of the page. I have had no luck in
setting textheight using setuplayout.

4) Is there a module to parse CVS tags, like the RCS package for laTeX?

5) Can I use OpenType and TrueType fonts in ConTeXt? Ideally via fontspec.

6) Is there a book on ConTeXt for beginners aside from what I have
already listed above?

7) Can I specify RGB colours in th 0 = x = 255 format?
So far I have had to write a script to help me convert them.

8) Is anyone proficient with ConTeXt going to the Cork TeX User Group meeting?

Thanks.

-- 

Best Regards

Edd

http://students.dec.bournemouth.ac.uk/ebarrett
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Various ConTeXt Questions

2008-04-03 Thread Edd Barrett
Hi,

Thanks for the input, that should be enough to keep me going.

I am going to push some of this info back to conTeXt garden if that is okay.

Will see you in Ireland Hans (if all goes to plan).

-- 

Best Regards

Edd

http://students.dec.bournemouth.ac.uk/ebarrett
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Various ConTeXt Questions

2008-04-03 Thread Edd Barrett
On Thu, Apr 3, 2008 at 12:59 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:
  Parsing tags is simple, for example,
  http://archive.contextgarden.net/message/20070920.231549.347dc370.en.html
  and
  http://archive.contextgarden.net/message/20080123.123404.d1e0dbab.en.html

  If you can specify exactly what you want, I can create a module for this.

Just a way of isolating each of the marco's values that cvs defines. How about:

---8---
\definecvskeyword[cvsdate][D/M/Y]{$Date$}% will be expanded upon
commit to something like $Date: 1999/12/23 01:59:22 $
\starttext
Last Updated: \cvskeyword[cvsdate]
\stoptext
---8---

would produce:
Last Updated: 1999/12/23 01:59:22

List of standard keywords here, but bear in mind that users can ake
their own per repository:
http://badgertronics.com/writings/cvs/keywords.html


Thoughts?

-- 

Best Regards

Edd

http://students.dec.bournemouth.ac.uk/ebarrett
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Logos in context / Miscellaneous questions

2007-09-18 Thread Edd Barrett
Hi,

On 17/09/2007, Aditya Mahajan [EMAIL PROTECTED] wrote:
 On Mon, 17 Sep 2007, Edd Barrett wrote:
 
  B) Is there an equivilent to the RCS package for latex. Basically it
  parses version control tags from CVS/RCS.

 There are a couple of RCS packages for LaTeX. Can you elaborate on
 what functionality you need. Most of it is pretty straightforward to
 port to ConTeXt.

I used to use it to insert tags without all the crud around it. So for
example a revision  id directly from CVS looks like this $Revision:
1.4$ (no quotes) and I used to use \RCSRevision which would expand to
just 1.4. It's probably quote simple, but would require research (I
have but merely scratched the surface of TeX/Context).


  C) Is there a book on context (apart from the PDF on the main
  website).

 There are few manuals for specific topics also, which are availabe
 from Prama-ade's website.

Thanks. I'll have a gander.


  What other documentation exists.

 There are a few MyWays, which document features that are not mentioned
 in the manuals. There are also articles in MAPS, Practex journal and
 Tugboat, but most of them are about new or advanced features.

Yes, this is how I found out about context, via an article in TUGBoat.


 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://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___



-- 
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Logos in context / Miscellaneous questions

2007-09-17 Thread Edd Barrett
Hi there,

I am new here, so greetings. My name is Edd and I am experimenting
with context as a replacement for pdflatex when I do my dissertation
next year.

I am using texlive 2007 on OpenBSD which includes context.

I am probably now going to ask some really dumb questions.. Here goes.

---
A) I am trying to get a logo to appear in the top left of every page.
I have already discovered that I can include a graphic like so:

\externalfigure[shift]
This works just fine

However if I try to define a logo like so:
\definelogo[logo][top][left]
[command={\externalfigure[shift]}, state=start]

I am presented with this error:
layout  : calculating logospace
 ./shift.png
figures : dimensions of shift are determined externally
(./template.tuo
! Undefined control sequence.
l.11 \t
   hisissectionseparator{-}

Specifying a height and width does not help either.

---

B) Is there an equivilent to the RCS package for latex. Basically it
parses version control tags from CVS/RCS.

---

C) Is there a book on context (apart from the PDF on the main
website). What other documentation exists. I have already found
contextgarden and that has proven very useful.

Thanks

-- 
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [tex-live] ConTeXt on FreBSD (was: missing *8t.tfm files)

2007-08-28 Thread Edd Barrett
Hi,

We appear to be cross posting here guys. I don't know how it is in the
TeX community, but some people get very upset by this. Is this
allowed?

 Surprise: This has already been done. Linux does it, OpenBSD does it.
 Again: Study the OpenBSD port.

Yes, I did have to split it down, so that the minimal tetex like
distribution could go on the OpenBSD cdrom. There is a python script
which can help split TL down and also a large document describing how
TeXLive can be ported to OpenBSD, which I wrote because I knew the
other BSD's could benefit from my findings.

Also a company has sponsored the OpenBSD port and I have some more
recent sparc64 hardware on it's way, meaning that I should be able to
test some more recent TL snapshots on sparc64 ready for the 2008
release, hopefully minimising portlag.

Unfortunately I am stuck in a rut with tl2007. An annoying bug
regarding updmap-sys creating dvi maps instead of pdftex maps when
TEXMFSYSVAR is not merged with TEXMFMAIN. If anyone on either lists
knows how this could happen or is willing to help look into it, pease
drop me a mail (I can make qemu images of an OpenBSD dev snapshot with
these symptoms). I have a patch to try, but I don't think it is
related, so I think I am stuck.

Thanks

-- 
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___