Search results

Jump to navigation Jump to search

Page title matches

  • a large extent implemented in ''Lua'', as opposed to the legacy MkII As of now, documentation on the Lua guts of Context is somewhat
    5 KB (658 words) - 19:23, 8 June 2020
  • ...language at your fingertips. All <code>\xml...</code> commands have their Lua counterparts. Unfortunately, this is not yet fully documented, so this wiki ...e> commands allow you to work with the content of your xml elements within Lua; <code>lxml...</code> commands pass the content to ConTeXt and typeset it.
    7 KB (1,105 words) - 08:27, 2 July 2022
  • <h1 class="command">\Lua</h1> The command <tt>\Lua</tt> typesets Lua.
    718 bytes (108 words) - 18:58, 19 September 2020
  • 1 KB (174 words) - 16:59, 8 June 2020
  • ...es:letter|Wolfgang’s letter module]] for my invoices and came up with this Lua code:
    4 KB (539 words) - 16:56, 8 June 2020
  • =Normal Lua preloading= [[Lua]] libraries in addition to the format itself.
    21 KB (2,731 words) - 19:22, 8 June 2020
  • The module <tt>[[source:l-io.lua|l-io.lua]]</tt> provides a few functions that extend the plain Lua io library with respect to file handling in general,
    6 KB (965 words) - 16:57, 8 June 2020

Page text matches

  • <h1 class="command">\Lua</h1> The command <tt>\Lua</tt> typesets Lua.
    718 bytes (108 words) - 18:58, 19 September 2020
  • ...an extended version of [[PdfTeX - Old Content]] using [http://www.lua.org Lua], as an embedded scripting language. The LuaTeX project's main objective is * other [[:Category:Lua|Lua topics]]
    1 KB (161 words) - 18:38, 8 June 2020
  • == Integration with LUA == ...opment of pdfluaTeX going on behind the scenes. Integration of pdfTeX with lua should give more flexibility when writing TeX macros. See:
    1 KB (183 words) - 19:24, 8 June 2020
  • ...ondefinition ... \stopctxfunctiondefinition</tt> defines a macro that is a lua function without arguments. ...s defines a TeX macro without arguments that when expanded runs a block of lua code instead of executing TeX commands.
    1 KB (167 words) - 16:42, 27 August 2020
  • <td>''valid argument(s) for Lua's `context()` function''</td> Pass an argument to Lua's {{code|context(...)}} command. The text is
    1 KB (138 words) - 17:26, 12 November 2019
  • <td>''lua code''</td> ...it. Advantage: you can pass the contents of macro parameters like `#1` to Lua. Disadvantage: everything after a percent sign is ignored, and once the com
    1 KB (150 words) - 19:43, 8 June 2020
  • == Common Lua Errors ==
    737 bytes (97 words) - 14:01, 8 June 2020
  • The environment <tt>\startctxfunction ... \stopctxfunction</tt> defines a lua function from within TeX code. This defines a lua function without arguments that can be called from TeX using the {{cmd|ctxf
    1 KB (173 words) - 14:57, 27 August 2020
  • ...Document) is the environment which lets you interact with TeX from inside Lua code. For more informations on this see the manual cld-mkiv.pdf, which is i Now if one needs to pass arguments from Lua to a macro command defined in ConTeXt, one has several possibilities.
    3 KB (482 words) - 15:31, 14 December 2020
  • <td>''a valid way to end `context.` in Lua''</td> % Draw a black rule via Lua, passing the [...=...] as a Lua table
    1 KB (146 words) - 17:26, 12 November 2019
  • === Example 2: Using Lua === We can also write tests using Lua. (Example by WS, 3/2011.)
    2 KB (227 words) - 23:52, 8 September 2023
  • Run/compile a ConTexT Lua document. Defined as follows: * [[CLD|ConTeXt Lua document]]
    983 bytes (106 words) - 17:26, 12 November 2019
  • a large extent implemented in ''Lua'', as opposed to the legacy MkII As of now, documentation on the Lua guts of Context is somewhat
    5 KB (658 words) - 19:23, 8 June 2020
  • ...tro and how to test simple lua scripts (e.g. using `mtxrun --script mytest.lua`)
    1 KB (188 words) - 13:28, 24 September 2021
  • ...ishing the Lua block. To let TeX do something from within Lua there is a [[Lua Steps]] mechanism described in [http://distribution.contextgarden.net/curre All these commands can be used on Lua side with the usual syntax <tt>context.<command>(<params>)</tt>
    4 KB (516 words) - 13:33, 23 September 2021
  • We draw Pascal's triangle using MetaFun and Lua. It can be done by the help of Hans. First, we define a function to calculate the combination with Lua.
    2 KB (367 words) - 08:34, 21 September 2020
  • * using a Lua file as database ....cld main.cld], the main CLD file, that gets processed by ConTeXt, all the Lua code
    1,015 bytes (167 words) - 17:00, 15 July 2014
  • ==Lua==
    1 KB (185 words) - 11:35, 9 February 2021
  • ...language at your fingertips. All <code>\xml...</code> commands have their Lua counterparts. Unfortunately, this is not yet fully documented, so this wiki ...e> commands allow you to work with the content of your xml elements within Lua; <code>lxml...</code> commands pass the content to ConTeXt and typeset it.
    7 KB (1,105 words) - 08:27, 2 July 2022
  • ...roved dramatically with the advent of MkIV. A new infrastructure, based on Lua, makes typesetting, manipulating, filtering, and reusing XML much much easi ==Processing XML with lua==
    3 KB (445 words) - 07:51, 1 July 2022
  • <td>''lua command from in the'' command ''table''</td> To quickly access Lua commands in the {{code|command}} table.
    1 KB (162 words) - 17:26, 12 November 2019
  • ...them inside <tt>["..."]</tt>, which is more robust form of putting key in Lua table, see example bellow. <h3>Processing on Lua end</h3>
    3 KB (314 words) - 10:05, 13 October 2020
  • ...s of ConTeXt have been redesigned from scratch making extensive use of the Lua programming language. And that is besides the heavy use of LuaTeX-only feat === Lua core ===
    3 KB (513 words) - 13:24, 9 August 2020
  • ...used. But one can also think of the components that make up ConTeXt code: Lua, MetaPost, TeX, and XML. But once it is clear to a user what (s)he is deali * There is no PDF backend code, all PDF generation is handled by ConTeXt’s Lua code.
    4 KB (606 words) - 09:43, 1 July 2022
  • * [[Category:Command/Lua]]
    817 bytes (115 words) - 10:07, 16 November 2022
  • ...lexers for syntax highlighting and a search index that is built up using a Lua script. ''Note:'' for some of the really large files (for example <code>char-def.lua</code>), syntax highlighting is disabled.
    5 KB (884 words) - 10:38, 1 July 2020
  • * [[Category:Command/Lua]]
    1 KB (139 words) - 16:42, 27 August 2020
  • '''ConTeXt Lua Documents''' (CLD) are way to access TeX from inside Lua scripts; they provide means to typeset documents using little to no TeX cod Internally, the Lua commands are mapped onto their ConTeXt and TeX counterparts.
    4 KB (495 words) - 18:47, 25 August 2022
  • * [[Category:Command/Lua]]
    798 bytes (107 words) - 14:49, 27 August 2020
  • <td>[[Command/value:mp|mp]] [[Command/value:lua|lua]] [[Command/value:xml|xml]] [[Command/value:parsed-xml|parsed-xml]] [[Comma
    3 KB (461 words) - 16:02, 21 March 2023
  • * [[Category:Command/Lua]]
    940 bytes (125 words) - 15:00, 27 August 2020
  • ...unless they are direct clones. In that case, the new name is never told to Lua. That means that this does not work: % fails, ColorA not known to Lua
    5 KB (722 words) - 13:46, 8 June 2020
  • ...tasks, you need to calculate with image sizes. Often it makes sense to use Lua functions. = Measures in Lua =
    4 KB (566 words) - 17:10, 28 October 2021
  • ...on engine (that Pragma ADE was a big part of) and its addition of both the Lua programming language and MetaPost graphics, it became possible to redo quit * The command-line tools were rewritten in Lua, using the compilation engine also as the scripting engine
    4 KB (614 words) - 07:37, 30 September 2023
  • This is all from Lua; from the ConTeXt end, one can write to the log file with {{cmd|writestatus
    756 bytes (115 words) - 15:01, 8 June 2020
  • account when encapsulating Lua code. which normally result in a space are ignored and the spaces collapsed, so Lua
    4 KB (447 words) - 09:24, 7 August 2020
  • * Processing a buffer from XML content in Lua
    1 KB (157 words) - 15:57, 8 June 2020
  • (As of this writing, an external parser exists for Lua, but not for MetaPost or TiKz.) * Lua
    3 KB (367 words) - 00:56, 23 April 2022
  • .../context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt --lua=/home/myuser/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781 mkiv lua stats > used engine: luametatex version: 2.11.02, functionality level: 202
    8 KB (1,057 words) - 19:23, 14 April 2024
  • == Using Lua == ...below; the functions are documented on the [[String_manipulation#util-prs.lua|string manipulation]] page.
    5 KB (737 words) - 17:44, 18 December 2021
  • ...n a dimension register with {{cmd|newdimen}} can be accessed directly from Lua, which is not true for values stored in a macro with {{tex|def}} or {{cmd|d == Defining and accesing dimensions in Lua ==
    8 KB (978 words) - 15:05, 6 February 2021
  • course there is plenty usage at the lua end. The language info .... I initial values (not that it matters much, lua uses more).
    3 KB (524 words) - 14:03, 6 February 2021
  • ...textfileactions</code> processor ({{src|data-tex.lua}}, cf. {{src|luat-fio.lua}}) * [[Miscellaneous Lua Topics]]
    2 KB (234 words) - 17:01, 8 June 2020
  • ...L to wiki format as an `mtxrun` script. The script is called `mtx-wikipage.lua`, and it converts our special XML format into wiki code. ...tional output file (useful for debugging). Besides that, it is almost pure lua. It uses an integrated tiny expat-style XML parser and a few handwritten xm
    11 KB (1,837 words) - 19:11, 5 September 2020
  • % Results in the following Lua table in the .tuc file == Storing and Accessing Datasets from Lua ==
    8 KB (1,032 words) - 02:01, 3 September 2023
  • = Calling Lua from TeX = ...: first you tell TeX that you're starting some Lua code; then, once inside Lua, you need to use the appropriate functions to put things into the TeX strea
    23 KB (3,423 words) - 07:15, 13 July 2023
  • ...veloper/en/opentype/glyphlist.txt here]]). This means that our first <code>lua</code> table for the "simple" lookups (one character is replaced with one
    8 KB (1,161 words) - 17:11, 8 June 2020
  • -- or just (lua is fast enough anyway) This is an adoption from Wolfgang using Lua:
    7 KB (918 words) - 23:28, 5 October 2023
  • ...used to be written in Perl (phased out), then switched to Ruby and now to Lua. To run [[Mark_II|MkII]], you need to have at least Ruby installed installe
    2 KB (349 words) - 09:14, 19 June 2020
  • ...ans that if you are on windows you will at least have to set up a texmfcnf.lua as explained below, and you likely will even have to reinstall texlive, bec ...ly due to the faster virtual machine. The exact speedup depends on the tex/lua ratio and we measured speedups between 10% and 40%. You force this engine w
    7 KB (1,169 words) - 08:26, 2 July 2022
  • ..., you may need to calculate with image sizes. Often it makes sense to use Lua functions.
    2 KB (264 words) - 18:55, 7 September 2021
  • To parser input files for the use with TeX you could either write Lua macros to convert pass the input to TeX or use LPeg to parse the files in a ...o keep the interface in TeX and make the modifications in low level TeX or Lua code.
    6 KB (805 words) - 13:06, 7 January 2021
  • | strip Lua code (only meant for production where no errors are expected) | force cld (context lua document) stub
    7 KB (885 words) - 01:45, 31 March 2021
  • \setuptyping[LUA][option=]
    2 KB (250 words) - 17:28, 29 July 2023
  • * add the lua configuration file * rewrite scripts to lua and back up regularly
    5 KB (707 words) - 08:06, 28 July 2011
  • ...gn:left;">[http://www.pragma-ade.nl/general/manuals/templates-mkiv.pdf XML/Lua templates (2016)]</div></li> ...; text-align:left;">[http://www.pragma-ade.nl/general/manuals/lua-mkiv.pdf Lua - the ConTeXt libraries (2016)]</div></li>
    38 KB (5,155 words) - 16:39, 14 April 2024
  • ...lly a merge of the scripts stored in <tt>tex/texmf-context/scripts/context/lua</tt>. ...licitly invoke the function of one of the scripts, e.g. <tt>mtx-''script''.lua</tt>, like so.
    14 KB (1,576 words) - 19:14, 8 June 2020
  • == Lua functions ==
    8 KB (1,030 words) - 16:57, 8 June 2020
  • * [[manual:cld-mkiv.pdf|ConTeXt Lua Documents]]
    3 KB (380 words) - 08:29, 2 July 2022
  • < [[Tables Overview]] | [[source:tabl-xtb.lua|tabl-xtb.lua]] ...hanism isn’t simple, but fast. It works only in ConTeXt MkIV, because it’s Lua-based.
    3 KB (351 words) - 08:28, 2 July 2022
  • ...x, Mac OSX and Windows. It is fully extensible using [https://www.lua.org/ Lua]. ...efault user settings for Textadept have to be saved in the file <code>init.lua</code>. There are two of them, of which you should edit only one:
    9 KB (1,425 words) - 17:37, 23 February 2023
  • Mark IV delegates an ever growing amount of the key-value processing to lua, and as a result you should always provide 'expanded' numbers in Mark IV: The underlying reason is that the scanning via lua does not have the special behaviour of TeX itself.
    8 KB (1,280 words) - 13:27, 9 August 2020
  • =Normal Lua preloading= [[Lua]] libraries in addition to the format itself.
    21 KB (2,731 words) - 19:22, 8 June 2020
  • ...es:letter|Wolfgang’s letter module]] for my invoices and came up with this Lua code:
    4 KB (539 words) - 16:56, 8 June 2020
  • ...ttp://www.luatex.org/ luatex.org]</td><td>extended version of pdfTeX using Lua</td></tr>
    4 KB (731 words) - 08:01, 1 July 2022
  • ...in the source code: [http://source.contextgarden.net/buff-ini.lua buff-ini.lua] ...moved &mdash; see <code>parsers.settings_to_array</code> in <code>util-prs.lua</code>.
    3 KB (498 words) - 07:35, 17 July 2023
  • * [[source:page-cst.lua| page-cst.lua]] Lua functions that control the four-letter placement codes in page columns
    7 KB (1,268 words) - 20:40, 13 August 2022
  • Once we have lua in place it should not be that difficult to make a mechanism that works as
    2 KB (342 words) - 14:25, 8 June 2020
  • == Checking modes in Lua == The state of any mode is accessible at the Lua end as <code>tex.modes</code> table. Specifically,
    17 KB (2,484 words) - 08:26, 2 July 2022
  • * Lua Font Goodies with examples.
    3 KB (449 words) - 21:07, 20 April 2024
  • ==Lua tables== Since internally everything anyway are Lua tables, you can use them directly as a database format:
    20 KB (2,627 words) - 03:36, 16 April 2024
  • ...a different approach is necessary. The style can be defined in terms of a Lua handler, such as: * Source code: {{src|typo-fln.mkiv}} (with examples) {{src|typo-fln.lua}}.
    4 KB (541 words) - 17:23, 28 May 2020
  • ...ting to their respective files in the the <code>texmf-dist/scripts/context/lua directory</code>. ...mfcnf.lua</code> (default configuration in <code>texmf-dist/web2c/texmfcnf.lua</code>); beyond this, most settings are undocumented, so ask on [mailto:tex
    3 KB (530 words) - 22:23, 7 April 2023
  • In ConTeXt, the vanilla Lua [http://www.lua.org/manual/5.1/manual.html#5.5 table library] Compare this to Lua’s and LuaTeX’s standard ''table'' implementation.
    30 KB (4,617 words) - 16:58, 8 June 2020
  • * The tables of key-value pairs are stored as Lua tables in a <code>.tuc</code> file. They look like this: % Results in the following Lua table in the .tuc file
    9 KB (1,215 words) - 17:51, 1 December 2020
  • ...TEX]</code> and use it with the name you chose. Other values are: <code>mp lua xml parsed-xml nested tex context</code>. | Lua || || [[source:pret-lua.lua|LUA]]
    23 KB (3,313 words) - 01:05, 13 August 2023
  • ...te''' Nearly all the labels in the ConTeXt core are actually loaded from a lua table in <code>lang-txt.lua</code>, instead of via this interface.
    6 KB (813 words) - 23:09, 17 March 2022
  • ...e is an easier solution: you can typeset the output of system commands via lua code. Here is an example that will print the revision and date of a mercuri
    4 KB (562 words) - 15:58, 8 June 2020
  • This uses Lua and therefore only works with ConTeXt MkIV and up. It includes all pages of ...o write them into a temp file (using Scheme) and read that in again (using Lua).
    9 KB (1,117 words) - 14:39, 5 February 2023
  • \Question[q:lua]{How are your Lua skills?}
    9 KB (1,199 words) - 08:26, 2 July 2022
  • ...dimensions of almost all layout elements are depending on the value of my lua variable "paperSize". Thanks to defining the paper size first in lua, I can apply calculations of numeric values.
    25 KB (1,585 words) - 07:19, 14 March 2024
  • * support Lua as a scripting language in PDF, like JavaScript
    4 KB (590 words) - 09:37, 23 September 2022
  • In comparison with other scripting languages the bare Lua string library empty Lua file and processed with context.
    20 KB (2,972 words) - 16:58, 8 June 2020
  • ...> command allows us to access the <code>\dimen</code> register from TeX in Lua.''
    6 KB (881 words) - 16:48, 8 June 2020
  • * {{code|x-cals}} ({{src|x-cals.mkiv}} {{src|x-cals.lua}}): XML cals table renderer * {{code|m-chart}} ({{src|m-chart.lua}} {{src|m-chart.mkvi}}): [[Flow Charts]]
    30 KB (4,082 words) - 10:40, 21 April 2024
  • ...tex/context/base/verb-*.lua from the ConTeXt distribution and he verb-cpp.lua files posted by Shen Chen in [http://archive.contextgarden.net/message/2008 The verb-py.lua file distinguishes between the following five states:
    34 KB (3,594 words) - 17:12, 8 June 2020
  • This page details the creation of a pretty printer in Lua, which is <tt>pret-foo.lua</tt>, where <tt>foo</tt> is the name of the
    7 KB (1,208 words) - 14:08, 8 June 2020
  • The module <tt>[[source:l-io.lua|l-io.lua]]</tt> provides a few functions that extend the plain Lua io library with respect to file handling in general,
    6 KB (965 words) - 16:57, 8 June 2020
  • <tt>.../<context-path>/colors/icc/context/colorprofiles.xml|.lua.</tt>
    8 KB (1,104 words) - 14:30, 7 February 2024
  • * buffer lua * structure lua
    34 KB (5,071 words) - 08:29, 2 July 2022
  • :* a set of high-level macros written in Lua and the (somewhat arcane) TeX language, and these macros simplify the task ...Lua and the typographical programming language TeX. For using ConTeXt, no Lua or TeX programming skills and no technical background are needed. Some basi
    20 KB (3,041 words) - 18:34, 23 April 2024
  • ...o-acc.tex]], {{src|enco-acc.mkii}}, or {{src|char-def.lua}}. (Warning: The lua file is 3.6 MB large and contains nearly 180,000 lines.) It is possible to convert a string from the current encoding to another using Lua (originally discussed at [http://www.ntg.nl/pipermail/ntg-context/2012/065
    15 KB (2,430 words) - 13:17, 9 August 2020
  • ....cnf</tt> setup, <tt>luatools</tt> and <tt>mtxrun</tt> failed to find <tt>.lua</tt> files in the normal texmf tree.
    7 KB (1,037 words) - 15:43, 20 November 2012
  • How to pass variable from TeX to Lua and vice versa? See [[CLD_passing_variables#Variables|CLD passing variables
    8 KB (1,140 words) - 10:11, 16 December 2021
  • ..."[https://codeberg.org/fiee/language-context language-context]", "language-lua" and "pdf-view" for C and P.
    8 KB (1,087 words) - 18:49, 11 November 2023
  • ...nvience you will have to deal with (this is actually what the Makefile for lua does; here you would have to set something like <code>MYCFLAGS</code> or <c
    7 KB (1,035 words) - 13:14, 13 December 2014
  • ...have a look at [[Textadept]], a SciTE descendant that already includes the Lua Lexers and is also available for OSX. A Textadept module for ConTeXt is bei
    8 KB (1,216 words) - 08:29, 2 July 2022
  • * '''cld''': Typeset the [[CLD|ConTeXt Lua document]] using <code>context</code> and include the result as a PDF file.
    12 KB (1,743 words) - 20:50, 5 March 2024
  • \goto{In Lua, array indices start from one.}[url(http://www.xkcd.com/163/)] ...to break (see the list at the beginning of [[source:lang-url.lua|lang-url.lua]], cf. [http://www.ntg.nl/pipermail/ntg-context/2008/032959.html a message
    11 KB (1,559 words) - 19:33, 5 October 2023
  • to use texexec --xetex or texexec --lua modify this variable accordingly.
    11 KB (1,762 words) - 10:58, 2 July 2020

View (previous 100 | next 100) (20 | 50 | 100 | 250 | 500)