plugin:latex
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:latex [2023-05-05 19:33] – screenshots (part 1) Aleksandr | plugin:latex [2024-03-16 03:12] (current) – The latex plugin makes a kaos instance fail KaiMartin | ||
---|---|---|---|
Line 7: | Line 7: | ||
type : syntax, admin | type : syntax, admin | ||
lastupdate : 2011-04-29 | lastupdate : 2011-04-29 | ||
- | compatible : Anteater, Rincewind, | + | compatible : Anteater, Rincewind, |
depends | depends | ||
conflicts | conflicts | ||
Line 15: | Line 15: | ||
downloadurl: | downloadurl: | ||
bugtracker : https:// | bugtracker : https:// | ||
- | sourcerepo : https:// | + | sourcerepo : https:// |
screenshot_img : https:// | screenshot_img : https:// | ||
Line 21: | Line 21: | ||
This plugin uses [[http:// | This plugin uses [[http:// | ||
- | |||
Line 35: | Line 34: | ||
:!: **This plugin will not work in PHP safe mode.** - unless your server administrator has specifically allowed access to the software this plugin needs. | :!: **This plugin will not work in PHP safe mode.** - unless your server administrator has specifically allowed access to the software this plugin needs. | ||
- | :!: This plugin does not work with PHP 7 and disables | + | :!: This plugin does not work with PHP 7 and disables |
st therefore be declared abstract or implement the remaining methods (dokuwiki\\Extension\\SyntaxPlugin:: | st therefore be declared abstract or implement the remaining methods (dokuwiki\\Extension\\SyntaxPlugin:: | ||
Line 45: | Line 44: | ||
</ | </ | ||
See: https:// | See: https:// | ||
+ | |||
==== Systems ==== | ==== Systems ==== | ||
Line 80: | Line 80: | ||
^ wiki code ^ result | ^ wiki code ^ result | ||
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | from [[http:// | + | | from [[http:// |
===== Syntax ===== | ===== Syntax ===== | ||
Line 98: | Line 98: | ||
==== Caveats ==== | ==== Caveats ==== | ||
+ | |||
* Although the numbered-equation styles are available, the numbers do not carry over between equations. You can hard code them by including a LaTeX command like '' | * Although the numbered-equation styles are available, the numbers do not carry over between equations. You can hard code them by including a LaTeX command like '' | ||
* The symbol %%$%% can no longer be used for currency, so use ''< | * The symbol %%$%% can no longer be used for currency, so use ''< | ||
- | * Certain words are blacklisted from being included in LaTeX code -- for example '' | + | * Certain words are blacklisted from being included in LaTeX code -- for example '' |
===== Configuration/ | ===== Configuration/ | ||
Line 116: | Line 117: | ||
To use your favorite LaTex packages, you need to add them using '' | To use your favorite LaTex packages, you need to add them using '' | ||
+ | |||
==== Admin plugin ==== | ==== Admin plugin ==== | ||
Line 124: | Line 126: | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
- | * If the plugin settings are incorrect (or you are missing some external software), you will see {{http://img163.imageshack.us/img163/1674/renderfail.png? | + | * If the plugin settings are incorrect (or you are missing some external software), you will see {{https://trello.com/ |
* **Try a test run of your LaTeX installation** from the admin panel of the LaTeX plugin. Besides a tooltip, you will see information on: | * **Try a test run of your LaTeX installation** from the admin panel of the LaTeX plugin. Besides a tooltip, you will see information on: | ||
* Existence and versions of '' | * Existence and versions of '' | ||
Line 132: | Line 134: | ||
* This LaTeX plugin is similar in operation to the LaTeX plugins of other wiki software. Check the [[http:// | * This LaTeX plugin is similar in operation to the LaTeX plugins of other wiki software. Check the [[http:// | ||
* In php.ini " | * In php.ini " | ||
+ | |||
==== Specific issues ==== | ==== Specific issues ==== | ||
- | | + | |
+ | | ||
* '' | * '' | ||
* Run the following command as '' | * Run the following command as '' | ||
- | * Run LaTeX as a normal user allowing LaTeX to generate its own '' | + | * Run LaTeX as a normal user allowing LaTeX to generate its own '' |
* '' | * '' | ||
+ | |||
===== Development ===== | ===== Development ===== | ||
Line 151: | Line 156: | ||
* added support for \begin{equation} and \begin{equation*}. | * added support for \begin{equation} and \begin{equation*}. | ||
* uploaded the plugin here where other people can find it. | * uploaded the plugin here where other people can find it. | ||
- | |||
* March 6 2011 | * March 6 2011 | ||
* added admin page for cache wiping/ | * added admin page for cache wiping/ | ||
Line 159: | Line 163: | ||
* added a minimal ODT render mode. | * added a minimal ODT render mode. | ||
* added informative tooltip text on images of failed renders. | * added informative tooltip text on images of failed renders. | ||
- | |||
* March 9 2011 | * March 9 2011 | ||
* added troubleshooter to admin panel | * added troubleshooter to admin panel | ||
- | |||
* April 24 2011 | * April 24 2011 | ||
* Changed image namespace to :wiki:latex (avoids polluting root namespace) | * Changed image namespace to :wiki:latex (avoids polluting root namespace) | ||
* Changed temporaries to a media namespace: : | * Changed temporaries to a media namespace: : | ||
- | |||
* April 28/29 2011 | * April 28/29 2011 | ||
* Removed keep_tmp option and removed program options from configuration (only paths specified now). | * Removed keep_tmp option and removed program options from configuration (only paths specified now). | ||
* Made compatible with Windows -- works with [[install: | * Made compatible with Windows -- works with [[install: | ||
+ | |||
===== Discussion ===== | ===== Discussion ===== | ||
+ | |||
==== Local with MacTeX: LaTeX compilation failed ==== | ==== Local with MacTeX: LaTeX compilation failed ==== | ||
+ | |||
On OS X 10.8, I have a local and up to date DokuWiki installation, | On OS X 10.8, I have a local and up to date DokuWiki installation, | ||
- | Using the latex plugin in Dokuwiki | + | Using the latex plugin in DokuWiki |
Could you please give me a hand for making the plugin work? Christian | Could you please give me a hand for making the plugin work? Christian | ||
Line 196: | Line 200: | ||
$conf[' | $conf[' | ||
$conf[' | $conf[' | ||
- | |||
- | |||
Line 205: | Line 207: | ||
==== Control over the Images ==== | ==== Control over the Images ==== | ||
+ | |||
If the embedded images are not perfectly aligned, you can gain more control by adding ' | If the embedded images are not perfectly aligned, you can gain more control by adding ' | ||
Line 210: | Line 213: | ||
==== Color settings ==== | ==== Color settings ==== | ||
+ | |||
After installation, | After installation, | ||
Line 222: | Line 226: | ||
Click " | Click " | ||
+ | |||
==== Dollar Signs ==== | ==== Dollar Signs ==== | ||
+ | |||
> Maybe a stupid question but how can I display the Dollars symbol ($) on the page ? The plugin replace all my $ by the message "Latex render failed" | > Maybe a stupid question but how can I display the Dollars symbol ($) on the page ? The plugin replace all my $ by the message "Latex render failed" | ||
Line 229: | Line 235: | ||
>>> | >>> | ||
- | === mask $*Dollar*$ as in /* comment */ plugin | + | === mask $*Dollar*$ as in /* comment */ plugin |
>>> | >>> | ||
==== ReadOnly-Access | ==== ReadOnly-Access | ||
+ | |||
> If i give the group @ALL an " | > If i give the group @ALL an " | ||
>> Solved! Need to give " | >> Solved! Need to give " | ||
Line 239: | Line 247: | ||
==== Toolbar buttons disappear ==== | ==== Toolbar buttons disappear ==== | ||
- | The Dokuwiki | + | The DokuWiki |
==== Latex syntax in tables ==== | ==== Latex syntax in tables ==== | ||
Line 252: | Line 260: | ||
>> Strange, it works here! \\ -TT, 2013-02.28 | >> Strange, it works here! \\ -TT, 2013-02.28 | ||
+ | |||
==== Not rendering Latex Code ==== | ==== Not rendering Latex Code ==== | ||
Line 272: | Line 281: | ||
==== Blacklist ==== | ==== Blacklist ==== | ||
+ | |||
It is mentioned above that some words are blacklisted and that the blacklist is kept "just in case". The presence of blacklisted words causes the error "Fail: triggered security filter; contains blacklisted LaTeX tags". Where can one find the blacklist? | It is mentioned above that some words are blacklisted and that the blacklist is kept "just in case". The presence of blacklisted words causes the error "Fail: triggered security filter; contains blacklisted LaTeX tags". Where can one find the blacklist? | ||
--- [[user> | --- [[user> | ||
+ | |||
=== From class.latexrender.php === | === From class.latexrender.php === | ||
+ | |||
< | < | ||
var $_latex_tags_blacklist = array( | var $_latex_tags_blacklist = array( | ||
Line 286: | Line 298: | ||
This would be my guess. | This would be my guess. | ||
--- // | --- // | ||
+ | |||
+ | ==== Blacklist ==== | ||
+ | |||
+ | Maintained (patched) version of this plugin can be found at [[plugin: |
plugin/latex.1683308022.txt.gz · Last modified: 2023-05-05 19:33 by Aleksandr