![]() Registered Member ![]()
|
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. |
![]() Administrator ![]()
|
Are you viewing the *.djvu file, or the rendered PDF in Okular?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
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.
|
![]() Administrator ![]()
|
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] |
![]() Registered Member ![]()
|
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.
|
![]() Administrator ![]()
|
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] |
![]() Registered Member ![]()
|
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.
|
![]() Administrator ![]()
|
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] |
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], Sogou [Bot]