summaryrefslogtreecommitdiff
path: root/Master/tlpkg/texworks/texworks-help/TeXworks manual/en/manual005.html
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/texworks/texworks-help/TeXworks manual/en/manual005.html')
-rw-r--r--Master/tlpkg/texworks/texworks-help/TeXworks manual/en/manual005.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/Master/tlpkg/texworks/texworks-help/TeXworks manual/en/manual005.html b/Master/tlpkg/texworks/texworks-help/TeXworks manual/en/manual005.html
index f0b5579485e..acfd6358a1c 100644
--- a/Master/tlpkg/texworks/texworks-help/TeXworks manual/en/manual005.html
+++ b/Master/tlpkg/texworks/texworks-help/TeXworks manual/en/manual005.html
@@ -13,7 +13,9 @@
<A HREF="index.html"><IMG SRC="contents_motif.gif" ALT="Up"></A>
<A HREF="manual006.html"><IMG SRC="next_motif.gif" ALT="Next"></A>
<HR>
-<H2 CLASS="section"><A NAME="htoc15">4</A>  Going further: Editing tools</H2>
+<table width="80%" align="center" >
+ <tr>
+ <td><H2 CLASS="section"><A NAME="htoc15">4</A>  Going further: Editing tools</H2>
<P>When you have had some practise with T<sub>E</sub>Xworks, you’ll find the need for more effective tools. Many tools exist in T<sub>E</sub>Xworks. We are going to see them now.</P>
<H3 CLASS="subsection"><A NAME="toc9"></A><A NAME="htoc16">4.1</A>  Creating a document from a template<A NAME="@default69"></A></H3><P>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 or create your own with all of these settings already in place.</P><P>Use <I><FONT COLOR=maroon><B>File / New from template…</B></FONT></I> or <CODE>[Ctrl+Shift+N]</CODE> (Mac OS X <CODE>[Cmd+Shift+N]</CODE>). A dialogue box opens to allow selection of the template. After selection and <CODE>OK</CODE> a document is created and you can start to work.</P><P>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) and save it as a <CODE>.tex</CODE> file in the <CODE>&lt;home&gt;\TeXworks\templates</CODE> folder, or possibly a sub-folder of it.</P><H3 CLASS="subsection"><A NAME="toc10"></A><A NAME="htoc17">4.2</A>  Creating a project<A NAME="@default70"></A> using several source files</H3><P>When the source becomes long, it is sometimes difficult to navigate in it. It is then useful to split the source in different smaller files: one file will be the main document, with the preamble, the <CODE>document</CODE> environment, as well as calls to the “sub-documents”.<SUP><A NAME="text14" HREF="manual010.html#note14">13</A></SUP></P><P>But there might be a problem if, in a sub-document, you start typesetting/compilation: as there is no preamble nor <CODE>document</CODE> environment there is an immediate error stop.</P><P>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:</P><P>
<CODE>% !TeX root = path/main_file.tex</CODE><A NAME="@default71"></A></P><P>for example:</P><P><CODE>% !TeX root = manual.tex</CODE></P><P>If the main file is in the same folder, its name is enough, as in the above example. Notice that the slash <CODE>/</CODE> and not the backslash <CODE>\</CODE> should be used even on Windows.</P>
@@ -65,7 +67,9 @@ tél.: 00/32-10/99.99.99
\bibliography{#INS#}•
</PRE><P>In the first case, <CODE>bfigo</CODE> is the assigned keyword (with <CODE>:=</CODE>) to be converted into a <TT>figure</TT> environment with an optional argument; there is a carriage return after the <CODE>begin</CODE>, one empty and the cursor is between the square brackets. The codes <CODE>#INS#</CODE> and <CODE>#RET#</CODE> represent the cursor insertion point and line returns, respectively, “•” is a place holder.</P><P>In the second case we give ourselves a short-cut, which will let us type the first part of <CODE>\bibliography{}</CODE> and have T<sub>E</sub>Xworks convert it to the full name plus braces (with the cursor between them). The keyword is the instruction itself.</P><P>Of course it is always possible to use “•”!</P>
<P>The <TT>.txt</TT> file containing the auto-completion information needs to be UTF-8 encoded: it can be created with T<sub>E</sub>Xworks.</P>
-<HR>
+ </td>
+ </tr>
+</table><HR>
<A HREF="manual004.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A>
<A HREF="index.html"><IMG SRC="contents_motif.gif" ALT="Up"></A>
<A HREF="manual006.html"><IMG SRC="next_motif.gif" ALT="Next"></A>