Issues

Issue #234 wontfix

Latex Output UTF8

Anonymous created an issue

Thanks, first of all for the great package.

However, I am having trouble getting a UTF8 document compiled in Latex. First of all Sphinx includes by default

\usepackage[utf8]{inputenc}

where, to my knowledge it is advisable to

\usepackage[utf8x]{inputenc}

At least this way I can get rid of some of the errors caused by unicode characters. Now, still a code fragment

.. code-block:: cpp

define {
    CAPITAL   [ΆΈΉΊΌΎ-Ϋ]   
    LOWERCASE [ά-ώ]
    NUMBER    [0-9][0-9.,]+
}

is translated into latex-code as

\begin{Verbatim}[commandchars=@[]] define { CAPITAL @PYGZlb[]ΆΈΉΊΌΎ-Ϋ@PYGZrb[] LOWERCASE @PYGZlb[]ά-ώ@PYGZrb[] NUMBER @PYGZlb[]0-9@PYGZrb[]@PYGZlb[]0-9.,@PYGZrb[]+ } .....

which causes latex to complain:

(/usr/share/texmf/tex/latex/ucs/data/uni-3.def) ! Undefined control sequence. <argument> \textAlpha

l.3280 ...ITAL @PYGZlb[]ΆΈΉΊΌΎ-Ϋ@PYGZrb[]

And here is where I am lost. I have no clue how to fix that.

Best Regards

Frank

Comments (5)

  1. Anonymous

    No, putting utf8x helps to get things like the '>=' sign correct, but it is not enough.

    There is something weird going on.

    Best Regards

    Frank

  2. Log in to comment