Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>tytex syntaxNew to Visual Studio Code? Get it now.
tytex syntax

tytex syntax

GillesTeuwen

|
6 installs
| (0) | Free
Syntax Highlighting for Tytex, typescript templateised latex by Tyto
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TyTeX - Custom LaTeX Superset Syntax Highlighting

TyTeX is a VSCode extension that adds syntax highlighting for a LaTeX superset with templating and dynamic bindings. It extends LaTeX syntax to support custom templating features, making it easier to work with dynamic content generation in LaTeX documents.

🚀 Features

✅ Templating Syntax Support:

  • {{let ...}} bindings for defining variables.
  • {{for ... in ...}} loops for iterating over datasets.
  • {{if ...}} conditionals for inline logic.
  • {{table(...)}} functions for structured data.

✅ Smart Syntax Highlighting:

  • let, for, if, import, new, raw → highlighted as keywords.
  • Variables (cust1, meeps, results_table) → distinct color.
  • Types (string, number, Customer) → highlighted separately.
  • File paths in import ("../src/Customer.ts") → highlighted as strings.
  • Accessors (cust1.inner.data) → correctly parsed.

✅ Fully Integrated with LaTeX:

  • Extends LaTeX syntax without interfering with normal .tex files.
  • Works with .cltx files for templating.
  • Highlights LaTeX commands (\textbf{}) inside loops.

📸 Screenshot

coming

🛠️ Installation

  1. From VSCode Marketplace (Recommended):

    • Open VSCode → Go to Extensions (Ctrl+Shift+X) → Search for "TyTeX".
    • Click Install.
  2. Manual Installation:

    • Download the .vsix file:
      vsce package
      code --install-extension tytex-1.0.0.vsix
      
    • Restart VSCode.

📝 Usage

📌 Example: Variable Bindings

{{let cust1:import<Customer,"../src/Customer.ts">}}
{{let results_table:[new<date:string,item:string,price:number>]}}
{{let date:raw<string>}}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft