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.

LaTeX rendering in annotations doesn't work

Tags: None
(comma "," separated)
mcdr
Registered Member
Posts
4
Karma
0
Hi,

I'm using Okular on OpenSuse 13.1 with KDE. I would like to use LaTeX formulas in annotations but when I try to render them, the text disappears. I have texlive and kile installed, and they work as expected. Google didn't help, since this feature is not very used, and therefore not very well documented. Any help would be appreciated.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Are you viewing the *.djvu file, or the rendered PDF in Okular?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mcdr
Registered Member
Posts
4
Karma
0
I'm viewing a PDF file. I'm not trying to visualize formulas from a LaTeX render, I would like to use the annotation feature of Okular, like this. There's the possibility to add an annotation containing LaTeX code. After having entered $$..some_LaTeX_code..$$ a button appears, asking if want to render the LeTeX code. If I click the button my code disappears and nothing will be rendered.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I see. If you run Okular from a terminal, is anything output there which hints at why the Latex rendering is failing?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mcdr
Registered Member
Posts
4
Karma
0
I've found something new. When I render my annotation with LaTeX code, a png file with the rendered formula is created in /tmp/kde-my_user_name. I think this is the expected behavior. This explains why I don't get any error when I render the formula, even if I run Okular from a terminal. I didn't manage to find out why the png file is not being displayed in the annotation.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Okay, that indicates that at least part of the code is working. Can you view that PNG image using a program such as Gwenview, or Okular itself?
In terms of terminal output, you might need to run "kdebugdialog" and use it to enable all areas to see anything useful in the terminal.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mcdr
Registered Member
Posts
4
Karma
0
Yes, I can view the rendered PNG in Gwenview as well as in Okular, and it is rendered correctly. After enabling all areas in kdebugdialog i get this output if I create an annotation, enter "$$x^2$$", and render the LaTeX code. I hope it helps.
Code: Select all
okular(7525)/okular (Poppler) PopplerAnnotationProxy::notifyAddition: "okular-{453ce012-c033-4e71-b842-6dd70992dc66}"
okular(7525)/okular (app) Okular::Document::requestPixmaps: request observer=0x1440588 297x392@130
okular(7525)/okular (app) Okular::Document::requestPixmaps: request observer=0x14c3448 784x1036@130
okular(7525)/okular (app) Okular::DocumentPrivate::sendGeneratorPixmapRequest: sending request observer=0x1440588 297x392@130 async == true isTile == false
okular(7525)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::instance: instance(): ... initialised
okular(7525)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readConfig: readConfig(): local zone= "Europe/Berlin"
okular(7525)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readZoneTab: readZoneTab( "/usr/share/zoneinfo/zone.tab" )
okular(7525)/okular (app) Okular::DocumentPrivate::sendGeneratorPixmapRequest: sending request observer=0x14c3448 784x1036@130 async == true isTile == false
okular(7525)/okular (app) Okular::EditTextCommand::EditTextCommand: CharInsert
okular(7525)/okular (Poppler) PopplerAnnotationProxy::notifyModification: "okular-{453ce012-c033-4e71-b842-6dd70992dc66}"
okular(7525)/okular (app) Okular::EditTextCommand::EditTextCommand: CharInsert
okular(7525)/okular (Poppler) PopplerAnnotationProxy::notifyModification: "okular-{453ce012-c033-4e71-b842-6dd70992dc66}"
okular(7525)/okular (app) Okular::EditTextCommand::EditTextCommand: CharInsert
okular(7525)/okular (Poppler) PopplerAnnotationProxy::notifyModification: "okular-{453ce012-c033-4e71-b842-6dd70992dc66}"
okular(7525)/okular (app) Okular::EditTextCommand::EditTextCommand: CharInsert
okular(7525)/okular (Poppler) PopplerAnnotationProxy::notifyModification: "okular-{453ce012-c033-4e71-b842-6dd70992dc66}"
okular(7525)/okular (app) Okular::EditTextCommand::EditTextCommand: CharInsert
okular(7525)/okular (Poppler) PopplerAnnotationProxy::notifyModification: "okular-{453ce012-c033-4e71-b842-6dd70992dc66}"
okular(7525)/okular (app) Okular::EditTextCommand::EditTextCommand: CharInsert
okular(7525)/okular (Poppler) PopplerAnnotationProxy::notifyModification: "okular-{453ce012-c033-4e71-b842-6dd70992dc66}"
okular(7525)/okular (app) Okular::EditTextCommand::EditTextCommand: CharInsert
okular(7525)/okular (Poppler) PopplerAnnotationProxy::notifyModification: "okular-{453ce012-c033-4e71-b842-6dd70992dc66}"
okular(7525)/okular (app) Okular::EditTextCommand::EditTextCommand: OtherEdit
okular(7525)/okular (Poppler) PopplerAnnotationProxy::notifyModification: "okular-{453ce012-c033-4e71-b842-6dd70992dc66}"
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I have checked with the developers - unfortunately this is a bug. Please report it at bugs.kde.org.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

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