Search results
Jump to navigation
Jump to search
Create the page "Commands/ctxlua" on this wiki! See also the search results found.
Page title matches
- |name=ctxlua <syntax>ctxlua</syntax>1 KB (150 words) - 19:43, 8 June 2020
Page text matches
- To quickly access Lua commands in the {{code|command}} table. \def\ctxcommand #1{\directlua{commands.#1}} % saves tokens1 KB (162 words) - 17:26, 12 November 2019
- %--- Commands Needed \ctxlua{test = true}2 KB (227 words) - 23:52, 8 September 2023
- function commands.wiki_to_table(str) -- wrong namespace {\ctxlua{commands.wiki_to_table([[\detokenize{#1}]])}%1 KB (134 words) - 16:28, 10 September 2012
- \long\def\parsesgfa#1{\ctxlua{thirddata.sgf.parsea("#1")}} \long\def\parsesgfb#1{\ctxlua{thirddata.sgf.parseb("#1")}}6 KB (805 words) - 13:06, 7 January 2021
- ...system, there 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 \ctxlua{context(os.resultof("hg id -i -r tip"))}:4 KB (562 words) - 15:58, 8 June 2020
- ...hat calls the function using {{cmd|ctxlua</code>, especially because {{cmd|ctxlua}} has a few idiosyncracies. == Calling a bit of Lua inline: {{cmd|ctxlua}} ==23 KB (3,423 words) - 07:15, 13 July 2023
- commands = { \ctxlua{require("util-sha")}6 KB (724 words) - 18:52, 23 January 2023
- \def\mycommand[#1][#2]{\ctxlua{ Of course, one can pass on <tt>#1</tt> as argument to other commands. If <tt>MyOwnKeyOne</tt> is not matched by its argument list, it's ignored.5 KB (737 words) - 17:44, 18 December 2021
- ...ith the {{cmd|goto}} command (and indirectly the {{cmd|in}} and {{cmd|at}} commands) clickable. A page is dedicated to this system of '''[[References]]'''. ...impatient (like me), here is a complete example showing typical and useful commands, which are explained below:14 KB (1,822 words) - 17:06, 11 February 2024
- be disrupted. You may use standard quickfix commands to jump between errors: <tt>:cfirst</tt>, <tt>:cprev</tt>, ...tc… (see <tt>:help quickfix</tt>). See below for useful mappings for these commands.24 KB (3,766 words) - 06:57, 31 July 2023