Re: [O] [babel] how to pass data to gnuplot from another block
Eric Schulte schulte.e...@gmail.com writes: Hi Eric, The attached works fine for me (using sh since I don't have octave). Dear Eric, thanks for your quick reply and sorry for taking so long to get back to you. I ended up going to Chile for a week the day after sending my original email and had very little Internet access (and, actually, no time even if I had had proper connectivity). Back now! [...] Ensure that the data you're passing into gnuplot is a table and not a string. Gnuplot blocks handle tables by writing them to a file, and then replacing the variable with the file name. As I recall gnuplot blocks assume string data already is a file name, so the variable is replaced directly. Ah ha, this is a subtle one! The output looks the same in either case, as Nick D. also notes. By changing the results generated to value and not output and adding an expression at the end of my octave code to generate the value required got things working. The subtlety makes this a rather frustrating experience, however. Is there any way to convince babel to treat a string output as an org table so that subsequent chaining works in this case as well? Thanks again, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.2-181-gf31eb4.dirty
Re: [O] org-html-publish-to-html: embed HTML in first line of export
On Wed, Dec 4, 2013 at 11:23 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Jürgen Hötzel juer...@hoetzel.info writes: So Jekyll can't process files and the resulted HTML pages are corrupted Any hints, how i can change the order of the TOC and HTML environment? 1. Disable default TOC with, e.g. #+options: toc:nil 2. Insert your HTML environment 3. Insert TOC after it with #+TOC: headlines. Thanks! This fixed the problem! Jürgen
[O] how to prevent html export from including the default javascript?
Hello I have trouble finding the correct explanation in ox-html.el.gz and searching on the web. I'm trying to tell the html exporter *not* to include the !--/*--![CDATA[/*!--*/ ... javascript I'm trying to use the #+OPTIONS: to define this for a given foo.org file. I've tried, in vain, each of the below settings: html-head-include-scripts:nil org-html-head-include-scripts:nil org-html-style-include-scripts:nil but each time I ask org-mode to export to html, the resulting foo.html file contains that javascript...
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
AW alexander.willand at t-online.de writes: But how can I set org-file-apps to open a *.doc file with MS Word under Linux? It's probably easiest to put that into a wrapper script and associate it with .doc/.docx on your desktop environment. That way you probably wouldn't even need to customize anything within Emacs or at least could avoid the vagaries of UNIX vs. Windows quoting. Regards, Achim.
[O] #+PROPERTY: for babel header args worked... then it didn't
Wee bit of frustration with Babel just now. Some weeks ago, I wrote a Beamer presentation with LilyPond source code blocks. I needed to add a little code to each example to suppress the tagline from each results file. In that presentation, setting the :prologue header argument in a #+PROPERTY line worked perfectly: #+PROPERTY: header-args:lilypond :prologue \header{tagline=##f} Now I'm working on a short article-class document, and I included the same #+PROPERTY at the top, and... no effect. But... *the lines are identical*. ?? :prologue \header{tagline=##f} does take effect if I include it in every #+begin_src line. That's an acceptable workaround for this file, since there won't be many examples. But it bothers me when I figure something out, and then I try to do it again, and it doesn't work. It's like 1 + 1 = 2 in one place, and 1 + 1 = 0 in another. Why would #+PROPERTY work in one file and be ignored in the other? hjh Header of the working file: ~~ #+BIND: org-latex-listings-options ((basicstyle \\ttfamily\\scriptsize) (captionpos b) (tabsize 3)) #+PROPERTY: header-args:lilypond :prologue \header{tagline=##f} #+LANGUAGE: en #+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t ':t # #+OPTIONS: c:nil creator:comment d:(not LOGBOOK) date:t e:t email:nil #+OPTIONS: email:nil #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+startup: beamer #+LaTeX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [presentation] #+BEAMER_THEME: default #+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col) %8BEAMER_opt(Opt) #+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC #+LATEX_HEADER: \usepackage{fontspec} #+LATEX_HEADER: \setmonofont{Inconsolata} #+LATEX_HEADER: \usepackage[pdf]{pstricks} #+LATEX_HEADER: \usepackage[indentfirst=false]{xeCJK} #+LATEX_HEADER: \setCJKmainfont{WenQuanYi Zen Hei} #+LATEX_HEADER: \setCJKsansfont{WenQuanYi Zen Hei} #+LATEX_HEADER: \setCJKmonofont{WenQuanYi Zen Hei} #+LATEX_HEADER: \usepackage{listings} #+LATEX_HEADER: \usepackage{color} #+LATEX_HEADER: \definecolor{codecolor}{RGB}{150,0,100} #+LATEX_HEADER: \newcommand{\inpcode}[1]{\textcolor{codecolor}{\texttt{#1}}} #+LATEX_HEADER: \newcommand{\codeident}[1]{\mbox{\texttt{#1}}} #+LATEX_HEADER: \newcommand{\termemph}[1]{\emph{#1}} #+TITLE: What's Wrong with Finale? \\ Free Music Notation with LilyPond #+AUTHOR:H. James Harkins # #+DATE: 31 October 2013 #+BEGIN_LaTeX \AtBeginSection[] % Do nothing for \section* { \begin{frame}beamer \frametitle{Outline} \tableofcontents[currentsection] \end{frame} } #+END_LaTeX ~~ Header of the non-working file: ~~ #+PROPERTY: header-args:lilypond :prologue \header{tagline=##f} #+TITLE: Notes on the fall 2013 show #+DATE: 2013-11-27 #+AUTHOR: James Harkins #+OPTIONS: ':t *:t -:t ::t :t H:3 \n:nil ^:t arch:headline author:t #+OPTIONS: c:nil creator:comment d:(not LOGBOOK) date:t e:t email:nil #+OPTIONS: f:t inline:t num:t p:nil pri:nil stat:t tags:t tasks:t #+OPTIONS: tex:t timestamp:t toc:nil todo:t |:t #+CREATOR: Emacs 23.3.1 (Org mode 8.2) #+DESCRIPTION: #+EXCLUDE_TAGS: noexport #+KEYWORDS: #+LANGUAGE: en #+SELECT_TAGS: export #+OPTIONS: texht:t #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [a4paper] #+LATEX_HEADER: #+LATEX_HEADER_EXTRA: #+LATEX_HEADER: \usepackage{fontspec} #+LATEX_HEADER: \setmainfont[Ligatures={Common,TeX}]{CharisSIL} #+LATEX_HEADER: \setmonofont{Inconsolata} #+LATEX_HEADER: \setcounter{secnumdepth}{0} #+LATEX_HEADER: \usepackage[a4paper,inner=2.5cm,outer=2.5cm,top=2.8cm,bottom=2.8cm]{geometry} #+LATEX_HEADER: \usepackage[english]{babel} ~~
[O] Can't write accents in R graphics
#+TITLE: ECM Process Coding System #+PROPERTY: eval yes #+PROPERTY: exports both #+PROPERTY: cache no * Problem I can't write accents in graphic titles (nor legends). * Settings After Googling (a lot), I always come back to the same set of solutions: - Adding the following in my ~.emacs~ file: #+begin_src emacs-lisp (setq process-coding-system-alist '((R.* . utf-8-unix))) #+end_src #+begin_src emacs-lisp (add-hook 'ess-R-post-run-hook (lambda () (set-buffer-process-coding-system 'utf-8-unix 'utf-8-unix))) #+end_src - Setting the process coding system in the =*R*= buffer: #+begin_src emacs-lisp M-x set-buffer-process-coding-system RET utf-8-unix RET utf-8-unix RET #+end_src None of those does work for me, from an Org file... * Example ** Text Print a string does always work, in the Org buffer, and in the export. #+begin_src R print(Élève) #+end_src #+results: : Élève ** Graph But adding a title with accents never does: #+header: :file ecm-R-coding-system.png #+begin_src R :results graphics :width 240 :height 240 x - 0:12 plot(sin(x/2)) title(Élève) #+end_src #+results: [[file:ecm-R-coding-system.png]] * Observations You can see a demo of (some of) the tests I made on http://screencast.com/t/7Nz87zuqiz. Maybe the problem is not related neither to Org, nor ESS, as I see that =sessionInfo()= outputs French stuff. Maybe some of the R users here could share their experience with the coding system configuration? Best regards, Seb -- Sebastien Vauban
Re: [O] #+PROPERTY: for babel header args worked... then it didn't
James Harkins wrote: Wee bit of frustration with Babel just now. Some weeks ago, I wrote a Beamer presentation with LilyPond source code blocks. I needed to add a little code to each example to suppress the tagline from each results file. In that presentation, setting the :prologue header argument in a #+PROPERTY line worked perfectly: #+PROPERTY: header-args:lilypond :prologue \header{tagline=##f} Now I'm working on a short article-class document, and I included the same #+PROPERTY at the top, and... no effect. But... *the lines are identical*. ?? I would guess it could be a newly introduced bug, because I did the same yesterday for R parameters without success... I ended up with Emacs Local Variables, which does work. Maybe you could try to bisect Org? Best regards, Seb -- Sebastien Vauban
Re: [O] Column view not changeable
Renger van Nieuwkoop ren...@vannieuwkoop.ch writes: Hi I tried to change the face of column view in the options (because it is now grey background with very thin fonts and hardly readable). I set the options back to standard (as the option is changed outside), but every time I restart I get the old settings. I looked in my .emacs file but haven't found anything that changes this face. I use color-theme-dark-laptop, but the same problem happens with other color-themes. I had this problem. I found I had to explicitly set it to something using the customisation interface. Resetting to standard (which I assume means reverting) didn't work for me either. If you set something and save for future use, you should find a custom-set-faces entry in your .emacs or wherever your customisations get stored. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.3c-250-gd35233
Re: [O] Full org-mode on unrooted Android
Jaromil jaro...@dyne.org writes: [...] For those here who like to try it then please accept my humble homage: a standalone version of ZShaolin based on the latest version 0.9 where I've managed to fix for most issues related to Emacs, which won't update nor will require the Google Play market, and basically contains ZSh, Emacs and a few other utilities like GnuPG, Ssh and Git. https://files.dyne.org/zshaolin/.org-mode/ Providing you with this is really the minimum I can do, as a very happy and enthusiast org-mode user since years: it facilitates in so many ways my life, it is almost embarassing to find myself in this position now. Many thanks! Thank you for this. I am keen to try this out as my previous experience with Emacs on my Nexus systems has been less than ideal. I've installed the apk from the stated place on a Nexus 4; I will try my Nexus 7 later as the 7 will likely be more usable. I've subsequently installed a new version (0.9) using the second button from the top. I have been able to start it and get the shell. However, typing emacs always gives an error: , | Warning: arch dependent data dir (/sdcard/emcs/etc) does not exist. | Error: charsets directory not found: /sdcard/emacs/etc/charsets | ... | Please check your installation. ` What do I need to do? It would appear that my installation is not complete. Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.3c-250-gd35233
Re: [O] Full org-mode on unrooted Android
Eric S Fraga e.fr...@ucl.ac.uk writes: Hi Eric: What do I need to do? It would appear that my installation is not complete. You need to install this: https://play.google.com/store/apps/details?id=com.zielm.emacs too. Charles -- ...Deep Hack Mode--that mysterious and frightening state of consciousness where Mortal Users fear to tread. (By Matt Welsh) signature.asc Description: PGP signature
Re: [O] How do I specify the language for a :results code block
Hello Fabrice, fni-n...@pirilampo.org writes: Hello Alan, Alan Schmitt wrote: I tried to apply the drawer trick to the :wrap src but it does not work, unfortunately. I like your approach better anyway as it allows me to specify not only the language used by the output source block, but other properties (such as whether it should be evaluated) which wrap does not let me do. Not sure this is true. Look at the following tricky example from my slides for the stage LaTeX de Dunkerque 2013 [1]: #+begin_src org :results latex replace :wrap SRC latex :exports code :exports results exemple-liste-itemize #+end_src ... So, you definitely can pass extra options to the wrap header argument... Using quotes, of course! Thank you for the heads up. Alan
Re: [O] bug with :wrap when exporting
Hello Nicolas, n.goaz...@gmail.com writes: The following patch (from maint) fixed the problem shown in the ECM. Off topic question: what does ECM stands for? (I understand it's a small example showing a bug, but I could not find the meaning of the acronym.) Does it still work in the general case? I'd gladly test it, but I'm not sure how to do it. I understand I need to switch branch to the maint branch on my git clone of the repository. But then what is the simplest way to test this different org version without changing my current installation? Should I simply launch emacs -Q the evaluate something like: (add-to-list 'load-path ~/src/org-mode/lisp) (require 'org) ? Thanks, Alan
[O] org-babel-next-src-block respecting #+call lines
Hi all, how could I make org-babel-next-src-block (bound to 'C-c C-v n' by default) jump to the next src block or #+call line? In its current form it skips over call lines. Many thanks in advance, Andreas
[O] Export all radio tables off a document
Hi all, this is my first post to this list, so please be patient with me :-) I have many radio tables in my document with this structure: \begin{comment} #+TBLNAME: sec-10 #+ORGTBL: SEND sec-10 orgtbl-to-latex :skip 3 :splice t |+---+---| | Anschaffungskosten | Nutzungsdauer | AfA in €/Std. | |+---+---| | 72 | 36000 |20 | |+---+---| \end{comment} A C-c C-c exports the table to Latex like this: \begin{tabular}{lll} % BEGIN RECEIVE ORGTBL sec-10 72 36000 20\\ % END RECEIVE ORGTBL sec-10 \end{tabular} It would be very nice to automatically export *all* tables of the document to their corresponding latex tables in the same document. I found a function that does this for calculations in org-tables: M-x org-table-recalculate-buffer-tables but I found nothing similar for updating and exporting them automatically. Is this possible? Thanks in advance! Regards Th. Grothe
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
Am Mittwoch, 4. Dezember 2013, 18:26:46 schrieb Nick Nick Dokos: AW alexander.will...@t-online.de writes: Hi! ... Off the top of my head, I would say (add-to-list 'org-file-apps '(\\.doc . env WINEPREFIX=\/home/AW/.wine-office\ wine \C:\\windows\\command\\start.exe\ /Unix \/home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk\)) i.e. just the command you provided enclosed in double quotes, except that certain characters within have to be escaped: - \ \ - \\ The long string will probably be broken up into multiple lines by some mailer but it is supposed to be one long string with no newlines. I don't know if the spaces in the path will cause problems. Untested (except that I did evaluate the add-to-list and got no errors): no Word and no wine here. I get no error message, but nothing happens, except Emacs telling me it has run the command. BTW, why not LibreOffice? Does it mishandle your .doc files? LibreOffice changes the content of word files slightly and for folks who panic if not everything is like expected, that's too much already. You know, if you are the guy who works with LaTeX, word users tend to be somehow narrow minded. However, thank you. I tried something different now: I wrote a bash script, just two lines: #!/bin/bash env WINEPREFIX=/home/AW/.wine-office wine C:\windows\command\start.exe /Unix /home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk On the command line word.sh works. But in .emacs the lines (add-to-list 'org-file-apps '(\\.docx . exec /home/AW/bin/word.sh %s)) don't. What am I doing in the wrong way? Regards, Alexander
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
Am Donnerstag, 5. Dezember 2013, 08:48:11 schrieb Jambunathan K: Nick Dokos ndo...@gmail.com writes: Off the top of my head, I would say (add-to-list 'org-file-apps '(\\.doc . env WINEPREFIX=\/home/AW/.wine-office\ wine \C:\\windows\\command\\start.exe\ /Unix \/home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk\)) i.e. just the command you provided enclosed in double quotes, except that certain characters within have to be escaped: - \ \ - \\ The long string will probably be broken up into multiple lines by some mailer but it is supposed to be one long string with no newlines. I don't know if the spaces in the path will cause problems. Untested (except that I did evaluate the add-to-list and got no errors): no Word and no wine here. BTW, why not LibreOffice? Does it mishandle your .doc files? Nick The easiest way to get the same effect is to use M-x customize-variable RET org-file-apps RET and specify a command. Once it is saved, the .emacs will have the resulting nightmarish string :-) Another way to quote a string would be to use M-x pp-eval-expression RET (read-string Enter string: ) RET and copy-paste the output from *Pp Eval Output* to .emacs or .el file. Thank you, customization worked, but it did not start word -- I'm going another way now. Regards, Alexander
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
Am Donnerstag, 5. Dezember 2013, 09:01:40 schrieb Achim Gratz: AW alexander.willand at t-online.de writes: But how can I set org-file-apps to open a *.doc file with MS Word under Linux? It's probably easiest to put that into a wrapper script and associate it with .doc/.docx on your desktop environment. That way you probably wouldn't even need to customize anything within Emacs or at least could avoid the vagaries of UNIX vs. Windows quoting. Regards, Achim. Great idea, thank you! Doesn't work yet (I'm lacking of lisp knowledge very much), see my other mail re Nick Dokos. Regards, Alexander
Re: [O] Full org-mode on unrooted Android
Charles Philip Chan cpc...@bell.net writes: Eric S Fraga e.fr...@ucl.ac.uk writes: Hi Eric: What do I need to do? It would appear that my installation is not complete. You need to install this: https://play.google.com/store/apps/details?id=com.zielm.emacs Ah, I misunderstood the original posting. To me, it seemed to imply that the second (external to play store) link superseded the first link. I've now done this and I'm getting further. Emacs starts up but trying to get into org-mode (e.g. visiting a file called t.org) fails with Wrong type argument: stringp, (require . t-mouse) I have to get some work done now but I'll come back to this later to investigate, now that I know that there is hope! Need to dig out my BT keyboard as well... Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.3c-250-gd35233
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
AW alexander.will...@t-online.de writes: Thank you, customization worked, but it did not start word -- I'm going another way now. I am playing a guessing game and don't know what I am saying. Try this. M-: (shell-quote-argument (read-string Enter string:)) When prompted enter whatever wine whatever %s Now put whatever string you get in *Pp Eval Output* DIRECTLY in to your .emacs. See the attached snippet.el for an idea of what I get. Instead of passing env as part of the command, I think you can add this to your .emacs. (setenv WINEPREFIX /home/AW/.wine-office) You can also do M-x setenv to set environment variables. snippet.el Description: application/emacs-lisp
Re: [O] bug with :wrap when exporting
Alan Schmitt writes: Off topic question: what does ECM stands for? (I understand it's a small example showing a bug, but I could not find the meaning of the acronym.) Exemple Complet Minimal http://orgmode.org/worg/org-faq.html#ecm Best, Josiah
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
AW alexander.will...@t-online.de writes: Thank you, customization worked, but it did not start word -- I'm going another way now. I am playing a guessing game and really don't know what I am saying. Try this. M-: (shell-quote-argument (read-string Enter string:)) When prompted enter whatever wine whatever %s Now put whatever string you get in *Pp Eval Output* DIRECTLY in to your .emacs. See the attached snippet.el for what I get. Instead of passing env as part of the command, I think you can add this to your .emacs. (setenv WINEPREFIX /home/AW/.wine-office) You can also do M-x setenv to set environment variables. snippet.el Description: application/emacs-lisp
[O] FYI Emacs-24.4 survey
http://www.emacswiki.org/emacs/FrequentlyEnabledPackages_Emacs244_Survey
Re: [O] probable caching bug?
Hello, Eric Abrahamsen e...@ericabrahamsen.net writes: While editing a plain list yesterday I noticed what I guess was a bug in the caching mechanism. It looks like it, indeed. The list item was wrapped to several lines, and I noticed that calling C-e while on the last line gave me wrong-type-argument integer-or-marker-p nil. Trying to fill the item with M-q gave me user-error: An element cannot be parsed line 635. [...] Unfortunately, the source of the cache corruption may be totally unrelated to the action triggering the error. Thus, cache bugs are quite hard to reproduce. When hunting down one of them, I usually call the following function after each non-trivial buffer modification. (defun ngz-random-test (optional n contextp) (save-excursion (dotimes (k (or n 100)) (goto-char (1+ (random (point-max (let ((real-element (let (org-element-use-cache) (if contextp (org-element-context) (org-element-at-point) (or (equal real-element (if contextp (org-element-context) (org-element-at-point))) (message `%s' at %d is corrupted. (org-element-type real-element) (org-element-property :begin real-element))) BTW, is your Org recent? I fixed a similar problem (i.e. cache corruption in lists) about two weeks ago in commit 4466af5c115b56377d7251e848860dc03212c583. Regards, -- Nicolas Goaziou
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
Am Donnerstag, 5. Dezember 2013, 20:51:04 schrieb Jambunathan K: AW alexander.will...@t-online.de writes: Thank you, customization worked, but it did not start word -- I'm going another way now. I am playing a guessing game and really don't know what I am saying. Try this. M-: (shell-quote-argument (read-string Enter string:)) When prompted enter whatever wine whatever %s Now put whatever string you get in *Pp Eval Output* DIRECTLY in to your .emacs. See the attached snippet.el for what I get. Instead of passing env as part of the command, I think you can add this to your .emacs. (setenv WINEPREFIX /home/AW/.wine-office) You can also do M-x setenv to set environment variables. I found out, that things are much more complicated: I wrote a bash script word.sh (see my other mail on this) and tried to figure out how to pass a filename to it. Even this is not obvious, because from the viewpoint of Word under Wine filenames differ from the real filename in the system. I did not suceed to make Word start and open a file foo.docx. You know, something weird as word.sh C:/users/AW/Meine Dokumente/Dokumente/temp/foo.docx made Word start, but not open a document, and Word complains about missing dot something. And often people send files with names which are a pain to read, including $ -signs, brackets and whatever. The whole thing is way too difficult for me and I have to dismiss the idea. Thanks to you and everyone who offered help, but it was not a good idea. Regards, Alexander
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
AW alexander.will...@t-online.de writes: I found out, that things are much more complicated: Did you try my suggestion? What happened? I gave a snippet.el. You just need to copy paste that to .emacs. It is easy to figure out where and how. (I know nothing about shell programming or environment variables and such things) Thanks to you and everyone who offered help, but it was not a good idea. You are running away. We aren't. Give it a try, Buddy. We will figure out something and make you happy.
Re: [O] bug with :wrap when exporting
jsch...@gmail.com writes: Alan Schmitt writes: Off topic question: what does ECM stands for? (I understand it's a small example showing a bug, but I could not find the meaning of the acronym.) Exemple Complet Minimal http://orgmode.org/worg/org-faq.html#ecm Very interesting, I was not expecting French here. Thanks, Alan
Re: [O] Export all radio tables off a document
Hi, I asked the same question sometimes ago http://www.mail-archive.com/emacs-orgmode@gnu.org/msg64189.html and Carsten posted this answer which is still working for me (defun my-org-send-all-tables () (interactive) (org-table-map-tables (lambda () (orgtbl-send-table 'maybe Cheers, Xavier Le 05/12/2013 14:31, Thorsten Grothe a écrit : Hi all, this is my first post to this list, so please be patient with me :-) I have many radio tables in my document with this structure: \begin{comment} #+TBLNAME: sec-10 #+ORGTBL: SEND sec-10 orgtbl-to-latex :skip 3 :splice t |+---+---| | Anschaffungskosten | Nutzungsdauer | AfA in €/Std. | |+---+---| | 72 | 36000 |20 | |+---+---| \end{comment} A C-c C-c exports the table to Latex like this: \begin{tabular}{lll} % BEGIN RECEIVE ORGTBL sec-10 72 36000 20\\ % END RECEIVE ORGTBL sec-10 \end{tabular} It would be very nice to automatically export *all* tables of the document to their corresponding latex tables in the same document. I found a function that does this for calculations in org-tables: M-x org-table-recalculate-buffer-tables but I found nothing similar for updating and exporting them automatically. Is this possible? Thanks in advance! Regards Th. Grothe -- | |__ GARRIDO Xavier Laboratoire de l'Accélérateur Linéaire /\ NEMO Université Paris-Sud 11 /--\garr...@lal.in2p3.fr UMR 8607 | garr...@in2p3.fr Batiment 200 |__ +33 1.64.46.84.2891898 Orsay Cedex, France
Re: [O] bug with :wrap when exporting
alan.schm...@polytechnique.org writes: I'd gladly test it, but I'm not sure how to do it. I understand I need to switch branch to the maint branch on my git clone of the repository. But then what is the simplest way to test this different org version without changing my current installation? Should I simply launch emacs -Q the evaluate something like: (add-to-list 'load-path ~/src/org-mode/lisp) (require 'org) I tried to do this, and do a make clean to make sure old elc files would not be picked up, but then export fails with Symbol's function definition is void: org-export-dispatch In fact it tells me more than this: I later get Org-mode version 8.2.3c (release_8.2.3c-20-gaf6f14.dirty-git @ mixed installation! /usr/local/Cellar/emacs-mac/emacs-24.3-mac-4.5/share/emacs/24.3/lisp/org/ and /Users/schmitta/projets/org-mode/lisp/) Do I need to compile the org files for them to be taken into account? Thanks, Alan
Re: [O] bug with :wrap when exporting
Alan Schmitt alan.schm...@polytechnique.org writes: jsch...@gmail.com writes: Alan Schmitt writes: Off topic question: what does ECM stands for? (I understand it's a small example showing a bug, but I could not find the meaning of the acronym.) Exemple Complet Minimal http://orgmode.org/worg/org-faq.html#ecm Very interesting, I was not expecting French here. Nobody expects the Spanish Inquisition^W^W^WSebastien Vauban :-)
Re: [O] [babel] how to pass data to gnuplot from another block
Eric S Fraga e.fr...@ucl.ac.uk writes: Eric Schulte schulte.e...@gmail.com writes: Hi Eric, The attached works fine for me (using sh since I don't have octave). Dear Eric, thanks for your quick reply and sorry for taking so long to get back to you. I ended up going to Chile for a week the day after sending my original email and had very little Internet access (and, actually, no time even if I had had proper connectivity). Back now! [...] Ensure that the data you're passing into gnuplot is a table and not a string. Gnuplot blocks handle tables by writing them to a file, and then replacing the variable with the file name. As I recall gnuplot blocks assume string data already is a file name, so the variable is replaced directly. Ah ha, this is a subtle one! The output looks the same in either case, as Nick D. also notes. By changing the results generated to value and not output and adding an expression at the end of my octave code to generate the value required got things working. The subtlety makes this a rather frustrating experience, however. Is there any way to convince babel to treat a string output as an org table so that subsequent chaining works in this case as well? I'm not familiar with ob-octave, but I'd imagine :results vector should do the trick. If not then it might be worth adding something like the following (borrowed from ob-sh.el) to ob-octave. (org-babel-result-cond (cdr (assoc :result-params params)) results (let ((tmp-file (org-babel-temp-file sh-))) (with-temp-file tmp-file (insert results)) (org-babel-import-elisp-from-file tmp-file))) Best, Thanks again, eric -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
Re: [O] Can't write accents in R graphics
Hello Vicente, (Copying to the mailing list...) Vicente Vera wrote: I have a similar problem, but found out a workaround. My native coding system is Latin-1, and after setting almost everything in my Emacs to UTF-8 with these lines in my init.el: (set-language-environment UTF-8) (prefer-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8) (set-selection-coding-system 'utf-8) (set-terminal-coding-system 'utf-8) it became troublesome to add accents in plot legends/titles. My guess is that is an R related problem. I tried changing the coding system in R but it seems to be bound to the OS encoding (i'm using Windows btw). I should have said it: I'm on Windows as well. Since all my Emacs files (Org files included) are encoded in UTF-8, i simply replace the troublesome characters with their Unicode equivalent. And, by default, I'm using UTF-8 everywhere... Following your example: title(Élève) becomes: title(\U00C9l\U00E8ve) This site might help in looking for specific codes: http://www.utf8-chartable.de/ OK, I can imagine that workaround works, but I really can't resolve to type such esoteric characters in my Org buffers, really. I'd well be enclined to convert my buffers to ISO Latin 1, would it resolve the problem -- but I did not find any solution with Latin 1 either. Best regards, Seb -- Sebastien Vauban
Re: [O] how to prevent html export from including the default javascript?
On 2013-12-05 03:56, Gijs Hillenius wrote: Hello I have trouble finding the correct explanation in ox-html.el.gz and searching on the web. I'm trying to tell the html exporter *not* to include the !--/*--![CDATA[/*!--*/ ... javascript I'm trying to use the #+OPTIONS: to define this for a given foo.org file. The correct options setting (for org v8) is =html-scripts:nil=. If you run org export dispatch, and insert the html header, it will give you all the default options. ie: C-c C-e # html RET rick
Re: [O] Can't write accents in R graphics
On Dec 5, 2013 4:35 AM, Sebastien Vauban sva-n...@mygooglest.com wrote: #+TITLE: ECM Process Coding System #+PROPERTY: eval yes #+PROPERTY: exports both #+PROPERTY: cache no * Problem I can't write accents in graphic titles (nor legends). * Settings After Googling (a lot), I always come back to the same set of solutions: - Adding the following in my ~.emacs~ file: #+begin_src emacs-lisp (setq process-coding-system-alist '((R.* . utf-8-unix))) #+end_src #+begin_src emacs-lisp (add-hook 'ess-R-post-run-hook (lambda () (set-buffer-process-coding-system 'utf-8-unix 'utf-8-unix))) #+end_src - Setting the process coding system in the =*R*= buffer: #+begin_src emacs-lisp M-x set-buffer-process-coding-system RET utf-8-unix RET utf-8-unix RET #+end_src None of those does work for me, from an Org file... * Example ** Text Print a string does always work, in the Org buffer, and in the export. #+begin_src R print(Élève) #+end_src #+results: : Élève ** Graph But adding a title with accents never does: #+header: :file ecm-R-coding-system.png #+begin_src R :results graphics :width 240 :height 240 x - 0:12 plot(sin(x/2)) title(Élève) #+end_src #+results: [[file:ecm-R-coding-system.png]] * Observations You can see a demo of (some of) the tests I made on http://screencast.com/t/7Nz87zuqiz. Maybe the problem is not related neither to Org, nor ESS, as I see that =sessionInfo()= outputs French stuff. Maybe some of the R users here could share their experience with the coding system configuration? Can you do it straight from R? Might be a better place to start? If not, I'd look into that first to avoid googling org and ESS stuff in vain! John Best regards, Seb -- Sebastien Vauban
[O] electric-pair-mode
I am a new user of org-mode. But I have used electric-pair-mode for quite a long time, and marking some text and hitting left parenthesis to parenthesize the marked text has become second nature. However, if I try this in an org-mode buffer, it erases the marked text and replaces it with the backwards pair )( instead. Not useful! So is there a way to make org-self-insert-command compatible with electric-pair-mode? – Harald
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
AW writes: #!/bin/bash env WINEPREFIX=/home/AW/.wine-office wine C:\windows\command\start.exe /Unix /home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk On the command line word.sh works. But in .emacs the lines (add-to-list 'org-file-apps '(\\.docx . exec /home/AW/bin/word.sh %s)) don't. What am I doing in the wrong way? exec is a shell built-in. Try: --8---cut here---start-8--- #!/bin/sh exec WINEPREFIX=/home/AW/.wine-office \ wine C:\windows\command\start.exe /Unix \ /home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk --8---cut here---end---8--- Then drop the exec from the emacs association to docx. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra
Re: [O] #+PROPERTY: for babel header args worked... then it didn't
James Harkins writes: Now I'm working on a short article-class document, and I included the same #+PROPERTY at the top, and... no effect. But... *the lines are identical*. ?? Did you C-c C-c the configuration lines (or reverted the document)? Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] [babel] how to pass data to gnuplot from another block
Eric Schulte schulte.e...@gmail.com writes: [...] I'm not familiar with ob-octave, but I'd imagine :results vector should do the trick. Nope. Unfortunately, this doesn't work. If the result I want is what is actually output by octave, then this ignores that output. If I put :results output vector, this doesn't work either for chaining although at least the results come out looking right. Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.3c-266-g7a726d
Re: [O] Export all radio tables off a document
Hi, * Thu, 05 Dec 2013 18:50:53 +0100, garr...@lal.in2p3.fr: Hi, I asked the same question sometimes ago http://www.mail-archive.com/emacs-orgmode@gnu.org/msg64189.html and Carsten posted this answer which is still working for me (defun my-org-send-all-tables () (interactive) (org-table-map-tables (lambda () (orgtbl-send-table 'maybe very very nice, it works ! Thank you very much! It's a bit slow but that's not a problem!! I'm working with Auctex here and the code is not indented after exporting the tables. Would it be possible to expand the macro so that it automatically indents the code -- in Auctex this is C-c C-q C-e ? If not, no problem but I think this would be a nice feature :-) Regards Thorsten Grothe
Re: [O] bug with :wrap when exporting
Alan Schmitt writes: I tried to do this, and do a make clean to make sure old elc files would not be picked up, but then export fails with You would want to do make uncompiled and also (require 'org-loaddefs). Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves
[O] Org mode and shunt exporters?
Has anyone written any new-style exporter which will produce a common markup/data language format like JSON or YAML? I'm looking for something that fully preserves the original org document structure and does no semantic interpretation along the way. What I really want is to parse arbitrary org files in Python. I've looked at the entries at worg's org-tool node which do this but they seem out of date or make assumptions about what org elements exist or their URLs are not loading (NEO). If any of that's a misrepresentation please correct me. In any case, using org's own exporter to produce JSON or YAML and then relying on these format's Python modules for parsing seems like the best way to go to let me author in org and process in Python. I'm not very good with elisp (which is why I want to get org data into Python) but I guess I can have a go at making such a shunt exporter. Before I try, I just wanted to check if someone had this wheel already spinning. Thanks, -Brett. pgpOHJn2FZTRp.pgp Description: PGP signature
Re: [O] Set org-file-apps to open a *.doc file under linux with Word ?
Nick Dokos ndo...@gmail.com writes: Off the top of my head, I would say (add-to-list 'org-file-apps '(\\.doc . env WINEPREFIX=\/home/AW/.wine-office\ wine \C:\\windows\\command\\start.exe\ /Unix \/home/AW/.wine-office/dosdevices/c:/users/AW/Start Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk\)) i.e. just the command you provided enclosed in double quotes, except that certain characters within have to be escaped: The easiest way to get the same effect is to use M-x customize-variable RET org-file-apps RET and specify a command. Once it is saved, the .emacs will have the resulting nightmarish string :-) Another way to quote a string would be to use M-x pp-eval-expression RET (read-string Enter string: ) RET and copy-paste the output from *Pp Eval Output* to .emacs or .el file.
[O] feature request/discussion: org-forms
I've found on some occasions that I wish for the ability to simply export my org-mode notes, (procedural instructions, status/inventory tables, work log) into a simple fill-able form, (w/ content derived from the enclosed content and properties), and either print it or record inputs directly through the form in some organized way, (to a table perhaps) [fn:1] into emacs. It might operate something like a simplified Google Docs Forms [fn:2], as a conceptual example. Since I'm not capable to do this myself I'm not compelling anyone else to work on it. I just wanted to see if this (1) already existed in some way, (2) could motivate/unify any more capable interest, or (3) was something that I could assist in bringing to existence. Cheers, Nick [fn:1] org-agenda-columns is a good example upon which to model the data presentation/interaction [fn:2] [[http://www.youtube.com/watch?v=IzgaUOW6GIs][features-demo]]
Re: [O] Export all radio tables off a document
On Thu, Dec 05, 2013 at 09:14:09PM +0100, Thorsten Grothe wrote: Hi, * Thu, 05 Dec 2013 18:50:53 +0100, garr...@lal.in2p3.fr: Hi, I asked the same question sometimes ago http://www.mail-archive.com/emacs-orgmode@gnu.org/msg64189.html and Carsten posted this answer which is still working for me (defun my-org-send-all-tables () (interactive) (org-table-map-tables (lambda () (orgtbl-send-table 'maybe very very nice, it works ! Thank you very much! It's a bit slow but that's not a problem!! I'm working with Auctex here and the code is not indented after exporting the tables. Would it be possible to expand the macro so that it automatically indents the code -- in Auctex this is C-c C-q C-e ? The lambda bit in the above snippet is a function that operates on all tables one at a time. If you can reliably select the exported table, you can call indent-region (or whatever special function AucTeX might use) to indent it. Maybe a nice simple lisp project to get started programming in lisp? ;) GL, -- Suvayu Open source is the future. It sets us free.
Re: [O] #+PROPERTY: for babel header args worked... then it didn't
Achim Gratz Stromeko at nexgo.de writes: James Harkins writes: Now I'm working on a short article-class document, and I included the same #+PROPERTY at the top, and... no effect. But... *the lines are identical*. ?? Did you C-c C-c the configuration lines (or reverted the document)? Argh... that must have been it. No, I didn't. Out of curiousity, will C-c also work for #+startup: beamer lines? Refresh setup current buffer is kind of annoying :) Re: Sebastian's question, it couldn't be a regression. I rendered the beamer document on Wednesday, no problem, and created the problem document on Thursday. No git updates in between. I'm sure Achim's answer is what I missed. hjh
Re: [O] probable caching bug?
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Eric Abrahamsen e...@ericabrahamsen.net writes: While editing a plain list yesterday I noticed what I guess was a bug in the caching mechanism. It looks like it, indeed. The list item was wrapped to several lines, and I noticed that calling C-e while on the last line gave me wrong-type-argument integer-or-marker-p nil. Trying to fill the item with M-q gave me user-error: An element cannot be parsed line 635. [...] Unfortunately, the source of the cache corruption may be totally unrelated to the action triggering the error. Thus, cache bugs are quite hard to reproduce. When hunting down one of them, I usually call the following function after each non-trivial buffer modification. (defun ngz-random-test (optional n contextp) (save-excursion (dotimes (k (or n 100)) (goto-char (1+ (random (point-max (let ((real-element (let (org-element-use-cache) (if contextp (org-element-context) (org-element-at-point) (or (equal real-element (if contextp (org-element-context) (org-element-at-point))) (message `%s' at %d is corrupted. (org-element-type real-element) (org-element-property :begin real-element))) BTW, is your Org recent? I fixed a similar problem (i.e. cache corruption in lists) about two weeks ago in commit 4466af5c115b56377d7251e848860dc03212c583. Yes, it's up to date -- after I sent this message I started wondering if it had been a while since I updated, so I pulled and reloaded, and not long after that saw the bug again. I expect to see this again, so I can run the function above, but will reporting the results be of any use to you? If I know which element is corrupted, what should I be reporting back? E
Re: [O] Org mode and shunt exporters?
Brett Viren b...@bnl.gov writes: Has anyone written any new-style exporter which will produce a common markup/data language format like JSON or YAML? I'm looking for something that fully preserves the original org document structure and does no semantic interpretation along the way. What I really want is to parse arbitrary org files in Python. I've looked at the entries at worg's org-tool node which do this but they seem out of date or make assumptions about what org elements exist or their URLs are not loading (NEO). If any of that's a misrepresentation please correct me. In any case, using org's own exporter to produce JSON or YAML and then relying on these format's Python modules for parsing seems like the best way to go to let me author in org and process in Python. I'm not very good with elisp (which is why I want to get org data into Python) but I guess I can have a go at making such a shunt exporter. Before I try, I just wanted to check if someone had this wheel already spinning. Thanks, -Brett. You can use `org-element-parse-buffer' to convert an Emacs Buffer to a structured Emacs Lisp object. At that point you can use existing tools for converting lisp to JSON or YAML. I've used cl-json for Common Lisp, I would imagine something similar exists for Emacs Lisp. -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
[O] how to adjust vertical spacing between lines in a simple list, pdflatex export
In LaTeX, I would typically use the enumitem package, and then start an itemized list with \begin{itemize}[itemsep= ] where itemsep could equal whatever spacing I wanted. How do I change the inter-item vertical spacing (specifically, decrease it) in org-mode with pdflatex export? Thanks. --Chris Ryan
Re: [O] how to adjust vertical spacing between lines in a simple list, pdflatex export
On Thu, Dec 5, 2013 at 8:27 PM, Christopher W. Ryan cr...@binghamton.edu wrote: In LaTeX, I would typically use the enumitem package, and then start an itemized list with \begin{itemize}[itemsep= ] where itemsep could equal whatever spacing I wanted. How do I change the inter-item vertical spacing (specifically, decrease it) in org-mode with pdflatex export? If I follow correctly, you're saying that enumitem works in raw LaTeX and you want to use it via Org-mode? If so, can you get by with applying document-wide settings in the .org file header? #+latex_header: \usepackage{enumitem} #+latex_header: \setlist or \setenumerate [global options you want applied][1] Or do you need control at the level of specific itemized groupings, and thus document-wide settings wouldn't work for your situation? Hope that helps? John [1] Like this: http://tex.stackexchange.com/questions/75578/how-to-change-list-settings-globally Thanks. --Chris Ryan
Re: [O] how to adjust vertical spacing between lines in a simple list, pdflatex export
Aloha Chris, Christopher W. Ryan cr...@binghamton.edu writes: In LaTeX, I would typically use the enumitem package, and then start an itemized list with \begin{itemize}[itemsep= ] where itemsep could equal whatever spacing I wanted. How do I change the inter-item vertical spacing (specifically, decrease it) in org-mode with pdflatex export? You'll need to make certain enumitem is loaded. Then, this should work: #+ATTR_LATEX: :options itemsep=1pt - One - Two - Three \begin{itemize}[itemsep=1pt] \item One \item Two \item Threee \end{itemize} % Emacs 24.3.1 (Org mode 8.2.3c) All the best, Tom -- Thomas S. Dye http://www.tsdye.com