Here're latex_elements to make it all work:
latex_elements = {
'inputenc': '',
'utf8extra': '',
'preamble': '''
\usepackage{fontspec}
\setsansfont{Arial}
\setromanfont{Arial}
\setmonofont{DejaVu Sans Mono}
''',
}
with this latex elements one can get xetex with no patches. Just make the
latex, and run the xelatex manually:
sphinx-build -b latex -d _build/doctrees . _build/xetex && cd _build/xetex;
xelatex *.tex
On Wednesday, August 22, 2012 8:33:49 PM UTC+4, Boris Kheyfets wrote:
>
> You right it works. And UTF8 works after I comment
>
> \usepackage[utf8]{inputenc}
>
> and add
>
> \usepackage{fontspec}
> \setsansfont{Arial}
> \setromanfont{Arial}
> \setmonofont{DejaVu Sans Mono}
>
> to the end of preambule.
>
> Code litings are word-wraped after I \usepackage{fancyvrb} -- but syntax
> coloring stops to work then. I'm now asking asking for help at
> stackexchange<http://tex.stackexchange.com/questions/68287/commandchars-in-fancyvrb>.
>
>
>
>
> On Tuesday, August 21, 2012 11:41:47 AM UTC+4, Pedro Kroger wrote:
>>
>> Hi,
>>
>> what packages are you using? I had this problem with xelatex:
>>
>> ! Undefined control sequence.
>> l.5 \DeclareUnicodeCharacter
>> {00A0}{\nobreakspace}
>>
>> but I solved it by setting 'utf8extra' to an empty string on my conf.py:
>>
>> latex_elements = {
>> 'utf8extra': "",
>> }
>>
>> Cheers,
>>
>> Pedro
>>
>> On Saturday, August 18, 2012 11:27:22 AM UTC-3, Boris Kheyfets wrote:
>>>
>>> Oh I did the right way. But xelatex complains at pygments:
>>>
>>> ! Package inputenc Error: Keyboard character used is undefined
>>> (inputenc) in inputencoding `utf8'.
>>>
>>> See the inputenc package documentation for explanation.
>>> Type H <return> for immediate help.
>>> ...
>>>
>>> l.337 ...ater{}\PYGZcb{} = \PYGZob{}«/»\PYGZcb{}
>>>
>>> ?
>>>
>>> Do You think something can be done about it?
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sphinx-dev/-/Ek9FtaVjIlAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.