Module texdef

library for texdef and latexdef

Info:

  • Copyright: 2025

Functions

get_parser (progname, fmt) get parser
parse (argv) parse command line arguments
postparse (args) change some values by command line arguments
get_path (filename) get path of template https://github.com/nvim-neorocks/lux/issues/922
main (argv) first entry for texdef and latexdef
replace (text, defined) replace package names with their full paths
filter (log, regex) filter log by regex
get_sorted_keys (input) sort dictionary's keys
dump (log, is_detailed) sort log and dump output
output (args) final entry for texdef and latexdef


Functions

get_parser (progname, fmt)
get parser

Parameters:

  • progname string program name
  • fmt string TeX format name

Returns:

    table parser
parse (argv)
parse command line arguments

Parameters:

  • argv string[] command line arguments

Returns:

    table args parsed result
postparse (args)
change some values by command line arguments

Parameters:

  • args table parsed result

Returns:

    table args processed result
get_path (filename)
get path of template https://github.com/nvim-neorocks/lux/issues/922

Parameters:

  • filename string template name

Returns:

    string file template path
main (argv)
first entry for texdef and latexdef

Parameters:

  • argv string[] command line arguments

Returns:

    table | nil args parsed command line arguments
replace (text, defined)
replace package names with their full paths

Parameters:

  • text string
  • defined string

Returns:

    string text
filter (log, regex)
filter log by regex

Parameters:

  • log log
  • regex string

Returns:

    log log
get_sorted_keys (input)
sort dictionary's keys

Parameters:

  • input table

Returns:

    table names
dump (log, is_detailed)
sort log and dump output

Parameters:

  • log log
  • is_detailed boolean if print control sequences' values

Returns:

    string text
output (args)
final entry for texdef and latexdef

Parameters:

  • args table parsed command line arguments
generated by LDoc 1.5.0 Last updated 2025-08-16 20:10:55