Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Rudolf Bahr
On Mon, Jun 15, 2020 at 02:52:49PM +0200, Pablo Rodriguez wrote: > Dear list, > > I have the following number with wrong annotation placement and wrong > page number, which would be both on the second page: > > \setupinteraction[state=start] > \definelayer[pgnumber] >

Re: [NTG-context] Proposal to update the "Manuals" wiki page

2020-05-20 Thread Rudolf Bahr
On Tue, May 19, 2020 at 03:22:47PM +0200, Garulfo wrote: > Hi, > > I hope you're all doing well. > > Please, you will find a proposal to update the Manuals page on the wiki: > https://wiki.contextgarden.net/ManualsGallery > > 2 objectives: > 1/ to make something more visual, to help the user

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Rudolf Bahr
On Mon, Apr 20, 2020 at 09:21:41AM +0200, Wolfgang Schuster wrote: > Fabrice Couvreur schrieb am 19.04.2020 um 22:55: > > Hi, > > I try to reproduce the figure as faithfully as possible. I tried for the > > rounded corners to put the key corner = round, but it does not work. > > 1. To create a

Re: [NTG-context] Introducing myself

2020-04-19 Thread Rudolf Bahr
On Sat, Apr 18, 2020 at 05:37:07PM +0200, David van Diepen wrote: > Dear everybody, > > I don't have a particular question for the moment but I thought it > would be nice to introduce myself as I have just joined the email list. > > My name is David van Diepen, 49 years old. I am a process

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-25 Thread Rudolf Bahr
Sorry, I forgot the mentioned pdf-file. Rudolf dowithnextbox-2.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-25 Thread Rudolf Bahr
On Tue, Mar 24, 2020 at 07:29:26PM +0100, Wolfgang Schuster wrote: > > When you need the height for the layer offset you can use \dowithnextbox > because it hides \setbox etc. > > \definelayer[TextBox] > > \showframe[text][text] > > \starttext > > \dowithnextbox > {\setlayer >

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Rudolf Bahr
On Tue, Mar 24, 2020 at 11:36:30AM -0400, Aditya Mahajan wrote: > > You can do: > > > \definelayer[LAY] > > \starttext > > \setbox\scratchbox=\vbox{\framed[width=300pt, align=flushleft]{\input > ward\relax}} > The height of the box is \the\ht\scratchbox; the width is > \the\wd\scratchbox. >

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Rudolf Bahr
On Tue, Mar 24, 2020 at 04:43:17PM +0100, Wolfgang Schuster wrote: > > \setbox0=\vbox{... somehow flushed text ...} wount work, i.e \wd0 or \ht0 > > will both result in 0. With "unflushed" text this means will work perfectly. > > I have no idea where you get 0 (0pt?). Nor do I, in the meantime.

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Rudolf Bahr
On Tue, Mar 24, 2020 at 03:56:18PM +0100, Wolfgang Schuster wrote: > Rudolf Bahr schrieb am 24.03.2020 um 12:19: > > Hello dear All, > > > > the following MWE works best: > > > > > > \definelayer[LAY] > > \starttext > > > >

[NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Rudolf Bahr
Hello dear All, the following MWE works best: \definelayer[LAY] \starttext \setlayerframed[LAY] [x=0pt,y=20pt] [frame=on, width=300pt, align={right,}] % tolerant}] {\input ward } \flushlayer[LAY] \stoptext Now, it could have a favourable effect on designing a page if the

Re: [NTG-context] mtxrun

2020-02-14 Thread Rudolf Bahr
On Fri, Feb 14, 2020 at 08:59:57PM +0100, Luca Donetti wrote: > > > So I run explicitly the second one: > > > ~/context-lmtx/bin/mtxrun --generate > > > but I got the same error. > > > > This is the wrong binary. As Hans said (and also what I wrote in my > > message) is that you have to run the

Re: [NTG-context] mtxrun

2020-02-12 Thread Rudolf Bahr
On Wed, Feb 12, 2020 at 12:24:21AM -0500, Aditya Mahajan wrote: > On Wed, 12 Feb 2020, Rudolf Bahr wrote: > > > On Tue, Feb 11, 2020 at 01:39:54PM -0500, Aditya Mahajan wrote: > > > > > What is the output of > > > > > > ~/context-

Re: [NTG-context] mtxrun

2020-02-11 Thread Rudolf Bahr
On Tue, Feb 11, 2020 at 03:57:27PM -0500, Aditya Mahajan wrote: > On Tue, 11 Feb 2020, Rudolf Bahr wrote: > > > > > On Tue, Feb 11, 2020 at 07:38:54PM +0100, Hans Hagen wrote: > > > On 2/11/2020 6:26 PM, Rudolf Bahr wrote: > > > > > > > "

Re: [NTG-context] mtxrun

2020-02-11 Thread Rudolf Bahr
On Tue, Feb 11, 2020 at 01:39:54PM -0500, Aditya Mahajan wrote: > What is the output of > > ~/context-lmtx/tex/texmf-linux-64/bin/mtxrun --generate > > (please paste the complete output; your previous message did not show if > SELFAUTOPARENT was being set correctly). Hi Aditya! Thank you for

Re: [NTG-context] mtxrun

2020-02-11 Thread Rudolf Bahr
On Tue, Feb 11, 2020 at 07:38:54PM +0100, Hans Hagen wrote: > On 2/11/2020 6:26 PM, Rudolf Bahr wrote: > > > "whereis mtxrun" gives: > > ~/context-lmtx/bin/mtxrun.lua > > ~/context-lmtx/bin/mtxrun > > ~/context-lmtx/tex/texmf-linux-64/bin/mtx

Re: [NTG-context] mtxrun

2020-02-11 Thread Rudolf Bahr
On Tue, Feb 11, 2020 at 04:57:15PM +0100, Pablo Rodriguez wrote: > On 2/11/20 4:23 PM, Rudolf Bahr wrote: > > > > How should it be possible to mix mkiv and lmtx, when I install "LuaMetaTeX > > 2.03.15" > > and "ConTeXt 2020.02.10 MKIV beta" in my

Re: [NTG-context] mtxrun

2020-02-11 Thread Rudolf Bahr
On Tue, Feb 11, 2020 at 01:07:23PM +0100, Hans Hagen wrote: > On 2/11/2020 11:56 AM, Rudolf Bahr wrote: > > On Mon, Feb 10, 2020 at 01:03:38PM +0100, Bahr Rudolf wrote: > > > On Mon, Feb 10, 2020 at 11:54:49AM +0100, Bahr Rudolf wrote: > > > > > > > > Hel

Re: [NTG-context] mtxrun

2020-02-11 Thread Rudolf Bahr
On Mon, Feb 10, 2020 at 01:03:38PM +0100, Bahr Rudolf wrote: > On Mon, Feb 10, 2020 at 11:54:49AM +0100, Bahr Rudolf wrote: > > > > Hello ConTeXters! > > > > LuaMetaTeX, Version 2.03.15 > > ConTeXt ver: 2020.02.07 18:36 MKIV beta fmt: 2020.2.10 > > works well doing my usual tasks. > > > >

Re: [NTG-context] mtxrun

2020-02-10 Thread Rudolf Bahr
On Mon, Feb 10, 2020 at 11:54:49AM +0100, Bahr Rudolf wrote: > > Hello ConTeXters! > > LuaMetaTeX, Version 2.03.15 > ConTeXt ver: 2020.02.07 18:36 MKIV beta fmt: 2020.2.10 > works well doing my usual tasks. > > Now, I put an .otf-font into ".../tex/texmf-local/", and made >mtxrun

Re: [NTG-context] mtxrun

2020-02-10 Thread Rudolf Bahr
On Mon, Feb 10, 2020 at 12:06:43PM +0100, Taco Hoekwater wrote: > Hi, > > > On 10 Feb 2020, at 11:54, Rudolf Bahr wrote: > > > > Please, what is to be done? > > This usually happens when the mtxrun script you call is not in its ’normal' > tree location.

[NTG-context] mtxrun

2020-02-10 Thread Rudolf Bahr
Hello ConTeXters! LuaMetaTeX, Version 2.03.15 ConTeXt ver: 2020.02.07 18:36 MKIV beta fmt: 2020.2.10 works well doing my usual tasks. Now, I put an .otf-font into ".../tex/texmf-local/", and made mtxrun --generate mtxrun --script fonts --reload mtxrun --script fonts --list --all

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-18 Thread Rudolf Bahr
On Wed, Dec 18, 2019 at 06:13:51PM +0100, Wolfgang Schuster wrote: > Rudolf Bahr schrieb am 18.12.2019 um 15:13: > > On Tue, Dec 17, 2019 at 07:30:49PM +0100, Hans Hagen wrote: > > > > > you need to make a MWE to show what you mean > > > > > >

Re: [NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-18 Thread Rudolf Bahr
On Tue, Dec 17, 2019 at 07:30:49PM +0100, Hans Hagen wrote: > you need to make a MWE to show what you mean > > normally > > \hbox to {\hss\hss} > > is good enough for centering Here is my MWE. Think of a photo album. To make it interesting the pages should all be different. To this purpose

[NTG-context] Moving horizontally a whole ensemble of layers in the same run?

2019-12-17 Thread Rudolf Bahr
Hi Hans, assume we fixed between "\definelayer" and "\flushlayer" a whole ensemble of layers on a page. And by calculating per luacode we determined the leftmost and the rightmost edge of the ensemble and would now like to horizontally centre the ensemble. We don't know the rightmost edge before

Re: [NTG-context] "error not related to input file"

2019-12-16 Thread Rudolf Bahr
On Sat, Dec 14, 2019 at 10:31:20PM +0100, Hans Hagen wrote: > On 12/14/2019 5:43 PM, Rudolf Bahr wrote: > > > > Hello All, > > > > In: > > LuaMetaTeX, Version 2.03.3 > > ConTeXt ver: 2019.12.12 19:35 MKIV beta fmt: 2019.12.12 int: > > english/

Re: [NTG-context] "error not related to input file"

2019-12-14 Thread Rudolf Bahr
On Sat, Dec 14, 2019 at 05:43:45PM +0100, Bahr Rudolf wrote: > > Hello All, > > In: > LuaMetaTeX, Version 2.03.3 > ConTeXt ver: 2019.12.12 19:35 MKIV beta fmt: 2019.12.12 int: > english/english > I get the following error message: > > tex error > error not related to input file: >

[NTG-context] "error not related to input file"

2019-12-14 Thread Rudolf Bahr
Hello All, In: LuaMetaTeX, Version 2.03.3 ConTeXt ver: 2019.12.12 19:35 MKIV beta fmt: 2019.12.12 int: english/english I get the following error message: tex error > error not related to input file: tex error > tex: ! Emergency stop tex error > lua: ? tex error >

Re: [NTG-context] Exchangeing content of variables between luacode and context

2019-11-20 Thread Rudolf Bahr
On Wed, Nov 20, 2019 at 09:24:44AM +0100, Hans Hagen wrote: > you can store info in the tuc file (there are examplex on the wiki and in > the test suite) or you cam create a table, save it at the end of the run and > load it at the start > > (assuming that you cannot just recalculate the values

Re: [NTG-context] Exchangeing content of variables between luacode and context

2019-11-19 Thread Rudolf Bahr
On Tue, Nov 19, 2019 at 04:55:15PM +0100, Wolfgang Schuster wrote: > > Can you make a minimal example of your actual problem. No, sorry, I can't. My 'actual problem' is more or less a design problem: Should in a book project ConTeXt be the master and Luacode the slave or vice versa? Both seems

[NTG-context] Exchangeing content of variables between luacode and context

2019-11-19 Thread Rudolf Bahr
Hello All! To send variable contents from context to luacode I can put them into the function invocation or use 'tokens.getters.macro("TestA")', an interesting and very nice possibility to let luacode itself getting contents of context macros. The (only?) way back, from luacode to context, could

Re: [NTG-context] Luacode: Data File to Table

2019-10-24 Thread Rudolf Bahr
On Thu, Oct 24, 2019 at 05:11:50PM +0200, Taco Hoekwater wrote: > Here is the problem: > > > context ( 'function Rosi(): b.smrk = ', b.smrk ) > > > That should be: > >context ( 'function Rosi(): b.smrk = ' .. b.smrk ) > > since the context() function does

[NTG-context] Luacode: Data File to Table

2019-10-24 Thread Rudolf Bahr
Hi All! LuaMetaTeX, Version 2.00.0 ConTeXt ver: 2019.10.10 18:15 MKIV beta fmt: 2019.10.19 int: english/english I'd like to transfer the entries in a data file to a Lua table according to [1]. Here a MWE of my data file, appended as file Rosi.lua: -- Rosi{ smrk

Re: [NTG-context] LMTX distorts PDF aspect

2019-10-19 Thread Rudolf Bahr
On Sat, Oct 19, 2019 at 07:40:32PM +0200, Bahr Rudolf wrote: > On Sat, Oct 19, 2019 at 12:07:03PM +0200, Pablo Rodriguez wrote: > > Dear list, > > > > using the document attached to this message with the following sample > > gives different outputs: > > > > \setuppapersize[A3, landscape] > >

Re: [NTG-context] LMTX distorts PDF aspect

2019-10-19 Thread Rudolf Bahr
On Sat, Oct 19, 2019 at 12:07:03PM +0200, Pablo Rodriguez wrote: > Dear list, > > using the document attached to this message with the following sample > gives different outputs: > > \setuppapersize[A3, landscape] > \starttext > \externalfigure[fc-first.pdf] > \stoptext > > 1.

[NTG-context] ConTeXt HTML

2019-10-19 Thread Rudolf Bahr
Hi, thank you! Installing ConTeXt HTML from "pragma-ade.nl/install.htm" (64 bit Linux) works now! Rudolf ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] mtxrun --generate: "warning: no lua configuration files found"

2019-10-17 Thread Rudolf Bahr
On Thu, Oct 17, 2019 at 06:23:23PM +0200, Hans Hagen wrote: > On 10/17/2019 5:40 PM, Rudolf Bahr wrote: > > > > On Thu, Oct 17, 2019 at 05:21:27PM +0200, Hans Hagen wrote: > > > On 10/17/2019 5:02 PM, Rudolf Bahr wrote: > > > > > > > > Hi All, >

Re: [NTG-context] mtxrun --generate: "warning: no lua configuration files found"

2019-10-17 Thread Rudolf Bahr
On Thu, Oct 17, 2019 at 05:21:27PM +0200, Hans Hagen wrote: > On 10/17/2019 5:02 PM, Rudolf Bahr wrote: > > > > Hi All, > > > > after a new First-setup from "https://www.contextgarden.net/First-setup; > > I added new fonts to "~/context/tex/texmf-loca

[NTG-context] mtxrun --generate: "warning: no lua configuration files found"

2019-10-17 Thread Rudolf Bahr
Hi All, after a new First-setup from "https://www.contextgarden.net/First-setup; I added new fonts to "~/context/tex/texmf-local/fonts", then run: "mtxrun --generate" and got "resolvers | resolving | warning: no lua configuration files found" Please, what is to be done in this case?

Re: [NTG-context] \ctxlua and \startluacode ... \stopluacode

2019-10-16 Thread Rudolf Bahr
On Tue, Oct 15, 2019 at 10:15:34AM +0200, Hans Hagen wrote: > On 10/15/2019 10:04 AM, Taco Hoekwater wrote: > > Hi Rudolf, > > > > > On 15 Oct 2019, at 00:50, Rudolf Bahr wrote: > > > > > > Now to your suggestion not to use "assert ()". Inde

Re: [NTG-context] \ctxlua and \startluacode ... \stopluacode

2019-10-14 Thread Rudolf Bahr
On Mon, Oct 14, 2019 at 09:26:58PM +0200, Taco Hoekwater wrote: > Hi, > > > On 14 Oct 2019, at 21:08, Rudolf Bahr wrote: > > > > > > 2. But in the case of an not existing file (BBB.lua) the known error > > message comes up > > again: > > &qu

Re: [NTG-context] \ctxlua and \startluacode ... \stopluacode

2019-10-14 Thread Rudolf Bahr
On Mon, Oct 14, 2019 at 07:19:53PM +0200, Hans Hagen wrote: > On 10/14/2019 6:50 PM, Rudolf Bahr wrote: > > THis MWE must be faulty, but where is the error? > > > > > > > > \startluacode > > > >

[NTG-context] \ctxlua and \startluacode ... \stopluacode

2019-10-14 Thread Rudolf Bahr
Dear List! THis MWE must be faulty, but where is the error? \startluacode userdata = userdata or {} function userdata.file_exists (name) local name = name local f= assert ( io.open ( name, "r" )) if f then f:close ()

Re: [NTG-context] PDF viewer poll

2019-10-13 Thread Rudolf Bahr
On Sun, Oct 13, 2019 at 12:43:14PM +0200, Henning Hraban Ramm wrote: > Hi, I’d like to update my list of (usable!) PDF viewers. > Which one do you use? (Current version?) > What are its pros and cons? > Is it free (open source, freeware)? > Does it work on Win/Lin/Mac? > Does it have a localized

Re: [NTG-context] passing variables/data between context and lua

2019-10-08 Thread Rudolf Bahr
On Tue, Oct 08, 2019 at 08:55:30AM -0400, Aditya Mahajan wrote: > So, everytime \setvariables is call, the value of the `set` key is executed. Hello Aditya, this is the key sentence to understand better what "reset" and "set" are good for! I had to read your explanation thrice :-) and run

Re: [NTG-context] passing variables/data between context and lua

2019-10-08 Thread Rudolf Bahr
On Sun, Oct 06, 2019 at 10:44:12PM +0200, Wolfgang Schuster wrote: > While it is true that you're free to choose the name for the keys there are > two keys with a special meaning, these two keys are "reset" and "set". The > value of the "reset" key is used before the values in \setvariables are

Re: [NTG-context] passing variables/data between context and lua

2019-10-05 Thread Rudolf Bahr
> A solution which uses only existing commands in the document. > > \startsetups [martin] > \startlua > local points = tonumber(\getvariable{martin}{question}) or 0 ; > points = points * 92 ; > local answer = 42 ; >

Re: [NTG-context] [OT] rasperry 4

2019-06-25 Thread Rudolf Bahr
On Tue, Jun 25, 2019 at 03:33:00PM +0200, luigi scarso wrote: > On Tue, Jun 25, 2019 at 3:31 PM Rudolf Bahr wrote: > > > On Tue, Jun 25, 2019 at 10:15:29AM +1200, Henri Menke wrote: > > > On 25/06/19 12:30 AM, luigi scarso wrote: > > > > just seen > > &

[NTG-context] [OT] rasperry 4

2019-06-25 Thread Rudolf Bahr
On Tue, Jun 25, 2019 at 10:15:29AM +1200, Henri Menke wrote: > On 25/06/19 12:30 AM, luigi scarso wrote: > > just seen > > https://www.raspberrypi.org/products/raspberry-pi-4-model-b/ > > > > I would like to know your impressions > > Does it still need proprietary binary blobs in the kernel?

Re: [NTG-context] Strange behavior concerning pdf-output of .png-externalfigures

2019-05-23 Thread Rudolf Bahr
On Tue, May 21, 2019 at 10:07:01AM +0200, Hans Hagen wrote: > On 5/17/2019 10:23 AM, Rudolf Bahr wrote: > > > > On Thu, May 16, 2019 at 02:40:07PM +0200, Hans Hagen wrote: > > > On 5/16/2019 12:21 PM, Rudolf Bahr wrote: > > > > The problem with artefacts in

Re: [NTG-context] https://wiki.contextgarden.net/Fraktur_fonts

2019-05-22 Thread Rudolf Bahr
On Wed, May 22, 2019 at 07:40:12PM +0200, Willi Egger wrote: > Hi Rudolf, > > I looked at your work on the wiki. It looks very nice, well-structured. > > I wanted to try to upload the pictures. However if I understand the help > correctly, then one needs privileges to upload files? > > Kind

[NTG-context] Strange behavior concerning pdf-output of .png-externalfigures

2019-05-21 Thread Rudolf Bahr
On Thu, May 16, 2019 at 02:40:07PM +0200, Hans Hagen wrote: > On 5/16/2019 12:21 PM, Rudolf Bahr wrote: > > The problem with artefacts in .png images is still unsolved for me. > > I can circumvent it by using .jpg or .tiff images instead of .png images > > as long as

Re: [NTG-context] Strange behavior concerning pdf-output of externalfigures

2019-05-16 Thread Rudolf Bahr
The problem with artefacts in .png images is still unsolved for me. I can circumvent it by using .jpg or .tiff images instead of .png images as long as no transparent areas in the images are needed. As far as I know .jpg and .tiff formats cannot handle transparancy, do they? Now in .log files

[NTG-context] https://wiki.contextgarden.net/Special:Upload

2019-05-08 Thread Rudolf Bahr
When trying to upload an image I get following error message: "Could not open lock file for "mwstore://local-backend/local-public/c/c2/wiki-yfrak-mtxrun-pattern.png". Make sure your upload directory is configured correctly and your web server has permission to write to that directory." I have

Re: [NTG-context] How to write a wiki page?

2019-05-01 Thread Rudolf Bahr
On Wed, May 01, 2019 at 04:51:11PM +0200, Henning Hraban Ramm wrote: > Am 2019-04-30 um 13:12 schrieb Rudolf Bahr : > > > When will next issue of ConTeXt journal be published? Could you send your > > article > > to me in advance? > > Should have been published

Re: [NTG-context] Strange behavior concerning pdf-output of externalfigures

2019-04-30 Thread Rudolf Bahr
On Mon, Apr 29, 2019 at 04:32:07PM -0600, Alan Braslau wrote: > On Mon, 29 Apr 2019 13:18:04 +0200 > Hans Hagen wrote: > > > anyway, as the png test suite passes ok the question is what makes your > > image different ... here it looks ok when included on windows64 bit and > > linux 64 bit > >

Re: [NTG-context] How to write a wiki page?

2019-04-30 Thread Rudolf Bahr
On Mon, Apr 29, 2019 at 05:07:06PM +0200, Willi Egger wrote: > Hello Rudolf, > > the ConTeXt wiki kan be extended by everybody. What you should do is make > your account and then you can start. > > I would be glad to be involved in this page, because I have written an > article, which will be

Re: [NTG-context] How to write a wiki page?

2019-04-29 Thread Rudolf Bahr
On Mon, Apr 29, 2019 at 05:55:14PM +0200, Henning Hraban Ramm wrote: > Hi Rudolf, > > it’s a wiki, i.e. you write directly into the system. > You’re welcome to announce the new page here, then someone can look over it. > > First you need to register an account: >

Re: [NTG-context] Strange behavior concerning pdf-output of externalfigures

2019-04-29 Thread Rudolf Bahr
On Mon, Apr 29, 2019 at 01:18:04PM +0200, Hans Hagen wrote: > On 4/29/2019 10:52 AM, Rudolf Bahr wrote: > > > Sorry, but even after updating to > > ConTeXt ver: 2019.04.29 09:02 MKIV beta fmt: 2019.4.29 > > I'm experiencing the same artefacts as before. > > >

Re: [NTG-context] Strange behavior concerning pdf-output of externalfigures

2019-04-29 Thread Rudolf Bahr
On Mon, Apr 29, 2019 at 10:52:59AM +0200, Bahr Rudolf wrote: > On Sun, Apr 28, 2019 at 11:12:43PM +0200, Hans Hagen wrote: > > On 4/28/2019 8:10 PM, Rudolf Bahr wrote: > > > > > > Dear list, > > > > > > I'm getting unexplainable art

Re: [NTG-context] Strange behavior concerning pdf-output of externalfigures

2019-04-29 Thread Rudolf Bahr
On Sun, Apr 28, 2019 at 11:12:43PM +0200, Hans Hagen wrote: > On 4/28/2019 8:10 PM, Rudolf Bahr wrote: > > > > Dear list, > > > > I'm getting unexplainable artefacts in the pdf-output. > > > > My MWE is: > > > > -- > >

[NTG-context] Strange behavior concerning pdf-output of externalfigures

2019-04-28 Thread Rudolf Bahr
Dear list, I'm getting unexplainable artefacts in the pdf-output. My MWE is: -- \starttext \externalfigure [input.png] [width=100mm] \stoptext -- I append the output "MWE.pdf" and the input-figure "input.png" for comparison. I'm experiencing the

[NTG-context] How to write a wiki page?

2019-04-24 Thread Rudolf Bahr
Hello All! I'd like to write a wiki page on special Fraktur fonts, but I don't know how to begin technically. Are there rules? Certanly, but where? To whom would I send the result to correct it with respect to format, ConTeXt commands, English language, bringing it into the ConTeXt wiki and

Re: [NTG-context] Fraktur font to use in ConTeXt lmtx

2019-04-23 Thread Rudolf Bahr
On Mon, Apr 22, 2019 at 11:48:43PM +0200, Henning Hraban Ramm wrote: > Am 2019-04-22 um 15:26 schrieb Rudolf Bahr : > > > I'd enjoy making a wiki page. Do we have a program to print caracter code > > tables > > or font tables? If not, I'd use a bundle of single \char com

Re: [NTG-context] Error concerning "pdfmapline"; Fraktur font to use in ConTeXt lmtx

2019-04-22 Thread Rudolf Bahr
> > In the meantime I had a look at different Fraktur fonts. Both suggested > > fonts [1] > > and [2] were not acceptable to me for various reasons. > > > > [1] has no gaps between words and many other errors. Horrible. > > Afaiks that font is rather bugged indeed. I tried it, even made sure

Re: [NTG-context] Error concerning "pdfmapline"; Fraktur font to use in ConTeXt lmtx

2019-04-22 Thread Rudolf Bahr
On Fri, Apr 19, 2019 at 09:22:03PM +0200, Bahr Rudolf wrote: > On Fri, Apr 19, 2019 at 09:19:24AM +0200, Hans Hagen wrote: > > On 4/18/2019 8:37 PM, Wolfgang Schuster wrote: > > > > > 2. Use a font in Truetype/Opentype format: > > > http://unifraktur.sourceforge.net/ > > Which is actually a quite

Re: [NTG-context] Error concerning "pdfmapline"

2019-04-19 Thread Rudolf Bahr
On Fri, Apr 19, 2019 at 09:19:24AM +0200, Hans Hagen wrote: > On 4/18/2019 8:37 PM, Wolfgang Schuster wrote: > > > 2. Use a font in Truetype/Opentype format: > > http://unifraktur.sourceforge.net/ > Which is actually a quite nice and even readable fraktur. > > Hans Yes, perhaps. In the next

Re: [NTG-context] Error concerning "pdfmapline"

2019-04-18 Thread Rudolf Bahr
On Tue, Apr 16, 2019 at 01:54:21PM +0200, Hans Hagen wrote: > On 4/16/2019 12:04 PM, Rudolf Bahr wrote: > > Hello All! > > > > Using: > > LuaMetaTeX, Version 2.00.0 > > ConTeXt ver: 2019.04.13 17:25 MKIV beta fmt: 2019

[NTG-context] Error concerning "pdfmapline"

2019-04-16 Thread Rudolf Bahr
Hello All! Using: LuaMetaTeX, Version 2.00.0 ConTeXt ver: 2019.04.13 17:25 MKIV beta fmt: 2019.4.15 with following MWE: -- \pdfmapline {yfrak unsupported cs \pdfmapline mtx-context | fatal error: return code: 256 I'm using the above

Re: [NTG-context] Welcome to LMTX

2019-04-02 Thread Rudolf Bahr
On Tue, Apr 02, 2019 at 01:43:09PM +0200, Mojca Miklavec wrote: > Off-list: please try to remove the old/regular installation from path, > just for the test; it's probably interfering and you get one > executable from one path and the other one from another. Success! Yes, both executables must

Re: [NTG-context] Welcome to LMTX

2019-04-02 Thread Rudolf Bahr
On Tue, Apr 02, 2019 at 01:38:15PM +0200, Hans Hagen wrote: > > > > "ls -l ./context-lmtx/tex/texmf-linux-64/bin/" gives the following: > > > > lrwxrwxrwx 1 sam sam 10 Apr 2 09:15 context -> luametatex > > -rw-r--r-- 1 sam sam1315 Apr 2 09:15 context.lua > > -rwxr--r-- 1 sam sam

Re: [NTG-context] Welcome to LMTX

2019-04-02 Thread Rudolf Bahr
On Tue, Apr 02, 2019 at 12:11:00PM +0200, Thomas A. Schmitz wrote: > On 02.04.19 11:34, Rudolf Bahr wrote: > > whereis mtxrun gives: > > mtxrun: /home/sam/context/tex/texmf-linux-64/bin/mtxrun > > > > whereis context gives: > > context: /usr/local/context /home/s

Re: [NTG-context] Welcome to LMTX

2019-04-02 Thread Rudolf Bahr
On Tue, Apr 02, 2019 at 12:50:40PM +0200, Hans Hagen wrote: > i assume that you have an independent install, i.e. not write lmtx over an > existing one .. your bin path should only have > > luametatex > mtxrun -> luametatex > context -> luametatex > mtxrun.lua > context.lua > > nothing more (in

Re: [NTG-context] Welcome to LMTX

2019-04-02 Thread Rudolf Bahr
On Tue, Apr 02, 2019 at 11:41:08AM +0200, Hans Hagen wrote: > On 4/2/2019 11:34 AM, Rudolf Bahr wrote: > > > Could it have something to do with the lack of lua5.4 in my PC? lua5.3 and > > lua5.2 > > are installed. > No, there are no such depencies. All is built in

Re: [NTG-context] Welcome to LMTX

2019-04-02 Thread Rudolf Bahr
> > On Mon, Apr 01, 2019 at 04:55:11PM +0200, Hans Hagen wrote: > > > http://www.pragma-ade.nl/install.htm > > > > > /home/sam/context-lmtx/tex/texmf-linux-64/bin/mtxrun --autogenerate > > --script context --autopdf ABCD-Helmstedt-Lauf.tex > > > > and got: > > > > sh: 1: luametatex: not

Re: [NTG-context] Welcome to LMTX

2019-04-02 Thread Rudolf Bahr
On Mon, Apr 01, 2019 at 04:55:11PM +0200, Hans Hagen wrote: > http://www.pragma-ade.nl/install.htm > > Of course you should keep your current installation too. We're sure that > there will be issues so when you run into unexpected surprises, you can > blame us ... Hello All, I run

Re: [NTG-context] When newsizing an external figure by [width=], what will be its height in pt and viceversa?

2019-02-27 Thread Rudolf Bahr
On Wed, Feb 27, 2019 at 09:55:07AM +0100, Henning Hraban Ramm wrote: > Am 2019-02-24 um 09:11 schrieb Rudolf Bahr : > > > Yes, "~" was the reason for my failure. Its use seems to be linux specific > > only. > > No, it’s not Linux specific, but ConT

Re: [NTG-context] When newsizing an external figure by [width=], what will be its height in pt and viceversa?

2019-02-24 Thread Rudolf Bahr
On Sun, Feb 24, 2019 at 07:38:42AM +0900, Jeong Dal wrote: > Dear Rudolf, > > It is working for me. > Using my figure, I got > (45126287sp,31048991sp) > > (1372,944) > > > As Hans said, either change ~ to some path or set the directory of > externalfigure. > > Best regards, > > Dalyoung

Re: [NTG-context] externalfigure broken with 20190222 beta

2019-02-23 Thread Rudolf Bahr
On Sat, Feb 23, 2019 at 11:10:42AM -0500, Rik Kabel wrote: > With the following example, I get: > >...eXt/tex/texmf-context/tex/context/base/mkiv/grph-inc.lua:238: attempt > to call upvalue 'imgwrap' (a nil value) > > with the current (20190222) beta. > >

Re: [NTG-context] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-23 Thread Rudolf Bahr
On Sat, Feb 23, 2019 at 11:56:32AM +0100, Hans Hagen wrote: > On 2/23/2019 11:08 AM, Rudolf Bahr wrote: > > On Fri, Feb 22, 2019 at 12:59:55PM +0100, Peter Münster wrote: > > > On Fri, Feb 22 2019, Rudolf Bahr wrote: > > > > > > > The picture sizes in px One

Re: [NTG-context] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-23 Thread Rudolf Bahr
On Fri, Feb 22, 2019 at 12:59:55PM +0100, Peter Münster wrote: > On Fri, Feb 22 2019, Rudolf Bahr wrote: > > > The picture sizes in px One gets by invoking for instance graphics Magick's > > identify > > in a lua program: > > Or just img.scan(): > > \sta

Re: [NTG-context] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-22 Thread Rudolf Bahr
On Tue, Feb 19, 2019 at 10:48:38AM +0100, Bahr Rudolf wrote: > Hi All, > > from an external figure I normally know its width and height in px. > But I don't know its exact sizes in pt. When newsizing the figure > in a document (by the same width-to-height-ratio), I'll do that as > some part of

[NTG-context] When newsizing an external figure bei [width=], what will be its height in pt and viceversa?

2019-02-19 Thread Rudolf Bahr
Hi All, from an external figure I normally know its width and height in px. But I don't know its exact sizes in pt. When newsizing the figure in a document (by the same width-to-height-ratio), I'll do that as some part of textwidth or textheight, in pt or mm, but not in px, i.e. by means of

[NTG-context] Article on: How to install a font in ConTeXt?

2019-02-17 Thread Rudolf Bahr
Yesterday I got dante's revue and read Taco Hoekwater's article translated into German by Henning Hraban Ramm: "dante, Die TEXnische Komödie, 1/2019: 'Wie installiere ich eine Schrift für ConTeXt?'" Many thanks to both, its really good and thoroughly written! Rudolf

Re: [NTG-context] Google Search in ConTeXt Garden

2018-03-18 Thread Rudolf Bahr
On Sun, Mar 18, 2018 at 01:13:35PM +0100, Pablo Rodriguez wrote: > Dear list, > > when I use Google to search the wiki, such as in: > > http://wiki.contextgarden.net/google/new2.html?q=xmldoifelseempty > > I get the following error message: > > Unauthorized access to internal API. Please

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Rudolf Bahr
On Thu, Feb 08, 2018 at 04:26:16PM +0100, Henning Hraban Ramm wrote: > Am 2018-02-08 um 15:34 schrieb Rudolf Bahr <qu...@quasi.de>: > > > On Thu, Feb 08, 2018 at 09:30:48AM +0100, Thomas A. Schmitz wrote: > >> On 02/07/2018 06:39 PM, Rudolf Bahr wrote: > >>&

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-08 Thread Rudolf Bahr
On Thu, Feb 08, 2018 at 09:30:48AM +0100, Thomas A. Schmitz wrote: > On 02/07/2018 06:39 PM, Rudolf Bahr wrote: > > Sometimes the necessity could arise to send data from lua to context > > and answers back to lua. I tried this by using "read" and > > "

Re: [NTG-context] Sending data from lua to context and back to lua

2018-02-07 Thread Rudolf Bahr
On Wed, Feb 07, 2018 at 06:39:53PM +0100, Bahr Rudolf wrote: > > Hello Contexteers! > > Sometimes the necessity could arise to send data from lua to context > and answers back to lua. I tried this by using "read" and > "immediate\write" commands in context. These commands are described > in

[NTG-context] Sending data from lua to context and back to lua

2018-02-07 Thread Rudolf Bahr
Hello Contexteers! Sometimes the necessity could arise to send data from lua to context and answers back to lua. I tried this by using "read" and "immediate\write" commands in context. These commands are described in chapter 21 and 22 of Donald E. Knuth's "The TeXbook". My question is: Do there

Re: [NTG-context] image file resolver in Lua?

2018-02-05 Thread Rudolf Bahr
On Sun, Feb 04, 2018 at 01:06:08PM +0100, Hans Hagen wrote: > On 2/3/2018 7:57 AM, Rudolf Bahr wrote: > > On Fri, Feb 02, 2018 at 04:17:32PM +0100, Henning Hraban Ramm wrote: > > > Am 2018-02-02 um 12:08 schrieb Rudolf Bahr <qu...@quasi.de>: > > > > > >

Re: [NTG-context] image file resolver in Lua?

2018-02-02 Thread Rudolf Bahr
On Fri, Feb 02, 2018 at 04:17:32PM +0100, Henning Hraban Ramm wrote: > Am 2018-02-02 um 12:08 schrieb Rudolf Bahr <qu...@quasi.de>: > > > On Fri, Feb 02, 2018 at 08:40:08AM +0100, Henning Hraban Ramm wrote: > >> Ahoi, > >> > >> I’m using a Lua fu

Re: [NTG-context] image file resolver in Lua?

2018-02-02 Thread Rudolf Bahr
On Fri, Feb 02, 2018 at 08:40:08AM +0100, Henning Hraban Ramm wrote: > Ahoi, > > I’m using a Lua function to calculate image sizes, cropping etc. > This snippet: > > local filename = figures.current().status.fullname > local pic = img.scan{filename = filename} > > ... works most of the time,

Re: [NTG-context] imposition with some rotated pages

2017-08-01 Thread Rudolf Bahr
On Sun, Jul 30, 2017 at 08:55:56PM +0200, Pablo Rodriguez wrote: > > The rotated pages in the source PDF document are a problem here. > > Is there any way to have rotation for some pages in the source document > to get the right imposition? With "pdftk" you can rotate some or all pages of a

[NTG-context] superscripts?

2015-12-19 Thread Rudolf Bahr
Hello, using ConTeXt ver: 2015.12.17 15:57 MKIV beta fmt: 2015.12.18 and writing: \starttext \math{a^2 + b^2 = c^2} \stoptext I get "a?2 + b?2 = c?2" as the Pythagoras formula. Please, how should I write it better? Thanks in advance, Rudolf

Re: [NTG-context] Adrian Frutiger

2015-10-04 Thread Rudolf Bahr
On Thu, Sep 17, 2015 at 10:32:29AM +0200, luigi scarso wrote: > http://www.linotype.com/720-34866/adrianfrutigerremembered.html > Thank you Luigi for pointing to an interesting article! Rudolf ___ If your question

Re: [NTG-context] Hans Hagen: an index entry needs an anchor (Mail Archive 3/19/2014)

2014-11-15 Thread Rudolf Bahr
On Fri, Nov 14, 2014 at 11:54:18AM +0100, Hans Hagen wrote: On 11/14/2014 10:24 AM, Rudolf Bahr wrote: Hi, LaTeX index command doesn't need an anchor in order to print the page number. Sometimes you can't give the ConTeXt-Command index any anchor. Think of an external figure on a page

[NTG-context] Hans Hagen: an index entry needs an anchor (Mail Archive 3/19/2014)

2014-11-14 Thread Rudolf Bahr
Hi, LaTeX index command doesn't need an anchor in order to print the page number. Sometimes you can't give the ConTeXt-Command index any anchor. Think of an external figure on a page and nothing else, without any text. When I say, for instance: \index{Brigitte Bardot}\strut I get a correct

[NTG-context] Main or Overall Index of a series of volumes

2014-09-20 Thread Rudolf Bahr
Hello All, just to plan in advance: I'd like to construct a main or overall index out of the indices of a series of rather big volumes with their own page numbering from 1 to (say) 1000. Of course the intended main or overall index should point not only to a page number, but to the

[NTG-context] arch linux and ConTeXt

2014-05-13 Thread Rudolf Bahr
Hi Aditya, recently I changed my linux distribution to arch and so I used your arch suggestion to install ConTeXt. Instead of reporting any bugs at the ConTeXt mailing list according to the last sentence it's in my own interest to thank you for your work there! All went well, though one little

[NTG-context] Can \doifoddpageelse alter topspace?

2014-04-19 Thread Rudolf Bahr
Hello Contexters, is it possible to alter topspace somehow according to \doifoddpageelse? Or have I to use vertical page lists? I'd need this for composing a doublesided book in landscape mode with binding at the upper edge. Kind regards, Rudolf

Re: [NTG-context] Can \doifoddpageelse alter topspace?

2014-04-19 Thread Rudolf Bahr
On Sat, Apr 19, 2014 at 08:40:59PM +0200, Wolfgang Schuster wrote: Am 19.04.2014 um 19:57 schrieb Rudolf Bahr qu...@quasi.de: Hello Contexters, is it possible to alter topspace somehow according to \doifoddpageelse? Or have I to use vertical page lists? You can define different

  1   2   >