Bug 335476 - latex render for annotation does not display image file
Summary: latex render for annotation does not display image file
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.18.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-28 14:26 UTC by Enrique Artal
Modified: 2014-09-27 10:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.14.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enrique Artal 2014-05-28 14:26:24 UTC
If I put LaTeX formulas in an annotation for a pdf file (inside double dolars), the system offers to me rendering it. I check that the image is created in /tmp but not displayed and I cannot edit the source (except with undo)

Reproducible: Always

Steps to Reproduce:
1. Write a Latex formula in an annotation
2. Click to render it
3.
Actual Results:  
No result, no error

Expected Results:  
The Latex output with the text

It is running in an update Fedora 20 computer
Comment 1 Albert Astals Cid 2014-06-17 22:35:28 UTC
Can you please tell a latex formula you're using for this?
Comment 2 Yuri Chornoivan 2014-06-18 04:46:33 UTC
(In reply to comment #1)
> Can you please tell a latex formula you're using for this?

$$E=mc^2$$
Comment 3 Enrique Artal 2014-06-18 06:55:36 UTC
Any test formula, say $$a^2=1$$; the png file exists in /tmp but nothing appears in the note
Comment 4 Albert Astals Cid 2014-06-18 23:08:24 UTC
Right
Comment 5 Enrique Artal 2014-09-25 10:27:40 UTC
I am now in okular 0.20.0 and still no rendered image; has anyone the same problem? I still do not know if it is a conf problem. Thanks, Enrique.
Comment 6 Enrique Artal 2014-09-25 10:28:09 UTC
I am now in okular 0.20.0 and still no rendered image; has anyone the same problem? I still do not know if it is a conf problem. Thanks, Enrique.
Comment 7 Albert Astals Cid 2014-09-25 22:29:12 UTC
Well, the bug is marked as confirmed, no?
Comment 8 Enrique Artal 2014-09-26 11:59:09 UTC
Right, I skipped the status. One colleague who is still at Fedora 18 had no problem (okular 0.16.5), I do not know if this is helpful.
Comment 9 Albert Astals Cid 2014-09-26 23:58:33 UTC
Git commit 9312182085196352853d6c434ae5854e2cb6354c by Albert Astals Cid.
Committed on 26/09/2014 at 23:56.
Pushed by aacid into branch 'KDE/4.14'.

Fix latex render in annotations

We need
  disconnect(textEdit, SIGNAL(cursorPositionChanged()), this,SLOT(slotsaveWindowText()));
and it's counterpart, otherwise when inserting the image, the cursor pos changes, slotsaveWindowText is called, the content is passed by a toPlainText and set again and kaboom the content is lost

Also a few extra const
FIXED-IN: 4.14.2

M  +4    -2    ui/annotwindow.cpp

http://commits.kde.org/okular/9312182085196352853d6c434ae5854e2cb6354c
Comment 10 Enrique Artal 2014-09-27 10:15:05 UTC
It works! Thank you very much.