Académique Documents
Professionnel Documents
Culture Documents
===========
v3.3
Text formatting (bold, italic), alignment (left, right, centered), and rotation of
cell
contents is retained. Cells spanning multiple columns and/or rows are supported.
Border lines can be retained at the level of individual cells, or replaced with the
style of formatting recommended by the booktabs package. The generated LaTeX
code can also be placed in a floating table environment.
The LaTeX code can be copied to the clipboard or saved as a LaTeX file, which
then can be included in an existing LaTeX document using the \input command.
You can also specify which ranges of your Excel workbook you want to convert
into LaTeX, and convert them all at once as individual .tex files.
This Excel add-in works best in Microsoft Office 2000 and later (on Windows).
It also works in Office:mac (on Mac OS X), but see the "Known issues" section.
SOURCE
~~~~~~
The development repository and the bug tracker for this package is hosted at
https://launchpad.net/excel2latex .
INSTALLATION
~~~~~~~~~~~~
Just open the file Excel2LaTeX.xla in Excel. Then you will have two additional
menu items in your "Tools" menu and a new toolbar with two buttons on it. For
Excel 2007 and later, you will have two new buttons in the "Add-Ins" ribbon. If
you plan to use the program frequently, you can save it in your addin directory
and add it with Tools/Add-in. This way it will be loaded whenever Excel is
opened.
USAGE
~~~~~
Just select the table to convert and hit the button "Convert table to LaTeX". You
will be given the option to save the result to a .tex file, or send it to the
clipboard
(so you can paste it into your LaTeX editor). Hit the "Store" button to store the
current settings so you can "Load" them later or "Export all" to LaTeX.
ANNOTATIONS
~~~~~~~~~~~
* Bold and italic are recognized as long as whole cell is in bold or italic.
* Alignment formats (right, left, center) will be recognized for individual cells.
* Cell border lines will be recognized for individual cells (with certain
restrictions).
* Font sizes are not supported, because they are handled completely different in
TeX.
* Cells spanning multiple columns and/or rows are supported. For this you have to
merge the cells in Excel using the format/cells menu and selecting the alignment
tab.
* The characters %, &, and # are automatically replaced by LaTeX macros
(e.g. \%), while \, $, _, and ^ can optionally be replaced.
* You can put additional LaTeX formatting commands in the Excel cells, so you
don't have to edit the output, if you want some special chars or formats.
* The default file name for export is the name of the selected range (if it has
one), otherwise it will be the name of the active Excel worksheet.
* Stored tables: It is possible to store the Excel ranges that you want to convert
into LaTeX, together with one set of options per range, in the
workbook. Internally, the "list of stored tables" is kept on a hidden worksheet
named "Excel2LaTeX", and hence is saved whenever you save your
workbook. The table ranges corresponding to the stored tables are recorded as
relative references in the hidden worksheet "Excel2LaTeX"; extensions,
contractions or movements of a "stored table" will be reflected
automatically.
A list view containing the stored tables is shown on the right side of the main
form. A double click on an item in the list of stored tables loads this table;
alternatively, you can select the item and hit "Load". The buttons "Store" and
"Overwrite" allow inserting a new or overwriting an existing stored table. The
"Delete" button deletes a selected stored table without prompt. The
"Export all" button converts all selected ranges to LaTeX and writes one .tex
file -- don't forget to configure file names properly! In addition, the new
toolbar button and menu item "Convert all stored tables to LaTeX" call the
macro LaTeXAllToFiles that also triggers this process.
COPYRIGHT
~~~~~~~~~
Copyright 1996, 1997, 1998, 2001, 2008, 2010, 2011, 2012 by Kirill Mller,
Andrew Hawryluk, and Joachim Marder.
This work may be distributed and/or modified under the conditions of the LaTeX
Project Public License, either version 1.3 of this license or (at your option) any
later version. The latest version of this license is in
http://www.latex-project.org/lppl.txt
and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01
or later.
KNOWN ISSUES
~~~~~~~~~~~~
Office Mac: "Copy to clipboard" appends extra null (\0) characters.
Office Mac: Performance is worse than in Windows, converting large ranges might
take minutes or hours.
Office Mac: The functionality is accessible only through the "Format" menu.
Office Mac: The dialog is modal (Windows: modeless).
All: Color not (yet) supported.
BUGS
~~~~
Please report bugs via the bug tracker at https://launchpad.net/excel2latex .
CHANGES
~~~~~~~
Version 3.3: Released on 27 Sep 2012
* Bug fix: Doesn't crash when trying to start conversion when an entire line is
selected.
* Bug fix: Better conversion of backslashes: '\textbackslash{}' instead of
'\textbackslash '
* Performance: Improvements by avoiding unnecessary calls to Excel objects
* CAVEAT: Depending on the formatting of your table, you might require the
following packages not required before:
- bigstrut
- rotating
- multirow
* Bug fix: The type of the left border of a multicolumn cell is determined
correctly
(in non-booktabs mode).
* The main form is now modeless. The worksheet can be edited while the form is
open.
- Changes to the contents of the selection are tracked, the LaTeX table in the
text box is updated automatically. Changes to cell formatting (font style,
borders) are not tracked.
- The current selection can be set as source range for the current conversion to
LaTeX by hitting the large button at the top of the dialog.
OLD RELEASES
~~~~~~~~~~~~
To access older releases of this add-on, please visit
https://code.launchpad.net/excel2latex . Releses of version 2.2 and later
can be downloaded directly from URLs like
http://bazaar.launchpad.net/~mail-kirill-mueller/excel2latex/2.2/files
(susbtitute 2.2 for the version number).