[Orgmode] Latex Export
Hi, I'm using emacs version 22.2.1 on a Fedora Core 9 machine. I'm new to org-mode and am interested in using it to write LaTeX documents/Beamer presentations. When I load the export dispatcher with Cc Ce, however, I do not have the "l" option for LaTeX export; I only have the following: [t] insert the export option template [v] limit export to visible part of outline tree [a] export as ASCII [h] export as HTML [b] export as HTML and browse immediately [x] export as XOXO [i] export current file as iCalendar file [I] export all agenda files as iCalendar files [c] export agenda files into combined iCalendar file [F] publish current file [P] publish current project [X] publish... (project will be prompted for) [A] publish all projects Is there something that I need to turn on in my .emacs file or an additional module that needs to be installed to have access to the LaTeX exporter? Chris ___ 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
Re: Re: [Orgmode] Latex Export
Hi Nick, It does not export anything. The message window displays: "No command associated with key l" Chris On Oct 16, 2010 1:54pm, Nick Dokos wrote: chris.m.mal...@gmail.com wrote: > Hi, > > I'm using emacs version 22.2.1 on a Fedora Core 9 machine. I'm new to org-mode and am interested in using it to write LaTeX documents/Beamer > presentations. When I load the export dispatcher with Cc Ce, however, I do not have the "l" option for LaTeX export; I only have the following: > > [t] insert the export option template > [v] limit export to visible part of outline tree > > [a] export as ASCII > [h] export as HTML > [b] export as HTML and browse immediately > [x] export as XOXO > > [i] export current file as iCalendar file > [I] export all agenda files as iCalendar files > [c] export agenda files into combined iCalendar file > > [F] publish current file > [P] publish current project > [X] publish... (project will be prompted for) > [A] publish all projects > > Is there something that I need to turn on in my .emacs file or an additional module that needs to be installed to have access to the LaTeX exporter? > Not that I know of. What happens if you press l in any case? If it does export to latex then it would seem to be some sort of display problem perhaps (lots of weasel words here but I can't help it). If there is some error, then post the error. Nick ___ 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
Re: Re: [Orgmode] Latex Export
Hi Thomas, This may be as it is the version that comes with Emacs 22.2.1 - is there an easy way to check the org-mode version? Chris On Oct 16, 2010 2:40pm, "Thomas S. Dye" wrote: Aloha Chris, Perhaps you have an older version of org-mode? All the best, Tom On Oct 16, 2010, at 8:10 AM, chris.m.mal...@gmail.com wrote: Hi Nick, It does not export anything. The message window displays: "No command associated with key l" Chris On Oct 16, 2010 1:54pm, Nick Dokos nicholas.do...@hp.com> wrote: > chris.m.mal...@gmail.com wrote: > > > > > Hi, > > > > > > I'm using emacs version 22.2.1 on a Fedora Core 9 machine. I'm new to org-mode and am interested in using it to write LaTeX documents/Beamer > > > presentations. When I load the export dispatcher with Cc Ce, however, I do not have the "l" option for LaTeX export; I only have the following: > > > > > > [t] insert the export option template > > > [v] limit export to visible part of outline tree > > > > > > [a] export as ASCII > > > [h] export as HTML > > > [b] export as HTML and browse immediately > > > [x] export as XOXO > > > > > > [i] export current file as iCalendar file > > > [I] export all agenda files as iCalendar files > > > [c] export agenda files into combined iCalendar file > > > > > > [F] publish current file > > > [P] publish current project > > > [X] publish... (project will be prompted for) > > > [A] publish all projects > > > > > > Is there something that I need to turn on in my .emacs file or an additional module that needs to be installed to have access to the LaTeX exporter? > > > > > > > Not that I know of. What happens if you press l in any case? If it does export > > to latex then it would seem to be some sort of display problem perhaps (lots > > of weasel words here but I can't help it). If there is some error, then post > > the error. > > > > Nick >___ 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 ___ 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
Re: Re: Re: [Orgmode] Latex Export
Sorry, I just checked the version: 4.67c Chris On Oct 16, 2010 2:48pm, chris.m.mal...@gmail.com wrote: Hi Thomas, This may be as it is the version that comes with Emacs 22.2.1 - is there an easy way to check the org-mode version? Chris On Oct 16, 2010 2:40pm, "Thomas S. Dye" t...@tsdye.com> wrote: > Aloha Chris, > > > > Perhaps you have an older version of org-mode? > > > > All the best, > > Tom > > > > On Oct 16, 2010, at 8:10 AM, chris.m.mal...@gmail.com wrote: > > > > > Hi Nick, > > > > It does not export anything. The message window displays: "No command associated with key l" > > > > Chris > > > > On Oct 16, 2010 1:54pm, Nick Dokos nicholas.do...@hp.com> wrote: > > > chris.m.mal...@gmail.com wrote: > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > I'm using emacs version 22.2.1 on a Fedora Core 9 machine. I'm new to org-mode and am interested in using it to write LaTeX documents/Beamer > > > > > > > presentations. When I load the export dispatcher with Cc Ce, however, I do not have the "l" option for LaTeX export; I only have the following: > > > > > > > > > > > > > > [t] insert the export option template > > > > > > > [v] limit export to visible part of outline tree > > > > > > > > > > > > > > [a] export as ASCII > > > > > > > [h] export as HTML > > > > > > > [b] export as HTML and browse immediately > > > > > > > [x] export as XOXO > > > > > > > > > > > > > > [i] export current file as iCalendar file > > > > > > > [I] export all agenda files as iCalendar files > > > > > > > [c] export agenda files into combined iCalendar file > > > > > > > > > > > > > > [F] publish current file > > > > > > > [P] publish current project > > > > > > > [X] publish... (project will be prompted for) > > > > > > > [A] publish all projects > > > > > > > > > > > > > > Is there something that I need to turn on in my .emacs file or an additional module that needs to be installed to have access to the LaTeX exporter? > > > > > > > > > > > > > > > > > > > Not that I know of. What happens if you press l in any case? If it does export > > > > > > to latex then it would seem to be some sort of display problem perhaps (lots > > > > > > of weasel words here but I can't help it). If there is some error, then post > > > > > > the error. > > > > > > > > > > > > Nick > > >___ > > 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 > > > > ___ 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
Re: Re: Re: Re: [Orgmode] Latex Export
Which seems old...I'll try and update it. Thanks for the help. Chris On Oct 16, 2010 2:51pm, chris.m.mal...@gmail.com wrote: Sorry, I just checked the version: 4.67c Chris On Oct 16, 2010 2:48pm, chris.m.mal...@gmail.com wrote: > Hi Thomas, > > This may be as it is the version that comes with Emacs 22.2.1 - is there an easy way to check the org-mode version? > > Chris > > On Oct 16, 2010 2:40pm, "Thomas S. Dye" t...@tsdye.com> wrote: > > Aloha Chris, > > > > > > > > Perhaps you have an older version of org-mode? > > > > > > > > All the best, > > > > Tom > > > > > > > > On Oct 16, 2010, at 8:10 AM, chris.m.mal...@gmail.com wrote: > > > > > > > > > > Hi Nick, > > > > > > > > It does not export anything. The message window displays: "No command associated with key l" > > > > > > > > Chris > > > > > > > > On Oct 16, 2010 1:54pm, Nick Dokos nicholas.do...@hp.com> wrote: > > > > > chris.m.mal...@gmail.com wrote: > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > I'm using emacs version 22.2.1 on a Fedora Core 9 machine. I'm new to org-mode and am interested in using it to write LaTeX documents/Beamer > > > > > > > > > > > presentations. When I load the export dispatcher with Cc Ce, however, I do not have the "l" option for LaTeX export; I only have the following: > > > > > > > > > > > > > > > > > > > > > > [t] insert the export option template > > > > > > > > > > > [v] limit export to visible part of outline tree > > > > > > > > > > > > > > > > > > > > > > [a] export as ASCII > > > > > > > > > > > [h] export as HTML > > > > > > > > > > > [b] export as HTML and browse immediately > > > > > > > > > > > [x] export as XOXO > > > > > > > > > > > > > > > > > > > > > > [i] export current file as iCalendar file > > > > > > > > > > > [I] export all agenda files as iCalendar files > > > > > > > > > > > [c] export agenda files into combined iCalendar file > > > > > > > > > > > > > > > > > > > > > > [F] publish current file > > > > > > > > > > > [P] publish current project > > > > > > > > > > > [X] publish... (project will be prompted for) > > > > > > > > > > > [A] publish all projects > > > > > > > > > > > > > > > > > > > > > > Is there something that I need to turn on in my .emacs file or an additional module that needs to be installed to have access to the LaTeX exporter? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Not that I know of. What happens if you press l in any case? If it does export > > > > > > > > > > to latex then it would seem to be some sort of display problem perhaps (lots > > > > > > > > > > of weasel words here but I can't help it). If there is some error, then post > > > > > > > > > > the error. > > > > > > > > > > > > > > > > > > > > Nick > > > > >___ > > > > 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 > > > > > > > > ___ 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
[Orgmode] org-export-latex-classes issue
Hi, I'ma n00b to Lisp and org-mode so please forgive me if the answer is obvious. I'm using version 7.01h of org-mode. I'm trying to set up a custom Latex class to use for preparing a document. Some Google searching showed that I need to add this class to the org-export-latex-classes symbol. I tried to do this in my .emacs file, for example following what is listed at http://orgmode.org/worg/org-tutorials/org-latex-export.php by adding the following to my .emacs file: (add-to-list 'org-export-latex-classes '("article" "\\documentclass{article}" ("\\section{%s}" . "\\section*{%s}"))) I know that org-export-latex-default-class is already set to "article" but this example already shows that something is wrong. When I load emacs the debugger complains that org-export-latex-classes is an empty list: Debugger entered--Lisp error: (void-variable org-export-latex-classes) add-to-list(org-export-latex-classes ("article" "\\documentclass{article}" ("$ eval-buffer(# nil "/home/cmalone/.emacs" nil t) ; Reading at$ load-with-code-conversion("/home/cmalone/.emacs" "/home/cmalone/.emacs" tt) load("~/.emacs" tt) #[nil "^H\205\276^@ \306=\203...@\307^h\310q\202a^@ \311=\20...@\312\307\31$ command-line() normal-top-level() As far as I can tell, org-export-latex-classes is set to nil in org-latex.el, but this isn't loaded until the export dispatcher calls org-export-as-latex. Is this correct? Coincidentally, if I export to latex, the appropriate .tex file is created without issue. My original goal was to setup a custom Latex class - I have tried in the same manner as that used above for the "article" class and the debugger produces the same result. However, when I attempt to export to latex I get the error that my custom class isn't in the org-export-latex-classes list, presumably because of the failure in loading the .emacs file. Any advice? Chris ___ 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
Re: [Orgmode] Tilde in URL not exported to latex
Hi Stephen, I recently experienced this issue while adding a reference in a beamer presentation using org-mode. It isn't elegant, but my workaround was to use \sim instead of the tilde character, at least for what is actually displayed in the document - you will still need to use tilde for the actual URL link. Chris On Oct 20, 2010 3:02pm, Stephen Eglen wrote: With the following file (a.tex): * Intro This is an example file that I would like to export Note that the URL has a tilde in it. http://www.stat.uni-muenchen.de/~leisch/Sweave/FAQ.html When I do "Cc Ce d" in this buffer, the latex -> pdf exporter displays a pdf, but I see that the tilde in the URL appears above the following character (l). If I click on the link it works just fine and takes me to the page. In the tex file, I see it has been exported as: \href{http://www.stat.uni-muenchen.de/~leisch/Sweave/FAQ.html} {http://www.stat.uni-muenchen.de/\~leisch/Sweave/FAQ.html} (my line breaking added). Is the above expected behaviour? Do I have to mark up my URLs differently? Org mode recognises it as a url, judging by the font locking. I often use url to format URLs, ie this works just fine: \url{http://www.stat.uni-muenchen.de/~leisch/Sweave/FAQ.html} Thanks, Stephen ___ 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 ___ 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
[Orgmode] mailto links broken in HTML export
Hi, I'm trying to use org-mode to export to HTML with the inclusion of some email addresses. For example, I have something like - please send an email to ([[mailto:some...@someplace][someone@someplace]]) but upon export this gets mangled into thinking it is a "file:" directive because the HTML looks like: - please send an email to (href="some...@someplace">some...@someplace) In other words, the "mailto:"; gets dropped in the export. I'm currently using org-mode version 7.01h with GNU Emacs 22.2.1. This issue is similar to the post found here: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg29376.html but to be honest I didn't fully understand how the problem was fixed in the patch. Chris ___ 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
[Orgmode] TYPO in manual for =:noweb= header argument
Hi, In section 14.8.2.10 of the online manual [[ http://orgmode.org/manual/noweb.html#noweb ] [here]] the third item in the list should begin with =tangle= instead of =yes=. Chris ___ 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
Re: Re: [Orgmode] Worg down?
I had the same problem, but it appears fixed now. On Dec 12, 2010 8:02pm, Nick Dokos wrote: Jeff Horn jrhorn...@gmail.com> wrote: > Going to worg at 19:50 EST produced an "internal server error" from > two machines on my network. > Same thing here. Nick > The "is it just me" site says it is, in fact, just me, but it only > tests the domain, not any subdirectories. > > Jeff > ___ 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 ___ 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
Re: Re: [Orgmode] Re: A python module for orgmode files
On Dec 14, 2010 8:47am, Rainer M Krug wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/14/2010 02:34 PM, Jonathan BISSON wrote: > Jeff Horn gmail.com> writes: > >> I think what Chris was referring to is the fact that you can write >> literate programs using org-mode and org-babel. You can mix >> documentation and code, and then run some nifty functions that >> separate them out. The advantage, of course, is that your source is >> self-documenting. >> > Yes, but an org file with babel is not python native. So I needed for one > of my projects an orgmode translator that is totally python native. > org-babel is nice for orgfiles doing computations but not for software > development. What about tangling? When you tangle your org file, you get a source file for that language. Tangling is what I had in mind for my comment. It seems like an easy way to have literate programming... Chris ___ 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
Re: Re: [Orgmode] [BEAMER] make text fit in a slide
Hi Andrea, I stand corrected - you are getting a lot of useful information here! :-) Chris On Jan 20, 2011 4:21am, Eric S Fraga wrote: iem...@gmail.com writes: > Hi Andrea, > > I use the following line to allow frame breaks > > #+BIND: org-beamer-frame-default-options "[allowframebreaks]" and, on a slide per slide basis, you can set options using the BEAMER_envargs property (easiest to do using column view if you have defined columns as per the tutorial on Worg, for instance). For example: --88--- *** A full slide :PROPERTIES: :BEAMER_envargs: [shrink] :END: Content here *** A very long slide :PROPERTIES: :BEAMER_envargs: [allowframebreaks] :END: Some more content here. --88--- -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.223.g71650) ___ 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 ___ 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
Re: [O] Org-mode as a replacement for LaTeX (was: Fwd: Exporting latex without preamble)
Hi Tom, I've seen many of the examples you've added to the mailing list and worg. I also enjoy using Org-mode for writing my own documents and webpages - currently I'm using it to write my Ph.D. dissertation. I'm curious how you work on Org-mode papers for publication with collaborators? In particular, do all of your collaborators know and use Org-mode themselves? Our current method is just to use ordinary LaTeX files in a CVS repository for collaboration. I think it would be difficult to get my collaborators to all use Org-mode - even though they all use emacs. Org-mode has quite a bit of a learning curve that they probably don't have the time or patience to learn currently. Chris On Jun 30, 2011 2:35am, "Thomas S. Dye" wrote: Aloha Karl, I agree that AucTeX is awesome. I use it every day at work with much pleasure. I've been using Org-mode with the goal of creating reproducible research, where the LaTeX output is just one part of the package. In my case, this is something that requires Org-mode for its ability to pass results between code blocks written in different languages. I can't do these things in AucTeX. At first, like you, I was suspicious of adding a layer between me and LaTeX. I was impatient with figuring out how to make the little things work right. I'm still not able to control LaTeX as finely as I'd like from within Org-mode, but I've managed to close the gap sufficiently that my last four publications were authored completely with Org-mode. The one I'm working on now is Org-mode, too. I'm really liking it as an authoring environment. All the best, Tom Karl Voit writes: > * Thomas S. Dye t...@tsdye.com> wrote: >> Aloha Rafael, > > Sorry, I thought you might as well be interested in my point of > view. > > First: I am pretty new to Org-mode but I am using LaTeX a while now > and I am even teaching LaTeX to motivated beginners. > >> Is there a reason not to have everything in one .org file? I find >> Org-mode's ability to fold on headlines and to edit subtrees in indirect >> buffers very convenient, even for long documents. For my work, that >> functionality has replaced LaTeX \include files. > > I did not follow the thread here but I do think I get the idea that > you want to replace LaTeX with Org-mode and generate a PDF via > LaTeX/PDF-export functionality of Org-mode. > > On the one hand, I do agree that (simple) PDF documents are written > very easily with Org-mode. But on the other hand you are going to > add just another layer. This means that you probably end up wanting > this LaTeX feature in Org-mode, that other handy LaTeX feature too > and so forth. > > In my point of view, if you leave the basic stuff, you should stick > to LaTeX. And I do have good news to you: You are very fortune > because Emacs does have the IMHO most advanced editor support for > LaTeX: AucTeX (with all of its extensions like preview-latex and > RefTeX). > > I plan to use Org-mode as an outline tool for larger documents, > where the basic structure evolves, keywords are moved from one part > to the other. But before I start to write the detailed document > content, I move to AucTeX, having the great possibilities for > writing documents that end up being great PDFs. > > But this is just my point of view. -- Thomas S. Dye http://www.tsdye.com
[O] Org-mode Standardized Code Block Keywords
I've invited you to be an owner of the Google Moderator series "Org-mode Standardized Code Block Keywords". You can view and edit this series at http://www.google.com/moderator/#16/e=ffe1e
Re: Re: [Orgmode] Two questions about using a =#+begin_src emacs-lisp= block
On Feb 22, 2011 1:06pm, Eric Schulte wrote: Chris Malone chris.m.mal...@gmail.com> writes: > Ok, this is still perplexing me, as I have a new version from git and I > still get the error. The following is complete list (sorry for the long > email!) of what I have done: > > * Get a fresh copy of =org-mode= from git and byte-compile: > > #+begin_src: sh > cd ~/install/org-mode > mkdir new_git_clone > cd new_git_clone > git clone git://orgmode.org/org-mode.git > cd org-mode; make &> make.out > ln -s ~/install/org-mode/new_git_clone/org-mode ~/install/org-mode/current > #+end_src > if you are worried that you don't have the correct version of Org-mode installed you can check the output of the `org-version' function. Mine reads "Org-mode version 7.4 (release_7.4.510.g1e35)" RIght - I was worried that I had possibly changed a lisp file that could be causing the error, so I wanted a fresh copy. > > During the =make= process, I noticed quite a few warnings. An example is > below (for a complete copy of =make.out=, see > http://astro.sunysb.edu/cmalone/nolink/make.out [...] > Are such warnings normal? > yes, these are normal compiler warnings which are generally cleaned up before releases but shouldn't have any negative impact on the behavior of Org-mode Ok, good to know. > > * Make sure my =.emacs= file is pointing to the correct location > Here is a copy of the =org-mode=-relevant sections of my =.emacs= file: > [...] > > * Attempt an export of the =org-mode= file found here: > http://astro.sunysb.edu/cmalone/nolink/python_class_lstings.org > One thing to note here, is that for your emacs-lisp block to work on export, you need to change this #+begin_src emacs-lisp :exports both (buffer-file-name) #+end_src to this #+begin_src emacs-lisp :var file-name=(buffer-file-name) :exports both file-name #+end_src because only header arguments are guaranteed to be evaluated in the original org-mode buffer during export. Again, thanks for pointing this out earlier. I hadn't changed it for the example, because the error was not associated with whether or not the actual =emacs-lisp= code returned anything meaningful. That said I was able to export your example file (without the change above) to html. When exporting to latex I ran into an issue, the problem here is that the LaTeX exporter *requires* at least one headline. It explicitly export the pre-first-headline and post-first-headline portions of the Org-mode buffer separately. When there is no headline, and the buffer contains code blocks, then they are exported *twice*, which causes the error you mentioned, because after the first pass of the code-block export, the results in the file are not valid for another pass of the exporter. If you place a "* " before the "Let's start this..." line, then the errors should disappear. Hope this helps. Best -- Eric That fixed it! Sorry for the trouble for something that seems so minor! Thanks again. Chris ___ 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
Re: Re: [Orgmode] Beamer export questions/suggestions
Hi Eric, Thanks for that useful bit of info! Chris On Feb 23, 2011 11:47am, Eric S Fraga wrote: Chris Malone chris.m.mal...@gmail.com> writes: > Hi Derek, > > Re your first question: > > One simple, albeit somewhat hackish way of achieving this would be to > utilize =org-mode='s #+begin_beamer ... #+end_beamer syntax with =beamer='s > frame option =plain= For example: You don't need to do this. You can pass options to frames using the BEAMER_envargs property: #+begin_src org ** A plain slide :PROPERTIES: :BEAMER_envargs: [plain] :END: - a list - with few entries - but more than I thought #+end_src I use this all the time for options such as shrink and allowframebreaks. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.528.gd457) ___ 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
Re: Re: [O] Illiterate programming question
You could probably hack something up with a shell source code block that uses sed to find and display text between two delimiters, and then dump the results to the org-mode file. On Mar 30, 2011 5:44pm, Robert Goldman wrote: On 3/30/11 Mar 30 -4:33 PM, Nick Dokos wrote: > Robert Goldman rpgold...@sift.info> wrote: > >> I would like to do the opposite of literate programming (hence the >> subject line!): >> >> I would like to pull into my org file snippets from a code file. I know >> that org-mode will let me import /entire/ source code files. Is there >> some way to say "Import the region of this file between these two >> delimiters?" >> >> If not, do you think it would be hard to add this feature? I already >> have the snappy name, after all! >> > > I don't really understand: can't you cut and paste? Yes, but if I cut and paste the text of the code that I am describing may change out from under my text. If I import the code, it stays in sync (at least when the document is exported). Honestly, I was tempted to do the literate programming thing with babel, but was concerned that it might not work well as a multiple-author thing (I would be writing the document, but someone else might be modifying the code and might find org-babel confusing). > > And what do you mean that "org-mode will let me import /entire/ source code > files"? Is this a facility other than insert-file? Or are you talking about > the #+INCLUDE mechanism? Yes, I was talking about #+INCLUDE. I was really wondering if there mightn't be something like #+INCLUDE ~/myfile.lisp :from "(defun sample-function" :to "; end sample-function" [sorry --- that's word-wrapped to further obscurity.] cheers, r
Re: [O] Collapse LaTeX source before start of main document?
Hi Suvayu, I think Matt's lisp code /should/ work for doing exactly what we are talking about, but for some reason I can't get it to work with LaTeX export. Anyway, good luck on your defense! Chris On May 5, 2011 1:37pm, Suvayu Ali wrote: Hello Chris, Sorry for the delay, had to attend a meeting. On Thu, 5 May 2011 11:37:41 -0400 Chris Malone chris.m.mal...@gmail.com> wrote: > Hi Suvayu, > > Thanks for sharing your use case - I'm interested in a few more > details: > > > For example for my appendix and bibliography I use the following: > > > > #+INCLUDE: thesis-appendix.org :minlevel 1 [...] > > Would this #+INCLUDE line come within the last chapter headline? In > other words did you have something like > > #+INCLUDE: frontmatter.org > * Chapter 1 > > * Chapter 2 > ... > * Last Chapter > > #+INCLUDE: thesis-appendix.org :minlevel 1 > . > . > . > \bibliography{master} > > With this, it seems that all of the appendix/backmatter gets folded > into the last chapter heading. That is sort of the way I'm thinking > of working my thesis, but it seems sub-optimal. > Yes that is correct. It folds into the last chapter, and I too find this sub-optimal. If there was a way to specify certain headlines were "special" and needed to be exported according to the sub-tree properties, that would be ideal. Although I haven't looked into it, I'm afraid it would require some lisp intervention. That said, I just found a possible workaround. If you put the appendix and bibliography and friends under the Footnotes headline, it somewhat replicates the behaviour I would like to have. Something like this: * Footnotes [fn:1] footnote 1 [fn:2] footnote 2 #+INCLUDE: thesis-appendix.org :minlevel 1 #+LaTeX: \backmatter #+LaTeX: \newpage #+LaTeX: \addcontentsline{toc}{chapter}{\bibname} #+LaTeX: \bibliographystyle{plain} #+LaTeX: \bibliography{master} After my thesis defence I might actually get around to attempting to deal with this in lisp. Would be a good learning excercise. :) > Chris -- Suvayu Open source is the future. It sets us free.
Re: [O] How to highlight the LaTeX fragments inside orgmode
Hi Xin, I have the following line in my .emacs file: (setq org-confirm-babel-evaluate nil) This, I think, turns off asking for evaluation for all languages. Not sure if it can be done on a language specific basis or not. Chris On Jun 21, 2011 4:56pm, Xin Shi wrote: Thanks. Maybe it's just not working here. Also, I got this question every time: Evaluate this latex code block on your system? (y or n) Are there anyway to turn accept all? Xin On Tue, Jun 21, 2011 at 4:49 PM, Nick Dokos nicholas.do...@hp.com> wrote: Xin Shi shixin...@gmail.com> wrote: > > However, I noticed something else is broken with the ob-latex: > > The Cc Ce d (export to PDF and open the PDF file) is no longer working. Maybe a bug in 7.5? > Works fine here: Org-mode version 7.5 (baseline.324.ga0bc.dirty) Nick
Re: [O] [babel] using #+call for inline results
I have been following this thread with interest. When I export Eric's babelcall.org, the result of the octave calculation is =nil= in both cases. Is this the expected behaviour? I can confirm Nicolas' observations as well. Chris On Jun 23, 2011 9:49am, Nicolas Goaziou wrote: Hello, Eric S Fraga e.fr...@ucl.ac.uk> writes: > For completeness, I've attached a file which shows that it *can* work > but also that it confuses the export of lists (Nicolas?) if the inline > code is in a list item. I see no difference between the paragraph and the list item: in both cases, the table doesn't appear, as it has been moved right after the headline by `org-export-blocks-preprocess' during export. Are we observing the same phenomenon? Regards, -- Nicolas Goaziou