Tags:
create new tag
view all tags

GenPDFLatexAddOnDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on GenPDFLatexAddOn contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Development topic for GenPDFLatexAddOn

-- ScottHoge - 15 Oct 2005

Thanks for making this add-on available to the TWikiCommunity smile

There is so much activity in the Plugins web, I almost missed this add-on!

-- PeterThoeny - 02 Nov 2005

Scott, please watch out for broken links. Don't assume that other topics are present at a site where this add-on is installed. Use Interwiki links as needed.

-- PeterThoeny - 12 Nov 2005

I think it would be wise to move the PREAMBLE declaration for GenPDFLatexAddOn out of LatexModePlugin and into a separate GenPDFLatexAddOn configuration. I experienced problems rendering formulas in normal "web" view when I had my preamble set up for print output (the preamble is rather large now)

  • The TWiki:Plugins.LatexModePlugin needs a PREAMBLE declaration (e.g. to define non-standard fonts or colors), whether or not the GenPDFLatexAddOn is installed. I can see how they can interfere, however. Can your issue be solved another way? For example: define a seperate topic that defines the pdflatex preamble and include it only when genpdflatex is called? -- SH

-- PeterLohmann - 23 Jan 2006

ah.. and while I'm at it... there seems to be bug in sub _genlatex when near "# use hard-disk path rather than relative url paths for images". It didn't work for me until I did this:

    # use hard-disk path rather than relative url paths for images
    my $url = TWiki::Func::getPubDir();
    my $ptmp = TWiki::Func::getPubUrlPath();

    # XXX PL: Patch
    my $host =  TWiki::Func::getUrlHost();

    $url =~ s/$ptmp//;
    #$text =~ s!<img(.*?) src=\"\/!<img$1 src=\"$url\/!sgi;
    # XXX PL: Patch
    $text =~ s/$host/$url/sgi;
    #print STDERR $text;
  • Thanks for the feedback. I'll look in to this. -- SH

-- PeterLohmann - 23 Jan 2006

I am trying to run this add on, and am apparently missing severl perl scripts - the first two being

TWiki::UI::webExists and TWiki::Store::readTemplate

Where can I get these?

-- KamArnold - 04 Feb 2006

These functions are now in TWiki::Func, although they were not during development using a Dakar beta. It will take a few days for me to make corrections, however. Sorry for the inconvenience.

-- ScottHoge - 04 Feb 2006

To the Plugin maintainer: If possible, please keep this Plugin compatible with Cairo and Dakar codebase. HandlingCairoDakarPluginDifferences has more.

-- PeterThoeny - 08 Feb 2006

Why is the standard GenPDFLatexForm in Main and not in TWiki? -- Otherwise nice shot.

  • Only due to my being unclear on the respective role of Main and TWiki. smile I put it into Main as an example. It could in fact be anywhere. I'm happy to move it to confirm to best twiki practices, if needed. -- SH

What do I have to do to increase the quality of the PDF produced by pdflatex? Guess I will have to brush up my LaTeX. smile

  • I suspect that the add-on could use a bit of work to render typical topic's nicely. It works best with topics designed for PDF output, using the %BEGINFIGURE% ... %ENDFIGURE% tags from the LatexModePlugin as a wrapper around images, for example. Adding the \usepackage{fullpage} declaration in the preamble can help, too. -- SH

-- FranzJosefSilli - 14 Feb 2006

Wonderful plugin! I spent so many hours thinking on a way to import my .tex into TWiki when the approach of building the .tex from TWiki makes much more sense now!

Anyway, just one thing I noticed: the IEEEtran option generates a \documentclass{IEEEtran2e}. But the IEEEtran2e.cls doesnt ship with the IEEEtran package anymore, the only one around is IEEEtran.cls, which should be the one used.

Many thanks, Scott, and congratulations for the good work! smile

-- MarcoPoli - 11 Jul 2006

Ok, one more thing... I miss a way to pass options to \documentclass. Even some of the pre-programmed classes need that (in particular the IEEEtran class does). Thanks again!

-- MarcoPoli - 11 Jul 2006

Thanks for the good words, Marco. I'm glad to see someone else using this plugin.

As for importing .tex in TWiki, there is a plan: IncludeExistingLatexDocsInTWiki, but I haven't had time to polish it yet.

and the form can certainly be changed to support more options than draft.

Thanks again for the feedback.

-- ScottHoge - 12 Jul 2006

Scott, I fixed some text on the add-on topic, please feel free to take this into the next release:

  • Fixed broken interwiki links
  • Escaped redundant links
  • Added SHORTDESCRIPTION (needed by AddOnPackage and other reports)

-- PeterThoeny - 30 Sep 2006

Is there any plan to merge this into GenPDFAddOn at some point? Or will this be suitable for use at all the places where GenPDF is now? (I'd like to provide a single 'PDF' button on all pages and not have to worry about whether a specific page has LaTeX embedded in it or not.) Thanks!

-- SteveWampler - 19 Apr 2007

I have no plan to merge the two. If generating a PDF for single topics, you could use this add on exclusively. It should work whether math is included or not. GenPDFAddOn has a bit more flexibility in the structure of the created PDF, e.g. including linked topics recursively.

-- ScottHoge - 20 Apr 2007

ScottHoge, I was running into a bug and fixed our local version. I went to check in the fix into subversion and noticed it has been fixed already. It seems like you made multiple changes back in February, 2007 but the latest attachment to the page is from 2006. Any reason these weren't pushed to the website?

-- RickMach - 28 Aug 2007

Hi Rick,

The changes I made last winter added bibtex support to the add on. I've been running v2.1 on my own wiki since then, but forgot to push the changes to twiki.org after a suitable time of testing. My life just got too busy, I guess.

I've uploaded the changes just now.

-- ScottHoge - 15 Nov 2007

I attached a small patch which was needed in order to make this add-on work with TWiki v4.2.0 due to a change within $TWiki::Plugins::SESSION. However, I'm not sure whether that is all it takes (still testing)...

-- MarkusUeberall - 23 Jan 2008 / 30 Jan 2008

I overhauled the attached patch as the same function in question was used in another place. Aside from that, the GENPDFLATEX_OPTIONSPAGE value is now trimmed and a check whether the [x]color package should be included has also been slightly extended.

-- MarkusUeberall - 31 Jan 2008

Many thanks for the patch, Markus. The changes look good to me, and seem to test fine on TWiki 4.2. I'll post them to SVN shortly.

-- ScottHoge - 31 Jan 2008

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt GenPDFAddOn_TWiki420_patch.txt r2 r1 manage 2.5 K 2008-01-31 - 02:38 UnknownUser Patch which makes GenPDFLatexAddOn work with TWiki v4.2.0
Edit | Attach | Watch | Print version | History: r21 < r20 < r19 < r18 < r17 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r21 - 2008-01-31 - ScottHoge
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.