summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/teximg.pm
AgeCommit message (Collapse)Author
2010-12-26teximg: Use `\[` and `\]` instead of not recommended `$$`.Paul Menzel
It is not recommended to use the double dollar symbol `$$` to set displayed math [1][2]. [1] http://en.wikibooks.org/wiki/LaTeX/Mathematics [2] http://www.math.uiuc.edu/~hildebr/tex/displays.html Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2010-09-09teximg: Use Unicode UTF-8 encoding by default.Paul Menzel
If I am not mistaking all source files in ikiwiki are encoded in Unicode UTF-8. Adding `\usepackage[utf8]{inputenc}` enables LaTeX to deal with the encoding. As a consequence some special characters like umlauts can be used in the source code which is useful for foreign languages. [[!teximg code="a = b \text{ für alle } b \neq 2"]] But for example »≠« cannot be used in LaTeX right now. One has to use other TeX systems like XeTeX or LuaTeX featuring native UTF-8 support or use additional nonstandard packages like uniinput [1]. I used the package `inputenc` (`texdoc inputenc`) and not `inputenx` (`texdoc inputenx`), because I have not used `inputenx` that much and using the option `math` is not supported in Debian (and I guess other distributions too) since `inpmath` is not included in CTAN. [1] http://wiki.neo-layout.org/browser/latex/Standard-LaTeX Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
2010-03-09Fix utf8 issues in calls to md5_hex.Joey Hess
This prevented comments containing some utf-8, including euro sign, from being submitted. Since md5_hex is a C implementation, the string has to be converted from perl's internal encoding to utf-8 when it is called. Some utf-8 happened to work before, apparently by accident. Note that this will change the checksums returned. unique_comment_location is only used when posting comments, so the checksum does not need to be stable there. I only changed page_to_id for completeness; it is passed a comment page name, and they can currently never contain utf-8. In teximg, the bug could perhaps be triggered if the tex source contained utf-8. If that happens, the checksum will change, and some extra work might be performed on upgrade to rebuild the image.
2010-02-12setup file orderingJoey Hess
2009-08-28teximg: Make TeX handle preventing unsafe things; remove insufficient blacklistJosh Triplett
TeX has configuration options that prevent unsafe things like shell escapes and insecure file reads/writes. Turn all of them on. teximg's regex-based blacklist does not suffice. For instance: [[!teximg code=""" \catcode`\%=0 %input{/etc/passwd} """]] Remove the blacklist, since the TeX configuration options seal off the underlying mechanisms more safely, and the blacklist blocks other TeX commands that can prove useful.
2008-12-23finalise version 3.00 of the plugin apiJoey Hess
2008-12-17Coding style change: Remove explcit vim folding markers.Joey Hess
2008-08-24willu's teximg changesJoey Hess
* teximg: The prefix is configurable, and has changed to not include the nonstandard mhchem by default. (willu) * teximg: dvipng is used if available to render images. Its output is antialiased and better than dvips. If not available, the old dvips+convert chain will be used. (willu) * Drop suggests on texlive-science, add suggests on dvipng.
2008-08-03add plugin safe/rebuild info (part 3 of 3)Joey Hess
2008-07-13switch preprocess hooks to use error functionJoey Hess
2008-05-29teximg: If the log isn't written, avoid ugly error messages.Joey Hess
2008-05-29teximg: Fix logurl.Joey Hess
2008-03-23revert destpage part of f7bdc2385Joey Hess
destpage does not normally need to be worried about when creating other files as part of the process of rendering a page. Using destpage results in inlined pages creating two copies of such files. It works to not use destpage in this case because the inlining page depends on the source page, so if the source page is modified or deleted the inlining page will be updated.
2008-03-12* Use forcebaseurl to make page previews be displayed with the html baseJoey Hess
set to the destination page. This avoids need for hacks to munge the urls in preview mode, which fixes several bugs. * Several destpage fixes in plugins.
2008-02-04the old code worked, suprisingly, but I prefer this formJoey Hess
2008-01-09I've wrote a little patch for the bug in teximg (can only include fomula onPatrick Winnertz
one page).
2007-08-24typojoey
2007-08-23typojoey
2007-08-23fix encoding html entities in alt tagjoey
2007-08-23rename tex to teximgjoey