Javier A. Múgica submitted the

                Tcode

package.

Version:  2026-10-07
License:  pd

Summary description:  Typesetting verbatim code: C, python,…

Announcement text:
------------------------------------------------------------------------

 This is a package for typesetting code (e.g., C, python, julia... ).
 It may be an alternative to the listings package. It is MUCH faster,
 specially when hundreds of words are defined.
 It has been tested on plain pdftex, luatex, and pdflatex.

 It was developed to replace listings for typesetting C code
 in one particular project. As a result, the support for C has
 been thoroughly developed: Proper recognition of C numbers,
 automatic detection of #define'd words, etc.
 It comes with support for python and julia, much less developed
 but still fully functional.
 In python, it recognizes the {} delimited format in f-prefixed strings.

 The package has a modular design, with a kernel on top of which
 the support for languages can be programmed. Thus, for example,
 there is nothing specific in the kernel to recognize {} formats
 within strings or words following #define.
 Similar features can be programmed for any language.
 Support for other languages is welcome.
 There is an example of a small language file for a faked language:
 Tcode_example.tex, that can serve as template for other languages.
 The support for julia, in Tcode_julia,tex, is also small enough
 that it can serve as template.

 A fast, user-oriented documentation is present in Tcode_users.html.
 A thorough  documentation of the package can be found in
 Tcode_developers.html.

 The package includes a util, pdfcolor-rg.tex, that syntax
 highlighting files take advantage of, than can be used independently
 of Tcode. It defines the \color macro and \DefColor and \DefGray macros.
 It is only suitable for pdf backend, rgb and gray models.
 Small, easy to understand and debug, and fast.

 This package will not become part of TeX Live because of problems
 with filename conventions.

------------------------------------------------------------------------

The package’s Catalogue entry can be viewed at
   https://ctan.org/pkg/tcode

The package’s files themselves can be inspected at
   https://mirrors.ctan.org/macros/generic/tcode/

------------------------------------------------------------------------

   Thanks for the upload.

     For the CTAN Team
    Petra Rübe-Pugliese

------------------------------------------------------------------------

CTAN is run entirely by volunteers and supported by TeX user groups.
Please join a user group or donate to one, see https://ctan.org/lugs
_______________________________________________
ctan-ann mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to