When you have had some practise with TEXworks, you'll nd the need for more e ective 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 prede ned 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 ll in the rest) and save it as a .tex le in the <_resources>_\templates folder, or a sub-folder of it, if you wish.
When the source becomes long, it is sometimes di cult to navigate and maintain it. In that case, it is useful to split the source into di erent smaller les: one le will be the main document, with the preamble and the document environment, as well as calls to the sub-documents 1, which could in turn contain separate chapters, for example.
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 le 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!
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: <_resources>_\dictionaries. The <_resources>_ folder can be accessed easily via Help!Settings and Resources….