diff --git a/NEWS b/NEWS
new file mode 100644
index 000000000..00ca0fcde
--- /dev/null
+++ b/NEWS
@@ -0,0 +1,48 @@
+Release 0.4.0
+ * Scripting (QtScript, Lua, Python)
+ * New "Follow focus" mode (experimental)
+ * New %!TeX header (spellcheck)
+ * New "Save All" menu item
+ * New auto-completion file for the beamer class
+ * Support background color/font flags in syntax highlighting
+ * Save and restore window states for recent documents
+ * Implement a command line parser
+ * Automatically update resources when installing new releases
+
+ * Only display each language once in the sellchecker language selection
+ * Display human-readable names in addition to the ISO codes for the
+ spellchecker language selection
+ * Implement "Smarten quotes" for a selection
+ * Preserve document view when reloading after external changes
+ * Handle different file encodings and line ending conventions and allow the
+ user to change them
+ * Made pdfLaTeX the default on fresh installation
+ * Indicate a document's modification state in the windows menu
+ * Improve the "Email to mailing list" template
+ * Make "Highlight current line" color palette-aware (issue 467)
+ * Updated SyncTeX to 1.9
+ * Allow Esc and Return in the tags and search result windows
+ * Improve "Remove Auxiliary Files" dialog
+ * Fix handling of external file links in PDFs
+ * Numerous other bug fixes
+
+ * [Win/*nix] Set TeXworks as the default editor when hitting 'e' after a
+ TeX error
+ * [Win] Fix handling of "All Files" in the "Save As" dialog (issue 257)
+
+
+Release 0.2.3 (TL'09 DVD release)
+ * Fix potential crash in Balance Delimiters
+ * Fix a few memory leaks (issue 212)
+ * Localization updates (Chinese, German, Italian, Polish)
+
+Release 0.2.2
+ * Bugfix to recognize jpeg image on windows
+
+Release 0.2.1
+ * Fixed order of taskbar buttons (issue 203)
+ * Fixed crash when opening a PDF file from the startup dialog (issue 207)
+ * Localization updates (Persian)
+
+Release 0.2.0
+ * Initial stable release
diff --git a/TeXworks.plist b/TeXworks.plist
index 80f42968a..ad65956ee 100644
--- a/TeXworks.plist
+++ b/TeXworks.plist
@@ -48,7 +48,7 @@
Microsoft, Windows, and the Windows logo are +registered trademarks of Microsoft Corporation in the United States +and other countries.
+ +Apple, Mac, and Mac OS are trademarks of Apple +Inc., registered in the U.S. and other countries.
+ +Google is a trademark of Google Inc. +
+ +Unless noted otherwise, all icons are either part +of TEXworks or part of the Tango Icon Library (http://tango.freedesktop.org/Tango_Icon_Library). +
+ + + + +All the functions and utilities described so +far were built into TEXworks by default. While some of +them could be configured or customized to a certain extent, they +are intended to suit the most common needs of a general audience. +However, the TEX world is very large and diverse. In +order to enable users to address their special needs—from simply +making some text bold to fulfilling special requirements for the +next book or scientific paper you want to publish—, the core +functionality of TEXworks can be extended or modified by +the use of scripts.
+ +Scripts are simple text files that you can open, +read, or modify in any text editor (including TEXworks, +of course). They are written in a specific scripting language that +is essentially a programming language. At the time of writing, +TEXworks supports QtScript1 (built-in), Lua (with a plugin), and Python +(with a plugin). To see which scripting languages are available on +your system, use the Scripts→Scripting +TEXworks→About Scripts… menu +item.
+ +Writing scripts is beyond the scope of this manual, but is +documented elsewhere2. Here, only the installation and usage of +scripts will be discussed.
+ +TEXworks distinguishes between two +types of scripts: standalone scripts and hook scripts. The primary +purpose of standalone scripts is to add new functionality to the +program. If you need a new function, such as a command to make the +selected text bold, a standalone script is the one to choose. These +scripts get an item in the Scripts menu, and +you can run them simply by clicking on that menu item (or by using +a keyboard shortcut, if the script provides one).
+ +Hook scripts, on the other hand, are meant to +extend existing TEXworks functions. They are hooked into +the code at specific places, e.g., after the typeset process has +finished or after a file was loaded, and can add or modify whatever +TEXworks is doing. One example for this would be a +script that analyses a newly loaded file and sets the +spell-checking language based on babel commands found in the +document. Thus, hook scripts do not show up in the Scripts menu but are instead run automatically when the +TEXworks function they modify is used.
+ +You can easily determine which type of script you +have by opening the script file. Near the top of the file, you +should find a line similar to
+ + + +Alternatively—once the script is installed—, +you can use the dialogue available from Scripts→Scripting TEXworks→Manage Scripts to +display this information.
+ +A word of caution first: do not install scripts +from a source you do not trust! Before installing scripts, you +should make sure that the file you are about to install indeed does +what you expect. Scripts are very powerful—they can do almost +everything a normal program can do. So while there are some +security precautions built into TEXworks, you should +still be aware that scripts could potentially harm your computer +and cause (among other things) crashes and data loss. In +particular, scripts can read, create, and modify arbitrary files on +your hard drive.
+ +That said, installing scripts is very simple. +Script files are generally installed in <resources>/scripts or subdirectories of it. +These subdirectories are shown as submenus of the Scripts menu, so they can be used to group and categorize +scripts. This is especially useful if you use many different +scripts that would otherwise make the Scripts +menu very confusing. One easy way to open the scripts folder is the Scripts→Scripting TEXworks→Show Scripts Folder +menu item.
+ +Since scripts are usually simple plain-text +files, they do not come with fancy installers. To install them, +simply copy or decompress (if archived, e.g., in a .zip file) the +script file—and any other required files that you may have +received—into <resources>/scripts +or a subdirectory of it.
+ +After having installed a new script file, +TEXworks needs to become aware of it. It automatically +scans for all scripts during start-up, so you could close all +TEXworks windows and restart the application. An +alternative is provided by the Scripts→Scripting TEXworks →Reload Script List +menu item which rescans all scripts without otherwise interfering +with the program.
+ +You can also disable scripts (or whole +directories of scripts) if you want to. This can be useful if you +do not need some scripts for some time and do not want them to +clutter the Scripts menu, but do not want to +uninstall them entirely. Or if you want to prevent hook scripts +from being run automatically. To do this, open the “Manage Scripts” +dialogue with the Scripts→Scripting +TEXworks→Manage Scripts menu item. Simply uncheck the +script you want to disable and it won’t bother you again. +
+ + + +Using scripts is simple. Hook scripts are used +automatically—you don’t need to do anything. Standalone scripts +show up in the Scripts menu or one of its +submenus. If you cannot find a script you are looking for, or if +you find a script you do not know the purpose of, you can use the +“Manage Scripts” dialogue to get additional information (like the +author, a brief description, etc.) about it.
+ +Some scripts need to run other programs on your +system. One example would be a script that opens the pdf in the +system’s default previewer, e.g., for printing. Since running +arbitrary commands can in some situations be particularly +dangerous, this functionality is disabled by default. You will +notice this when a dialogue pops up informing you of an error in +the script, or a similar message is displayed in the status bar. To +enable scripts to execute system commands, open the preferences +dialogue via Edit →Preferences…. There, +go to the “Scripts” tab and check the “Allow scripts to run system +commands” option. If you want to disable this function again later +just uncheck the option. Note that this option applies equally to +all scripts—there is currently no way to allow command execution +only for some scripts.
+ + + + +In this manual, the authors tried to give an +overview over TEXworks and a concise introduction to get +you started. TEXworks is constantly evolving and +improving, however, so the information presented here will never be +complete.
+ +Additional, frequently updated documents are +posted in the wiki hosted by Google Code at http://code.google.com/p/texworks/w/list. Particularly +noteworthy are the following pages:
+ +If you run into problems with +TEXworks, it is advisable to browse the mailing list +archives accessible via http://tug.org/pipermail/texworks/. If you use +TEXworks regularly or are interested in learning about +problems and solutions when using it for some other reason, you can +also consider subscribing to the list at http://tug.org/mailman/listinfo/texworks to stay +up-to-date. For the occasional post to the mailing list, you can +also use the Help→Email to mailing list +menu item. Please make sure you replace the default subject by +something describing your issue and to include all information that +might help resolving it. That way, you are much more likely to get +many helpful replies.
+ +If you find a bug in TEXworks or want +to suggest a new feature for future versions, you should have a +look at the issue list at Google Code (http://code.google.com/p/texworks/issues/list). Before +posting a new item, please make sure that a similar report or +request is not already on the list and that the issue list is +indeed the right place, though. If in doubt, please ask on the +mailing list first.
+ +Happy TEXing!
+ + + + +A complete guide how to compile +TEXworks is far beyond the scope of this manual. +However, most users should find precompiled versions suitable for +their system come either with their TEX distribution or +their operating system. If this is not the case, several +precompiled versions can also be downloaded from http://code.google.com/p/texworks/downloads/list. +
+ +Compiling TEXworks yourself is only +necessary if your system is not (yet) supported, if you want to +always have the latest features (and bugs), or generally want to +help in improving TEXworks further. To this end, there +are some documents giving detailed instructions to compile +TEXworks on different machines.
+ + + + + + + + + + + + + + + + +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:
+ + + +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:
+ + + +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
+ + + +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:
+ + + +The use of keyboard shortcuts greatly facilitates typing in and the +management of the source and the preview. 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:
+ +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.
+ + + +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 | +
+ | +|
+ | |
+ | |
+ + + + | +|
+ + + + | +|
+ + + + | +
+ | |
+
+
+ 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 + |
+
+
+
+
+ actionShow_Hide_Console + |
+
+
+
+ actionFit_to_Window + |
+
+
+
+
+ actionShow_Scripts_Folder + |
+
+ + | + |
+
+
+ actionFont + |
+
+
+
+
+ actionShow_Selection + |
+
+
+
+ actionFull_Screen + |
+
+
+
+
+ actionSide_by_Side + |
+
+
+
+ actionGoToHomePage + |
+
+
+
+
+ actionSmartQuotes_None + |
+
+
+
+ actionGo_to_Line + |
+
+
+
+
+ actionStack + |
+
+
+
+ actionGo_to_Page + |
+
+
+
+
+ actionSyntaxColoring_None + |
+
+
+
+ actionGo_to_Preview + |
+
+
+
+
+ actionTile + |
+
+
+
+ actionGo_to_Source + |
+
+
+
+
+ actionTo_Lowercase + |
+
+
+
+ actionHard_Wrap + |
+
+
+
+
+ actionTo_Uppercase + |
+
+
+
+ actionIndent + |
+
+
+
+
+ actionToggle_Case + |
+
+
+
+ actionLast_Page + |
+
+
+
+
+ actionTypeset + |
+
+
+
+ actionLine_Numbers + |
+
+
+
+
+ actionUncomment + |
+
+
+
+ actionMagnify + |
+
+
+
+
+ actionUndo + |
+
+
+
+ actionManage_Scripts + |
+
+
+
+
+ actionUnindent + |
+
+
+
+ actionNew + |
+
+
+
+
+ actionUpdate_Scripts + |
+
+
+
+ actionNew_from_Template + |
+
+
+
+
+ actionWrap_Lines + |
+
+
+
+ actionNext_Page + |
+
+
+
+
+ actionWriteToMailingList + |
+
+
+
+ actionNone + |
+
+
+
+
+ actionZoom_In + |
+
+
+
+ actionOpen + |
+
+
+
+
+ actionZoom_Out + |
+
+
+
+ actionOpen_Recent + |
+
++ + + + | +
+ | +|
+ | |
+ | |
+ + + + | +|
+ + + + | +|
+ + + + | +
+ | |
+
+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 + |
+
+
+
+
+ actionWriteToMailingList + |
+
+
+
+ actionGoToHomePage + |
+
++ + + + | +
+ | +|
+
+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 + |
+
+ | +|
+ | |
+ | |
+ + + + | +|
+ + + + | +|
+ + + + | +
+ | |
+
+Edit
+
+ |
+|
+
+
+ actionClear + |
+
+
+
+
+ actionPreferences + |
+
+
+
+ actionCopy + |
+
+
+
+
+ actionRedo + |
+
+
+
+ actionCut + |
+
+
+
+
+ actionUndo + |
+
+
+
+ actionPaste + |
+
++ + + + | +
+ | |
+
+File
+
+ |
+|
+
+
+ actionClose + |
+
+
+
+
+ actionOpen + |
+
+
+
+ actionNew + |
+
+
+
+
+ actionOpen_Recent + |
+
+
+
+ actionNew_from_Template + |
+
+
+
+
+ actionQuit_TeXworks + |
+
+ | +|
+
+Help
+
+ |
+|
+
+
+ actionAbout_TW + |
+
+
+
+
+ actionWriteToMailingList + |
+
+
+
+ actionGoToHomePage + |
+
++ + + + | +
+ | +|
+
+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 + |
+
+ | +|
+ | |
+ | |
+ + + + | +|
+ + + + | +|
+ + + + | +
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. +
+ + + +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
+ + + +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}R∙R\end{alignat*}∙ + |
+
+
+
+ baliat + |
+
+
+
+
+ \baliat + |
+
+
+
+
+ \begin{alignat}{I}R∙R\end{alignat}∙ + |
+
+
+
+ baliedat + |
+
+
+
+
+ \baliedat + |
+
+
+
+
+ \begin{alignedat}RIR\end{alignedat}∙ + |
+
+
+
+ baliedato + |
+
+
+
+
+ \baliedato + |
+
+
+
+
+ \begin{alignedat}[I]R∙R\end{alignedat}∙ + |
+
+
+
+ balied + |
+
+
+
+
+ \balied + |
+
+
+
+
+ \begin{aligned}{I}R∙R\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\itemR∙R\end{compactenum}∙ + |
+
+
+
+ bcitem + |
+
+
+
+
+ \bcitem + |
+
+
+
+
+ \begin{compactitem}R\itemRIR\end{compactitem}∙ + |
+
+
+
+ bcitemo + |
+
+
+
+
+ \bcitemo + |
+
+
+
+
+ \begin{compactitem}[I]R\itemR∙R\end{compactitem}∙ + |
+
+
+
+ bdes + |
+
+
+
+
+ \bdes + |
+
+
+
+
+ \begin{description}R\item[I]R∙R\end{description}∙ + |
+
+
+
+ benu + |
+
+
+
+
+ \benu + |
+
+
+
+
+ \begin{enumerate}R\itemRIR\end{enumerate}∙ + |
+
+
+
+ benuo + |
+
+
+
+
+ \benuo + |
+
+
+
+
+ \begin{enumerate}[I]R\itemR∙R\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]R∙R\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]R∙R\end{gathered}∙ + |
+
+
+
+ bgath + |
+
+
+
+
+ \bgath + |
+
+
+
+
+ \begin{gather}RIR\end{gather}∙ + |
+
+
+
+ bite + |
+
+
+
+
+ \bite + |
+
+
+
+
+ \begin{itemize}R\itemRIR\end{itemize}∙ + |
+
+
+
+ biteo + |
+
+
+
+
+ \biteo + |
+
+
+
+
+ \begin{itemize}[I]R\itemR∙R\end{itemize}∙ + |
+
+
+
+ blett + |
+
+
+
+
+ \blett + |
+
+
+
+
+ \begin{letter}{I}R∙R\end{letter}∙ + |
+
+
+
+ blist + |
+
+
+
+
+ \blist + |
+
+
+
+
+ \begin{list}{I}{∙}R\itemR∙R\end{list}∙ + |
+
+
+
+ bminpo + |
+
+
+
+
+ \bminpo + |
+
+
+
+
+ \begin{minipage}[I]{∙}R∙R\end{minipage}∙ + |
+
+
+
+ bminp + |
+
+
+
+
+ \bminp + |
+
+
+
+
+ \begin{minipage}{I}R∙R\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]R∙R\end{table*}∙ + |
+
+
+
+ btblso + |
+
+
+
+
+ \btblso + |
+
+
+
+
+ \begin{table*}[I]R∙R\end{table*}∙ + |
+
+
+
+ btbl + |
+
+
+
+
+ \btbl + |
+
+
+
+
+ \begin{table}RIR\end{table}∙ + |
+
+
+
+ btabl + |
+
+
+
+
+ \btabl + |
+
+
+
+
+ \begin{table}RIR\end{table}∙ + |
+
+
+
+ btblo + |
+
+
+
+
+ \btblo + |
+
+
+
+
+ \begin{table}[I]R∙R\end{table}∙ + |
+
+
+
+ btablo + |
+
+
+
+
+ \btablo + |
+
+
+
+
+ \begin{table}[I]R∙R\end{table}∙ + |
+
+
+
+ btabs + |
+
+
+
+
+ \btabs + |
+
+
+
+
+ \begin{tabular*}{I}{∙}R∙R\end{tabular*}∙ + |
+
+
+
+ btabx + |
+
+
+
+
+ \btabx + |
+
+
+
+
+ \begin{tabularx}{I}{∙}R∙R\end{tabularx}∙ + |
+
+
+
+ btab + |
+
+
+
+
+ \btab + |
+
+
+
+
+ \begin{tabular}{I}R∙R\end{tabular}∙ + |
+
+
+
+ bbib + |
+
+
+
+
+ \bbib + |
+
+
+
+
+ \begin{thebibliography}{I}R\bibitem{∙}R∙R\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}R∙R\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}R∙R\end{alignat*}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {alignat}{I}R∙R\end{alignat}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {alignedat}{I}R∙R\end{alignedat}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {aligned}RIR\end{aligned}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {aligned}[I]R∙R\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\itemR∙R\end{compactenum}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {compactitem}R\itemRIR\end{compactitem}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {compactitem}[I]R\itemR∙R\end{compactitem}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {description}R\item[I]R∙R\end{description}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {enumerate}R\itemRIR\end{enumerate}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {enumerate}[I]R\itemR∙R\end{enumerate}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {eqnarray*}RIR\end{eqnarray*}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {eqnarray}RIR\end{eqnarray}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {equation}RIR\end{equation}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {figure}RIR\end{figure}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {figure}[I]R∙R\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]R∙R\end{gathered}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {gather}RIR\end{gather}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {itemize}R\itemRIR\end{itemize}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {itemize}[I]R\itemR∙R\end{itemize}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {letter}{I}R∙R\end{letter}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {list}{I}{∙}R\itemR∙R\end{list}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {minipage}[I]{∙}R∙R\end{minipage}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {minipage}{I}R∙R\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]R∙R\end{table*}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {table}RIR\end{table}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {table}[I]R∙R\end{table}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {tabular*}{I}{∙}R∙R\end{tabular*}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {tabularx}{I}{∙}R∙R\end{tabularx}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {tabular}{I}R∙R\end{tabular}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {thebibliography}RIR\end{thebibliography}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {theindex}RIR\end{theindex}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {theorem}RIR\end{theorem}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {titlepage}RIR\end{titlepage}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {trivlist}RIR\end{trivlist}∙ + |
+
+ + + + | + ++ + + + | + +
+
+
+ {varwidth}{I}R∙R\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.
+ + + + +Let’s now see how to create a first document: for +this you’ll need to type some text in the editor window of +TEXworks. (LA)TEX is not +a WYSIWYG1 software, so you’ll have to type the text and the +instructions for formatting it and you’ll see the result only after +“typesetting” the text. This looks a little bit dry, but one very +quickly gets used to it and it is well worth the effort.
+ +When one opens the editor, it shows a very +sparse interface: a title bar, a menu bar, two small toolbars, a large typing zone (white) +and, at the bottom, a status bar. We are in the +source/editor +window. If you have already typeset the document previously, the +resulting .pdf will be shown on the right +hand side in the preview window.
+ + + +The first toolbar has a button to typeset and +an drop-down menu to choose the format for typesetting (we’ll +choose pdfLaTeX). +Knowing that the keyboard shortcut for typesetting is CtrlT (Mac OS X: +T) and that we +almost never change the format, we could even hide this toolbar. +The selection of a format for compiling can also be changed through +the Typeset menu.
+ + + +The second toolbar provides the standard +functions: New document, Open, Save | Undo, Redo | Cut, Copy, Paste +| Search, Replace.
+ +As an example of the use of +TEXworks, we will work with +LATEX, but any other TEX system is possible. +In particular, if you need to use some special fonts2—a mandatory font for an official template, +non-Latin alphabets, etc.—the XETEX system is +very powerful.3
+ +Let’s create now our first document. Enter the following text +exactly as shown. To show some of the features of +TEXworks/LATEX, it is in French +intentionally.
+ + + +Save the file in a folder for test documents +(e.g., <home>\TeXworks_tests); call +the file first.tex. Note that it should +have a .tex extension.
+ +Next we start typesetting4 by clicking the green button or by CtrlT (Mac OS X: T).
+ +A new panel opens between the typing area and the +status bar: the output panel, labeled Log; everything LATEX is +doing is displayed there5. When LATEX finishes this +panel disappears (if there no error occurred) and a new window will +appear; in this new window, the Preview window, you can see a page with a title “Premier +document” followed by the name of the author “Un TeXnicien”, both +centred, the text “Voici un texte accentué en français !”, and a +page number at the bottom centre.
+ +Notice that the mouse cursor is like a magnifier +in the new window. If you press (and hold) the left button of the +mouse you can see the text under the magnifier much bigger (it is a +magnifier, isn’t it!); you can move the magnifier and so inspect +the text in detail.
+ +To go back to the source, you can just click in +its window or better use Ctrl’ (Mac OS X ’). This shortcut +toggles between the two windows. See also section 5.1 + to automatically move to a +specific location in the output from the source or vice versa.
+ +Let’s shortly analyse the result to understand +what LATEX did and why, now. Introductions +and full tutorials can be found on the internet: see for example +lshort6 which should be installed as part of your +TEX distribution, and is also available from CTAN.7
+ +First, we ask to create a document of the +article class: this defines the global layout of the +document.
+ +Next, we say that the input document (the source) +is saved with the Unicode encoding utf-8 and that it may contain characters which are +not present in the standard ASCII without accents. We also want to +use an output encoding T1 (the modern TEX encoding); we +also want an A4 document and not the default US +letter size. Finally, we make it clear that the typography +should follow the French rules using the babel package.8 Those general instructions for the work are done +by packages called with +options.
+ +Lastly, we finish the declaration part of the +document, the preamble, giving the title, the author, and the date of +the document; here we specify no date.
+ +Next comes the body of the document, which +describes the actual content, between the lines \begin{document} and +\end{document} +(these are LATEX commands).
+ +Let’s do some experiments to show the effect of +these instructions. For this, we put a % in front of the +instructions; the % and everything after it will be considered as +comment, which will be +ignored by LATEX.9
+ +Comment out the line \usepackage[utf8]{inputenc}, +and typeset the file. You should see that the accented characters +are now displayed incorrectly in the preview window. If, in +addition, you also comment out the line \usepackage[frenchb]{babel}, +LATEX will give an error. Just hit +to continue the typesetting. +
+ +After these experiments, let’s modify the text as +follows:
+ +Note that entering only one carriage return +doesn’t create a new paragraph. In LATEX, one +has to have an empty line for that. In TEXworks, the +line number of the source (on the right in the status bar) numbers +the lines created with carriage return, not the wrapped lines.
+ +When you create a document for typesetting with +LATEX, you cannot avoid making mistakes: +forgetting a closing brace or an \end{} command to close an +environment, using mathematical commands without switching to +mathematical mode, etc. When you compile and there is an error, +LATEX stops, giving you a chance to deal with +the problem. This is shown by the stopping of the scrolling action +in the output panel, and an error message being displayed, with +LATEX waiting for an instruction to know what +it should do. One sees the typing cursor in the line between the output panel +and the status bar: the console bar.
+ +The error message is on many lines, for example +like this:
+ + + +LATEX says that it doesn’t +recognize the command name, sometimes suggests to see the manual or +to type h (plus +) for help, points to the line +number where it noticed the error10 (here 168), and shows the place of the error at +the cut of the line (here at \veb). Finally, it shows that +it waits for an action from us by displaying a single question +mark.
+ +There are different possible actions:
+ +We can also kill the typesetting by repeating +the action used to start it: the green typesetting button will have +changed to a red one with a white cross . By clicking on +that button or by hitting CtrlT (Mac OS X: +T) again, the +LATEX process is terminated. The output panel +is still visible and so one can still see the error message.
+You should note that sometimes an error appears +far from its actual position. For example, when opening an +environment but not closing it, LATEX doesn’t +see the error before it encounters another end of environment +without closing of the first one. The error is often only picked up +at the \end{document} command, which +shows that another environment was not closed!
+ +Sometimes, an error still occurs during +subsequent runs of (LA)TEX even after it was +corrected in the document. This can happen because +(LA)TEX creates a number of intermediary +files which can still contain the original, erroneous code. +Therefore, it is advisable to remove those files after fixing an +error. TEXworks provides a command to facilitate +this—see section 5.6 +.
+ +To help you in finding and fixing error (at least +if you are using LATEX), TEXworks +comes with a small script that extracts all errors, warnings, and +other noteworthy messages from the console output and presents them +to you in a simple, tabular form.
+ +Here, you see a list of +LATEX messages, color-coded and sorted by +severity. Red represents errors, yellow indicates warnings, and +blue stands for over- and underfull box warnings. Next to the +colour bar, you see the name of the file in which the error was +detected. Next to that, you see the line number (if the script was +able to determine that), as well as an excerpt from the console +output telling you what the error was. Moreover, the filename is a +link which will take you to the file (and, if a line number could +be determined, also the line) where LATEX +reported the error. Hopefully, you can quickly fix any errors that +may occur this way.
+ +In case you are not using +LATEX, this script may be of little use, +particularly if the console output is formatted differently. In +this case, you can simply disable the error parsing hook script +(see section 6.2 +).
+ +If the default font of the editor doesn’t suit you, it is possible to +change it from Format→Font… by selecting a +new one in the dialogue box which appears. This change will apply +only to the current window, and until TEXworks is +restarted.
+ +From the Typeset menu or from +the drop-down on the Typesetting tool bar, you +can change the compilation format. Again this change will only be +temporary and for the current document.
+ +To have permanent changes, you need to change the +preferences +through the Edit→Preferences… menu +item, using the Editor tab for the font and the +Typesetting tab for the compilation format: the +default format is at the bottom of the tab.
+ + + + +When you have had some practise with +TEXworks, you’ll find the need for more effective tools. +Many of them are bundled with TEXworks. We are going to +see some of them now.
+ +Most documents you will create will use the +same instructions in the preamble, the same layout settings, +similar heading and so on. You can use predefined templates to get +started quickly or create your own with all of these settings +already in place.
+ +Use File→New from template… or +CtrlShift +⇑N (Mac OS X: Shift ⇑N). +A dialogue box opens to allow you to select one of the templates. +After selecting one and pressing OK, a document is created and +you can start to work.
+ +If you want to create a personal template, you +just have to create a suitable document with everything you always +want to do (and perhaps marking places to fill in the rest) and +save it as a .tex file in the +<home>\TeXworks\templates folder, +or a sub-folder of it, if you wish.
+ + + +When the source becomes long, it is sometimes +difficult to navigate and maintain it. Then, it is useful to split +the source in different smaller files: one file will be the main +document, with the preamble and the document environment, as well +as calls to the “sub-documents”.1
+ +But there might be a problem if you want to start +typesetting/compilation in a sub-document: as there is neither a +preamble nor a document environment there, +LATEX will stop immediately with an error. +
+ +To tell TEXworks that it should +typeset the main document, one adds at the very beginning of the +sub-document the instruction:
+ + + +for example:
+ + + +If the main file is in the same folder, its name +is enough, as in the above example. Otherwise, you must also give +the path to the main document (preferably relative to the +sub-document in question, e.g., ../manual.tex). Notice that the slash / and not the backslash +\ should be used +as directory separator even on Windows.
+ +Further, with MiKTeX, the call to a sub-document +\input{name.tex} +should include the extension .tex to +ensure proper SyncTeX functionality (see section 5.1 +).
+ +You can turn on automatic spell-checking of your source document from +Edit →Spelling→<language>. +
+ +During typing, every word the spell-checker +considers wrong is underlined by a red wavy line. A right-click on +the word opens a contextual menu in which there are some +replacement suggestions. Click on the desired word to make the +replacement.
+ +Before using the spell-checker, you need to +install dictionaries in the right folder of TEXworks: +<home>\TeXworks\dictionaries. +
+ + + +One can use the available dictionaries for +OpenOffice.org and other free software;2 if you have Mozilla Thunderbird with +spell-checking, you can copy its .aff and +.dic files as well, +for example. It is possible to ask TEXworks to enable +spell-checking by default by setting a dictionary in Edit→Preferences…→Editor→Spell-check +language.
+ +The options of the menu Search—Find…, Find +again, Replace…, Replace +again, and Go to Line… (CtrlF, +CtrlG, CtrlR, +CtrlShift +⇑R, and CtrlL, +respectively)—are standard actions (Mac OS X: F, G, R, Shift ⇑R, +and L); the first and +the third open a dialogue box:
+ +Here, the usual options are available: Wrap +around, Find backwards, Search/Replace within +selection, or Find all occurrences. The following +options are also usual: Case sensitive and Whole +words. By default, the search is forward, towards the end of +the document.
+ +The option Search/Replace in all open +files is also a frequent choice, but not as much as the +others; this allows, for example, replacement in all the files of a +project—pay attention, though, as this is very powerful. +
+ +The last option, Regular expression, is +detailed in the next sub-section.
+ +In the Search menu there are +other options:
+ +The regular expressions provide a very powerful +tool, but they require some effort to be well understood. To +understand them fully would require a manual of its own3, so we’ll only give some simple ideas of use. +For more advanced uses, as well as lists of the most used codes, +see section B +.
+ +Suppose we have the following text:
+ +We want to
+ +For 1., in the dialogue box Replace (CtrlR) for +Replace: we put ›\n‹4 and in With: ›\n\n‹. ›\n‹ is the code to match or +insert a line feed. You will need to select the first four +paragraphs and the beginning of the fifth (the first telephone +number) and to tick the Replace within selection and +Regular expression options; if this was not done and an +empty line has been inserted after each line, select the telephone +lines and do the reverse action: replace ›\n\n‹ by ›\n‹. So we replaced one line +feed by two, creating an empty line.
+ +For 2., use ›\t‹ and ›␣␣␣‹5. ›\t‹ is the code which +represents a tab, while a space is typed in literally (here +represented as ␣). +
+ +For 3., find ›-|\.|/‹ and replace with +›␣‹. Here, +›|‹ provides +alternatives (-, +., or /); for the dot we have used +›\.‹ because the +dot alone is a regular expression code which represents any +character and we would have replaced all the characters by spaces! +We therefore have to use a code—prefixing the dot with a backslash +tells specifies that the normal meaning of the dot should be used +instead of the special meaning it usually has in regular +expressions.
+ +If one has strings of the same character but of +different lengths (for example 3, 4, or 5 times the sames character +e) and one wants to truncate all these strings to a string with +less characters (for example 2), one can ask to replace the string +›e{3,5}‹ by +›ee‹. +
+ +If one wants to insert the same string at the +beginning of some paragraphs separated or not by an empty line, for +example ›\noindent␣‹ or ›\item␣‹, one can replace +›\n\n‹ or +›\n‹ by +›\n\n\\noindent␣‹ +or ›\n\\noindent␣‹. Pay attention, +we have a double \ +in front of noindent to get one +(\noindent) +because \ is an +escape character in regular expressions (we’ve met it before in the +expression \.)! +
+ +If it were making sense, we could replace all the +letters between “a” and “m” by “$” using ›[a-m]‹ and ›$‹.
+ +It is always possible to undo an action using Edit→Undo or CtrlZ (Mac OS X: Z): this way you can undo stepwise! The inverse +action, redo, is available as Edit→Redo or CtrlShift ⇑Z +(Mac OS X: Shift ⇑Z).6
+ +TEXworks also provides the standard +editing tools such as the clipboard; therefore one can select, +cut/copy and paste a piece of text normally.
+ +You can select with the mouse by dragging over +the desired text, or by double-clicking to select a word. Using the +keyboard, holding down Shift ⇑ while moving using the arrow keys +will select text. You can also move and select word by word moving +left or right holding CtrlShift ⇑ down ( Shift ⇑ on Mac OS X). The clipboard +shortcuts are the ones you’ll find in almost every program: +CtrlX +to cut, CtrlC to copy, and CtrlV to paste ( +X, C and V, respectively, on +Mac OS X).
+ +You can easily change the case of a selection—put everything upper case or +lower case—using Edit→Change case and next, +depending on the desired effect, ALL UPPERCASE, +all lowercase, or Toggle +Case (which toggles the case of each letter individually). +
+ +It is also convenient to show the line +numbers, as all error +messages refer to these numbers; you can toggle the line numbers, +on the left of the editing panel, from Format→Line Numbers.
+ +When preparing a document with +(LA)TEX, it is often useful to prevent +compilation of a portion of text to be able to locate an error; you +can do this piece by piece until you find the part which causes the +error. For that, commenting the source block by block is needed. +
+ +We have seen that the symbol % marks the beginning of a +comment. To comment a big +piece of text, it is sufficient to select it and ask to mark it as +comment Format →Comment or +CtrlShift +⇑] (Mac OS X: Shift ⇑]). +To remove the comment, select the lines and choose Format→Uncomment or +CtrlShift +⇑[ (Mac OS X: Shift ⇑[).7
+ +A frequent error is to forget a closing symbol: +parenthesis, bracket, square bracket, etc. +TEXworks helps with a tool to show the pairs of symbols: +when the cursor moves over one of these symbols, its partner is +briefly highlighted. You can also select an entire block using Edit→Balance Delimiters or by the shortcut CtrlB (Mac OS X: +B). Thus, you will +immediately see the scope of the block.
+ + + +Another similar error, but this time semantic +and not hindering typesetting, is in the use of quotes when one +wants to give focus to some text.
+ +There are two types of quotation marks in +English: the ‘single’ quotes and the “double” quotes. They are +formed by ‘ and ’; these are not the quotation marks used in +programming and found on the keyboard: " and ’. Using the +TEXworks smart quotes system, one can use the latter as +normal to automatically produce the typographically correct +single/double opening and close quotes.
+ +In a .tex document, +select one of the smart quotes system: Format +→Smart +Quotes→TeX +Ligatures, →TeX Commands, →Unicode Characters. +Then, when you want to start a quoted section in your text, let’s +say enclosed in double quotes, type ", then the text to be quoted, +and finish again by "; TEXworks will +automatically insert the correct opening quotes `` and later the correct +closing ones ’’. +The three options give the same result in the typeset document, but +TeX Ligatures should work best in most cases. +
+ +Finally, it is possible to define personal +quotation marks systems (in the file smart-quotes-modes.txt in the configuration folder of the resource folder). +
+ + + +Another tool which rapidly becomes +indispensable is auto-completion. Indeed, when you use +(LA)TEX, you have to continuously enter codes +to, for example, create environments; you also have to remember to +close every group you open.
+ +Auto-completion allows you to type a keyword, hit +the ⇆ key, and have +TEXworks insert the (LA)TEX +command or environment code automatically.
+ +As an example to insert +“LATEX”, we have to type \LaTeX. This is not difficult, +but entering “\” +followed by the word “LaTeX” with alternating +capitals and lower case letters could become annoying after a +while.8 With auto-completion, you just enter +latex and hit +⇆ to get \LaTeX. You just have to take +care that there is no letter directly preceding or +succeeding latex—e.g., alatex—, or else the mechanism +might not pick up the correct keyword.
+ +Another example is bmin, which gives
+ + + +with the cursor between the empty pair of curly +brackets where you need to enter the size of the minipage. See the +section A.3 + for a list of the +keywords for auto-completion. Notice the “∙” in the minipage environment. They are +placeholders which can be reached by Ctrl⇆ ( ⇆ on +the Mac), repeating this shortcut cycles forward through the +placeholders; by CtrlShift ⇑⇆ ( Shift ⇑⇆), you can also cycle backwards. +
+ +If a partial keyword is given, repeatedly hitting +⇆ will cycle through +possible completions. For example, bali (the b commonly indicates the +beginning of an environment, \begin{}) creates the +align environment +after one ⇆, next +align*, and after +that, in succession, alignat, alignat*, aligned, alignedat, and alignedat with options; to +access the last environments directly, they have their own codes +which start by bali (balis, baliat, baliats, balied, baliedat and baliedato).
+ +If you want to create your own keywords, you can +add a .txt file in the completion folder inside the resources folder. The +entries in the file should have the following format:
+ + + +In the first case, bfigo is the assigned keyword +(with :=) to be +converted into a figure environment with an +optional argument; there are two carriage returns (#RET#) after the begin, i.e., an empty line, +and the cursor is placed between the square brackets (at the +position of #INS#). “∙” is a place holder as introduced before. +
+ +In the second case, we give ourselves a shortcut, +which will let us type the first part of \bibliography{} and have +TEXworks convert it to the full name plus braces (with +the cursor between them). In this case, the keyword is the +instruction itself.
+ +Note that the .txt file +containing the auto-completion information needs to be UTF-8 +encoded—this is the default encoding for all files created with +TEXworks.
+ + + + +When you are reading a document in preview and +see something to change, it is convenient to go immediately to the +corresponding place in the source. To do that, hold down +Ctrl (Mac OS X: ) +and click at the appropriate place in the preview window; the +cursor will move and highlight the corresponding location in the +source window. The same is true in the other direction: +Ctrl in the source will highlight the same line in the preview +window.1
+ + + +Special comments, at the very beginning of the +files, can be used to manage two other aspects of the compilation. +
+ +By default, TEXworks uses the “utf-8” +encoding for saving files, +but some files could be saved in another encoding. Common ones are +“latin1”, which is the +dominant encoding on Windows when using western languages, and +“Apple Roman” which is dominant on Mac OS.
+ +To set a different encoding for a specific file one can put the +following at the beginning of that file:
+ + + +If we want to compile a file with another +programme than the default +TEX or LATEX, we put at the +beginning of the file:
+ + + +for example:
+ + + +Pay attention to this last instruction. You have +to use the name of the programme here which should be used for the +whole project, as the first encountered programme when starting +typesetting is used (which is the one from the sub-document you are +in). TEXworks will use that programme, even if another +name appears in the main document!
+ +When opening a document which contains a +% !TeX program line, the specified +programme will become the one to use and its name will appear in +the drop down menu in the toolbar; you can, however, override this +by selecting a different one from the drop down list, if you want. +
+ +In addition, you can set the spell checking +language by a similar comment line:
+ + + +The language codes available on your system are +listed in parentheses in Edit →Spelling next to the +human-readable name of the language.
+ + + +To facilitate legibility of the source, one can +use indentation as +programmers do:
+ +This increases legibility, but works well only on +short lines, without text wrapping; or if one chooses not to use +text wrapping by unchecking Format +→Wrap +lines. +
+ +The command Format→Indent or the shortcut Ctrl] (Mac OS X: +]) will indent the +line, or the selected lines, by inserting a tab character. You can +repeat the process to increase the indent.
+ +To remove one level of indentation, use +Format→Unindent or the +shortcut Ctrl[ ( [ on Mac OS X).2
+ +As indent only +indents the first part of very long (wrapped) lines, this is not +very satisfactory in some cases. But one can ask +TEXworks to split a long line (longer than the width of +the editing window) into short ones adding a hard coded line feed. +Format→Hard Wrap... opens a dialog box in which you +can specify the width of the lines; you can also re-format lines +which have already been split.
+ +When a document is becoming long and you want +to move to a specific place (a chapter, a section, a subsection, +…) you normally need to +scroll the editing window to find the desired location, or use the +Find dialog if you remember a keyword in the chapter’s title. +
+ +To the same end, though a lot more comfortable, +you can also use the structural information in the document to +navigate the source: the menu item Window→Show→Tags opens a panel showing the information detected by +TEXworks. Clicking on an item in the panel moves the +cursor to the corresponding part in the source. That panel, like +any other, can be resized by dragging its border.
+ +The same action is possible in the PDF window +from Window→Show→Table of +contents, but this +only works if one has created structure tags in the PDF file using +the package hyperref.
+ + + +By default, the editor/source window opens on +the left and the preview one on the right (when the corresponding +PDF file exists), thus splitting the screen in two. +
+ +You can change the position of the windows in the +Window menu. →Stack and +→Side by +side give the default effect if there is only one document +open. If not, →Stack creates a mosaic with all the windows. The other +options allow to place the windows for your convenience. It is also +always possible to resize and move the windows manually, of course. +
+ +For the preview you can change the way it is +presented and of course the zoom by View→Actual size, +→Fit to +width and →Fit to window; you can also zoom in and out. Shortcuts +exist for all these actions and are shown next to the menu items. +
+ + + +Very soon when one uses +(LA)TEX, one discovers that the working +folder is cluttered by many files which have the name of the source +file but different extensions: .aux, +.log, .toc, +.lof, .lot, +.bbl, …
+ +All these are files needed by +(LA)TEX to be able to create the table of +contents, lists of figures/tables, the bibliography, the cross +references and, also very importantly, to keep track of what it did +(in the .log file).
+ +Apart from the external files, images, pictures, +…, the only files required are the .tex +files, the sources of the document. One can erase all the others. +Sometimes, this is even necessary when +(LA)TEX gets stuck after an error. +
+ +This can be done using a TEXworks +command from the File menu: →Remove Aux files +….
+ +When you use this command, a dialog box opens in +which you can check/uncheck the files you want to +remove.3 The dialog box will only list files that +actually exist in the foler; if you removed all these auxiliary +files before, you get a message box saying that there is no file to +remove at the moment.
+ +The list of auxilliary files which are taken into +account is defined in the file texworks-config.txt in the configuration +folder of the TEXworks resources folder. You could add +some if required.
+ +We have seen in section 2 + (on page 11 +) that the first time you +use TEXworks, it creates a resource folder and also that +it saves default preferences.
+ +It is possible to define a personal place where +one wants the resource folder and the preferences. This can be +handy when one wants a portable system (e.g., on an USB stick) or +when one wants to easily access the templates or completion folders +for modifications.
+ +For this, create a file texworks-setup.ini in the programme folder in which you specify the +path to the folder containing the completion, configuration, +dictionaries,…folders and the configuration file (texworks.ini); there will be two lines:
+ + + +inipath for the configuration file and libpath for the necessary folders. Here, +TW_conf would replace the resource folder +TeXworks. Note that the referenced folder +(here TW_conf) should exist—it will not +be created—, and that the / is used even on Windows +(instead of the common \).
+ +If one wants to put the resource folder in the +programme folder as a subfolder, one can use an instruction like +inipath=./TW_conf/; all +relative paths are taken to be relatve to the TEXworks +programme folder (on Mac OS X, the folder containing the app +package is used).
+ + + + + +to specify where the programmes of the +TEX distribution are located; but this instruction is +not yet completely operational, especially under Windows. +
+ + + + +TEXworks is only a text editor; to be +able to create documents with (LA)TEX and to +typeset them to PDF, we also need what is called a +TEX distribution. This is a +collection of programs and other files which will be automatically +called by TEXworks during its work. Thus, you need to +install a distribution: we will do that before starting +TEXworks for the first time, as this way, +TEXworks will automatically find what it needs. +
+ +TeX Live (http://www.tug.org/texlive/), a combination of teTeX, +macTeX and XEmTeX, is available for all three operating systems +(Linux, Mac OS X, Windows). The current version is TeX Live +2010. Note that you need a reasonably recent version of +TeX Live (2008 or later at the time of writing) to use all +features of TEXworks.
+ + + +Most of the larger TEX distributions +already contain TEXworks as a package. Sometimes, these +versions even have some distribution-specific enhancements. So, the +preferred way of installing TEXworks on Windows is to +use the package manager of your distribution. In this case, you can +skip the next few paragraphs. Be sure to read the end of this +section, though, as it provides important information about +customizing TEXworks to your needs.
+ +If you want to obtain an “official” version, +obtain TEXworks by downloading the setup from the +TEXworks web site htp://tug.org/texworks/ after the installation of +the TEX distribution; you will find binaries for Windows +at http://code.google.com/p/texworks/downloads/list. +
+ +Simply install TEXworks by running the +setup file. During the installation, you will be asked where to +install the program, if you want to create shortcuts, and if you +want to always open .tex files with +TEXworks. There are reasonable default values that +should work well for most users.
+ +If you want full control over how and where +TEXworks is put, you can also download the .zip archive from the website and unpack it wherever +you like. Note that in this case, shortcuts and file associations +must be created manually.
+ +When you start TEXworks for the first +time, it creates a folder named TeXworks in your home folder1. This folder will contain some sub-folders for +auto-completion, +configuration, +dictionaries, templates, and interface +translation/localisation +files—we will see these in more detail later.2
+ +NB. At the time of writing, if <your name> contains any non-ASCII +characters (for example accented characters), some functions of +TEXworks may not work correctly. For example, the +spell-checker and forward/reverse synchronization between the +source and .pdf will be impaired.
+ +Several common Linux distributions already have +packages for TEXworks. They are adequate for most users +and facilitate installing TEXworks considerably. +
+ +If your Linux distribution does not provide +recent, adequate packages, you need to build TEXworks +from source yourself, which is fairly easy on Linux. After the +installation of the TEX distribution, go to http://code.google.com/p/texworks/wiki/Building and +follow the instructions suitable for your Linux distributions. Also +see section C +.
+ +Once the program is installed, start +TEXworks. The folders .TeXworks and +.config/TUG will be created in your home directory. +
+ + + +MacTeX 2010 already contains +TEXworks as a package. So, the preferred way of +installing TEXworks on Windows is to use the package +manager of your distribution. In this case, you can skip the next +few paragraphs. Be sure to read the end of this section, though, as +it provides important information about customizing +TEXworks to your needs.
+ +If you want to obtain an “official” version, +obtain TEXworks by downloading the setup from the +TEXworks web site htp://tug.org/texworks/ after the installation of +the TEX distribution; you will find binaries for the Mac +at http://code.google.com/p/texworks/downloads/list. +
+ +You need to get TeXworks-Mac-0.3r567.zip3 which contains everything you need. +
+ +It is a standalone .app package that +does not require any Qt files installed into /Library/Frameworks, or other libraries into +/usr/local/lib. Just copy the +.app anywhere you like and run it. +
+ +On Mac OS X, the TEXworks +resource folder will be +created in your Library folder +(~/Library/.TeXworks/), inside your home +directory. Preferences are stored in ~/Library/Preferences/org.tug.TeXworks.plist which +you can delete if you ever suspect it is causing problems.
+ +Finally, some files may need to be added to the +“personal” files that TEXworks creates. As the exact +location of these dependends on your platform, this will be +referred to as <home>/TeXworks or the TEXworks resource folder +later in this manual. On Linux, this is ~/.TeXworks, on Windows XP it is C:\Documents and Settings\<your name>\TeXworks, +on Windows Vista/7 it is C:\Users\<your name>\TeXworks, and on the +Mac it is ~/Library/.TeXworks/, +
+ +After installation and first run, have a look in +the sub-folders of the TEXworks resource folder and +delete any qt_temp.xxxx files; they are +temporary files left behind and could interfere with the normal +ones, which are installed in the same folder, later on. +
+ + + + +Donald E. Knuth decided to create a new typesetting system, which +would be called TEX, because there had been a change in the printing +system used for the volumes of his book The Art of Computer +Programming and Knuth found the result of the new system +awful.
+ +The goal of TEX was then to have a +system which would always produce the same documents independently +of the actual machine they were processed on. Knuth also designed +the Computer Modern family of typefaces and the +METAFONT language for font description.
+ +The work initiated in 1977 was finished (the +languages were “frozen”) in 1989. TEX and METAFONT are not evolving any more except for +minor bug fixes (TEX versions are numbered following the +decimals of π—now 3.1415926—and +METAFONT the decimals of the number +“e”—now 2.718281).
+ +TEX provides basic tools +(commands/instructions/“primitives”) to define typesetting; almost +every detail has to be defined, but the language allows the +creation of macros for repeatedly used constructs. So collections +of macros are loaded through format files (i.e., pre-compiled large macro collections). +
+ +Knuth created an original default format (more or +less 600 commands) which is called Plain TEX. This facilitates creating +documents.
+ +The most widely used format is +LATEX +(Leslie Lamport, 1985), which +provides more global commands and structures for documents +(article, book,…) allowing easier and faster work, but sometimes +with loss of flexibility due to the more or less rigid framework. +But there are many other formats and TEX-variants in use +as well, such as +-TEX, +-LATEX, +ConTEXt, or +XETEX, each having specific goals and +advantages (and drawbacks).
+ +To extend the format, one loads “packages” which are collections of macros +specific to some aspect of typesetting.
+ +From its specification in the late 1970s, the +TEX family had to evolve until now, last version March +2008, to take into account the developments in the typesetting +world outside TEX.
+ +Some of the problems to answer were/are:
+ +To answer these questions and others, many +“engines” and programmes have been created around TEX, +including pdftex, pdflatex, +dvips, ps2pdf, and +METAPOST, which opens the TEX world to the +possibilities of PostScript +and PDF. +XETEX +and XELATEXto be able to use the +“normal” fonts found on the different machines and to be able to +cope with writing systems different from the left to right systems +which originated in Europe (Latin and Cyrillic letters and +associates)—right to left, vertically, pictograms,…Or LuaTeX and LuaLaTeX to have a powerful +scripting language.
+ +To use TEX and the systems of its +family, one has to create a “source” document as TEX is only a system to “transform” a +source document into a (beautifully) typeset document. This source +is a simple text with typesetting instructions and one needs a +programme to create it: the editor.
+ +There are many editors able to create a +TEX source; some are general editors, others are +specifically designed for TEX: here +TEXworks comes in. +
+ +TEXworks is a project to create +a text editor for use with the TEX family of tools; we +will refer to these as (LA)TEX. Instead of +creating a new sophisticated program, equipped with multiple +tool-bars to meet any need, TEXworks provides a simple +editor, offering at first sight only a limited set of tools for +text editing as well as a single button and a menu to typeset a +(LA)TEX text.
+ +The idea to create the editor came to +Jonathan Kew, the +initiator and leader of the project, after a long period of +reflection on the reasons why potential users tend to keep away +from (LA)TEX, as well as pondering the +success of the TEXshop editor on the Mac.
+ +Finally the goal was also to provide the same +editor on many operating systems: TEXworks currently +runs on Linux, Mac OS X and Windows. The interface is always the +same and the program offers the same functionality on all three +platforms.
+ +After this introduction, the second section of +this manual explains how to install the software. In the third +section, we describe the interface and create a first document +showing the basics of TEXworks. In the forth and fifth +section, the advanced tools provided by TEXworks are +presented; you should read these sections only after mastering the +basic working of TEXworks. These advanced tools allow +much more effective working practices. The sixth section gives a +brief introduction to scripting. This section focuses on using +ready-made scripts, not on writing your own scripts (which is +beyond the scope of this manual and will be presented elsewhere). +After that, the seventh section in which some pointers to further +information about TEXworks and sources for help are +compiled concludes the main part.
+ +Finally, the appendices provide additional +information how TEXworks can be customized, about the +regular expression search/replace system, and how +TEXworks can be compiled from source. A short +bibliography and an index conclude this manual.
+ +Because a picture is often worth a thousand +words, icons and special styling is used throughout this manual to +avoid cumbersome paraphrases or mark specialties. Keyboard keys are +usually depicted as A + , with the exception of a few special keys. These are: +Shift ⇑, Page +↑, Page ↓, + (return), +↑, ↓, +←, →, (space), (backspace), and ⇆ (tab).
+ +In addition, mouse clicks are depicted as + (left click) and (right click; on Mac OS X with a +one-button mouse, this is usually available by holding down +Ctrl while clicking). +
+ +Apart from input instructions, several passages +throughout this manual are marked by special styling. +
+ +Information that is only valid or relevant for a +particular operating system is marked like this:
+ +Code examples are set in a fixed-space, +typewriter font, with lines above and below to set it apart from +the rest of the text:
+ + + +Closely related to this, chapter 3 + contains several +tutorials, which are typeset just like the code examples above, but +with an additional notebook icon next to it.
+ + + + +As TEXworks is built on Qt4, the +available regular expressions—which are often referred to as regexp—are +a subset of those found in Qt4. See the site of Qt41 for more information. It is possible to find +other information about regexps on the net2 or from books. But pay attention that not all +systems (programming languages, editors, …) use the same set of +instructions; there is no “standard set”, unfortunately.
+ +When searching and replacing, one has to define +the text to be found. This can be the text itself (e.g., +“Abracadabra”), but often it is necessary to define the strings in +a more generic and powerful way to avoid repeating the same +operation many times with only small changes from one time to the +next; if, for example, one wants to replace sequences of the letter +a by ones of the letter o, but only those sequences +of 3, 4, 5, 6 or 7 a; this would require repeating (and +slightly adjusting) the find and replace procedure 5 times. Another +example: replace all vowels by §—again, this would take 5 +replace operations. Here come the regular expressions! +
+ +A simple character (a or 9) represents itself. +But a set of characters can be defined: [aeiou] will match +any vowel, [abcdef] the letters a, b, +c, d, e, and f; this last set can be +shortened as [a-f] using “-” between the two ends of +the range. This can even be combined: [a-zA-Z0-9] will match +all letters and all numbers.
+ +To define a complementary set3, one uses “^”: the caret negates the +character set if it occurs at the beginning, i.e., immediately +after the opening square bracket. [^abc] matches anything +except a, b, c.
+ +When using regexps, one very often has to +create a search expession which represents other strings in a +generic way. If you are looking for a string which matches email +addresses, for example, the letters and symbols will vary; still, +you could search for any string which corresponds to the structure +of an email address +(<text>@<text>.<text>, roughly). To +facilitate this, there are abbreviations to represent letters, +figures, symbols, …
+ +These codes replace and facilitate the definition +of sets; for example, to instead of manually defining the set of +digits [0-9], one can use “\d”. The following table +lists the replacement codes. 4
+ + + +
+
+Element
+
+ |
+
+
+
+
+ Meaning + |
+
+
+
+ c + |
+
+
+
+
+ Any character represents itself unless it has a +special regexp meaning. Thus c matches the character c. + |
+
+
+
+ \c + |
+
+
+
+
+ A special character that follows a backslash +matches the character itself except where mentioned below. For +example, if you wished to match a literal caret at the beginning of +a string you would write “\^”. + |
+
+
+
+ \n + |
+
+
+
+
+ This matches the ASCII line feed character (LF, +Unix newline, used in TEXworks). + |
+
+
+
+ \r + |
+
+
+
+
+ This matches the ASCII carriage return +character (CR). + |
+
+
+
+ \t + |
+
+
+
+
+ This matches the ASCII horizontal tab character +(HT). + |
+
+
+
+ \v + |
+
+
+
+
+ This matches the ASCII vertical tab character +(VT; almost never used). + |
+
+
+
+ \xhhhh + |
+
+
+
+
+ This matches the Unicode character +corresponding to the hexadecimal number hhhh (between 0x0000 and +0xFFFF). \0ooo +(i.e., zero-ooo) matches the ASCII/Latin-1 character corresponding +to the octal number ooo (between 0 and 0377). + |
+
+
+
+ . (dot) + |
+
+
+
+
+ This matches any character (including newline). +So if you want to match the dot character iteself, you have to +escape it with “\.”. + |
+
+
+
+ \d + |
+
+
+
+
+ This matches a digit. + |
+
+
+
+ \D + |
+
+
+
+
+ This matches a non-digit. + |
+
+
+
+ \s + |
+
+
+
+
+ This matches a white space. + |
+
+
+
+ \S + |
+
+
+
+
+ This matches a non-white space. + |
+
+
+
+ \w + |
+
+
+
+
+ This matches a word character or “_”). + |
+
+
+
+ \W + |
+
+
+
+
+ This matches a non-word character. + |
+
+
+
+ \1, … + |
+
+
+
+
+ The n-th back-reference, e.g. \1, \2, etc.; used in the +replacement string with capturing patterns—see below + |
+
+ |
Using these abbreviations is better than +describing the set, because the abbreviations remain valid in +different alphabets.
+ +Pay attention that the end of line is often taken +as a white space. Under TEXworks the end of line is +referred to by “\n”.
+ +One doesn’t work only on single letters, +digits, symbols; most of the time, these are repeated (e.g., a +number is a repetition of digits and symbols—in the right order). +
+ +To show the number of repetitions, one uses a so +called “quantifier”: a{1,1} means at least one and only one +a, a{3,7} means between at least 3 and at most 7 +a; {1,1} is redundant, of course, so a{1,1} = +a.
+ +This can be combined with the set notation: +[0-9]{1,2} will correspond to at least one digit and at most +two, the integer numbers between 0 and 99. But this will match any +group of 1 or 2 digits within any arbitrary string (which may have +a lot of text before and after the integer); if we want this to +match only if the whole string constists entirely of 1 or +2 digits (without any other characters preceding or following +them), we can write the regular expression as ^[0-9]{1,2}$; +here, ^ says that any match must start at the first +character of the string, while the $ says that any match +must end at the last character of the string, so the string can +only be comprised of one or two digits (^ and $ are +so-called “assertions”—more on them later).
+ +Here is a table of quantifiers.5 E represents an arbitrary expression (letter, +abbreviation, set).
+ + + +
+
+
+ E{n,m} + |
+
+
+
+
+ Matches at least n occurrences of the +expression and at most m occurrences of the expression. + |
+
+
+
+ E{n} + |
+
+
+
+
+ Matches exactly n occurrences of the +expression. This is the same E{n,n} or as repeating the +expression n times. + |
+
+
+
+ E{n,} + |
+
+
+
+
+ Matches at least n occurrences of the +expression. + |
+
+
+
+ E{,m} + |
+
+
+
+
+ Matches at most m occurrences of the +expression. + |
+
+
+
+ E? + |
+
+
+
+
+ Matches zero or one occurrence of E. This +quantifier effectively means the expression is optional +(it may be present, but doesn’t have to). It is the same as +E{0,1}. + |
+
+
+
+ E+ + |
+
+
+
+
+ Matches one or more occurrences of E. This is +the same as E{1,}. + |
+
+
+
+ E* + |
+
+
+
+
+ Matches zero or more occurrences of E. This is +the same as E{0,}. Beware, the * quantifier is often +used by mistake instead of the + quantifier. Since it +matches zero or more occurrences, it will match even if the +expression is not present in the string. + |
+
+ |
When searching, it is often necessary to search +for alternatives, e.g., apple, pear, or cherry, but not pineapple. +To separate the alternatives, one uses |: apple|pear|cherry. +But this will not prevent to find pineapple, so we have to specify +that apple should be standalone, a whole word (as is often called +in the search dialog boxes).
+ +To specify that a string should be considered +standalone, we specify that it is surrounded by word +separators/boundaries (begin/end of sentence, space), like +\bapple\b. For our alternatives example we will group +them by parentheses and add the boundaries +\b(apple|pear|cherry)\b. Apart from \b we have +already seen ^ and $ which mark the boundaries of the +whole string.
+ +Here a table of the “assertions” which do not +correspond to actual characters and will never be part of the +result of a search. 6
+ + + +
+
+
+ ^ + |
+
+
+
+
+ The caret signifies the beginning of the +string. If you wish to match a literal ^, you must escape it +by writing \^ + |
+
+
+
+ $ + |
+
+
+
+
+ The dollar signifies the end of the string. If +you wish to match a literal $, you must escape it by writing +\$ + |
+
+
+
+ \b + |
+
+
+
+
+ A word boundary. + |
+
+
+
+ \B + |
+
+
+
+
+ A non-word boundary. This assertion is true +wherever \b is +false. + |
+
+
+
+ (?=E) + |
+
+
+
+
+ Positive lookahead. This assertion is true if +the expression E matches at this point. + |
+
+
+
+ (?!E) + |
+
+
+
+
+ Negative lookahead. This assertion is true if +the expression E does not match at this point. + |
+
+ |
Notice the different meanings of ^ as +assertion and as negation inside a character set!
+ +Using rexexp is very powerful, but also quite +dangerous; you could change your text at unseen places and +sometimes reverting to the previous situation is not possible +entirely. If you immediately see the error, you can try +CtrlZ.
+ +Showing how to exploit the full power of regexp +would require much more than this extremely short summary; in fact +it would require a full manual on it own.
+ +Also note that there are some limits in the +implementation of regexps in TEXworks; in particular, +the assertions (^ and $) only consider the whole file, and there +are no look-behind assertions.
+ +Finally, do not forget to “tick” the regexp +option when using them in the Find and Replace +dialogs and to un-tick the option when not using regexps. +
+ + + + +[1] D. Knuth, The +TEXbook, Addison Wesley, +1986-1992
+ +[2] D. Knuth, The METAFONT +book, Addison Wesley, 1986-1992
+ +[3] L. Lamport, +LATEX: A Document +Preparation System, Addison Wesley, 1985 +(LATEX 2.09), 1994 +(LATEX2ε)
+ +[4] M. Goossens, F. Mittelbach & A. Samarin, +The +LATEX Companion, Addison Wesley, 1994
+ +[5] M. Goossens, The +XeTeX Companion, July 2009, http://xml.web.cern.ch/XML/lgc2/xetexmain.pdf
+ +[6] D. J. Perry, Creating Scholarly Multilingual Documents Using +Unicode, OpenType, and +XeTeX, June 2009, http://scholarsfonts.net/xetextt.pdf
+[next]
+This manual is free +documentation: you can redistribute it and/or modify it under the terms of either (i) the CC-BY-SA +license as published by Creative +Commons (either version 3 of the License, or (at your option) any later version) or (ii) the GNU +General Public License as published +by the Free Software Foundation (either version 2 of the License, or (at your option) any later +version) or (iii) both in +parallel.
+ +This document is +distributed in the hope that it will be useful, but without any warranty; without even the implied +warranty of merchantability or +fittness for a particular purpose.
+ +Details of the licenses +are available at http://creativecommons.org/licenses/by-sa/3.0/ +and http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. +The sources used to create this document +are available at http://code.google.com/p/texworks/.
+% !TeX + encoding, 1 + program, 2 + root, 3 + spellcheck, 4 +actions + alphabetically, +5 + by menu, +6 +auto-completion, 7 + roots, 8 tw-basic.txt, 9 tw-latex.txt, 10 cleaning folder, 11 + + aux files, +12 +comments, 13 compiling TEXworks, 14 completion, see auto-completion +configuration, 16 + defaultbinpaths, 17 + inipath, +18 + libpath, +19 + texworks-config.txt, +20 + texworks-setup.ini, +21 + texworks.ini, +22 +console bar, 23 CTAN, 24 Ctrl+’, 25 +Ctrl+T, 26 +document + creation, +27 + previewing, +28 + source, +29 + typesetting, +30 +editing + change case, +31 + comment, +32 + indentation, +33 + line numbers, +34 + redo, 35 + search/replace, +36 + select a block, +37 + tools, 38 + uncomment, +39 + undo, 40 +editor, 41 font, 42 encoding, 43 + latin1, +44 + utf-8, 45, 46 +errors, 47 extension .tex, 48 files + format, +49 +folder ⟨home⟩/TeXworks, 50 .TeXworks, 51 .config/TUG, 52 auto-completion, 53 configuration, 54 dictionaries, 55 resource, 56 resource Mac, 57 templates, 58 TeXworks, 59 translations, 60 installation, 61 + Linux, 62 Mac, 63 Windows, 64 interface, 65 Kew, Jonathan, 66 +keyboard shortcuts, 67 actions, 68 predefined, 69 shortcuts.ini, 70 Knuth, Donald E., 71 Lamport, Leslie, 72 +log, 73 METAFONT, 74 +METAPOST, 75 |
+
+output panel, 76 +packages, 77, 78 +PDF, 79 PostScript, 80 preamble, 81 preferences, 82 preview, 83 preview window, 84 programme default, 85 +project, 86 +regular expressions, 87, 88 + alternatives/assertions, +89 + introduction, +90 + repetition, +91 + sets, 92 +scripts, 93 + + installing, +94 + managing, +95 + using, 96 + writing, +97 +search/replace, see editing +shortcuts, see keyboard shortcuts +source/editor, 100 spell-checking, 101 + .aff files, +102 + .dic files, +103 +SyncTeX, 104 +syntax highlighting, 105 tags, 106 + + structure, +107 + table of +contents, 108 +template, 109 +TEX, 110 +-TEX, 111 ConTEXt, +112 + LATEX, +113, 114 distribution, see +TEX +distribution dvips, 116 LuaTeX, 117 pdftex, 118 XeTeX, 119 TEX Plain, 120 TEX distribution, 121 Linux, 122 Mac, 123 MacTeX, +124 + TeX Live, +125 + Windows, +126 + MikTeX, +127 +TEXshop, 128 TEXworks, 129 parameters, 130 toolbar, 131 typeset, 132 typing cursor, 133 utf-8, see encoding, +utf-8 +windows, 135 + +wrap lines automatic, 136 + hard, 137 +WYSIWYG, 138 zoom, 139 + |
+