Re: [O] OSX to PDF: Minimal Install
Hi Nathan, As you've discovered, the PDF export option uses (pdf)LaTeX. There are several ports of LaTeX available, although I'm not sure which is the most minimal. If you are using some package manager like MacPorts or homebrew, you might check there for some LaTeX distribution, usually called tex-live. Another possible option would be to export to HTML and then use some additional software to convert HTML to PDF. I'm not sure how useful or pretty the results of this process will be, but it might be worth a shot if you don't want to use LaTeX. Chris On Nov 2, 2012, at 11:54 AM, Nathan Neff wrote: Hello, I'd like to convert org-mode documents to PDF using the exporter, on OSX, but it appears that I'd have to download MacTex which is a 2GB download. Is there anything smaller that I could download in order to be able to export org documents to PDF? Thanks, --Nate - Chris Malone (mal...@ucolick.org) Dept. of Astronomy and Astrophysics UC Santa Cruz 1156 High Street Santa Cruz, CA 95064-1077 phone: 831-459-3809 -
Re: [O] Cannot open load file: subst-ksc
IIRC type is considered a long option for find on OSX. Try using two dashes: --type Chris Sent from my iPad, so ignore any weird typos. On Aug 31, 2012, at 8:48 PM, t...@tsdye.com (Thomas S. Dye) wrote: Nick Dokos nicholas.do...@hp.com writes: Thomas S. Dye t...@tsdye.com wrote: Aloha all, Stumbling out of the gate here: bash-3.2$ git clone git://orgmode.org/org-mode.git Cloning into 'org-mode'... remote: Counting objects: 65748, done. remote: Compressing objects: 100% (13967/13967), done. remote: Total 65748 (delta 52088), reused 65145 (delta 51659) Receiving objects: 100% (65748/65748), 56.53 MiB | 793 KiB/s, done. Resolving deltas: 100% (52088/52088), done. bash-3.2$ cd org-mode make uncompiled == = Invoke make help for a synopsis of make targets. = = Created a default local.mk template. = = Setting oldorg as the default target.= = Please adapt local.mk to your local setup! = == Cannot open load file: subst-ksc make: [local.mk] Error 255 (ignored) make -C lisp clean rm -f org-version.el org-install.el org-version.elc org-install.elc rm -f *.elc make -C lisp autoloads rm -f org-version.el org-install.el org-version.elc org-install.elc org-version: 7.9 (release_7.9-176-g293933) Cannot open load file: subst-ksc make[1]: *** [org-version.el] Error 255 make: *** [autoloads] Error 2 bash-3.2$ ls Makefiledoc READMEetc README_DISTlisp README_GITmk README_maintainerrequest-assign-future.txt contribtesting I usually suspect user error, but I'm pretty certain I followed the instructions on Worg. Any help appreciated. Weird: I just cloned and did ``make uncompiled'' but I get no error: , | nick@alphaville:~/src/emacs/org/tmp/org-mode$ make uncompiled | == | = Invoke make help for a synopsis of make targets. = | = Created a default local.mk template. = | = Setting oldorg as the default target.= | = Please adapt local.mk to your local setup! = | == | Loading /home/nick/src/emacs/org/tmp/org-mode/lisp/org-compat.el (source)... | Loading /home/nick/src/emacs/org/tmp/org-mode/mk/org-fixup.el (source)... | Saving file /home/nick/src/emacs/org/tmp/org-mode/local.mk... | Loading vc-git... | Wrote /home/nick/src/emacs/org/tmp/org-mode/local.mk | make -C lisp clean | ... ` Can you do find -type f | xargs grep subst-ksc in the org-mode directory? I find no trace of such a beast in my tree (or indeed in emacs). Nick Apparently not on my Mac: bash-3.2$ find -type f | xargs grep subst-ksc find: illegal option -- t find: illegal option -- y find: illegal option -- p find: illegal option -- e find: f: No such file or directory However, bash-3.2$ find ./ -name subst-ksc doesn't find anything, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] understanding column groups
Hi Rustom, I think the issue is that you have missed assigning a column (the 3rd) to a group. Also, to simplify things, as stated no the link you gave, you can just specify the start of column groups. Something like the following should work as expected: * head | / |||| | some text | and some more | d e | fg | | | | | | Chris On Feb 16, 2012, at 9:27 AM, Rustom Mody wrote: I am trying to make (and understand!) column groups for html export According to http://orgmode.org/manual/Column-groups.html having a line starting / and then showing for group start and group end makes column groups. When I make and org file containing these 4 lines: * head | / | | | | | some text | and some more | d e | fg | | | | | | all that happens on export is that the / etc literally appear in the export! Is there something else I should study? Org-mode version 7.8.02 - Chris Malone (mal...@ucolick.org) Dept. of Astronomy and Astrophysics UC Santa Cruz 1156 High Street Santa Cruz, CA 95064-1077 phone: 831-459-3809 -
Re: [O] Gnuplot/babel issue with export to eps
Hi John, I'm not sure what Org mode is doing behind the scenes, but I suspect something is getting muddled because you specify both the src block file header /and/ the output terminal in the gnu plot code. Perhaps a simpler solution - if you indeed want Postscript images - would be to remove the =:file …= header argument and specify the =set output= within the gnuplot script itself? That should still generate the .eps file. Chris On Jan 5, 2012, at 3:54 PM, John Hendy wrote: I have the following gnuplot/babel block and for some reason the resultant .eps file comes up broken but a corresponding version of it gets converted to pdf somehow... what's going on? I stole an example just to check and make sure it wasn't my gnuplot code: http://t16web.lanl.gov/Kawano/gnuplot/intro/plotfunc-e.html - #+begin_src gnuplot :file export.eps :exports results reset set terminal postscript eps color enhanced 20 a=0.25 b=0.02 c=0.05 d=0.1 f(x)=c/((x-a)*(x-a)+b)+d/sqrt(x) set xrange [0:1] set yrange [0:4] plot f(x) #+end_src - I get a file export.eps which is broken and unreadable by geeqie. I get a corresponding file called export-eps-converted-to.pdf that opens fine and looks like it should. What am I doing incorrectly? Thanks, John - Chris Malone (mal...@ucolick.org) Dept. of Astronomy and Astrophysics UC Santa Cruz 1156 High Street Santa Cruz, CA 95064-1077 phone: 831-459-3809 -
Re: [O] Subscription to the mailing list
Well, that message got through to the list :). Chris On Nov 21, 2011, at 8:45 AM, Stelian Iancu wrote: Hi, Is the subscription to the mailing list working at the moment? Because I tried today to subscribe and I didn't get the confirmation mail. I tried a couple of hours ago and still nothing. Thanks, S. - Chris Malone (mal...@ucolick.org) Dept. of Astronomy and Astrophysics UC Santa Cruz 1156 High Street Santa Cruz, CA 95064-1077 phone: 831-459-3809 -
Re: [O] Org-mode Standardized Code Block Keywords
Hi Eric, Here is the CSV output from google moderator - do with it what you wish: Series URL,Series Name,Topic Name,Time Created,Author Name,Author Location,Text,Attachment URL,Tags,Plus Votes,Minus Votes http://www.google.com/moderator/#15/e=ffe1et=ffe1e.42q=ffe1e.56ec36,Org-mode Standardized Code Block Keywords,Vote for your preferred format,2011-10-21 11:29:06 GMT,Chris M,,1. source 2. call 3. data,,,3,0 http://www.google.com/moderator/#15/e=ffe1et=ffe1e.42q=ffe1e.56aff7,Org-mode Standardized Code Block Keywords,Vote for your preferred format,2011-10-21 12:27:18 GMT,Darlan Cavalcante Moreira,Fortaleza, Brazil,1. srcname 2. call 3. name,,,1,1 Chris On Oct 22, 2011, at 8:35 AM, Eric Schulte wrote: Darlan Cavalcante Moreira darc...@gmail.com writes: With many people making suggestions and voting It can be a lot of work for someone to collect all of the votes. In fact, I was going to suggest using Doodle for this (http://www.doodle.com/), but Chris was faster with the google moderator. Anyway, if the final result is sent to the list, including who voted in what, then we would not depend on the external link to know why the decision was made. I would agree with Jambunathan that it is easier to keep all the activity on list. As I'll be reading the thread anyways it is no problem for me to manually tally the votes. Also, the requirement to sign in with google is off-putting, although I can be a curmudgeon when it comes to google's persistent attempts to tie data to my personal google profile. If someone could report the results of the spreadsheet on list then I'll add them to my own running count. Many thanks -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/
Re: [O] Org-mode Standardized Code Block Keywords
Well…I didn't mean to invite everyone to own it, but rather to invite everyone to vote… :-p Anyway, this should be a good place to tally the votes without filling inboxes. Chris On Oct 21, 2011, at 11:30 AM, chris.m.mal...@gmail.com wrote: 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: [O] Org-mode Standardized Code Block Keywords
Hi Jambunathan, That is a good point, but I wanted to make the option available. Ignore the Google moderator link if you'd rather the discussion stay on the mailing list. I planned on sending the results to the mailing list, perhaps tomorrow, anyhow. Chris On Oct 21, 2011, at 11:43 AM, Jambunathan K wrote: chris.m.mal...@gmail.com writes: 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 I generally feel sad whenever some posts a blob via imgur or pastebin. It takes content offline. I know gnu.org mailing list will be there for me. Can you assure me whether that link will continue to work say 5 or 10 years from now when someone wants to do a post-mortem on why certain decisions were made. I would be happy if everyone sticks to the gnu mailing list. --
[O] Background color for literal examples in LaTeX export
Hi all, I would like to include some lines in an example block and upon LaTeX export give the block a colored background, analogous to HTML export. For src blocks, this is easy using =listings=, but the lines I want to include are not necessarily source code. By default an example block is exported in a LaTeX =verbatim= environment. There are LaTeX ways of changing the verbatim environment to have a background and colors, but I'm curious if there is a way to do this within org-mode with a flag or different type of block? Another option would be to define a new language for the =src= block, which can then use the =lstset= for listings, but this seems like more work than just adding the LaTeX to renew the =verbatim= environment. Chris
Re: [O] Double Spacing Latex Output
Hi deech, Does including the package and using double space work? #+LATEX_HEADER: \usepackage{setspace} #+LATEX_HEADER: \doublespacing If not, what does the exported `.tex` file look like? Chris On Oct 7, 2011, at 12:07 PM, aditya siram wrote: Hi all, This is probably a really simple question but I'd like to double space my Latex output. I added #+LaTeX_CLASS_OPTIONS:[setspace, doublespace] to the header and I do have the setspace package, but the output is still single-spaced. Any ideas? Thanks! -deech
Re: [O] Double Spacing Latex Output
No problem. For future reference, the `#+LATEX_CLASS_OPTIONS` really only apply options to the document class, for example to get something exported like \documentclass[10pt,twocolumn]{article} you would want to use the `#+LATEX_CLASS_OPTIONS` to add the 10pt and twocolumn class options. Use a `#+LATEX_HEADER` for including packages or defining macros/variables in the preamble of your document. You can also change which packages are included by default for a given class by changing your `org-export-latex-classes` definition. See http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-6 and the following section. Chris On Oct 7, 2011, at 12:17 PM, aditya siram wrote: Yes that worked! Thanks for the quick response! -deech On Fri, Oct 7, 2011 at 2:12 PM, Chris Malone chris.m.mal...@gmail.com wrote: Hi deech, Does including the package and using double space work? #+LATEX_HEADER: \usepackage{setspace} #+LATEX_HEADER: \doublespacing If not, what does the exported `.tex` file look like? Chris On Oct 7, 2011, at 12:07 PM, aditya siram wrote: Hi all, This is probably a really simple question but I'd like to double space my Latex output. I added #+LaTeX_CLASS_OPTIONS:[setspace, doublespace] to the header and I do have the setspace package, but the output is still single-spaced. Any ideas? Thanks! -deech
Re: [O] latex short caption broken?
Hi Bastien and Suvayu, Hmm...somehow my cron job on my machine to checkout org-mode from git stopped working some time ago. I hadn't paid attention to the various releases, because I thought I was up-to-date! Thanks for figuring this out. Chris On Fri, Jul 1, 2011 at 4:28 AM, Bastien b...@altern.org wrote: suvayu ali fatkasuvayu+li...@gmail.com writes: That thread says the patch has been applied, and as far as I can tell it appears to be in the code. I'm using version =org-version= 7.3. I think the patch was applied after the 7.5 release. I confirm -- Chris, please upgrade, or wait one week if you want to upgrade to 7.6. -- Bastien
Re: [O] Collaborating with other people (was: Org-mode as a replacement for LaTeX)
Thanks for the information about VCS's. I agree CVS is outdated, but we use it mostly for legacy reasons --- all of our codebase is in CVS along with papers going back many years. For my other projects, I use git or mercurial as a VCS. My question was originally more oriented toward handling Org-mode files with collaborators who don't use Org-mode, regardless of the VCS. Those collaborators are only comfortable modifying the LaTeX document itself, and checking in changes to the LaTeX document won't update the Org-mode file. There have already been a few good suggestions, but if others have some system worked out, please chime in :). Chris On Fri, Jul 1, 2011 at 7:47 AM, Rainer M Krug r.m.k...@gmail.com wrote: On Fri, Jul 1, 2011 at 1:10 PM, Karl Voit devn...@karl-voit.at wrote: * chris.m.mal...@gmail.com chris.m.mal...@gmail.com wrote: 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. CVS is very ... old if not ancient. For collaboration with LaTeX documents I am using SVN[1] as a centralized version control system (VCS) if my collaborators are not tech savvy. There are lots of handy tools available like [2] that made it possible to convince any ordinary user from using SVN. If I am working with tech savvy people, I tend to use git [3] instead. It is a *decentralized* VCS with much more possibilities and it is a bit harder to learn. But if you are familiar with git, you get advantages from offline commits, partial commits, and very good internal merging capabilities that solve most of the LaTeX integration process automatically. 1. https://secure.wikimedia.org/wikipedia/en/wiki/Subversion_(software) 2. https://secure.wikimedia.org/wikipedia/en/wiki/TortoiseSVN 3. https://secure.wikimedia.org/wikipedia/en/wiki/Git_(software) Just to add from the Linux side: http://www.rabbitvcs.org/ very similar to TortoiseSVN - also works for git. Rainer -- Karl Voit -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax (F): +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug
[O] latex short caption broken?
Hi all, Tom Dye came up with a great patch to pass an optional title to LaTeX's =\caption= command: see here http://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00311.html That thread says the patch has been applied, and as far as I can tell it appears to be in the code. I'm using version =org-version= 7.3. This is a minimal non-working example: --- #+TITLE: mnwe.org #+AUTHOR:Chris Malone #+EMAIL: x #+DATE: 2011-06-30 Thu #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgm ode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+XSLT: #+BEGIN_LATEX \listoffigures #+END_LATEX * A minimal (non-working) example Let's include a figure! #+CAPTION: [Caption to list]{Caption to figure.} #+ATTR_LATEX: width=\textwidth [[file:f1.pdf]] --- this produces the following .tex file: --- % Created 2011-06-30 Thu 16:08 \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{soul} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{latexsym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \usepackage{color} \usepackage{listings} \providecommand{\alert}[1]{\textbf{#1}} \title{mnwe.org} \author{Chris Malone} \date{2011-06-30 Thu} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} \listoffigures \section{A minimal (non-working) example} \label{sec-1} Let's include a figure! \begin{figure}[htb] \centering \includegraphics[width=\textwidth]{f1.pdf} \caption{Caption to figure.} \end{figure} \end{document} --- As you can see, the optional ([...]) argument to the caption command is completely ignored upon export. Am I doing something wrong, or is something else breaking this? Chris
Re: [O] Collapse LaTeX source before start of main document?
Hi Matt and Suvayu, @Matt: I can get your example to work fine for html export, but not LaTeX export where the entire contents of the headline are removed as well. =org-version=: 7.5 (release_7.5.105.g8d0c) if that makes any difference. @Suvayu: Thanks for the suggestion. That is essentially what I am doing now with the #+LaTeX_HEADER lines, but the problem is that I have a bunch of things which must follow the \begin{document} in LaTeX. I know I could put this in a separate file and just \input{} it; I wanted to see if there was a way to keep everything together in a single file, but also have the ability to fold this preliminary stuff. Chris On Wed, May 4, 2011 at 6:25 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: Hi Chris, I just finished writing my master's thesis in org-mode. On Wed, 4 May 2011 11:36:58 -0400 Chris Malone chris.m.mal...@gmail.com wrote: I'm working on using org mode for my PhD thesis. I'd like to do this in one large file where each headline is a single chapter. Naturally in a thesis there needs to be a lot of front matter: title page, abstract, signature page, etc. Right now, I'm doing this with something like: For all formatting stuff, I just used #+LaTeX_HEADER: \whatever{} #+LaTeX_HEADER: \usepackage{universitystyle} For my abstract I used #+LaTeX_HEADER: \include{abstract} where abstract.tex is a simple tex file with something like: \abstract{ My abstract } If you wish to include this inside the \begin{document}..\end{document} block then you can use the same latex snippet but without the #+LaTeX_HEADER:. I hope this helps and good luck with the thesis. :) -- Suvayu Open source is the future. It sets us free.
[O] Collapse LaTeX source before start of main document?
Hi All, I'm working on using org mode for my PhD thesis. I'd like to do this in one large file where each headline is a single chapter. Naturally in a thesis there needs to be a lot of front matter: title page, abstract, signature page, etc. Right now, I'm doing this with something like: -- #+begin_latex \doublespacing \pagenumbering{roman} \maketitle \makeapproval \begin{abstract} blah blah blah \end{abstract} \tableofcontents \pagestyle{thesis} \newpage \pagenumbering{arabic} #+end_latex * Test Chapter 1 This is a test. -- When I include the actual contents of my abstract, this preliminary material section (the #+begin ... #+end block) is rather large. I'd like to be able to put this material into a headline so that I could collapse it - but I don't want this headline exported as content of the main document. In other words, is there a property or tag that I can add to a headline that causes LaTeX export to ignore the fact that it is a headline (i.e. \chapter, \section, \subsection, etc.), but still export its contents? Something like: -- * This is just preliminary material :prelim: #+begin_latex \doublespacing \pagenumbering{roman} \maketitle \makeapproval \begin{abstract} blah blah blah \end{abstract} \tableofcontents \pagestyle{thesis} \newpage \pagenumbering{arabic} #+end_latex * Test Chapter 1 This is a test. -- Chris
Re: [O] Collapse LaTeX source before start of main document?
Hi Matt, Sorry for the non-plain text... I added your suggestion to my .emacs but upon export it removed the entire block, which is odd based on the source code for the function... Anyway, I found another solution that now seems obvious: the #+begin...#+end blocks themselves can be folded by either hitting TAB on the #+begin line, or by setting the =org-hide-block-startup= variable. Chris On Wed, May 4, 2011 at 12:18 PM, Matt Lundin m...@imapmail.org wrote: Chris Malone chris.m.mal...@gmail.com writes: (Note: When using gmail, please adjust the settings to send your messages as plain text only instead of multipart/alternative.) When I include the actual contents of my abstract, this preliminary material section (the #+begin ... #+end block) is rather large. I'd like to be able to put this material into a headline so that I could collapse it - but I don't want this headline exported as content of the main document. In other words, is there a property or tag that I can add to a headline that causes LaTeX export to ignore the fact that it is a headline (i.e. \chapter, \section, \subsection, etc.), but still export its contents? Something like: You could add a hook to remove headlines with a prelim tag: --8---cut here---start-8--- (defun my-org-export-remove-tagged-headlines (tag) (save-excursion (goto-char (point-min)) (while (re-search-forward (concat : tag :) nil t) (delete-region (point-at-bol) (point-at-eol) (add-hook 'org-export-preprocess-hook (lambda () (my-org-export-remove-tagged-headlines prelim))) --8---cut here---end---8--- Best, Matt
Re: [O] emdash and endash
For what its worth, -- is an endash in LaTeX as well. On Apr 17, 2011 11:04 PM, Samuel Wales samolog...@gmail.com wrote: 1 dash: - 2 -- 3 --- 1 dash: - 2 – 3 — When I write in ASCII, I notate emdash like --. I think this is standard. But in HTML export, that is an endash. I never use --- in ASCII. Is there a way to make -- export as emdash in order to be consistent with ASCII? I wonder if we could control this with a variable. Perhaps with the variable set, \-- can be an endash and -- can be an emdash, or something like that. Thanks. Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html I support the Whittemore-Peterson Institute (WPI) === I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MRV paper.
Re: [O] Running author in beamer export
Hi Chantal, One way around this would be turn off =org-mode='s automatic inclusion of the information in the #+AUTHOR: line. This can be done by setting the export option =author= to nil --- see here: http://orgmode.org/manual/Export-options.html Then, you could add your own \author[...]{..} statement. I haven't tested this, but it seems like it should work. HTH, Chris On Wed, Mar 30, 2011 at 8:29 AM, Chantal Keller chantal.kel...@wanadoo.frwrote: Hello, I would like to export a document in LaTeX using the beamer class. I do not know how to have a running author different from the whole list of authors. In LaTeX, this would be written : \author[Foo]{Foo \and Bar} Thank you for your help, Chantal.
Re: [O] latex export settings in init files
Hi Chris, I would try Eric's suggestion of making sure you have all the correct require statements in your .emacs file. If that doesn't work, make sure you have a recent version of =org-mode= --- I've run into this problem in the past, even with the appropriate requires, but with an old version of =org-mode=. Chris On Mon, Mar 28, 2011 at 8:05 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote: Chris Beard wcbear...@wabash.edu writes: Hello, I've tried to modify some default latex export settings based on info from here http://www.mail-archive.com/emacs-orgmode@gnu.org/msg07645.html I basically add to the org-mode-hook to do: (setq org-export-latex-classes (cons '(myarticle % BEGIN My Article Defaults \\documentclass[10pt,letterpaper]{article} \\usepackage[letterpaper,includeheadfoot,top=0.5in,bottom=0.5in,left=0.75in,right=0.75in]{geometry};; more settings after this... ) org-export-latex-classes)) This works if I evaluate it after I've been exporting to latex, but I get an error whenever I start up emacs: setq: Symbol's value as variable is void: org-export-latex-classes I'm guessing there's some org-mode latex-export thing that I need to load first, but I'm not very familiar with how to do this. Any advice? Thank you Chris I have: --8---cut here---start-8--- (require 'org-install) (require 'org-exp) (require 'org-atom) (require 'org-exp-bibtex) (require 'org-latex) --8---cut here---end---8--- before any customisations. By the way, for the types of customisation you are doing above (obviously, I don't know what you have omitted), I find it easier to define an org template that has the appropriate #+LaTeX_CLASS_OPTIONS and #+LATEX_HEADER lines. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.115.g00134.dirty)
Re: [O] Outlook replacement
Hi Henri-Paul, While you've brought the topic up I /have/ been recently curious about others' email setup and how they incorporate that into Emacs/org-mode? I notice several users send emails from within Emacs using org-mode syntax - any tips on setting such a thing up? Also, how do you handle outside email accounts, for example, from gmail? Chris On Fri, Mar 25, 2011 at 2:56 PM, Henri-Paul Indiogine hindiog...@gmail.comwrote: Greetings! A few days ago I noticed a headline somewhere, possibly http://linuxtoday.com or http://lxer.com, that read an Outlook replacement for Linux. Then I thought, I have an Emacs gnus frame next to a frame with my agenda.org. I guess that is my Outlook replacement. Also, regularly I export my agenda to Google Calendar. So, I am not missing anything from Outlook. Yes, I know, I can not schedule appointments in a corporate setting, but I work more or less alone. Best, Henri-Paul -- Henri-Paul Indiogine Email: hindiog...@gmail.com Running: Ubuntu Linux 10.10, Emacs 24.0.50.1, org-mode 7.4
Re: [O] Re: Outlook replacement
Hi Seb and Eric, Thanks for the advice - the info and sample .gnus file were great! Chris 2011/3/25 Sébastien Vauban wxhgmqzgw...@spammotel.com Chris Malone, Chris Malone wrote: Hi Henri-Paul, While you've brought the topic up I /have/ been recently curious about others' email setup and how they incorporate that into Emacs/org-mode? I notice several users send emails from within Emacs using org-mode syntax - any tips on setting such a thing up? For the list and table stuff, here's an example from my .gnus file: #+begin_src emacs-lisp ;; operates on messages you send (defun my/message-mode-hook () ;; tab completion for alias in `.mailrc' (local-set-key (kbd M-TAB) 'mail-abbrev-complete-alias) ;; enable automatic word-wrap when composing messages (setq fill-column 78) (turn-on-auto-fill) (when (try-require 'org-footnote) ;; default style used for footnoting is local to the Message being ;; written (set (make-local-variable 'org-footnote-auto-label) 'plain)) (when (locate-library org.el) ;; turn on the `org-mode' table editor (turn-on-orgtbl) ;; turn on orgstruct-mode (turn-on-orgstruct) ;; turn on the enhanced version of orgstruct-mode (turn-on-orgstruct++))) (add-hook 'message-mode-hook 'my/message-mode-hook) #+end_src For Org-mode syntax (putting codes as the above): - simply copy/paste, - select region with C-x C-x, - demarcate block with C-c C-v C-d and insert the correct language (here: emacs-lisp). Also, how do you handle outside email accounts, for example, from gmail? What do you mean? Accessing them? That can be done from Emacs, although I did not set this up (yet). Does the above meet your question? Best regards, Seb -- Sébastien Vauban
Re: [Orgmode] Latex custom Title page question
Hi Luke, Another (quick) fix given what you already have, is to renew the maketitle command to be empty: #+LATEX_HEADER: \renewcommand{\maketitle}{} Then after this you could put your #+begin_latex ... #+end_latex block to generate the page. Obviously, this works only for the current =org-mode= file, and Tom's suggestion of creating your own latex class would be better in the long run. HTH, Chris On Wed, Feb 23, 2011 at 3:03 PM, Thomas S. Dye t...@tsdye.com wrote: On Feb 23, 2011, at 9:30 AM, Luke Crook wrote: I have successfully created a custom title page which I have used to replace the default version created by org-mode. Per http://orgmode.org/worg/org-tutorials/org-latex-export.html 11.2 Titles and Title Page Layout. However my title page contains the document title, date and version number. I would rather not have to create a separate custom-title.tex for each document that I create. Can I specify the Title etc. in org-mode in such a way that it can be included in the custom Title page? I have tried moving custom-title.tex into org-mode sandwiched between #+BEGIN_latex / #+END_latex commands, but this does not put the title on the first page. I have included a blank #+TITLE and #+OPTIONS: toc:nil but this still generates an empty page before my custom title page. Thanks, -Luke Aloha Luke, IIUC, you would like to have a custom title page that picks up the title, author, date, etc. from the Org-mode file. One way to do this is to keep the LaTeX variables for title, author, date, etc. in your new \maketitle, then put it in a new LaTeX class file that can be registered with Org-mode. I have this in my custom class file: \renewcommand\@maketitle{% \newpage \null \begin{center}% \let \footnote \thanks {\usebox{\FIRM}}% \vskip 3em% {\LARGE \@title \par}% \vskip 1.5em% {\large \lineskip .5em% \begin{tabular}[t]{c}% \@author \end{tabular}\par}% \vskip 1em% {\large \@date}% \end{center}% \par \vskip 1.5em} where \FIRM is a company logo and @title, @author, and @date correspond to Org-mode's #+TITLE:, etc. hth, Tom ___ 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: [Orgmode] Beamer export questions/suggestions
Hi Derek, In addition to Eric's response, if you wanted to have, say, text on the left side of the beamer frame and an image on the right, you can use beamer columns: #+begin_src org ** Why do we care? *** block :B_ignoreheading:BMCOL: :PROPERTIES: :BEAMER_env: ignoreheading :BEAMER_col: 0.35 :END: + \textcolor{green}{They are explosions!} + Unique location for rp-process burning + Flame propagation under extreme conditions + \alert{Constrain EOS for dense matter} *** jim_figure :B_ignoreheading:BMCOL: :PROPERTIES: :BEAMER_env: ignoreheading :BEAMER_col: 0.8 :END: #+ATTR_LaTeX: width=\textwidth ./images/jim_diagram2.png \\ \tiny \flushright Lattimer, J.M., \textit{ApSS}, \textbf{308}, 371 (2007) #+end_src You can enter in the =:PROPERTIES: yourself, or you can hit =C-c C-b= on the line containing the particular block and select it as a column. You can find more information here: http://orgmode.org/manual/Beamer-class-export.html HTH, Chris On Wed, Feb 23, 2011 at 2:56 PM, Eric S Fraga e.fr...@ucl.ac.uk wrote: Derek Thomas derekctho...@gmail.com writes: Eric and Chris, Thanks for your responses. Eric, I'm currently using latex directly in org, but this method doesn't play nicely with export to a regular tex file. Why not? It would be helpful if you could post a minimal example of what does not work. Would it be possible to use something similar to this? #+begin_src org ** A plain slide *** [path/to/fig] :PROPERTIES: :FIGURE_envargs: Figure placement options :END: #+end_src not as such but you can do the following: #+begin_src org ** a plain slide #+attr_latex: width=[0.8\textwidth] [[file:figure.png]] #+end_src and the figure should be included just fine. -- Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) ___ 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] Two questions about using a =#+begin_src emacs-lisp= block
Hi Eric, I removed all the compiled elisp files, and the problem still persists. Next step will be a completely fresh install from git; my current version is up to date, but maybe there was some conflict that git didn't complain about... Chris On Mon, Feb 21, 2011 at 2:48 PM, Eric Schulte schulte.e...@gmail.comwrote: Chris Malone chris.m.mal...@gmail.com writes: [...] I added =(setq org-confirm-babel-evaluate nil)= to my =.emacs= file, and indeed I am not asked about evaluating the code block, but I'm still getting the invalid syntax error when =org-babel-exp= is called the second time on the =emacs-lisp= code block.? I should mention that this is somewhere in the byte-code, as the error is: byte-code: Invalid read syntax: # in the *Messages* buffer.? I still don't fully understand why it should be evaluating that code block twice. Hmm, it may be worth cleaning out all compiled .elc files from within Org-mode, the calling org-reload, and see if the problem persists. Best -- Eric 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] Two questions about using a =#+begin_src emacs-lisp= block
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 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 org.el:19993:1:Warning: the function `parse-time-string' might not be defined at runtime. org.el:19993:1:Warning: the following functions are not known to be defined: table--at-cell-p, org-clock-update-mode-line, org-default-export-plist, org-infile-export-plist, org-inlinetask-at-task-p, org-inlinetask-toggle-visibility, org-clock-save-markers-for-cut-and-paste, org-agenda-save-markers-for-cut-and-paste, org-id-get-create, dired-get-filename, org-id-store-link, iswitchb-read-buffer, org-agenda-copy-local-variable, org-attach-reveal, org-inlinetask-remove-END-maybe, org-agenda-skip, org-format-agenda-item, org-agenda-new-marker, org-agenda-change-all-lines, org-columns-number-to-string, org-columns-get-format-and-top-level, org-columns-compute, calendar-absolute-from-iso, calendar-iso-from-absolute, org-id-locations-save, org-id-locations-load, cdlatex-tab, org-export-latex-fix-inputenc, orgtbl-send-table, org-inlinetask-in-task-p, org-inlinetask-goto-beginning, org-inlinetask-goto-end, org-inlinetask-outline-regexp, fill-forward-paragraph, beginning-of-visual-line, org-agenda-set-restriction-lock, speedbar-line-directory, org-agenda-maybe-redo Wrote /home/cmalone/install/org-mode/new_git_clone/org-mode/lisp/org.elc Are such warnings normal? * 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: ;; ;; org-mode stuff ;; (add-to-list 'load-path /home/cmalone/install/org-mode/current/lisp) (require 'org-install) (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode)) (global-set-key \C-cl 'org-store-link) (global-set-key \C-ca 'org-agenda) (global-set-key \C-cb 'org-iswitchb) (setq org-log-done t) ;; using the prop_just class (require 'org-latex) (add-to-list 'org-export-latex-classes '(prop_just \\documentclass{prop_just} [NO-DEFAULT-PACKAGES] [PACKAGES] [EXTRA] (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s}))) (add-to-list 'org-export-latex-classes '(letter \\documentclass{letter} [DEFAULT-PACKAGES] [PACKAGES] [EXTRA])) ; org-babel stuff (org-babel-do-load-languages 'org-babel-load-languages '((org . t) (emacs-lisp . t) (python . t) (latex . t) (perl . t) (sh . t) (C . t) (ditaa . t))) (setq org-confirm-babel-evaluate nil) ;; ;; for YASnippet ;; (add-to-list 'load-path ~/.emacs.d/plugins/yasnippet-0.6.1c) (require 'yasnippet) (yas/initialize) (yas/load-directory ~/.emacs.d/plugins/yasnippet-0.6.1c/snippets) ;; define backtab (essentially Shift-Tab) for org-mode (global-set-key (kbd backtab) 'org-shifttab) ;; Make TAB the yas trigger key in the org-mode-hook and enable flyspell mode a\ nd autofill (add-hook 'org-mode-hook (lambda () ;; yasnippet (make-variable-buffer-local 'yas/trigger-key) (org-set-local 'yas/trigger-key [tab]) (define-key yas/keymap [tab] 'yas/next-field-group) ;; flyspell mode for spell checking everywhere (flyspell-mode 1) ;; auto-fill mode on (auto-fill-mode 1))) * Attempt an export of the =org-mode= file found here: http://astro.sunysb.edu/cmalone/nolink/python_class_lstings.org Exporting this to PDF, HTML, or ASCII (I didn't try other forms) results in the following error in the *Messages* buffer: 'Invalid read syntax: #'. I turned on =debu-on-error= and the *Messages* and *Backtrace* buffers can be found here: http://astro.sunysb.edu/cmalone/nolink/messages.txt http://astro.sunysb.edu/cmalone/nolink/backtrace.txt PS: I had already written most of this before I just saw your email - hopefully this helps... Chris On Tue, Feb 22, 2011 at 10:06 AM, Chris Malone chris.m.mal...@gmail.comwrote: Hi Eric, I removed all
Re: [Orgmode] Re: Nice python listings colors, or solution to beamer + minted brokenness?
Hi Chris Just for completeness - and because I had little previous experience with using =org-babel= stuff - I attempted to write a small =sh= source block that parses the current =org-mode= file and builds an appropriate emph entry in the listings =lstset=: == #+startup: beamer #+LaTeX_CLASS: beamer #+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default} #+source: parse-classes #+begin_src sh :var fileName=(buffer-file-name) :exports none :results output latex for class in `sed -n 's/.*class \([a-zA-Z0-9_]*\)(.*):/\1/p' $fileName`; do str=$str,$class done cat EOF \\definecolor{keywords}{RGB}{255,0,90} \\definecolor{comments}{RGB}{60,179,113} \\lstset{ language=Python, keywordstyle=\\color{keywords}, commentstyle=\\color{comments}, procnamestyle=\\color{blue}\bfseries, emph={${str:1}}, emphstyle=\\color{blue}\bfseries } EOF #+end_src * test ** Panels in the UI (part 1) Scripting the UI is pretty much the same as scripting the operator, but it goes to a separate location.. *** Panel operator :B_block: :PROPERTIES: :BEAMER_env: block :END: #+BEGIN_SRC python :exports code class ReferenceDeskPanel(bpy.types.Panel): pass #+END_SRC #+BEGIN_SRC python :exports code class ReferenceDeskPanel23(bpy.types.Panel): pass #+END_SRC == There are two somewhat inconvenient issues with this approach: - One has to evaluate the =parse-classes= source block before export, via a =C-c C-c=. This allows the results to be added directly to buffer as LaTeX source code. This was the only way I could figure out how to get it to work - maybe someone else has a clever work around? Part of the problem is that by the point that the code would be evaluated, you are already within the body of the LaTeX document. It would be nice if there were a =#+begin_latex_document= command which would allow for anything before this command to be in the document's preamble, and anything afterwords to follow the LaTeX command =\begin{document}=. Maybe this is a feature request? - One cannot use listings ability to use /class numbers/ to mark particular emphasis because they get interpreted by =org-mode= as footnotes. For example, say you wanted all the /class/ emphasis words to be blue, but you wanted all /def/ emphasis words to be red. In LaTeX one could write #+begin_latex \lstset{ emph={def}, emphstyle=\color{red}, emph={[2]class}, emphstyle=\color{blue} #+end_latex This can't be done with the above =parse-classes= code. Anyway, it's a bit long-winded and probably moot seeing as how you decided to use =minted=, but I thought I'd give it a shot. Chris On Mon, Feb 14, 2011 at 11:12 AM, Christopher Allan Webber cweb...@dustycloud.org wrote: Dan, all this information is super helpful. Thanks! My presentation is going to look great now, I think! I really appreciate your help! - cwebb -- 퓒퓱퓻퓲퓼퓽퓸퓹퓱퓮퓻 퓐퓵퓵퓪퓷 퓦퓮퓫퓫퓮퓻 ___ 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: [Orgmode] Two questions about using a =#+begin_src emacs-lisp= block
On Mon, Feb 21, 2011 at 12:17 PM, Eric Schulte schulte.e...@gmail.comwrote: Chris Malone chris.m.mal...@gmail.com writes: Hi, First off, my =org-mode= is up-to-date - just did a =git pull make clean make=. Needless to say, the following were an issue before then... * Question 1: Is there a way to force, upon export, an =emacs-lisp= session to be run within the current buffer? For instance, the following code === #+begin_src emacs-lisp :exports both (buffer-file-name) #+end_src === exports to LaTeX as === \begin{verbatim} (buffer-file-name) \end{verbatim} === In other words, as far as I can tell, the code is passed to the interpreter, which does not know about the current buffer information, and therefore the result of the =emacs-lisp= code is an empty string. By contrast, if I use =C-c C-c= to evaluate the code block, then I get the proper result printed in the =.org= buffer: Hi Chris, This is due to the fact that during export Org-mode copies the entire buffer contents into a new export buffer (which is not associated with any file, hence `buffer-file-name' returning nothing). This is done so that the exporter can operate destructively on the file contents without affecting the original buffer. There is a way to work around this issue. The header arguments to code blocks are calculated in the original buffer (so that things like references will correctly resolve). Given this, the following code block will generate the output you are seeking... #+begin_src emacs-lisp :var file-name=(buffer-file-name) :exports both file-name #+end_src Hi Eric, Thanks for this workaround - this does exactly what I want. === #+results: : /home/cmalone/org_tests/python_class_lstings.org === Ultimately, I'd like to, upon export, have a =emacs-lisp= code block that does a regexp search on the file and returns a list of matches, which can then be placed in a =latex= code block. This sort of action suffers from the same issue as the =(buffer-file-name)= code - in essence this is a minimal (non)working example. * Question 2: Why does the following code, upon export, ask if I want to evaluate the =emacs-lisp= code *TWICE* and then give a /Invalid read syntax: #/ error in the message window?: === #+begin_src emacs-lisp :exports both (buffer-file-name) #+end_src #+begin_src sh :exports both ls -l #+end_src === Note that this works fine as long as the =:exports= tag for the =emacs-lisp= code block is *NOT* =both= or =results=. Also note that the value of the =:exports= tag on the =sh= code block is irelevant for this error to appear. Also, it doesn't have to be this particular combination of =emacs-lisp= and =sh= blocks; for instance it fails with an =emacs-lisp= and a =python= source block. I can't reproduce this bug, try setting `org-confirm-babel-evaluate' to nil. Best -- Eric Is this a bug? Chris I added =(setq org-confirm-babel-evaluate nil)= to my =.emacs= file, and indeed I am not asked about evaluating the code block, but I'm still getting the invalid syntax error when =org-babel-exp= is called the second time on the =emacs-lisp= code block. I should mention that this is somewhere in the byte-code, as the error is: byte-code: Invalid read syntax: # in the *Messages* buffer. I still don't fully understand why it should be evaluating that code block twice. 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] Two questions about using a =#+begin_src emacs-lisp= block
Hi, First off, my =org-mode= is up-to-date - just did a =git pull make clean make=. Needless to say, the following were an issue before then... * Question 1: Is there a way to force, upon export, an =emacs-lisp= session to be run within the current buffer? For instance, the following code === #+begin_src emacs-lisp :exports both (buffer-file-name) #+end_src === exports to LaTeX as === \begin{verbatim} (buffer-file-name) \end{verbatim} === In other words, as far as I can tell, the code is passed to the interpreter, which does not know about the current buffer information, and therefore the result of the =emacs-lisp= code is an empty string. By contrast, if I use =C-c C-c= to evaluate the code block, then I get the proper result printed in the =.org= buffer: === #+results: : /home/cmalone/org_tests/python_class_lstings.org === Ultimately, I'd like to, upon export, have a =emacs-lisp= code block that does a regexp search on the file and returns a list of matches, which can then be placed in a =latex= code block. This sort of action suffers from the same issue as the =(buffer-file-name)= code - in essence this is a minimal (non)working example. * Question 2: Why does the following code, upon export, ask if I want to evaluate the =emacs-lisp= code *TWICE* and then give a /Invalid read syntax: #/ error in the message window?: === #+begin_src emacs-lisp :exports both (buffer-file-name) #+end_src #+begin_src sh :exports both ls -l #+end_src === Note that this works fine as long as the =:exports= tag for the =emacs-lisp= code block is *NOT* =both= or =results=. Also note that the value of the =:exports= tag on the =sh= code block is irelevant for this error to appear. Also, it doesn't have to be this particular combination of =emacs-lisp= and =sh= blocks; for instance it fails with an =emacs-lisp= and a =python= source block. Is this a bug? 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] Nice python listings colors, or solution to beamer + minted brokenness?
Hi Chris, I doubt this will fix the problem (it is more of a curiosity), but why in your =lstset= do you have the language as \Python instead of Python? Chris On Sun, Feb 13, 2011 at 7:35 PM, Christopher Allan Webber cweb...@dustycloud.org wrote: Hello all, I currently am trying to export something vaguely like this for a presentation in beamer: #+BEGIN_SRC python :exports code class ReferenceDeskPanel(bpy.types.Panel): bl_label = 'Reference Desk' bl_space_type = 'VIEW_3D' bl_region_type = 'TOOLS' def draw(self, context): layout = self.layout row = layout.row() row.prop( context.scene, 'refdesk_search', text=, icon='VIEWZOOM') search_string = context.scene.get('refdesk_search') #+END_SRC I've tried using listings with: #+begin_LaTeX \definecolor{keywords}{RGB}{255,0,90} \definecolor{comments}{RGB}{60,179,113} \lstset{ language=\Python, keywordstyle=\color{keywords}, commentstyle=\color{comments}emph, procnamestyle=\color{blue}\textbf, emphstyle=\color{black}\bfseries, } #+end_LaTeX in my document but I can't figure out how to get the class name (ReferenceDeskPanel) to be highlighted in any form. I've read through the listings manual but I can't find any reference on how to do this. I also tried using minted, but I'm running into the problem discussed in this thread: http://article.gmane.org/gmane.emacs.orgmode/32147/match=minted I'm at wit's end... I just want to figure out how to syntax highlight my whole python snippet! Any examples of good color sets in listings to use would be *greatly* appreciated! Or a solution to that minted + beamer problem! Either one! Super, ultra thanks in advance, - cwebb -- 퓒퓱퓻퓲퓼퓽퓸퓹퓱퓮퓻 퓐퓵퓵퓪퓷 퓦퓮퓫퓫퓮퓻 ___ 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: [Orgmode] Nice python listings colors, or solution to beamer + minted brokenness?
Also, it's not an elegant or automated solution, but check out Section 2.8: Emphasize Identifiers in the listings manual. You could basically add something like emph={ReferenceDeskPanel}, emphstyle=\color{blue} to your =lstset= to get that particular class to have a blue font. You could add such a line for /every/ class you have by putting in the optional class number argument as described in the manual. I don't know how one could do this for every word that follows the Python =class= directive, as the =lstset= /key-value/ setup doesn't allow for such things... HTH, Chris On Sun, Feb 13, 2011 at 8:46 PM, Chris Malone chris.m.mal...@gmail.comwrote: Hi Chris, I doubt this will fix the problem (it is more of a curiosity), but why in your =lstset= do you have the language as \Python instead of Python? Chris On Sun, Feb 13, 2011 at 7:35 PM, Christopher Allan Webber cweb...@dustycloud.org wrote: Hello all, I currently am trying to export something vaguely like this for a presentation in beamer: #+BEGIN_SRC python :exports code class ReferenceDeskPanel(bpy.types.Panel): bl_label = 'Reference Desk' bl_space_type = 'VIEW_3D' bl_region_type = 'TOOLS' def draw(self, context): layout = self.layout row = layout.row() row.prop( context.scene, 'refdesk_search', text=, icon='VIEWZOOM') search_string = context.scene.get('refdesk_search') #+END_SRC I've tried using listings with: #+begin_LaTeX \definecolor{keywords}{RGB}{255,0,90} \definecolor{comments}{RGB}{60,179,113} \lstset{ language=\Python, keywordstyle=\color{keywords}, commentstyle=\color{comments}emph, procnamestyle=\color{blue}\textbf, emphstyle=\color{black}\bfseries, } #+end_LaTeX in my document but I can't figure out how to get the class name (ReferenceDeskPanel) to be highlighted in any form. I've read through the listings manual but I can't find any reference on how to do this. I also tried using minted, but I'm running into the problem discussed in this thread: http://article.gmane.org/gmane.emacs.orgmode/32147/match=minted I'm at wit's end... I just want to figure out how to syntax highlight my whole python snippet! Any examples of good color sets in listings to use would be *greatly* appreciated! Or a solution to that minted + beamer problem! Either one! Super, ultra thanks in advance, - cwebb -- 퓒퓱퓻퓲퓼퓽퓸퓹퓱퓮퓻 퓐퓵퓵퓪퓷 퓦퓮퓫퓫퓮퓻 ___ 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: [Orgmode] org-latex and figures
Hi Andrea, I'm inclined to agree with Tom - there is no default that will work in all instances. That being said, you can use an #ATTR_LATEX line to modify the placement for each image - see here: http://orgmode.org/org.html#Images-in-LaTeX-export Alternatively, (and this is very much a hack, which I can't guarantee will work) you could make the org-mode default behaviour be [ptb] by replacing the =(floatp [htb])= line with =(floatp [ptb])= in the =org-export-latex-format-image= function definition in the file org/lisp/org-latex.el ... you would have to do something similar to the =org-export-latex-tables= function for tables. HTH, Chris On Thu, Jan 27, 2011 at 11:53 AM, Thomas S. Dye t...@tsdye.com wrote: Hi Andrea, There is no default that will work in all situations. A default of [ptb] will typically generate some pages with just a figure and lots of white space. I make a lot of latex documents and I find the path of least resistance is to use a default of [htb!] and pay attention to the large figures so they don't float to the end and take the other figures with them. All the best, Tom On Jan 27, 2011, at 4:04 AM, Andrea Crotti wrote: I could not understand why on earth my pdf had all the images after the whole document. Then I found this: http://www.eng.cam.ac.uk/help/tpl/textprocessing/float_hint.html and found out that the default for a figure was \begin{figure}[ptb] while in the generated latex file from org I had \begin{figure}[htb] So I changed to the default and now it works fine... Isn't that default maybe a bit dangerous? The fact is that if the first image doesn't fit here it will be printed late and all the others after. I might also just use the latex code here for these things, I don't care to export to other formats, it's just nicer to look if it's in org syntax ___ 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 ___ 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] OrgCamp in NYC?
I'm a grad student out on Long Island, but I'd come into the city for this. I would love to learn more about how to use org-mode in my daily life. Chris On Mon, Jan 24, 2011 at 10:45 PM, Andrew Hyatt ahy...@gmail.com wrote: I'd love to attend a NYC one, and can probably arrange for hosting in a nice space in Manhattan as well. On Sat, Jan 22, 2011 at 6:23 PM, Bradley M. Kuhn bk...@ebb.org wrote: Bastien wrote on Thursday the 6th: OrgCamps are informal events where people gather IRL to contribute to Org by discussing how they use it and by doing contributions to the code, the manuals and the online tutorials. This is an excellent idea. I hope today's OrgCamp in Paris went well -- I wish I could have been there. :) Meanwhile, I can offer space in NYC (just a conference room) in NYC that can host up to 10 people. It's in Brooklyn, not too far from Manhattan, near transit lines. Would anyone in NYC have an interest in an OrgCamp? I don't have time to organize it, but I can coordinate logistics for the venue if someone else would be willing to do the rest. It looks like Paris got 17 people by the end. We'd have to be about half that for the space I have available, but I'm willing if others are. -- -- bkuhn ___ 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 ___ 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] Re: [BEAMER] make text fit in a slide
Hi Andrea, In the example I showed, I set the block to an =ignoreheading= block by using =C-c C-b i=. This, as best I can tell, generates a block but comments out the part which gives the block its title. Doing this overrides the alertblock heading, so I'm not entirely sure how to combine the two to do what you are asking. Chris On Thu, Jan 20, 2011 at 12:17 PM, Andrea Crotti andrea.crott...@gmail.comwrote: Chris Malone chris.m.mal...@gmail.com writes: Hi Andrea, Here I can help some :). What I have done in the past is take advantage of the fact that org-mode will close a beamer =columns= environment if the column width is set to 0 (or 1): -- ** What is a Type I X-ray Burst? *** ignore :BMCOL:B_ignoreheading: :PROPERTIES: :BEAMER_col: 0.33 :BEAMER_env: ignoreheading :BEAMER_envargs: C[t] :END: - Low Mass X-ray Binaries *** ignore :BMCOL:B_ignoreheading: :PROPERTIES: :BEAMER_col: 0.3 :BEAMER_env: ignoreheading :END: - Accretion of H and/or He *** ignore :BMCOL:B_ignoreheading: :PROPERTIES: :BEAMER_col: 0.4 :BEAMER_env: ignoreheading :END: - Ignition at base of accreted layer *** close columns :BMCOL:B_ignoreheading: :PROPERTIES: :BEAMER_col: 0 :BEAMER_env: ignoreheading :END: *** data :B_ignoreheading:BMCOL: :PROPERTIES: :BEAMER_env: ignoreheading :BEAMER_envargs: C[T] :BEAMER_col: 0.4 :END: whatever else I want -- This creates a row on the top of the frame that has 3 columns of widths 0.33, 0.3, and 0.4. Then to close that row I made the =close columns= header with a column width of 0. The next header, =data= starts another row and its column width is set to 0.4 giving room for another column to its right if I so choose. Great thanks a lot. Too bad that things really start to become complicated with the syntax... Another last thing, if I want a block (for example an alertblock) is there a way to not having the heading line? I mean ** Thanks:B_block: :PROPERTIES: :BEAMER_env: alertblock :END: *Thanks you all* I would like not to see the initial Thanks... For latex is perfectly fine but how do I say that to org-beamer? ___ 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: [Orgmode] Org-beamer problems
Hi Henri-Paul, I'm running =org-version= 7.3 (release_7.3.89.g97f4c.dirty) I don't have anything in my .emacs about the beamer latex class - it just works. The only =org-export-latex-classes= statements that I have are with some latex classes that I have made myself. What does your .tex output look like? Chris On Wed, Jan 19, 2011 at 5:22 PM, Henri-Paul Indiogine hindiog...@gmail.comwrote: Greetings! I am also having difficulties running Beamer from org-mode. I am running a fully updated Ubuntu with snapshot emacs and a daily updated git version of org-mode. I am not able to get blocks, lists, and colums to work. I have a feeling from Googling quite a bit that the problem is due to some interaction between my org-mode header and .emacs. Unfortunately, the org-mode manual does not state how to configure .emacs for Beamer export. There must be something going on with the levels of headers and the B_Block directive. Basically, I can not get the example to work. Here is the relevant part of my .emacs - (setq org-export-latex-classes '((article \\documentclass[11pt]{article} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s})) (beamer \\documentclass[bigger]{beamer} \\usepackage{verbatim} \\definecolor{verylightgray}{rgb}{0.93,0.93,1.0} \\modebeamer{\\usetheme{Madrid}} \\modehandout{\\usecolortheme[rgb={0.5,0.5,0.5}]{structure} \\usepackage{pgfpages}} \\usepackage[absolute,overlay]{textpos} \\setlength{\\TPHorizModule}{1mm} \\setlength{\\TPVertModule}{1mm} (\\section{%s} . \\section*{%s}) (\\begin{frame}[fragile]\\frametitle{%s} \\end{frame} \\begin{frame}[fragile]\\frametitle{%s} \\end{frame})) The header is the same as from the example. Thanks, Henri-Paul Henri-Paul Indiogine Email: hindiog...@gmail.com Running: Ubuntu Linux 10.10, Emacs 24.0.50.1, org-mode 7.3 ___ 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: [Orgmode] Re: Org-beamer problems
Hi Bill, I would try upgrading to a newer version of =org-mode= - a lot of things have been improved since the writing of the version you have. By default, in the newer versions, the \maketitle command should be added to the beginning of your .tex file automatically. Upgrade and see if this fixes things. Chris On Wed, Jan 19, 2011 at 4:34 PM, Bill Moran bill1mo...@gmail.com wrote: HI Eric, John, Jeff and Birch Eric S Fraga e.fraga at ucl.ac.uk writes: My immediate response would be to ask why you aren't using \maketitle given that the command is beamer-aware? That is, \maketitle will create a title page whose format is defined by the beamer theme you have selected. Otherwise, you could always customise =org-export-latex-title-command= to nothing and use direct latex code to do what you want: --8---cut here---start-8--- #+begin_latex \begin{frame} \titlepage \end{frame} #+end_latex --8---cut here---end---8--- I've not tried this. 2. \alert command does not work - even with the additions to .emacs suggested here: http://www.mail-archive.com/emacs-orgmode at gnu.org/msg21507.html (And there are no errors in running the .emacs file) Always the @ symbol appears in the latex created from org as @. Can you tell us exactly what you have done to customise the relevant variables and where you have done these customisations? Difficult to help without this information unfortunately. While we're at it, org and emacs version information is also helpful. Thanks for all of your responses and for taking the time to help me. I'll try to answer your questions. As far as possible I use the stock ubuntu (maverick - 10.10) repositories for emacs and its associated software. So I'm using emacs 23.1.1 and org-mode 6.36c. The version of beamer I'm using, as described in the repositories, is latex-beamer 3.07-2ubuntu1. I am aware that there are more recent versions available - particularly of org-mode - but was trying to keep things simple. Let me also say that my aim was to arrive at an understanding of how to use org-mode for slide creation - since I do a lot of that - rather than to compose a specific set of slides. I realise that I could use direct latex code to solve the problems but that wasn't the point of the exercise. I've read more since I sent the email and now realise that the issues I brought up have been discussed earlier and where I can I've tried to use the proposed solutions. In particular I have this in my .emacs: (setq org-emphasis-alist (quote ((* bold b /b) (/ italic i /i) (_ underline span style=\text-decoration:underline;\ /span) (= org-code code /code verbatim) (~ org-verbatim code /code verbatim) (+ (:strike-through t) del /del) (@ org-warning b /b))) org-export-latex-emphasis-alist (quote ((* \\textbf{%s} nil) (/ \\emph{%s} nil) (_ \\underline{%s} nil) (+ \\texttt{%s} nil) (= \\verb=%s= nil) (~ \\verb~%s~ t) (@ \\alert{%s} nil))) ) from a solution to the @ problem proposed by Eric somewhere. And I understand that I can use \maketitle normally to produce a title page in beamer - just tried on a hand-crafted (in emacs) latex-beamer file using my set up. To keep this email as brief as possible, let's take this snippet (verbatim) of an example from Eric: --start--- #+TITLE: Writing Beamer presentations in org-mode #+AUTHOR:Eric S Fraga #+EMAIL: e.fr...@ucl.ac.uk #+DATE: 2010-03-30 Tue #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+startup: oddeven #+startup: beamer #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [bigger] #+latex_header: \modebeamer{\usetheme{Madrid}} #+BEAMER_FRAME_LEVEL: 2 #+COLUMNS: %20ITEM %13BEAMER_env(Env) %6BEAMER_envargs(Args) %4BEAMER_col(Col) %7BEAMER_extra(Extra) * Methodology ** A simple slide This slide consists of some text with a number of bullet points: - the first, very @important@, point! - the previous point shows the use of the special markup which translates to the
Re: [Orgmode] Re: Org-beamer problems
Hi Bill, I too have never found a good solution for the @ problem, but as Eric mentioned there has been some talk about his problem recently in the message list. Glad to hear updating fixed the other issues. Chris On Wed, Jan 19, 2011 at 5:43 PM, Bill Moran bill1mo...@gmail.com wrote: Hi Chris, Jeff Chris Malone chris.m.malone at gmail.com writes: Hi Bill,I would try upgrading to a newer version of =org-mode= - a lot of things have been improved since the writing of the version you have. By default, in the newer versions, the \maketitle command should be added to the beginning of your .tex file automatically. Upgrade and see if this fixes things.Chris Upgraded to the latest .deb version of org-mode - 7.4 - and that solved the title problem - but not the @ problem. Thanks Bill ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode at 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 ___ 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] [BEAMER] make text fit in a slide
Hi Andrea, I'm not sure of the answers to your queries. These questions seem more Beamer related than org-mode. That said, you may have more luck asking on a TeX/LaTeX forum such as http://tex.stackexchange.com/ Sorry I couldn't be of more use :-/ Chris On Wed, Jan 19, 2011 at 5:51 PM, Andrea Crotti andrea.crott...@gmail.comwrote: Would it be possible with some trick to automatically make the font resize when the frame doesn't fit in the slide? Or maybe would that be possible otherwise to split the slide in two parts automatically? I always wondered how to do it but never really found out. And how do I in general could have a section of text in a smaller font? ___ 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] Short title in beamer export
Hi, Is there an org-mode way to use a short title for export to beamer? Some of the beamer templates (or manual setting) show the title of the talk in a footer or header, but the box-size is often too small. To counter-act this issue, the LaTeX \title command takes an optional short title, which is what is actually displayed in the footer/header mentioned above. For example, my presentation has a title #+TITLE: Multidimensional Simulations of Convection Preceding Type I X-ray Bursts which is way too long for the small space allocated to the title in the footer/header. It would be nice if, in org-mode, one could specify #+TITLE: Multidimensional Simulations of Convection Preceding Type I X-ray Bursts #+SHORT_TITLE: XRBs in Multi-d which then is exported as \title[XRBs in Multi-d]{Multidimensional Simulations of Convection Preceding Type I X-ray Bursts} Maybe this is already do-able through some other means within org-mode without having to modify the .tex file? 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] Short title in beamer export
Hi Tom, I didn't want to do this to start with because I didn't think LaTeX would be happy with overriding the title - it turns out it doesn't mind, so thanks for pointing that out! The problem with your suggestion is that the overriding doesn't take place (by default) until after the \maketitle command. This has the effect of not setting the short title on the title slide (it really shouldn't be there anyway) or the table of contents slide. I just found a way around this by exploiting the fact that the BEAMER_HEADER_EXTRA lines are exported /after/ the \title command is exported. In other words, including the line #+BEAMER_HEADER_EXTRA: \title[XRBs in Multi-d]{Multidimensional Simulations of Convection Preceding Type I X-ray Bursts} overrides the title and performs as I want. Chris On Wed, Jan 5, 2011 at 4:43 PM, Thomas S. Dye t...@tsdye.com wrote: Aloha Chris, Perhaps this will work: #+begin_latex \title[XRBs in Multi-d]{Multidimensional Simulations of Convection Preceding Type I X-ray Bursts} #+end_latex hth, Tom On Jan 5, 2011, at 11:19 AM, Chris Malone wrote: Hi, Is there an org-mode way to use a short title for export to beamer? Some of the beamer templates (or manual setting) show the title of the talk in a footer or header, but the box-size is often too small. To counter-act this issue, the LaTeX \title command takes an optional short title, which is what is actually displayed in the footer/header mentioned above. For example, my presentation has a title #+TITLE: Multidimensional Simulations of Convection Preceding Type I X-ray Bursts which is way too long for the small space allocated to the title in the footer/header. It would be nice if, in org-mode, one could specify #+TITLE: Multidimensional Simulations of Convection Preceding Type I X-ray Bursts #+SHORT_TITLE: XRBs in Multi-d which then is exported as \title[XRBs in Multi-d]{Multidimensional Simulations of Convection Preceding Type I X-ray Bursts} Maybe this is already do-able through some other means within org-mode without having to modify the .tex file? 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 ___ 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] A python module for orgmode files
I guess the real question is: did you write the org-mode-parsing Python code using org-mode? ;-) Looks promising, and I'll see if there is anything I can contribute, although I am currently more familiar with Python than org-mode. Chris On Mon, Dec 13, 2010 at 6:57 PM, Jeff Horn jrhorn...@gmail.com wrote: Thanks for sharing! I'm just learning Python, but grok org-mode well enough to use it everyday. I'll take a look and contribute if I can! Jeff On Mon, Dec 13, 2010 at 6:31 PM, Jonathan BISSON bissonjonat...@gmail.com wrote: Hi all, A new project : A python module for orgmode files https://github.com/bjonnh/PyOrgMode Hope someone would find this useful/helpful. You can also contribute as much as you wish/can ;) The code is not really clean (I'm working on docstrings and cleaning-up) but should be usable. Please send the diff between your test file and the output (the included file test.org gives identical results, but it's not always the case) using the test.py test script. This module works with Python 3.1 and 2.7. Cheers ___ 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 -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/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: [Orgmode] [Babel] The first line of the code blocks disappears in the tangled file
Hi Seb, I can't say that I understand the problem, but I can reproduce it - any line right after the #+begin_src org :results latex is being stripped upon tangle. Not sure if it helps or not, but I'm using org-mode version 7.3 =release_7.3.89.g97f4c.dirty= with emacs 22.2.1. Chris 2010/12/8 Sébastien Vauban wxhgmqzgw...@spammotel.com #+TITLE: Isodoc letter (to be tangled to LaTeX file) #+DATE: 2010-12-08 #+LANGUAGE: fr_FR Right now, this letter *must be tangled* and post-processed via =PDFLaTeX=. It can't be exported directly to PDF/HTML (=args out of range= error). The problem I'm reporting here is visible *in the tangled file* (TeX). So, to reproduce it, just do =C-c C-v C-t= on this file, and look at the tangled one. * To #+begin_src csv :tangle addresses.csv FirstName,LastName,Address,PostCode,Town Anybody,Kind Enough,to look,at,this #+end_src * Subject #+srcname: subject #+begin_src org :results latex This is my subject line #+end_src * Opening #+srcname: opening #+begin_src org :results latex Dear, #+end_src * Body #+srcname: body #+begin_src org :results latex This example was working for me in the past but is having problems now (at least, on my new Windows machine -- after the Ubuntu one died): the first line of every block of text is simply eaten when being tangled. The second paragraph does not exhibit any particular trouble, so it really is the first line of every code block. Notice, *in the TeX tangled file*, that: - the one-liner subject becomes void - the one-liner opening becomes void - the body looses its first line - the one-liner closing becomes void #+end_src * Closing #+srcname: closing #+begin_src org :results latex Can you reproduce this? #+end_src * Letter composition #+begin_src latex :noweb yes :tangle yes \documentclass[11pt]{isodoc} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage{datatool} \DTLloaddb{addresses}{addresses.csv} \usepackage[scorpios]{isodoc-style} \setupdocument{ subject = {% subject()}, opening = {% opening()}, closing = {% closing()} } \begin{document} \DTLforeach{addresses}{% \firstname=FirstName,% \lastname=LastName,% \addressi=Address,% \postcode=PostCode,% \town=Town% }{% \letter[to={\firstname~\lastname\\\addressi\\\postcode~\town}]{% body() }} \end{document} #+end_src Best regards, Seb -- Sébastien Vauban ___ 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] Working with =src= blocks :results header argument
Hi, I've been looking through the manual to get more familiar with Babel and using source code in general. Below is a simple example, which I'm not sure is working as intended. #+tblname: example-table | 1 | a | | 2 | b | | 3 | c | | 4 | d | #+begin_src emacs-lisp :var data=example-table[-3,1] :results value raw data #+end_src Upon =C-c C-c= this produces the expected result: #+results: b =C-c C-c= /again/, however, results in: #+results: b b In other words, the default results handling of =replace= appears to not work with a =raw= results type. I tried explicitly adding the handling via a =:results value raw replace= header argument but again this didn't seem to fix things. Is this what is intended for the =raw= type of results - no replacement effect at all - or is this a bug? 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] LaTeX export of list broken?
Hi, I'm currently running org-version 7.3 with emacs 22.2.1. When I try to export a plain list in an org document to either LaTeX or PDF via LaTeX, I get an error about =looking-at-p= being void. I know for a fact this worked with org-version 7.01h and the same emacs version. Any idea what is going on? Export to other formats, such as ASCII or HTML, work fine. Chris Minimum example: #+TITLE: test.org #+AUTHOR: me #+EMAIL: m...@nospam #+DATE: \today #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t #+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path: http://org$ #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: #+XSLT: * Let's test a list - A - B - C ___ 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] org-export-latex-classes issue
Hi Tom, That fixed it - I figured it was something simple. Thanks! Chris On Wed, Oct 20, 2010 at 3:49 PM, Thomas S. Dye t...@tsdye.com wrote: On Oct 20, 2010, at 9:11 AM, chris.m.mal...@gmail.com wrote: Hi, I'm a 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(#buffer *load* nil /home/cmalone/.emacs nil t) ; Reading at$ load-with-code-conversion(/home/cmalone/.emacs /home/cmalone/.emacs t t) load(~/.emacs t t) #[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___ Hi Chris, My tutorial might have been over-optimistic about the ease of configuration. Perhaps you also need this in your .emacs before you add-to-list: (require 'org-latex) All the best, Tom ___ 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] 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 C-c C-e, 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