YaTeX-like completions for LaTeX in VSCode
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

CaTeX (軽鳥/怪鳥) - YaTeX like completions for LaTeX in VSCode

Visual Studio Marketplace Visual Studio Marketplace

Functionalities

  • YaTeX-like image/greek completion
  • Powerful snippet completion for LaTeX commands/environments:
    • \section{}-like completion (C-c s)
    • \begin{}\end{}-type completion (C-c b)
    • {\Large }-like completion (C-c l)
    • \maketitle-like completion (C-c m)
      • In any completion, you can automatically register unknown commands!
  • Automatic settings update; right after you edit settings.json or workspace file, other affected editors automatically reflects that change and there is no need for reloading or restarting!

DEMOs

Image and Greek Completion

GIF Anime

Image Completion, manually invoked for surrounding

GIF Anime

\section{}-completion

Completion and surrounding:

GIF Anime

Registration of custom completion, with arg specification:

GIF Anime

\begin{}\end{}-type completion

Completion and surrounding:

GIF Anime

Registration of custom completion, with arg specification:

GIF Anime

{\Large }-type completion

Completion and surrounding

GIF Anime

Custom registration, with/out arg specs:

GIF Anime

\maketitle-type completion

Completion and registration:

GIF Anime

Recommendation for Other Extension

James Yu's LaTeX Workshop extension comes with rich complementary features such as auto-typesetting, SyncTeX support, and jump between corresponding \begin and end, etc. Although it collides with the @ completion for math fonts, the author strongly recommend to install LaTeX Workshop as well. To be honest, CaTeX was designed to fill a gap between LaTeX Workshop and YaTeX.

TODOs

  • Supports <> and ()-style arguments for commands.
  • Prefixed \begin-\end completions
  • Package name completions
  • Contextual completion based on grammatical scopes
  • (Unifying dictionaries of snippet completion and image-completions)