Re: [NTG-context] Problem getting lmtx version up

2021-07-16 Thread Lutz Haseloff
Hello Michal,

both binaries work in my system.
(Galaxy A50, Userland, Kali Linux)

Greetings Lutz

Am 17. Juli 2021 02:21:08 MESZ schrieb "Michal Vlasák" :
>On Fri Jul 16, 2021 at 12:46 AM CEST, jdh wrote:
>> # My system has GLIBC 2.28, but I don't know how to upgrade it for
>RPis
>
>Can you jdh or anyone with a similar setup try to run the following two
>binaries? Run with '--help' only, other than that not much works.
>
>https://github.com/vlasakm/mmtex/releases/download/cross-test/ltex-aarch64-linux-gnu.2.28
>https://github.com/vlasakm/mmtex/releases/download/cross-test/ltex-aarch64-linux-musl
>
>If I didn't mistake the architecture, these should work. At least I can
>confirm that the second (fully statically linked) one works on my
>x86_64
>linux with:
>
>chmod +x ./ltex-aarch64-linux-musl
>qemu-aarch64 ./ltex-aarch64-linux-musl --help
>
>The above are cross compiled (debug) builds of very stripped down
>version of LuaTeX, that I have been experimenting with. They won't
>solve
>the immediate problem, but the cross compiling procedure could be used
>to generate luametatex binaries for this target until a better option
>is
>available. Of course, depending on whether it even works. :)
>
>Michal Vlasák
>___
>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
___


Re: [NTG-context] Problem getting lmtx version up

2021-07-16 Thread Michal Vlasák
On Fri Jul 16, 2021 at 12:46 AM CEST, jdh wrote:
> # My system has GLIBC 2.28, but I don't know how to upgrade it for RPis

Can you jdh or anyone with a similar setup try to run the following two
binaries? Run with '--help' only, other than that not much works.

https://github.com/vlasakm/mmtex/releases/download/cross-test/ltex-aarch64-linux-gnu.2.28
https://github.com/vlasakm/mmtex/releases/download/cross-test/ltex-aarch64-linux-musl

If I didn't mistake the architecture, these should work. At least I can
confirm that the second (fully statically linked) one works on my x86_64
linux with:

chmod +x ./ltex-aarch64-linux-musl
qemu-aarch64 ./ltex-aarch64-linux-musl --help

The above are cross compiled (debug) builds of very stripped down
version of LuaTeX, that I have been experimenting with. They won't solve
the immediate problem, but the cross compiling procedure could be used
to generate luametatex binaries for this target until a better option is
available. Of course, depending on whether it even works. :)

Michal Vlasák
___
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] Problem getting lmtx version up

2021-07-16 Thread Alan Braslau

On 16/07/21 21:47, Hans Hagen wrote:


would be a pitty because i like the ubuntu interface that we have on it 
more than the rather ugly default rpi one (an ubuntu install is also 
more comfortable) ... when we go headless we might give opensuse a try 
(actually we had debian first but it was a pain with the ssd on usb so 
we gave up on that and harald made it work with ubuntu)


wondering: does the 32 bit run on 64 boit with some extra libs installed?

of courese someone can send us a bunch of rpi's .. one can even build a 
simple rack setup, or maybe we can install some vm on the rpi ... 
(reminds me to consider windows 11 on the pi for testing windows arm)


Freebsd on arm64 is now a Tier 1 architecture. ;-)

--
Alan
___
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] mp-geo Metapost package with ConTeXt

2021-07-16 Thread Alan Braslau

On 16/07/21 21:51, Hans Hagen wrote:

On 7/16/2021 4:53 PM, Gavin Polhemus wrote:

P.S. I marked the location of our local ConTeXt users group on the 
map, in case any of you want to visit.
1/3rd of your user group fled the country and is way closer by where i 
live now,


And in the same time zone!

--
Alan
___
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] mp-geo Metapost package with ConTeXt

2021-07-16 Thread Hans Hagen

On 7/15/2021 10:30 PM, Bruce Horrocks wrote:

On 15 Jul 2021, at 18:58, Hans Hagen  wrote:


I was wondering about that too. I admit that I looked into maps years ago but 
never could find quality data files.


Does this help?

i was halfway writing as reader for that fiel format when i noticed that 
is is also quite low res so i gave up on that and started playing 
(extending) with an more interesting alternative that mojca and i wrote 
years ago at a meeting


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
___


Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-16 Thread Hans Hagen

On 7/16/2021 4:53 PM, Gavin Polhemus wrote:


P.S. I marked the location of our local ConTeXt users group on the map, in case 
any of you want to visit.
1/3rd of your user group fled the country and is way closer by where i 
live now,


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
___


Re: [NTG-context] Problem getting lmtx version up

2021-07-16 Thread Hans Hagen

On 7/16/2021 1:39 PM, Mojca Miklavec wrote:

Hi,


   /opt/context-lmtx $ sudo sh ./install.sh
   Error:   /opt/context-lmtx/bin/mtxrun: /lib/aarch64-linux-gnu/libm.so.6: 
version `GLIBC_2.29' not found (required by /opt/context-lmtx/bin/mtxrun)


We need to set up an older linux distro for building 64-bit binaries
if we want to be "more compatible".

It doesn't help that it took forever for 64-bit Linux to start working
on RPi, and if one goes to
https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit
they officially still offer just the 32-bit version. So we installed
whatever came to the market first, and so far this is probably the
second complaint on the mailing list.

Does this look like the correct place for fetching the images with Debian 10?
 
https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2021-05-28/
would be a pitty because i like the ubuntu interface that we have on it 
more than the rather ugly default rpi one (an ubuntu install is also 
more comfortable) ... when we go headless we might give opensuse a try 
(actually we had debian first but it was a pain with the ssd on usb so 
we gave up on that and harald made it work with ubuntu)


wondering: does the 32 bit run on 64 boit with some extra libs installed?

of courese someone can send us a bunch of rpi's .. one can even build a 
simple rack setup, or maybe we can install some vm on the rpi ... 
(reminds me to consider windows 11 on the pi for testing windows arm)


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
___


Re: [NTG-context] Harvard bibliography style

2021-07-16 Thread Jorge Manuel
Alan,

Thanks for your reply and support.

I have found some diferences (I’m still search for more)

APA.   -> Harvard

Citation:
(Author, year) -> (Author year)

(No comma)

Bibliography:
APA: Preston, N. (2014). Understanding ethics (4th ed.). The Federation Press.
HARVARD: Preston, N 2014, Understanding ethics, 4th edn, The Federation Press, 
Annandale, N.S.W.

(No parenthesis)


APA: “Bolman, L. G., & Deal, T. E. (2017). Reframing organizations: Artistry, 
choice, and leadership. John Wiley & Sons.”

Harvard: “Bolman, L.G. and Deal, T.E., 2017. Reframing organizations: Artistry, 
choice, and leadership. John Wiley & Sons.”


Jorge Magalhães
___
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] Harvard bibliography style

2021-07-16 Thread Alan Braslau

On 16/07/21 20:05, Jorge Manuel wrote:

Dear Sirs

Is there a way to set my bibliography style to Harvard specifications?

Tanks four your support

Have a nice day


Jorge Magalhães


There is no Harvard bibliography specification, but the system is 
designed to be totally configurable.


What is exactly the specification? The best way to proceed is to start 
from an existing specification such as APA for an author-years system 
and adapt it to your specific needs. I can help you with this.


--
Alan
___
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] Harvard bibliography style

2021-07-16 Thread Jorge Manuel
Dear Sirs

Is there a way to set my bibliography style to Harvard specifications?

Tanks four your support

Have a nice day


Jorge Magalhães
___
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] Moving the old book-structure to a recent ConTeXt

2021-07-16 Thread Gerben Wierda



> On 15 Jul 2021, at 16:00, Henning Hraban Ramm  wrote:
> 
>> 
>> Am 15.07.2021 um 12:19 schrieb Gerben Wierda :
>> 
>>> On 12 Jul 2021, at 12:15, Henning Hraban Ramm  wrote:
>>> 
>>> 
>>> 
 Am 12.07.2021 um 10:25 schrieb Gerben Wierda :
 
 Years ago I wrote a book (Chess and the Art of Enterprise Architecture) 
 using ConTeXt.
 
 The setup was (I think Taco’s) basic book project setup, with a chapters, 
 environments, products, etc. subdirectory where you work in the chapters 
 directory and can both produce individual chapters and the whole book. The 
 main tool to produce was texexec.
 
 ConTeXt has moved on considerably since then (2014-2015).
 
 So, I tried teh old project to see if it still works, but found out it 
 didn’t. There still is a texexec in my MacTeX, but the compilation fails:
 
 texexec --pdf --mode=SCREEN  ../products/prd_book.tex
 resolvers   | initialization | fatal error: kpse library is accessed 
 (key: original)
 
 Is there a new ‘book’ project structure/template for the modern/standalone 
 ConTeXt?
>>> 
>>> The project struture with project/product/environment/components is still 
>>> the same.
>>> 
>>> "texexec" is MkII, you must call "context" for MkIV (with --luatex) and 
>>> LMTX.
>>> 
>>> You will probably need to update several setups, there were many changes 
>>> since MkII.
>> 
>> So, just for confirmation that I understand this correctly, I need to simply 
>> change the command from texexec  to context --luatex and fix all settings in 
>> my setup until I get it working again?
> 
> I guess so. I don’t know your project.
> 
> There were a lot of changes between MkII and current MkIV, and many aren’t 
> obvious.
> I’d suggest to rewrite your environment from scratch; only copy pieces step 
> by step and check if they still do what you expect. Use a reduced test 
> product.

Is there a new template I can download somewhere to start from scratch?

Gerben

___
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] mp-geo Metapost package with ConTeXt

2021-07-16 Thread Gavin
Hi Hans, Aditya, and all,

Me:
 I’d like to use the mp-geo Metapost package with ConTeXt to draw simple
>>> globes viewed from various directions. The package is here:
 
https://melusine.eu.org/syracuse/poulecl/mp-geo/ 
 

Aditya:
>> Actually the data files are fairly simple:
>> no_of_points
>> 
>> So, it would be much simpler to read and parse it via lua rather than 
>> scantokens. Rest of the code simply determines a "view" of what to show. So, 
>> it can be a good exercise in lua-MP interface.

Hans:
> I was wondering about that too. I admit that I looked into maps years ago but 
> never could find quality data files.

This is great fun! I slightly altered Hans’ code to produce the most basic area 
preserving projection of North America (code and map below). If anyone else is 
playing with the mp-geo data, it is in arc minutes, so divide by 60 to get 
degrees.

For my book I only want 5cm diameter globes with continents, so the map data in 
the mp-geo package is far more detailed than I need. The code is so fast, the 
detail doesn’t seem to be a problem.

I just started learning Metapost a month ago, and it’s great. I know almost 
nothing about Lua, but this looks like a fun project for learning more!

Thanks!
Gavin


P.S. I marked the location of our local ConTeXt users group on the map, in case 
any of you want to visit.


\starttext

\startluacode
  function mp.maptopath(filename)
  local t = { cycle = true }
  for phi, theta in 
string.gmatch(io.loaddata(filename),"%(([%+%-%d]+),([%+%-%d]+)%)") do
  t[#t+1] = { math.cosd(tonumber(phi)/60)*tonumber(theta+6125)/12, 
tonumber(phi)/12 }
  end
  mp.inject.path(t)
  end
\stopluacode

\startMPpage
  fill lua.mp.maptopath("data/usa1.dat");
  fill lua.mp.maptopath("data/usa2.dat") ;
  fill lua.mp.maptopath("data/mexique.dat") ;
  fill lua.mp.maptopath("data/canada.dat") ;
  fill fullcircle scaled 5 shifted (0, 203) withcolor white;
\stopMPpage

\stoptext




___
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] Problem getting lmtx version up

2021-07-16 Thread Mojca Miklavec
Hi,

>   /opt/context-lmtx $ sudo sh ./install.sh
>   Error:   /opt/context-lmtx/bin/mtxrun: /lib/aarch64-linux-gnu/libm.so.6: 
> version `GLIBC_2.29' not found (required by /opt/context-lmtx/bin/mtxrun)

We need to set up an older linux distro for building 64-bit binaries
if we want to be "more compatible".

It doesn't help that it took forever for 64-bit Linux to start working
on RPi, and if one goes to
https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit
they officially still offer just the 32-bit version. So we installed
whatever came to the market first, and so far this is probably the
second complaint on the mailing list.

Does this look like the correct place for fetching the images with Debian 10?

https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2021-05-28/

Mojca
___
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] Problem getting lmtx version up

2021-07-16 Thread George N. White III
On Thu, 15 Jul 2021 at 19:47, jdh  wrote:

>
>
> #
> # I followed all instruction for downloading context-lmtx, then did the
> rsync
> # procedures, then a another
> #
> # $ sudo sh ./install.h
> #
> # I get the following error:
>
>   /opt/context-lmtx $ sudo sh ./install.sh
>   Error:   /opt/context-lmtx/bin/mtxrun: /lib/aarch64-linux-gnu/libm.so.6:
> version `GLIBC_2.29' not found (required by /opt/context-lmtx/bin/mtxrun)
>
>   # My system has GLIBC 2.28, but I don't know how to upgrade it for RPis
>

It is good practice to mention your platform in problem reports.   For this
error, your best source of
help will be RPi and OS forums.   Once you find a solution it may help
others to post the details (including
the forum that provided the solution) here.

-- 
George N. White III
___
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
___