[O] Editing the taskreport plan width value in taskjuggler taskreport output
Hi, The contents of the exported TaskJuggler .tjp file includes: # A traditional Gantt chart with a project overview. taskreport plan "" { headline "Project Plan" columns bsi, name, start, end, effort, chart loadunit shortauto hideresource 1 } This renders HTML with a fairly narrow Gannt chart on wide screens. To widen the rendered Gannt chart, I modify the .tjp file manually using { width 1000 }, i.e.: columns bsi, name, start, end, effort, chart { width 1000 } Is there a way to set an option at the top of my org file, to manipulate the "columns... " line in the taskreport { .. } ? Thanks, -- Rob
Re: [O] Ignoring all org-mode headings to export beamer slides with no titles
Hi Rasmus, Thanks for the tip. In the absence of an org mode solution to this, adding the following to the top of my org file is a solution: #+LATEX_HEADER: \setbeamertemplate{frametitle}{} -- Rob On 3 April 2016 at 12:36, Rasmus <ras...@gmx.us> wrote: > Rob Stewart <robstewar...@gmail.com> writes: > >> Hi, >> >> I like presentation zen, where less is more. I would like to export my >> org-mode files as beamer slides, but have the heading title ignored so >> as not to position a title at the top left of the each slide. >> >> I can do it on a per-slide basis with: >> >> ** My slide title >> :PROPERTIES: >> :BEAMER_ENV: fullframe >> :END: >> >> Is there a way of applying this rule to every slide, without having to >> add this :PROPERTIES: section beneath every heading in my org file? > > You could add a filter that adds this property to every headline of the > correct level. > > Or hack it on the latex side > > #+latex_header: \let\oldframe\frame > #+latex_header: \renewcommand\frame[1][fullframe]{\oldframe[#1]} > > Hope it helps, > Rasmus > > -- > When the facts change, I change my mind. What do you do, sir? > >
[O] Ignoring all org-mode headings to export beamer slides with no titles
Hi, I like presentation zen, where less is more. I would like to export my org-mode files as beamer slides, but have the heading title ignored so as not to position a title at the top left of the each slide. I can do it on a per-slide basis with: ** My slide title :PROPERTIES: :BEAMER_ENV: fullframe :END: Is there a way of applying this rule to every slide, without having to add this :PROPERTIES: section beneath every heading in my org file? Thanks, -- Rob
Re: [O] Avoiding recompilation of ditaa ASCII if unmodified between exports
Hi Loris, On 24 April 2015 at 06:48, Loris Bennett loris.benn...@fu-berlin.de wrote: I think you want to look at caching: http://orgmode.org/manual/cache.html Thanks for the tip. Interestingly, caching doesn't seem to work for ditaa blocks. E.g. --8---cut here---start-8--- #+BEGIN_SRC ditaa :file images/hello-world-round.png :cache yes +--+ | | | Hello World! | | | +--+ #+END_SRC --8---cut here---end---8--- Run the ditaa.jar file every time I export to HTML with `C-c C-e h h`. Does `:cache yes` only work for particular source languages? -- Rob
Re: [O] Avoiding recompilation of ditaa ASCII if unmodified between exports
Hi Loris, Caching with ditaa works for me with Emacs 24.4.1 and Org 8.2.10-37-gc000e8-elpaplus. What versions of Org/Emacs are you using? Org-mode version 8.3beta release_8.3beta-1028-g0865cb GNU Emacs 24.4.1 -- Rob
[O] Don't treat [n] as a footnote, and export [n]
Hi, I have the following in an org mode file (that do not want as inline verbatim inside =foo=) : int[2] a; When I try exporting to HTML, I get the error: org-export-get-footnote-definition: Definition not found for footnote 2 I've seen two solutions online: http://emacsclub.github.io/html/org_tutorial.html https://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg01248.html The first works for me, i.e. #+OPTIONS: f:nil For this, though, the exported HTML omits the [2] text, i.e. the HTML is int a; How do I turn off footnotes for [n] where n is a number, so that [n] is exported? Thanks, -- Rob
[O] Fwd: Don't treat [n] as a footnote, and export [n]
And just as soon as I send this email, I find the answer: (setq org-footnote-re (concat \\[\\(?: ;; Match inline footnotes. (org-re fn:\\([-_[:word:]]+\\)?:\\|) ;; Match other footnotes. ;; \\(?:\\([0-9]+\\)\\]\\)\\| (org-re \\(fn:[-_[:word:]]+\\)) \\))) (setq org-footnote-definition-re (org-re ^\\[\\(fn:[-_[:word:]]+\\)\\])) From http://stackoverflow.com/a/25342297/1526266 . -- Rob -- Forwarded message -- From: Rob Stewart robstewar...@gmail.com Date: 23 April 2015 at 20:10 Subject: Don't treat [n] as a footnote, and export [n] To: emacs-orgmode@gnu.org Hi, I have the following in an org mode file (that do not want as inline verbatim inside =foo=) : int[2] a; When I try exporting to HTML, I get the error: org-export-get-footnote-definition: Definition not found for footnote 2 I've seen two solutions online: http://emacsclub.github.io/html/org_tutorial.html https://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg01248.html The first works for me, i.e. #+OPTIONS: f:nil For this, though, the exported HTML omits the [2] text, i.e. the HTML is int a; How do I turn off footnotes for [n] where n is a number, so that [n] is exported? Thanks, -- Rob
Re: [O] Fwd: Don't treat [n] as a footnote, and export [n]
Hi Nicolas, For the last line: (add-to-list org-export-filter-parse-tree-functions #'my-ignore-false-footnotes) I'm getting Debugger entered--Lisp error: (wrong-type-argument symbolp (org-bibtex-merge-contiguous-citations org-bibtex-process-bib-files)) add-to-list((org-bibtex-merge-contiguous-citations org-bibtex-process-bib-files) my-ignore-false-footnotes) eval((add-to-list org-export-filter-parse-tree-functions (function my-ignore-false-footnotes)) nil) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) ? Thanks, -- Rob On 23 April 2015 at 20:40, Nicolas Goaziou m...@nicolasgoaziou.fr wrote: Hello, Rob Stewart robstewar...@gmail.com writes: And just as soon as I send this email, I find the answer: [num] syntax for footnotes is indeed a pain. However, the solution below is really a kludge because some parts of Org (or external libraries) could hard-code it anyway. (setq org-footnote-re (concat \\[\\(?: ;; Match inline footnotes. (org-re fn:\\([-_[:word:]]+\\)?:\\|) ;; Match other footnotes. ;; \\(?:\\([0-9]+\\)\\]\\)\\| (org-re \\(fn:[-_[:word:]]+\\)) \\))) (setq org-footnote-definition-re (org-re ^\\[\\(fn:[-_[:word:]]+\\)\\])) From http://stackoverflow.com/a/25342297/1526266 . From an export perspective, you can turn these footnotes back into regular text at the parse tree level: --8---cut here---start-8--- (defun my-ignore-false-footnotes (ast backend info) (org-element-map ast 'footnote-reference (lambda (f) (let ((label (org-element-property :label f))) (when (org-string-match-p \\`[0-9]+\\' label) (org-element-set-element f (concat [ label ] (make-string (org-element-property :post-blank f) ?\s))) ast) (add-to-list org-export-filter-parse-tree-functions #'my-ignore-false-footnotes) --8---cut here---end---8--- Regards, -- Nicolas Goaziou
Re: [O] Fwd: Don't treat [n] as a footnote, and export [n]
On 23 April 2015 at 20:53, Nicolas Goaziou m...@nicolasgoaziou.fr wrote: (add-to-list 'org-export-filter-parse-tree-functions #'my-ignore-false-footnotes) Perfect, that works. Thanks Nicolas, -- Rob
[O] Avoiding recompilation of ditaa ASCII if unmodified between exports
Hi, I really appreciate the integration with ditaa and org mode. http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ditaa.html I have an Org mode document with 5 ditaa diagrams, and exporting my Org file is taking quite a long time, about 10 seconds to compile 5 ditaa diagrams + HTML export. At the moment, even if I don't modify any of the ditaa ASCII, all 5 are compiled from ASCII to a PNG. Is there a way ask ditaa to only generate a new PNG file if the contents of the `#+BEGIN_SRC ditaa` have changed? Thanks, -- Rob
[O] Incorrect HTML hyperlink text when `/` used in bibtex key with ox-bibtex.el
Hi, When the bibtex key contains a `/` character, the export with ox-bibtex.el emits an incorrect string (I think) for citing the reference at the point it is referenced. For example: \cite{StewartTL11} Which in the HTML becomes: [a href=#StewartTL114/a] However, \cite{DBLP:conf/appt/StewartTL11} Becomes: [a href=#DBLP:conf/appt/StewartTL11DBLP:conf/appt/StewartTL11/a] So rather than a link displayed as [4] in the HTML, I see [DBLP:conf/appt/StewartTL11]. Having experimented with omitting both `:` and `/`, it looks like it's the `/` charactes in the bibtex key that makes the difference. Is that a bug in ox-bibtex.el or bibtex2html?
[O] Putting biblography table at bottom of HTML export with ox-bibtex.el
Hi, Hi folks, I'm using ox-bibtex to export to HTML. After bibtex2html has been used, the HTML file I get puts the references at the top, and I'd like it to be at the bottom of the HTML page. Is this possible? I'm using the current ox-bibtex.el, i.e. http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=contrib/lisp/ox-bibtex.el;hb=master Thanks, -- Rob
Re: [O] Fwd: Is `org-preview-latex-fragment` sensitive to alignment specified by document class options?
Hi Nick, Thanks for guiding me to a solution, which was to write write my own defcustom `my-org-format-latex-header`, changing the first line from the definition in org.el to \\documentclass[fleqn]{article}. This definition I call `my-org-format-latex-header`. I then redefine `org-create-formula--latex-header` to use `my-org-format-latex-header`, as so: --8---cut here---start-8--- (defcustom my-org-format-latex-header \\documentclass[fleqn]{article} \\usepackage[usenames]{color} \[PACKAGES] \[DEFAULT-PACKAGES] \\pagestyle{empty} % do not remove % The settings below are copied from fullpage.sty \\setlength{\\textwidth}{\\paperwidth} \\addtolength{\\textwidth}{-3cm} \\setlength{\\oddsidemargin}{1.5cm} \\addtolength{\\oddsidemargin}{-2.54cm} \\setlength{\\evensidemargin}{\\oddsidemargin} \\setlength{\\textheight}{\\paperheight} \\addtolength{\\textheight}{-\\headheight} \\addtolength{\\textheight}{-\\headsep} \\addtolength{\\textheight}{-\\footskip} \\addtolength{\\textheight}{-3cm} \\setlength{\\topmargin}{1.5cm} \\addtolength{\\topmargin}{-2.54cm} The document header used for processing LaTeX fragments. It is imperative that this header make sure that no page number appears on the page. The package defined in the variables `org-latex-default-packages-alist' and `org-latex-packages-alist' will either replace the placeholder \[PACKAGES]\ in this header, or they will be appended. :group 'org-latex :type 'string) (defun org-create-formula--latex-header () Return LaTeX header appropriate for previewing a LaTeX snippet. (let ((info (org-combine-plists (org-export--get-global-options (org-export-get-backend 'latex)) (org-export--get-inbuffer-options (org-export-get-backend 'latex) (org-latex-guess-babel-language (org-latex-guess-inputenc (org-splice-latex-header my-org-format-latex-header org-latex-default-packages-alist org-latex-packages-alist t (plist-get info :latex-header))) info))) --8---cut here---end---8--- Now when I call `org-preview-latex-fragment`, the math is correctly rendered in emacs: http://imgur.com/mMrMIE6 My only question is: rather than using `defcustom` to define `my-org-format-latex-header` (hence needing to redefine `org-create-formula--latex-header`, how do I simply override the existing definition for `org-format-latex-header`? A hasty attempt to use setq threw the following backtrace: --8---cut here---start-8--- Debugger entered--Lisp error: (wrong-type-argument symbolp The document header used for processing LaTeX fragments. It is imperative that this header make sure that no page number appears on the page. The package defined in the variables `org-latex-default-packages-alist' and `org-latex-packages-alist' will either replace the placeholder \[PACKAGES]\ in this header, or they will be appended.) (setq org-format-latex-header \\documentclass[fleqn]{article} .. eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) --8---cut here---end---8--- Thanks Nick! -- Rob On 9 April 2014 18:22, Nick Dokos ndo...@gmail.com wrote: Rob Stewart robstewar...@gmail.com writes: I asked the question below a few days ago, about whether `org-preview-latex-fragment` is sensitive document class options that might affect alignment. I've so far not received feedback, and wondered whether there is more information that I could provide, or if my question is not interesting to other people :-) Is there a way to make `org-preview-latex-fragment` sensitive to LaTeX class options? I have a simple example to demonstrate where it does not: %%% #+LaTeX_CLASS: article #+LaTeX_CLASS_OPTIONS: [fleqn] #+LATEX_HEADER: \usepackage{amsmath} \begin{gather} b := (a \oplus s_1) \oplus s_2 \\ e := 0 \\ \end{gather} %%% If LaTeX is generated for this document with `org-latex-export-to-latex`, which is compiled to a PDF with pdflatex, the b := and the e := are left aligned i.e. the b and e are vertically aligned. However, if `org-preview-latex-fragment` is called within emacs, the left alignment specified with the `[fleqn]` class option is not honoured. Thus, the two lines in the `gather` block are centrally aligned, which is the default case for `gather` blocks. org-preview-latex-image is its own self-contained universe and has very little in common with latex exporting. In particular, the preview preamble is generated by calling org-create-formula--latex-header. Try evaluating a call to the function in your *scratch* buffer and see what it gives you - I get: , | (org-create-formula--latex-header) | \\documentclass{article} | \\usepackage[usenames]{color} | % Package minted omitted | \\usepackage[utf8]{inputenc} | \\usepackage[T1]{fontenc} | % Package fixltx2e omitted | \\usepackage{graphicx
[O] Fwd: Fwd: Is `org-preview-latex-fragment` sensitive to alignment specified by document class options?
Maybe a spoke too soon. My answer below is partly the case. When I turn on latexpreview with `#+STARTUP: latexpreview` then my formula is laid out the way I intend, i.e.: http://imgur.com/eMrwiIJ Strangely, however, when I hit C-c C-c to remove the preview, then run `org-preview-latex-fragment` by hand, I see: http://imgur.com/qznnKj3 Having read through the the org-mode derived mode, me stating `#+STARTUP: latexpreview` in my org mode triggers a call to `org-preview-latex-fragment` in org.el: --8---cut here---start-8--- (when org-startup-with-latex-preview (org-preview-latex-fragment)) --8---cut here---end---8--- So, what is happening between this call at startup, and me later calling `org-preview-latex-fragment` by hand after org-mode has been fully loaded? I have tried locating the temporary tex file that gets generated with this call. But when `org-preview-latex-fragment is called without errors, I cannot locate the temporary file? -- Rob -- Forwarded message -- From: Rob Stewart robstewar...@gmail.com Date: 19 April 2014 14:02 Subject: Re: [O] Fwd: Is `org-preview-latex-fragment` sensitive to alignment specified by document class options? To: Nick Dokos ndo...@gmail.com, emacs-orgmode@gnu.org Hi Nick, Thanks for guiding me to a solution, which was to write write my own defcustom `my-org-format-latex-header`, changing the first line from the definition in org.el to \\documentclass[fleqn]{article}. This definition I call `my-org-format-latex-header`. I then redefine `org-create-formula--latex-header` to use `my-org-format-latex-header`, as so: --8---cut here---start-8--- (defcustom my-org-format-latex-header \\documentclass[fleqn]{article} \\usepackage[usenames]{color} \[PACKAGES] \[DEFAULT-PACKAGES] \\pagestyle{empty} % do not remove % The settings below are copied from fullpage.sty \\setlength{\\textwidth}{\\paperwidth} \\addtolength{\\textwidth}{-3cm} \\setlength{\\oddsidemargin}{1.5cm} \\addtolength{\\oddsidemargin}{-2.54cm} \\setlength{\\evensidemargin}{\\oddsidemargin} \\setlength{\\textheight}{\\paperheight} \\addtolength{\\textheight}{-\\headheight} \\addtolength{\\textheight}{-\\headsep} \\addtolength{\\textheight}{-\\footskip} \\addtolength{\\textheight}{-3cm} \\setlength{\\topmargin}{1.5cm} \\addtolength{\\topmargin}{-2.54cm} The document header used for processing LaTeX fragments. It is imperative that this header make sure that no page number appears on the page. The package defined in the variables `org-latex-default-packages-alist' and `org-latex-packages-alist' will either replace the placeholder \[PACKAGES]\ in this header, or they will be appended. :group 'org-latex :type 'string) (defun org-create-formula--latex-header () Return LaTeX header appropriate for previewing a LaTeX snippet. (let ((info (org-combine-plists (org-export--get-global-options (org-export-get-backend 'latex)) (org-export--get-inbuffer-options (org-export-get-backend 'latex) (org-latex-guess-babel-language (org-latex-guess-inputenc (org-splice-latex-header my-org-format-latex-header org-latex-default-packages-alist org-latex-packages-alist t (plist-get info :latex-header))) info))) --8---cut here---end---8--- Now when I call `org-preview-latex-fragment`, the math is correctly rendered in emacs: http://imgur.com/mMrMIE6 My only question is: rather than using `defcustom` to define `my-org-format-latex-header` (hence needing to redefine `org-create-formula--latex-header`, how do I simply override the existing definition for `org-format-latex-header`? A hasty attempt to use setq threw the following backtrace: --8---cut here---start-8--- Debugger entered--Lisp error: (wrong-type-argument symbolp The document header used for processing LaTeX fragments. It is imperative that this header make sure that no page number appears on the page. The package defined in the variables `org-latex-default-packages-alist' and `org-latex-packages-alist' will either replace the placeholder \[PACKAGES]\ in this header, or they will be appended.) (setq org-format-latex-header \\documentclass[fleqn]{article} .. eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) --8---cut here---end---8--- Thanks Nick! -- Rob On 9 April 2014 18:22, Nick Dokos ndo...@gmail.com wrote: Rob Stewart robstewar...@gmail.com writes: I asked the question below a few days ago, about whether `org-preview-latex-fragment` is sensitive document class options that might affect alignment. I've so far not received feedback, and wondered whether there is more information that I could provide, or if my question is not interesting to other people :-) Is there a way to make `org
[O] Fwd: Is `org-preview-latex-fragment` sensitive to alignment specified by document class options?
Hi, I asked the question below a few days ago, about whether `org-preview-latex-fragment` is sensitive document class options that might affect alignment. I've so far not received feedback, and wondered whether there is more information that I could provide, or if my question is not interesting to other people :-) Git blame tells me that the last commit relating to the definition of `org-preview-latex-fragment` in lisp/org.el is fe939ec by Carsten on 22-03-2008. Who might I be able to poke directly with my question below. Thanks, -- Rob -- Forwarded message -- From: Rob Stewart robstewar...@gmail.com Date: 6 April 2014 21:54 Subject: Is `org-preview-latex-fragment` sensitive to alignment specified by document class options? To: emacs-orgmode@gnu.org Hi, Is there a way to make `org-preview-latex-fragment` sensitive to LaTeX class options? I have a simple example to demonstrate where it does not: %%% #+LaTeX_CLASS: article #+LaTeX_CLASS_OPTIONS: [fleqn] #+LATEX_HEADER: \usepackage{amsmath} \begin{gather} b := (a \oplus s_1) \oplus s_2 \\ e := 0 \\ \end{gather} %%% If LaTeX is generated for this document with `org-latex-export-to-latex`, which is compiled to a PDF with pdflatex, the b := and the e := are left aligned i.e. the b and e are vertically aligned. However, if `org-preview-latex-fragment` is called within emacs, the left alignment specified with the `[fleqn]` class option is not honoured. Thus, the two lines in the `gather` block are centrally aligned, which is the default case for `gather` blocks. This is a screenshot of the PDF: http://imgur.com/YVRAlYP This is a screenshot of the preview within emacs: http://imgur.com/S6BNm0K So, is there a way to make `org-preview-latex-fragment` sensitive to LaTeX class options? Thanks, -- Rob
[O] Is `org-preview-latex-fragment` sensitive to alignment specified by document class options?
Hi, Is there a way to make `org-preview-latex-fragment` sensitive to LaTeX class options? I have a simple example to demonstrate where it does not: %%% #+LaTeX_CLASS: article #+LaTeX_CLASS_OPTIONS: [fleqn] #+LATEX_HEADER: \usepackage{amsmath} \begin{gather} b := (a \oplus s_1) \oplus s_2 \\ e := 0 \\ \end{gather} %%% If LaTeX is generated for this document with `org-latex-export-to-latex`, which is compiled to a PDF with pdflatex, the b := and the e := are left aligned i.e. the b and e are vertically aligned. However, if `org-preview-latex-fragment` is called within emacs, the left alignment specified with the `[fleqn]` class option is not honoured. Thus, the two lines in the `gather` block are centrally aligned, which is the default case for `gather` blocks. This is a screenshot of the PDF: http://imgur.com/YVRAlYP This is a screenshot of the preview within emacs: http://imgur.com/S6BNm0K So, is there a way to make `org-preview-latex-fragment` sensitive to LaTeX class options? Thanks, -- Rob
Re: [O] Bug: LaTeX block above first heading ignored by latex exporter [8.2.3c (release_8.2.3c-308-gc811bb @ /home/rob/sw/org-mode/lisp/)]
Just to be clear, what is the command I am supposed to be using to export to latex? I.e., which command is called with combination `C-c C-e l l` ? I thought it was `org-export-as-latex` , and that `org-latex-export-as-latex` was deprecated? However, I have just pulled HEAD in my git clone of git://orgmode.org/org-mode.git and... $ grep org-export-as-latex * $ grep org-latex-export-as-latex * org-loaddefs.el:;; org-latex-export-as-latex) ox-latex ox-latex.el (2 org-loaddefs.el:(autoload 'org-latex-export-as-latex ox-latex \ org-loaddefs.el: (defun org-latex-export-as-latex ox.el: \(defun org-latex-export-as-latex Binary file ox.elc matches ox-latex.el: ((?L As LaTeX buffer org-latex-export-as-latex) ox-latex.el:(defun org-latex-export-as-latex Which command *should* I expect to be using? -- Rob On 28 November 2013 11:38, Rob Stewart robstewar...@gmail.com wrote: On 28 November 2013 10:49, Nicolas Goaziou n.goaz...@gmail.com wrote: Unfortunately, I'm unable to reproduce the problem. Anyway, it sounds like you're using somehow the old export framework. I'm not entirely sure how I do this. But here's a shot at it: org-version Org-mode version 8.2.1 (release_8.2.1-190-g228ea6 @ /home/rob/sw/org-mode/lisp/) list-load-path-shadows https://gist.github.com/robstewart57/7690515 Interestingly, org-export-as-latex does not work: org-export-as-latex: Symbol's value as variable is void: org-export-latex-default-packages-alist But org-latex-export-to-latex does work, generating the unexpected latex output. So there may be a problem with using an old exporter. But both the output of org-version and list-load-path-shadows would have me believe that my org-mode installation at ~/sw/org-mode is the presiding org-mode setup. This directory tracks HEAD, and is up to date. Regards, -- Rob
Re: [O] Bug: LaTeX block above first heading ignored by latex exporter [8.2.3c (release_8.2.3c-308-gc811bb @ /home/rob/sw/org-mode/lisp/)]
More.. I now realise that the command to use is `org-latex-export-to-latex`. However, my problem persists. This time, I use batch mode, to make clear that the org-mode repository at /home/rob/sw/org-mode/ is being used. This reflects HEAD from the git repo. $ emacs -batch -L ~/sw/org-mode/lisp --visit=test.org -funcall org-latex-export-to-latex Loading /usr/share/emacs/site-lisp/site-start.d/auctex.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/cmake-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/git-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/haskell-mode-init.el (source)... Loading haskell-site-file... Loading /usr/share/emacs/site-lisp/site-start.d/htmlize-init.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/preview-latex.el (source)... Loading /usr/share/emacs/site-lisp/site-start.d/systemtap-init.el (source)... Source file `/home/rob/sw/org-mode/lisp/org.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/org-macs.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/org-compat.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/ob-emacs-lisp.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/ob-core.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/ob-exp.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/ob-table.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/ob-ref.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/ob-tangle.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/org-src.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/org-list.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/org-footnote.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/org-element.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/org.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/org-footnote.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/org-macro.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/org-bibtex.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/org-docview.el' newer than byte-compiled file OVERVIEW Loading vc-git... Source file `/home/rob/sw/org-mode/lisp/ox-latex.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/ox.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/ox-ascii.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/ox-publish.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/ox-html.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/ox-icalendar.el' newer than byte-compiled file Source file `/home/rob/sw/org-mode/lisp/ox-latex.el' newer than byte-compiled file Saving file /home/rob/Documents/test.tex... Wrote /home/rob/Documents/test.tex This test.tex file omits (incorrectly) the following block: \begin{abstract} This is my abstract. \end{abstract} Before `\section{Introduction}`. % \documentclass[11pt]{article} \author{Joe Bloggs} \date{\today} \title{My Title} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 24.3.1 (Org mode 8.2.1)}} \begin{document} \maketitle \tableofcontents \section{Introduction} \label{sec-1} Hello. % Emacs 24.3.1 (Org mode 8.2.1) \end{document} % On 29 November 2013 13:52, Rob Stewart robstewar...@gmail.com wrote: Just to be clear, what is the command I am supposed to be using to export to latex? I.e., which command is called with combination `C-c C-e l l` ? I thought it was `org-export-as-latex` , and that `org-latex-export-as-latex` was deprecated? However, I have just pulled HEAD in my git clone of git://orgmode.org/org-mode.git and... $ grep org-export-as-latex * $ grep org-latex-export-as-latex * org-loaddefs.el:;; org-latex-export-as-latex) ox-latex ox-latex.el (2 org-loaddefs.el:(autoload 'org-latex-export-as-latex ox-latex \ org-loaddefs.el: (defun org-latex-export-as-latex ox.el: \(defun org-latex-export-as-latex Binary file ox.elc matches ox-latex.el: ((?L As LaTeX buffer org-latex-export-as-latex) ox-latex.el:(defun org-latex-export-as-latex Which command *should* I expect to be using? -- Rob On 28 November 2013 11:38, Rob Stewart robstewar...@gmail.com wrote: On 28 November 2013 10:49, Nicolas Goaziou n.goaz...@gmail.com wrote: Unfortunately, I'm unable to reproduce the problem. Anyway, it sounds like you're using somehow the old export framework. I'm not entirely sure how I do this. But here's a shot at it: org-version Org-mode version 8.2.1 (release_8.2.1-190-g228ea6 @ /home
Re: [O] Bug: LaTeX block above first heading ignored by latex exporter [8.2.3c (release_8.2.3c-308-gc811bb @ /home/rob/sw/org-mode/lisp/)]
On 29 November 2013 17:44, Nicolas Goaziou n.goaz...@gmail.com wrote: Now I remember. This is a feature. When headlines are selectively exported, i.e. when you use :export: tag or equivalent, text before the first headline is ignored. This was a request from François Pinard, a few months ago, on the ML. Ah! Thanks, I can confirm this has resolved my issue. 1. Which git commit changed this behaviour, i.e. implemented Francois's feature request? 2. I'd like to share this lesson learned. Is there a way I could add this to the org-mode webpages? Probably the sensible page to mention this behaviour is: http://orgmode.org/manual/Export-settings.html . Are the org-mode pages in a git repo somewhere? I'd be happy to offer a patch. Thanks again. -- Rob
[O] Bug: LaTeX block above first heading ignored by latex exporter [8.2.3c (release_8.2.3c-308-gc811bb @ /home/rob/sw/org-mode/lisp/)]
-after-blockquote-hook '(org-special-blocks-make-special-cookies) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-export-first-hook '(org-beamer-initialize-open-trackers) org-mode-hook '((lambda nil (flyspell-mode 1)) #[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 (lambda nil (org-indent-mode t))) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-from-is-user-regexp \\Rob Stewart\\ org-html-format-drawer-function '(lambda (name contents) contents) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-metadown-hook '(org-babel-pop-to-session-maybe) org-latex-link-with-unknown-path-format \\texttt{??} org-todo-keywords '((sequence TODO IN-PROGRESS WAITING DONE)) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-export-html-after-blockquotes-hook '(org-special-blocks-convert-html-special-cookies) org-after-todo-state-change-hook '(org-clock-out-if-current) org-babel-tangle-lang-exts '((lisp . lisp) (emacs-lisp . el)) org-babel-load-languages '((emacs-lisp . t) (sh . t) (lisp . t) (R . t)) org-latex-format-inlinetask-function 'ignore org-confirm-shell-link-function 'yes-or-no-p )
Re: [O] Bug: LaTeX block above first heading ignored by latex exporter [8.2.3c (release_8.2.3c-308-gc811bb @ /home/rob/sw/org-mode/lisp/)]
On 28 November 2013 10:49, Nicolas Goaziou n.goaz...@gmail.com wrote: Unfortunately, I'm unable to reproduce the problem. Anyway, it sounds like you're using somehow the old export framework. I'm not entirely sure how I do this. But here's a shot at it: org-version Org-mode version 8.2.1 (release_8.2.1-190-g228ea6 @ /home/rob/sw/org-mode/lisp/) list-load-path-shadows https://gist.github.com/robstewart57/7690515 Interestingly, org-export-as-latex does not work: org-export-as-latex: Symbol's value as variable is void: org-export-latex-default-packages-alist But org-latex-export-to-latex does work, generating the unexpected latex output. So there may be a problem with using an old exporter. But both the output of org-version and list-load-path-shadows would have me believe that my org-mode installation at ~/sw/org-mode is the presiding org-mode setup. This directory tracks HEAD, and is up to date. Regards, -- Rob
[O] #+LATEX before first heading getting ignored LaTeX output
I am experiencing a problem in org-mode whereby a #+LATEX block before the first heading is being ignored in the generated LaTeX. Below is a simple example, first without export the Introduction header with :noexport: , and then with. I realise I could use #+BEGIN_abstract , but this is not about abstracts.. I have lots of #+LATEX lines in a more realistic example, i.e. acknowledgements, dedication etc. % #+LaTeX_CLASS: article #+TITLE: My Title #+AUTHOR: Joe Bloggs #+OPTIONS: H:5 #+LATEX: \begin{abstract} This is my abstract. #+LATEX: \end{abstract} #+TOC: headlines 2 * Introduction :noexport: Hello. % Exporting this gives: % % Created 2013-11-27 Wed 23:47 \documentclass[11pt]{article} \author{Joe Bloggs} \date{\today} \title{My Title} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 24.3.1 (Org mode 8.2.3c)}} \begin{document} \maketitle \tableofcontents \begin{abstract} This is my abstract. \end{abstract} \setcounter{tocdepth}{2} \tableofcontents % Emacs 24.3.1 (Org mode 8.2.3c) \end{document} % However, if I switch the tag for the `Introduction` heading to :export: , the generated LaTeX is: % % Created 2013-11-27 Wed 23:48 \documentclass[11pt]{article} \author{Joe Bloggs} \date{\today} \title{My Title} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 24.3.1 (Org mode 8.2.3c)}} \begin{document} \maketitle \tableofcontents \section{Introduction} \label{sec-1} Hello. % Emacs 24.3.1 (Org mode 8.2.3c) \end{document} % Why has my \begin{abstract} .. \end{abstract} disappeared? As you can see, I'm runing org-mode 8.2.3c, from HEAD from the git repo.
[O] exporting to beamer error: org-beamer--normalize-argument: Wrong type argument: stringp, nil
Hi, I have followed this tutorial to export from org to beamer frames. http://orgmode.org/worg/exporters/beamer/ox-beamer.html . Unfortunately, the frames are not created for 2nd level headings. Instead, subsections are used. I am using org-mode from the git repository, pulled today using commit f871fb6 . I have tried both org-export-to-pdf and org-beamer-export-to-pdf . The first is not effective (LaTeX output below). The latter throws an error org-beamer--normalize-argument: Wrong type argument: stringp, nil . %% ORG FILE % #+TITLE: Example Presentation #+AUTHOR: Joe Bloggs #+LATEX_CLASS: beamer #+LATEX_CLASS_OPTIONS: [presentation] #+BEAMER_THEME: Madrid #+OPTIONS: H:2 * First Section ** Frame 1 ** Frame 2 %%% STEP 2: M-x org-export-to-pdf %% GENERATES %% % Created 2013-10-02 Wed 23:24 \documentclass[presentation]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \author{Joe Bloggs} \date{\today} \title{Example Presentation} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 24.3.1 (Org mode 8.2.1)}} \begin{document} \maketitle \tableofcontents \section{First Section} \label{sec-1} \subsection{Frame 1} \label{sec-1-1} \subsection{Frame 2} \label{sec-1-2} % Emacs 24.3.1 (Org mode 8.2.1) \end{document} %%%
Re: [O] import R data frame into org-mode table
Hi Andreas, On 17 July 2013 23:09, Andreas Leha andreas.l...@med.uni-goettingen.de wrote: Definitely there is: --8---cut here---start-8--- #+begin_src R :results table :colnames yes read.csv('test.csv') #+end_src #+results: | X | Variant | Xaxis | N | mean | sd | se | |---+-+---+---++--+--| | 1 | line1 |10 | 5 | 111.11 | 9.33 | 3.11 | | 1 | line1 |20 | 5 | 112.11 | 9.13 | 3.14 | | 1 | line1 |30 | 5 | 113.11 | 9.43 | 3.1 | | 1 | line2 |10 | 5 | 101.11 | 8.33 | 2.11 | | 1 | line2 |20 | 5 | 100.11 | 8.13 | 2.12 | | 1 | line2 |30 | 5 | 108.11 | 8.03 | 2.1 | --8---cut here---end---8--- Great. I've gone ahead and done this. There are two additional requirements: 1) My table needs a caption. Will #+CAPTION: just above the #+BEGIN_SRC just work? Even better, a label, allowing me to also cross reference it. 2) My table is too long for 1 page. It spans multiple pages vertically. According to this StackOverflow answer http://stackoverflow.com/a/2896850/1526266 , I should instead use longtable, not tabular. Is there a way to coerce your above snippet to use longtable, instead of tabular which is the default. Thanks! -- Rob
[O] import R data frame into org-mode table
I have an R script that generates a data frame, that I export to a CSV file. The data looks something like this: ,Variant,Xaxis,N,mean,sd,se 1,line1,10,5,111.11,9.33,3.11 1,line1,20,5,112.11,9.13,3.14 1,line1,30,5,113.11,9.43,3.10 1,line2,10,5,101.11,8.33,2.11 1,line2,20,5,100.11,8.13,2.12 1,line2,30,5,108.11,8.03,2.10 I have an ongoing org-mode document in which I'd like to report this data. I'd like to add a table that looks something like this: | Variant | X Axis | Y Axis | N | Mean | Standard Deviation | Standard Error | || The data will change frequently over the coming months. I'd like org-mode to auto-magically read a CSV file, to construct my org-table on-the-fly. I'd hoping to avoid copying and pasting results each time. Is there some org-mode or emacs+ESS magic I can use to populate my empty table, with source data from my CSV file? -- Rob
Re: [O] latex export of org-mode: verbatim block in a figure
There are some things I don't quite understand: Would you like to export to LaTeX, or would you simply like to have a target to refer to in an orgmode file? I'd like. in my orgmode file, to be able to say, see Figure \ref{fig:my-api}. When I export to LaTeX, I'd like it to then correctly export the reference as it would be in LaTeX e.g. if the Figure is 1.1, then then pdflatex would produce: see Figure 1.1. And why have a figure, instead of -- in LaTeX terminology -- a listing? Good point. Yes, Listing would be good. Any idea how to solve this reference problem as a listing? Thanks, -- Rob
[O] latex export of org-mode: verbatim block in a figure
What I would like to do is simple: wrap a verbatim code block within a Figure, so that I can refer to it elsewhere in my org-mode file. How is this achieved? A naive solution, which does not work, looks like: #+CAPTION:My caption #+LABEL: fig:my-api #+ATTR_LaTeX: width=130mm,height=30mm #+BEGIN_SRC haskell foo :: Int - String bar :: String - Int #+END_SRC How would I achieve this? -- Rob