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 (#rrggbb) 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 Mac OS X, 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+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 Output Panel

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

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+Backspace

Clear

Ctrl+C

Copy

Ctrl+F

Find...

Ctrl+G

Find Again

Ctrl+J

Go to Page...

Ctrl+N

New

Ctrl+O

Open...

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

End

Last Page

Home

First Page

PgDown

Next Page

PgUp

Previous Page

A.2.2 Actions listed alphabetically

actionAbout_Scripts

actionPaste

actionAbout_TW

actionPlace_on_Left

actionActual_Size

actionPlace_on_Right

actionApply_to_Selection

actionPreferences

actionAutoIndent_None

actionPrevious_Page

actionAuto_Follow_Focus

actionQuit_TeXworks

actionBalance_Delimiters

actionRedo

actionClear

actionRemove_Aux_Files

actionClose

actionReplace

actionComment

actionReplace_Again

actionCopy

actionRevert_to_Saved

actionCopy_to_Find

actionSave

actionCopy_to_Replace

actionSave_All

actionCut

actionSave_As

actionFind

actionScroll

actionFind_Again

actionSelect_All

actionFind_Selection

actionSelect_Image

actionFirst_Page

actionSelect_Text

actionFit_to_Width

actionSettings_and_Resources

actionFit_to_Window

actionShow_Hide_Console

actionFont

actionShow_Scripts_Folder

actionFull_Screen

actionShow_Selection

actionGoToHomePage

actionSide_by_Side

actionGo_to_Line

actionSmartQuotes_None

actionGo_to_Page

actionStack

actionGo_to_Preview

actionSyntaxColoring_None

actionGo_to_Source

actionTile

actionHard_Wrap

actionTo_Lowercase

actionIndent

actionTo_Uppercase

actionLast_Page

actionToggle_Case

actionLine_Numbers

actionTypeset

actionMagnify

actionUncomment

actionManage_Scripts

actionUndo

actionNew

actionUnindent

actionNew_from_Template

actionUpdate_Scripts

actionNext_Page

actionWrap_Lines

actionNone

actionWriteToMailingList

actionOpen

actionZoom_In

actionOpen_Recent

actionZoom_Out

A.2.3 Actions listed by menu

For the source window:

Edit

actionBalance_Delimiters

actionRedo

actionClear

actionSelect_All

actionCopy

actionTo_Lowercase

actionCut

actionTo_Uppercase

actionNone

actionToggle_Case

actionPaste

actionUndo

actionPreferences

File

actionClose

actionRemove_Aux_Files

actionNew

actionRevert_to_Saved

actionNew_from_Template

actionSave

actionOpen

actionSave_All

actionOpen_Recent

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

actionClear

actionPreferences

actionCopy

actionRedo

actionCut

actionUndo

actionPaste

File

actionClose

actionOpen

actionNew

actionOpen_Recent

actionNew_from_Template

actionQuit_TeXworks

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

actionLast_Page

actionFirst_Page

actionNext_Page

actionFit_to_Width

actionPrevious_Page

actionFit_to_Window

actionZoom_In

actionFull_Screen

actionZoom_Out

actionGo_to_Page

Window

actionGo_to_Source

actionSide_by_Side

actionPlace_on_Left

actionStack

actionPlace_on_Right

actionTile

A.2.4 Other actions

In addition to the static actions listed above, 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

xd

\xd

\delta

xcd

\xcd

\Delta

xe

\xe

\epsilon

xet

\xet

\eta

xg

\xg

\gamma

xcg

\xcg

\Gamma

\hskip

\indent

\input

xio

\xio

\iota

xl

\xl

\lambda

xcl

\xcl

\Lambda

\msk

\medskip

\medskipR

xm

\xm

\mu

\noindent

xn

\xn

\nu

xo

\xo

\omega

xco

\xco

\Omega

\par

xcph

\xcph

\Phi

xph

\xph

\phi

xp

\xp

\pi

xcp

\xcp

\Pi

xcps

\xcps

\Psi

xps

\xps

\psi

xr

\xr

\rho

\scriptsize

xs

\xs

\sigma

xcs

\xcs

\Sigma

\smallskipR

\ssk

\smallskipR

xt

\xt

\tau

tex

\tex

\TeX

\TeX

texs

\texs

\TeX\

\TeX\

xth

\xth

\theta

xcth

\xcth

\Theta

xu

\xu

\upsilon

xcu

\xcu

\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 \)

dxa

\dxa

\(\alpha\)

dxb

\dxb

\(\beta\)

dxch

\dxch

\(\chi\)

dxd

\dxd

\(\delta\)

dxcd

\dxcd

\(\Delta\)

dxe

\dxe

\(\epsilon\)

dxet

\dxet

\(\eta\)

dxg

\dxg

\(\gamma\)

dxcg

\dxcg

\(\Gamma\)

dxio

\dxio

\(\iota\)

dxl

\dxl

\(\lambda\)

dxcl

\dxcl

\(\Lambda\)

dxm

\dxm

\(\mu\)

dxn

\dxn

\(\nu\)

dxo

\dxo

\(\omega\)

dxco

\dxco

\(\Omega\)

dxcph

\dxcph

\(\Phi\)

dxph

\dxph

\(\phi\)

dxp

\dxp

\(\pi\)

dxcp

\dxcp

\(\Pi\)

dxcps

\dxcps

\(\Psi\)

dxps

\dxps

\(\psi\)

dxr

\dxr

\(\rho\)

dxs

\dxs

\(\sigma\)

\dxcs

\(\Sigma\)

dxt

\dxt

\(\tau\)

dxth

\dxth

\(\theta\)

dxcth

\dxcth

\(\Theta\)

dxu

\dxu

\(\upsilon\)

dxcu

\dxcu

\(\Upsilon\)

dxve

\dxve

\(\varepsilon\)

dxvph

\dxvph

\(\varphi\)

dxvp

\dxvp

\(\varpi\)

dxvr

\dxvr

\(\varrho\)

dxvs

\dxvs

\(\varsigma\)

dxvth

\dxvth

\(\vartheta\)

dxx

\dxx

\(\xi\)

dxcx

\dxcx

\(\Xi\)

dxz

\dxz

\(\zeta\)

\addtocounter{I}{}

\adc

\addtocounter{I}{}

adcount

\addtocounter{I}{}R

\adl

\addtolength{I}{}

\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}

btbls

\btbls

\begin{table*}RIR\end{table*}

btabls

\btabls

\begin{table*}RIR\end{table*}

btablso

\btablso

\begin{table*}[I]RR\end{table*}

btblso

\btblso

\begin{table*}[I]RR\end{table*}

btbl

\btbl

\begin{table}RIR\end{table}

btabl

\btabl

\begin{table}RIR\end{table}

btblo

\btblo

\begin{table}[I]RR\end{table}

btablo

\btablo

\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}

\bfseries

bfd

\bfseries

bibitemo

\bibitem[I]{}R

\bibitem[I]{}R

bibitem

\bibitem{I}R

\bibitem{I}R

bibstyle

\bibstyle

\bibliographystyle{I}

biblio

\bibliography{I}

\bibliography{I}

\bottomruleR

botr

\bottomruleR

\boxed{I}

\caption{I}R

\cdots

center

\centering

\centering

\chapter{I}

chap

\chapter{I}R

\citep{I}

\citet{I}

\cite{I}

\cline{I}

\cmidrule(I){}

cmidr

\cmidrule(I){}

cmidro

\cmidrule[I](){}

\cmidrule[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}

\emph{I}

\end{I}R

\eqref{I}

\fboxrule{I}

\fboxsep{I}

fbox

\fbox{I}

\fbox{I}

\footnotesize

foot

\footnote{I}

\footnote{I}

frac

\frac{I}{}

\frac{I}{}

fboxoo

\fboxoo

\framebox[I][]{}

\framebox[I][]{}

\framebox[I]{}

fboxo

\fboxo

\framebox[I]{}

geometry

\geometry{}

\geometry{}

\headwidth

hw

\headwidth

\hlineR

href

\href{I}{}

\href{I}{}

\hspace*{I}

\hspace{I}

incgo

\includegraphics[I]{}R

\includegraphics[I]{}R

\includegraphics{I}R

incg

\includegraphics{I}R

\include{I}R

\intertext{I}

\itemRI

ito

\item[I]R

\item[I]R

itd

\itshape

\itshape

lbl

\lbl

\label{I}

\label{I}

\Large

\large

\LaTeX

latex

\latex

\LaTeX

\LaTeX\

latexs

\latexs

\LaTeX\

\LaTeXe

latexe

\latexe

\LaTeXe

latexes

\latexes

\LaTeXe\

\LaTeXe\

\ldots

\listoffiguresR

listf

\listf

\listoffiguresR

\listoftablesR

listt

\listt

\listoftablesR

mboxoo

\mboxoo

\makebox[I][]{}

\makebox[I][]{}

\makebox[I]{}

mboxo

\mboxo

\makebox[I]{}

mpar

\mpar

\marginpar{I}

\marginpar{I}

\mathbf{I}

mbf

\mbf

\mathbf{I}

mcal

\mcal

\mathcal{I}

\mathcal{I}

mit

\mit

\mathit{I}

\mathit{I}

mnorm

\mnorm

\mathnormal{I}

\mathnormal{I}

\mathrm{I}

mrm

\mrm

\mathrm{I}

msf

\msf

\mathsf{I}

\mathsf{I}

\mathtt{I}

mtt

\mtt

\mathtt{I}

mbox

\mbox{I}

\mbox{I}

\mdseries

mdd

\mdseries

\midruleR

midr

\midruleR

multc

\multc

\multicolumn{I}{}{}

\multicolumn{I}{}{}

multic

\multicolumn{I}{}{}

nct

\newcolumntype{I}{}

newct

\newcolumntype{I}{}

\newcolumntype{I}{}

\newcommand{I}[][]{}R

ncmoo

\newcommand{I}[][]{}R

newcoo

\newcommand{I}[][]{}R

newco

\newcommand{I}[]{}R

ncmo

\newcommand{I}[]{}R

\newcommand{I}[]{}R

\newcommand{I}{}R

ncm

\newcommand{I}{}R

newc

\newcommand{I}{}R

nenvoo

\newenvironment{I}[][]{}{}R

\newenvironment{I}[][]{}{}R

neweoo

\newenvironment{I}[][]{}{}R

nenvo

\newenvironment{I}[]{}{}R

neweo

\newenvironment{I}[]{}{}R

nenv

\newenvironment{I}{}{}R

newe

\newenvironment{I}{}{}R

\newenvironment{I}{}{}R

nlen

\newlength{I}R

\newlength{I}R

newlen

\newlength{I}R

newlin

\newlineR

nline

\newlineR

\newlineR

npg

\npg

\newpageR

newpg

\newpageR

\newpageR

\newtheorem{I}[]{}R

\newtheorem{I}{}R

\newtheorem{I}{}[]R

\nocite{I}

\normalsize

\pagebreakR

pgref

\pageref{I}

\pageref{I}

pgs

\pagestyle{I}R

\pagestyle{I}R

pars

\paragraph*{I}R

\paragraph*{I}R

\paragraph[I]{}R

paro

\paragraph[I]{}R

\paragraph{I}R

par

\paragraph{I}R

pboxo

\pboxo

\parbox[I]{}{}

\parbox[I]{}{}

parboxo

\parbox[I]{}{}

parbox

\parbox{I}{}

\parbox{I}{}

\pbox

\parbox{I}{}

\pbox{I}{}

pbox

\pbox{#INS}{}

rboxoo

\rboxoo

\raisebox{I}[][]{}

\raisebox{I}[][]{}

rboxo

\rboxo

\raisebox{I}[]{}

\raisebox{I}[]{}

\raisebox{I}{}

rbox

\rbox

\raisebox{I}{}

ref

\ref{I}

\ref{I}

rnewcoo

\renewcommand{I}[][]{}R

rncmoo

\renewcommand{I}[][]{}R

\renewcommand{I}[][]{}R

rnewco

\renewcommand{I}[]{}R

rncmo

\renewcommand{I}[]{}R

\renewcommand{I}[]{}R

rncm

\renewcommand{I}{}R

rnewc

\renewcommand{I}{}R

\renewcommand{I}{}R

\rmfamily

rmc

\rmfamily

\rule[I]{}{}

\rule{I}{}

scd

\scshape

\scshape

secs

\section*{I}R

\section*{I}R

seco

\section[I]{}R

\section[I]{}R

\section{I}R

sec

\section{I}R

\setlength{I}{}

hw2tw

\setlength{\headwidth}{\textwidth}R

\sffamily

sfd

\sffamily

\slshape

sld

\slshape

sqrto

\sqrto

\sqrt[I]{}

sqrt

\sqrt

\sqrt{I}

stcount

\stepcounter{I}R

spars

\spars

\subparagraph*{I}

\subparagraph*{I}

\subparagraph[I]{}

sparo

\sparo

\subparagraph[I]{}

\subparagraph{I}

spar

\spar

\subparagraph{I}

ssecs

\ssecs

\subsection*{I}R

\subsection*{I}R

sseco

\sseco

\subsection[I]{}R

\subsection[I]{}R

ssec

\ssec

\subsection{I}R

\subsection{I}R

\subsubsection*{I}R

sssecs

\sssecs

\subsubsection*{I}R

\subsubsection[I][]R

\ssseco

\subsubsection[I][]R

ssseco

\subsubsection[I]{}R

sssec

\sssec

\subsubsection{I}R

\subsubsection{I}R

toc

\toc

\tableofcontentsR

tableofcontents

\tableofcontentsR

\tableofcontentsR

tilde

\tilde

\textasciitilde

bf

\bf

\textbf{I}

\textbf{I}

---

\textemdash\

--

\textendash\

it

\it

\textit{I}

\textit{I}

\rm

\textrm{I}

sc

\sc

\textsc{I}

\textsc{I}

sf

\sf

\textsf{I}

\textsf{I}

\textsl{I}

sl

\sl

\textsl{I}

tt

\tt

\texttt{I}

\texttt{I}

\textup{I}

up

\up

\textup{I}

tw

\tw

\textwidth

\textwidth

\text{I}

\thanks{I}R

\title{I}R

topr

\topruleR

\topruleR

ttd

\ttfamily

\ttfamily

upd

\upshape

\upshape

url

\url{I}

\url{I}

\usepackage[I]{}R

usepo

\usepackage[I]{}R

usep

\usepackage{I}R

\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}

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.