LaTeX/Installation : Différence entre versions
(Programme) |
(→OpenOffice and writer2latex : Calc2latex) |
||
| Ligne 61 : | Ligne 61 : | ||
You need Emacs or any editor to clean the LaTeX file. For tables, simple copy and paste might be preferred. A systematic change of the tabulation character to " & " (two spaces around an ampersand) is helpful. | You need Emacs or any editor to clean the LaTeX file. For tables, simple copy and paste might be preferred. A systematic change of the tabulation character to " & " (two spaces around an ampersand) is helpful. | ||
| + | |||
| + | ==Calc2LaTeX== | ||
| + | |||
| + | Calc2LaTeX lets you selects cells in your spreadsheets and output code for LaTeX tables. | ||
| + | |||
| + | |||
| + | === Calc2LaTeX installation on OpenOffice.org 2.0 === | ||
| + | |||
| + | # Before you install Calc2LaTeX, download a zip file from http://calc2latex.sourceforge.net and extract it somewhere. | ||
| + | #Open OpenOffice Calc or (Libre Office) and click <tt>Tools</tt>=><tt>Macros</tt>=><tt>Organize Macros</tt> => <tt>OpenOffice.org Basic...</tt> | ||
| + | :[[:Fichier:calc2latexinstall2.jpg]] | ||
| + | #You will see 'OpenOffice.org Basic Macros' dialog box. Select 'My Macros' and push 'Organizer' button | ||
| + | :[[Fichier:calc2latex2.jpg]] | ||
| + | # Click 'Libraries' tab, and confirm that 'My Macros & Dialogs' is selected on the list of 'Location.' (If not, select it.) | ||
| + | :And then click <tt>Append</tt> button. | ||
| + | :[[Fichier:calc2latex3.jpg]] | ||
| + | :[[Fichier:calc2latex3-fr-mac.jpg]] | ||
| + | # You will see a file dialog, so select <tt>script.xlb</tt> which you have extracted from the zip file in advance. | ||
| + | :[[Fichier:calc2latex4.jpg]] | ||
== R == | == R == | ||
Version du 2 juin 2011 à 21:31
Sommaire
TeXLive
TeXLive2010 is a common distribution for Windows, Mac OS/X and Linux. In May 2011, TeXLive2011 is not out but most of packages, if upgraded from CTAN. The Comprehensive TeX Archive Network is the place to get materials related to the TeX typesetting system. You need to read http://www.tug.org/texlive/doc/texlive-en/texlive-en.html
- On Windows you are supposed to download the ISO file and burn it on a DVD (see http://www.tug.org/texlive/acquire-dvd.html).
- On Mac OS/X, you are supposed to get MaCTeX which includes TeXLive and run the dmg file for installation.
- On Linux, texlive is installed by default. You may need to install some additional packages.
Windows installation
Insert the DVD and install the distribution. It may take half an hour or more. See http://www.tug.org/texlive/doc/texlive-en/texlive-en.html for Post instal actions. In particular open a terminal and enter the command (copy and paste by right click)
> tlmgr option repository http://mirror.ctan.org/systems/texlive/tlnet
For all 3 OS
Follow the section 3.5 Testing the installation and test the commands: latex, pdflatex, etc. on simple examples.
Once you are finished, you can test the editor TeXworks which works on the 3 operating systems.
Click on the TeXworks icon on your Desktop (Windows installation) and choose File => New from a template. Choose a Beamer template. Run it, look at the pdf, move to another page. Right click somewhere on the pdf text and choose sync to the source code. Your left window will sync with the corresponding tex source line. Move to another section of the source text, right click and choose locate on PDF and the right pane (PDF window) will scroll to the corresponding section.
Test a XeTeX template and run it. If it runs into error because of a missing font, comment the line by adding a % in front of the line and run again. XeTeX is able to run with any font of your OS and not only on "Computer Modern" fonts which are specific to TeX.
Now you have a running mininal running installation.
Gnu-emacs and AucTeX
If you are willing to use Emacs for your TeX editor, you will have to download Aquamacs for OS/X users. On Linux, you need to download gnu-emacs as well as AucTeX which are in two separate packages. On Windows, go to http://www.gnu.org/software/auctex/download-for-windows.html and you will able to download AucTeX as well as Emacs.
Just download the Emacs zip (currently version 23.3) first and then extract it on c:\Program Files\Emacs by creating an Emacs folder. It will created a tree c:\Program Files\Emacs\emacs-23.3 of all the emacs distribution. In the directory c:\Program Files\Emacs\emacs-23.3\bin, you will find a file named runemacs.exe. Right click and create an alias (link) file and then move this link on your desktop or menu bar in order to launch emacs.
Now, unzip the AucTeX zipped file exactly on this emacs-23.3 folder in order to add the AucTeX tree to the emacs tree. In particular a newer dir file under the emac-23.3\info will supersede the previous file with the same name (accept to overwrite dir file).
Launch runemacs and open a tex file. It should work.
JabReF
JabReF (see http://jabref.sourceforge.net/) is the tool which will be presented for the Bibliography management. Some exercises will be proposed using JabReF. It is very easy to download.
Other softwares
Other softwares will be used during the presentation in relation to LaTeX. They are all free softwares. You can dowload them.
OpenOffice and writer2latex
If you want to export a Word document into a LaTeX document, a nicer way than copy and paste consists in loading the .doc file in Writer from Openoffice and export it using writer2latex as a LaTeX file.
You can download OpenOffice at http://fr.openoffice.org/about-downloads.html and install the default installation with Java.
Then go to http://writer2latex.sourceforge.net/index12.html#download in order to download Writer2LaTeX 1.1.7 (April 2011) as a zip file. Unzip the file in a temporary folder and click on the file writer2latex.oxt which will open by OpenOffice and install as an extension.
Now you can export a .doc into a .tex file. Amongst the various options, you can use Simple LaTeX, utf-8 encoding as well as xetex for the TeX engine instead of pdftex.
For non well structured documents you will find that Writer2LaTeX uses the principle garbage in – garbage out!
But for a well structured Word document, writer2latex (recent version only) simplifies the porting by creating images (png files) for most of the figures.
You need Emacs or any editor to clean the LaTeX file. For tables, simple copy and paste might be preferred. A systematic change of the tabulation character to " & " (two spaces around an ampersand) is helpful.
Calc2LaTeX
Calc2LaTeX lets you selects cells in your spreadsheets and output code for LaTeX tables.
Calc2LaTeX installation on OpenOffice.org 2.0
- Before you install Calc2LaTeX, download a zip file from http://calc2latex.sourceforge.net and extract it somewhere.
- Open OpenOffice Calc or (Libre Office) and click Tools=>Macros=>Organize Macros => OpenOffice.org Basic...
- You will see 'OpenOffice.org Basic Macros' dialog box. Select 'My Macros' and push 'Organizer' button
- Erreur lors de la création de la miniature : Impossible d'enregistrer la vignette sur la destination
- Click 'Libraries' tab, and confirm that 'My Macros & Dialogs' is selected on the list of 'Location.' (If not, select it.)
- And then click Append button.
- Erreur lors de la création de la miniature : Impossible d'enregistrer la vignette sur la destination
- Erreur lors de la création de la miniature : Impossible d'enregistrer la vignette sur la destination
- You will see a file dialog, so select script.xlb which you have extracted from the zip file in advance.
- Erreur lors de la création de la miniature : Impossible d'enregistrer la vignette sur la destination
R
Gnuplot (***)
Xfig (****)
Linux and OS/X only!!!