[latexila] Mallard documentation about the build tools
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Mallard documentation about the build tools
- Date: Thu, 7 Jul 2011 01:09:49 +0000 (UTC)
commit 3b641dcbdb85bbb367d643a9dbe1128e9bba9e59
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Thu Jul 7 03:09:04 2011 +0200
Mallard documentation about the build tools
TODO | 8 ++-
help/C/build_tools.page | 196 +++++++++++++++++++++++++++++++++++++++++++++++
help/C/index.page | 5 +
3 files changed, 208 insertions(+), 1 deletions(-)
---
diff --git a/TODO b/TODO
index f434dc8..994e2d3 100644
--- a/TODO
+++ b/TODO
@@ -13,8 +13,14 @@ LaTeXila 2.2
=> Insert environments as soon as we find the \begin, and then update the item (or delete it)
- Write some documentation:
- - explain the build tools, how to create a new one, etc.
- the difference between Latexmk and Rubber
+ - open the Mallard doc from the program
+ - manage translations
+
+- Build Tools:
+ - BibTeX: problem writing .blg file
+ - MakeIndex: problem writing .ind file
+ - Some problems with the latex and latexmk post processors
LaTeXila â 2.4
diff --git a/help/C/build_tools.page b/help/C/build_tools.page
new file mode 100644
index 0000000..14eaf10
--- /dev/null
+++ b/help/C/build_tools.page
@@ -0,0 +1,196 @@
+<page xmlns="http://projectmallard.org/1.0/"
+ type="topic"
+ id="build_tools">
+
+<info>
+ <link type="guide" xref="index" />
+</info>
+
+<title>Build Tools</title>
+
+<synopsis>
+ <p>The purpose of the build tools is to generate a document in the PDF, DVI or PS
+ format.</p>
+</synopsis>
+
+<!-- TODO mini toc -->
+<!-- <link type="section" /> -->
+
+<section id="overview">
+ <title>Overview</title>
+
+ <p>Several different tools can be used for a document compilation. There are some
+ low-level commands, and two higher-level tools: Latexmk and Rubber.</p>
+
+ <table rules="rowgroups">
+ <title>Low-level commands</title>
+ <thead>
+ <tr>
+ <td><p>Label</p></td>
+ <td><p>Command</p></td>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><p>LaTeX â DVI</p></td>
+ <td><p><cmd>latex</cmd></p></td>
+ </tr>
+ <tr>
+ <td><p>LaTeX â PDF</p></td>
+ <td><p><cmd>pdflatex</cmd></p></td>
+ </tr>
+ </tbody>
+ <tbody>
+ <tr>
+ <td><p>DVI â PDF</p></td>
+ <td><p><cmd>dvipdf</cmd></p></td>
+ </tr>
+ <tr>
+ <td><p>DVI â PS</p></td>
+ <td><p><cmd>dvips</cmd></p></td>
+ </tr>
+ <tr>
+ <td><p>PS â PDF</p></td>
+ <td><p><cmd>ps2pdf</cmd></p></td>
+ </tr>
+ </tbody>
+ <tbody>
+ <tr>
+ <td><p>Bibliography</p></td>
+ <td><p><cmd>bibtex</cmd></p></td>
+ </tr>
+ <tr>
+ <td><p>Index</p></td>
+ <td><p><cmd>makeindex</cmd></p></td>
+ </tr>
+ </tbody>
+ </table>
+
+ <p>Compiling a LaTeX document can involve to execute several low-level commands, in a
+ certain order and a certain number of times. Here is an example:</p>
+ <code>
+$ latex document.tex
+$ bibtex document.aux
+$ latex document.tex
+$ dvips -t a4 document.dvi
+$ ps2pdf document.ps</code>
+
+ <p>Using a higher-level tool such as Latexmk or Rubber simplify a lot all this process,
+ since only one command is required. Indeed, these tools can detect how many times the
+ <cmd>latex</cmd> or <cmd>pdflatex</cmd> command must be called, and whether
+ <cmd>bibtex</cmd> or <cmd>makeindex</cmd> is required. By default, LaTeXila uses
+ Latexmk.</p>
+</section>
+
+<!--
+<section id="latexmk-rubber">
+<title>Differences Between Latexmk and Rubber</title>
+
+<p></p>
+</section>
+-->
+
+<section id="execute">
+ <title>Execute a Build Tool</title>
+
+ <p>There are several means to execute a build tool:</p>
+ <list>
+ <item><p>Open the <gui style="menu">Build</gui> menu (first part).</p></item>
+ <item><p>Use the buttons in the main toolbar (last part).</p></item>
+ <item><p>Use the shortcut: <key>F2</key> â <key>F11</key>.</p></item>
+ </list>
+
+ <p>The build tool is executed on the currently opened file. If the file belongs to a
+ project, it is executed on the project's main file.</p>
+
+ <note style="important">
+ <title>Hidden Build Tools</title>
+ <p>By default, a lot of build tools are hidden, so they can't be executed. To view
+ the full list of build tools, activate or configure them, read the
+ <link xref="#general_configuration" /> section.</p>
+ </note>
+</section>
+
+<section id="general_configuration">
+ <title>General Configuration</title>
+
+ <p>
+ To configure the build tools, open the preferences dialog:
+ <guiseq>
+ <gui style="menu">Edit</gui>
+ <gui style="menu">Preferences</gui>
+ <gui style="tab">LaTeX</gui>
+ </guiseq>
+ </p>
+
+ <p>You will see a list with all the build tools. There are check buttons to show or hide
+ them. When a build tool is hidden, it's not possible to execute it. You can perform some
+ actions, like moving a tool up or down, open its properties, delete or copy it, create a
+ new one, etc.</p>
+
+ <note style="tip">
+ <p>Double-click on a build tool will open its properties.</p>
+ </note>
+
+ <p>For an explanation of the option about the Latexmk post processor, see
+ <link xref="#post-processors" />.</p>
+</section>
+
+<section id="jobs">
+ <title>Jobs of a Build Tool</title>
+
+ <p>In the properties of a build tool, the tricky part is to configure the jobs.
+ A build tool can execute several jobs. Each job contains three pieces of
+ information:</p>
+ <list>
+ <item><p>The command, which can use placeholders.</p></item>
+ <item><p>Whether the job must succeed. If this option is enabled, when an error
+ occurs during the job execution, the next job is not executed.</p></item>
+ <item><p>The post processor (see <link xref="#post-processors" />).</p></item>
+ </list>
+</section>
+
+<section id="post-processors">
+ <title>Post Processors</title>
+ <p>The purpose of a post processor is to filter the command output and extract
+ the useful information. Five post processors are available:</p>
+
+ <terms>
+ <item>
+ <title>no-output</title>
+ <p>The output is simply not displayed.</p>
+ </item>
+ <item>
+ <title>all-output</title>
+ <p>All the output is displayed, without filter.</p>
+ </item>
+ <item>
+ <title>latex</title>
+ <p>Filter the output of the <cmd>latex</cmd> or <cmd>pdflatex</cmd> commands.
+ There can be three types of errors: critical errors, warnings, or badboxes. There
+ are also some other useful information: the size of the document, the number of
+ pages, and the number of errors.</p>
+ </item>
+ <item>
+ <title>latexmk</title>
+ <p>Used for the <cmd>latexmk</cmd> command. Internally, this post processor uses
+ other ones: <em>latex</em> and <em>all-output</em>.</p>
+
+ <p>In the <link xref="#general_configuration" />, there is an option for always
+ showing all information of this post processor. If this option is disabled (which
+ is the case by default), only the output of the last <cmd>latex</cmd> or
+ <cmd>pdflatex</cmd> command is displayed, if no error occured in another command.
+ This allows to reduce the output showed in the bottom panel. But even if there are
+ no errors, it can be useful to see exactly which commands are executed, with their
+ output.</p>
+ </item>
+ <item>
+ <title>rubber</title>
+ <p>This is the post-processor used for the <cmd>rubber</cmd> command. The errors are
+ categorised into two types: badboxes, and the others. So, unlike the <em>latex</em>
+ post processor, there is no distinction between critical errors and simple
+ warnings.</p>
+ </item>
+ </terms>
+</section>
+</page>
diff --git a/help/C/index.page b/help/C/index.page
new file mode 100644
index 0000000..eed9014
--- /dev/null
+++ b/help/C/index.page
@@ -0,0 +1,5 @@
+<page xmlns="http://projectmallard.org/1.0/"
+ type="guide"
+ id="index">
+<title>LaTeXila Help</title>
+</page>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]