diff options
Diffstat (limited to 'Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/GoingfurtherEditingtools.html')
-rw-r--r-- | Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/GoingfurtherEditingtools.html | 275 |
1 files changed, 137 insertions, 138 deletions
diff --git a/Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/GoingfurtherEditingtools.html b/Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/GoingfurtherEditingtools.html index d9090c536c3..e7f4c7460a8 100644 --- a/Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/GoingfurtherEditingtools.html +++ b/Master/tlpkg/texworks/texworks-help/TeXworks-manual/en/GoingfurtherEditingtools.html @@ -38,15 +38,15 @@ <div class="chapternumber"> 4 </div> -<h1><a id="x21-170004" name="x21-170004"></a>Going further: Editing +<h1><a id="x20-170004" name="x20-170004"></a>Going further: Editing tools</h1><!--l. 7--> <p class="indent">When you have had some practise with T<sub>E</sub>Xworks, you’ll find the need for more effective tools. Many of them are bundled with T<sub>E</sub>Xworks. We are going to see some of them now.</p> <h3 class="sectionHead"><span class="titlemark">4.1</span> <a id= -"x21-180004.1" name="x21-180004.1"></a>Creating a document from a -template</h3><a id="dx21-18001" name="dx21-18001"></a> <!--l. 11--> +"x20-180004.1" name="x20-180004.1"></a>Creating a document from a +template</h3><a id="dx20-18001" name="dx20-18001"></a> <!--l. 11--> <p class="noindent">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 @@ -56,8 +56,8 @@ already in place. <!--l. 13--></p> "lmsy-10x-x-120">→</span><em class="c9">New from template…</em> or <span class="keystroke">Ctrl</span><span class="keystroke">Shift <span class="lmsy-10x-x-120">⇑</span></span><span class= -"keystroke">N</span> (Mac OS X: <span class="keystroke"><img src= -"images/images/MacCmdKey.png" alt="PIC" /></span><span class= +"keystroke">N</span> (macOS: <span class="keystroke"><img src= +"images/MacCmdKey.png" alt="pict" /></span><span class= "keystroke">Shift <span class= "lmsy-10x-x-120">⇑</span></span><span class="keystroke">N</span>). A dialogue box opens to allow you to select one of the templates. @@ -72,8 +72,8 @@ save it as a <span class="path">.tex</span> file in the sub-folder of it, if you wish. <!--l. 17--></p> <p class="noindent"></p> <h3 class="sectionHead"><span class="titlemark">4.2</span> <a id= -"x21-190004.2" name="x21-190004.2"></a>Creating a project using -several source files</h3><a id="dx21-19001" name="dx21-19001"></a> +"x20-190004.2" name="x20-190004.2"></a>Creating a project using +several source files</h3><a id="dx20-19001" name="dx20-19001"></a> <!--l. 19--> <p class="noindent">When the source becomes long, it is sometimes difficult to navigate and maintain it. In that case, it is useful @@ -81,22 +81,22 @@ to split the source into different smaller files: one file will be the main document, with the preamble and the <span class= "obeylines-h verb ec-lmtt-12">document</span> environment, as well as calls to the “sub-documents”<span class="footnote-mark"><a href= -"index22.html#fn1x5"><sup class= -"textsuperscript">1</sup></a></span><a id="x21-19002f1" name= -"x21-19002f1"></a>, which could in turn contain separate chapters, +"index21.html#fn1x5"><sup class= +"textsuperscript">1</sup></a></span><a id="x20-19002f1" name= +"x20-19002f1"></a>, which could in turn contain separate chapters, for example. <!--l. 22--></p> <p class="indent">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 <span class= "obeylines-h verb ec-lmtt-12">document</span> environment there, -L<span class="ec-lmr-8">A</span>TE X will stop immediately with an -error. <!--l. 24--></p> +L<sup>A</sup>T<sub>E</sub>X will stop immediately with an error. +<!--l. 24--></p> <p class="indent">To tell T<sub>E</sub>Xworks that it should typeset the main document, one adds at the very beginning of the -sub-document the instruction:<a id="dx21-19003" name= -"dx21-19003"></a></p> +sub-document the instruction:<a id="dx20-19003" name= +"dx20-19003"></a></p> <div class="fancyvrb" id="fancyvrb5"> -<a id="x21-19005r1" name="x21-19005r1"></a><span class= +<a id="x20-19005r1" name="x20-19005r1"></a><span class= "ec-lmtt-10x-x-109">%</span><span class= "ec-lmtt-10x-x-109"> !TeX</span><span class= "ec-lmtt-10x-x-109"> root</span><span class= @@ -105,7 +105,7 @@ sub-document the instruction:<a id="dx21-19003" name= </div><!--l. 28--> <p class="noindent">for example:</p> <div class="fancyvrb" id="fancyvrb6"> -<a id="x21-19007r1" name="x21-19007r1"></a><span class= +<a id="x20-19007r1" name="x20-19007r1"></a><span class= "ec-lmtt-10x-x-109">%</span><span class= "ec-lmtt-10x-x-109"> !TeX</span><span class= "ec-lmtt-10x-x-109"> root</span><span class= @@ -124,13 +124,13 @@ as directory separator even on Windows. <!--l. 35--></p> <span class="obeylines-h verb ec-lmtt-12">\input{name.tex}</span> should include the extension <span class="path">.tex</span> to ensure proper SyncTeX functionality (see section <a href= -"GoingfurtherOthertools.html#x30-310005.1">5.1 +"GoingfurtherOthertools.html#x29-310005.1">5.1 <!--tex4ht:ref: sec.synctex --></a>).</p> <h3 class="sectionHead"><span class="titlemark">4.3</span> <a id= -"x21-200004.3" name="x21-200004.3"></a>Spell-checking</h3> +"x20-200004.3" name="x20-200004.3"></a>Spell-checking</h3> <!--l. 39--> <p class="noindent">You can turn on automatic spell-checking<a id= -"dx21-20001" name="dx21-20001"></a> of your source document from +"dx20-20001" name="dx20-20001"></a> of your source document from <em class="c9">Edit</em> <span class= "lmsy-10x-x-120">→</span><em class="c9">Spelling</em><span class= "lmsy-10x-x-120">→</span><em class="c9"><language></em>. It @@ -167,20 +167,20 @@ variable before running T<sub>E</sub>Xworks. </div><!--l. 49--> <p class="indent">One can use the available dictionaries for OpenOffice.org and other free software;<span class= -"footnote-mark"><a href="index23.html#fn2x5"><sup class= -"textsuperscript">2</sup></a></span><a id="x21-20002f2" name= -"x21-20002f2"></a> if you have Mozilla Thunderbird with +"footnote-mark"><a href="index22.html#fn2x5"><sup class= +"textsuperscript">2</sup></a></span><a id="x20-20002f2" name= +"x20-20002f2"></a> if you have Mozilla Thunderbird with spell-checking, you can copy its <span class="path">.aff</span> and -<span class="path">.dic</span> files<a id="dx21-20003" name= -"dx21-20003"></a><a id="dx21-20004" name="dx21-20004"></a> as well, +<span class="path">.dic</span> files<a id="dx20-20003" name= +"dx20-20003"></a><a id="dx20-20004" name="dx20-20004"></a> as well, for example.</p> <h3 class="sectionHead"><span class="titlemark">4.4</span> <a id= -"x21-210004.4" name="x21-210004.4"></a>Search and -replace</h3><a id="dx21-21001" name="dx21-21001"></a> <a id= -"dx21-21002" name="dx21-21002"></a> <!--l. 54--> +"x20-210004.4" name="x20-210004.4"></a>Search and +replace</h3><a id="dx20-21001" name="dx20-21001"></a> <a id= +"dx20-21002" name="dx20-21002"></a> <!--l. 54--> <p class="noindent"></p> <h4 class="subsectionHead"><span class="titlemark">4.4.1</span> -<a id="x21-220004.4.1" name="x21-220004.4.1"></a>Standard +<a id="x20-220004.4.1" name="x20-220004.4.1"></a>Standard functions</h4><!--l. 56--> <p class="noindent">The options of the menu <em class= "c9">Search</em>—<em class="c9">Find…</em>, <em class="c9">Find @@ -194,24 +194,24 @@ again</em>, and <em class="c9">Go to Line…</em> (<span class= <span class="lmsy-10x-x-120">⇑</span></span><span class= "keystroke">R</span>, and <span class= "keystroke">Ctrl</span><span class="keystroke">L</span>, -respectively)—are standard actions (Mac OS X: <span class= -"keystroke"><img src="images/images/MacCmdKey.png" alt= -"PIC" /></span><span class="keystroke">F</span>, <span class= -"keystroke"><img src="images/images/MacCmdKey.png" alt= -"PIC" /></span><span class="keystroke">G</span>, <span class= -"keystroke"><img src="images/images/MacCmdKey.png" alt= -"PIC" /></span><span class="keystroke">R</span>, <span class= -"keystroke"><img src="images/images/MacCmdKey.png" alt= -"PIC" /></span><span class="keystroke">Shift <span class= +respectively)—are standard actions (macOS: <span class= +"keystroke"><img src="images/MacCmdKey.png" alt= +"pict" /></span><span class="keystroke">F</span>, <span class= +"keystroke"><img src="images/MacCmdKey.png" alt= +"pict" /></span><span class="keystroke">G</span>, <span class= +"keystroke"><img src="images/MacCmdKey.png" alt= +"pict" /></span><span class="keystroke">R</span>, <span class= +"keystroke"><img src="images/MacCmdKey.png" alt= +"pict" /></span><span class="keystroke">Shift <span class= "lmsy-10x-x-120">⇑</span></span><span class="keystroke">R</span>, -and <span class="keystroke"><img src="images/images/MacCmdKey.png" -alt="PIC" /></span><span class="keystroke">L</span>); the first and +and <span class="keystroke"><img src="images/MacCmdKey.png" alt= +"pict" /></span><span class="keystroke">L</span>); the first and the third open a dialogue box:</p> <div class="center"> <!--l. 58--> <p class="noindent"><!--l. 59--></p> -<p class="noindent"><img src="images/images/replaceDialog.png" alt= -"PIC" width="43" height="43" /></p> +<p class="noindent"><img src="images/replaceDialog.png" alt= +"pict" /></p> </div><!--l. 62--> <p class="indent">Here, the usual options are available: <em>Wrap around</em>, <em>Find backwards</em>, <em>Search/Replace within @@ -254,21 +254,21 @@ document using the vertical scroll bar on the right</dd> </dl><!--l. 76--> <p class="noindent"></p> <h4 class="subsectionHead"><span class="titlemark">4.4.2</span> -<a id="x21-230004.4.2" name="x21-230004.4.2"></a>Advanced search -and replace (regular expressions)</h4><a id="dx21-23001" name= -"dx21-23001"></a> <!--l. 78--> +<a id="x20-230004.4.2" name="x20-230004.4.2"></a>Advanced search +and replace (regular expressions)</h4><a id="dx20-23001" name= +"dx20-23001"></a> <!--l. 78--> <p class="noindent">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 own<span class= -"footnote-mark"><a href="index24.html#fn3x5"><sup class= -"textsuperscript">3</sup></a></span><a id="x21-23002f3" name= -"x21-23002f3"></a>, so we’ll only give some simple ideas of use. +"footnote-mark"><a href="index23.html#fn3x5"><sup class= +"textsuperscript">3</sup></a></span><a id="x20-23002f3" name= +"x20-23002f3"></a>, 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 <a href="Regularexpressions.html#x43-51000B">B +see section <a href="Regularexpressions.html#x43-52000B">B <!--tex4ht:ref: sec:regexp --></a>. <!--l. 80--></p> <p class="indent">Suppose we have the following text:</p> <div class="fancyvrb" id="fancyvrb7"> -<a id="x21-23004r1" name="x21-23004r1"></a><span class= +<a id="x20-23004r1" name="x20-23004r1"></a><span class= "ec-lmtt-10x-x-109">Voici</span><span class= "ec-lmtt-10x-x-109"> du</span><span class= "ec-lmtt-10x-x-109"> texte</span><span class= @@ -282,10 +282,10 @@ see section <a href="Regularexpressions.html#x43-51000B">B "ec-lmtt-10x-x-109"> dans</span><span class= "ec-lmtt-10x-x-109"> du</span><span class= "ec-lmtt-10x-x-109"> texte</span><br class="fancyvrb" /> -<a id="x21-23006r2" name="x21-23006r2"></a><span class= +<a id="x20-23006r2" name="x20-23006r2"></a><span class= "ec-lmtt-10x-x-109">accentu</span><span class= "ec-lmtt-10x-x-109">é.</span><br class="fancyvrb" /> -<a id="x21-23008r3" name="x21-23008r3"></a><span class= +<a id="x20-23008r3" name="x20-23008r3"></a><span class= "ec-lmtt-10x-x-109">Voici</span><span class= "ec-lmtt-10x-x-109"> du</span><span class= "ec-lmtt-10x-x-109"> texte</span><span class= @@ -299,10 +299,10 @@ see section <a href="Regularexpressions.html#x43-51000B">B "ec-lmtt-10x-x-109"> dans</span><span class= "ec-lmtt-10x-x-109"> du</span><span class= "ec-lmtt-10x-x-109"> texte</span><br class="fancyvrb" /> -<a id="x21-23010r4" name="x21-23010r4"></a><span class= +<a id="x20-23010r4" name="x20-23010r4"></a><span class= "ec-lmtt-10x-x-109">accentu</span><span class= "ec-lmtt-10x-x-109">é.</span><br class="fancyvrb" /> -<a id="x21-23012r5" name="x21-23012r5"></a><span class= +<a id="x20-23012r5" name="x20-23012r5"></a><span class= "ec-lmtt-10x-x-109">Voici</span><span class= "ec-lmtt-10x-x-109"> du</span><span class= "ec-lmtt-10x-x-109"> texte</span><span class= @@ -315,7 +315,7 @@ see section <a href="Regularexpressions.html#x43-51000B">B "ec-lmtt-10x-x-109">ères.</span><span class= "ec-lmtt-10x-x-109"> Voici</span><span class= "ec-lmtt-10x-x-109"> du</span><br class="fancyvrb" /> -<a id="x21-23014r6" name="x21-23014r6"></a><span class= +<a id="x20-23014r6" name="x20-23014r6"></a><span class= "ec-lmtt-10x-x-109">texte</span><span class= "ec-lmtt-10x-x-109"> pour</span><span class= "ec-lmtt-10x-x-109"> tester</span><span class= @@ -324,7 +324,7 @@ see section <a href="Regularexpressions.html#x43-51000B">B "ec-lmtt-10x-x-109"> r</span><span class= "ec-lmtt-10x-x-109">éguli</span><span class= "ec-lmtt-10x-x-109">ères.</span><br class="fancyvrb" /> -<a id="x21-23016r7" name="x21-23016r7"></a><span class= +<a id="x20-23016r7" name="x20-23016r7"></a><span class= "ec-lmtt-10x-x-109">truc</span><span class= "ec-lmtt-10x-x-109"> </span><span class= "ec-lmtt-10x-x-109"> </span><span class= @@ -336,31 +336,31 @@ see section <a href="Regularexpressions.html#x43-51000B">B "ec-lmtt-10x-x-109"> </span><span class= "ec-lmtt-10x-x-109"> </span><span class= "ec-lmtt-10x-x-109"> truc</span><br class="fancyvrb" /> -<a id="x21-23018r8" name="x21-23018r8"></a><span class= +<a id="x20-23018r8" name="x20-23018r8"></a><span class= "ec-lmtt-10x-x-109">t</span><span class= "ec-lmtt-10x-x-109">él.:</span><span class= "ec-lmtt-10x-x-109"> 010-99-99-99</span><br class= "fancyvrb" /> -<a id="x21-23020r9" name="x21-23020r9"></a><span class= +<a id="x20-23020r9" name="x20-23020r9"></a><span class= "ec-lmtt-10x-x-109">t</span><span class= "ec-lmtt-10x-x-109">él.:</span><span class= "ec-lmtt-10x-x-109"> 00.32.10.99.99.99</span><br class= "fancyvrb" /> -<a id="x21-23022r10" name="x21-23022r10"></a><span class= +<a id="x20-23022r10" name="x20-23022r10"></a><span class= "ec-lmtt-10x-x-109">t</span><span class= "ec-lmtt-10x-x-109">él.:</span><span class= "ec-lmtt-10x-x-109"> 00/32-10/99.99.99</span> </div><!--l. 93--> <p class="noindent">We want to</p> <ol class="enumerate1"> -<li class="enumerate" id="x21-23024x1">insert an empty line after -each “accentué” (to create paragraphs in L<span class= -"ec-lmr-8">A</span>TE X), but not after the three telephone +<li class="enumerate" id="x20-23024x1">insert an empty line after +each “accentué” (to create paragraphs in +L<sup>A</sup>T<sub>E</sub>X), but not after the three telephone numbers;</li> -<li class="enumerate" id="x21-23026x2">replace each <span class= +<li class="enumerate" id="x20-23026x2">replace each <span class= "ec-lmro-12">tab</span> character between the two words “truc” of the fourth paragraph by three spaces; and finally</li> -<li class="enumerate" id="x21-23028x3">make the telephone numbers +<li class="enumerate" id="x20-23028x3">make the telephone numbers consistent by replacing the various punctuation characters by spaces.</li> </ol><!--l. 100--> @@ -369,9 +369,9 @@ spaces.</li> "keystroke">Ctrl</span><span class="keystroke">R</span>) for <em>Replace:</em> we put ›<span class= "obeylines-h verb ec-lmtt-12">\n</span>‹<span class= -"footnote-mark"><a href="index25.html#fn4x5"><sup class= -"textsuperscript">4</sup></a></span><a id="x21-23029f4" name= -"x21-23029f4"></a> and in <em>With:</em> ›<span class= +"footnote-mark"><a href="index24.html#fn4x5"><sup class= +"textsuperscript">4</sup></a></span><a id="x20-23029f4" name= +"x20-23029f4"></a> and in <em>With:</em> ›<span class= "obeylines-h verb ec-lmtt-12">\n\n</span>‹. ›<span class= "obeylines-h verb ec-lmtt-12">\n</span>‹ is the code to match or insert a line feed. You will need to select the first four @@ -386,9 +386,9 @@ feed by two, creating an empty line. <!--l. 102--></p> <p class="indent">For 2., use ›<span class= "obeylines-h verb ec-lmtt-12">\t</span>‹ and ›<span class= "obeylines-h verb ec-lmtt-12">␣␣␣</span>‹<span class= -"footnote-mark"><a href="index26.html#fn5x5"><sup class= -"textsuperscript">5</sup></a></span><a id="x21-23030f5" name= -"x21-23030f5"></a>. ›<span class= +"footnote-mark"><a href="index25.html#fn5x5"><sup class= +"textsuperscript">5</sup></a></span><a id="x20-23030f5" name= +"x20-23030f5"></a>. ›<span class= "obeylines-h verb ec-lmtt-12">\t</span>‹ is the code which represents a tab, while a space is typed in literally (here represented as <span class="obeylines-h verb ec-lmtt-12">␣</span>). @@ -437,32 +437,32 @@ letters between “a” and “m” by “$” using ›<span class= "obeylines-h verb ec-lmtt-12">[a-m]</span>‹ and ›<span class= "obeylines-h verb ec-lmtt-12">$</span>‹.</p> <h3 class="sectionHead"><span class="titlemark">4.5</span> <a id= -"x21-240004.5" name="x21-240004.5"></a>Other tools for editing and -error tracking</h3><!--l. 114--> +"x20-240004.5" name="x20-240004.5"></a>Other tools for editing and +error tracking</h3><a id="dx20-24001" name="dx20-24001"></a> +<!--l. 114--> <p class="noindent"></p> <h4 class="subsectionHead"><span class="titlemark">4.5.1</span> -<a id="x21-250004.5.1" name="x21-250004.5.1"></a>Standard +<a id="x20-250004.5.1" name="x20-250004.5.1"></a>Standard tools</h4><!--l. 116--> -<p class="noindent">It is always possible to undo<a id="dx21-25001" -name="dx21-25001"></a> an action using <em class= +<p class="noindent">It is always possible to undo<a id="dx20-25001" +name="dx20-25001"></a> an action using <em class= "c9">Edit</em><span class="lmsy-10x-x-120">→</span><em class= "c9">Undo</em> or <span class="keystroke">Ctrl</span><span class= -"keystroke">Z</span> (Mac OS X: <span class="keystroke"><img src= -"images/images/MacCmdKey.png" alt="PIC" /></span><span class= +"keystroke">Z</span> (macOS: <span class="keystroke"><img src= +"images/MacCmdKey.png" alt="pict" /></span><span class= "keystroke">Z</span>): this way you can undo stepwise! The inverse action, redo, is available as <em class="c9">Edit</em><span class= -"lmsy-10x-x-120">→</span><em class="c9">Redo</em><a id="dx21-25002" -name="dx21-25002"></a> or <span class= +"lmsy-10x-x-120">→</span><em class="c9">Redo</em><a id="dx20-25002" +name="dx20-25002"></a> or <span class= "keystroke">Ctrl</span><span class="keystroke">Shift <span class= "lmsy-10x-x-120">⇑</span></span><span class="keystroke">Z</span> -(Mac OS X: <span class="keystroke"><img src= -"images/images/MacCmdKey.png" alt="PIC" /></span><span class= -"keystroke">Shift <span class= +(macOS: <span class="keystroke"><img src="images/MacCmdKey.png" +alt="pict" /></span><span class="keystroke">Shift <span class= "lmsy-10x-x-120">⇑</span></span><span class= "keystroke">Z</span>).<span class="footnote-mark"><a href= -"index27.html#fn6x5"><sup class= -"textsuperscript">6</sup></a></span><a id="x21-25003f6" name= -"x21-25003f6"></a> <!--l. 118--></p> +"index26.html#fn6x5"><sup class= +"textsuperscript">6</sup></a></span><a id="x20-25003f6" name= +"x20-25003f6"></a> <!--l. 118--></p> <p class="indent">T<sub>E</sub>Xworks also provides the standard editing tools such as the clipboard; therefore one can select, cut/copy and paste a piece of text normally. <!--l. 120--></p> @@ -473,24 +473,23 @@ keyboard, holding down <span class="keystroke">Shift <span class= will select text. You can also move and select word by word moving left or right holding <span class= "keystroke">Ctrl</span><span class="keystroke">Shift <span class= -"lmsy-10x-x-120">⇑</span></span> down (<span class= -"keystroke"><img src="images/images/MacCmdKey.png" alt= -"PIC" /></span><span class="keystroke">Shift <span class= -"lmsy-10x-x-120">⇑</span></span> on Mac OS X). The clipboard -shortcuts are the ones you’ll find in almost every program: -<span class="keystroke">Ctrl</span><span class="keystroke">X</span> -to cut, <span class="keystroke">Ctrl</span><span class= -"keystroke">C</span> to copy, and <span class= -"keystroke">Ctrl</span><span class="keystroke">V</span> to paste -(<span class="keystroke"><img src="images/images/MacCmdKey.png" -alt="PIC" /></span><span class="keystroke">X</span>, <span class= -"keystroke"><img src="images/images/MacCmdKey.png" alt= -"PIC" /></span><span class="keystroke">C</span> and <span class= -"keystroke"><img src="images/images/MacCmdKey.png" alt= -"PIC" /></span><span class="keystroke">V</span>, respectively, on -Mac OS X). <!--l. 122--></p> -<p class="indent">You can easily change the case<a id="dx21-25004" -name="dx21-25004"></a> of a selection—put everything upper case or +"lmsy-10x-x-120">⇑</span></span> down ( <span class= +"keystroke"><img src="images/MacCmdKey.png" alt= +"pict" /></span><span class="keystroke">Shift <span class= +"lmsy-10x-x-120">⇑</span></span> on macOS). The clipboard shortcuts +are the ones you’ll find in almost every program: <span class= +"keystroke">Ctrl</span><span class="keystroke">X</span> to cut, +<span class="keystroke">Ctrl</span><span class="keystroke">C</span> +to copy, and <span class="keystroke">Ctrl</span><span class= +"keystroke">V</span> to paste ( <span class="keystroke"><img src= +"images/MacCmdKey.png" alt="pict" /></span><span class= +"keystroke">X</span>, <span class="keystroke"><img src= +"images/MacCmdKey.png" alt="pict" /></span><span class= +"keystroke">C</span> and <span class="keystroke"><img src= +"images/MacCmdKey.png" alt="pict" /></span><span class= +"keystroke">V</span>, respectively, on macOS). <!--l. 122--></p> +<p class="indent">You can easily change the case<a id="dx20-25004" +name="dx20-25004"></a> of a selection—put everything upper case or lower case—using <em class="c9">Edit</em><span class= "lmsy-10x-x-120">→</span><em class="c9">Change case</em> and next, depending on the desired effect, <em class="c9">ALL UPPERCASE</em>, @@ -498,13 +497,13 @@ depending on the desired effect, <em class="c9">ALL UPPERCASE</em>, Case</em> (which toggles the case of each letter individually). <!--l. 124--></p> <p class="indent">It is also convenient to show the line -numbers<a id="dx21-25005" name="dx21-25005"></a>, as all error +numbers<a id="dx20-25005" name="dx20-25005"></a>, as all error messages refer to these numbers; you can toggle the line numbers, on the left of the editing panel, from <em class= "c9">Format</em><span class="lmsy-10x-x-120">→</span><em class= "c9">Line Numbers</em>.</p> <h4 class="subsectionHead"><span class="titlemark">4.5.2</span> -<a id="x21-260004.5.2" name="x21-260004.5.2"></a>Commenting</h4> +<a id="x20-260004.5.2" name="x20-260004.5.2"></a>Commenting</h4> <!--l. 128--> <p class="noindent">When preparing a document with (L<sup>A</sup>)T<sub>E</sub>X, it is often useful to prevent @@ -514,47 +513,47 @@ error. For that, commenting the source block by block is needed. <!--l. 130--></p> <p class="indent">We have seen that the symbol <span class= "obeylines-h verb ec-lmtt-12">%</span> marks the beginning of a -comment. To comment<a id="dx21-26001" name="dx21-26001"></a> a big +comment. To comment<a id="dx20-26001" name="dx20-26001"></a> a big piece of text, it is sufficient to select it and ask to mark it as comment <em class="c9">Format</em> <span class= "lmsy-10x-x-120">→</span><em class="c9">Comment</em> or <span class="keystroke">Ctrl</span><span class="keystroke">Shift <span class="lmsy-10x-x-120">⇑</span></span><span class= -"keystroke">]</span> (Mac OS X: <span class="keystroke"><img src= -"images/images/MacCmdKey.png" alt="PIC" /></span><span class= +"keystroke">]</span> (macOS: <span class="keystroke"><img src= +"images/MacCmdKey.png" alt="pict" /></span><span class= "keystroke">Shift <span class= "lmsy-10x-x-120">⇑</span></span><span class="keystroke">]</span>). To remove the comment, select the lines and choose <em class= "c9">Format</em><span class="lmsy-10x-x-120">→</span><em class= -"c9">Uncomment</em><a id="dx21-26002" name="dx21-26002"></a> or +"c9">Uncomment</em><a id="dx20-26002" name="dx20-26002"></a> or <span class="keystroke">Ctrl</span><span class="keystroke">Shift <span class="lmsy-10x-x-120">⇑</span></span><span class= -"keystroke">[</span> (Mac OS X: <span class="keystroke"><img src= -"images/images/MacCmdKey.png" alt="PIC" /></span><span class= +"keystroke">[</span> (macOS: <span class="keystroke"><img src= +"images/MacCmdKey.png" alt="pict" /></span><span class= "keystroke">Shift <span class= "lmsy-10x-x-120">⇑</span></span><span class= "keystroke">[</span>).<span class="footnote-mark"><a href= -"index28.html#fn7x5"><sup class= -"textsuperscript">7</sup></a></span><a id="x21-26003f7" name= -"x21-26003f7"></a></p> +"index27.html#fn7x5"><sup class= +"textsuperscript">7</sup></a></span><a id="x20-26003f7" name= +"x20-26003f7"></a></p> <h4 class="subsectionHead"><span class="titlemark">4.5.3</span> -<a id="x21-270004.5.3" name="x21-270004.5.3"></a>Matching +<a id="x20-270004.5.3" name="x20-270004.5.3"></a>Matching delimiters</h4><!--l. 135--> <p class="noindent">A frequent error is to forget a closing symbol: parenthesis, bracket, square bracket, <em>etc</em>. T<sub>E</sub>Xworks 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<a id= -"dx21-27001" name="dx21-27001"></a> using <em class= +"dx20-27001" name="dx20-27001"></a> using <em class= "c9">Edit</em><span class="lmsy-10x-x-120">→</span><em class= "c9">Balance Delimiters</em> or by the shortcut <span class= -"keystroke">Ctrl</span><span class="keystroke">B</span> (Mac OS X: -<span class="keystroke"><img src="images/images/MacCmdKey.png" alt= -"PIC" /></span><span class="keystroke">B</span>). Thus, you will +"keystroke">Ctrl</span><span class="keystroke">B</span> (macOS: +<span class="keystroke"><img src="images/MacCmdKey.png" alt= +"pict" /></span><span class="keystroke">B</span>). Thus, you will immediately see the scope of the block. <!--l. 137--></p> <p class="noindent"></p> <h4 class="subsectionHead"><span class="titlemark">4.5.4</span> -<a id="x21-280004.5.4" name="x21-280004.5.4"></a>Smart quotes</h4> +<a id="x20-280004.5.4" name="x20-280004.5.4"></a>Smart quotes</h4> <!--l. 139--> <p class="noindent">Another similar error, but this time semantic and not hindering typesetting, is in the use of quotes when one @@ -593,8 +592,8 @@ quotation marks systems (in the file <span class= <!--l. 147--></p> <p class="noindent"></p> <h3 class="sectionHead"><span class="titlemark">4.6</span> <a id= -"x21-290004.6" name="x21-290004.6"></a>Auto-completion</h3> -<!--l. 149--> +"x20-290004.6" name="x20-290004.6"></a>Auto-completion</h3><a id= +"dx20-29001" name="dx20-29001"></a> <!--l. 149--> <p class="noindent">Another tool which rapidly becomes indispensable is auto-completion. Indeed, when you use (L<sup>A</sup>)T<sub>E</sub>X, you have to continuously enter codes @@ -604,17 +603,17 @@ close every group you open. <!--l. 151--></p> the <span class="keystroke msam-10x-x-120">⇆</span> key, and have T<sub>E</sub>Xworks insert the (L<sup>A</sup>)T<sub>E</sub>X command or environment code automatically. <!--l. 153--></p> -<p class="indent">As an example to insert “L<span class= -"ec-lmr-8">A</span>TE X”, we have to type <span class= +<p class="indent">As an example to insert +“L<sup>A</sup>T<sub>E</sub>X”, we have to type <span class= "obeylines-h verb ec-lmtt-12">\LaTeX</span>. This is not difficult, but entering “<span class="obeylines-h verb ec-lmtt-12">\</span>” followed by the word “<span class= "obeylines-h verb ec-lmtt-12">LaTeX</span>” with alternating capitals and lower case letters could become annoying after a while.<span class="footnote-mark"><a href= -"index29.html#fn8x5"><sup class= -"textsuperscript">8</sup></a></span><a id="x21-29001f8" name= -"x21-29001f8"></a> With auto-completion, you just enter +"index28.html#fn8x5"><sup class= +"textsuperscript">8</sup></a></span><a id="x20-29002f8" name= +"x20-29002f8"></a> With auto-completion, you just enter <span class="obeylines-h verb ec-lmtt-12">latex</span> and hit <span class="keystroke msam-10x-x-120">⇆</span> to get <span class= "obeylines-h verb ec-lmtt-12">\LaTeX</span>. You just have to take @@ -626,33 +625,33 @@ might not pick up the correct keyword. <!--l. 156--></p> <p class="indent">Another example is <span class= "obeylines-h verb ec-lmtt-12">bmin</span>, which gives</p> <div class="fancyvrb" id="fancyvrb8"> -<a id="x21-29003r1" name="x21-29003r1"></a><span class= +<a id="x20-29004r1" name="x20-29004r1"></a><span class= "ec-lmtt-10x-x-109">\begin{minipage}{}</span><br class= "fancyvrb" /> -<a id="x21-29005r2" name="x21-29005r2"></a><span class= +<a id="x20-29006r2" name="x20-29006r2"></a><span class= "ts1-lmtt10-x-x-109">∙</span><br class="fancyvrb" /> -<a id="x21-29007r3" name="x21-29007r3"></a><span class= +<a id="x20-29008r3" name="x20-29008r3"></a><span class= "ec-lmtt-10x-x-109">\end{minipage}</span><span class= "ts1-lmtt10-x-x-109">∙</span> </div><!--l. 162--> <p class="noindent">with the cursor between the empty pair of curly brackets where you need to enter the size of the minipage. See the -section <a href="CustomizingTw.html#x38-50000A.3">A.3 +section <a href="CustomizingTw.html#x37-51000A.3">A.3 <!--tex4ht:ref: sec.autocompletion --></a> for a list of the keywords for auto-completion. Notice the “<span class= "ts1-lmr12-">∙</span>” in the minipage environment. They are placeholders which can be reached by <span class= "keystroke">Ctrl</span><span class= -"keystroke msam-10x-x-120">⇆</span> (<span class= -"keystroke"><img src="images/images/MacOptKey.png" alt= -"PIC" /></span><span class="keystroke msam-10x-x-120">⇆</span> on +"keystroke msam-10x-x-120">⇆</span> ( <span class= +"keystroke"><img src="images/MacOptKey.png" alt= +"pict" /></span><span class="keystroke msam-10x-x-120">⇆</span> on the Mac), repeating this shortcut cycles forward through the placeholders; by <span class="keystroke">Ctrl</span><span class= "keystroke">Shift <span class= "lmsy-10x-x-120">⇑</span></span><span class= -"keystroke msam-10x-x-120">⇆</span> (<span class= -"keystroke"><img src="images/images/MacOptKey.png" alt= -"PIC" /></span><span class="keystroke">Shift <span class= +"keystroke msam-10x-x-120">⇆</span> ( <span class= +"keystroke"><img src="images/MacOptKey.png" alt= +"pict" /></span><span class="keystroke">Shift <span class= "lmsy-10x-x-120">⇑</span></span><span class= "keystroke msam-10x-x-120">⇆</span>), you can also cycle backwards. <!--l. 164--></p> @@ -686,10 +685,10 @@ add a <span class="path">.txt</span> file in the <span class= "path">completion</span> folder inside the resources folder. The entries in the file should have the following format:</p> <div class="fancyvrb" id="fancyvrb9"> -<a id="x21-29009r1" name="x21-29009r1"></a><span class= +<a id="x20-29010r1" name="x20-29010r1"></a><span class= "ec-lmtt-10x-x-109">bfigo:=\begin{figure}[#INS#]#RET##RET#\end{figure}</span><span class="ts1-lmtt10-x-x-109">∙</span><br class="fancyvrb" /> -<a id="x21-29011r2" name="x21-29011r2"></a><span class= +<a id="x20-29012r2" name="x20-29012r2"></a><span class= "ec-lmtt-10x-x-109">\bibliography{#INS#}</span><span class= "ts1-lmtt10-x-x-109">∙</span> </div><!--l. 172--> |