[O] CV, org-mode, and pdf
Dear org-mode community, A year ago, there was a thread here, started by Rainer Krug, on using org-mode to produce nice looking CVs. I had contributed once to that thread, offering a broken example of what I do. Then I dropped out of sight. Now I'm finally getting around to filling in the blanks, should anyone still be interested. There are two pieces to my solution: first, setting up org-mode with a new latex class, "cv"; and then including certain lines at the top of the org file that contains the CV. Here's are some elisp commands that will effect the first step: (require 'ox-latex) (add-to-list 'org-latex-classes '("cv" "\\documentclass[10pt]{article} \\usepackage[margin=.75in]{geometry} \\usepackage[T1]{fontenc} \\usepackage{sectsty} \\sectionfont{\\normalsize\\fontfamily{phv}\\slshape} \\renewcommand*\\oldstylenums[1]{{\\fontfamily{fxlj}\\selectfont #1}}" ("\\section{%s}" . "\\section*{%s}")) t) (customize-variable 'org-latex-classes) then save the customization. And here's what I include at the top of my cv.org: #+OPTIONS: author:nil timestamp:nil #+TITLE: #+DATE: #+LaTeX_CLASS: cv #+BEGIN_LATEX \begin{flushleft} \bfseries\Large Curriculum Vitae\hfill Daniel M. Griswold\normalfont \end{flushleft} \vspace{-12pt}% \begin{flushright} 69 Stratton Road\\ Rochester, NY 14610\\ (585) xxx-\\ dgris...@x.com\\ \hrulefill \end{flushright} #+END_LATEX Within the org file, I use top level headings (single bullet) for major sections, such as: * Education * Areas of Specialization * Areas of Competence * Employment History * Publications * Honors and Awards and then within each of those sections I use unordered lists for the relevant details, such as * Education - Ph. D., Southern Methodist University, Dallas, Texas, 2010 - M. Div., Union Theological Seminary in Virginia, Richmond, Virginia, 1991 - A. B., Hope College, Holland, Michigan, 1986 With all this in place, I export to pdf and end up with something like the attached pdf. I really like managing my CV this way. It's very easy to keep track of what's what and to move things around. I hope this helps someone who is still looking for a way to manage CVs in org. Cheers, Dan Griswold Rochester, NY cvdemo.pdf Description: Adobe PDF document
Re: [O] two sets of default header arguments for one language
On 2015-09-11 11:36, Alan Schmittwrites: > On 2015-09-11 00:39, "Charles C. Berry" writes: > Is there a way to have two sets of default arguments for a given language, or can I declare a new language just for the sake of different arguments? >>> >>> I'd use two new `languages'. >>> >>> For most uses, I think you can get away with as little as this: >>> >>> (defalias 'org-babel-execute:ocaml-a 'org-babel-execute:ocaml) >>> (defalias 'org-babel-execute:ocaml-q 'org-babel-execute:ocaml) >>> >>> (defvar org-babel-default-header-args:ocaml-a >>> '((:exports . "results") [fill in the rest] )) >>> (defvar org-babel-default-header-args:ocaml-q >>> '((:tangle . "tp1.ml"))) >>> >>> >>> and have acceptable behavior without stepping on the original language. >> >> >> You also want to customize `org-src-lang-modes' to be able to edit the src >> code natively. > > Very nice! I’ll give it a try. Thanks a lot, I would like to report that this worked perfectly and out of the box. Thanks a lot! Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 Last week athmospheric CO₂ average (Updated September 13, 2015, Mauna Loa Obs.): 397.77 ppm signature.asc Description: PGP signature
Re: [O] Scheme code block gives false error message
Lawrence Bottorffwrites: > I think this > (https://mobiusengineering.wordpress.com/2015/01/11/using-emacs-org-with-mit-scheme/) > describes my problem. Basically, it's with ob-scheme.el. The article > seems to say that my problem is scheme stuff being handled improperly > by the elisp of ob-scheme.el. Yes, that sounds right. > I'll try his workaround and see if it works. He also seems to believe Scheme > is a second-class > citizen in babel-land. > -- Nick
Re: [O] CV, org-mode, and pdf
On Monday, 14 Sep 2015 at 10:31, Dan Griswold wrote: > Dear org-mode community, > > A year ago, there was a thread here, started by Rainer Krug, on using > org-mode to produce nice looking CVs. [...] > There are two pieces to my solution: first, setting up org-mode with a new > latex class, "cv"; and then including certain lines at the top of the org > file that contains the CV. I do something similar, including your use of top level headings for the major sections. However, I use koma-script's article class (scrartcl, my default latex class) and then have the following in my org file: #+begin_src org ,#+latex_header: \usepackage{fancyhdr} ,#+latex_header: \usepackage[includefoot,margin=2cm]{geometry} # Change the section headings to stand out a little more ,#+latex_header: \usepackage{titlesec} ,#+latex_header: \titleformat{\section}{\Large\bfseries}{}{0pt}{\color{blue}\centering}[\hrule] ,#+latex_header: \titleformat{\subsection}{\large\bfseries}{}{0pt}{\color{blue}} # remove boxes etc. from links as they look ugly on a printed document ,#+latex_header: \hypersetup{colorlinks=true,linkcolor={black},citecolor={black},pagecolor={black}, urlcolor={black}} ,#+latex_header: \pagestyle{fancy} \fancyhead{} \renewcommand{\headrulewidth}{0pt} \fancyfoot{} \lfoot{Curriculum Vitae} \cfoot{} \rfoot{Eric S Fraga -- \thepage} \thispagestyle{empty} ,#+latex_header: \setlength{\parindent}{0pt} ,#+latex_header: \setlength{\parskip}{5pt} ,#+latex_header: \sloppy #+end_src I could have put all of these in a separate org latex class but since it's a one-use class, I thought it made more sense to have the customisations in the org file. YMMV, of course ;-) As my cv is rather long, I put a table of contents on the second page after all of my personal details. For my list of publications, I use the =etaremune= (enumerate backwards) environment, as in: #+begin_src org ,#+latex_header: \usepackage{etaremune} (much later) ,#+attr_latex: :environment etaremune 1. most recent publication 2. older one 3. and so on #+end_src HTH (somebody), eric -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-234-g8c85c9
Re: [O] Scheme code block gives false error message
So it looks like Scheme is not a Babel language after all. Is there a formal "bug report" to do? On Mon, Sep 14, 2015 at 1:39 PM, Nick Dokoswrote: > Lawrence Bottorff writes: > > > I think this > > ( > https://mobiusengineering.wordpress.com/2015/01/11/using-emacs-org-with-mit-scheme/ > ) > > describes my problem. Basically, it's with ob-scheme.el. The article > > seems to say that my problem is scheme stuff being handled improperly > > by the elisp of ob-scheme.el. > > Yes, that sounds right. > > > I'll try his workaround and see if it works. He also seems to believe > Scheme is a second-class > > citizen in babel-land. > > > > -- > Nick > > >
[O] remote plot with local output?
Dear All, I am looking for a way to configure org-babel so that a program runs remotely and outputs locally. An example is #+NAME: line | 1 | | 2 | | 3 | #+BEGIN_SRC python :results file :var dt=line :dir /ipmuap02:/tmp from matplotlib import pylab as plt plt.plot(dt) plt.savefig("line.png") return "line.png" #+END_SRC #+RESULTS: [[file:/scp:ipmuap02:/tmp/line.png]] I would like to embed this figure into my note. The example above need to fetch the figure from the remote host on each exportation, which is very sensitive to the network environment. I cannot make the plot locally, because (unlike the over-simplified example) some potentially big data are only available remotely. My solution is to cache the result (:cache yes), execute the code block, copy the output file to localhost, update the #+RESULTS link to the local one, manually. Now I am facing many such tasks and feel like automating that. What is the recommended way for copying the file output from an remote execution code block back to localhost? BTW, my org-mode is 8.3.1 and emacs is 24.4.1. Cheers, Benda
[O] Limit on macro snippet size?
Aloha all, I couldn't find any information on this in the manual or the mailing list, though I vaguely recall some discussion on the list a while back. Is there a limit on the length of text that a macro like this will process? #+MACRO: green \textcolor{PaleGreen4}{$1} I have 2 and 3 line sections of text passed to $1 that worked last spring, but fail now. All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Limit on macro snippet size?
Hi Tom, On Mon, Sep 14, 2015 at 06:40:48AM -1000, Thomas S. Dye wrote: > > I couldn't find any information on this in the manual or the mailing > list, though I vaguely recall some discussion on the list a while back. > > Is there a limit on the length of text that a macro like this will > process? > > #+MACRO: green \textcolor{PaleGreen4}{$1} > > I have 2 and 3 line sections of text passed to $1 that worked last > spring, but fail now. Are you sure? Here is a 3 line macro that seems to work fine for me: non-uniform acceptance ratio. {{{note(Add note on RICH detectors relying on exactly this feature to discriminate between particle species.,inline)}}} I have attached a screenshot of the relevant part of the output pdf to show it actually works. How does the failure happen, what do you see in the exported file? Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] Limit on macro snippet size?
On Monday, 14 Sep 2015 at 06:40, Thomas S.Dye wrote: > Aloha all, > > I couldn't find any information on this in the manual or the mailing > list, though I vaguely recall some discussion on the list a while back. > #+MACRO: green \textcolor{PaleGreen4}{$1} > Is there a limit on the length of text that a macro like this will > process? probably... (others will answer, I'm sure) Instead, I wonder whether it wouldn't just be easy enough to do: #+begin_src org ,#+latex: \textcolor{PaleGreen4}{ all of your text that can be several lines ,#+latex: } #+end_src Less fragile, so long as there are no paragraph breaks maybe... -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-234-g8c85c9
Re: [O] Limit on macro snippet size?
Eric S Fragawrites: > Less fragile, so long as there are no paragraph breaks maybe... But much less portable. I think the limitation is that no newlines are allowed, but I did not check the source. Rasmus Example: #+macro: identity foo-$1 {{{identity(Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec iaculis orci nec nunc viverra dictum. Quisque interdum dolor metus, non consectetur velit pulvinar nec. Ut elementum, mi sed scelerisque convallis, sem neque euismod ligula, vel consectetur mauris massa quis magna. Morbi maximus ante ut justo placerat, in posuere nulla auctor. Sed dapibus eros et augue interdum, in eleifend libero tincidunt. Nunc tortor lorem, placerat non ultrices non, rutrum ut dui. Etiam quam ex, dictum in nunc id, aliquam blandit urna. Cras efficitur scelerisque erat in porta. Ut egestas scelerisque neque et elementum. Duis in ligula vel ante sodales dapibus dapibus fermentum mi. Nullam ipsum nunc, sodales eget felis eget, porttitor rutrum felis. Duis tincidunt lectus ut augue porttitor sollicitudin. Morbi sit amet nisl sodales, pulvinar dolor sollicitudin, placerat nisl. Integer non consectetur purus.)}}} {{{identity(a b c d e f g h i j k l m)}}} {{{identity(a b)}}} -- Governments should be afraid of their people
Re: [O] remote plot with local output?
On Tue, Sep 15, 2015 at 12:11:03AM +0900, Benda Xu wrote: > > My solution is to cache the result (:cache yes), execute the code block, > copy the output file to localhost, update the #+RESULTS link to the > local one, manually. Now I am facing many such tasks and feel like > automating that. Maybe, you could do all that in your python source block? You could use the :file header to specify where the plot gets copied to on the local filesystem. WDYT? -- Suvayu Open source is the future. It sets us free.
Re: [O] create vector-graphics with org-babel
On Wed, Sep 09, 2015 at 09:50:58AM +0200, Max Linke wrote: > Hi > > I'm trying to use vector graphics in my org document > > #+BEGIN_SRC ipython :session :file iso.svg :exports results > x = np.linspace(0, 10, 100) > y = np.sin(x) > plt.plot(x, y) > #+END_SRC > > I can run this cell with 'C-c C-c' but I can't export it to latex > because it says that svg is currently not supported. Is there a way > to include svg (or another type of vector graphics) export into my > document. If you want vector graphics, but do not care about the specific type of vector graphics, you can always use pdf. IIUC, you are using matplotlib. So pdfs are supported, just configure PdfPages from matplotlib.backends.backend_pdf. Cheers, -- Suvayu Open source is the future. It sets us free.
Re: [O] Limit on macro snippet size?
On Mon, Sep 14, 2015 at 07:24:52PM +0200, Rasmus wrote: > Eric S Fragawrites: > > > Less fragile, so long as there are no paragraph breaks maybe... > > But much less portable. > > I think the limitation is that no newlines are allowed, but I did not > check the source. But it works with newlines for me; see my reply to the original message. -- Suvayu Open source is the future. It sets us free.
[O] inter-word space in org -> latex
Dear org-mode community, In LaTeX, a space after a period is treated as an inter-sentence space, which is wider than an inter-word space. This can lead to overly wide spacing after a period that ends an abbreviation rather than a space. The way to cover this in LaTeX is to use a backslash prior to the space, as in: Mr.\ Henry Higgins. I have some documents in org that have the same issue: periods concluding abbreviations, with the result that LaTeX puts more space than I want after the abbreviation. Yet the use of "\ " does not work, as the backslash is exported to LaTeX as a literal backslash. How should I mark in org mode that I want a space following a period concluding an abbreviation to be seen by LaTeX as an interword space? Thanks, Dan
Re: [O] inter-word space in org -> latex
On Mon, Sep 14, 2015 at 10:42:25AM -0400, Dan Griswold wrote: > Dear org-mode community, > > In LaTeX, a space after a period is treated as an inter-sentence space, > which is wider than an inter-word space. This can lead to overly wide > spacing after a period that ends an abbreviation rather than a space. The > way to cover this in LaTeX is to use a backslash prior to the space, as in: > > Mr.\ Henry Higgins. > > I have some documents in org that have the same issue: periods concluding > abbreviations, with the result that LaTeX puts more space than I want after > the abbreviation. Yet the use of "\ " does not work, as the backslash is > exported to LaTeX as a literal backslash. > > How should I mark in org mode that I want a space following a period > concluding an abbreviation to be seen by LaTeX as an interword space? You can use entities. Maybe something like this: (setq org-entities-user ; can also use "\ " '(("space" "~" nil "" " " " " " "))) Then the following: Mr.\space{}Henry Higgins. exports as: Mr.~Henry Higgins. Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] inter-word space in org -> latex
Hi Dan, Dan Griswoldwrites: > Dear org-mode community, > > In LaTeX, a space after a period is treated as an inter-sentence space, > which is wider than an inter-word space. This can lead to overly wide > spacing after a period that ends an abbreviation rather than a space. The > way to cover this in LaTeX is to use a backslash prior to the space, as in: > > Mr.\ Henry Higgins. > > I have some documents in org that have the same issue: periods concluding > abbreviations, with the result that LaTeX puts more space than I want after > the abbreviation. Yet the use of "\ " does not work, as the backslash is > exported to LaTeX as a literal backslash. > > How should I mark in org mode that I want a space following a period > concluding an abbreviation to be seen by LaTeX as an interword space? .@@latex:\ @@ Though I practice I type double space after full sentences and when there's a single space and small letters. (defun rasmus/org-latex-filter-nobreaks-double-space (text backend info) "Tries to export \"S1. S2\" as \"S1.\\ S2\", while letting \"S1. S2\" be exported without tilde" ;; TODO: error with this output: ;; [[file:nasty dir/Screenshot. from 2015-03-05 19:05:00.png]] (when (and text (org-export-derived-backend-p backend 'latex)) (let ((preamble (or (string-match-p "begin{document}" text) 0)) (case-fold-search nil)) (concat (substring text 0 preamble) (replace-regexp-in-string "\\. \\([^ A-Z\n]\\)" ". \\1" (substring text preamble)) (add-to-list 'org-export-filter-final-output-functions 'rasmus/org-latex-filter-nobreaks-double-space) Or, (defcustom rasmus/org-latex-unicode-to-tex '((" " "~") (" " "\\,") ("" "")) "list of re rep pairs which are replaced during latex export") (defun rasmus/org-latex-unicode-to-tex (text backend info) "Replace unicode strings with their TeX equivalents. Currently: ' ' (no break space) to '~' ' ' (thin space) to '\,' '' (zero width space) to ''." (when (org-export-derived-backend-p backend 'latex) (cl-loop for (re rep) in rasmus/org-latex-unicode-to-tex do (setq text (replace-regexp-in-string re rep text t t))) text)) (add-to-list 'org-export-filter-final-output-functions 'rasmus/org-latex-unicode-to-tex) Rasmus -- I hear there's rumors on the, uh, Internets. . .
Re: [O] Limit on macro snippet size?
Hi Suvayu, Suvayu Aliwrites: > Hi Tom, > > On Mon, Sep 14, 2015 at 06:40:48AM -1000, Thomas S. Dye wrote: >> >> I couldn't find any information on this in the manual or the mailing >> list, though I vaguely recall some discussion on the list a while back. >> >> Is there a limit on the length of text that a macro like this will >> process? >> >> #+MACRO: green \textcolor{PaleGreen4}{$1} >> >> I have 2 and 3 line sections of text passed to $1 that worked last >> spring, but fail now. > > Are you sure? Here is a 3 line macro that seems to work fine for me: > > non-uniform acceptance ratio. {{{note(Add note on RICH detectors > relying on exactly this feature to discriminate between particle > species.,inline)}}} > > I have attached a screenshot of the relevant part of the output pdf to > show it actually works. How does the failure happen, what do you see in > the exported file? \textcolor{PaleGreen4}\{the only weapons they had were a few stones in some of the Canoes and these they threw overboard when they found they were not wanted\}. Note the curly brackets are escaped. Not sure why ... Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Limit on macro snippet size?
Hey Tom, On Mon, Sep 14, 2015 at 07:34:39AM -1000, Thomas S. Dye wrote: > Suvayu Aliwrites: > > > show it actually works. How does the failure happen, what do you see in > > the exported file? > > \textcolor{PaleGreen4}\{the only weapons they had were a > few stones in some of the Canoes and these they threw overboard > when they found they were not wanted\}. > > Note the curly brackets are escaped. Not sure why ... Easy-peasy! Org recognises the first {..} as part of a latex command, not the later. You need snippets. I always use them to make export more robust. Try this: #+macro: green @@l:\textcolor{PaleGreen4}{@@$1@@l:}@@ Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] Limit on macro snippet size?
On Mon, Sep 14, 2015 at 07:40:24PM +0200, Suvayu Ali wrote: > Hey Tom, > > On Mon, Sep 14, 2015 at 07:34:39AM -1000, Thomas S. Dye wrote: > > Suvayu Aliwrites: > > > > > show it actually works. How does the failure happen, what do you see in > > > the exported file? > > > > \textcolor{PaleGreen4}\{the only weapons they had were a > > few stones in some of the Canoes and these they threw overboard > > when they found they were not wanted\}. > > > > Note the curly brackets are escaped. Not sure why ... > > Easy-peasy! Org recognises the first {..} as part of a latex command, > not the later. You need snippets. I always use them to make export > more robust. Try this: > > #+macro: green @@l:\textcolor{PaleGreen4}{@@$1@@l:}@@ Btw, this happens because of the newlines of course :). -- Suvayu Open source is the future. It sets us free.
Re: [O] Limit on macro snippet size?
Hi Suvayu, Suvayu Aliwrites: >> > #+macro: green @@l:\textcolor{PaleGreen4}{@@$1@@l:}@@ >> >> This doesn't work for me. The latex output isn't marked up, but the >> text passed to $1 appears in the tex file. > > Sorry, I have a shortcut for latex snippets to l. Try replacing the l > with latex: > > #+macro: green @@latex:\textcolor{PaleGreen4}{@@$1@@latex:}@@ @@Perfect.@@ Many thanks! All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Scheme code block gives false error message
On Mon, Sep 14, 2015 at 6:55 PM, Nick Dokoswrote: > > So it looks like Scheme is not a Babel language after all. > > What do you mean? There is an ob-scheme.el but it's buggy: I suspect > that every ob-*.el is buggy to some extent. Does that mean that every > language that babel supports is not a babel language? > I only mean it can't be used as it now is. I was only three simple example code snippets into this when it proved inoperable. I wanted to use it as a study aid for HTDP or SICP or one of the other Scheme tutorials . . . as in make some personal comments around code samples. > > > Is there a formal "bug report" to do? > > Well, whether a formal bug report will help is not clear: it's probably > best that one be submitted if only for documentation purposes, but > whether it will be addressed or not very much depends on somebody > picking it up and fixing it. You might be able to persuade "Möbius" > to sign FSF papers and submit his implementation (but note that there > are limitations there, as mentioned on the page you linked - so there > will be bugs...) > > I keep putting off learning elisp. Maybe this is the "Schub" I need. You know, stop being such a needy org-mode tourist and start being a local. :-)
[O] Bug: org-mime-htmlize fails [8.3.1 (8.3.1-103-g366dc4-elpa @ /home/oub/.emacs.d/elpa/org-20150907/)]
Hello For the following example, $$w∈ {C([0,T];H_{s,\delta} : \|w(0,\cdot )\|_{H_{s,\delta}} \leq M_0, w(t,x)\leq 0}$$ org-mime-htmlize fails with the following message Failed to create dvi file from /tmp/orgtex2867k_U.tex The above example works for Xemacs 21.5.34 and org 7.8.03!! Emacs : GNU Emacs 25.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2015-08-28 Package: Org-mode version 8.3.1 (8.3.1-103-g366dc4-elpa @ /home/oub/.emacs.d/elpa/org-20150907/) current state: == (setq org-entities-user '(("implies" "\\Rightarrow" t "" "=>" "=>" "⇒") ("iff" "\\iff" t "" "<=>" "<=>" "⇔")) outline-mode-hook '(hide-body) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-latex-format-headline-function 'org-latex-format-headline-default-function org-pretty-entities t org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-babel-pre-tangle-hook '(save-buffer) org-return-follows-link t org-occur-hook '(org-first-headline-recenter) org-html-format-headline-function 'org-html-format-headline-default-function org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-latex-format-drawer-function '(lambda (name contents) contents) org-load-hook '(my-link-keys) org-highlight-latex-and-related '(latex) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-agenda-include-diary t org-html-with-latex 'dvipng org-mode-hook '(turn-on-flyspell turn-on-auto-capitalize-mode my-org-keys #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-odt-format-drawer-function '(lambda (name contents) contents) org-from-is-user-regexp "\\" org-html-format-drawer-function '(lambda (name contents) contents) org-odt-format-headline-function 'org-odt-format-headline-default-function org-metadown-hook '(org-babel-pop-to-session-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-after-todo-state-change-hook '(org-clock-out-if-current) org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-confirm-shell-link-function 'yes-or-no-p )
Re: [O] Bug: org-toggle-latex-fragment fails, example included [8.3.1 (8.3.1-103-g366dc4-elpa @ /home/oub/.emacs.d/elpa/org-20150907/)]
On Mon, 14 Sep 2015, Uwe Brauer wrote: Hello For the following example, $$w∈ {C([0,T];H_{s,\delta} : \|w(0,\cdot )\|_{H_{s,\delta}} \leq M_0, w(t,x)\leq 0}$$ $$w\in {C([0,T];H_{s,\delta} : \|w(0,\cdot )\|_{H_{s,\delta}} \leq M_0, w(t,x)\leq 0}$$ works for me. Maybe you need some encoding tricks to make your version work? HTH, Chuck
Re: [O] Favorite way of syncing?
Myles Englishwrites: > Eric, > > Eric Abrahamsen writes: > >> Myles English writes: >> >>> https://myrepos.branchable.com >>> https://github.com/RichiH/vcsh >>> http://gitolite.com/gitolite/index.html >> >> Uh oh, I might have to start playing with this! Though there's something >> nice about the morning ritual of going through a bunch of repos and >> updating them. >> >> For doing version control of dotfiles or other collections of >> non-interrelated single files, I've been curious about (but haven't yet >> tried) ESR's src: >> >> http://www.catb.org/~esr/src/ > > Probably worth mentioning this alternative to vcsh: > > https://github.com/capr/multigit > > The only reason I chose vcsh is because it is more popular and I am a > bit a sheep. Thanks :)
Re: [O] Scheme code block gives false error message
Nick Dokoswrites: > N.B. this is with guile: I have not tried chicken, MIT Scheme or any > other scheme implementation. > A comment on SO says that geiser (which is used by ob-scheme) only supports guile and racket, so until that changes, chicken or MIT Scheme won't work: http://stackoverflow.com/questions/26578152/use-mit-scheme-instead-of-guile-for-org-mode-code-block-evaluation -- Nick
Re: [O] Scheme code block gives false error message
Nick Dokoswrites: > Nick Dokos writes: > >> N.B. this is with guile: I have not tried chicken, MIT Scheme or any >> other scheme implementation. >> > > A comment on SO says that geiser (which is used by ob-scheme) > only supports guile and racket, so until that changes, chicken or MIT > Scheme won't work: > > http://stackoverflow.com/questions/26578152/use-mit-scheme-instead-of-guile-for-org-mode-code-block-evaluation Eh, I should have checked the geiser site: it says Racket 6.0 or better Guile 2.0.9 or better Chicken 4.8.0 or better are supported and there is work afoot to support scsh - no mention of MIT Scheme afaict. -- Nick
Re: [O] Org-lint error
Aloha all, Answering myself here. Thomas S. Dyewrites: > Aloha all, > > In the process of tracking down misbehavior during export, I ran > org-lint, which failed with this error: > > Debugger entered--Lisp error: (wrong-number-of-arguments max 0) > max() > apply(max nil) > > I suspect I have some error in my Org mode file that is causing abundant > confusion. This macro definition appears to flummox org-lint: #+MACRO: compactdesc #+attr_latex: :environment compactdesc hth, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Scheme code block gives false error message
Lawrence Bottorffwrites: > On Mon, Sep 14, 2015 at 6:55 PM, Nick Dokos wrote: > > > > So it looks like Scheme is not a Babel language after all. > > What do you mean? There is an ob-scheme.el but it's buggy: I suspect > that every ob-*.el is buggy to some extent. Does that mean that every > language that babel supports is not a babel language? > > I only mean it can't be used as it now is. I was only three simple > example code snippets into this when it proved inoperable. I wanted to > use it as a study aid for HTDP or SICP or one of the other Scheme > tutorials . . . as in make some personal comments around code > samples. > > > Is there a formal "bug report" to do? > > Well, whether a formal bug report will help is not clear: it's probably > best that one be submitted if only for documentation purposes, but > whether it will be addressed or not very much depends on somebody > picking it up and fixing it. You might be able to persuade "Möbius" > to sign FSF papers and submit his implementation (but note that there > are limitations there, as mentioned on the page you linked - so there > will be bugs...) > > I keep putting off learning elisp. Maybe this is the "Schub" I > need. You know, stop being such a needy org-mode tourist and start > being a local. :-) > That would be ideal :-) Did you try the alternative ob-scheme.el? If (when) you do, maybe you can post some comments: would it be worth to pursue replacing the current one with the alternative? -- Nick
[O] babel stopping export after updating to org 8.3
Hi! I just upgraded to org 8.3 and am stuck with an export issue. When I try to export a file with just "#+begin_src" and " "#+end_src" as the only lines, I get the error "user-error: No language for src block: (unnamed)". It seems like it is calling org-babel-exp-process-buffer -- but there is no reason that I can tell that is being called. (org-export-babel-evaluate is definitely nil, thought other testing seems to indicate that shouldn't even matter) I've tried this in a clean "emacs -q" emacs and there is no issue -- but I still have the issue with an empty init.el! Any idea what could be wrong? Thanks!
Re: [O] obtain ob-template.el for Babel language extension
Aloha all, I took the liberty of forwarding Marco's queries to Eric Schulte, the author of ob-template.el. Eric no longer maintains Babel or reads the mailing list, but he replied to the queries as follows: > Marco Maggesiwrites: > >> Hi, >> >> I also have a few questions about ob-template.el >> >> 1. Can we assume that the HEAD version of ob-template.el is adequate as a >> basis for an implementation which is compatible with org version 8.2.xx >> (i.e., with older versions of org-mode)? >> I would look at the latest commit to ob-template, and assume that it was sufficient to concurrent versions of Org-mode. Alternate suitable jumping off points for development of new language extensions would be the more actively used languages. Probably ob-shell is the most general and actively used. >> >> 2. In function org-babel-execute:template functions first, second, third, >> etc are used to extract values from processed-params. However, such >> function are not defined in elisp, (nth N processed-params) should be used >> instead. Is it correct? This may incorrectly assume that cl.el has been loaded. This is where these functions are defined. They should probably be replaced with the less intuitive but more portable car, cadr, caddr, etc... >> >> Also, it seems from other examples that the usual approach is to use >> assoc, e.g., (cdr (assoc ":session" params)). Are there enforced >> conventions that ensure the order in processed-params? >> I'm confused by the two components of this question. First, yes assoc is commonly used as params is an association list, however the order of elements does not matter for an association list. Second, no the order of the elements in processed-params is not guaranteed and you should not write code which makes assumptions about the order of the elements of this list (it is not mentioned in the documentation string of `org-babel-process-params'). >> >> 3. In function org-babel-expand-body:template we assume that vars is a list >> of pairs. However, it seems to me from some experiments that sometimes >> vars contains symbols. Am I wrong? >> :var elements in params should always have the following form. (:var name . value) Their cdr should always be a cons cell whose car is the name of the variable "as a symbol" and whose value is the value of the variable. I hope this helps, Eric Marco Maggesi writes: > Hi, > > I also have a few questions about ob-template.el > > 1. Can we assume that the HEAD version of ob-template.el is adequate as a > basis for an implementation which is compatible with org version 8.2.xx > (i.e., with older versions of org-mode)? > > 2. In function org-babel-execute:template functions first, second, third, > etc are used to extract values from processed-params. However, such > function are not defined in elisp, (nth N processed-params) should be used > instead. Is it correct? > Also, it seems from other examples that the usual approach is to use assoc, > e.g., (cdr (assoc ":session" params)). Are there enforced conventions that > ensure the order in processed-params? > > 3. In function org-babel-expand-body:template we assume that vars is a list > of pairs. However, it seems to me from some experiments that sometimes > vars contains symbols. Am I wrong? > > Thank you, > Marco > > > Il giorno ven 11 set 2015 alle ore 18:03 Thomas S. Dye ha > scritto: > >> Aloha Joe, >> >> Joe Riel writes: >> >> > On Thu, 10 Sep 2015 20:38:12 -1000 >> > Thomas S. Dye wrote: >> > >> >> Aloha Joe, >> >> >> >> Joe Riel writes: >> >> >> >> > How do I get a copy of ob-template.el? >> >> > The file can be viewed at >> http://orgmode.org/w/worg.git/blob/HEAD:/org-contrib/babel/ob-template.el >> >> > however, that is an html file and not the elisp. >> >> > I tried using git to clone http://orgmode.org/w/worg.git >> >> > but that does not work. >> >> >> >> ~$ git clone git://orgmode.org/worg.git >> >> >> >> You should find ob-template.el in org-contrib/babel/ >> > >> > Thanks, that was helpful. Probably mention of that fact >> > should be added to the languages.org file---currently it >> > links directly to the html file which is less useful. >> >> Done. Thanks. >> >> > Are elisp files that implement the languages in worg? >> > I found the *.org files that document them, but not their >> > sources. >> >> The language source files are distributed with Org mode. You can find >> them at lisp/ob-*.el. >> >> hth, >> Tom >> -- >> Thomas S. Dye >> http://www.tsdye.com >> >> -- Thomas S. Dye http://www.tsdye.com
Re: [O] Scheme code block gives false error message
Nick Dokoswrites: > Lawrence Bottorff writes: > >> I think this >> (https://mobiusengineering.wordpress.com/2015/01/11/using-emacs-org-with-mit-scheme/) >> describes my problem. Basically, it's with ob-scheme.el. The article >> seems to say that my problem is scheme stuff being handled improperly >> by the elisp of ob-scheme.el. > > Yes, that sounds right. > >> I'll try his workaround and see if it works. He also seems to believe Scheme >> is a second-class >> citizen in babel-land. >> Actually... I don't know why that (read result) is there at all: result is a string representation of the result that the scheme interpreter returned. It does not make any sense to me that we try to read that and make it into an elisp object: we should just return the string itself. With that change (see attached patch) on more-or-less current master (the exact version is Org-mode version 8.3.1 (release_8.3.1-236-g14f5f6 @ /home/nick/src/emacs/org/org-mode/lisp/), I can evaluate everything that you sent out without any error (see attached file "scheme.org" which includes evaluation results). N.B. this is with guile: I have not tried chicken, MIT Scheme or any other scheme implementation. Thoughts? -- Nick >From 14f5f6312f77b0252f4d29609f996af42c78a938 Mon Sep 17 00:00:00 2001 From: Nick Dokos Date: Mon, 14 Sep 2015 22:51:26 -0400 Subject: [PATCH] Return result, not (read result) from org-babel-scheme-execute-with-geiser --- lisp/ob-scheme.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-scheme.el b/lisp/ob-scheme.el index b10dfc3..c8f7f5e 100644 --- a/lisp/ob-scheme.el +++ b/lisp/ob-scheme.el @@ -172,7 +172,7 @@ is true; otherwise returns the last value." (setq result (if (or (string= result "#") (string= result "#")) nil - (read result) + result result)) (defun org-babel-execute:scheme (body params) -- 2.4.3 #+BEGIN_SRC scheme :session ch1 :exports both (define (check-it x) (cond ((string? x) (string-length x)) ((number? x) (if (<= x 0) x (- x 1))) ((boolean? x) (if (and #t x) 10 20)) (else #f))) #+END_SRC #+RESULTS: #+BEGIN_SRC scheme :session ch1 (define (square x) (* x x)) #+END_SRC #+RESULTS: #+BEGIN_SRC scheme :session ch1 (check-it "Foobar") #+END_SRC #+RESULTS: : 6 #+BEGIN_SRC scheme :session ch1 (square 5) #+END_SRC #+RESULTS: : 25 #+BEGIN_SRC scheme :session ch1 :exports both (define (bool-imply a b) (if (or (not a) b) #t #f)) #+END_SRC #+RESULTS: #+BEGIN_SRC scheme :session ch1 :exports both (bool-imply #t #f) #+END_SRC #+RESULTS: : #f #+BEGIN_SRC scheme :session ch1 :exports both map #+END_SRC #+RESULTS: : #
Re: [O] babel stopping export after updating to org 8.3
Hi Aviv wrote: > Hi! > > I just upgraded to org 8.3 and am stuck with an export issue. > > When I try to export a file with just "#+begin_src" and " "#+end_src" as the > only lines, I get the error > "user-error: No language for src block: (unnamed)". > > It seems like it is calling org-babel-exp-process-buffer -- but there is no > reason that I can tell that is being called. (org-export-babel-evaluate is > definitely nil, thought other testing seems to indicate that shouldn't even > matter) > > I've tried this in a clean "emacs -q" emacs and there is no issue -- but I > still have the issue with an empty init.el! > > Any idea what could be wrong? Thanks! > > You need to specify a language, e.g. #+begin_src foo #+end_src You can use any string for language. However, if you export to latex you want to either a) use a language the LaTeX `listings' package knows about or b) map your language string to a language existing in the `listings' package. I like to put configuration files in src blocks as language `conf', so I added the following to my .emacs file: (add-to-list 'org-latex-listings-langs '(conf " ")) That is, I set the `listings' packages language to a blank (empty string doesn't work) and only generic settings (i.e. no specific language settings) are used when I tex the file. HTH Best regards Robert
Re: [O] remote plot with local output?
On Tue, 15 Sep 2015, Benda Xu wrote: Dear All, I am looking for a way to configure org-babel so that a program runs remotely and outputs locally. An example is #+NAME: line | 1 | | 2 | | 3 | #+BEGIN_SRC python :results file :var dt=line :dir /ipmuap02:/tmp from matplotlib import pylab as plt plt.plot(dt) plt.savefig("line.png") return "line.png" #+END_SRC #+RESULTS: [[file:/scp:ipmuap02:/tmp/line.png]] I would like to embed this figure into my note. The example above need to fetch the figure from the remote host on each exportation, which is very sensitive to the network environment. I cannot make the plot locally, because (unlike the over-simplified example) some potentially big data are only available remotely. My solution is to cache the result (:cache yes), execute the code block, copy the output file to localhost, update the #+RESULTS link to the local one, manually. Now I am facing many such tasks and feel like automating that. What is the recommended way for copying the file output from an remote execution code block back to localhost? Look at the :post header arg (info "(org) post") You write a src block that extracts the remote file name from *this*, creates a local file name from it, copies the remote file to the local host, then substitutes the local file name in *this* and uses it as the return value. Use the name of that src block as the argument to :post HTH, Chuck
Re: [O] Please confirm your message
Le 14/09/15 à 08h36, Gmane Remailer a écrit : > This message was created automatically by mail delivery software (TMDA). > > Your message attached below is being held because the address >has not been verified. > > To release your message for delivery, please send an empty message > to the following address, or use your mailer's "Reply" feature. > > > public-emacs-orgmode-mXXj517/zsq-confirm-1442212612.9320.da9...@plane.gmane.org > > This confirmation verifies that your message is legitimate and not > junk-mail. You should only have to confirm your address once. > > If you do not respond to this confirmation request within 14 days, > your message will not be delivered. > > From: Denis Bitouzé > Subject: Re: Bug: \vert{} exported to markdown not as expected [8.3.1 > (8.3.1-103-g366dc4-elpa @ /home/bitouze/.emacs.d/elpa/org-20150907/)] > To: Nicolas Goaziou > Cc: Denis Bitouzé > , > public-emacs-orgmode-mXXj517/z...@plane.gmane.org > Date: Mon, 14 Sep 2015 08:35:04 +0200 (35 minutes, 18 seconds ago) > > > Le 13/09/15 à 22h47, Nicolas Goaziou a écrit : > >> Denis Bitouzé writes: >> >>> 1. For _, \under{} is necessary since _ at the org mode level is >>>exported as \_. >>> 2. For |, source | could be okay. But I'd like to use strings as above >>>in tables and, AFAIK, the only way to have pipe symbols in a table at >>>the org mode level is to code them \vert{}. And that's the purpose >>>of my bug report, \vert{} is exported as , not as "real" |. >>> >>> In other words, I was happy with \under{} that exports real _ and, >>> IMHO, \vert{} should do the same with |. >> >> Markdown export back-end use :html conventions to translate entities. >> For some reason, HTML prefers over |, and so does markdown. > > and | are displayed the same way but can have different > "meanings". > >> There are a few options available: >> >> 1. Prefer | over in HTML > > Maybe I'm wrong but wouldn't this break backward compatibility? > >> 2. Overwrite "vert" entity with a new one that would do 1. So >> basically, this is 1 but on your machine only. > > The feature I'm requesting may be useful to others. > >> 3. Use a new entity that becomes | when used in HTML export. > > It would be harmless. > >> WDYT? > > The 3rd option looks the best one to me. > > Regards. -- Denis
Re: [O] Please confirm your message
Le 14/09/15 à 09h12, Gmane Remailer a écrit : > This message was created automatically by mail delivery software (TMDA). > > Your message attached below is being held because the address >has not been verified. > > To release your message for delivery, please send an empty message > to the following address, or use your mailer's "Reply" feature. > > > public-emacs-orgmode-mXXj517/zsq-confirm-1442214744.28220.0d5...@plane.gmane.org > > This confirmation verifies that your message is legitimate and not > junk-mail. You should only have to confirm your address once. > > If you do not respond to this confirmation request within 14 days, > your message will not be delivered. > > From: Denis Bitouzé > Subject: Re: Please confirm your message > To: Gmane Remailer > Cc: > public-emacs-orgmode-mXXj517/zsq-confirm-1442212612.9320.da9...@plane.gmane.org > Date: Mon, 14 Sep 2015 09:10:40 +0200 (1 minute, 2 seconds ago) > > > Le 14/09/15 à 08h36, Gmane Remailer > a écrit : > >> This message was created automatically by mail delivery software (TMDA). >> >> Your message attached below is being held because the address >> has not been verified. >> >> To release your message for delivery, please send an empty message >> to the following address, or use your mailer's "Reply" feature. >> >> >> public-emacs-orgmode-mXXj517/zsq-confirm-1442212612.9320.da9...@plane.gmane.org >> >> This confirmation verifies that your message is legitimate and not >> junk-mail. You should only have to confirm your address once. >> >> If you do not respond to this confirmation request within 14 days, >> your message will not be delivered. >> >> From: Denis Bitouzé >> Subject: Re: Bug: \vert{} exported to markdown not as expected [8.3.1 >> (8.3.1-103-g366dc4-elpa @ /home/bitouze/.emacs.d/elpa/org-20150907/)] >> To: Nicolas Goaziou >> Cc: Denis Bitouzé >> , >> public-emacs-orgmode-mXXj517/z...@plane.gmane.org >> Date: Mon, 14 Sep 2015 08:35:04 +0200 (35 minutes, 18 seconds ago) >> >> >> Le 13/09/15 à 22h47, Nicolas Goaziou a écrit : >> >>> Denis Bitouzé writes: >>> 1. For _, \under{} is necessary since _ at the org mode level is exported as \_. 2. For |, source | could be okay. But I'd like to use strings as above in tables and, AFAIK, the only way to have pipe symbols in a table at the org mode level is to code them \vert{}. And that's the purpose of my bug report, \vert{} is exported as , not as "real" |. In other words, I was happy with \under{} that exports real _ and, IMHO, \vert{} should do the same with |. >>> >>> Markdown export back-end use :html conventions to translate entities. >>> For some reason, HTML prefers over |, and so does markdown. >> >> and | are displayed the same way but can have different >> "meanings". >> >>> There are a few options available: >>> >>> 1. Prefer | over in HTML >> >> Maybe I'm wrong but wouldn't this break backward compatibility? >> >>> 2. Overwrite "vert" entity with a new one that would do 1. So >>> basically, this is 1 but on your machine only. >> >> The feature I'm requesting may be useful to others. >> >>> 3. Use a new entity that becomes | when used in HTML export. >> >> It would be harmless. >> >>> WDYT? >> >> The 3rd option looks the best one to me. >> >> Regards. -- Denis
Re: [O] Bug: \vert{} exported to markdown not as expected [8.3.1 (8.3.1-103-g366dc4-elpa @ /home/bitouze/.emacs.d/elpa/org-20150907/)]
Le 14/09/15 à 02h10, "Charles C. Berry"a écrit : > On Sun, 13 Sep 2015, Nicolas Goaziou wrote: > >> >> >> Denis Bitouzé writes: >> > [...] > >> Markdown export back-end use :html conventions to translate entities. >> For some reason, HTML prefers over |, and so does markdown. >> >> There are a few options available: >> >> 1. Prefer | over in HTML >> 2. Overwrite "vert" entity with a new one that would do 1. So >> basically, this is 1 but on your machine only. >> 3. Use a new entity that becomes | when used in HTML export. >> > > If this creates a backend derived from 'md (and does not modify ox-md.el), > then fine. But, ... > > It seem like there are flavors of Markdown that use verticals for varying > purposes. Sigh... :) > For example, rmarkdown > > http://rmarkdown.rstudio.com/authoring_pandoc_markdown.html > > uses them as `line block' markers and to construct `table.el' style tables. > > And I have seen verticals used to set off citations elsewhere. Sigh... again :) > And I am not even sure what Denis meant by using them to `interpret > strings'. As said, I'm only a very occasional markdown user, mainly on github and SE (flavors). In my current usecase (on a OSQA site), e.g. |REP_GAIN_BY_UPVOTED| entered as markdown displays the value of REP_GAIN_BY_UPVOTED (some internal site variable) when rendered as HTML. Anyway, as pointed out in my answer to Nicolas, it may be useful to other org mode users to be able to obtain "real" pipe symbol in markdown export. Hence, a new entity that becomes | when used in md export could be nice... Best. -- Denis
Re: [O] Bug: \vert{} exported to markdown not as expected [8.3.1 (8.3.1-103-g366dc4-elpa @ /home/bitouze/.emacs.d/elpa/org-20150907/)]
Le 13/09/15 à 22h47, Nicolas Goazioua écrit : > Denis Bitouzé writes: > >> 1. For _, \under{} is necessary since _ at the org mode level is >>exported as \_. >> 2. For |, source | could be okay. But I'd like to use strings as above >>in tables and, AFAIK, the only way to have pipe symbols in a table at >>the org mode level is to code them \vert{}. And that's the purpose >>of my bug report, \vert{} is exported as , not as "real" |. >> >> In other words, I was happy with \under{} that exports real _ and, >> IMHO, \vert{} should do the same with |. > > Markdown export back-end use :html conventions to translate entities. > For some reason, HTML prefers over |, and so does markdown. and | are displayed the same way but can have different "meanings". > There are a few options available: > > 1. Prefer | over in HTML Maybe I'm wrong but wouldn't this break backward compatibility? > 2. Overwrite "vert" entity with a new one that would do 1. So > basically, this is 1 but on your machine only. The feature I'm requesting may be useful to others. > 3. Use a new entity that becomes | when used in HTML export. It would be harmless. > WDYT? The 3rd option looks the best one to me. Regards. -- Denis
Re: [O] Bug: Extra blank line in subitem list when exported to markdown [8.3.1 (8.3.1-103-g366dc4-elpa @ /home/bitouze/.emacs.d/elpa/org-20150907/)]
Le 13/09/15 à 22h41, Nicolas Goazioua écrit : > Hello, Hello, > dbito...@wanadoo.fr (Denis Bitouzé) writes: > >> When exported to markdown, an extra blank line is added in subitem >> lists, as shown by the following minimal example. >> >> #+NAME: test.org >> #+begin_src org >> - Foo 1 >> - Foo2: >> - Foo21 >> - Foo22 >> End of Foo2 item. >> #+end_src >> >> *Expected* behavior (note the *absence* of blank line after =Foo22=): >> >> #+NAME: test-ok.md >> #+begin_src markdown >> - Foo 1 >> - Foo2: >> - Foo21 >> - Foo22 >> End of Foo2 item. >> #+end_src >> >> *Current* behavior (note the blank line after =Foo22=): >> >> #+NAME: test.md >> #+begin_src markdown >> - Foo 1 >> - Foo2: >> - Foo21 >> - Foo22 >> >> End of Foo2 item. >> #+end_src > > Well, the rules governing blank lines in Mardown are mysterious to me. > They are also, AFAIK, totally undocumented. I agree. > Anyway, you are suggesting to remove any blank line before paragraphs > following a plain list, but only when they are already contained > within a list. Well, please, don't trust me too quickly :) I must admit I'm very far from a mardown expert: I'm only a very occasional user. > In other words, both > > - Foo 1 > - Foo 2 > > A paragraph > > and > > - Foo 1 > - Foo 2: > - Foo 21 > - Foo 22 > End of Foo 2 item. > > are valid examples. Am I correct? In fact, my suggestion was wrong: AFAICS, the last example doesn't give the expected HTML result neither and the less bad solution for nested lists in markdown seems to be: #+NAME: test.md #+begin_src markdown - Foo 1 - Foo 2: - Foo 21 - Foo 22 End of Foo 2 item. #+end_src which is interpreted as (rather ugly): #+begin_src html Foo 1: Foo 2: Foo 21 Foo 22 End of Foo 2 item. #+end_src > Also, what about other block types, e.g., which one is valid: > > - Foo 1 > - Foo 2: > - Foo 21 > - Foo 22 > > #+begin_example > Some example > #+end_example > > or > > - Foo 1 > - Foo 2: > - Foo 21 > - Foo 22 > #+begin_example > Some example > #+end_example I'm not sure to understand what you have in mind: are these last two examples at org mode level? Regards, -- Denis
Re: [O] Single outer smart quotes.
Thanks for the help! On 13 September 2015 at 21:10, Nicolas Goaziouwrote: > Hello, > > Leonard Randall writes: > > > The new smart quotes algorithm does not seem to capture British style > > quoting (single outer quotes, double inner quotes) correctly. It > > treats all single quotes that are not enclosed in double quotes as > > apostrophes. I assume that it was revised to deal with apostrophes > > that occur on the outside of words, and I saw that it was updated > > again just last week to deal with some edge cases. > > Correct. > > > Do you think that there is an easy way to make it recognise single > > outer quotes without sacrificing the recent gains, or would it be > > better just to treat American style quoting as the standard for source > > files, and just add an en-gb entry to org-export-smart-quotes-alist > > that converts double quotes to single quotes and vice versa? > > The latter. You can fix "en" entry in `org-export-smart-quotes-alist' > and add a new "us" entry, if needed. > > > Regards, > > -- > Nicolas Goaziou >
[O] 2 issues with Include function
Hi, I noticed 2 more issues with the include function on latex export. The first, is that when I make an id link between 2 included files, the exporter gives the section associated with the linked header the same label as the header where the link is located. So for instance if I include two files which include the following contents. --- Included File 1 --- * Headline 4 I develop this point in [[id:beb44a5e-fc8b-4597-8dc1-0fb0a6d3a346]]. --- --- --- Included File 2 ** Headline 6.2 :PROPERTIES: :ID: beb44a5e-fc8b-4597-8dc1-0fb0a6d3a346 :END: --- --- Headline 4 and Headline 6.2 will be given the same label, and so the link will point to headline 4, instead of Headline 6.2. The second problem is that if the include function is narrowed to a specific headline using a custom id, and there are footnotes defined at the very bottom of that headline, the final footnote in the section will not have a closing bracket. If I have the following master file and included file. --- Master file --- #+INCLUDE: "./1WorkingDraft.org::#Chapter1" --- --- --- 1WorkingDraft.org --- * Chapter 1 Title :PROPERTIES: :CUSTOM_ID: Chapter1 :END: Here is a some text with a footnote[fn:1]. Here is some more text. ... [fn:1] Here is the definition. * Other heading or end of file --- --- I get latex export that includes something like this. --- \chapter{Chapter 1 Title} \label{sec:orgheadline11} Here is some text with a footnote \footnote{Here is the definition..Here is some more text. ... \end document
[O] MobileOrg PGP Encryption
Today I’ve installed MobileOrg for iOS. Looks like this app needs a total UI overhaul (looking like iOS6) :( Unfortunately, all my org files are PGP encrypted, but MobileOrg only offers me password decryption. So there’s no chance of accessing my files? Best regards, Tobias Frischholz signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [O] Limit on macro snippet size?
On Mon, Sep 14, 2015 at 08:49:17AM -1000, Thomas S. Dye wrote: > Hi Suvayu, > > Suvayu Aliwrites: > > > Hey Tom, > > > > On Mon, Sep 14, 2015 at 07:34:39AM -1000, Thomas S. Dye wrote: > >> Suvayu Ali writes: > >> > >> > show it actually works. How does the failure happen, what do you see in > >> > the exported file? > >> > >> \textcolor{PaleGreen4}\{the only weapons they had were a > >> few stones in some of the Canoes and these they threw overboard > >> when they found they were not wanted\}. > >> > >> Note the curly brackets are escaped. Not sure why ... > > > > Easy-peasy! Org recognises the first {..} as part of a latex command, > > not the later. You need snippets. I always use them to make export > > more robust. Try this: > > > > #+macro: green @@l:\textcolor{PaleGreen4}{@@$1@@l:}@@ > > This doesn't work for me. The latex output isn't marked up, but the > text passed to $1 appears in the tex file. Sorry, I have a shortcut for latex snippets to l. Try replacing the l with latex: #+macro: green @@latex:\textcolor{PaleGreen4}{@@$1@@latex:}@@ -- Suvayu Open source is the future. It sets us free.
[O] Bug: org-toggle-latex-fragment fails, example included [8.3.1 (8.3.1-103-g366dc4-elpa @ /home/oub/.emacs.d/elpa/org-20150907/)]
Hello For the following example, $$w∈ {C([0,T];H_{s,\delta} : \|w(0,\cdot )\|_{H_{s,\delta}} \leq M_0, w(t,x)\leq 0}$$ org-toggle-latex-fragment fails to generate a png org-mime-htmlize fails as well but a separate bug report will be submitted. The above example works for Xemacs 21.5.34 and org 7.8.03!! Emacs : GNU Emacs 25.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2015-08-28 Package: Org-mode version 8.3.1 (8.3.1-103-g366dc4-elpa @ /home/oub/.emacs.d/elpa/org-20150907/) current state: == (setq org-entities-user '(("implies" "\\Rightarrow" t "" "=>" "=>" "⇒") ("iff" "\\iff" t "" "<=>" "<=>" "⇔")) outline-mode-hook '(hide-body) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-latex-format-headline-function 'org-latex-format-headline-default-function org-pretty-entities t org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-babel-pre-tangle-hook '(save-buffer) org-return-follows-link t org-occur-hook '(org-first-headline-recenter) org-html-format-headline-function 'org-html-format-headline-default-function org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-latex-format-drawer-function '(lambda (name contents) contents) org-load-hook '(my-link-keys) org-highlight-latex-and-related '(latex) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-agenda-include-diary t org-html-with-latex 'dvipng org-mode-hook '(turn-on-flyspell turn-on-auto-capitalize-mode my-org-keys #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-odt-format-drawer-function '(lambda (name contents) contents) org-from-is-user-regexp "\\" org-html-format-drawer-function '(lambda (name contents) contents) org-odt-format-headline-function 'org-odt-format-headline-default-function org-metadown-hook '(org-babel-pop-to-session-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-after-todo-state-change-hook '(org-clock-out-if-current) org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-confirm-shell-link-function 'yes-or-no-p )
Re: [O] Limit on macro snippet size?
Hi Suvayu, Suvayu Aliwrites: > Hey Tom, > > On Mon, Sep 14, 2015 at 07:34:39AM -1000, Thomas S. Dye wrote: >> Suvayu Ali writes: >> >> > show it actually works. How does the failure happen, what do you see in >> > the exported file? >> >> \textcolor{PaleGreen4}\{the only weapons they had were a >> few stones in some of the Canoes and these they threw overboard >> when they found they were not wanted\}. >> >> Note the curly brackets are escaped. Not sure why ... > > Easy-peasy! Org recognises the first {..} as part of a latex command, > not the later. You need snippets. I always use them to make export > more robust. Try this: > > #+macro: green @@l:\textcolor{PaleGreen4}{@@$1@@l:}@@ This doesn't work for me. The latex output isn't marked up, but the text passed to $1 appears in the tex file. All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Scheme code block gives false error message
Lawrence Bottorffwrites: > So it looks like Scheme is not a Babel language after all. What do you mean? There is an ob-scheme.el but it's buggy: I suspect that every ob-*.el is buggy to some extent. Does that mean that every language that babel supports is not a babel language? > Is there a formal "bug report" to do? Well, whether a formal bug report will help is not clear: it's probably best that one be submitted if only for documentation purposes, but whether it will be addressed or not very much depends on somebody picking it up and fixing it. You might be able to persuade "Möbius" to sign FSF papers and submit his implementation (but note that there are limitations there, as mentioned on the page you linked - so there will be bugs...) > > On Mon, Sep 14, 2015 at 1:39 PM, Nick Dokos wrote: > > Lawrence Bottorff writes: > > > I think this > > > (https://mobiusengineering.wordpress.com/2015/01/11/using-emacs-org-with-mit-scheme/) > > describes my problem. Basically, it's with ob-scheme.el. The article > > seems to say that my problem is scheme stuff being handled improperly > > by the elisp of ob-scheme.el. > > Yes, that sounds right. > > > I'll try his workaround and see if it works. He also seems to believe > Scheme is a second-class > > citizen in babel-land. > > > > -- > Nick -- Nick
[O] Org-lint error
Aloha all, In the process of tracking down misbehavior during export, I ran org-lint, which failed with this error: Debugger entered--Lisp error: (wrong-number-of-arguments max 0) max() apply(max nil) The backtrace appears to include my entire Org mode file, so I won't attach it. However, here is the part near the bottom, in case it is helpful. org-lint--generate-reports(# ([cl-struct-org-lint-checker duplicate-custom-id "Report duplicates CUSTOM_ID properties" (link) high] [cl-struct-org-lint-checker duplicate-name "Report duplicate NAME values" (babel link) high] [cl-struct-org-lint-checker duplicate-target "Report duplicate targets" (link) high] [cl-struct-org-lint-checker duplicate-footnote-definition "Report duplicate footnote definitions" (footnote) high] [cl-struct-org-lint-checker orphaned-affiliated-keywords "Report orphaned affiliated keywords" (default) low] [cl-struct-org-lint-checker obsolete-affiliated-keywords "Report obsolete affiliated keywords" (obsolete) high] [cl-struct-org-lint-checker deprecated-header-syntax "Report deprecated Babel header syntax" (babel obsolete) low] [cl-struct-org-lint-checker missing-language-in-src-block "Report missing language in src blocks" (babel) high] [cl-struct-org-lint-checker invalid-babel-call-block "Report invalid Babel call blocks" (babel) high] [cl-struct-org-lint-checker colon-in-name "Report NAME values with a colon" (babel) high] [cl-struct-org-lint-checker wrong-header-argument "Report wrong babel headers" (babel) high] [cl-struct-org-lint-checker wrong-header-value "Report invalid value in babel headers" (babel) low] [cl-struct-org-lint-checker deprecated-category-setup "Report misuse of CATEGORY keyword" (obsolete) high] [cl-struct-org-lint-checker invalid-coderef-link "Report \"coderef\" links with unknown destination" (link) high] [cl-struct-org-lint-checker invalid-custom-id-link "Report \"custom-id\" links with unknown destination" (link) high] [cl-struct-org-lint-checker invalid-fuzzy-link "Report \"fuzzy\" links with unknown destination" (link) high] [cl-struct-org-lint-checker invalid-id-link "Report \"id\" links with unknown destination" (link) high] [cl-struct-org-lint-checker link-to-local-file "Report links to non-existent local files" (link) low] [cl-struct-org-lint-checker non-existent-setupfile-parameter "Report SETUPFILE keywords with non-existent file parameter" (default) low] [cl-struct-org-lint-checker wrong-include-link-parameter "Report INCLUDE keywords with misleading link parameter" (export) low] [cl-struct-org-lint-checker unknown-options-item "Report unknown items in OPTIONS keyword" (export) low] [cl-struct-org-lint-checker invalid-macro-argument-and-template "Report spurious macro arguments or invalid macro templates" (export) low] [cl-struct-org-lint-checker special-property-in-properties-drawer "Report special properties in properties drawers" (properties) high] [cl-struct-org-lint-checker obsolete-properties-drawer "Report obsolete syntax for properties drawers" (obsolete properties) high] [cl-struct-org-lint-checker undefined-footnote-reference "Report missing definition for footnote references" (footnote) high] [cl-struct-org-lint-checker unreferenced-footnote-definition "Report missing reference for footnote definitions" (footnote) high] [cl-struct-org-lint-checker extraneous-element-in-footnote-section "Report non-footnote definitions in footnote section" (footnote) high] [cl-struct-org-lint-checker invalid-keyword-syntax "Report probable invalid keywords" (default) low] [cl-struct-org-lint-checker invalid-block "Report invalid blocks" (default) low] [cl-struct-org-lint-checker misplaced-planning-info "Report misplaced planning info line" (default) low] [cl-struct-org-lint-checker incomplete-drawer "Report probable incomplete drawers" (default) low] [cl-struct-org-lint-checker indented-diary-sexp "Report probable indented diary-sexps" (default) low] [cl-struct-org-lint-checker quote-section "Report obsolete QUOTE section" (obsolete) low])) org-lint--refresh-reports() org-lint--display-reports(# ([cl-struct-org-lint-checker duplicate-custom-id "Report duplicates CUSTOM_ID properties" (link) high] [cl-struct-org-lint-checker duplicate-name "Report duplicate NAME values" (babel link) high] [cl-struct-org-lint-checker duplicate-target "Report duplicate targets" (link) high] [cl-struct-org-lint-checker duplicate-footnote-definition "Report duplicate footnote definitions" (footnote) high] [cl-struct-org-lint-checker orphaned-affiliated-keywords "Report orphaned affiliated keywords" (default) low] [cl-struct-org-lint-checker obsolete-affiliated-keywords "Report obsolete affiliated keywords" (obsolete) high] [cl-struct-org-lint-checker deprecated-header-syntax "Report deprecated Babel header syntax" (babel obsolete) low] [cl-struct-org-lint-checker missing-language-in-src-block "Report missing language in src blocks" (babel) high]
Re: [O] Personal notes in org/beamer presentation
Thanks a lot for the C-c C-b tip! One more question: is there a way to setup two pdf export profiles, one for the pdf w/ notes and one for that w/o notes? On Sep 13, 2015 12:13 PM, "Rasmus"wrote: > Giacomo M writes: > > > Dear Ramsus, thanks for the hint. > > That led me to find the snippet > > :PROPERTIES: > > :BEAMER_env: note > > :END: > > > > to add to the notes subtree, which in combination w/ a "notes" beamer > class > > option creates an additional slide w/ notes. > > > > Alone, "B_note" used as a tag didn't work, but I'm surely using it > wrongly. > > No, the tag is a hint for you (and maybe sparse trees). In general, > properties are used for such things (ox-koma-script and :(no)export: being > the main exceptions, I think). > > However, once you use org-beamer-mode and annotate your headlines with > org-beamer-select-environment (typically, C-c C-b) both the property and > the tag should be inserted for you. > > Rasmus > > -- > Don't panic!!! > > >
Re: [O] Favorite way of syncing?
Eric, Eric Abrahamsen writes: > Myles Englishwrites: > >> https://myrepos.branchable.com >> https://github.com/RichiH/vcsh >> http://gitolite.com/gitolite/index.html > > Uh oh, I might have to start playing with this! Though there's something > nice about the morning ritual of going through a bunch of repos and > updating them. > > For doing version control of dotfiles or other collections of > non-interrelated single files, I've been curious about (but haven't yet > tried) ESR's src: > > http://www.catb.org/~esr/src/ Probably worth mentioning this alternative to vcsh: https://github.com/capr/multigit The only reason I chose vcsh is because it is more popular and I am a bit a sheep. Myles
Re: [O] Personal notes in org/beamer presentation
Giacomo Mwrites: > Thanks a lot for the C-c C-b tip! One more question: is there a way to > setup two pdf export profiles, one for the pdf w/ notes and one for that > w/o notes? Yeah, it should be possible for instance with a babel block, running org-beamer-export-to-pdf twice with a replace-in-buffer in between. A more elegant solution might be to use a filter and do it automatically when exporting beamer slides if note headings are present. It should all be possible, though I don't have a canned solution at hand presently. Let us know if you need help on this. Rasmus -- This message is brought to you by the department of redundant departments