[Ipe-discuss] IpePresenter not showing LaTeX rendered results

Otfried Cheong otfried at ipe.airpost.net
Sun Jan 31 22:23:38 CET 2016


Just in case:  setResources needs to be called *after* calling runLatex.

IpePresenter was written by Dmitriy Morozov, his email address is on the
repository page:
http://hg.mrzv.org/IpePresenter

Cheers,
 Otfried

On Sun, Jan 31, 2016, at 22:19, Lukas Barth wrote:
> Ah, forget that. I found the mistake. One of my "for good measure" calls
> to doc->runLatex() remained in the code, probably messing up the
> resources that I set earlier. Fixed now.
> 
> I'll try to build a nice patchset against ipepresenter tomorrow. Where
> do I submit this? Is there a bugtracker for ipepresenter somewhere? I
> only found the repository..
> 
> Thanks again,
> 
> Lukas
> 
> On 01/31/2016 10:15 PM, Lukas Barth wrote:
> > Wow, that was a fast reaction. Thanks.
> > 
> > However, now I have weird behaviour. One of two things happens (not sure
> > when which happens) when I start ipepresenter:
> > 
> > 1.) It segfaults somewhere in font::getShape (I'm not currently able to
> > reproduce this, currently only 2 happens:)
> > 2.) In two of the three canvases, all letters (i.e. all glyphs rendered
> > by Latex) are replaced by boxes
> > 
> > I assume there is some race condition now. I'm sorry, I'm not really
> > familiar with the codebase and I'm trying to patch this together (got a
> > presentation tomorrow...) - is there anything that must necessarily
> > complete before the values from doc->resources() are initialized?
> > Currently, doc->recources() is called more or less right after
> > Document::loadWithErrorReport().
> > 
> > Thanks again,
> > 
> > Lukas
> > 
> > 
> > 
> > On 01/31/2016 09:49 PM, Otfried Cheong wrote:
> >> You need to replace the call to Canvas::setFontPool by a call to
> >> Canvas::setResources (getting the argument as doc->resources()).
> >>
> >> Cheers,
> >>  Otfried
> >>
> >> On Sun, Jan 31, 2016, at 21:35, Lukas Barth wrote:
> >>> Hi,
> >>>
> >>> I'm using a current IpePresenter straight from the repository compiled
> >>> against the latest Ipe 7.2.2. Because of my system (Gentoo has ancient
> >>> lua...) I needed to do some manual compiling and to fix some of the
> >>> Makefiles, but I'm pretty sure I did not break anything in the process.
> >>>
> >>> Now, when I fire up IpePresenter, PdfLatex is run (at least the console
> >>> tells me it is...), but the two windows (actually - all three canvases)
> >>> only show the non-rendered content. I tried sprinkling a few
> >>> "doc->runLatex()" over the code of IpePresenter, but that did not help
> >>> either.
> >>>
> >>> I have an old version of IpePresenter lying around, compiled agains Ipe
> >>> 7.1.x, and with that version, it works great (but all PNG images look
> >>> awful - I guess the scaling code changed between versions?) So,
> >>> something must have changed in the behaviour that interferes with Latex
> >>> rendering. Is there some magic I have to run after doc->runLatex() to
> >>> update the canvas?
> >>>
> >>> Thank for any help,
> >>>
> >>> Lukas
> >>> _______________________________________________
> >>> Ipe-discuss mailing list
> >>> Ipe-discuss at lists.science.uu.nl
> >>> http://lists.science.uu.nl/mailman/listinfo/ipe-discuss
> >> _______________________________________________
> >> Ipe-discuss mailing list
> >> Ipe-discuss at lists.science.uu.nl
> >> http://lists.science.uu.nl/mailman/listinfo/ipe-discuss
> >>
> > _______________________________________________
> > Ipe-discuss mailing list
> > Ipe-discuss at lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/ipe-discuss
> > 
> _______________________________________________
> Ipe-discuss mailing list
> Ipe-discuss at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/ipe-discuss


More information about the Ipe-discuss mailing list