Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-20 Thread Jan U. Hasecke
Am 18.02.20 um 19:24 schrieb Jan U. Hasecke: > Am 18.02.20 um 19:17 schrieb mf: >> Il 18/02/20 19:07, Jan U. Hasecke ha scritto: >>> Am 18.02.20 um 14:53 schrieb Hans Hagen: >>> >>>> \setupcolors[rgb=no] >>>> \startMPcode >>>> dr

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread Jan U. Hasecke
Am 18.02.20 um 19:17 schrieb mf: > Il 18/02/20 19:07, Jan U. Hasecke ha scritto: >> Am 18.02.20 um 14:53 schrieb Hans Hagen: >> >>> \setupcolors[rgb=no] >>> \startMPcode >>> draw lmt_svg [ filename = "sample.svg" ] ; >>> \stop

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread mf
Il 18/02/20 19:07, Jan U. Hasecke ha scritto: Am 18.02.20 um 14:53 schrieb Hans Hagen: \setupcolors[rgb=no] \startMPcode     draw lmt_svg [ filename = "sample.svg" ] ; \stopMPcode I get this error. ! Not implemented: (unknown numeric)=(string). ] <*> ... ; p := lm

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread Jan U. Hasecke
Am 18.02.20 um 14:53 schrieb Hans Hagen: > > \setupcolors[rgb=no] > \startMPcode >     draw lmt_svg [ filename = "sample.svg" ] ; > \stopMPcode I get this error. ! Not implemented: (unknown numeric)=(string). ] <*> ... ; p := lmt_svg [

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread Hans Hagen
On 2/18/2020 12:18 PM, mf wrote: Hello list, I tried this: \starttext \startMPcode picture p ; p := lmt_svg [ filename = "sample.svg" ] ; draw p ; color black_rgb ; black_rgb := ( 0, 0, 0 ) ; color red_rgb   ; red_rgb   := ( 1, 0, 0 ) ; remapcolor( black_rgb, red_rgb ) ; recolor

[NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread mf
Hello list, I tried this: \starttext \startMPcode picture p ; p := lmt_svg [ filename = "sample.svg" ] ; draw p ; color black_rgb ; black_rgb := ( 0, 0, 0 ) ; color red_rgb ; red_rgb := ( 1, 0, 0 ) ; remapcolor( black_rgb, red_rgb ) ; recolor p ; draw p shifted ( bbwidth(p

Re: [NTG-context] Label in externalfigures

2020-02-14 Thread Jan-Erik Hägglöf
Now finally after consulting the luametafun and the MetaFun manual I’ve found what I was looking for:The code:\startMPcode picture p; p := lmt_svg [ filename = "steguppgift.svg", width = 400 ] ;draw p;path linje ; linje := (15,-330) -- (280,-90); % adding a missing line in the .svg fil

Re: [NTG-context] Label in externalfigures

2020-02-13 Thread Jan-Erik Hägglöf
I’ve tested this but it appears outside, not as an layer over the picture. \startMPcode draw lmt_svg [ filename = "steguppgift.svg", height = 5cm, width = 10cm, ] ; label(\sometxt{5,0m},(63.936298,129.563995)); label(\sometxt{37°},(95.652702

Re: [NTG-context] mtxrun

2020-02-12 Thread Rudolf Bahr
t; > The output of ~/context-lmtx/tex/texmf-linux-64/bin/mtxrun --generate is > > big, > > so I append it here by the file "Aditya-I". > > It's made by > > LuaMetaTeX, Version 2.03.15 > > ConTeXt ver: 2020.02.11 16:41 MKIV beta fmt: 2020.2.11 > > That

Re: [NTG-context] mtxrun

2020-02-11 Thread Aditya Mahajan
That shows that texmfcnf.lua file was found and resolved. So, `context filename` should work now. Just to be sure, you can try: ~/context-lmtx/tex/texmf-linux-64/bin/mtxrun --autogenerate --script context filename where filename is the name of a sample tex fil

Re: [NTG-context] mtxrun

2020-02-11 Thread Rudolf Bahr
/usr/share/texmf', branch '/usr/share/texmf' resolvers | globbing | confusing filename, name: 'GUST-FONT-LICENSE.txt', lower: 'gust-font-license.txt', already: 'GUST-FONT-LICENSE.TXT' resolvers | expansions | 1009 files found on 31 directories with 7 uppercase remappings resolve

Re: [NTG-context] issues with \attachment when specifying name

2020-02-08 Thread Pablo Rodriguez
l-mkiv.pdf, type={application/pdf}, %~ method=hidden, name=01-manual, flags=] \stopTEXpage \stoptext In Evince, the annotation has the title xml-mkiv (without the extension), but it opens a 01-manual.pdf document. Acroread displays the filename fine, b

Re: [NTG-context] math font

2020-02-07 Thread Wolfgang Schuster
On Fri, 7 Feb 2020 15:01:42 +0100 "Thomas A. Schmitz" wrote: > Hi all, > > in my environment file, I have defined a math font: > > \definefontfamily [thomas] [math] [XITS Math] > > and as far as I can see in the log file, this font is found: > >

[NTG-context] math font

2020-02-07 Thread Thomas A. Schmitz
Hi all, in my environment file, I have defined a math font: \definefontfamily [thomas] [math] [XITS Math] and as far as I can see in the log file, this font is found: system >9: filename=xits-math.lfg filetype=tex foundname=/Users/lmtx/tex/texmf-context/tex/context/fonts/m

Re: [NTG-context] Fonts from various .otf to work with \bold, \emph, \bf, \bfa ...

2020-02-06 Thread context
x/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' system > start used files system > text: t-Font system > stop used files system > start used files system >1: filename=char-prv.lua filetype=tex format=tex foundname=d:/Ctx-Beta/tex/tex

Re: [NTG-context] img.scan in lmtx?

2020-01-27 Thread Hans Hagen
On 1/26/2020 11:50 PM, Henning Hraban Ramm wrote: I use the lua function img.scan{filename}, but in lmtx I get "attempt to index a nil value (global 'img')", so I guess this got renamed or moved? Just the high level command: figures.getinfo(name,p

[NTG-context] img.scan in lmtx?

2020-01-26 Thread Henning Hraban Ramm
Hi, I use the lua function img.scan{filename}, but in lmtx I get "attempt to index a nil value (global 'img')", so I guess this got renamed or moved? HR ___ If your question is of interest to others as we

Re: [NTG-context] Historic ligatures with lucidaot

2020-01-16 Thread Hans Hagen
mtx-fonts | mtx-fonts | mapping : lucidabrightot mtx-fonts | fontname : lucidabrightot mtx-fonts | fullname : lucidabrightot mtx-fonts | filename : LucidaBrightOT.otf mtx-fonts | family: lucidabrightot mtx-fonts | weight: normal mtx-fonts | st

Re: [NTG-context] mtxrun font patterns

2020-01-08 Thread Hans Hagen
run --script fonts --list --all --pattern=dejavusans identifier familyname fontname filename subfont instances dejavusans dejavusans dejavusans DejaVuSans.ttf dejavusansbook dejavusans dejavusans DejaVuSans.

[NTG-context] Problem loading a font

2019-12-23 Thread Mohammad Hossein Bateni
lose source> level 1, order 3, name 'cont-yes.mkiv' system > start used files system > text: alm system > stop used files system > start used files system >1: filename=char-prv.lua filetype=tex format=tex foundname=/h

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

2019-12-16 Thread Rudolf Bahr
quot;xO"]="0", }, } I think nobody will be able to help me in this case, I myself have to try again and again to finally find the error. If so, this would be the nicest christmas gift to me :-) Best regards, Rudolf --[[ Save Table to File Load Table from Fi

Re: [NTG-context] lmtx

2019-12-12 Thread Hans Hagen
On 12/12/2019 6:28 AM, Otared Kavian wrote: However I would like to ask you to put back into lmtx the nice error messages handling we had in early November: now when there is an error it is impossible to locate it and the file filename-status.html contains nothing (though the colored « error

Re: [NTG-context] lmtx

2019-12-11 Thread Otared Kavian
you for the new beta. I tested a few things and they work nicely as > expected. > > However I would like to ask you to put back into lmtx the nice error messages > handling we had in early November: now when there is an error it is > impossible to locate it and the file filenam

Re: [NTG-context] lmtx

2019-12-11 Thread Otared Kavian
Hi Hans, Thank you for the new beta. I tested a few things and they work nicely as expected. However I would like to ask you to put back into lmtx the nice error messages handling we had in early November: now when there is an error it is impossible to locate it and the file filename

Re: [NTG-context] beta 2019.12.02 18:38 fails to build format

2019-12-04 Thread Otared Kavian
messages which were quite clear before are gone again hyper-cryptic, and the error status file « filename-status.html » does not show anymore the status of the errors. Best regards: OK > On 4 Dec 2019, at 11:41, Thomas A. Schmitz wrote: > > Hi all, > > has this already been report

Re: [NTG-context] context command line interface documentation?

2019-11-19 Thread Hans Hagen
some flags and act on it - the context (and mtxrun) script also need them (as script) - some passed arguments are used to drive the process - and potentially common flags should not interfere --foo --foo=bar --foo="bar bar" filename "file name" should all work (also wit

Re: [NTG-context] LMTX issue with multple question blocks

2019-11-08 Thread Jan Willem Flamma
ns, >> >> Wiping the tuc file (or others) does not solve the issue. >> The data-vir.lua file already contains the proposed change. > Change the line to > > local filename = suffix and f_virtual_y(path,n,suffix) or > f_virtual_n(path,n

Re: [NTG-context] LMTX issue with multple question blocks

2019-11-07 Thread Wolfgang Schuster
Jan Willem Flamma schrieb am 07.11.2019 um 20:08: Rik: thank you for testing and confirming. Hans, Wiping the tuc file (or others) does not solve the issue. The data-vir.lua file already contains the proposed change. Change the line to     local filename = suffix and f_virtual_y(path,n

Re: [NTG-context] LMTX issue with multple question blocks

2019-11-07 Thread Hans Hagen
names). There is a console message that is, perhaps, meaningful: This is LuaMetaTeX, Version 2.00.0 runtime error : input file 'virtual://block.question.' is not found, quitting mtx-context | fatal error: return code: 1 in data-vir.lua local filename = suffix and f_virtual_y(path

Re: [NTG-context] Fails with MkIV works with LMTX

2019-10-28 Thread Otared Kavian
ame \strc_constructions_finali... Best regards: OK > On 28 Oct 2019, at 22:59, Rik Kabel wrote: > > This works with the 20191028 LMTX beta, fails with the 20191028 MkIV beta: > > \starttext > This\footnote{that} > \stoptext > > Error log: > >

[NTG-context] Fails with MkIV works with LMTX

2019-10-28 Thread Rik Kabel
This works with the 20191028 LMTX beta, fails with the 20191028 MkIV beta: \starttext This\footnote{that} \stoptext Error log: return {  ["filename"]="c:/Users/micro/Desktop/fn.tex",  ["lastcontext"]="\n ...s \\inheritmaintextco

Re: [NTG-context] PDF viewer poll

2019-10-14 Thread Hans Hagen
has to be in proportion (and on the average everything pdf has cost us more than in brought in). === synctex === I don't use it myself. I think that it being a library that has to be linked in is a bad design decision: it could have been a call to an external program that gets the fil

Re: [NTG-context] odd processing error with latest standalone

2019-09-19 Thread Alan Bowen
}, > 28 bookmark={12.1 The Hellenistic Horoscope}] > 29 \byline > 30 \startLevelBnHead[reference=12.1.1, > 31 title=Introduction] > > What puzzles me is that the relevant coding for this chapter is the same > as for several other chapters that process with no problems. It

Re: [NTG-context] odd processing error with latest standalone

2019-09-18 Thread Otared Kavian
s that the relevant coding for this chapter is the same as > for several other chapters that process with no problems. It would be good to > know if this is a problem in the chapter itself that I can fix or if there is > a problem in the latest standalone. > > The error-log rea

[NTG-context] odd processing error with latest standalone

2019-09-18 Thread Alan Bowen
this chapter is the same as for several other chapters that process with no problems. It would be good to know if this is a problem in the chapter itself that I can fix or if there is a problem in the latest standalone. The error-log reads: return { ["filename"]="c_12-01_Greenbaum

[NTG-context] Document with page 2 only

2019-09-04 Thread Mikael P. Sundqvist
3, name 'cont-yes.mkiv' system > start used files system > text: pagetwo system > stop used files system > start used files system >1: filename=char-prv.lua filetype=tex format=tex foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/t

Re: [NTG-context] ttf font not seen ?

2019-08-26 Thread Mohammad Hossein Bateni
gt; > system > ConTeXt ver: 2019.08.24 22:50 MKIV beta fmt: > 2019.8.25 int: english/english > system > 'cont-new.mkiv' loaded > > > with the dijkstra.ttf font apparently seen: > > $ mtxrun --script fonts --list --all --

[NTG-context] ttf font not seen ?

2019-08-26 Thread Floris van Manen
jkstra identifierfamilyname fontname filename subfont instances dijkstra dijkstra dijkstra ~/.local/share/fonts/Unknown Vendor/TrueType/Dijkstra/Dijkstra_Thin.ttf dijkstranormaldijkstra dijkstra ~/.local/share

Re: [NTG-context] Bug with jobs.file.run?

2019-08-25 Thread Aditya Mahajan
> processing file, no changes in 'test.lua', not processed graphics> run > processing file, changes in 'test-manual.lua', processing forced If I readd the definition of jobs.file.run from grph-fil.lua (see attached file), then the filename with hyphen also works correctly. Compilin

Re: [NTG-context] LMTX: Space in file names

2019-08-20 Thread Otared Kavian
Hi Hans, Thanks to your reply, I just discovered the reason for which I could not typeset in lmtx files which have a space in their name from the Terminal: one has to say context "exercice 1.tex" that is to enclose the entire filename between double quotes… Which is

Re: [NTG-context] OSFONTDIR

2019-08-16 Thread Hans Hagen
ing’s wrong in my typescripts, or I call for an invalid combination somewhere. At the moment I just get this error message on every run: resolvers | globbing | confusing filename, name: 'SourceSansPro-SemiBold.ttf', lower: 'sourcesanspro-semibold.ttf', already: 'SourceSansPro-Semibold.

Re: [NTG-context] OSFONTDIR

2019-08-15 Thread Henning Hraban Ramm
> unknown font in your document in which case a scan happens, but that should > then be fixed in the style) It’s been a while since I had my whole collection of literally thousands of fonts in OSFONTDIR, but re-scanning happens quite often – yes, probably something’s wrong in my type

Re: [NTG-context] lmtx: img?

2019-08-03 Thread Hans Hagen
n what you want to do ... there are some helpers and I can add more if needed. There is (and already was) local t = figures.getinfo("cow.pdf") Thank you! I had local pic = img.scan{filename = figures.current().status.fullname} and actually just used pic.xsize and pic.ysize

Re: [NTG-context] lmtx: img?

2019-08-03 Thread Henning Hraban Ramm
pers and I can add more if needed. There is (and already was) local t = figures.getinfo("cow.pdf") Thank you! I had local pic = img.scan{filename = figures.current().status.fullname} and actually just used pic.xsize and pic.ysize to calculate scaling and cropping parameters. There’

Re: [NTG-context] some mac fonts do not work correctly

2019-07-24 Thread Ulrike Fischer
y cmap formats are "platform 0 (Unicode), encoding 1 >> (Unicode 1.1(?)), format 12" and maybe as a fallback "platform 1 >> (Mac), encoding 0 (Roman), format 0". >> >> A test would be >> >> \starttext >> \font\oddfont="Big Caslon M

Re: [NTG-context] I (metapost) can't handle numbers bigger than 32767.99998

2019-07-05 Thread Zhichu
s a 15-bit integer? > > Currently, I use `beginglyph(32767,2,4,0) ;` and call it with \char"7FFF. Not > an elegant way I think. > > Is there a fix? I checked the metapost manual and found that charcode is only > used to set the filename to something like %{jobname}.%{charcode} I can't see

Re: [NTG-context] I (metapost) can't handle numbers bigger than 32767.99998

2019-07-05 Thread Hans Hagen
FF. Not  an elegant way I think. Is there a fix? I checked the metapost manual and found that charcode is only  used to set the filename to something like %{jobname}.%{charcode} I can't see  why there's a limit for charcode. __

[NTG-context] I (metapost) can't handle numbers bigger than 32767.99998

2019-07-05 Thread Zhichu
charcode is a 15-bit integer? Currently, I use `beginglyph(32767,2,4,0) ;` and call it with \char"7FFF. Not an elegant way I think. Is there a fix? I checked the metapost manual and found that charcode is only used to set the filename to something like %{jobname}.%{charcode} I can't

[NTG-context] Lua error using module pgfplots and shader=interp

2019-05-29 Thread Luca Donetti
mf-modules/tex/context/third/pgfplots/t-pgfplots.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded lua error > lua error on line 19 in file /home/luca/Nextcloud/personal/tmpcontext/m

Re: [NTG-context] bug in beta from 2019.05.25 10:45

2019-05-26 Thread Pablo Rodriguez
might help, Pablo -- http://www.ousia.tk return { ["filename"]="untitled.tex", ["lastcontext"]="\ \\shipoutscratchbox \ \ \\page_shipout_box #1->\\clf_shipoutpage #1\ \\relax \\global \\setbox #1\\emptybox \\global

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

2019-05-21 Thread Rudolf Bahr
using file '/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 close source> level 2, order 3, name './Artefakte.tex' close source> level 1, order 3, name 'cont-yes.mkiv' system > start

Re: [NTG-context] font selection in LMTX

2019-05-10 Thread Pablo Rodriguez
context/tex/texmf-cache/luatex-ca che/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/data/names.tma' into 'C:/util idades/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556 f32e/fonts/data/names.tmc' stripped identifier familyname fontname

[NTG-context] Lua error in latest beta?

2019-04-29 Thread Alan Bowen
ont-oup.lua:1317: bad argument #1 to 'concat' (table expected, got number) The error log is as follows: return { ["filename"]="env_Brill-01.tex", ["lastcontext"]="\ \\font_helpers_low_level_define ...nsize }

[NTG-context] Fwd: Fwd: IBM Wordcloud with the Filter Module

2019-03-14 Thread Jeroen
close source> level 2, order 5, name 'C:/context/documents/test2.tex' close source> level 1, order 5, name 'C:/context/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' system > start used files system > text: test2 system > stop used files system

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

2019-02-23 Thread Hans Hagen
for instance graphics Magick's identify in a lua program: Or just img.scan(): \startluacode local image = img.scan{filename = "my-image.jpg"} logs.report("xsize", image.xsize) logs.report("ysize", image.ysize) \stopluacode -- Peter Hi

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
gets by invoking for instance graphics > > > > Magick's identify > > > > in a lua program: > > > > > > Or just img.scan(): > > > > > > \startluacode > > >local image = img.scan{filename = "my-ima

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

2019-02-23 Thread Hans Hagen
local image = img.scan{filename = "my-image.jpg"} logs.report("xsize", image.xsize) logs.report("ysize", image.ysize) \stopluacode -- Peter Hi Peter, thank you for pointing to img.scan{}! It's indeed shorter than to invoke Graphics Magick in Lua. R

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
rtluacode > local image = img.scan{filename = "my-image.jpg"} > logs.report("xsize", image.xsize) > logs.report("ysize", image.ysize) > \stopluacode > > -- >Peter Hi Peter, thank you for pointing to img.scan{}! It's indeed shorte

Re: [NTG-context] getdocumentargument in Metafun

2019-02-22 Thread Fabrice L
Le 22 février 2019 à 11:08:51, Aditya Mahajan (adit...@umich.edu) a écrit: Untested. Add quotes around FileName: > string FileName ; > FileName := "\getdocumentargument{File}" ; And not tested successfully ! Thanks a lot A

Re: [NTG-context] getdocumentargument in Metafun

2019-02-22 Thread Aditya Mahajan
On Fri, 22 Feb 2019, Fabrice L wrote: Dear list, I wish to do several zoom from a picture made in MetaFun, from a pdf file which name is given on the commande line, like: context zoom.tex —File=EntryFile —Page=9 —result=OutFile.pdf Untested. Add quotes around FileName: string FileName

[NTG-context] getdocumentargument in Metafun

2019-02-22 Thread Fabrice L
Dear list, I wish to do several zoom from a picture made in MetaFun, from a pdf file which name is given on the commande line, like: context zoom.tex —File=EntryFile —Page=9 —result=OutFile.pdf Minimal example: \starttext \startMPpage numeric ThePage ; string FileName ; FileName

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

2019-02-22 Thread Peter Münster
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(): \startluacode local image = img.scan{filename = "my-image.jpg"} logs.report("xsize", imag

Re: [NTG-context] degrade module

2019-02-14 Thread Marco Patzer
ution) local request = figures.current().request local width = request.width local height = request.height if resolution == "" or (not width and not height) then print(format("Nothing to do: %s, %s, %s", oldname, newname, resolution)) return end local inch = 72.27

Re: [NTG-context] Problem installing a new font

2018-11-12 Thread Willi Egger
t font --list --file > --pattern=LukasSvatbaSlant.afm > familynameweight stylewidthvariant fontname > filename subfont fontweight > lukassvatba normal italic normal normallukassvatbaoblique > LukasSvatbaSlant.afm

Re: [NTG-context] Problem installing a new font

2018-11-12 Thread Taco Hoekwater
hvariant fontname filename subfont fontweight lukassvatba normal italic normal normallukassvatbaoblique LukasSvatbaSlant.afm conflict: oblique And it works: hamster:Downloads taco$ pdffonts HW.pdf name

Re: [NTG-context] Can anyone connect context to R or python?

2018-10-06 Thread Aditya Mahajan
). It is possible to do so using the `filter` module (plus some lua code). In this case, the user simply calls "context filename" and ConTeXt macros take care of calling an external program (say matlab) to generate the plot and do the algebraic calculations. Another approach which is taken by programs l

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Wolfgang Schuster
as delimiters for the file name instead of a space after the name Does this mean I can use a space in the filename? It’s possible but the safer method is to use a underscore or hyphen in file names. 3. In products you can put all content in a document environment which has hooks to insert

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Axel Kielhorn
. You can use brackets as delimiters for the file name instead of a space > after the name Does this mean I can use a space in the filename? > > 3. In products you can put all content in a document environment which has > hooks to insert text etc. at the begin and end of the document (which

Re: [NTG-context] Emacs + latest beta

2018-08-24 Thread Fabrice Couvreur
metapost> loading 'metafun' as '/home/aragorn/texlive/2018/texmf-dist/metapost/context/base/mpiv/metafun.mpiv' using method 'default' metapost> initializing number mode 'scaled' open source > level 3, order 4, name '/home/aragorn/texlive/2018/texmf-dist/tex/context/samp

Re: [NTG-context] future versions - synctex

2018-08-21 Thread Hans Hagen
is react to a click/cursor/key combination and call mtxrun with the page and positions (basepoints in pdf coordinate space) How do I configure the editor command, e.g., with VIM, mtxrun will need to call: `vim --servername=VIM --remote +{line_number} {filename}` What should be the value

Re: [NTG-context] future versions - synctex

2018-08-21 Thread Aditya Mahajan
How do I configure the editor command, e.g., with VIM, mtxrun will need to call: `vim --servername=VIM --remote +{line_number} {filename}` What should be the value of `editor` in this case? Aditya ___ If your que

Re: [NTG-context] Change PDF viewer with Scite

2018-08-20 Thread Fabrice Couvreur
e. $ (File.patterns.context) = $ > > (name.context.gsview) $ (FileDir ) / $ (FileName) .pdf by command.2. $ > > (File.patterns.context) = $ (name.context.evince) $ (FileDir) / $ > > (F

Re: [NTG-context] Change PDF viewer with Scite

2018-08-20 Thread Hans Hagen
) / $ (FileName) .pdf by command.2. $ (File.patterns.context) = $ (name.context.evince) $ (FileDir) / $ (FileName) .pdf search for "name.flag.pdfopen" - Hans Hagen |

[NTG-context] Change PDF viewer with Scite

2018-08-19 Thread Fabrice Couvreur
Hello, The default viewer is GhostView. I would like to replace it with Evince. In user mode, I edited the /usr/share/scite/scite-context.properties file to replace the command.2 line. $ (File.patterns.context) = $ (name.context.gsview) $ (FileDir ) / $ (FileName) .pdf by command.2

Re: [NTG-context] structures.lists.ordered empty in latest beta

2018-08-18 Thread Wolfgang Schuster
3, name '/Users/wolf/context/beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' system > start used files system > text: test system > stop used files system > start used files system >1: filename=char-prv.lua filetype=te

Re: [NTG-context] resetting footnote counter

2018-08-09 Thread Aditya Mahajan
ward\footnote{A quote by ward}}} \stoptext All examples were run using: ConTeXt ver: 2018.04.04 00:51 MKII fmt: 2018.7.3 int: english/english and the documents were compiled using texexec --xetex filename

Re: [NTG-context] using lua fonts

2018-05-09 Thread Hans Hagen
llaregular; \mainfont This code is stored in fonts-demo-rule.lua and we can load that font in the usual way, by specifying a filename. \bye and then in that lua file if detail then name = name .. ":" .. detail end watch how i replaced the * by : because only context has the

Re: [NTG-context] using lua fonts

2018-05-08 Thread Henri Menke
egular.otf \mainfont This code is stored in fonts-demo-rule.lua and we can load that font in the usual way, by specifying a filename. \bye --- fonts-demo-rule.lua --- return function(specification) local features = specification.features.normal local name = features.original

[NTG-context] Loading units fails

2018-04-24 Thread Michael Guravage
artmessages italian library: units 50 title: unita 51 1: usare \string\Degrees\space\string\Celsius\space invece di \string\Celsius ! 52 \stopmessages ? x system > start used files system > text: testing system > stop used files system

Re: [NTG-context] Strange behavior with cambria font

2018-04-21 Thread Wolfgang Schuster
a font and installed it : The text is in italic ! Thanks Fabrice # fab@debian:~$ mtxrun --script font --list "cambria*" --all resolvers | trees | analyzing 'home:texmf' identifier familynamefontnamefilename sub

[NTG-context] Strange behavior with cambria font

2018-04-21 Thread Fabrice Couvreur
fontname filename subfont instances cambria cambria cambria cambria.ttc1 cambriabold cambria cambriabold cambriab.ttf cambriabolditaliccambria cambriabolditalic cambriaz.ttf cambriaitaliccambria cam

Re: [NTG-context] Asymptote and Context

2018-04-19 Thread Aditya Mahajan
tercommand=` but the input filename is missing, so asymptote launches an interactive promt. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-cont

[NTG-context] Problem with Filter Module in latent context beta

2018-04-14 Thread Lutz Haseloff
ecatcode \gdef\activeendoflinetoken{^^M} 97 \egroup 98 \fi 99 100 \protectmodulecatcodes 101 \stopmodule 102 ? x system > start used files system > text: filtertest system > stop used files system > start used fi

Re: [NTG-context] Build for Alpine Linux

2018-04-11 Thread Brian Hunt
ua' resolvers | resolving | deep checking 'selfautoparent:texmf-linux-64', base 'mtx-context.lua', pattern 'false' resolvers | resolving | deep checking 'selfautoparent:texmf', base 'mtx-context.lua', pattern 'false' resolvers | resolving | checking filename 'mtx-context.lu

Re: [NTG-context] BTX subsystem fubar, borked, failing with current (2018-04-02) beta

2018-04-03 Thread Alan Braslau
order 3, name '/usr/home/braslau/context/beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' system > start used files system > text: publications-quick-example system > stop used files system > start used files system >1:

Re: [NTG-context] BTX subsystem fubar, borked, failing with current (2018-04-02) beta

2018-04-03 Thread Rik Kabel
onTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' system > start used files system > text: publications-quick-example system > stop used files system > start used files system >1: filename=char-prv.lua filetype=tex format=tex

Re: [NTG-context] linux binaries split?

2018-03-25 Thread Arthur Reutenauer
ted as “all file names in the current directory but musl”, which means that it is actually expanded as grep -q [filename 1] [filename 2] [filename 3] ... [output of ldd --version] and grep will thus look for the first file name in that list (whose exact order is hard to predict and depen

Re: [NTG-context] How to use fonts.handlers.otf.enhancers.patches?

2018-02-27 Thread Hans Hagen
g attached). you could print the filename and see what gets by (maybe the ^ is not needed) If I wanted to do this in ConTeXt I'd use the feature approach but unfortunately the unicode-math package for LaTeX gives no option to set mode=base to have features applied in math mode :/ i have no

Re: [NTG-context] How to use fonts.handlers.otf.enhancers.patches?

2018-02-27 Thread Henri Menke
he mechanism to add uppercase greek to Latin Modern Math >> from lm- >> math.lfg.  Unfortunately, my code is not working.  What am I doing wrong? >> >> Cheers, Henri >> >> --- >> >> \startluacode >> local patches = fonts.handlers.otf.enhancers.

Re: [NTG-context] How to use fonts.handlers.otf.enhancers.patches?

2018-02-27 Thread Hans Hagen
the mechanism to add uppercase greek to Latin Modern Math from lm- math.lfg.  Unfortunately, my code is not working.  What am I doing wrong? Cheers, Henri --- \startluacode local patches = fonts.handlers.otf.enhancers.patches local function patch(data,filename) local uni_to_ind

[NTG-context] How to use fonts.handlers.otf.enhancers.patches?

2018-02-26 Thread Henri Menke
to Latin Modern Math from lm- math.lfg.  Unfortunately, my code is not working.  What am I doing wrong? Cheers, Henri --- \startluacode local patches = fonts.handlers.otf.enhancers.patches local function patch(data,filename) local uni_to_ind = data.map.map if not uni_to_ind[0x3F5

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

2018-02-05 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: > > > &g

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

2018-02-04 Thread Hans Hagen
image sizes, cropping etc. This snippet: local filename = figures.current().status.fullname local pic = img.scan{filename = filename} ... works most of the time, but sometimes the "current" image is the previous one, might be because I’m using layers and postponing. So I’d like to u

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

2018-02-02 Thread Rudolf Bahr
nction 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, but sometimes the "current&quo

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

2018-02-02 Thread Henning Hraban Ramm
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 function to calculate image sizes, cropping etc. >> This snippet: >> >> local filename

Re: [NTG-context] Django: using ConTeXT mkiv to output PDF

2018-02-02 Thread kaddour kardio
s to combine: > 1- What Hans taught me about working on file (and not simply stdout) > python has already a module *tempfile.NamedTemporaryFile()* , > 2- Your snippet to run ConTeXT inside the temporary folder *cd && > contextjit --purgeall --path="%d" --arguments=f

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} > >

[NTG-context] image file resolver in Lua?

2018-02-01 Thread Henning Hraban Ramm
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, but sometimes the "current" image is the previous one, might be because I’m us

Re: [NTG-context] \setvariables and database module

2018-01-31 Thread Wolfgang Schuster
s fine: \startseplisttalk Hacker;Up to date hacking;hacker.jpg Hacker;Up to date hacking;hacker.jpg \stopseplisttalk while the following does not (as far as the filename is concerned): \startseplisttalk {Hacker};{Up to date hacking};{hacker.jpg} Hacker ; Up to date hacking ; hacker.jpg \stopseplisttalk

Re: [NTG-context] \setvariables and database module

2018-01-30 Thread Otared Kavian
> On 30 Jan 2018, at 19:05, Wolfgang Schuster <schuster.wolfg...@gmail.com> > wrote: >> […] > Spaces after a control sequence are gobbled and multiple spaces are skipped. > > Braces around the filename are allowed because this function was added with > the exten

<    1   2   3   4   5   6   7   8   9   10   >