Re: [O] org-tree-slide: some small changes
Takaaki ISHIKAWA tak...@ieee.org writes: Dear Eric, Thank you for your kind suggestions. You're very welcome! [...] 4. Custom faces for headings. Oh… This is not my expected behavior. When you exit the org-tree-slide mode, the default configurations would be restored by org-tree-slide-heading-level-2-init or -3-init. However, as you know, those changes will apply to all org-mode buffers at the same time! Is my understanding correct? I guess, then, it would be good to have face changes be optional. I have tried org-tree-slide-mode with all face changes commented out and it works perfectly fine for me. If you can wrap all such changes into a conditional with a user customisable variable, I would be happy! 5. The default keybindings to moving slides. I agree, but I cannot change this because my english keyboard does not have the Page Up and Page Down key :-( Ah, interesting! I understand. It's easy enough for me to re-map, as you have suggested. Thanks, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-898-g005917
Re: [O] org-tree-slide: some small changes
Takaaki, a couple of further suggestions: - you change the faces org-level-2 and org-level-3. This makes sense. However, you use custom-set-faces which overwrites the user's own customisations permanently! I think this is bad practice (I couldn't figure out why my faces had changed in other documents...). Can you not simply change the face for that buffer ephemerally for the slide show? I don't know enough emacs lisp to suggest how this would be done, mind you... - it would be better, in my opinion, to use prior and next instead of left and right for moving from slide to slide. I think this is more intuitive but, in any case, my main reason for wanting this is that I am using tree-slide-mode for an interactive session and I am editing the slides as the meeting progresses. I naturally wish to use the arrow keys to move the cursor when editing whereas I am unlikely to use the paging keys. Thanks, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-898-g005917
Re: [O] org-tree-slide: some small changes
Dear Eric, Thank you for your kind suggestions. 1. Title without []s. Yes! That's right. I'll change it. 2. Custom header. Yes! Face control is the next feature that I currently plan. I'm trying to resize font so that I can use org-tree-slide in a high resolution display like HD(1080p). We can already use C-x C-- or C-x C-= by face-remap.el, but this is not sufficient for Japanese users. 3. Skip trees with comments (org-tree-slide-skip-comments). Good idea! I'll implement this feature soon. 4. Custom faces for headings. Oh… This is not my expected behavior. When you exit the org-tree-slide mode, the default configurations would be restored by org-tree-slide-heading-level-2-init or -3-init. However, as you know, those changes will apply to all org-mode buffers at the same time! Is my understanding correct? 5. The default keybindings to moving slides. I agree, but I cannot change this because my english keyboard does not have the Page Up and Page Down key :-( I usually change the keybindings to f9 and f10 by the following setting. #+begin_src emacs-lisp (define-key org-tree-slide-mode-map (kbd f9) 'org-tree-slide-move-previous-tree) (define-key org-tree-slide-mode-map (kbd f10) 'org-tree-slide-move-next-tree) (define-key org-tree-slide-mode-map (kbd left) 'backward-char) (define-key org-tree-slide-mode-map (kbd right) 'forward-char) #+end_src Best, Takaaki On 2013/02/03, at 12:04, Eric S Fraga e.fr...@ucl.ac.uk wrote: Takaaki, a couple of further suggestions: - you change the faces org-level-2 and org-level-3. This makes sense. However, you use custom-set-faces which overwrites the user's own customisations permanently! I think this is bad practice (I couldn't figure out why my faces had changed in other documents...). Can you not simply change the face for that buffer ephemerally for the slide show? I don't know enough emacs lisp to suggest how this would be done, mind you... - it would be better, in my opinion, to use prior and next instead of left and right for moving from slide to slide. I think this is more intuitive but, in any case, my main reason for wanting this is that I am using tree-slide-mode for an interactive session and I am editing the slides as the meeting progresses. I naturally wish to use the arrow keys to move the cursor when editing whereas I am unlikely to use the paging keys. Thanks, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-898-g005917 -- Takaaki ISHIKAWA tak...@ieee.org GITI, Waseda University ( ' -')b http://about.me/takaxp
Re: [O] org-tree-slide: some small changes
Takaaki ISHIKAWA tak...@ieee.org writes: Feel free to request additional features. Takaaki, a few minor suggestions, and I mean *minor*, in case you get bored and want to work on org-tree-slide mode ;-) : - I would prefer if the title were shown as is, i.e. without adding []s. If I want []s around the title, I can add them myself to the title. - It would be nice to have a different customisable face used for the author, date, email line. - Could the slide mode be configured to ignore subtrees with commented headings? I often create various sections and then comment everything out (using =C-c ;=) except those sections that I would like presented. You have something similar already for DONE items so an equivalent =org-tree-slide-skip-comments= configuration would be great! But, as I said, these are minor. The mode works very well as is. thanks, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-917-gb9c506
Re: [O] org-tree-slide: some small changes
Takaaki ISHIKAWA tak...@ieee.org writes: Dear Eric, Thank you for your feedback! You're very welcome. And I'm so glad to hear you like org-tree-slide.el. I've just updated my code in Github. The code includes the two hooks. On the other hand, I deleted =org-mode-slide-mode-hook= because it did not work well. I had to check the typo more carefully, sorry for that. Thanks! I'm glad you are happy with my suggested changes. If you don't mind, I would like to add your name into the source code as a contributor. Sure, that would be fine. I Hope for the success of your talk ;-) Thanks again! I'm facilitating a workshop discussion and need to update slides as I go along, hence my desire to use something more interactive than my usual org-beamer-pdf route for talks. Your org-tree-slide mode seems to be ideal for this! And I would hate to have to struggle with powerpoint or its equivalent... -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-891-gf52600
Re: [O] org-tree-slide: some small changes
Dear Eric, If you don't mind, I would like to add your name into the source code as a contributor. Sure, that would be fine. Thank you! I'll add your name when I release the next version. I Hope for the success of your talk ;-) Thanks again! I'm facilitating a workshop discussion and need to update slides as I go along, hence my desire to use something more interactive than my usual org-beamer-pdf route for talks. Your org-tree-slide mode seems to be ideal for this! And I would hate to have to struggle with powerpoint or its equivalent... Yes, that's the point. In my case, I did not wanted to create a PPT/Keynote for short presentations such as meeting report, brain storming, and programming lecture. I believe that Org + org-tree-slide is very useful for collaboration works and saving time. Feel free to request additional features. Best, Takaaki -- Takaaki ISHIKAWA tak...@ieee.org GITI, Waseda University ( ' -')b http://about.me/takaxp
Re: [O] org-tree-slide: some small changes
Dear Eric, Thank you for your feedback! And I'm so glad to hear you like org-tree-slide.el. I've just updated my code in Github. The code includes the two hooks. On the other hand, I deleted =org-mode-slide-mode-hook= because it did not work well. I had to check the typo more carefully, sorry for that. If you don't mind, I would like to add your name into the source code as a contributor. I Hope for the success of your talk ;-) Best Takaaki On 2013/01/27, at 15:08, Eric S Fraga e.fr...@ucl.ac.uk wrote: Dear Takaaki, I have been playing with your org tree slide mode. I really like it. It didn't quite do what I wanted so I have played around with it. I've made a couple of simple changes which you may wish to consider incorporating. Specifically, I have added two hooks, one run just before playing the slide show and one run when the slide show is stopped. This allows me to, for instance, turn off flyspell mode, increase the text scale etc. for the actual slide show but revert these back after I am finished showing the slides. I realise that the play hook may duplicate the mode-hook you already had defined but I couldn't get the latter to work. It turns out that there was a typographical error in =org-tree-slide-mode= in that it tried to run the wrong hook (=org-mode-slide-mode-hook= instead of =org-tree-slide-mode-hook=) but I only figured that out once I had added my own hooks. I have fixed that error as well but decided to leave the hooks in place for the moment (I have to work on an actual talk now...). Please see attached the slightly modified version of your code and an example slide show which shows a couple of example hooks. Please feel free to incorporate any of the changes you wish, if any. Thanks for an excellent little tool that is proving to be very useful to me! eric -- Takaaki ISHIKAWA tak...@ieee.org GITI, Waseda University ( ' -')b http://about.me/takaxp
[O] org-tree-slide: some small changes
Dear Takaaki, I have been playing with your org tree slide mode. I really like it. It didn't quite do what I wanted so I have played around with it. I've made a couple of simple changes which you may wish to consider incorporating. Specifically, I have added two hooks, one run just before playing the slide show and one run when the slide show is stopped. This allows me to, for instance, turn off flyspell mode, increase the text scale etc. for the actual slide show but revert these back after I am finished showing the slides. I realise that the play hook may duplicate the mode-hook you already had defined but I couldn't get the latter to work. It turns out that there was a typographical error in =org-tree-slide-mode= in that it tried to run the wrong hook (=org-mode-slide-mode-hook= instead of =org-tree-slide-mode-hook=) but I only figured that out once I had added my own hooks. I have fixed that error as well but decided to leave the hooks in place for the moment (I have to work on an actual talk now...). Please see attached the slightly modified version of your code and an example slide show which shows a couple of example hooks. Please feel free to incorporate any of the changes you wish, if any. Thanks for an excellent little tool that is proving to be very useful to me! eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_7.9.3d-874-gf11acc #+TITLE: Demonstration of org tree slide presentation #+AUTHOR:Eric S Fraga #+EMAIL: e.fr...@ucl.ac.uk #+DATE: 2013-01-26 Sat Start by executing (=C-c C-c=) this emacs lisp code which will set things up correctly. To play the slide, hit =F8=, aka =M-x org-tree-slide-mode RET=. To finish the slide show, hit =F8= again. Use =C-F8= to see the table of contents at any time; the table of contents supports navigation. Hit =right= to resume presentation with any given slide. #+begin_src emacs-lisp :results none (require 'org-tree-slide) (defun esf/play-org-tree-slide () (auto-fill-mode t) (evil-emacs-state) (flyspell-mode-off) (org-preview-latex-fragment) (org-toggle-pretty-entities) (setq sentence-highlight-mode nil) (text-scale-set 5) (delete-other-windows) (message ESF playing org tree slide)) (add-hook 'org-tree-slide-mode-play-hook 'esf/play-org-tree-slide) (defun esf/stop-org-tree-slide () (auto-fill-mode t) (evil-normal-state) (flyspell-mode-on) (setq sentence-highlight-mode t) (text-scale-set 1) (message ESF stopping org tree slide)) (add-hook 'org-tree-slide-mode-stop-hook 'esf/stop-org-tree-slide) (local-set-key (kbd f8) 'org-tree-slide-mode) (local-set-key (kbd C-f8) 'org-tree-slide-content) (local-set-key (kbd S-f8) 'org-tree-slide-skip-done-toggle) (setq org-format-latex-options '(:foreground white :background black :scale 3 :html-foreground Black :html-background Transparent :html-scale 1.0 :matchers (begin $1 $ $$ \\( \\[)) org-latex-create-formula-image-program 'imagemagick org-tree-slide-heading-emphasis t ) ;;(org-tree-slide-mode) #+end_src Execute the following code when wanting to edit the slides in a more normal environment: #+begin_src emacs-lisp :results none (evil-normal-state) (flyspell-mode-on) (text-scale-set 1) #+end_src * Introduction - this is short. - but could be longer. * Equations - probably do not work: \begin{align} y = \sqrt {x} \\ z = \int_0^\infty t \, dt \end{align} - actually, they do work but I cannot seem to get the right background colour: FIXED! Used ImageMagick in lieu of dvipng. - What about a different latex fragment, such as $x \in [0,1)$? - they even work inline if we look at \alpha and \beta. * Images [[./mip.png]] * Actions - Do something - And something else * Assignments - Joe does this - Jill does something else org-tree-slide.el Description: application/emacs-lisp