「 FAQ 」 『 Tips & Tricks 』 『 Scripts 』 『 Build 』『 Contribute 』
CWL Files
CWL stands for Completion Word List
.
The format was originally used in Kile and
defined commands in the auto-completer.
TeXStudio uses an extended version of CWL to include additional
semantic information and allow for cursor / placeholder placement.
Uses
- Extends auto-completion
- Command definitions (
\usepackage
dependent) - Semantic information like
\ref
references
Creation
TeXStudio ships .cwl
files for most Common Packages.
If a packages .cwl
file cannot be found, TeXStudio
tries to auto-generate it from the given .sty
file.
Naturally, auto-generation is not perfect and .cwl
files can supply
more information, like marking commands as citations so they can
be handled like \cite
for auto-completion and citation checking.
You can use your own .cwl
files by placing them in the settings directory.
Check the User Manual for the format specification.
You can also Contribute CWLs for not yet included packages.
Location
TeXStudio comes with Built-In .cwl
files.
CWL files are searched for in the folloing places:
Versions > 2.10.8
Older Versions
- Built-In
- Settings
Loading
Every time you use the \usepackage
command,
the corresponding .cwl
file is loaded for the
current document.
You can also statically link files in Options › Completion
.
Early TeXStudio
Early versions used to only allow for statical linking,
now just tex.cwl
is activated in this way (by default).