aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/teximg.pm
Commit message (Collapse)AuthorAge
* Squelch regex deprecation warnings from Perl 5.22.Amitai Schlair2015-06-14
| | | | | | Specifically: "Unescaped left brace in regex is deprecated, passed through in regex"
* teximg: Use `\[` and `\]` instead of not recommended `$$`.Paul Menzel2010-12-26
| | | | | | | | | 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>
* teximg: Use Unicode UTF-8 encoding by default.Paul Menzel2010-09-09
| | | | | | | | | | | | | | | | | | | | | | 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>
* Fix utf8 issues in calls to md5_hex.Joey Hess2010-03-09
| | | | | | | | | | | | | | | | | | | 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.
* setup file orderingJoey Hess2010-02-12
|
* teximg: Make TeX handle preventing unsafe things; remove insufficient blacklistJosh Triplett2009-08-28
| | | | | | | | | | | | | | | | 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.
* finalise version 3.00 of the plugin apiJoey Hess2008-12-23
|
* Coding style change: Remove explcit vim folding markers.Joey Hess2008-12-17
|
* willu's teximg changesJoey Hess2008-08-24
| | | | | | | | | * 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.
* add plugin safe/rebuild info (part 3 of 3)Joey Hess2008-08-03
|
* switch preprocess hooks to use error functionJoey Hess2008-07-13
|
* teximg: If the log isn't written, avoid ugly error messages.Joey Hess2008-05-29
|
* teximg: Fix logurl.Joey Hess2008-05-29
|
* revert destpage part of f7bdc2385Joey Hess2008-03-23
| | | | | | | | 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.
* * Use forcebaseurl to make page previews be displayed with the html baseJoey Hess2008-03-12
| | | | | | 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.
* the old code worked, suprisingly, but I prefer this formJoey Hess2008-02-04
|
* I've wrote a little patch for the bug in teximg (can only include fomula onPatrick Winnertz2008-01-09
| | | | one page).
* typojoey2007-08-24
|
* typojoey2007-08-23
|
* fix encoding html entities in alt tagjoey2007-08-23
|
* rename tex to teximgjoey2007-08-23