This forum has been archived. All content is frozen. Please use KDE Discuss instead.
Please use bugs.kde.org for bug reports or feature requests. Development related questions should be directed to the okular-devel mailing list.

Debugging: Error during latex rendering in annotation

Tags: inputenc, space character inputenc, space character inputenc, space character
(comma "," separated)
ilu
Registered Member
Posts
4
Karma
0
I installed Okular 18.08.1 through Chocolatey on a Windows machine, after having been attracted to this project because of its feature to render LaTeX in PDF annotations, so far so good. Unfortunately, the very first line of LaTeX code that I dropped in an annotation produced a terrifying error log. This only occurred when I included a space or a \text{} command.
Code: Select all
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/W32TeX) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
(c:/Users/%USERNAME%/AppData/Local/Temp/okular_kdelatex-rpRkEK.tex
LaTeX2e <2018-04-01> patch level 5
(c:/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(c:/texlive/texmf-dist/tex/latex/base/size10.clo))
(c:/texlive/texmf-dist/tex/latex/graphics/color.sty
(c:/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(c:/texlive/texmf-dist/tex/latex/graphics-def/dvips.def)
(c:/texlive/texmf-dist/tex/latex/graphics/dvipsnam.def))
(c:/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(c:/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(c:/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(c:/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(c:/texlive/texmf-dist/tex/latex/base/latexsym.sty)
(c:/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty)
(c:/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty)
(c:/texlive/texmf-dist/tex/generic/ulem/ulem.sty)

LaTeX Warning: Unused global option(s):
    [0pt].

No file okular_kdelatex-rpRkEK.aux.
(c:/texlive/texmf-dist/tex/latex/base/ulasy.fd)
(c:/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd)
(c:/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd)

! Package inputenc Error: Invalid UTF-8 byte 160.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                             
                                                 
l.1 ...rgb]{0,0,0} \begin{eqnarray*} e^{i\pi}+1=0
                                                  \text{My fist latex annota...
No pages of output.
Transcript written on C:/Users/%USERNAME%/AppData/Local/Temp/okular_kdelatex
-rpRkEK.log.

I would greatly appreciate any help with this monster!
And, I have found little information on the use of LaTeX in the annotations, e.g. how to include packages etc. Is there any resource, other than the online help available? Thank you for the time you took to read these lines!
ilu
Registered Member
Posts
4
Karma
0
I was just wondering if I could reproduce the problem on a Linux system -- negative, I installed the same TexLive distribution and everything worked as expected. Is somebody else using Okular on a Windows machine here? I would be interested in your setup.
Apparently, the character that is causing the problem is a non breakable space (U+00A0 which is located at position 160), although the space entered is a normal one (U+0020)...
Any idea where things could go wrong?


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], Sogou [Bot]