Extension:Wiki2LaTeX/Development

From MediaWiki.org
Jump to: navigation, search

Contents

[edit] Version history

[edit] v.0.10 (rc1 and rc2)

  • Several bugs have been fixed
  • Removed some custom Template-Variables (like ((Title)) ). Please use the corresponding Mediawiki-variables in your templates, in this case ((PAGENAME)).
  • Wiki2LaTeX now uses a different Message-system. This is tested only on Mediawiki 1.16.

[edit] v.0.9.2

  • Most Tables can now be rendered without using the latexfmt-attribute. (Thanks to Hendrik)
  • Fixed image rendering.
  • Fixed .tex-file download. (Thanks to felixjmoeller)

[edit] v.0.9.1

  • Fixed one error message.
  • Fixed one php-warning.

[edit] v.0.9

  • Performance improvements by not loading two classes when they are not needed.
  • added support for definition lists and by that also for discussion threads formatted with ':'.
  • New hooks to work with.
  • added most HTML-Entities representing greek letters
  • Renamed some config-values:
    • $w2lConfig['command'] has been renamed to $w2lConfig['ltx_command']
    • $w2lConfig['repeat'] has been renamed to $w2lConfig['ltx_repeat']
  • added a possibility to clear the tempfolder everytime the latexform is shown
  • Now using system-temp-directory
  • Cleaning up temp-folder no longer removes other files than those created by Wiki2LaTeX
  • Code cleaning and removed no-longer-needed configvalues
  • fixes some smaller bugs
  • fixed some links-related bugs
  • fixed an issue regarding Internet Explorer
  • fixes an incompatibility with postgresql-based Wikis.
  • Moved LaTeX-CLI into an own class

[edit] v.0.8

  • Removed pdf-archive. It will be back in a future version but will be using Mediawikis upload-feature.
  • Removed changing noinclude/includeonly behaviour.
  • Removed typographic-quote-detection (too buggy to be useful)
  • Removed Paralist-support. It is now available as contribution.
  • Removed GeSHi-integration.
  • Added a contrib-directory where some Presets for Mediawiki-Extensions and LaTeX-Packages can be found. Further information can be found in the documentation. Pre, math, ref and references are activated by default.
  • Added some more descriptive error messages.
  • Internal Links can now optionally link to the originating article on the wiki (by adding include('contrib/linkify.php'); to w2lConfig.php).
  • Added support for <strong> and <em> and <br/> HTML-Tags
  • Greatly improved Auto-Template-Feature as it is now quite extensible.
  • Now every template is required to use babel (english users might not need it).
  • Quotes should now work fine. They are specific to the selection of babel-language.
  • Now using Mediawikis Hook-System. This change breaks every old function which made use of the eventsystem of older versions. They have to be changed. Please have a look into examples/event_function.txt and the documentation of all hooks provided.
  • Fixed some Warnings and Notices thrown by PHP
  • Wiki2LaTeX can now be used without a w2lConfig.php-file.
  • By changing the default LaTeX-command, Wiki2LaTeX should no longer crash when packages are missing or other LaTeX-errors occur.
  • Made some improvements to the result screen.

[edit] v.0.7

Before updating please check out The update instructions as several changes are required to update an existing W2L installation.

  • [feature] Improved table support:
    • [feature] Support colspan-attribute (rowspan is not supported)
    • [feature] |---- as row-delimiter gives a double line in latex
    • [feature] Add latexwidth attribute
    • [feature] Support for nested tables (a bit ugly though) was added
  • [feature] Added a pdf-archive
  • [feature] Added the ability to automagically create a LaTeX-Template, thus removing the option to use no template when exporting an article to pdf.
  • [feature] Wiki2LaTeX is now localizable.
  • [feature] Added limited html-tag support
  • [feature] Temporary files can now be deleted (there is a link next to the start export-button).
  • [feature] tmp and archive path can be put anywhere, as long as they reside somewhere below the Mediawiki-root.
  • [fixed] Some LINUX-related fixes
  • [fixed] Add some space to the latex-tab so tabs look grouped.
  • [change] Changed names of configuration arrays. The old names can still be used.
  • [change] Changed installation sequence
  • [change] Now checking for required Mediawiki-Version, as older versions are not tested.
  • [change] Removed some config-flags.
  • [intern] Completely reorganized code
  • [intern] Code that deals with directories has been rewritten.

[edit] v.0.6.2

  • [fixed] Quotation marks did not work
  • [fixed] Typographic quote detection does not work
  • [fixed] Check for an unexpected value when generating Template-Variables
  • [fixed] (Hopefully) fixed an issue which prevented templates from loading on non-german installations of Mediawiki.

[edit] v.0.6.1

  • [fixed] HTML-Entities did not work

[edit] v.0.6

  • [feature] Tables are supported now (requires tabularx package!) Please read Extension talk:Wiki2LaTeX/Development/w2lParser.php for further information. (Thanks to Ole Dahle)
  • [feature] Images are supported (graphicx-package required!) (Thanks to Ole Dahle)
  • [feature] Variables like {{SITENAME}} are supported.
  • [feature] These variables can also be inserted into LaTeX-Templates by using ((SITENAME)) (Variablename in double normal braces).
  • [fixed] Compatible with Mediawiki 1.11

[edit] v.0.5

  • [feature] Nested templates and parserfunctions are supported now
  • [feature] Documentclass can be selected, so headings are generated properly
  • [feature] functions that are registered to some (w2l)-hook can now be disabled
  • [feature] filetype of putput can be customized, so ps and dvi output is possible
  • [feature] amount of repetitions of calling LaTeX-command can now be customized so enabling MikTeXs 'texify.exe', which runs LaTeX as often as neccessary
  • [feature] default action and default template can be set in configfile
  • [fixed] crash when LaTeX-namespace is not created
  • [fixed] crash when exporting to pdf with no LaTeX-Template selected
  • [fixed] geshi can now be disabled by a configflag
  • [fixed] pathinformation is not required for calling the latexcommand
  • [fixed] Better use of Mediawikis internal ways to request content of articles
  • [fixed] <includeonly></includeonly> sections were not parsed correctly, though complex noinclude-includeonly structures might still fail.
  • [fixed] Support for the parserfunction extension was removed from default settings. To reenable it, copy some commented lines of the w2lConfig.sample.php over to your w2lConfig.php.
  • [fixed] personal config file is not overwritten when updating the extension
  • [fixed] '?>' closing tag removed from all files (in line with Mediawiki 1.11)

[edit] Files (not used anymore)

Files of Wiki2LaTeX
Filename Description Used by Versions Talk page
/w2lCore.php (dl) The core class, which deals with Mediawiki 0.7+ (talk)
/w2lParser.php This file contains the main Parser class all (talk)
/w2lTags.php Defines Parser extension tags 0.7+ (talk)
/w2lMessages.php The place for all the Localization-Strings 0.7+ (talk)
/w2lChars.php This file is included by a function of the parser, to register HTML-Entities 0.7+ (talk)
/wiki2latex.php This file registers Wiki2LaTeX to Mediawiki 0.7+ (talk)
/w2lConfig.sample.php A sample config file all (talk)
/w2lDefaultConfig.php The place for default settings all (talk)
Miscellaneous files
/w2lUpdater.php Might eventually be some sort of installer and updater for this extension unofficial (talk)
/w2lLaTeXUtil.php This file held the parser extension tag functions, and was replaced by /w2lTags.php as of 0.7 up to 0.6.2 (talk)
/w2lExporter.php This held all the Mediawiki stuff and is replaced by /wiki2latex.php and /w2lCore.php as of 0.7 up to 0.6.2 (talk)
/w2lSpecialPage.php Will be offering the planned Special Page future (talk)

[edit] Examples

Wiki2LaTeX example files
Filename Description
/latex-template.txt Shows the basics of a LaTeX-Template.
/tag.txt Explains, how a xml-style tag can be integrated into Wiki2LaTeX
/event.txt Describes the event-system used by Wiki2LaTeX
/parserfunction.txt Describes a parserfunction and how to integrate them into Wiki2LaTeX
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox