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
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
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
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 [
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
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
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
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
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
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
/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
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
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:
>
>
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
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
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
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
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
run --script fonts --list --all --pattern=dejavusans
identifier familyname fontname
filename subfont instances
dejavusans dejavusans dejavusans
DejaVuSans.ttf
dejavusansbook dejavusans dejavusans
DejaVuSans.
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
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
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
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
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
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
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
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
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
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
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:
>
>
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
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
},
> 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
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
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
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
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 --
jkstra
identifierfamilyname fontname filename
subfont instances
dijkstra dijkstra dijkstra ~/.local/share/fonts/Unknown
Vendor/TrueType/Dijkstra/Dijkstra_Thin.ttf
dijkstranormaldijkstra dijkstra ~/.local/share
> 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
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
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.
> 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
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
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’
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
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
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.
__
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
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
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
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
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
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 }
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
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
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
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
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
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
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
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
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
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
t font --list --file
> --pattern=LukasSvatbaSlant.afm
> familynameweight stylewidthvariant fontname
> filename subfont fontweight
> lukassvatba normal italic normal normallukassvatbaoblique
> LukasSvatbaSlant.afm
hvariant fontname
filename subfont fontweight
lukassvatba normal italic normal normallukassvatbaoblique
LukasSvatbaSlant.afm conflict: oblique
And it works:
hamster:Downloads taco$ pdffonts HW.pdf
name
). 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
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
. 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
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
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
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
e. $ (File.patterns.context) = $
> > (name.context.gsview) $ (FileDir ) / $ (FileName) .pdf by command.2. $
> > (File.patterns.context) = $ (name.context.evince) $ (FileDir) / $
> > (F
) / $ (FileName) .pdf by command.2. $
(File.patterns.context) = $ (name.context.evince) $ (FileDir) / $
(FileName) .pdf
search for "name.flag.pdfopen"
-
Hans Hagen |
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
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
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
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
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
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
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
fontname filename
subfont instances
cambria cambria cambria cambria.ttc1
cambriabold cambria cambriabold cambriab.ttf
cambriabolditaliccambria cambriabolditalic cambriaz.ttf
cambriaitaliccambria cam
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
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
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
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:
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
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
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
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.
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
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
> 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
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
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
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
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
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}
>
>
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
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
> 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
301 - 400 of 1623 matches
Mail list logo