Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
pdftex preview plugin
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  16 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tobias Eberle  
View profile  
 More options Dec 31 2007, 5:12 pm
From: Tobias Eberle <tobias.ebe...@gmx.de>
Date: Mon, 31 Dec 2007 23:12:57 +0100
Local: Mon, Dec 31 2007 5:12 pm
Subject: pdftex preview plugin
Hello,

first of all I would like to thank all of you for providing pida.

When I found it I thought, wow, this can be also useful for writing
reports or slides with latex. Especially for slides and math formulae a
preview is useful and so I have written a proof of concept plugin (the
usual Sunday afternoon hack) for displaying a pdf preview. The pdf
previewer is based on python-poppler (the one from launchbox). When a
document is saved the previewer compiles the code using rubber.

You can find a screenshot at
http://www.tobiaseberle.de/pdftex-preview-plugin.png

The current version is far from being perfect, but I would like to
develop it further to be a full featured plugin.

Best wishes and a happy new year,

Tobias


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Afshar  
View profile  
 More options Dec 31 2007, 7:39 pm
From: Ali Afshar <aafs...@gmail.com>
Date: Tue, 01 Jan 2008 00:39:11 +0000
Local: Mon, Dec 31 2007 7:39 pm
Subject: Re: pdftex preview plugin

On Mon, 2007-12-31 at 23:12 +0100, Tobias Eberle wrote:
> Hello,

> first of all I would like to thank all of you for providing pida.

> When I found it I thought, wow, this can be also useful for writing
> reports or slides with latex. Especially for slides and math formulae a
> preview is useful and so I have written a proof of concept plugin (the
> usual Sunday afternoon hack) for displaying a pdf preview. The pdf
> previewer is based on python-poppler (the one from launchbox). When a
> document is saved the previewer compiles the code using rubber.

> You can find a screenshot at
> http://www.tobiaseberle.de/pdftex-preview-plugin.png

Hi, this is great work, thanks. You should publish the plugin on the
PIDA site using the built-in PIDA plugin publisher. Then anyone can
install from within PIDA.

Ali


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tobias Eberle  
View profile  
 More options Jan 4 2008, 2:07 pm
From: Tobias Eberle <tobias.ebe...@gmx.de>
Date: Fri, 04 Jan 2008 20:07:16 +0100
Local: Fri, Jan 4 2008 2:07 pm
Subject: Re: pdftex preview plugin
Hi,

[pdf preview plugin]

> Hi, this is great work, thanks. You should publish the plugin on the
> PIDA site using the built-in PIDA plugin publisher. Then anyone can
> install from within PIDA.

I will do after a bit of rewrite because the pdf file it currently
displays is hard coded ;-)

I guess there is a way to get a list of execution controllers. Can you
give me a hint how?

Best wishes,

Tobias


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Afshar  
View profile  
 More options Jan 4 2008, 8:01 pm
From: Ali Afshar <aafs...@gmail.com>
Date: Sat, 05 Jan 2008 01:01:31 +0000
Local: Fri, Jan 4 2008 8:01 pm
Subject: Re: pdftex preview plugin

On Fri, 2008-01-04 at 20:07 +0100, Tobias Eberle wrote:
> Hi,

> [pdf preview plugin]
> > Hi, this is great work, thanks. You should publish the plugin on the
> > PIDA site using the built-in PIDA plugin publisher. Then anyone can
> > install from within PIDA.

> I will do after a bit of rewrite because the pdf file it currently
> displays is hard coded ;-)

> I guess there is a way to get a list of execution controllers. Can you
> give me a hint how?

There are very few, so you will probably end up writing your own, or
maybe the generic execution is enough. To list them open the PIDA
internal shell, (shift-control-m default keypress) and use:

>>> from pida.core.interfaces import IProjectController
>>> list(boss.get_service('project').features(IProjectController))

Ali

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dukebody  
View profile  
 More options Jan 13 2008, 4:56 am
From: dukebody <dukeb...@gmail.com>
Date: Sun, 13 Jan 2008 01:56:35 -0800 (PST)
Local: Sun, Jan 13 2008 4:56 am
Subject: Re: pdftex preview plugin
On Jan 5, 2:01 am, Ali Afshar <aafs...@gmail.com> wrote:

> On Fri, 2008-01-04 at 20:07 +0100, Tobias Eberle wrote:
> > Hi,

> > [pdf preview plugin]
> > > Hi, this is great work, thanks. You should publish the plugin on the
> > > PIDA site using the built-in PIDA plugin publisher. Then anyone can
> > > install from within PIDA.

Yes, please, I'd love to be able to use it! I currently use a terminal
to compile the tex file and launch evince to see the pdf. :S

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tito  
View profile  
 More options Jan 13 2008, 8:22 am
From: tito <txp...@gmail.com>
Date: Sun, 13 Jan 2008 05:22:41 -0800 (PST)
Local: Sun, Jan 13 2008 8:22 am
Subject: Re: pdftex preview plugin
This is really awesome !
Good job :)

tito

On 31 déc 2007, 23:12, Tobias Eberle <tobias.ebe...@gmx.de> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
flashbuster@gmail.com  
View profile  
 More options Jan 16 2008, 7:28 am
From: "flashbus...@gmail.com" <flashbus...@gmail.com>
Date: Wed, 16 Jan 2008 04:28:09 -0800 (PST)
Local: Wed, Jan 16 2008 7:28 am
Subject: Re: pdftex preview plugin
wow, this looks awesome!
Are there any plan, when this will be released?
I'll start writing my diploma next month and this would be some great
thing.

On Dec 31 2007, 11:12 pm, Tobias Eberle <tobias.ebe...@gmx.de> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tobias Eberle  
View profile  
 More options Jan 17 2008, 3:47 pm
From: Tobias Eberle <tobias.ebe...@gmx.de>
Date: Thu, 17 Jan 2008 21:47:02 +0100
Local: Thurs, Jan 17 2008 3:47 pm
Subject: Re: pdftex preview plugin
Hello,

I have uploaded the current development version to
http://www.tobiaseberle.de/downloads/pdftex_preview.tar.gz

Please extract it into ~/.pida2/plugins

The filename of the file that is to be compiled and the filename of the
pdf are both hard-coded. You have to edit
pdftex_preview/pdftex_preview.py und change both filenames to your
needs. It's line 24 and 25 you have to edit.

The controller combobox does currently nothing (except of displaying a
list of existing controllers).

There is at least one bug in pida that has to be fixed before there will
be a final release, so there is no plan for a release yet. Please feel
free to send me comments and improvement suggestions.
(The plan is to write a new controller type for compiling latex
documents. In the preview panel you will be able to choose a controller
that is used to compile the document and also contains the filename of
the pdf.)

Best wishes,

Tobias


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francois  
View profile  
 More options Jan 18 2008, 4:18 pm
From: Francois <Francois.Beaub...@gmail.com>
Date: Fri, 18 Jan 2008 13:18:31 -0800 (PST)
Local: Fri, Jan 18 2008 4:18 pm
Subject: Re: pdftex preview plugin
Hi,

Indeed it looks awesome, good job !
But after the install, I've got the folowwing error message when I try
to enable the plugin:

pdftex_preview: No module named poppler

So  I'm looking to find a package for my Ubuntu Gutsy Gibbon but can't
find something like python-poppler
Any idea ?

Thank's a lot
Francois

On Jan 17, 9:47 pm, Tobias Eberle <tobias.ebe...@gmx.de> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tobias Eberle  
View profile  
 More options Jan 18 2008, 4:42 pm
From: Tobias Eberle <tobias.ebe...@gmx.de>
Date: Fri, 18 Jan 2008 22:42:49 +0100
Local: Fri, Jan 18 2008 4:42 pm
Subject: Re: pdftex preview plugin
Hi Francois,

oh, I forgot to mention it :)

You can get it from https://launchpad.net/poppler-python
Just download the code, compile and install it (I used checkinstall to
get a nice package)

Best wishes,

Tobias


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tobias Eberle  
View profile  
 More options Jan 18 2008, 6:18 pm
From: Tobias Eberle <tobias.ebe...@gmx.de>
Date: Sat, 19 Jan 2008 00:18:39 +0100
Local: Fri, Jan 18 2008 6:18 pm
Subject: Re: pdftex preview plugin
Hi,

> oh, I forgot to mention it :)

I also forgot to mention that the plugin uses "rubber" to compile the
pdf. In Ubuntu you can install it as a package. Otherwise you can change
the corresponding source line to use pdftex directly.

Best wishes,

Tobias


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francois  
View profile  
 More options Jan 19 2008, 5:52 am
From: Francois <Francois.Beaub...@gmail.com>
Date: Sat, 19 Jan 2008 02:52:01 -0800 (PST)
Local: Sat, Jan 19 2008 5:52 am
Subject: Re: pdftex preview plugin
Tanks for your help Tobias !

I've just download poppler-python-0.6-experimental but after the ./
autogen.sh
I've got the following error:

checking for python extension module directory... ${exec_prefix}/lib/
python2.5/site-packages
checking for headers required to compile python extensions... not
found
configure: error: could not find Python headers

I'm sorry but I don't know what to do now, some python headers are
missing but which ones ?
Anyway if sombody can help me ...

Thanks
Francois

On Jan 19, 12:18 am, Tobias Eberle <tobias.ebe...@gmx.de> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Afshar  
View profile  
 More options Jan 19 2008, 8:44 am
From: Ali Afshar <aafs...@gmail.com>
Date: Sat, 19 Jan 2008 13:44:20 +0000
Local: Sat, Jan 19 2008 8:44 am
Subject: Re: pdftex preview plugin

Hi, you need python-dev package.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francois  
View profile  
 More options Jan 19 2008, 10:44 am
From: Francois <Francois.Beaub...@gmail.com>
Date: Sat, 19 Jan 2008 07:44:56 -0800 (PST)
Local: Sat, Jan 19 2008 10:44 am
Subject: Re: pdftex preview plugin
Thanks Ali !
Indeed this package is a big miss !

I've downloaded python-dev and some more packages and was able to
compile python-poppler
But when I enable pdftex preview plugin I've some error messages (see
below)

Traceback (most recent call last):
  File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
    if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
  File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
    if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
  File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
    if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
  File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
    if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
  File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
    if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
  File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
    if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
  File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
    if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
  File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
    if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
  File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
    if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
  File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
    if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Traceback (most recent call last):
  File "/home/beaubert/PIDA-0.5.1/pida/services/optionsmanager/
optionsmanager.py", line 138, in on_service_combo__content_changed
    if not svc.servicename in self._service_pages:
AttributeError: 'NoneType' object has no attribute 'servicename'
Error: Couldn't open file '/home/tobias/studium/9.semester_ws_07_08/
parallele_verteilte_Dateisysteme/Ceph/ceph.pdf'
Traceback (most recent call last):
  File "/home/beaubert/PIDA-0.5.1/pida/services/plugins/plugins.py",
line 249, in on_installed_list__cell_edited
    success = self.svc.start_plugin(item.directory)
  File "/home/beaubert/PIDA-0.5.1/pida/services/plugins/plugins.py",
line 404, in start_plugin
    plugin = self.boss.start_plugin(plugin_path)
  File "/home/beaubert/PIDA-0.5.1/pida/core/boss.py", line 98, in
start_plugin
    return self._sm.start_plugin(plugin_path)
  File "/home/beaubert/PIDA-0.5.1/pida/core/servicemanager.py", line
162, in start_plugin
    plugin.start()
  File "/home/beaubert/.pida2/plugins/pdftex_preview/
pdftex_preview.py", line 193, in start
    self._view = PdfTexPreviewView(self)
  File "/home/beaubert/PIDA-0.5.1/pida/ui/views.py", line 119, in
__init__
    self.create_ui()
  File "/home/beaubert/.pida2/plugins/pdftex_preview/
pdftex_preview.py", line 78, in create_ui
    self.load_document(PDF_Filename)
  File "/home/beaubert/.pida2/plugins/pdftex_preview/
pdftex_preview.py", line 83, in load_document
    self.document = poppler.document_new_from_file(uri, None)
gobject.GError: Failed to load document from data (error 1)'

Traceback (most recent call last):
  File "/home/beaubert/.pida2/plugins/pdftex_preview/
pdftex_preview.py", line 152, in on_show_pdftex_preview
    self.svc.show_pdftex_preview()
  File "/home/beaubert/.pida2/plugins/pdftex_preview/
pdftex_preview.py", line 196, in show_pdftex_preview
    self.boss.cmd('window', 'add_view', paned='Plugin',
view=self._view)
AttributeError: 'PdfTexPreview' object has no attribute '_view'

What's wrong wwith my config ?
if someone as an idea ...

Any thank you Ali and Tobias for your help
Francois

On Jan 19, 2:44 pm, Ali Afshar <aafs...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tobias Eberle  
View profile  
 More options Jan 19 2008, 11:26 am
From: Tobias Eberle <tobias.ebe...@gmx.de>
Date: Sat, 19 Jan 2008 17:26:11 +0100
Local: Sat, Jan 19 2008 11:26 am
Subject: Re: pdftex preview plugin
Hi,

> Error: Couldn't open file '/home/tobias/studium/9.semester_ws_07_08/
> parallele_verteilte_Dateisysteme/Ceph/ceph.pdf'

please change the file name as I pointed out in my first mail. There are
no checks at all that the file really exists and I guess that an
exception is raised which is not handled. (this is the disadvantage of a
proof of concept ;-) )

Hope that helps,

Tobias


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francois  
View profile  
 More options Jan 19 2008, 12:09 pm
From: Francois <Francois.Beaub...@gmail.com>
Date: Sat, 19 Jan 2008 09:09:49 -0800 (PST)
Local: Sat, Jan 19 2008 12:09 pm
Subject: Re: pdftex preview plugin
Tobias your THE man !
Indeed it wasthe problem

Thank you very much for your help and this great plugin !
It works like a charm now ...

On Jan 19, 5:26 pm, Tobias Eberle <tobias.ebe...@gmx.de> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google