Re: [O] ox-reveal cannot export
Hi, I've switched org-reveal's code to follow ox-html's changes. Since ox-html is changing, I've committed my codes to devel branch. Please pull the devel branch and try the fixes. Please let me if there are any issue. Thanks. Regards, Yujie 2014-08-07 20:22 GMT+08:00 Nicolas Goaziou m...@nicolasgoaziou.fr: Hello, Nick Dokos ndo...@gmail.com writes: Tyler van Hensbergen ty...@mainstreetgenome.com writes: Robert Eckl eckl.r at gmx.de writes: While exporting to reveal i get Symbol's function definition is void: org-html-format-headline--wrap What i'm missing? That function's name was changed. I made a temporary fix on a forked branch on github and submitted a pull request today (warning I'm new to elisp so I may have missed something). https://github.com/yjwen/org-reveal/pull/69 Not sure if it fixes everything but it is working for me know and I am no longer receiving that error. I haven't read things carefully, so take this with a large grain of salt, but I think it should read: ... (full-text (org-html-headline headline contents info))) ... instead of passing a nil for contents. It should not use `org-html-headline' anyway, as there is no guarantee that this is the right function for headlines. To export like html back-end, there are `org-export-data-with-backend' and `org-export-with-backend' functions, which doesn't require to know the original function. Regards, -- Nicolas Goaziou
Re: [O] ox-reveal and headlines
Hi, I am afraid ox-reveal cannot do it automatically. But if you are wanting an overview of headings, simply press escape key will show the full layout of the presentation. Hope it can help some how. Yujie 2014-03-02 17:59 GMT+08:00 Fabrice Popineau fabrice.popin...@gmail.com: Hi, Is there a way to stop ox-reveal to introduce new slides when we go down levels of headlines? I thinkl it would be meaning ful to say that 1st level is for 'horizontal' slides, 2nd level for going 'vertical', but the next levels should appear as titles on the slide. Am I missing something here? Fabrice
Re: [O] [export] Tables in ox-reveal export
Hi, Alexander, You can specify the appearance of tables in an extra .css file and tell ox-reveal to use that .css file by specifying #+REVEAL_EXTRA_CSS. For example, say I have a table.org and a table.css in the same directory. The contents of the two files are: table.org - #+REVEAL_EXTRA_CSS: ./table.css * Head1 The paragraph. | Col0 | Col1 | Col2 | |--++--| | Cell | Something long | Cell | | Cell | xx | Cell | table.css .reveal table { margin-left: auto; margin-right: auto; } Then the table is rendered automatically by the browser in center. Regards, Yujie 2014-02-19 23:43 GMT+08:00 Alexander Vorobiev alexander.vorob...@gmail.com : Hi, Is it possible to control appearance of tables in reveal.js presentations created with ox-reveal? The resulting html tables appear on the left and I want to be able to have them centered. There is a comment at http://stackoverflow.com/questions/20583341/tables-and-div-elements-are-not-centred-in-reveal-js that defining tables with table class=reveal would produce centered tables. Is it possible to have ox-reveal use that additional attribute and/or other table-formatting directives? Thanks, Alex
Re: [O] new export question: how to add a new option to an existing backend
Hi, Eric, You can derive a new back-end from existing ones. Please consult org export reference documentationhttp://orgmode.org/worg/dev/org-export-reference.html . Yujie 2013/11/22 Eric Schulte schulte.e...@gmail.com Hi, I'd like to add a new option to the LaTeX backend from a contrib/ package so that it can be set with a #+ keyword. Is this possible? If so how would one go about making this change. If not what's the best way to add a new optional value to an existing backend (to be used by a new link exporting function and/or the org-export-before-parsing-hook). Thanks, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
Re: [O] Is it possible to specify the starting number of headings at exporting
Hi, Jambunathan and Nick Yes, I prefer the separated org files be exported to several HTMLs, but with continuous heading numbering. Not that re-including them and export into one HTML. :) Thanks for your suggestions. Yujie 2013/11/21 Nick Dokos ndo...@gmail.com Yujie Wen yjwen...@gmail.com writes: I am wondering whether it is possible to define the starting number of headings when exporting org-mode files. The problem is that, I had a long Org file that I want to separate it into several small ones, each will be exported to a HTML file. But if so, every exported HTML will have the headings numbered from 1, while I prefer the headings be numbered as if they are exported from one file, to show the continuation of contents. If you split the big org file into small ones, you can use #+INCLUDE to put things back together. It does not do quite what you want - it'll produce a single HTML file on export - but I for one don't really care what the HTML file looks like, as long as I can edit convenienttly. -- Nick
[O] Is it possible to specify the starting number of headings at exporting
Hi, there, I am wondering whether it is possible to define the starting number of headings when exporting org-mode files. The problem is that, I had a long Org file that I want to separate it into several small ones, each will be exported to a HTML file. But if so, every exported HTML will have the headings numbered from 1, while I prefer the headings be numbered as if they are exported from one file, to show the continuation of contents. I searched the Org document but didn't find anything useful. I would appreciate very much If you have come across some similar requirement and give me any guidance. Thanks! Regards, Yujie
[O] How to specify complex HTML pre/postamble in the Org file?
Hi, I am just wondering how to specify some complex HTML pre/postamble contents in the Org file. As the document saying, HTML pre/postamble contents can be given by either setting string values to emacs variables org-html-preamble/postamble, or setting #+OPTIONS: html-preamble/postamble:. I prefer the pre/postamble contents being specified in the same Org file, so I tried #+OPTIONS: html-preamble/postamble. It works fine until the contents became a HTML string that contains double quote marks, which cause a parse error during exporting. I tried some escaping like: #+OPTION: html-preamble: p align=\right\Headings/p but it didn't solve the parse error. Any suggestion on specifying HTML pre/postamble contents within the same Org file? Regards, Yujie
[O] When will the BEGIN_/END_HTML block be ignored?
Hi, I am tracking an issue in the org-reveal exporter, which is about the BEGIN_/END_HTML blocks being not exported. I am wondering whether there is some variable or configurations that can disable the BEGIN_/END_HTML block exporting? Thanks, Yujie
[O] How to convert a string to Org parsed tree
Hi, I am working on the org-reveal exporter and I need to convert a string get from org-element-property into HTML format. The property string have some Org-mode markups that need to be converted to relevant HTML labels. For example, a string of /italic/ to iitalic/i Is there any existing Org-mode functions can help me to achieve this kind of functionality? Regards, Yujie
Re: [O] How to convert a string to Org parsed tree
Hi, Robert, Nicolas and Eric, Thanks to all of you for the kind answers. org-export-data-with-backend and org-element-parse-secondary-string best meet my requirements. They worked just as I expected. Thanks again. Regards, Yujie 2013/7/28 Eric Abrahamsen e...@ericabrahamsen.net Yujie Wen yjwen...@gmail.com writes: Hi, I am working on the org-reveal exporter and I need to convert a string get from org-element-property into HTML format. The property string have some Org-mode markups that need to be converted to relevant HTML labels. For example, a string of /italic/ to i italic/i Is there any existing Org-mode functions can help me to achieve this kind of functionality? Regards, Yujie Try out `org-export-string-as', that will probably do what you want... E
Re: [O] [Patch] ob-ditaa.el for Cygwin
Hi, Achim Thanks for your suggestion. Yes, a wrapper script will also work. I will use such a script if Org doesn't consider the Cygwin issue. Regards, Yujie 2013/7/16 Achim Gratz strom...@nexgo.de Yujie Wen writes: Could someone please take a look and, if it is satisfactory, please help to apply it? You're missing a Changelog and emacs-p might better be called cygwin-p. More to the point: I don't think Org should care about such system idiosyncrasies at all. Instead you might use a wrapper script for Cygwin that converts the arguments and then calls the native Windows java executable. I am used to Orgmode under Cygwin and sometimes uses ditaa for drawing diagrams. But without this patch, I have to switch to Windows native Emacs for calling ditaa. If there's anything to do on the Org side then removing the still hardcoded call of java. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] [Patch] ob-ditaa.el for Cygwin
Hi, I re-created the patch file by the instruction on How to contribute to Org. Could someone please take a look and, if it is satisfactory, please help to apply it? I am used to Orgmode under Cygwin and sometimes uses ditaa for drawing diagrams. But without this patch, I have to switch to Windows native Emacs for calling ditaa. Many thanks Regards, Yujie 2013/7/12 Jambunathan K kjambunat...@gmail.com Sorry. 0001-ditaa-for-cygwin-with-Windows-native-Java-VM.patch Description: Binary data
[O] [Patch] ob-ditaa.el for Cygwin
Hi, ob-ditaa.el calls Java VM to generate pictures. Unfortunately, Cygwin doesn't have native Java VM. In order to call the Windows native Java VM properly, all Cygwin paths pointing to ditaa.jar, the temporary input file and the output picture file must be changed to Windows native paths, for example, /home/yujie/ditaa.jar to d:/cygwin/home/yujie/ditaa.jar. Here is a patch that detect whether current Emacs is of Cygwin version and, if so, add `cygpath -w ` to wrap all related pathes. Regards, Yujie cygwin.patch Description: Binary data
Re: [O] How to remove spaces for soft line-breaks
Hi, Christian, 2013/7/9 Christian Wittern cwitt...@gmail.com Hi Bastien, Yujie On 2013-07-08 17:22, Bastien wrote: Hi Yujie, Yujie Wen yjwen...@gmail.com writes: I am wondering whether there is a way to forbid such spaces, or if no such a way, whether it is possible to work out a patch to forbid it. I would try M-x visual-line-mode RET and see if you like it. Well, this will not solve the problem for the OP, which occurs during export. What has to be done, I think, is to remove the CR/LF characters for Chinese (and Japanese, Korean etc.) text when exporting to HTML, because they will otherwise show up in the displayed HTML as single space characters. I used to thinking of removing CR/LF at the parsing or exporting stage. But now I think it is not a perfect solution since it will remove by mistake some meaningful spaces. For example, in an English/Chinese mixed texts whereas lines are sometimes broken at between two English words, which is often the case when we fill graphs with m-q. Discerning meaningful and meaningless spaces for Chinese and Japanese is rather too complicated a topic. Chinese rarely use spaces for separating words, Japanese sometimes use spaces for separating syntax elements. Korean, by my instinct at staring on Korean scripts, does use spaces to separate words. I guess, this requires either a derived custom export engine or a internationalization framework that allows the specification of the text language. Christian -- Christian Wittern, Kyoto Regards, Yujie
[O] How to define the one-line export-block for certain exporter backend?
Hi, I learned from ox-html.el that the #+BEGIN_HTML #+END_HTML block can be associated with a function by the :export-block argument in org-export-define-backend. But it seems doesn't apply to the #+HTML: block. Could someone tell me how to define a one-line export-block for specific exporter, like #+HTML: does for ox-html.el? Regards, Yujie
Re: [O] Export Org-mode content to Reveal.js presentations
Hi, Vikas, Do you mind give me a sample Org file to reproduce your problem, so that I can find a suitable solution for unicode contents? Regards, Yujie 2013/5/16 Vikas Rawal vikasli...@agrarianresearch.org I've just updated the codes. Now org-reveal generates HTML of UTF-8 encoding, as the HTML exporter does. Updated ox-reveal.el but I still seem to need to tell the browser to use unicode encoding. Vikas
Re: [O] Export Org-mode content to Reveal.js presentations
Hi, Julian, It seems the URL is wrong. Please see my comments below. Let me know if there is still problem. Regards, Yujie 2013/5/15 Julian M. Burgos jul...@hafro.is Hi Yujie, Thanks for the exporter! I am still a bit confused though (seems my natural state). Let say I downloaded reveal.js and placed it on my home directory (I am using Linux), so that the path to reveal.js is the following: /home/julian/.reveal/js/reveal.js so then I should add to my .emacs file (setq org-reveal-root file:home/julian/.reveal/js/reveal.js) It should be three slashes ('/'), not four. Please try: (setq org-reveal-root file:///home/julian/.reveal/js/reveal.js) and with this I should be able to do C-c C-e R R and export to reveal, regardless of the location of the org file, right? But it is not working, so obviously I am doing something wrong. I get a regular HTML file instead. Any ideas? Many thanks, Julian Yujie Wen writes: Hi, Gary, You are right. For absolute path to reveal.js, the org-reveal-root should be set in URL form, file:///path_to_reveal.js. I will update the document to make it clear. Thanks for your suggestion. Regards, Yujie 2013/5/15 Gary Oberbrunner ga...@oberbrunner.com Just want to say I just set this up, and it's great! Easy to work with, and my first org-mode presentation was live in under 10 min. One minor nit: on my Windows machine, I had to set org-reveal-root to a file:/// URL, not a filesystem path. Otherwise the presentation wouldn't load. On Thu, May 9, 2013 at 4:42 PM, Simon Thum simon.t...@gmx.de wrote: Hi Yujie, thanks for your great work! I just have had my first important reveal.js presentation, and wished I had an org-mode exporter while I was hand-coding the presentation. Next time It'll be easier no doubt. Cheers, Simon On 05/03/2013 02:48 PM, Yujie Wen wrote: Hi, I'd like to introduce a new Org-Mode exporter, Org-reveal, that exports Org-mode contents to Reveaj.js presentations. Reveal.js is a web-based presentation framework, with beautiful 3-D effects and 2-D slides arrangements. The original sample illustration can be found at http://lab.hakim.se/reveal-js/**#/ http://lab.hakim.se/reveal-js/#/ . With Org-reveal, you can easily exports your Org documents to Reveal.js presentations. A sample presentation created by Org-reveal can be found at http://naga-eda.org/home/**yujie/org-reveal/ http://naga-eda.org/home/yujie/org-reveal/ . Org-reveal is hosted on https://github.com/yjwen/org-**reveal https://github.com/yjwen/org-reveal. Should you have any suggestion or bug-report, please contact me yjwen.ty AT gmail DOT com. Thanks and regards, Yujie -- Gary -- Julian Mariano Burgos, PhD Hafrannsóknastofnunin/Marine Research Institute Skúlagata 4, 121 Reykjavík, Iceland Sími/Telephone : +354-5752037 Bréfsími/Telefax: +354-5752001 Netfang/Email: jul...@hafro.is
Re: [O] Export Org-mode content to Reveal.js presentations
Hi, Vikas, It is a limitation of org-reveal, I will take a look at the unicode issue. For a temporary workaround, you can try changing the character coding on your browser. Say, for firefox, it is menu View - Character Encoding, for IE, it is menu View - Encoding. Regards, Yujie 2013/5/16 Vikas Rawal vikasli...@agrarianresearch.org I'd like to introduce a new Org-Mode exporter, Org-reveal, that exports Org-mode contents to Reveaj.js presentations. Thanks. I was trying to use it for a presentation that has unicode characters. Unicode characters do not come out okay. Is this a limitation of reveal.js, org-reveal or my setup. Parts of the file without unicode characters show up fine, but unicode characters show up as gibberish. Unicode characters show up fine in a normal html export. Vikas
Re: [O] Export Org-mode content to Reveal.js presentations
Hi, Vikas, I've just updated the codes. Now org-reveal generates HTML of UTF-8 encoding, as the HTML exporter does. You can try with the latest codes. Regards, Yujie 2013/5/16 Vikas Rawal vikasli...@agrarianresearch.org It is a limitation of org-reveal, I will take a look at the unicode issue. Thanks. For a temporary workaround, you can try changing the character coding on your browser. Say, for firefox, it is menu View - Character Encoding, for IE, it is menu View - Encoding. That works for now. Thanks again, Vikas
Re: [O] Export Org-mode content to Reveal.js presentations
Hi, Gary, You are right. For absolute path to reveal.js, the org-reveal-root should be set in URL form, file:///path_to_reveal.js. I will update the document to make it clear. Thanks for your suggestion. Regards, Yujie 2013/5/15 Gary Oberbrunner ga...@oberbrunner.com Just want to say I just set this up, and it's great! Easy to work with, and my first org-mode presentation was live in under 10 min. One minor nit: on my Windows machine, I had to set org-reveal-root to a file:/// URL, not a filesystem path. Otherwise the presentation wouldn't load. On Thu, May 9, 2013 at 4:42 PM, Simon Thum simon.t...@gmx.de wrote: Hi Yujie, thanks for your great work! I just have had my first important reveal.js presentation, and wished I had an org-mode exporter while I was hand-coding the presentation. Next time It'll be easier no doubt. Cheers, Simon On 05/03/2013 02:48 PM, Yujie Wen wrote: Hi, I'd like to introduce a new Org-Mode exporter, Org-reveal, that exports Org-mode contents to Reveaj.js presentations. Reveal.js is a web-based presentation framework, with beautiful 3-D effects and 2-D slides arrangements. The original sample illustration can be found at http://lab.hakim.se/reveal-js/**#/http://lab.hakim.se/reveal-js/#/ . With Org-reveal, you can easily exports your Org documents to Reveal.js presentations. A sample presentation created by Org-reveal can be found at http://naga-eda.org/home/**yujie/org-reveal/http://naga-eda.org/home/yujie/org-reveal/ . Org-reveal is hosted on https://github.com/yjwen/org-**revealhttps://github.com/yjwen/org-reveal. Should you have any suggestion or bug-report, please contact me yjwen.ty AT gmail DOT com. Thanks and regards, Yujie -- Gary
Re: [O] Export Org-mode content to Reveal.js presentations
Hi, Rasmus, 2013/5/6 Carsten Dominik carsten.domi...@gmail.com On 6 mei 2013, at 10:36, Rasmus ras...@gmx.us wrote: Hi Yujie, Org-Reveal is now updated for displaying MathJax, as the HTML exporter does, except that the MathJax.org server is used instead of Orgmode.org server. Out of curiosity: why? I see that Mathjax now recommends use of its server. When we started using MathJax, they asked users to install their own versions, probably to limit server load on their side. But since they now recommend using their server network - maybe Org should use this by default? - Carsten Yes, as explained by Carsten, MathJax encourage using their server, while Org discourage using theirs. so I switched to MathJax server. --yujie Please check the updated sample illustration: http://naga-eda.org/home/yujie/org-reveal/#/4/4 That's so cool! I want to write a presentation now, but unfortunately I haven't got anything to present at the moment. I like this engine as lot 'cause of its battery included-ness. E.g. it just 'looks nice' and has the cool dimensional properties that Eric mentioned. Thanks again for this, it looks great! Hope you enjoy it :) -yujie –Rasmus -- m-mm-mmm- bacon!
Re: [O] Export Org-mode content to Reveal.js presentations
Hi, Rasmus, Org-Reveal is now updated for displaying MathJax, as the HTML exporter does, except that the MathJax.org server is used instead of Orgmode.org server. Please check the updated sample illustration: http://naga-eda.org/home/yujie/org-reveal/#/4/4 :) 2013/5/3 Rasmus ras...@gmx.us Yujie Wen yjwen...@gmail.com writes: Hi, I'd like to introduce a new Org-Mode exporter, Org-reveal, that exports Org-mode contents to Reveaj.js presentations. Reveal.js is a web-based presentation framework, with beautiful 3-D effects and 2-D slides arrangements. The original sample illustration can be found at http://lab.hakim.se/reveal-js/#/. With Org-reveal, you can easily exports your Org documents to Reveal.js presentations. A sample presentation created by Org-reveal can be found at http://naga-eda.org/home/yujie/org-reveal/. Org-reveal is hosted on https://github.com/yjwen/org-reveal. Should you have any suggestion or bug-report, please contact me yjwen.ty AT gmail DOT com. Both sets of slides look amazing! Thanks for proving this exporter. Will you distribute it via org-contrib or org eventually? One (lazy) question: does it support MathJax as standard Org HTML? Again, thanks! –Rasmus -- Enough with the bla bla!
Re: [O] Export Org-mode content to Reveal.js presentations
Hi, Eric, The same feeling of me, so I wrote an exporter for Reveal.js. Hope you can enjoy it. Thanks Yujie 2013/5/4 Eric S Fraga e.fr...@ucl.ac.uk Yujie Wen yjwen...@gmail.com writes: Hi, I'd like to introduce a new Org-Mode exporter, Org-reveal, that exports Org-mode contents to Reveaj.js presentations. This looks really interesting. So many choices, so little time... :( I really like the ability to see the zoomed out view of the set of slides as well as the L/R and U/D paradigm. I can see using the latter to have detail that may be missed in a short talk but included in a longer version of the same talk. Thanks, eric -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_8.0.2-68-g40635b
[O] Export Org-mode content to Reveal.js presentations
Hi, I'd like to introduce a new Org-Mode exporter, Org-reveal, that exports Org-mode contents to Reveaj.js presentations. Reveal.js is a web-based presentation framework, with beautiful 3-D effects and 2-D slides arrangements. The original sample illustration can be found at http://lab.hakim.se/reveal-js/#/. With Org-reveal, you can easily exports your Org documents to Reveal.js presentations. A sample presentation created by Org-reveal can be found at http://naga-eda.org/home/yujie/org-reveal/. Org-reveal is hosted on https://github.com/yjwen/org-reveal. Should you have any suggestion or bug-report, please contact me yjwen.ty AT gmail DOT com. Thanks and regards, Yujie