A

Customizing TEXworks

A.1 Syntax highlighting

Among its many other features, TEXworks also include syntax highlighting. This means that certain things like LaTeX commands, environments, or comments are coloured, underlined, or highlighted in some other way. TEXworks also provides the ability to switch between different highlighting schemes1, and to define your own ones. This is useful if you often work with types of files for which no highlighting scheme is provided by default, or if you want to adjust the highlighting schemes to better match your system’s colour scheme.

To modify the highlighting schemes, you have to edit the plain-text file <resources>/configuration/syntax-patterns.txt. This file can contain any number of individual sections, each defining a single highlighting scheme to be displayed in the menu structure of TEXworks. To define a section, just write the name enclosed in square brackets on a line of its own. Naturally, these names should not include the ] character. By default, the following two sections are defined:

[LaTeX] 
[ConTeXt]

In addition, you can add comments to the file by starting a line with #. Empty lines are ignored.

Each section consists of an arbitrary number of styling rules. Each such instruction consists of three parts: a formatting instruction, a spell-check flag, and a regular expression2 defining what part of a text to match. These parts must all be on the same line, and separated by whitespaces (e.g., spaces or tabstop characters). Take for example the following line from the default LaTeX section:

red    Y    %.*

The first part, red, defines the format (in this case, a red foreground colour is specified). The second part, Y, defines that spellchecking should be enabled for text that matches this particular rule. Sometimes, it is useful to put N here to disable spellchecking. For example, if spellchecking would be enabled for LaTeX commands, most documents would be flooded with red underlines indicating misspelled words when in fact they are only special commands. Finally, the third part specifies that this rule should be applied to all text preceded by %.

Let us take a closer look at the three parts of each rule. In its most general form, the first part—the format instruction—looks like

<foreground_colour>/<background_colour>;<fontflags>

The <fontflags> can be specified independent of the colours (note, though, that it must always be preceded by a ;). The background colour (together with the /) can be omitted, but if you specify it, you also have to specify the foreground colour.

Each colour can either be specified by an SVG name3 or by a hexadecimal value (#rrggbb4) similar as in web documents. The <fontflags> can be any combination of the letter B (bold), I (italic), and U (underlined).

Examples of valid formatting instructions are:

red 
white/#000000 
;B 
blue;I 
 #000000/#ffff00;U

A.2 Keyboard shortcuts

The use of keyboard shortcuts greatly facilitates typing in and the management of the source and the preview windows. Their use is much more effective than the use of buttons for frequently-used actions.

Below, you’ll find the shortcuts for source and preview windows. Note that on macOS, Ctrl actually refers to the Command key, which is the usual modifier for keyboard shortcuts. Although the keyboard shortcuts are specified with Ctrl, this will appear as the Command-key symbol in menus. (To refer to the actual Control key on the Mac, the shortcut file should use the name Meta).

Note that the shortcuts listed below are the default shortcuts for the English interface of TEXworks. Different languages may use different shortcuts.

All the shortcuts can be redefined either to create new shortcuts or to modify the existing ones to match personal uses or change shortcuts not adapted to one particular keyboard layout. The list of possible actions to associate with shortcuts is given after the predefined shortcuts.

To define your own shortcuts, put a file named shortcuts.ini in the <resources>/configuration folder, next to auto-indent-patterns.txt, delimiter-pairs.txt, …, texworks-config.txt.

For example, this file could contain:

actionHard_Wrap = Shift+F3 
actionLast_Page = Ctrl+End 
actionFirst_Page = Ctrl+Home 
actionWrap_Lines = F3 
actionLine_Numbers = F4 
actionBalance_Delimiters = F9

The first line defines that using Shift F3 should open the hardwrap dialogue box in the source window; the second (CtrlEnd) should bring you to the last page and CtrlHome (third line) should take you to the first page; with F3 you want to wrap/unwrap lines in the source, with F4 you will show/hide line numbers and with F9 you intend to select the text between corresponding delimiters in the source.

A.2.1 Predefined shortcuts

For working in the source window:

Shortcut Action
Ctrl+’ Go to Preview
Ctrl+= Show Selection
Ctrl+A Select All
Ctrl+Alt+S Save All
Ctrl+B Balance Delimiters
Ctrl+C Copy
Ctrl+E Copy to Find
Ctrl+F Find...
Ctrl+G Find Again
Ctrl+H Find Selection
Ctrl+L Go to Line...
Ctrl+N New
Ctrl+O Open...
Ctrl+Q Quit TeXworks
Ctrl+R Replace...
Ctrl+S Save
Ctrl+Shift+C Insert Citations...
Ctrl+Shift+E Copy to Replace
Ctrl+Shift+N New from Template...
Ctrl+Shift+R Replace Again
Ctrl+Shift+S Save As...
Ctrl+Shift+Z Redo
Ctrl+Shift+[ Uncomment
Ctrl+Shift+] Comment
Ctrl+T Typeset
Ctrl+V Paste
Ctrl+W Close
Ctrl+X Cut
Ctrl+Z Undo
Ctrl+[ Unindent
Ctrl+\ Hide Console Output
Ctrl+] Indent

Moving the cursor (hold Shift to select):

Shortcut Action
1 character right
Ctrl+ 1 word right
1 character left
Ctrl+ 1 word left
1 line up
1 line down
PgUp 1 screen up
PgDown 1 screen down
Home Begin of line
Ctrl+Home Begin of document
End End of line
Ctrl+End End of document

For working in the preview window:

Shortcut Action
Alt+Left Go to previous view
Ctrl+’ Go to Source
Ctrl++ Zoom In
Ctrl+- Zoom Out
Ctrl+1 Actual Size
Ctrl+2 Fit to Width
Ctrl+3 Fit to Window
Ctrl+4 Fit to Content Width
Ctrl+Backspace Clear
Ctrl+C Copy
Ctrl+F Find...
Ctrl+G Find Again
Ctrl+J Go to Page...
Ctrl+N New
Ctrl+O Open...
Ctrl+P Print PDF...
Ctrl+PgDown Next Page
Ctrl+PgUp Previous Page
Ctrl+Q Quit TeXworks
Ctrl+Shift+F Full Screen
Ctrl+Shift+N New from Template...
Ctrl+Shift+Z Redo
Ctrl+T Typeset
Ctrl+V Paste
Ctrl+W Close
Ctrl+X Cut
Ctrl+Z Undo

A.2.2 Actions listed alphabetically

actionAbout_Scripts actionPageMode_Single
actionAbout_TW actionPageMode_TwoPagesContinuous
actionActual_Size actionPaste
actionApply_to_Selection actionPlace_on_Left
actionAutoIndent_None actionPlace_on_Right
actionAuto_Follow_Focus actionPreferences
actionBalance_Delimiters actionPrevious_Completion
actionClear actionPrevious_Completion_Placeholder
actionClear_Recent_Files actionPrevious_Page
actionClose actionPrevious_ViewRect
actionComment actionPrintPdf
actionCopy actionQuit_TeXworks
actionCopy_to_Find actionRedo
actionCopy_to_Replace actionRemove_Aux_Files
actionCut actionReplace
actionFind actionReplace_Again
actionFind_Again actionRevert_to_Saved
actionFind_Selection actionRuler
actionFirst_Page actionSave
actionFit_to_Content_Width actionSave_All
actionFit_to_Width actionSave_As
actionFit_to_Window actionScroll
actionFont actionSelect_All
actionFull_Screen actionSelect_Text
actionGoToHomePage actionSettings_and_Resources
actionGo_to_Line actionShow_Hide_Console
actionGo_to_Page actionShow_Scripts_Folder
actionGo_to_Preview actionShow_Selection
actionGo_to_Source actionSide_by_Side
actionHard_Wrap actionSmartQuotes_None
actionIndent actionStack
actionInsert_Citations actionSyntaxColoring_None
actionJump_To_PDF actionTile
actionLast_Page actionTo_Lowercase
actionLine_Numbers actionTo_Uppercase
actionMagnify actionToggle_Case
actionManage_Scripts actionTypeset
actionNew actionUncomment
actionNew_from_Template actionUndo
actionNext_Completion actionUnindent
actionNext_Completion_Placeholder actionUpdate_Scripts
actionNext_Page actionWrap_Lines
actionNone actionWriteToMailingList
actionOpen actionZoom_In
actionPageMode_Continuous actionZoom_Out

A.2.3 Actions listed by menu

For the source window:

Edit
actionBalance_Delimiters actionPreferences
actionClear actionRedo
actionCopy actionSelect_All
actionCut actionTo_Lowercase
actionInsert_Citations actionTo_Uppercase
actionNone actionToggle_Case
actionPaste actionUndo
File
actionClear_Recent_Files actionRemove_Aux_Files
actionClose actionRevert_to_Saved
actionNew actionSave
actionNew_from_Template actionSave_All
actionOpen actionSave_As
actionQuit_TeXworks
Format
actionApply_to_Selection actionLine_Numbers
actionAutoIndent_None actionSmartQuotes_None
actionComment actionSyntaxColoring_None
actionFont actionUncomment
actionHard_Wrap actionUnindent
actionIndent actionWrap_Lines
Help
actionAbout_TW actionSettings_and_Resources
actionGoToHomePage actionWriteToMailingList
Scripts
actionAbout_Scripts actionShow_Scripts_Folder
actionManage_Scripts actionUpdate_Scripts
Search
actionCopy_to_Find actionGo_to_Line
actionCopy_to_Replace actionReplace
actionFind actionReplace_Again
actionFind_Again actionShow_Selection
actionFind_Selection
Typeset
actionTypeset
Window
actionAuto_Follow_Focus actionShow_Hide_Console
actionGo_to_Preview actionSide_by_Side
actionPlace_on_Left actionStack
actionPlace_on_Right actionTile

For the preview window:

Edit
actionCopy actionRedo
actionPreferences actionUndo
File
actionClear_Recent_Files actionOpen
actionClose actionPrintPdf
actionNew actionQuit_TeXworks
actionNew_from_Template
Help
actionAbout_TW actionSettings_and_Resources
actionGoToHomePage actionWriteToMailingList
Scripts
actionAbout_Scripts actionShow_Scripts_Folder
actionManage_Scripts actionUpdate_Scripts
Search
actionFind actionFind_Again
Typeset
actionTypeset
View
actionActual_Size actionNext_Page
actionFirst_Page actionPageMode_Continuous
actionFit_to_Content_Width actionPageMode_Single
actionFit_to_Width actionPageMode_TwoPagesContinuous
actionFit_to_Window actionPrevious_Page
actionFull_Screen actionRuler
actionGo_to_Page actionZoom_In
actionLast_Page actionZoom_Out
Window
actionGo_to_Source actionSide_by_Side
actionPlace_on_Left actionStack
actionPlace_on_Right actionTile

A.2.4 Actions for typesetting tools

In addition to the static actions listed above, there are also actions for switching to a typesetting tool. All of these actions are of the general form actionTypesetTool<tool_name> where <tool_name> must be replaced appropriately. For example, the name corresponding to the pdfLaTeX typesetting tool is actionTypesetToolpdfLaTeX, that corresponding to My␣tool is actionTypesetToolMy␣tool.5

A.2.5 Actions for scripts

There are also actions for scripts. These are dynamic in nature, as they are created on-the-fly for the available scripts (which may change when you install scripts, remove them, or change some settings). All of these actions are of the form Script:␣<script_title>, where <script_title> must be replaced appropriately. If you have a script that shows up as My Script, for example, the corresponding action would be named Script:␣My␣Script.

A.3 Roots for completion

We give here the keywords for auto-completion as they are supplied by TEXworks. They are given in the files tw-basic.txt, tw-context.txt (initially empty) and tw-latex.txt in the <resource>\completion folder.

We give them in three columns: the first two show the keywords, the third the (LA)TEX code produced. In some cases there is only the code, this means that you can start to enter the (LA)TEX code and try to complete it with .

During completion, the system inserts line feeds and puts the cursor at the first place where one has to enter information to complete the typing. To represent the line feeds we used R and I for the input point.

So, a line like “\begin{abstract}RIR\end{abstract}” should be interpreted as

\begin{abstract} 
 
\end{abstract}

with the cursor being position on the central, empty line.

It is possible to see that the keywords have some pattern. The mathematical variables have a keyword starting with x, when they are in a mathematical environment; when they are used alone in the text you add d in front. For example, xa and dxa give \alpha, if there is a capital there is a c, as xo for \omega and xco for \Omega. The keywords for environments start with b: bali for \begin{align} (b is a mnemonic for \begin). When the environment has possible options, there is one or more o added to the base name: bminp gives \begin{minipage}{}... while bminpo gives \begin{minipage}[]{}....

Keywords defined in tw-basic.txt (defined in TEX):

xa \xa \alpha
xb \xb \beta
\bsk \bigskip
\bigskipR
xch \xch \chi
xcd \xcd \Delta
xd \xd \delta
xe \xe \epsilon
xet \xet \eta
xcg \xcg \Gamma
xg \xg \gamma
\hskip
\indent
\input
xio \xio \iota
xcl \xcl \Lambda
xl \xl \lambda
\msk \medskip
\medskipR
xm \xm \mu
\noindent
xn \xn \nu
xco \xco \Omega
xo \xo \omega
\par
xcph \xcph \Phi
xph \xph \phi
xcp \xcp \Pi
xp \xp \pi
xcps \xcps \Psi
xps \xps \psi
xr \xr \rho
\scriptsize
xcs \xcs \Sigma
xs \xs \sigma
\ssk \smallskipR
xt \xt \tau
tex \tex \TeX
texs \texs \TeX\
xcth \xcth \Theta
xth \xth \theta
xcu \xcu \Upsilon
xu \xu \upsilon
xve \xve \varepsilon
xvph \xvph \varphi
xvp \xvp \varpi
xvr \xvr \varrho
xvs \xvs \varsigma
xvth \xvth \vartheta
\vskip
xcx \xcx \Xi
xx \xx \xi
xz \xz \zeta

Keywords defined in tw-latex.txt (defined in LaTeX):

ncol \ncol &
dd \dd \( I \)
\adc \addtocounter{I}{}
adcount \addtocounter{I}{}R
\adl \addtolength{I}{}
adlen \addtolength{I}{}R
\author{I}R
\begin{
babs \babs \begin{abstract}RIR\end{abstract}
balis \balis \begin{align*}RIR\end{align*}
baliats \baliats \begin{alignat*}{I}RR\end{alignat*}
baliat \baliat \begin{alignat}{I}RR\end{alignat}
baliedat \baliedat \begin{alignedat}RIR\end{alignedat}
baliedato \baliedato \begin{alignedat}[I]RR\end{alignedat}
balied \balied \begin{aligned}{I}RR\end{aligned}
bali \bali \begin{align}RIR\end{align}
bapp \bapp \begin{appendix}RIR\end{appendix}
barr \begin{array}RIR\end{array}
bbmat \bbmat \begin{bmatrix}RIR\end{bmatrix}
bcase \bcase \begin{cases}RIR\end{cases}
bcent \bcent \begin{center}RIR\end{center}
bcenum \bcenum \begin{compactenum}R\itemRIR\end{compactenum}
bcenumo \bcenumo \begin{compactenum}[I]R\itemRR\end{compactenum}
bcitem \bcitem \begin{compactitem}R\itemRIR\end{compactitem}
bcitemo \bcitemo \begin{compactitem}[I]R\itemRR\end{compactitem}
bdes \bdes \begin{description}R\item[I]RR\end{description}
bdoc \bdoc \begin{document}RRIRR\end{document}
benu \benu \begin{enumerate}R\itemRIR\end{enumerate}
benuo \benuo \begin{enumerate}[I]R\itemRR\end{enumerate}
beqns \beqns \begin{eqnarray*}RIR\end{eqnarray*}
beqn \beqn \begin{eqnarray}RIR\end{eqnarray}
bequs \bequs \begin{equation*}RIR\end{equation*}
bequ \bequ \begin{equation}RIR\end{equation}
bfig \bfig \begin{figure}RIR\end{figure}
bfigo \bfigo \begin{figure}[I]RR\end{figure}
bflaligs \bflaligs \begin{flalign*}RIR\end{flalign*}
bflalig \bflalig \begin{flalign}RIR\end{flalign}
bfll \bfll \begin{flushleft}RIR\end{flushleft}
bflr \bflr \begin{flushright}RIR\end{flushright}
bgaths \bgaths \begin{gather*}RIR\end{gather*}
bgathed \bgathed \begin{gathered}RIR\end{gathered}
bgathedo \bgathedo \begin{gathered}[I]RR\end{gathered}
bgath \bgath \begin{gather}RIR\end{gather}
bite \bite \begin{itemize}R\itemRIR\end{itemize}
biteo \biteo \begin{itemize}[I]R\itemRR\end{itemize}
blett \blett \begin{letter}{I}RR\end{letter}
blist \blist \begin{list}{I}{}R\itemRR\end{list}
bminpo \bminpo \begin{minipage}[I]{}RR\end{minipage}
bminp \bminp \begin{minipage}{I}RR\end{minipage}
bmults \bmults \begin{multline*}RIR\end{multline*}
bmult \bmult \begin{multline}RIR\end{multline}
bpict \bpict \begin{picture}RIR\end{picture}
bpmat \bpmat \begin{pmatrix}RIR\end{pmatrix}
bquot \bquot \begin{quotation}RIR\end{quotation}
bquo \bquo \begin{quote}RIR\end{quote}
bsplit \bsplit \begin{split}RIR\end{split}
bsubeq \bsubeq \begin{subequations}RIR\end{subequations}
btabb \btabb \begin{tabbing}RIR\end{tabbing}
btabls \btabls \begin{table*}RIR\end{table*}
btbls \btbls \begin{table*}RIR\end{table*}
btablso \btablso \begin{table*}[I]RR\end{table*}
btblso \btblso \begin{table*}[I]RR\end{table*}
btabl \btabl \begin{table}RIR\end{table}
btbl \btbl \begin{table}RIR\end{table}
btablo \btablo \begin{table}[I]RR\end{table}
btblo \btblo \begin{table}[I]RR\end{table}
btabs \btabs \begin{tabular*}{I}{}RR\end{tabular*}
btabx \btabx \begin{tabularx}{I}{}RR\end{tabularx}
btab \btab \begin{tabular}{I}RR\end{tabular}
bbib \bbib \begin{thebibliography}{I}R\bibitem{}RR\end{thebibliography}
bindex \bindex \begin{theindex}RIR\end{theindex}
btheo \btheo \begin{theorem}RIR\end{theorem}
btitpg \btitpg \begin{titlepage}RIR\end{titlepage}
btrivl \btrivl \begin{trivlist}RIR\end{trivlist}
bvarw \bvarw \begin{varwidth}{I}RR\end{varwidth}
bverb \bverb \begin{verbatim}RIR\end{verbatim}
bvers \bvers \begin{verse}RIR\end{verse}
bfd \bfseries
bibitemo \bibitem[I]{}R
bibitem \bibitem{I}R
bibstyle \bibstyle \bibliographystyle{I}
biblio \bibliography{I}
\boxed{I}
\caption{I}R
\cdots
center \centering
\chapter{I}
chap \chapter{I}R
\cite{I}
\cline{I}
\date{I}R
\ddddot{I}
\dddot{I}
\ddots
\ddot{I}
\documentclass[I]{}R
\documentclass{I}R
\dots
\dotsb
\dotsc
\dotsi
\dotsm
\dotso
emd \em
em \emph{I}
\end{I}R
\eqref{I}
\fboxrule{I}
\fboxsep{I}
fbox \fbox{I}
\footnotesize
foot \footnote{I}
frac \frac{I}{}
fboxoo \fboxoo \framebox[I][]{}
fboxo \fboxo \framebox[I]{}
hw \headwidth
\hlineR
\hspace*{I}
\hspace{I}
incgo \includegraphics[I]{}R
incg \includegraphics{I}R
\include{I}R
\input{I}R
\intertext{I}
\itemRI
ito \item[I]R
itd \itshape
lbl \lbl \label{I}
\large
\Large
latex \latex \LaTeX
latexs \latexs \LaTeX\
latexe \latexe \LaTeXe
latexes \latexes \LaTeXe\
\ldots
\listfilesR
listf \listf \listoffiguresR
listt \listt \listoftablesR
\makeatletter
\makeatother
mboxoo \mboxoo \makebox[I][]{}
mboxo \mboxo \makebox[I]{}
mpar \mpar \marginpar{I}
mbf \mbf \mathbf{I}
mcal \mcal \mathcal{I}
mit \mit \mathit{I}
mnorm \mnorm \mathnormal{I}
mrm \mrm \mathrm{I}
msf \msf \mathsf{I}
mtt \mtt \mathtt{I}
mbox \mbox{I}
mdd \mdseries
multc \multc \multicolumn{I}{}{}
multic \multicolumn{I}{}{}
nct \newcolumntype{I}{}
newct \newcolumntype{I}{}
ncmoo \newcommand{I}[][]{}R
newcoo \newcommand{I}[][]{}R
ncmo \newcommand{I}[]{}R
newco \newcommand{I}[]{}R
ncm \newcommand{I}{}R
newc \newcommand{I}{}R
nenvoo \newenvironment{I}[][]{}{}R
neweoo \newenvironment{I}[][]{}{}R
nenvo \newenvironment{I}[]{}{}R
neweo \newenvironment{I}[]{}{}R
nenv \newenvironment{I}{}{}R
newe \newenvironment{I}{}{}R
newlen \newlength{I}R
nlen \newlength{I}R
newlin \newlineR
nline \newlineR
newpg \newpageR
npg \npg \newpageR
\newtheorem{I}[]{}R
\newtheorem{I}{}R
\newtheorem{I}{}[]R
\nocite{I}
\normalsize
\pagebreakR
pgref \pageref{I}
pgs \pagestyle{I}R
pars \paragraph*{I}R
paro \paragraph[I]{}R
par \paragraph{I}R
parboxo \parbox[I]{}{}
pboxo \pboxo \parbox[I]{}{}
parbox \parbox{I}{}
pbox \pbox \parbox{I}{}
rboxoo \rboxoo \raisebox{I}[][]{}
rboxo \rboxo \raisebox{I}[]{}
rbox \rbox \raisebox{I}{}
ref \ref{I}
rncmoo \renewcommand{I}[][]{}R
rnewcoo \renewcommand{I}[][]{}R
rncmo \renewcommand{I}[]{}R
rnewco \renewcommand{I}[]{}R
rncm \renewcommand{I}{}R
rnewc \renewcommand{I}{}R
rmc \rmfamily
\rule[I]{}{}
\rule{I}{}
scd \scshape
secs \section*{I}R
seco \section[I]{}R
sec \section{I}R
\setlength{I}{}
hw2tw \setlength{\headwidth}{\textwidth}R
sfd \sffamily
sld \slshape
sqrto \sqrto \sqrt[I]{}
sqrt \sqrt \sqrt{I}
stcount \stepcounter{I}R
spars \spars \subparagraph*{I}
sparo \sparo \subparagraph[I]{}
spar \spar \subparagraph{I}
ssecs \ssecs \subsection*{I}R
sseco \sseco \subsection[I]{}R
ssec \ssec \subsection{I}R
sssecs \sssecs \subsubsection*{I}R
\ssseco \subsubsection[I][]R
ssseco \subsubsection[I]{}R
sssec \sssec \subsubsection{I}R
tableofcontents \tableofcontentsR
toc \toc \tableofcontentsR
tilde \tilde \textasciitilde
bf \bf \textbf{I}
--- \textemdash\
-- \textendash\
it \it \textit{I}
\rm \textrm{I}
sc \sc \textsc{I}
sf \sf \textsf{I}
sl \sl \textsl{I}
tt \tt \texttt{I}
up \up \textup{I}
tw \tw \textwidth
\text{I}
\thanks{I}R
\title{I}R
ttd \ttfamily
upd \upshape
url \url{I}
usepo \usepackage[I]{}R
usep \usepackage{I}R
\vdots
\vspace*{I}R
\vspace{I}R
{abstract}RIR\end{abstract}
{align*}RIR\end{align*}
{alignat*}{I}RR\end{alignat*}
{alignat}{I}RR\end{alignat}
{alignedat}{I}RR\end{alignedat}
{aligned}RIR\end{aligned}
{aligned}[I]RR\end{aligned}
{align}RIR\end{align}
{appendix}RIR\end{appendix}
{array}RIR\end{array}
{bmatrix}RIR\end{bmatrix}
{cases}RIR\end{cases}
{center}RIR\end{center}
{compactenum}R\itemRIR\end{compactenum}
{compactenum}[I]R\itemRR\end{compactenum}
{compactitem}R\itemRIR\end{compactitem}
{compactitem}[I]R\itemRR\end{compactitem}
{description}R\item[I]RR\end{description}
{document}RRIRR\end{document}
{enumerate}R\itemRIR\end{enumerate}
{enumerate}[I]R\itemRR\end{enumerate}
{eqnarray*}RIR\end{eqnarray*}
{eqnarray}RIR\end{eqnarray}
{equation}RIR\end{equation}
{figure}RIR\end{figure}
{figure}[I]RR\end{figure}
{flalign*}RIR\end{flalign*}
{flalign}RIR\end{flalign}
{flushleft}RIR\end{flushleft}
{flushright}RIR\end{flushright}
{gather*}RIR\end{gather*}
{gathered}RIR\end{gathered}
{gathered}[I]RR\end{gathered}
{gather}RIR\end{gather}
{itemize}R\itemRIR\end{itemize}
{itemize}[I]R\itemRR\end{itemize}
{letter}{I}RR\end{letter}
{list}{I}{}R\itemRR\end{list}
{minipage}[I]{}RR\end{minipage}
{minipage}{I}RR\end{minipage}
{multline*}RIR\end{multline*}
{multline}RIR\end{multline}
{picture}RIR\end{picture}
{pmatrix}RIR\end{pmatrix}
{quotation}RIR\end{quotation}
{quote}RIR\end{quote}
{split}RIR\end{split}
{subequations}RIR\end{subequations}
{tabbing}RIR\end{tabbing}
{table*}RIR\end{table*}
{table*}[I]RR\end{table*}
{table}RIR\end{table}
{table}[I]RR\end{table}
{tabular*}{I}{}RR\end{tabular*}
{tabularx}{I}{}RR\end{tabularx}
{tabular}{I}RR\end{tabular}
{thebibliography}RIR\end{thebibliography}
{theindex}RIR\end{theindex}
{theorem}RIR\end{theorem}
{titlepage}RIR\end{titlepage}
{trivlist}RIR\end{trivlist}
{varwidth}{I}RR\end{varwidth}
{verbatim}RIR\end{verbatim}
{verse}RIR\end{verse}

Keywords defined in tw-latex-pkg.txt (defined by various packages):

\addbibresource{I}R
botr \bottomruleR
\citep{I}
\citet{I}
cmidr \cmidrule(I){}
cmidro \cmidrule[I](){}
\enquote{I}
geometry \geometry{}
href \href{I}{}
\midruleR
\printbibliographyR
\printbibliography[I]R
topr \topruleR
{compactenum}R\itemRIR\end{compactenum}
{compactenum}[I]R\itemRR\end{compactenum}
{compactitem}R\itemRIR\end{compactitem}
{compactitem}[I]R\itemRR\end{compactitem}
{tikzpicture}RIR\end{tikzpicture}
{tikzpicture}[I]RR\end{tikzpicture}

Keywords defined in tw-beamer.txt (defined by the beamer package):

\action<I>{}
\againframe<I>[]{}R
\againframe<I>{}R
\againframe{I}R
\alert<I>{}
\alert{I}
\alt<I>{}{}
bfrm \begin{frame}RIR\end{frame}
\framesubtitle<I>{}R
\framesubtitle{I}R
\frametitle<I>[]{}R
\frametitle{I}R
\framezoom<I><>(,)(,)
\framezoom<I><>[](,)(,)
\includeonlyframes{I}R
\includeonlylecture{I}R
\invisible<I>{}
\lecture{I}{}R
\note<I>[]{}R
\note<I>{}R
\note{I}R
\only<I>{}
\onslide<I>{}
\pauseR
\pause[I]R
\structure{I}R
\temporal<I>{}{}{}
\uncover<I>{}
\usebeamercolor{I}R
\visible<I>{}
{actionenv}<I>RR\end{actionenv}
{alertenv}<I>RR\end{alertenv}
{altenv}<I>{}{}{}{}RR\end{altenv}
{beamercolorbox}[I]{}RR\end{beamercolorbox}
{beamercolorbox}{I}RR\end{beamercolorbox}
{block}<I>{}RR\end{block}
{block}{I}RR\end{block}
{columns}RIR\end{columns}
{columns}[I]RR\end{columns}
{column}[I]{}RR\end{column}
{column}{I}RR\end{column}
{frame}RIR\end{frame}
{frame}[I]{}RR\end{frame}
{frame}{I}RR\end{frame}
{onlyenv}<I>RR\end{onlyenv}
{overlayarea}{I}{}RR\end{overlayarea}
{overprint}RIR\end{overprint}
{structureenv}RIR\end{structureenv}

Keywords defined in tw-context.txt (defined in ConTEXt):

\starttext
\stoptext

There are also environment codes (above) without \begin{ (which is itself a keyword); this allows to finish the environment name alone by if one started to input it manually.