Writer2LaTeX Changelog

What's new in Writer2LaTeX 1.5.2 Alpha

May 14, 2015
  • [all] Using the filters from the command line with soffice --headless --convert-to is now documented in the user manual
  • [all] Filter API change: The filters now accepts the FilterOptions property as an alternative to FilterData. This property accepts a comma separated string of option=value items. In particular this allows to pass option from the command line (soffice --headless --convert-to).
  • [all] API change: The interface OutputFile now defines an additional method containsMath() which returns true if the file contains mathematical formulas (only implemented for XHTML, currently always returns true for LaTeX)
  • [w2x] The template page in the configuration now displays an error message if the template is not well-formed XML.
  • [w2x] Added toolbar configuration dialog: Select XHTML and EPUB export format and behavior after export (do nothing, display in default viewer or display with custom application)
  • [w2x] New option include_ncx to include a NCX file even if the export format is EPUB 3
  • [w2x] Added EPUB 3 as export format and changed default export format for the toolbar to EPUB 3
  • [all] Implementation detail: Moved descriptions to a separate folder within the extensions
  • [all] The position of message boxes has changed from (0,0) to (200,100)
  • [w2l] Implementation detail: The dialog library W4LDialogs is now merged into W2LDialogs2. This avoids conflicts with the old Writer4LaTeX extension if this happens to be installed.
  • [all] Fixed typo in export dialogs: The text on the help button was in danish.
  • [w2x] New boolean option embed_img (default false). If set to true, the binary contents of img elements are included directly on the src attribute as base64
  • [w2l] The bibliography configuration is slightly modified: The options to convert Zotero or JabRef citations are now only available if the option to use external BibTeX files is selected
  • [w2l] Added new BibTeX dialog to insert a bibliographic reference to a BibTeX file. The BibTeX files are located as defined in the configuration, and the reference is inserted as an ordinary reference mark.
  • [w2l] Various improvements to the log viewer dialog: Reduced height to better accommodate small screen resolutions. Added checkbox to filter the LaTeX log to display only errors. Added help page and long tips.
  • [w2x] Changed default export format for toolbar from XHTML+MathML to HTML5
  • [w2l] *Added new option font to load font packages. It accepts a large number of standard font packages such as cmbright or fourier. Only packages with math support are included. Unknown packages defaults to Computer Modern. The font option is currently not available for the backend xetex. In the user interface, this option can be found in the export dialog. To make room for this, the BibTeX settings no longer has a heading in the dialog.
  • [w2l] Bugfix: Include w2lconfig.oxt in the distribution (was missing in 1.5.1)

New in Writer2LaTeX 1.5.1 Alpha (May 14, 2015)

  • [w2l] Implementation detail: Updated to version 20140107 of the JSON library org.json.* from JSON.org Now based on prebuilt jar rather than directly on the source
  • [w2l] Merged the extension Writer4LaTeX into Writer2LaTeX, where it now appears as "the Writer2LaTeX toolbar"
  • Replaced menu with a toolbar with four buttons: Insert BibTeX citation (not yet implemented), publish to LaTeX, view log files and edit custom format. (Publishing without showing the dialog is currently removed.)
  • Using the toolbar bypasses the filter logic, which gives a significant performance gain for large documents The remaining parts of Writer4LaTeX (the article template, configuration and help file) has been renamed to "Writer2LaTeX configurations" (short w2lconfig)
  • [all] Implementation detail: Replaced Robert Harder's base 64 class with javax.xml.bind.DatatypeConverter
  • [w2x] Style maps for paragraphs and headings now support the attributes before and after. These define fixed texts to add before/after the content. (This is similar to the pseudo-elements ::before and ::after in CSS.)
  • [w2x] Added toolbar with four buttons: Publish directly to XHTML, publish directly to EPUB, edit EPUB metadata and edit custom configuration. Publishing directly implies that the file picker is not displayed. Instead the document will be exported to the same directory as the currently open document and with the same name The EPUB buttons are only visible in Writer, the other buttons are also visible in Calc This feature bypasses the filter logic, which gives a significant performance gain for large documents
  • [all] Filter: Refactored filter code, the actual conversion has been separated from the XExportFilter implementation

New in Writer2LaTeX 1.4 (Feb 17, 2015)

  • [all] The help button is now labeled Help in all export dialogs
  • [w2x] Bugfix: No longer include xmlns attribute on math nodes in HTML5 export
  • [w2l] Workaround for an oddity seen in AOO 4.1 and LO 4.0: For SVG images the alternative PNG representation is stored before the SVG image in the document. Now the alternative image is preferred if it can be converted to the default vector format of the conversion.
  • [w2x] Bugfix: The option pages for editing the custom style are now also visible in Calc
  • [w2l] Bugfix: In the export dialog, the LaTeX format is now persistent, also for custom formats
  • [w2x] Bugfix: The date dialog used by the EPUB Metadata dialog now has a title
  • [w2x] Bugfix: The date field in the EPUB Metadata dialog did not work in LO 4.1 and newer. This was due to an API change in LO (long replaced by com.sun.star.util.Date), and is now fixed.

New in Writer2LaTeX 1.4 Alpha (Nov 10, 2014)

  • All:
  • Optimized memory usage
  • Images that are used more than once in the document are now only exported once
  • Now requires Java 6
  • LaTeX:
  • New option display_hidden_text to toggle the export of hidden text in the document
  • Merge spans with identical formatting
  • Support for TexMaths equations
  • The package ooomath.sty is no longer required by standard configurations
  • StarMath bugfixes
  • XHTML:
  • Support for (polyglot) HTML5, replacing the target format XHTML+MathML+XSLT
  • New option use_mathjax to load the MathJax library if the target format is XHTML+MathML or HTML5
  • Support for TexMaths equations (only if use_mathjax=true)
  • Vector graphics is now converted to SVG if target format is HTML5
  • New option embed_svg to embed SVG directly in HTML if target format is HTML5
  • Support for HTML5 elements in templates
  • Merge span elements with identical attributes
  • New option table_size replacing the option ignore_table_dimensions
  • Support display equations

New in Writer2LaTeX 1.3.2 Alpha (Sep 22, 2014)

  • [w2l] Two or more span elements in a row which generates identical formatting in LaTeX are now merged. This avoids constructs like \textbf{this is }\textbf{bold}.
  • [w2l] Optimization: The SimpleDomBuilder now merges text nodes
  • [w2l] Replace usage of StringBuffer with StringBuilder everywhere (marginal optimization)
  • [w2l] The standard configurations pdfprint.xml and pdfscreen.xml no longer requires ooomath.sty
  • [w2l] A bookmark in a heading no longer results in an optional argument to \section commands
  • [w2l] New option display_hidden_text (default false) to toggle whether or not hidden text should be included in the export. In the export filter, this option can be toggled in the export options dialog.
  • [w2l] Bugfix (StarMath conversion): The five colors red, green, blue, magenta and yellow is now exported to the correct dark colors rather than the previous bright colors (the colors white, black and yellow are unchanged)
  • [w2x] If a border has a width which is equivalent to less that 1px, it is now exported with the width 1px. This fixes an issue with some browsers, that would render the border invisible.
  • [w2x] Two or more span elements in a row with identical attributes are now merged
  • [all] Filters: Appended [Writer2LaTeX] or [Writer2xhtml] to all filter UI names to make them more visible
  • [w2l] Bugfix: Avoid null pointer exception caused by list styles in some cases
  • [w2x] Bugfix: EPUB export filter works again (was broken in 1.3.1)
  • [w2x] Bugfix: Text boxes are no longer lost if within a paragraph
  • [w2x] SVG support in HTML5 is now finished: Images in SVG format are kept in the original format. Other vector images are converted to SVG (filter only). This only works with recent versions of the office (LO 4.2 and AOO 4.1 are known to work). The option use_svg has been renamed to inline_svg. If set to true (default) inline SVG is used, if set to false, external SVG-files (img-elements) are used. In the UI, this setting can be found on the options page Writer2xhtml - Content.
  • [all] If an image image cannot be converted to an acceptable format, the optional alternative image will now be tried
  • [all] Bugfix: Avoid null pointer exception if a table has no defined table width
  • [w2l] Bugfix (StarMath conversion): Protect the character [ after \\ in gather and matrix environments
  • [w2l] Bugfix: Protect the character [ after \\ in tables
  • [w2l] Bugfix (StarMath conversion): Usage of \multiscripts and \mathoverstrike now loads the required calc.sty
  • [w2l] Bugfix (StarMath conversion): Do not create display equations in table cells
  • [w2l] Bugfix (StarMath conversion): Set the counter MaxMatrixCols if there are matrices with more than 10 columns
  • [w2l] Bugfix (StarMath conversion): Add braces if the argument to a command is a space, e.g. \text{ }
  • [all] Refactored and optimized memory usage of image conversion
  • [all] Refactored and rearranged some code; in particular the last remaining bits of the old xmerge framework has been removed
  • [all] Optimized reading of package format: The settings.xml files are not parsed and the unused parts of the ZIP file are disposed

New in Writer2LaTeX 1.3.1 Alpha (Sep 22, 2014)

  • [w2x] Starting with version 4.2, LibreOffice exports display="math" on display equations. This attribute is now removed if a display equation is used inline in the source document.
  • [w2x] Support for the obsolete output format XHTML+MahtML+XSL has been removed (replaced by MathJax). As a consequence the option xslt_path has been removed. Also the vacant spot in the export dialog is now used for the option use_mathjax (only active for XHTML+MathML and HTML5)
  • [all] Added support for TexMaths equations in LaTeX, XHTML+MathML and HTML5 (the last two only if use_mathjax=true)
  • [all] The command line application now gives an explanation if the source file is not in ODF format
  • [all] Bugfix: Fixed typo that caused writer2latex.office.MIMETypes.getMagicMIMEType() to fail in some cases
  • [w2x] The option ignore_table_dimensions has been replaced by a new option table_size with values none (do not export table dimensions), relative (always use relative width) and auto (use the formatting of the source document): If set to true, all tables are exported with relative width, even if they have an absolute width in the source document
  • [w2x] New boolean option use_mathjax (default false): If set to true and export format is XHTML+MATHML or HTML5,documents will load the MathJax JavaScript library for rendering of formulas (otherwise the document will rely on native MathML support in the browser)
  • [w2x] New boolean option use_svg (default false): If set to true and export format is HTML5, vector graphics are exported as inline SVG, if possible
  • [w2x] Added support for HTML5 as export type (the ConverterFactory understands the pseudo-MIME type text/html5). The converter creates polyglot HTML5 documents, i.e. documents will be conforming to HTML5 as well as XML standards.
  • [all] Optimized the parsing of the source document saving some time and space (several intermediate steps and large byte arrays are now avoided)
  • [all] API change: The converters can now convert directly from a DOM tree
  • [all] Removed unused code in writer2latex.xmerge
  • [w2x] Moved localized strings to .properties files

New in Writer2LaTeX 1.2.1 Beta (Sep 9, 2014)

  • [all] Filter dialogs now works with LibreOffice 4.x
  • [w2l] Bugfix: The attribute fontenc on string-replace rules is now again optional in configuration files
  • [all] Bugfix: Fixed update problem in configuration dialogs when New-button is used to select an existing item
  • [w2l] Added support for the new notexists keyword in StarMath
  • [w2x] Removed text from the horizontal bar in the EPUB export dialog
  • [all] Minor edits to the user's manual

New in Writer2LaTeX 1.3.1 Alpha (Aug 25, 2014)

  • [w2x] Starting with version 4.2, LibreOffice exports display="math" on display equations. This attribute is now removed if a display equation is used inline in the source document.
  • [w2x] Support for the obsolete output format XHTML+MahtML+XSL has been removed (replaced by MathJax). As a consequence the option xslt_path has been removed. Also the vacant spot in the export dialog is now used for the option use_mathjax (only active for XHTML+MathML and HTML5)
  • [w2l] Added support for TexMaths equations in LaTeX, XHTML+MathML and HTML5 (the last two only if use_mathjax=true)
  • [all] The command line application now gives an explanation if the source file is not in ODF format
  • [all] Bugfix: Fixed typo that caused writer2latex.office.MIMETypes.getMagicMIMEType() to fail in some cases
  • [w2x] The option ignore_table_dimensions has been replaced by a new option table_size with values none (do not export table dimensions), relative (always use relative width) and auto (use the formatting of the source document). If set to true, all tables are exported with relative width, even if they have an absolute width in the source document
  • [w2x] New boolean option use_mathjax (default false): If set to true and export format is XHTML+MATHML or HTML5, documents will load the MathJax JavaScript library for rendering of formulas (otherwise the document will rely on native MathML support in the browser)
  • [w2x] New boolean option use_svg (default false): If set to true and export format is HTML5, vector graphics are exported as inline SVG, if possible
  • [w2x] Added support for HTML5 as export type (the ConverterFactory understands the pseudo-MIME type text/html5). The converter creates polyglot HTML5 documents, i.e. documents will be conforming to HTML5 as well as XML standards.
  • [all] Optimized the parsing of the source document saving some time and space (several intermediate steps and large byte arrays are now avoided)
  • [all] API change: The converters can now convert directly from a DOM tree
  • [all] Removed unused code in writer2latex.xmerge
  • [w2x] Moved localized strings to .properties files

New in Writer2LaTeX 1.2.1 Beta (Aug 5, 2014)

  • [all] Filter dialogs now works with LibreOffice 4.x
  • [w2l] Bugfix: The attribute fontenc on string-replace rules is now again optional in configuration files
  • [all] Bugfix: Fixed update problem in configuration dialogs when New-button is used to select an existing item
  • [w2l] Added support for the new notexists keyword in StarMath
  • [w2x] Removed text from the horizontal bar in the EPUB export dialog
  • [all] Minor edits to the user's manual

New in Writer2LaTeX 1.2 Beta (Mar 13, 2012)

  • Filters:
  • Added user interface to edit custom configuration
  • Added help files
  • New Writer4LaTeX extension supporting the use of Writer as a frontend to LaTeX
  • LaTeX:
  • Support XeTeX and polyglossia.sty
  • Support for xepersian.sty
  • Support Zotero, JabRef and natbib.sty
  • Improved support for cross references
  • Support unnumbered headings
  • Support first/last foot for multipage tables
  • Cleaner export of formulas (avoiding redundant braces)
  • Support for new StarMath constructs
  • Support the "numbered formula" AutoText in Writer
  • XHTML:
  • Support conversion to EPUB format
  • Support conversion to XHTML 1.1 (without MathML)
  • The style sheet can now be created in a separate file
  • New option to export images using relative width
  • Improved support for footnotes and endnotes
  • Improved support for list formatting
  • Support split by page breaks
  • Support optional export of hidden text
  • Formulas can now be exported as images
  • Added option to avoid pretty printing of the xhtml source
  • General:
  • New methods to load custom templates and style sheets in the converter API
  • Support for complex options in the converter API
  • New method in the converter API to access the metadata of the converted document
  • The converter API now provides pointers to headings and other important places in the converted document
  • The converter API now provides better identification of files that are part of the main document flow
  • New attributes Resouces, ResourceURL in filter API

New in Writer2LaTeX 1.0 (Mar 13, 2012)

  • Filters:
  • Changed to oxt format and separated into Writer2LaTeX and Writer2xhtml extensions
  • Added (localized) dialogs to the filters
  • LaTeX:
  • Export vector graphics to pdf for use with pdfTeX.
  • Support equations generated by OOoLaTeX.
  • XHTML:
  • Improved navigation features for splitted documents
  • Do not export hidden or filtered rows and columns. Apply print ranges.
  • Improved batch conversion
  • General:
  • Export images to a subdirectory.

New in Writer2LaTeX 0.5 (Mar 13, 2012)

  • LaTeX:
  • support fancyhdr.sty
  • support geometry.sty
  • support supertabular.sty
  • support tabulary.sty
  • support colortbl.sty
  • support l, c, r columns in tables
  • support floating figures and tables
  • some graphics improvements
  • custom tabstop handling
  • flexible handling of notes (ignore, comment, marginpar, pdf annotation)
  • string replace (eg. LaTeX -> \LaTeX)
  • XHTML:
  • convert an entire directory with index page(s)
  • convert using a template document
  • support html forms
  • custom tabstop handling
  • support continued lists
  • improved export of table formatting
  • support background images
  • improved table of contents
  • General:
  • support OpenDocument
  • now installable as uno package (extension)
  • no longer using the XMerge framework

New in Writer2LaTeX 0.4 (Mar 13, 2012)

  • LaTeX:
  • improved readability of output (wrap long lines, do not include unused
  • labels and hypertargets)
  • support for more languages
  • writer.sty is replaced by the optional package ooomath.sty
  • color.sty is now optional
  • new options to ignore hard page and line breaks
  • new option to ignore double spaces
  • new option to specify that the document is *not* multilingual
  • support for cp1251 (Windows cyrillic) and latin2 inputenc
  • improved style maps for paragraphs (avoid line break, verbatim content)
  • cleaned up configuration of formatting
  • improved export of list formatting
  • support for other documentclasses than article
  • support for lastpage.sty
  • support for eurosym.sty
  • support for tipa.sty
  • support for various 8-bit fonts: Wingdings, Windows Symbol
  • support for OpenSymbol
  • XHTML:
  • converts units to px (default)
  • Calc2xhtml added
  • improved support for table formatting; table formatting is now always
  • exported
  • (partial) bidi support
  • support for sections (margins and background color)
  • new option to scale column widths
  • new options to ignore double spaces, hard line breaks and empty paragraphs
  • General:
  • Added ant build file (provided by Michael Niedermair)
  • Now possible to specify output path+file name on command line
  • removed usage of document specific configuration files (*-config.xml)
  • new option to create user configuration automatically

New in Writer2LaTeX 0.3.2 (Mar 13, 2012)

  • LaTeX:
  • support for custom math symbols (%symbol)
  • improved handling of paragraph formatting
  • support for table borders
  • support for alphabetical index
  • support for pdf meta data
  • XHTML:
  • support for three different XHTML variants
  • long documents can be split in several XHTML documents
  • support for custom style sheets
  • more flexible handling of fomatting
  • support for most XHTML elements (including blockquote, dl, hr)
  • support for alphabetical index
  • support for meta data

New in Writer2LaTeX 0.3 (Mar 13, 2012)

  • support for BibTeX
  • support for greek and russian text
  • support for more languages
  • support for latin1, cp1250, iso-8859-7, koi8-r and utf8 (Dominique
  • Unruh's ucs.sty) inputencodings
  • support for symbol fonts: pifont.sty, wasysym.sty, ifsym.sty and
  • bbding.sty
  • support for ulem.sty (underline/cross out)
  • export of footnotes configuration, list label styles, heading
  • styles and hard paragraph formatting can be disabled
  • custom export of list styles
  • bugfixes

New in Writer2LaTeX 0.2 (Mar 13, 2012)

  • support for tables
  • support for graphics
  • support for outline numbering and list styles
  • support for page styles
  • support for sections (columns)
  • custom export of text and paragraph styles
  • integration with xmerge (enables use as export filter)
  • export to XHTML + MathML