[NTG-context] tex4ht

2004-11-16 Thread Steffen Wolfrum
10-08-03:40} \input tex4ht.sty \appendtoks \Preamble{\env{opt-arg},,xhtml}\EndPreamble \to \everystarttext \endinput ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context

[NTG-context] Layout questions

2005-03-14 Thread Marcin Borkowski
it imply that the "smaller" page (determined by the second argument) is centered on the real paper (with size defined by the first arg)? What do the options "offset" and "scale" for \definepapersize mean? Are there any other options other than these two and "heig

Re: [NTG-context] some questions

2006-08-12 Thread Peter Rolf
> > What I am doing wrong here? > \starttable[ o1 | C{red} |] \{C{red} Salve, Peter > \VL red \VL\SR > \stoptable > red too! > > Should'nt \arg{bla} be \type{{bla}}? > \stoptext > > > Wolfgang > &

[NTG-context] setup parameter problem

2021-06-07 Thread Hans van der Meer
thing here. What? \def\Macro{\dosingleargument\doMacro} \def\doMacro[#1]#2{#1X#2} The code below shows that it should be possible. \startsection[title=\Macro{arg} no braces needed]\stopsection \startsection[title={\Macro[arg1]{arg2} enclosed in braces}]\stopsection \stoptext dr. Hans van der

[NTG-context] total pages in external PDF

2015-02-25 Thread Pablo Rodriguez
Dear list, I need to get the number of pages from an external PDF file that I also define with an \env. I think I could get something like this.: \def\Myfilename{\env{filename}} doc = epdf.open(arg[\MyFilename]) total_pages_ = doc:getNumPages() \def\Mypages{total_pages} But

[NTG-context] Can't use MetaFun with mplib anymore

2019-03-13 Thread Henri Menke
be performed (numeric=string). MWE is below, as always. Cheers, Henri --- \directlua{ local mpkpse = kpse.new(arg[0], "mpost") local function finder(name, mode, ftype) if mode == "w" then return name else return mpkpse:find_file(name,ftype) end

Re: [NTG-context] function ‘trace_context’ o ut of scope in mult-cld.lua

2010-10-21 Thread Hans Hagen
On 21-10-2010 2:38, Philipp Gesang wrote: Hi, the following code calls ‘trace_context()’ which is created only later on line 254. This is triggered if the first arg of ‘context()’ is of type ‘table’. ·· function test (str

Re: [NTG-context] layout question

2006-08-28 Thread Hans Hagen
gt;> > > Hm, the setup is inherited, but it has its own counter, its own label, > etc. isn't it? > sorry, wrong command \definefloat[myfigure][myfigures][figure] the second arg is the plural, the third the parent Hans -

Re: [NTG-context] some warnings about fonts

2007-11-17 Thread Arthur Reutenauer
> While luatex was compiling fonts, I noticed some warnings. I suspect > they are harmless, but I'd better report them. > > [...] > > report >> load otf: warning: Bad call to gww_iconv_open, neither arg is UCS4 > (Sjis->UTF-8) Mostly harmless. It's

[NTG-context] tagging a startstop

2015-03-28 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear syndicate, We have \definehighlight[tagged][style=] so that \tagged{arg} tags the argument. Analogously: Is there a general facility to tag startstops? I played around with \dostarttagged etc but could not get it to work (too low-level for me I guess). What would be nice is to be able

Re: [NTG-context] tagging a startstop

2015-03-28 Thread Wolfgang Schuster
> Am 28.03.2015 um 19:18 schrieb Idris Samawi Hamid ادريس سماوي حامد > : > > Dear syndicate, > > We have \definehighlight[tagged][style=] so that > > \tagged{arg} > > tags the argument. Analogously: Is there a general facility to tag > startstops? I played a

[NTG-context] typesetting information from git

2018-02-23 Thread Schmitz Thomas A.
14 Feb 2018 12:49:35 +0100.” Suppose I want to make this more general. What would be the easiest way to either say “the xml file that is being processed” (something like arg[1]) or “the xml file whose name is in the Lua variable ‘foo

Re: [NTG-context] Getting arguments by Lua

2011-06-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .
command line arguments from Lua? the 'environment' table has information about this stuff. In particular, environment.rawarguments matches the table that lua calls 'arg'. \directlua{print (table.serialize(environment.rawarguments))} Best wishes, Taco I think the tables do

Re: [NTG-context] lua args or how to identify the interpreter

2010-07-22 Thread Hans Hagen
On 22-7-2010 11:51, Philipp Gesang wrote: Hi all, what would be an elegant way to make out the current interpreter from inside lua? For now I'm branching things at the top of the script like this: ···8<······ i

Re: [NTG-context] Blank lines and \noindent

2010-08-06 Thread Hans Hagen
third arg can be used for a message or so, \ReadFile takes only one argument) The readfile command also backtracks to . and .. as one can have a project structure Hans - Hans Hagen

[NTG-context] A feq questions about eating spaces in macros

2006-01-22 Thread Radhelorn
lines[before=,after=] \def\startcommand{\dosingleargument\dostartcommand} \def\dostartcommand[#1]% {\bgroup\defineshortcut[style=bold]#1\startlines\startsidebar} \def\stopcommand{\stopsidebar\stoplines\egroup} \starttext \startcommand \input knuth % \stopcommand some text \startcommand[arg] \

Re: [NTG-context] section headnumber at texexec

2006-08-10 Thread Hans Hagen
\doifenvelse{sectionnumber} {\setupheadnumber[section][\numexpr\env{sectionnumber}-1\relax]} {} \starttext \section{test} \stoptext === end of d === texexec --arg=sectionnumber=4 d if needed you can do in an environment file \startsetups check-section \doifenvelse{sectionnumber}

Re: [NTG-context] MKIV and XML documentation

2007-12-18 Thread Wolfgang Schuster
::content.xml}{} \stoptext \processXMLfilegrouped did not work in combination with xmlregistersetup > Why do I get nothing but a tuo file when processing like so: > texmfstart \ > texexec --lua --purge --arg="odt=Versuch.odt" --result=Versuch.odt.pdf \ > COOnTeXML.tex

Re: [NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Otared Kavian
ysis) for some reason. > > Anyone knows why ? > > \enableregime[il1] > \starttext > \startluacode > userdata = userdata or {} > math.randomseed( os.time() ) > function userdata.random(...) > context(arg[math.random(1, #arg)]) > e

Re: [NTG-context] total pages in external PDF

2015-02-25 Thread Hans Hagen
On 2/25/2015 6:41 PM, Pablo Rodriguez wrote: Dear list, I need to get the number of pages from an external PDF file that I also define with an \env. I think I could get something like this.: \def\Myfilename{\env{filename}} doc = epdf.open(arg[\MyFilename]) total_pages_

Re: [NTG-context] on imposition and local or external files

2008-11-07 Thread Taco Hoekwater
al http = require("socket.http") local content, responsecode, extra = http.request(arg[1]) io.write (content) but in real life, you have to deal with partial content, errors codes, url escaping, etc. etc. Best wishes, Taco

Re: [NTG-context] Getting arguments by Lua

2011-06-09 Thread Cedric Mauclair
t;> context.exe Source.mkiv --result=Result.pdf --mode=Mode >> >> is it possible to access the command line arguments from Lua? > > the 'environment' table has information about this stuff. > > In particular, environment.rawarguments matches the table > that lua

Re: [NTG-context] float names and lists

2011-11-25 Thread Idris Samawi Hamid ادريس سماوي حامد
pointed out. Ah, u caught that ;-) OTOH it was only in my list post, once I added the plural arg here all works. Hans is adding criterium=component to the next beta :-) so in a way it's all moot, but it's been a very good exercise nonetheless. Best wishes Idris -- Professor Idris Sa

Re: [NTG-context] section conversion gets lost in MKIV

2010-08-31 Thread Hans Hagen
onversions starting with the one for 'part' and the second arg is the default so [numbers,characters,greek][numbers] will number parts 1..n, chapters a..z and sections alpha..omega and all

Re: [NTG-context] label, caption and eps in figures?

2009-06-12 Thread Hans Hagen
Pau wrote: Hello, thanks for the hint. The legend worked very well. Nevertheless, I still have not understood what the equivalent in ConTeXt of LaTeX \ref{} <---> \label{} is label is always an optional arg refs go like: \in{figure}[label] or \at{page}

Re: [NTG-context] alpha release

2009-07-16 Thread Wolfgang Schuster
some new playground (unfinished of course) ... (the true arg is just for pretty printing and can be omitted) Nice feature to shorten code when some data comes from a lua table but it did not work when used in the lua environment, the code for the table appears only on the terminal. \starttext some

ntg-context@ntg.nl

2006-07-14 Thread Hans Hagen
rlist? > That would be problematic because I am using your getparameters-thing > extensively. > Or do you mean something else that will stop the parameter gathering > at the & ? > no, it's just that your definition defines *x and that you use * ; it' shard to s

Re: [NTG-context] Layout questions

2005-03-14 Thread Hans Hagen
? If I use both, does it imply that the "smaller" page (determined by the second argument) is centered on the real paper (with size defined by the first arg)? no, \setuppapersize[A3] will map in onto width=max(width(A4),width(A3)) etc What do the options "offset" and "sc

Re: [NTG-context] Figured bass symbols in a text.

2012-08-10 Thread Sietse Brouwer
ooks nice. Small bug: It's called lomihi, but the arguments are placed middle/high/low. For documentation/clarification, is the following correct? distance = extra kerning, distance between lomihi and preceding character. up = how much the {hi} arg is raised down = how much the {low} arg is lo

Re: [NTG-context] How to use module simpleslides' SideToc

2013-01-09 Thread Sietse Brouwer
\par \color[red]{--- arg (entry): #1}\par \color[red]{--- mark: \MyMark} }} {\framed[frame=off, align=normal]{% --- other entry \par \color[blue]{--- arg (entry): #1}\par \color[blue]{--- mark: \MyMark} }} \blank[medium] } % Show the margin

[NTG-context] Re: expanded doif's

2024-06-17 Thread Pablo Rodriguez via ntg-context
etup{#1}{*}{xml:*} \stopxmlsetups \xmlregistersetup{xml:hvdm} \startxmlsetups xml:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:macro \xmlatt{#1}{name}\\ \xmlatt{#1}{arg}\\ \xmldoifelseatt{#1} {name}{yes}{no}\\ \xmldoifelseatt{#1} {names}{yes}{no}\\

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

2018-02-06 Thread Henning Hraban Ramm
Am 2018-02-06 um 17:09 schrieb Procházka Lukáš Ing. : > I'm usually implementing complicated solutions via Lua, with functions with > obligatory arg(s) first followed by one optional argument of table type: Thank you for your effort! I actually already wrote parts of my invoicing

Re: [NTG-context] How to make Figure captions justify if long?

2012-02-08 Thread Wagner Macedo
Thanks by the answer, but I had already thought in this. I would like something more definitive. By the way, at http://wiki.contextgarden.net/Reference/en/setupcaptions I can see a command argument. I was wondering if a custom command can do the trick, but I don't know how I should use thi

Re: [NTG-context] alpha release

2009-07-15 Thread Hans Hagen
Peter Rolf wrote: Hans Hagen schrieb: i'll make a new alpha later today i'll take my chance and hijack this thread then... :) there is a c&p error in lpdf-grp.lua. since you're looking into lua code ... there is some new playground (unfinished of course) ... (the t

Re: [NTG-context] A feq questions about eating spaces in macros

2006-01-23 Thread Hans Hagen
text \startcommand[arg] \input knuth \stopcommand \stoptext \ignorespaces ... \removeunwantedspaces Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt

Re: [NTG-context] Manual (English) Update soon?

2007-01-02 Thread Henning Hraban Ramm
Am 2006-12-30 um 10:28 schrieb Douglas Philips: > Arg. My bane. Fonts. The one thing that pulls me ever so slightly to > using Pages... > Not because I want a garish mix of goofball junk fonts, but because I > love Palatino for newletters > and Papyrus for cards and short notes...

Re: [NTG-context] \placefigure bug

2004-12-13 Thread Taco Hoekwater
ga] > > > > \placefigure [figa] {The caption} {\externalfigure [02.jpg]} > > \stoptext > > %%% > > > > It only works correctly if both bracketed arguments to \placefigure > > are supplied (I tested versions 2004.11.06 and 2004.12.06, but

Re: [NTG-context] ctxlua percentage format escape

2021-05-29 Thread Hans Hagen
ssion ... \relax doesn't work kind of old (hacky experiment) that one ... i probably need to adapt it to lmtx anyway \luaexpr and \mathexpr are probably better for this kind of stuff (no need for the % t

Re: [NTG-context] Optimal way to defining of macros in Luacode in ConTeXt

2011-07-12 Thread Hans Hagen
On 12-7-2011 5:30, Jaroslav Hajtmar wrote: But someone advised me that I use the better syntax: context('\\def\\Mymacro\{arg of mymacro\}') or context("\\def\\test#1{#1}") etc... whatever you like best context.setvalue{"Mymacro",somevalue) context([[\def\MyMacr

Re: [NTG-context] float names and lists

2011-11-25 Thread Hans Hagen
should be \placelistoftablecws Then everything works as Wolfgang pointed out. Ah, u caught that ;-) OTOH it was only in my list post, once I added the plural arg here all works. Hans is adding criterium=component to the next beta :-) so in a way it's all moot, but it's been a very goo

Re: [NTG-context] alpha release

2009-07-16 Thread Hans Hagen
e ... there is some new playground (unfinished of course) ... (the true arg is just for pretty printing and can be omitted) Nice feature to shorten code when some data comes from a lua table but it did not work when used in the lua environment, the code for the table appears only on the term

Re: [NTG-context] Re: the url color problem

2004-11-19 Thread Hans Hagen
second arg is url, third file, fourth text - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma

Re: [NTG-context] New ConTeXt cz interface installation problem

2005-01-11 Thread Hans Hagen
o use them)? Well, I will see at the night. :-) in that case, just download the minimal context distribution for linux, you can rsync that one of needed (some 25 meg zip initially) in there, there is "setuptex", run that one (with the tex root as arg) and make the formats texexec

Re: [NTG-context] total pages in external PDF

2015-02-25 Thread Aditya Mahajan
On Wed, 25 Feb 2015, Pablo Rodriguez wrote: Dear list, I need to get the number of pages from an external PDF file that I also define with an \env. I think I could get something like this.: \def\Myfilename{\env{filename}} doc = epdf.open(arg[\MyFilename]) total_pages_

Re: [NTG-context] typesetting information from git

2018-02-23 Thread Hans Hagen
something like "git revision b085c92a of Wed, 14 Feb 2018 12:49:35 +0100.” Suppose I want to make this more general. What would be the easiest way to either say “the xml file that is being processed” (something like arg[1]) or “the xml file whose name is in the Lua variable ‘foo?’” maybe you

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread luigi scarso
r: > > >> LUATEXFUNCTIONALITY > >> "mp.print(LUATEXFUNCTIONALITY)" > ! Equation cannot be performed (numeric=string). > > MWE is below, as always. > > Cheers, Henri > > --- > > \directlua{ > local mpkpse = kpse.new(arg[0], "m

Re: [NTG-context] layout question

2006-08-29 Thread richard rascher-friesenhausen
Hans Hagen schrieb: > > sorry, wrong command > > \definefloat[myfigure][myfigures][figure] > > the second arg is the plural, the third the parent > > Hans > > Hello, i added the cloning to my figure definitions. The caption is inherited from f

Re: [NTG-context] MKIV and XML documentation

2007-12-18 Thread Johannes Graumann
> Thanks for the hint, but >> >> \startxmlsetups xml:mysetups >> \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph} >> \stopxmlsetups >> >> \xmlregistersetup{xml:mysetups} >> >> \startxmlsetups xml:paragraph >> \xmlflush{#1}\endgraf >> \sto

Re: [NTG-context] setup parameter problem

2021-06-07 Thread Hans Hagen
match its definition. Obviously I am missing something here. What? \def\Macro{\dosingleargument\doMacro} \def\doMacro[#1]#2{#1X#2} The code below shows that it should be possible. \startsection[title=\Macro{arg} no braces needed]\stopsection \startsection[title={\Macro[arg1]{arg2} enclosed in b

Re: [NTG-context] typesetting information from git

2018-02-23 Thread Hans Hagen
something like "git revision b085c92a of Wed, 14 Feb 2018 12:49:35 +0100.” Suppose I want to make this more general. What would be the easiest way to either say “the xml file that is being processed” (something like arg[1]) or “the xml file whose name is in the Lua variable ‘foo?’” I'm

Re: [NTG-context] questions regarding `\date`

2010-08-28 Thread Wolfgang Schuster
\??ef#1} {\useexternalfigure[\s!dummy][#1][#2][#3]% \getvalue{\??ef\??ef\s!dummy}[]} % [] is dummy arg 5 {\doifassignmentelse{#2} {\getvalue{\??ef\??ef#1}[#2]}% {\getvalue{\??ef\??ef#1}[#3]}}}% \globallet\currentresourcecomment\empty \egr

[NTG-context] epstopdf oddity?

2009-03-13 Thread Marko Schütz
onterminal(app, btex @ $:: \alpha$ etex); def_terminal(fun, btex \texttt{exp}$_1$ $:: \beta$ etex); def_terminal(exp, btex \texttt{exp}$_2$ $:: \gamma$ etex); def_terminal(two, btex \texttt{2} etex); def_terminal(times, btex \texttt{(*)} etex); def_terminal(varx, btex \texttt{arg} $:: \beta$ etex); beginfi

Re: [NTG-context] Mark IV and pre-processing input file processing.

2007-11-06 Thread Johannes Graumann
mething like >> TeXExec | option 'filename' is set to 'someotherfile.tex', so how to >> access this during processing using lua? > > texmfstart texexec --lua myfile.tex --arg="name=someotherfile.zip" > > mak emyfile.tex your main tex file (use

Re: [NTG-context] MKIV and XML documentation

2007-12-18 Thread Johannes Graumann
{#1}\endgraf \stopxmlsetups \starttext \processXMLfilegrouped{zip::\env{odt}::content.xml} \stoptext Why do I get nothing but a tuo file when processing like so: texmfstart \ texexec --lua --purge --arg="odt=Versuch.odt" --result=Versuch.odt.pdf \ COOnTeXML.tex where the code a

Re: [NTG-context] section conversion gets lost in MKIV

2010-08-31 Thread Cedric Mauclair
and I can't quite figure out how to use >> them. > > it's just a list of conversions starting with the one for 'part' and the > second arg is the default so > > [numbers,characters,greek][numbers] > > will number parts 1..n, chapters a..z and sections a

Re: [NTG-context] A few questions about eating spaces in macros

2006-01-24 Thread Radhelorn
def\dostartcommand[#1]% >> {\bgroup\defineshortcut[style=bold]#1\startlines\startsidebar} >> >> \def\stopcommand{\stopsidebar\stoplines\egroup} >> >> \starttext >> >> \startcommand >> >> \input knuth >> % >> \stopcommand >>

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread Hans Hagen
. better use \startMPpage \stopMPpage with context and then include the pdf Hans MWE is below, as always. Cheers, Henri --- \directlua{ local mpkpse = kpse.new(arg[0], "mpost") local function finder(name, mode, ftype) if mode == "w" then return name e

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread Hans Hagen
  mtxrun --script plain test.tex This is the error:     >> LUATEXFUNCTIONALITY     >> "mp.print(LUATEXFUNCTIONALITY)"     ! Equation cannot be performed (numeric=string). MWE is below, as always. Cheers, Henri --- \directlua{ local m

Re: [NTG-context] Mark IV and pre-processing input file processing.

2007-11-06 Thread Hans Hagen
Is that possible? "texmfstart texexec --verbose" produces something like >>> TeXExec | option 'filename' is set to 'someotherfile.tex', so how to >>> access this during processing using lua? >> texmfstart texexec --lua myfile.tex --arg="name=s

Re: [NTG-context] Error: attempt to index a nil value

2021-10-13 Thread Hans Hagen via ntg-context
irectlua {for k, v in pairs(_G) do print(k.v) end} This will show you what is in the global namespace, maybe 'arg'? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 |

[NTG-context] How to use "fontsampler example" with Persian font

2016-10-07 Thread Mingranina Gingranina
mono8-regular.otf} at 6pt \parindent 0pt \def \samplestring {Sphinx of black quartz, judge my vow. 1234567890 äÄöÖüÜ ß !"§\$\%\&()=?} \directlua{ dofile("fontsampler.lua") fontsampler(arg[2]) } \bye =

[NTG-context] Some questions about TeX Gyre support in minimals

2008-10-22 Thread Oleg Kolosov
e cyrillic text also): \starttypescript[mygyre] % change font last arg according to definitions in type-otf.tex % pagella, termes, bonum, schola \definetypeface [mygyre] [rm] [serif] [pagella] % heros, adventor \definetypeface [mygyre] [ss] [sans] [adventor] \definetypeface [mygyre]

Re: [NTG-context] Using virtual fonts defined with lua-code

2011-02-09 Thread Ulrike Fischer
repare (with a different syntax) which is perhaps the source of the error I'm getting now: J:/MiKTeX2.9/tex/luatex/luaotfload/otfl-luat-ovr.lua:19: bad arg ument #2 to 'format' (string expected, got nil). -- Ulrike Fischer _

[NTG-context] beta

2011-07-13 Thread Hans Hagen
"2229} = \utfchar{"2229}\utfchar{"FE00} = \vsone{\utfchar{"2229}} } - Defining commands at the lua end now also handles arg only cases and has better tracing. - Some other other things, like \startlayout[page] ... \stoplayout and

Re: [NTG-context] extentable arrows

2006-06-29 Thread Hans Hagen
} which accepts \xrightarrow{x}{y} \xrightarrow{x} \xrightarrow{}{y} \xrightarrow[x]{y} etc, actyally, we should then also accept \xrightarrow[x][y] but more interesting is to use the optional arg for tuning purposes \if0#1\else\mkern#1mu\fi test, does a \mkern0mu hurt? > > Will make copy pas

Re: [NTG-context] Manual (English) Update soon?

2006-12-30 Thread Douglas Philips
next up on my Sunday afternoon reading! > See http://wiki.contextgarden.net/My_Way Thanks! > Most other MyWay's deal with fonts. Arg. My bane. Fonts. The one thing that pulls me ever so slightly to using Pages... Not because I want a garish mix of goofball junk fonts, but because I l

[NTG-context] Re: Tracker for hyphens at the end of lines

2023-08-09 Thread Hans Hagen via ntg-context
-- iterate oiver for k,v in ipairs(results) do io.write(v..'\n') end -- closes the open file io.close(output_file) end -- Run main(arg[1], arg[2]) Ok, a little lua lesson, if you don't mind. xxx.tex \enabletrackers[hyphenation.applied] \starttex

Re: [NTG-context] Error: attempt to index a nil value

2021-10-13 Thread Hans Åberg via ntg-context
defined there (as it worked for you in the past). It does not contain it; it a copy in the same directory that has never changed. > Maybe 'arguments' lives in some namespace? > > \directlua {for k, v in pairs(_G) do print(k.v) end} > > This will show you what is in the glo

Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-22 Thread Wolfgang Schuster
gt; Here is the test file which I've used (some cyrillic text also): > ---- > \starttypescript[mygyre] > % change font last arg according to definitions in type-otf.tex > % pagella, termes, bonum, schola > \definetypeface [mygyre] [rm] [serif] [pagella] > % heros, adventor > \def

[NTG-context] References to annotations

2011-10-05 Thread Michael Green
at's nifty, but unexpected. Thank you. Michael Example - \usemodule[annotation] \defineannotation[Arg][alternative=command,number=yes,command=\ArgCommand,text=Argument] \define[2]\ArgCommand{ \startitemize[n] \placeannotationco

Re: [NTG-context] Disappearing characters with nolig-german-wordlist

2020-10-09 Thread Denis Maier
Arg, it's getting uglier... I've been playing around with the replacement patterns. ``` \replaceword[replace][auff][au{ff}] \replaceword[replace][Aufl][Au{fl}] \replaceword[replace][aufl][au{fl}] \setreplacements[replace] \starttext auffasste auffasse Auflage aufliegen

Re: [NTG-context] section conversion gets lost in MKIV

2010-08-31 Thread Hans Hagen
of scarce and I can't quite figure out how to use them. it's just a list of conversions starting with the one for 'part' and the second arg is the default so [numbers,characters,greek][numbers] will number parts 1..n, chapters a..z and sections alpha..omega and all below tha

Re: [NTG-context] label, caption and eps in figures?

2009-06-13 Thread Pau
l have not understood what the equivalent in >> ConTeXt of LaTeX \ref{} <---> \label{} is > > label is always an optional arg > > refs go like: \in{figure}[label] or \at{page}[label] > > >> >>

Re: [NTG-context] Mark IV and pre-processing input file processing.

2007-11-06 Thread Hans Hagen
e.tex" to extract the filename to be texed > (someotherfile.zip) and rewrite it on the fly to a zip-archive content > along the lines of > \input zip::someotherfile.zip::somezipcontent.tex > > Is that possible? "texmfst

Re: [NTG-context] s-pre-19: page numbers?

2005-06-20 Thread h h extern
n the following case we have one arg too much (some time ago i cleaned up part of the list macros and it seems that this indirect call was not done). (core-int.tex:) \def\dodomenulistelement#1#2#3#4#5#6#7% {\setbox0=\hbox {\let\gotolocation\gobbleoneargument % hack to catch

[NTG-context] font fallbacks

2022-07-30 Thread Henning Hraban Ramm via ntg-context
RIGHT-POINTING ANGLE BRACKET ORNAMENT stop missing characters \stopbuffer \typebuffer[example] \startlines \getbuffer[example] {\ss\getbuffer[example]} \stoplines \tex{abra}\arg{...} \type{kadabra} \type{~~~} \stoptext ""

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread Henri Menke
would really appreciate if you could apply Luigi's fix, so we can continue do enjoy MetaFun, even outside ConTeXt. Cheers, Henri > > \startMPpage > \stopMPpage > > with context and then include the pdf > > Hans > >> MWE is below, as always. >> >> C

Re: [NTG-context] Re;Help TABLE

2010-12-10 Thread Philipp Gesang
but when I add: > > \placetable[here][tab:five]{Descriptive Statistics for Salaried Men \& > Women} > { > > > in order to get reference, caption I lose the split and so the tables just > runs OFF the end of the page Placetable takes an optional arg “split”: ···8<

Re: [NTG-context] beta

2011-07-14 Thread Thomas A. Schmitz
fchar{"2229} = \utfchar{"2229}\utfchar{"FE00} = \vsone{\utfchar{"2229}} } - Defining commands at the lua end now also handles arg only cases and has better tracing. - Some other other things, like \startlayout[page] ... \stoplayout and whatever I forgot. Hans Hi Hans, my xm

Re: [NTG-context] Problems with uniqueMPgraphic

2004-12-17 Thread Hans Hagen
?} \stopitemize \stoptext in your case, in order to make the graphic unique, you need to pass the second arg in order to make them unique (uniqueness is determined by dimensions and a few more things; another option would be to use the backgroundcolor of inframed which is accessible by \OverlayColor and also

Re: [NTG-context] Credit in DTK

2022-01-23 Thread Henning Hraban Ramm via ntg-context
Salut Jean-Pierre, ich werde nicht versuchen, dir ebenso polyglott zu antworten. (Mein Latein ist arg eingestaubt, wegen Altgriechisch wäre ich damals beinahe sitzen geblieben, mein Russisch, Italienisch und Französisch reicht zum Einkaufen, von Schwedisch ist nicht mehr viel übrig, an

Re: [NTG-context] xml in lua advice ?

2018-09-19 Thread mf
My 2 cents: local xmlflush = lxml.flush local function text_or_xml(...) for i,v in ipairs(arg) do if "table" == type(v) then xmlflush(v) else context(v) end end end function xml.functions.heading(t) text_or_xml( "\\section{" , t , "}"

Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Aditya Mahajan
script definitions are not complete? Here is the test file which I've used (some cyrillic text also): \starttypescript[mygyre] % change font last arg according to definitions in type-otf.tex % pagella, termes, bonum, schola \definetypeface [mygyre] [rm] [ser

Re: [NTG-context] \box0 to Lua

2012-06-18 Thread Philipp Gesang
won’t work before \starttext newnode.lang = tex.language --- second arg to node.hpack is width local hbox= node.hpack(newnode, 2*newnode.width) node.write(hbox) \stopluacode bar \stoptext ···8<··· The first argument is

Re: [NTG-context] font fallbacks

2022-08-01 Thread Henning Hraban Ramm via ntg-context
e] \startlines \getbuffer[example] {\ss\getbuffer[example]} \stoplines \tex{abra}\arg{...} \type{kadabra} \type{~~~} \stoptext """ What’s wrong? Hraban ___ If your question is of interest to others as wel

Re: [NTG-context] Optimal way to defining of macros in Luacode in ConTeXt

2011-07-14 Thread Jaroslav Hajtmar
#2}{#1}% if 2 arguments then do #1 macro for first #2 lines }% {\doifsomethingelse{#1}{% 1 arg. \doloopfromto{-1}{-1}{#1}% }{% if without arguments then do \lineaction macro for all lines \doloopfromto{-1}{-1}{\lineaction}% }% }% }% }% Dne 13.7.2011

Re: [NTG-context] Error: attempt to index a nil value

2021-10-13 Thread Hans Hagen via ntg-context
t; it a copy in the same directory that has never changed. hm, but i have no clue what this "mtx:..." does Maybe 'arguments' lives in some namespace? \directlua {for k, v in pairs(_G) do print(k,v) end} This will show you what is in the global namespace, maybe 'arg&#x

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-07 Thread Mohammad Hossein Bateni
t luaotfload.sty > \overfullrule 0pt > \font\mono = {file:lmmono8-regular.otf} at 6pt > \parindent 0pt > > \def \samplestring {Sphinx of black quartz, judge my vow. 1234567890 > äÄöÖüÜ ß !"§\$\%\&()=?} > > \directlua{ > dofile("fontsampler.l

Re: [NTG-context] Problem with local installation - MKIV- register

2013-04-01 Thread Philipp Gesang
e (even the source ...) but in mkiv \defineregister is an ordinary command handler so no fancy plurals anymore. Now the second arg expects an assignment: \defineregister[Erf][style=slanted,pagestyle=bold] Regards Philipp > \starttext > \chapter{F53667} > Hello world! > \Erf{Bla} Foo

Re: [NTG-context] Umathquad again - lots of mktexlsr errors

2011-06-27 Thread luigi scarso
## ADD THIS, otherwise a loop continue fi # By saving the argument in a file, we can later get it back while # supporting spaces in the name. This still doesn't support # newlines in the directory names, but nobody ever complains about # that, and it seems much

Re: [NTG-context] Mark IV and pre-processing input file processing.

2007-11-11 Thread Wolfgang Schuster
t;>> content along the lines of > >>> \input zip::someotherfile.zip::somezipcontent.tex > >>> > >>> Is that possible? "texmfstart texexec --verbose" produces something like > >>> TeXExec | option 'filename' is set to 'someoth

[NTG-context] Re: Emacs

2003-07-27 Thread Guy Worthington
e-template "XML-tag" '("<" r ">"))) (turn-on-filladapt-mode) (ispell-minor-mode 1) (abbrev-mode 1)) (add-hook 'text-mode-hook 'my-text-mode-hook) ; ;; Klaus Berndl ;; we want to complete and expand as much as poss

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-07 Thread Mohammad Hossein Bateni
; Mingranina >> >> >> fontsampler.tex >> >> = >> \input luaotfload.sty >&g

Re: [NTG-context] Problem with local installation - MKIV- register

2013-04-02 Thread Wolfgang
] \defineregister[Erf] It doesn’t appear to be documented anywhere (even the source ...) but in mkiv \defineregister is an ordinary command handler so no fancy plurals anymore. Now the second arg expects an assignment: \defineregister[Erf][style=slanted,pagestyle=bold] Regards Philipp

Re: [NTG-context] [beta] grid & head

2011-07-14 Thread Philipp Gesang
erent roundtrip treatment > now and hopefully Thomas S as well as Hans vd M files still work ok. > > - Unicode math variants (supported by xits) are supported: > > \mathematics { > \utfchar{"2229} = > \utfchar{"2229}\utfchar{"FE00} = > \vsone{

Re: [NTG-context] outputting components in their own PDFs

2021-03-01 Thread denis.maier
local base = assert(arg[1], "Keine Datei angegeben") local pdf = base .. ".pdf" local tuc = base .. ".tuc" -- import .tuc-file /extension lua local utilitydata = dofile(tuc) local breakpoints = {} local last_page = utilitydata.structures.counters.collecte

Re: [NTG-context] font fallbacks

2022-08-01 Thread Denis Maier via ntg-context
➊ DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE > 9 U+0FFFD � REPLACEMENT CHARACTER > stop missing characters > start missing characters: cambriai.ttf > 266 U+0276C ❬ MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT > 266 U+0276D ❭ MEDIUM RIGHT-POINTING ANGLE BRACKET ORN

Re: [NTG-context] Font question

2008-03-05 Thread Taco Hoekwater
... 12pt default) #2 family (rm ss tt mm hw cg) #3 font definitions (tf = ..., etc.) > 4. What are the relations between \definefontsynonym, \definefont and > \definebodyfont? things defined with \definefontsynonym can be used in the right hand side of assignments in arg #3 of \definebodyfo

Re: [NTG-context] tooltips and glossary

2010-05-05 Thread Philipp Gesang
back here. (Just make it non-empty.) % #2: the gloss key \unexpanded\def\usegloss{\dosingleempty\dousegloss} % This is meant to create the glossary after the text: % The gloss key is typeset in bold face and will reference the point in the % main text where \usegloss was called with a nonempty first

[NTG-context] Re: Tracker for hyphens at the end of lines

2023-08-09 Thread denis.maier
ens a file in write mode output_file = io.open("check_hyphens.log", "w") -- sets the default output file as output_file io.output(output_file) -- iterate oiver for k,v in ipairs(results) do io.write(v..'\n') end -- closes the open f

<    1   2   3   >