From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: epresent and Org-mode: using Emacs to run presentations of Org-mode docs Date: Fri, 29 Oct 2010 07:31:43 +0530 Message-ID: <81mxpxeozc.fsf@gmail.com> References: <87iq0mv104.fsf@gmail.com> <81ocaecign.fsf@gmail.com> <87d3qudjhi.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=48652 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBeI2-0003ay-4s for emacs-orgmode@gnu.org; Thu, 28 Oct 2010 22:01:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBeI0-0000uR-If for emacs-orgmode@gnu.org; Thu, 28 Oct 2010 22:01:57 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:65137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBeI0-0000uK-BK for emacs-orgmode@gnu.org; Thu, 28 Oct 2010 22:01:56 -0400 Received: by gxk2 with SMTP id 2so280645gxk.0 for ; Thu, 28 Oct 2010 19:01:55 -0700 (PDT) In-Reply-To: <87d3qudjhi.fsf@gmail.com> (Eric Schulte's message of "Thu, 28 Oct 2010 16:40:53 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Tom Tromey , Org Mode , Phil Hagelberg "Eric Schulte" writes: > Jambunathan K writes: > >> "Eric Schulte" writes: >> >>> Hi, >>> >>> Phil Hagelberg recently introduced me to epresent.el by Tom Tromey. >>> It's a very nice little utility for giving presentations using Emacs as >>> the display engine. Obviously I was aghast to learn that epresent >>> didn't work with Org-mode documents. I took the liberty of reworking it >>> so that it runs off of Org-mode documents and uses Org-mode both to >>> structure the presentation and to handle most of the fancy display >>> elements. >>> >>> This re-working was mainly a series of quick hacks, and is certainly not >>> "mature" in any way. But I think it is usable in it's current state for >>> running simple presentations, and thought it may be interesting or of >>> use to people here. If you're interested check out the example >>> presentation included in the source code repository. >>> >>> http://github.com/eschulte/epresent >>> (instructions in the README) >>> >> >> I think (require 'org-exp) is required. >> > > do you know what for? > This is the trace I got otherwise. (See the trace at the end of the mail) >> >> Looks like it walks you through the headline one at a time and >> presents the entry contents as such. >> > > yes > And it fontifies the headlines in bold fonts just as in slides (actually too big for my NetBook). Yesterday when I did a quick run the presentation was insipid and I didn't get to see the big slide-like fonts. Honestly, I was a bit surprised at why others were wowing. I ran the presentation today right after also doing a C-c C-e d (for verifying Thomas' bug report on LaTeX internal links) and I see the altered behaviour. I do think it is pretty impressive. I think loading the org-latex.el makes this difference. >> >> When I get to the equations slide what should I expect to see? The >> equation fully rendered (as in text books) or just the markup (as it is >> literally typed). >> > > I see an image overlay of the latex fragment. Is that not what you see? > No I don't see any overlays. I will investigate the problem sometime later. Possible that it has something to do with ltxpng or missing image libraries. Jambunathan K. Trace: Debugger entered--Lisp error: (void-function org-infile-export-plist) (org-infile-export-plist) (plist-get (org-infile-export-plist) :latex-header-extra) (let* ((prefixnodir ...) (absprefix ...) (todir ...) (opt org-format-latex-options) (matchers ...) (re-list org-latex-regexps) (org-format-latex-header-extra ...) (cnt 0) txt hash link beg end re e checkdir executables-checked string m n block linkfile movefile ov) (while (setq e ...) (setq m ... re ... n ... block ...) (when ... ... ...))) org-format-latex("ltxpng/present" "c:/Documents and Settings/kjambunathan/My Documents/My Data/elisp/eschulte-epresent-016f027/" overlays "Creating images for entry...%s" nil forbuffer dvipng) (let (beg end at msg) (cond (... ...) (... ... ...) (t ... ...)) (message msg "") (narrow-to-region beg end) (goto-char beg) (org-format-latex (concat "ltxpng/" ...) default-directory (quote overlays) msg at (quote forbuffer) (quote dvipng)) (message msg "done. Use `C-c C-c' to remove images.")) (save-restriction (let (beg end at msg) (cond ... ... ...) (message msg "") (narrow-to-region beg end) (goto-char beg) (org-format-latex ... default-directory ... msg at ... ...) (message msg "done. Use `C-c C-c' to remove images."))) (save-excursion (save-restriction (let ... ... ... ... ... ... ...))) org-preview-latex-fragment(16) (let ((org-format-latex-options ...)) (org-preview-latex-fragment 16)) (let ((delay-mode-hooks t)) (org-mode) (setq major-mode (quote epresent-mode)) (setq mode-name "EPresent") (progn (if ... ...) (unless ... ...) (let ... ...)) (use-local-map epresent-mode-map) (set-syntax-table epresent-mode-syntax-table) (setq local-abbrev-table epresent-mode-abbrev-table) (text-scale-adjust 0) (text-scale-adjust epresent-text-scale) (setq org-inline-image-overlays t) (setq org-src-fontify-natively t) (let (...) (org-preview-latex-fragment 16)) (add-to-invisibility-spec (quote ...)) (org-remove-flyspell-overlays-in (point-min) (point-max)) (epresent-fontify)) (progn (make-local-variable (quote delay-mode-hooks)) (let (...) (org-mode) (setq major-mode ...) (setq mode-name "EPresent") (progn ... ... ...) (use-local-map epresent-mode-map) (set-syntax-table epresent-mode-syntax-table) (setq local-abbrev-table epresent-mode-abbrev-table) (text-scale-adjust 0) (text-scale-adjust epresent-text-scale) (setq org-inline-image-overlays t) (setq org-src-fontify-natively t) (let ... ...) (add-to-invisibility-spec ...) (org-remove-flyspell-overlays-in ... ...) (epresent-fontify))) (delay-mode-hooks (org-mode) (setq major-mode (quote epresent-mode)) (setq mode-name "EPresent") (progn (if ... ...) (unless ... ...) (let ... ...)) (use-local-map epresent-mode-map) (set-syntax-table epresent-mode-syntax-table) (setq local-abbrev-table epresent-mode-abbrev-table) (text-scale-adjust 0) (text-scale-adjust epresent-text-scale) (setq org-inline-image-overlays t) (setq org-src-fontify-natively t) (let (...) (org-preview-latex-fragment 16)) (add-to-invisibility-spec (quote ...)) (org-remove-flyspell-overlays-in (point-min) (point-max)) (epresent-fontify)) epresent-mode() epresent-run() call-interactively(epresent-run t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) >> >> Jambunathan K. >> >>> Best -- Eric >>> >>> _______________________________________________ >>> Emacs-orgmode mailing list >>> Please use `Reply All' to send replies to the list. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode