Subject: [PATCH] teximg: Use Unicode UTF-8 encoding by default.
Package: ikiwiki
Version: 3.20100831
Severity: normal
Tags: patch

*** Please type your report below this line ***
---

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 <paulepan...@users.sourceforge.net>
---

1. I hope `git am` can cope with all the »---« I included in this report and 
extract the commit message correctly.
2. Patrick I am adding you to CC, because you are the author of the plugin.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ikiwiki depends on:
ii  libhtml-parser-perl           3.66-1     collection of modules that parse H
ii  libhtml-scrubber-perl         0.08-4     Perl extension for scrubbing/sanit
ii  libhtml-template-perl         2.9-2      module for using HTML Templates wi
ii  liburi-perl                   1.55-1     module to manipulate and access UR
ii  markdown                      1.0.1-7    Text-to-HTML conversion tool
ii  perl                          5.10.1-14  Larry Wall's Practical Extraction 
ii  python                        2.6.6-1    interactive high-level object-orie
ii  python-support                1.0.9      automated rebuilding support for P

Versions of packages ikiwiki recommends:
ii  bzr                         2.2.0-1      easy to use distributed version co
ii  gcc [c-compiler]            4:4.4.4-2    The GNU C compiler
ii  gcc-4.2 [c-compiler]        4.2.4-6      The GNU C compiler
ii  gcc-4.3 [c-compiler]        4.3.5-2      The GNU C compiler
ii  gcc-4.4 [c-compiler]        4.4.4-13     The GNU C compiler
ii  git [git-core]              1:1.7.1-1.1  fast, scalable, distributed revisi
ii  git-core                    1:1.7.1-1.1  fast, scalable, distributed revisi
ii  libauthen-passphrase-perl   0.007-1      Perl module encapsulating hashed p
ii  libc6-dev [libc-dev]        2.11.2-5     Embedded GNU C Library: Developmen
ii  libcgi-formbuilder-perl     3.05.01-7    Easily generate and process statef
ii  libcgi-session-perl         4.41-1       persistent session data in CGI app
ii  liblwpx-paranoidagent-perl  1.07-1       a "paranoid" subclass of LWP::User
ii  libmail-sendmail-perl       0.79.16-1    Send email from a perl script
ii  libnet-openid-consumer-perl 1.03-1       library for consumers of OpenID id
ii  libterm-readline-gnu-perl   1.20-1       Perl extension for the GNU ReadLin
ii  libtimedate-perl            1.2000-1     collection of modules to manipulat
ii  libxml-simple-perl          2.18-3       Perl module for reading and writin
ii  mercurial                   1.6.2-2      scalable distributed version contr
ii  subversion                  1.6.12dfsg-1 Advanced version control system

Versions of packages ikiwiki suggests:
pn  dvipng                        <none>     (no description available)
ii  file                          5.04-5     Determines file type using "magic"
ii  gettext                       0.18.1.1-1 GNU Internationalization utilities
ii  graphviz                      2.26.3-5   rich set of graph drawing tools
ii  libcrypt-ssleay-perl          0.57-2     Support for https protocol in LWP
pn  libfile-mimeinfo-perl         <none>     (no description available)
pn  libhighlight-perl             <none>     (no description available)
ii  libhtml-tree-perl             3.23-2     Perl module to represent and creat
ii  liblocale-gettext-perl        1.05-6     Using libc functions for internati
ii  libmailtools-perl             2.06-1     Manipulate email in perl programs
pn  libnet-amazon-s3-perl         <none>     (no description available)
pn  librpc-xml-perl               <none>     (no description available)
pn  libsearch-xapian-perl         <none>     (no description available)
pn  libsort-naturally-perl        <none>     (no description available)
pn  libsparkline-php              <none>     (no description available)
pn  libtext-csv-perl              <none>     (no description available)
pn  libtext-textile-perl          <none>     (no description available)
pn  libtext-typography-perl       <none>     (no description available)
pn  libtext-wikicreole-perl       <none>     (no description available)
pn  libtext-wikiformat-perl       <none>     (no description available)
pn  libxml-feed-perl              <none>     (no description available)
pn  libyaml-perl                  <none>     (no description available)
pn  perlmagick                    <none>     (no description available)
pn  po4a                          <none>     (no description available)
pn  polygen                       <none>     (no description available)
pn  python-docutils               <none>     (no description available)
ii  texlive                       2009-10    TeX Live: A decent selection of th
pn  tidy                          <none>     (no description available)
pn  viewvc | gitweb | viewcvs     <none>     (no description available)
pn  xapian-omega                  <none>     (no description available)

-- no debconf information
---
 IkiWiki/Plugin/teximg.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/IkiWiki/Plugin/teximg.pm b/IkiWiki/Plugin/teximg.pm
index 521af49..195792a 100644
--- a/IkiWiki/Plugin/teximg.pm
+++ b/IkiWiki/Plugin/teximg.pm
@@ -13,6 +13,7 @@ use IkiWiki 3.00;
 
 my $default_prefix = <<EOPREFIX;
 \\documentclass{article}
+\\usepackage[utf8]{inputenc}
 \\usepackage{amsmath}
 \\usepackage{amsfonts}
 \\usepackage{amssymb}
-- 
1.7.1

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to