[NTG-context] Incorrect css reference in exported html file

2021-02-27 Thread Aditya Mahajan
: local source = addsuffix(cssextra[i],"css") local target = joinfile(stylepath,basename(source)) while for reference, context is using: result[#result+1] = replacetemplate(csspreamble, { filename = cssfile }) extras[#extras+1] = replacetemplate(cssheadlink, { filename =

[NTG-context] Warning: "nodes: unable to store reference from lua in tex"

2021-02-26 Thread Lukas/ConTeXt
e 97, subpage 97 pages > flushing realpage 98, userpage 98, subpage 98 close source> level 2, order 3, name 'D:/Lukas/Jobs/Chrastany-D5.4-RDS/SO_201/t.mkiv' close source> level 1, order 3, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' s

Re: [NTG-context] Using Gill Sans on macOS

2021-02-22 Thread Gerben Wierda
ont? > > Hi Gerben! > > Sometimes ConTeXt can’t find the subfonts in TTCs, e.g.: > > $ mtxrun --script fonts --list --all --pattern=Gill > identifierfamilyname fontname filename > subfont instances > > gillsans

Re: [NTG-context] Using Gill Sans on macOS

2021-02-22 Thread Henning Hraban Ramm
here: > > /System/Library/Fonts/Supplemental/GillSans.ttc > > What should I do to be able to use that font? Hi Gerben! Sometimes ConTeXt can’t find the subfonts in TTCs, e.g.: $ mtxrun --script fonts --list --all --pattern=Gill identifierfamilyname f

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-30 Thread Henning Hraban Ramm
ds more consistent. OTOH I can understand you don’t want to bloat your module. > Another option is to write the external files as valid tex file (i.e., with a > \startTEXpage .. \stopTEXpage wrapper), and when defining the filtercommand, > use something like `context --environment=env fi

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-29 Thread Aditya Mahajan
e1.pgf > t-filter > output file : tikztemp/example1.pgf.pdf > ... > system > 13: filename=img/example1.pgf foundname=img/example1.pgf > fullname=.../img/example1.pgf usedmethod=direct > > Looks like ConTeXt can find the file, but the filter module

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-28 Thread Henning Hraban Ramm
filter> current filter : tikzThick t-filter> base file : example1.pgf t-filter> input file : img/example1.pgf t-filter> output file : tikztemp/example1.pgf.pdf ... system > 13: filename=img/example1.pgf foundname=img/example1.pgf fullname

Re: [NTG-context] prevent error page

2020-12-31 Thread Aditya Mahajan
if there is an error? You can try: context --nodummy filename which will not generate the "error" pdf. However, if the error was such that context had to abort the run, then no valid PDF will be generated. You cannot have the previous PDF untouched because context sta

Re: [NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Neven Sajko
=20pt]}} {some offset} \startMPcode draw lmt_svg [ filename = "../hammingCoderStopwatch-hammingCoder-gcc-RowsSparse-1023-1013.svg" ]; setbounds currentpicture to

Re: [NTG-context] LMTX and addplot table

2020-12-12 Thread Hans Hagen
it with some trial and error but the next seems to work: \let\PackageError\writestatus so I'll add something like that to m-tikz.mkiv after all that I get this: PGFPlots: reading {mfe-addplot.dat} pgfplots> Sorry, could not retrieve column 't' from table '\\pgfplotstableread@filename

Re: [NTG-context] Getting the filename which is being typeset

2020-12-05 Thread Axel Kielhorn
> Am 04.12.2020 um 10:04 schrieb Hans Hagen : > > On 12/4/2020 8:02 AM, Axel Kielhorn wrote: >>> Am 01.12.2020 um 18:23 schrieb Wolfgang Schuster >>> : >>> >>> The following example shows the output of all commands: >>> >>> \starttext >>> \starttabulate [|T|T|] >>> \NC \type{\jobname}

Re: [NTG-context] Getting the filename which is being typeset

2020-12-04 Thread Hans Hagen
On 12/4/2020 8:02 AM, Axel Kielhorn wrote: Am 01.12.2020 um 18:23 schrieb Wolfgang Schuster : The following example shows the output of all commands: \starttext \starttabulate [|T|T|] \NC \type{\jobname} \NC \jobname \NC\NR \NC \type{\jobfilename} \NC \jobfilename

Re: [NTG-context] Getting the filename which is being typeset

2020-12-03 Thread Axel Kielhorn
> Am 01.12.2020 um 18:23 schrieb Wolfgang Schuster > : > > The following example shows the output of all commands: > > \starttext > \starttabulate [|T|T|] > \NC \type{\jobname} \NC \jobname \NC\NR > \NC \type{\jobfilename} \NC \jobfilename \NC\NR > \NC

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Hans Hagen
On 12/1/2020 6:55 PM, Otared Kavian wrote: Hi Wolfgang, Thank you for your explanations: I am wondering whether this kind of information could go into the wiki, and if yes what would be an appropriate title for that page (of course I'll do it). However the two commands \inputfilesuffix

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
Hi Wolfgang, Thank you for your explanations: I am wondering whether this kind of information could go into the wiki, and if yes what would be an appropriate title for that page (of course I'll do it). However the two commands \inputfilesuffix \jobfilesuffix put inside the file « myfile.tex

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Wolfgang Schuster
Otared Kavian schrieb am 01.12.2020 um 18:10: Thanks Hraban, this might be also useful and I'll keep it somewhere on my mind, but for the project I was asking my question \jobname is enough. Best regards: Otared On 1 Dec 2020, at 17:33, Henning Hraban Ramm wrote: Am 01.12.2020 um 16:20

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
Thanks Hraban, this might be also useful and I'll keep it somewhere on my mind, but for the project I was asking my question \jobname is enough. Best regards: Otared > On 1 Dec 2020, at 17:33, Henning Hraban Ramm wrote: > > > >> Am 01.12.2020 um 16:20 schrieb Otared Kavian : >> >> Thanks

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Henning Hraban Ramm
> Am 01.12.2020 um 16:20 schrieb Otared Kavian : > > Thanks Tomás! Indeed \jobname does the job :-) In case you need the current component file in a project environment: \currentcomponent Hraban ___ If your

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
Thanks Tomás! Indeed \jobname does the job :-) Best regards: Otared > On 1 Dec 2020, at 15:25, Tomas Hala wrote: > > Hi Otared, > > try \jobname. > > Best wishes, > > Tomáš > > > Tue, Dec 01, 2020 ve 02:45:18PM +0100 Otared Kavian napsal(a): > # Hi everyone, > # > # I have to typeset a

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Tomas Hala
Hi Otared, try \jobname. Best wishes, Tomáš Tue, Dec 01, 2020 ve 02:45:18PM +0100 Otared Kavian napsal(a): # Hi everyone, # # I have to typeset a few files which get each an input file named in a certain way. For instance, a file named « myfile.tex » in which another file named «

[NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
Hi everyone, I have to typeset a few files which get each an input file named in a certain way. For instance, a file named « myfile.tex » in which another file named « myfile-buffer.tex » is used as an \input file, as in % content of myfile.tex % \starttext This is a test. \input

Re: [NTG-context] Error with spaces in Argument of \startproduct

2020-11-25 Thread Henning Hraban Ramm
> Am 24.11.2020 um 22:38 schrieb Wolfgang Schuster > : > > Jannik Voges schrieb am 24.11.2020 um 22:24: >> Hello, >> as the title suggested, I get an error when using spaces in the argument of >> \startproduct. For example typesetting >> \startproduct{f

Re: [NTG-context] Error with spaces in Argument of \startproduct

2020-11-24 Thread Wolfgang Schuster
Jannik Voges schrieb am 24.11.2020 um 22:24: Hello, as the title suggested, I get an error when using spaces in the argument of \startproduct. For example typesetting \startproduct{foo bar} You can have a filename with a space use \startproduct [foo bar] but you don't even need

[NTG-context] help with filename containing spaces

2020-10-17 Thread Pablo Rodriguez
Dear list, I have this sample: \setupinteraction[state=start] \starttext \def\cB{file.pdf} \def\cC{file with spaces.pdf} %~ \def\PathName{\cldcontext{[[\env{completepath}]]}} \def\PathName{% \cldcontext{string.gsub([[\env{completepath}]], "", "/")}} no

[NTG-context] figure library

2020-10-12 Thread Jörg Hagmann
ctures for ConTeXt Wiki filename reference owner comment http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___

[NTG-context] Lua equivalent of \getvariable{}{}

2020-10-11 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \ctxlua{ context.setvariable("environment", "filename", "abc123") } \ctxlua{ c = context.getvariable("environment", "filename") or "a" } \ctxlua{ d = [[\env{filename}]]

Re: [NTG-context] \definefontfamily not finding fonts

2020-09-10 Thread Hans Hagen
correctly. So, it appears to be an issue with font name to filename mapping. I'll try a clean install on a docker image and check it that works ... or just wait for the newer version, which often fixes such things :-) there have been no fundamental changes, but the names of these liber* fonts change

Re: [NTG-context] \definefontfamily not finding fonts

2020-09-10 Thread Aditya Mahajan
pt and it works correctly. So, it appears to be an issue with font name to filename mapping. I'll try a clean install on a docker image and check it that works ... or just wait for the newer version, which often fixes such things :-) Aditya __

Re: [NTG-context] \definefontfamily not finding fonts

2020-09-10 Thread Wolfgang Schuster
fonts --list --pattern="LibertinusSerif" --all identifier familyname fontname filename subfont instances libertinusserif libertinusserif libertinusserif libertinusserif-regular.otf libert

Re: [NTG-context] \definefontfamily not finding fonts

2020-09-10 Thread Aditya Mahajan
'LibertinusMath' has no files for the > > 'tf' alternative, Latin Modern is used instead. > > > > > > I can find the fonts using mtxrun --script fonts. For example: > > > > $mtxrun --script fonts --list --pattern="LibertinusSerif" --al

Re: [NTG-context] \definefontfamily not finding fonts

2020-09-10 Thread Wolfgang Schuster
familynamefontname filename subfont instances libertinusserif libertinusserif libertinusserif libertinusserif-regular.otf libertinusserifdisplaynormal libertinusserifdisplay

[NTG-context] \definefontfamily not finding fonts

2020-09-09 Thread Aditya Mahajan
has no files for the 'tf' alternative, Latin Modern is used instead. I can find the fonts using mtxrun --script fonts. For example: $mtxrun --script fonts --list --pattern="LibertinusSerif" --all identifier familynamefontname

Re: [NTG-context] Can't output direct glyphs either in MKIV or LMTX

2020-09-07 Thread Taco Hoekwater
Hi, > On 7 Sep 2020, at 22:05, Andres Conrado Montoya > wrote: > >  > Hello list. I'm trying to call a direct glyph from the Phaistos font, but it > seems it doesn't work. The font is loaded, the log file says it so: > > system > 12: filename=/home

[NTG-context] Can't output direct glyphs either in MKIV or LMTX

2020-09-07 Thread Andres Conrado Montoya
Hello list. I'm trying to call a direct glyph from the Phaistos font, but it seems it doesn't work. The font is loaded, the log file says it so: system > 12: filename=/home/vantta/.fonts/Phaistos.otf format=otf foundname=/home/vantta/.fonts/Phaistos.otf fullname=/home/vantta/.fo

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-06 Thread Jan Willem Flamma
hould be able to copy and adapt to your needs. There are lot of things which can be improved in your example. 1. Pass the filename of the component/product to \startcomponent and not some dummy name (or just use *), this allows you to print the filename with \currentcomponent or \currentproduct

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Wolfgang Schuster
the filename of the component/product to \startcomponent and not some dummy name (or just use *), this allows you to print the filename with \currentcomponent or \currentproduct 2. Use \setvariables or \setupdocument to set the document title, revision etc. 3. Use \startsectionblockenvironment to move

Re: [NTG-context] Installing VSCode extension?

2020-07-30 Thread Lutz Haseloff
) font.vbs=$(font.base) command.1.$(file.patterns.context)=cmd /c context $(FileNameExt) && start sumatraPDF $(FileName).pdf -reuse-instance The last line of SciTEGlobal.properties is import myproperties This works ok for me. Greetings Lutz Am 30. Juli 2020 03:57:26 MESZ schrieb

Re: [NTG-context] Lua related change in LuaMetaTeX?

2020-07-29 Thread Marcel Fabian Krüger
; requested is hardcoded or is some other callback invoked which can then > > provide some tokens? > > > > Marcel > > first line on console was already gone (only the filename gets pushed into > the input because tex forces an input I think this is a misunderstanding. I was

Re: [NTG-context] Lua related change in LuaMetaTeX?

2020-07-29 Thread Hans Hagen
was already gone (only the filename gets pushed into the input because tex forces an input anyway, read/write channel zero are for the terminal Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] \documentvariable (used in environment)

2020-07-25 Thread Alan Braslau
Thank you all. No modes, no funniness in the environment file. The test case works (Acroread/properties shows the Title, Author, Subject, and Keywords fields). However, my real case does get the other fields (Author, Subject, and Keywords) but contains in the Title field the filename

Re: [NTG-context] error running wiki example with labels

2020-06-26 Thread Jan-Erik Hägglöf
> xmp > using file '/Users/janneman/context-osx-64/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 18, userpage 18, subpage 18 close source> level 2, order 5, name './labels3.tex' close source> level 1, order 5, name 'cont-y

[NTG-context] error running wiki example with labels

2020-06-24 Thread Jan-Erik Hägglöf
Hello All! In the page https://wiki.contextgarden.net/Labels <https://wiki.contextgarden.net/Labels> I’ve tried with no success to run those examples given at the page. The error complaint as the log shows below return { ["filename"]="./labels3.tex", ["las

[NTG-context] Checking existence of a macro (control sequence) by Lua - problem after updating MkIV

2020-06-18 Thread Lukas/ConTeXt
TeXt/Test/IsMacDef3.mkiv' close source> level 1, order 3, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' system > start used files system > text: IsMacDef3 system > stop used files system > start used files syst

Re: [NTG-context] Filter module for R

2020-06-14 Thread Aditya Mahajan
lts. Would it be possible by a magic trick to deleter the last line of the file ? It is possible to filter lines using `\typefile[range={start, stop}]{filename}`. You can use `range={1,3}` to only include lines 1 upto 3 or `range={1, +2}` to include line 1 followed by 2 lines. What you want is someth

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
suppose you wanted to use the image defined as part of > `\startchapter` as the background image of the _current_ page, then you > could access the value of the \structureuservariable. For example, > > \startchapter[title=whatever][image=filename] > > \structureuservariable{image}

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Aditya Mahajan
ave to worry about it. See https://wiki.contextgarden.net/System_Macros/Key_Value_Assignments#Multi-pass_data for more details. Now, suppose you wanted to use the image defined as part of `\startchapter` as the background image of the _current_ page, then you could access the value of the \struct

Re: [NTG-context] Change of Optima to Optima Nova: how to get Optima Nova working?

2020-05-24 Thread Gerben Wierda
>>>it=file:OptimaNovaLTPro-MediumIta.otf, >>>bf=file:OptimaNovaLTPro-Bold.otf, >>>bi=file:OptimaNovaLTPro-BoldIta.otf, >>> ] >> >> will work. >> >> selectfont > the requested font 'Optima Nova' has no files for the 'tf' >> alternative,

Re: [NTG-context] Change of Optima to Optima Nova: how to get Optima Nova working?

2020-05-24 Thread Gerben Wierda
file:OptimaNovaLTPro-MediumIta.otf, >>bf=file:OptimaNovaLTPro-Bold.otf, >>bi=file:OptimaNovaLTPro-BoldIta.otf, >> ] > > will work. > > selectfont > the requested font 'Optima Nova' has no files for the 'tf' > alternative, Latin

Re: [NTG-context] output file name query

2020-05-23 Thread Henning Hraban Ramm
sy because already reads the first line of the document > for special setting (e.g. the engine) but anything which is set in the > document requires more work because you don't know the new name *before* > LuaTeX or LuaMetaTeX create the PDF. You don’t need to know the

[NTG-context] Columns: rule=on not working?

2020-05-22 Thread context
lose source> level 1, order 6, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' system > start used files system > text: ColsRuleOn~ system > stop used files system > start used files system >1: filename=char-pr

Re: [NTG-context] context --purgeall filename does not delete all temporary files

2020-05-21 Thread Aditya Mahajan
On Thu, 21 May 2020, Hans Hagen wrote: On 5/21/2020 10:43 AM, Aditya Mahajan wrote: On Thu, 21 May 2020, Aditya Mahajan wrote: Hi, `context --purgeall filename` behaves differently from `context --purgeall`. `context --purgeall` deletes all files with the name `*-temp-*`. I would have

Re: [NTG-context] context --purgeall filename does not delete all temporary files

2020-05-21 Thread Hans Hagen
On 5/21/2020 10:43 AM, Aditya Mahajan wrote: On Thu, 21 May 2020, Aditya Mahajan wrote: Hi, `context --purgeall filename` behaves differently from `context --purgeall`. `context --purgeall` deletes all files with the name `*-temp-*`. I would have thought that `context --purgeall filename

Re: [NTG-context] context --purgeall filename does not delete all temporary files

2020-05-21 Thread Aditya Mahajan
On Thu, 21 May 2020, Aditya Mahajan wrote: Hi, `context --purgeall filename` behaves differently from `context --purgeall`. `context --purgeall` deletes all files with the name `*-temp-*`. I would have thought that `context --purgeall filename` will delete all files with the name `\jobname

[NTG-context] context --purgeall filename does not delete all temporary files

2020-05-21 Thread Aditya Mahajan
Hi, `context --purgeall filename` behaves differently from `context --purgeall`. `context --purgeall` deletes all files with the name `*-temp-*`. I would have thought that `context --purgeall filename` will delete all files with the name `\jobname-temp-*` but it does not. Is there a way

Re: [NTG-context] Inkscape command line arguments have changed

2020-05-19 Thread Thangalin
t-type=pdf --export-filename/') Then make sure the shell script is executable: chmod +x /usr/bin/inkscape This produces the expected results: graphics> inclusion > checking conversion of 'genealogy-sm', fullname 'images/genealogy-sm.svg', old format 'svg', new format 'pdf', con

Re: [NTG-context] Inkscape command line arguments have changed

2020-05-19 Thread mf
Il 19/05/20 20:50, Thangalin ha scritto: Minor correction: \startluacode figures.programs.inkscape={ command="inkscape", pdfargument=[[ "%oldname%" --export-dpi=600 --export-type=pdf --export-filename="%newname%" ]], pngargument=[[

Re: [NTG-context] Inkscape command line arguments have changed

2020-05-19 Thread Thangalin
Minor correction: \startluacode figures.programs.inkscape={ command="inkscape", pdfargument=[[ "%oldname%" --export-dpi=600 --export-type=pdf --export-filename="%newname%" ]], pngargument=[[ "%oldname%" --export-dpi=600

[NTG-context] Inkscape command line arguments have changed

2020-05-19 Thread Thangalin
$ inkscape --version Inkscape 1.0 (4035a4fb49, 2020-05-01) Pango version: 1.44.7 With the new release of Inkscape, --export-pdf no longer exists. The new options appear to be: --export=type=pdf --export=pdf-version=1.5 (or 1.4) --export-filename=filename.pdf Aditya has shown a work

Re: [NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Hans Hagen
[title={Sample document}]   \startparagraph     This is a paragraph   \stopparagraph   \startmycommand     This is mycommand   \stopmycommand \stopsection \stoptext ``` If I compile using `context --trackers=structures.tags filename`, I get ``` backend > tags > U+0031:1 =>

[NTG-context] Minimal code for exporting custom tags

2020-05-18 Thread Aditya Mahajan
This is a paragraph \stopparagraph \startmycommand This is mycommand \stopmycommand \stopsection \stoptext ``` If I compile using `context --trackers=structures.tags filename`, I get ``` backend > tags > U+0031:1 => U+0031:1 : 4 document>1 section>1 s

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-11 Thread context
1, order 3, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' system > start used files system > text: EnvHome system > stop used files system > start used files system >1: filename=char-prv.lua filetype=tex form

Re: [NTG-context] Retrieving original value of enviroment variable HOME

2020-05-11 Thread context
s > flushing realpage 1, userpage 1, subpage 1 close source> level 2, order 3, name 'd:/Lukas/ConTeXt/Test/EnvHome/EnvHome.mkiv' close source> level 1, order 3, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv' system > start use

Re: [NTG-context] [ibmplex setup script]

2020-05-03 Thread Wolfgang Schuster
Floris van Manen schrieb am 03.05.2020 um 00:20: At present the ibmplexmonothin font is seen by the mtxrun script mtxrun --script fonts --list --all --pattern=ibmplexmonothin* identifier familynamefontnamefilename subfont instances ibmplexmonothin

[NTG-context] [ibmplex setup script]

2020-05-02 Thread Floris van Manen
At present the ibmplexmonothin font is seen by the mtxrun script mtxrun --script fonts --list --all --pattern=ibmplexmonothin* identifier familynamefontnamefilename subfont instances ibmplexmonothin ibmplexmono ibmplexmonothin /home/vm/.local/share

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread Hans Hagen
not convert svg files into the corresponding `m_k_i_v_*` pdf. It seems that the `--export-filename=` option does the job. Thank in advance. The command line syntax has changed in version 1. See this: http://wiki.inkscape.org/wiki/index.php/Release_notes/1.0#Command_Line So it's --export-filename

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread Hans Hagen
. The command line syntax has changed in version 1. See this: http://wiki.inkscape.org/wiki/index.php/Release_notes/1.0#Command_Line So it's --export-filename in Inkscape 1.00, and --export-pdf in previous versions. If the conversion you need is done by tex/texmf-context/scripts/context/ruby/graphics

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread mf
into the corresponding `m_k_i_v_*` pdf. It seems that the `--export-filename=` option does the job. Thank in advance. The command line syntax has changed in version 1. See this: http://wiki.inkscape.org/wiki/index.php/Release_notes/1.0#Command_Line So it's --export-filename in Inkscape 1.00, and --export-pdf

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread Romain Diss
*` pdf. > The command line syntax has changed in version 1. See this: > http://wiki.inkscape.org/wiki/index.php/Release_notes/1.0#Command_Line > > So it's --export-filename in Inkscape 1.00, and --export-pdf in previous > versions. > If the conversion you need is done by > tex/t

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread Hans Hagen
that the `--export-filename=` option does the job. Thank in advance. The command line syntax has changed in version 1. See this: http://wiki.inkscape.org/wiki/index.php/Release_notes/1.0#Command_Line So it's --export-filename in Inkscape 1.00, and --export-pdf in previous versions. I tried

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread Hans Hagen
that the `--export-filename=` option does the job. Thank in advance. The command line syntax has changed in version 1. See this: http://wiki.inkscape.org/wiki/index.php/Release_notes/1.0#Command_Line So it's --export-filename in Inkscape 1.00, and --export-pdf in previous versions. I tried

Re: [NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread mf
Il 30/04/20 14:09, Romain Diss ha scritto: Hi, The last release candidat of Inkscape (1.0~rc1-4 on my Debian sid) doesn't provide the `--export-pdf=` option anymore. So context can not convert svg files into the corresponding `m_k_i_v_*` pdf. It seems that the `--export-filename=` option does

[NTG-context] Problem including svg files with Inkscape 1.0~rc1-4

2020-04-30 Thread Romain Diss
Hi, The last release candidat of Inkscape (1.0~rc1-4 on my Debian sid) doesn't provide the `--export-pdf=` option anymore. So context can not convert svg files into the corresponding `m_k_i_v_*` pdf. It seems that the `--export-filename=` option does the job. Thank in advance. -- Romain Diss

Re: [NTG-context] image across 2 page spread

2020-04-30 Thread Henning Hraban Ramm
on) across a two-page > spread, such that there is no gap. You need to use \clip and calculate the sections. Thangalin already gave you an example. Here’s a convoluted one that I use: % full double page image % usage: % \startpostponing[pagenumber] % \doublepagefig[reference][left/right/width/he

Re: [NTG-context] image across 2 page spread

2020-04-29 Thread Thangalin
{2}{1}]{% \externalfigure[filename][ width=2\paperwidth, height=.5\paperheight]% }% }% On Wed, Apr 29, 2020 at 5:05 PM jbf wrote: > > Hi list, > > With 99% of work complete on a book, including single page images, I now find > myself confronted with

Re: [NTG-context] contextproject script (was: Typesetting Markdown - Part 8)

2020-04-28 Thread Jan-Erik Hägglöf
p=NAME >create component file > -p NAME, --product=NAME, --prd=NAME >create or set product file > -j NAME, --project=NAME, --prj=NAME >create or set project file > -e NAME, --environme

Re: [NTG-context] contextproject script (was: Typesetting Markdown - Part 8)

2020-04-28 Thread Henning Hraban Ramm
reate component file -p NAME, --product=NAME, --prd=NAME create or set product file -j NAME, --project=NAME, --prj=NAME create or set project file -e NAME, --environment=NAME, --env=NAME create or set environment file

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-26 Thread Benjamin Buchmuller
>> helveticaneuedeskinterfaceheavy >>> /System/Library/Fonts/HelveticaNeueDeskInterface.ttc 10 >>> helveticaneuethinitalic helveticaneue >>> helveticaneuethinitalic /System/Library/Fonts/Helvetica

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Benjamin Buchmuller
> > If the subfont is not listed, ConTeXt/mtxrun couldn’t find it and won’t find > it regardless of your setup. > > Try > mtxrun --script fonts --reload --force > maybe even twice or thrice and check again. > (Unfortunately this is not reliable.) > > I get t

Re: [NTG-context] Basic font question (Optima, but no bold, no italics). Standalone ConTeXt does not work. TeX Live 2019 works

2020-04-24 Thread Henning Hraban Ramm
regardless of your setup. Try mtxrun --script fonts --reload --force maybe even twice or thrice and check again. (Unfortunately this is not reliable.) I get the full list: identifier familyname fontname filename

Re: [NTG-context] Basic font question (Optima, but no bold, no italics)

2020-04-23 Thread kaddour kardio
>>>> mtxrun --script=fonts --list --all --pattern=Optima > >>> > >>> hermione:Export and Metapost gerben$ mtxrun --script fonts --list > --all --pattern=optima > >>> identifier familyname fontname filename >

Re: [NTG-context] Basic font question (Optima, but no bold, no italics)

2020-04-23 Thread Vladimir Lomov
amm wrote: >>>> [...] >>>> What do you get from >>>> mtxrun --script=fonts --list --all --pattern=Optima >>> >>> hermione:Export and Metapost gerben$ mtxrun --script fonts --list --all >>> --pattern=optima >>> identifier

Re: [NTG-context] Basic font question (Optima, but no bold, no italics)

2020-04-23 Thread Gerben Wierda
;>>>> https://wiki.contextgarden.net/Font_Switching >>>>> >>>>>> What do I need to do to get actual bold and italics in my output? >>>>> >>>>> \bi == \bf\it >>>>> >>>>> Or by

Re: [NTG-context] Basic font question

2020-04-23 Thread Henning Hraban Ramm
t? >>>> >>>> \bi == \bf\it >>>> >>>> Or by "actual bold" you mean something different? >>> >>> Yes, in my output everything is regular, there is no bold or italics text, >>> even when I use \bf or \it >>

Re: [NTG-context] Setting up macvim in mac os catalina to work with LMTX

2020-04-23 Thread Nicola
ypically located at $HOME/.vim/vimrc (note that the filename does *not* start with a dot, only the directory's name does). Good ConTeXt typesetting in Vim! Nicola ___ If your question is of interest to other

Re: [NTG-context] Basic font question

2020-04-23 Thread Gerben Wierda
es, in my output everything is regular, there is no bold or italics text, >> even when I use \bf or \it > > What do you get from > mtxrun --script=fonts --list --all --pattern=Optima hermione:Export and Metapost gerben$ mtxrun --script fonts --list --all --pattern=optima identifier

[NTG-context] filtering pages from /PrintPageRange

2020-04-16 Thread Pablo Rodriguez
, but it works. It reads the array from /PrintPageRange, deploying it in context.filterpages. \startluacode function document.printrange_from_file(filename) range_array = pdfe.open(filename).Catalog.ViewerPreferences.PrintPageRange for i=1,#range_array do file_page = range_array[i

[NTG-context] Using command line values in a TeX document; writing a script?

2020-04-13 Thread Gerben Wierda
code. What I would like to do is not have to edit the .tex file when I want to process another .xml file but just pass the name of the xml file on the command line. And I would like to pass on a second filename with some local overrides settings fr my code. All of this needs to be data that I ca

Re: [NTG-context] startMPpage..stopMPpage written to a separate PDF?

2020-04-06 Thread Taco Hoekwater
ept it > would only have one ‘view’ in it and the rest removed. Or you could write out a shell script while processing the run. function moduledata.archimate(filename) local root = xml.load(filename) warnIfVerbose( "Processing %s", filename) local shfile = io.open(tex.jobname

[NTG-context] Solved: Minimum example of problem getting curly braces printed in METAPOST

2020-04-03 Thread Gerben Wierda
t; warn( "STRING.FORMAT TeX-ed \"%s\"", tmpString) > warn( "STRING.FORMAT Replaced \"%s\"", lpeg.replacer(rep):match(tmpString)) > return lpeg.replacer(rep):match(tmpString) > end > > function warnAndConTeXt( ...) > warn( ...)

[NTG-context] Minimum example of problem getting curly braces printed in METAPOST

2020-04-02 Thread Gerben Wierda
rep):match(tmpString))  return lpeg.replacer(rep):match(tmpString)endfunction warnAndConTeXt( ...)  warn( ...)  context( ...)endfunction moduledata.test( filename)  local labelString  context( "The string to typeset is:\\par\\type-{Label} \"a\" [Text]!-")  context( "\\par The att

Re: [NTG-context] Puzzle (for me)

2020-04-01 Thread Gerben Wierda
;> >> Basically, the approach is now something like this: >> >> TeX: calls Lua code with \ctxlua{filename} >> Lua: context.startMPpage >> Lua: read XML. String in XML in filename read by Lua >> Here we know the dimensions in which the string must be typeset and

Re: [NTG-context] Puzzle (for me)

2020-03-31 Thread Henri Menke
; TeX: calls Lua code with \ctxlua{filename} > Lua: context.startMPpage > Lua: read XML. String in XML in filename read by Lua > Here we know the dimensions in which the string must be typeset and wrapped > around because that is also in the XML > Lua: A context() call contains METAPO

[NTG-context] Puzzle (for me)

2020-03-31 Thread Gerben Wierda
I have a string with double quotes that needs to become a text in a box in METAPOST. METAPOST is used to create an image consisting of boxes and connections. Basically, the approach is now something like this: TeX: calls Lua code with \ctxlua{filename} Lua: context.startMPpage Lua: read XML

Re: [NTG-context] Issue with rendering arrows in lmtx

2020-03-17 Thread Jan-Erik Hägglöf
gt;> wrote: >> >> Hi All! >> >> When I invoke this command >> >> \startMPcode >> picture p ; p := lmt_svg [ filename ="pil.svg" ]; >> draw p; >> \stopMPcode >> >> I get weird results, the arrowhead points in wr

Re: [NTG-context] Issue with rendering arrows in lmtx

2020-03-17 Thread Taco Hoekwater
> On 17 Mar 2020, at 15:51, Jan-Erik Hägglöf wrote: > > Hi All! > > When I invoke this command > > \startMPcode > picture p ; p := lmt_svg [ filename ="pil.svg" ]; > draw p; > \stopMPcode > > I get weird results, the arrowhead points in wron

Re: [NTG-context] Issue with rendering arrows in lmtx

2020-03-17 Thread mf
Il 17/03/20 15:51, Jan-Erik Hägglöf ha scritto: Hi All! When I invoke this command \startMPcode picture p ; p := lmt_svg [ filename ="pil.svg" ]; draw p; \stopMPcode I get weird results, the arrowhead points in wrong direction and is very tiny compared to the size it was mea

[NTG-context] Issue with rendering arrows in lmtx

2020-03-17 Thread Jan-Erik Hägglöf
Hi All! When I invoke this command \startMPcode picture p ; p := lmt_svg [ filename ="pil.svg" ]; draw p; \stopMPcode I get weird results, the arrowhead points in wrong direction and is very tiny compared to the size it was meant to have. Here is the .svg code from the saved fil

Re: [NTG-context] Can I share METAPOST vardefs over multiple pages?

2020-03-16 Thread Aditya Mahajan
g setup: \starttext \startMPdefinitions (or inclusions, no difference) % ApplicationComponentLogo is defined here with a vardef \stopMPdefinitions \ctxlua{foo(“filename”)}% produces a series of %context.startMPpage { in

Re: [NTG-context] Can I share METAPOST vardefs over multiple pages?

2020-03-16 Thread Gerben Wierda
tions (or inclusions, no difference) % ApplicationComponentLogo is defined here with a vardef \stopMPdefinitions \ctxlua{foo(“filename”)}% produces a series of %context.startMPpage { instance = "doublefun” }

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

2020-02-20 Thread Hans Hagen
On 2/20/2020 10:29 AM, Jan U. Hasecke wrote: 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 draw lmt_svg [ filename = "sampl

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