Item descriptions get surrounded by wrong curly braces in LaTeX export

2020-02-17 Thread Joon Ro
Hi, I noticed that in LaTeX export, descriptions in description lists are surrounded by {} instead of [] in LaTeX export, making them not correctly rendered. For example, the following - Description :: Item - Description :: Item gets exported as \begin{description} \item{Description} Item \it

[O] Make org-agenda-switch-to to show all parent headings

2019-10-13 Thread Joon Ro
Hi, When I right click on an agenda item to invoke org-agenda-switch-to, it shows only the specific heading for the item and its top-level heading, and in-between headings are not shown. Is there a way to change this behavior so it shows all parent headings of the item? Currently I often am con

[O] Org mode 9.2 breaks org-edit-special on INCLUDE statement with :only-contents t

2019-02-06 Thread Joon Ro
Hi, After upgrading to org 9.2, I found that C-c ' (org-edit-special) does not work on an INCLUDE statement if it has :only-contents t. That is, I can normally visit the subtree with CUSTOM_ID theory in paper.org if I press C-c ' on the following: #+INCLUDE: "./paper.org::#theory" but pre

[O] org-babel-execute-src-block on +#CALL statement?

2019-01-12 Thread Joon Ro
Hi, Eventually I would like to batch-run a src block in a command line. While investigating it, I found that org-babel-execute-src-block throws "Wrong type argument: consp, nil" error when I run it over a #+CALL statement. For example, I can run the test src block below but it fails when the cu

Re: [O] org-open-link-from-string truncates file path at spaces

2018-04-29 Thread Joon Ro
Hi - > Nicolas Goaziou writes: > The initial report is wrong anyway, because "file:test test.hmtl" is not > a valid link syntax, i.e., plain links cannot contain spaces. It should > be: > > (org-open-link-from-string "[[file:test test.hmtl]]") > > IMO, there is nothing to fix in the first pl

[O] Visit the include file at point (C-c ') stopped working with user-error: No link found

2018-04-27 Thread Joon Ro
Hi - With Org mode version 9.1.12 (9.1.12-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20180427/), whenever I do C-c ' on a #+INCLUDE: , I get user-error: No link found error. I thought at first the include was broken, but when I export the file it correctly works, so the visiting part is the p

[O] org-open-link-from-string truncates file path at spaces

2018-01-01 Thread Joon Ro
Hi, With current org version (Org mode version 9.1.8 (9.1.8-elpaplus @ c:/Users/joon/.emacs.d/elpa/org-plus-contrib-20171228/)), org-open-link-from-string does not work with a path string if it includes a space. For example, (org-open-link-from-string "file:test test.hmtl") yields user-error

[O] The error "Opening input file: No such file or directory" should show the source org file

2017-10-13 Thread Joon Ro
Hi, I often see the error message: "Opening input file: No such file or directory" for one of the org files that has wrong file path for a #+SETUPFILE. It usually happens when I change the path of the setup file which is used by multiple org files. However, currently it is hard to locate the f

Re: [O] Export subtrees of level n

2017-09-03 Thread Joon Ro
> 2. Write a function to look up the tree from point and export the first > subtree with a certain property. I thought about implementing the second approach. I have slides for several talks in the same org file. Since I mostly need this functionality when I'm developing slides, just going up from

Re: [O] Questions about using macro replacement

2017-08-26 Thread Joon Ro
Answering without full knowledge! Thank you so much for the reply - your reply gave me several ideas. I think Q1 and Q3 are solved, but I still have no idea how to do Q2 or if it is possible. Q1, I figured it out and started using it - the {{{n}}} macros are awesome! 2. I was wondering if it i

[O] Questions about using macro replacement

2017-08-23 Thread Joon Ro
Hi, I have several questions about macro replacement usage. 1. I saw people using {{{n}}} macros, which looks very useful, but I could not find it in current documentation about macro replacement (http://orgmode.org/manual/Macro-replacement.html). Is this only available in developmental versio

Re: [O] Adding #+LATEX: \newpage before section header using org-export-before-parsing-hook

2017-02-11 Thread Joon Ro
;+newpage")) ) (add-hook 'org-export-before-parsing-hook 'org/parse-headings-newpage) From: Emacs-orgmode on behalf of Joon Ro Sent: Wednesday, February 8, 2017 8:58:40 PM To: Nick Dokos; emacs-orgmode@gnu.org Subject: Re: [O] Adding #+LATEX: \

Re: [O] Adding #+LATEX: \newpage before section header using org-export-before-parsing-hook

2017-02-08 Thread Joon Ro
> So you'll have to manipulate org-map-continue-from appropriately. Thanks a lot! Adding (setq org-map-continue-from (outline-next-heading)) after insert-string seemed to solve the problem. (I added "newpage" to org-tags-exclude-from-inheritance, so the newpage does not get applied to subheading

Re: [O] Adding #+LATEX: \newpage before section header using org-export-before-parsing-hook

2017-02-08 Thread Joon Ro
tring messes up the position. How would I insert string with the newline character before a heading? Best, Joon From: Thomas S. Dye Sent: Wednesday, February 8, 2017 2:48:47 PM To: Joon Ro Cc: emacs-orgmode@gnu.org Subject: Re: [O] Adding #+LATEX: \newpage befo

Re: [O] Adding #+LATEX: \newpage before section header using org-export-before-parsing-hook

2017-02-08 Thread Joon Ro
;) but I'm not sure how to add #+LATEX: \newpage before the section header - any help would be greatly appreciated. Best, Joon ________ From: Joon Ro Sent: Wednesday, February 8, 2017 1:52:42 PM To: emacs-orgmode@gnu.org Subject: Adding #+LATEX: \newpage before

[O] Adding #+LATEX: \newpage before section header using org-export-before-parsing-hook

2017-02-08 Thread Joon Ro
Hi, In latex export, sometimes I want to make sure a section starts in a new page. It seems I should be able to add a hook to org-export-before-parsing-hook, so if it sees a section with :newpage: tag (for example), it adds #+LATEX: \newpage before the section header so I would get \newpage

Re: [O] Release 9.0.4

2017-01-25 Thread Joon Ro
> Will this get syncd to the emacs repo ? > The emacs master branch still has org 8.2.10. You might want to add the org repo if you want to get the latest version of org. I have the following in my init.el file (org in addition to melpa): (when (>= emacs-major-version 24) (require 'package

Re: [O] format-time-string for a time range

2017-01-11 Thread Joon Ro
1:00PM–04:00PM instead? Best, Joon ____ From: Emacs-orgmode on behalf of Joon Ro Sent: Wednesday, January 11, 2017 4:43:28 PM To: emacs-orgmode@gnu.org Subject: [O] format-time-string for a time range Hi, I'm trying to specify org-time-stamp-custom-formats for

[O] format-time-string for a time range

2017-01-11 Thread Joon Ro
Hi, I'm trying to specify org-time-stamp-custom-formats for a time range. For example, [2016-05-10 Tue 13:00-16:00] Is there any way to specify this? Currently I'm using ("<%b %d (%a)>" . "<%b %d (%a) %I:%M%p>"), which results in May 10 (Tue) 01:00PM. I have not been able to find symbols

Re: [O] publishing subtrees

2017-01-09 Thread Joon Ro
> thank you, Joon, that is extremely helpful. Do you have a publishing setup in > which you use this function? It looks like it would have to be rewritten > somewhat to accept the parameters (plist filename pub-dir); I am either too > tired or twoo stupid (or both! ) figure it out quickly, so if y

Re: [O] publishing subtrees

2017-01-08 Thread Joon Ro
> In my course repositories, I have all my lecture notes in one file, and all > my assignments in another. So they have the form > > * Lecture 1 > ** Slide 1 > ** Slide 2 > * Lecture 2 ... > > * Assignment 1 > ** Description > ** Rubric > * Assignment 2... > > I'd like to have publishing functio

[O] org-babel-tangle ignores noweb-ref property

2017-01-03 Thread Joon Ro
Hi, When I use org 8.3.6, it works correctly, but when I use org 9.0.3, it seems org-babel-tangle ignores noweb-ref property. For example, using the example from http://orgmode.org/manual/noweb_002dref.html: #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh <> #+END_SRC

[O] pdflatex fails to write .log file when exporting a subtree with EXPORT_FILE_NAME containing a subdirectory

2016-11-03 Thread Joon Ro
Hi, After upgrading to org-mode 9.0, I'm getting the same error described here: https://lists.gnu.org/archive/html/emacs-orgmode/2013-05/msg01312.html. Basically LaTeX export stops with an error - pdflatex complains that it cannot write .log file, when I export a subtree with EXPORT_FILE_NAME

Re: [O] v9.0 running babel blocks

2016-11-03 Thread Joon Ro
> From: John Kitchin on behalf of John Kitchin > > > huh.. it seems to have disappeared. I deleted the orgplus directory in > my elpa directory and reinstalled it, and it seemed to go away. > > weird. I can confirm that this worked for me as well - I removed both org and org-plus-contrib in m

Re: [O] v9.0 running babel blocks

2016-11-03 Thread Joon Ro
> I get this message on trying to run an elisp block. > > Evaluation of this emacs-lisp code-blockis disabled. > > > There are two issues: > 1. there is a missing space between block and is (and maybe code-block > should not be hyphenated) in org-babel-check-evaluate > 2. It used to work! If I run

Re: [O] Can one tangle only the current blocks under header ?

2016-08-02 Thread Joon Ro
erent or as many files as you like during tangling. Sincerely, Grant Rettke On Sat, Jul 30, 2016 at 1:38 PM, Joon Ro wrote: > can one tangle only the current blocks under header or can you only tangle > the whole file? > the issue is again for dotfiles managed by org t

Re: [O] Can one tangle only the current blocks under header ?

2016-07-30 Thread Joon Ro
can one tangle only the current blocks under header or can you only tangle the whole file?the issue is again for dotfiles managed by org that these files are not proper org babel languages and look like this: #+BEGIN_SRC conf :mkdirp yes :tangle ~/.config/mpv/mpv.confsoftvol-max=600 #+END_S

Re: [O] Using property values in source code blocks

2016-07-16 Thread Joon Ro
> I do not see an easy way to do what you want only with tangle. > > There are hooks you can define that might enable you to set things up. > Maybe you can use `org-babel-pre-tangle-hook' to collect the property > values and put them somewhere that `org-babel-post-tangle-hook' can get at > them

Re: [O] Using property values in source code blocks

2016-07-15 Thread Joon Ro
> > Example: > > --8<---cut here---start->8--- > > * Top Heading > > #+NAME: get-property > #+BEGIN_SRC emacs-lisp :noweb yes :var prop="prop" :var pom=0 > (car (org-entry-get-multivalued-property pom prop)) > #+END_SRC > > ** Subheading > :PROPERTIES: > :

Re: [O] Using property values in source code blocks

2016-07-15 Thread Joon Ro
It seems org-property-values gets the property value for the buffer - it ends up getting the property value from the last subtree in the buffer. I solved this by using either (org-entry-get nil prop) or (car (org-entry-get-multivalued-property nil prop)) instead of (car (org-property-values pr

Re: [O] Using property values in source code blocks

2016-07-15 Thread Joon Ro
> --8<---cut here---end--->8--- > > * Subtree > :PROPERTIES: > :DUMMY: Value > :END: > > #+NAME: get-property > #+BEGIN_SRC emacs-lisp :var prop="prop" > (car (org-property-values prop)) > #+END_SRC > > #+BEGIN_SRC shell :noweb yes > > echo <> > > #+END_SRC

Re: [O] Using property values in source code blocks

2016-07-07 Thread Joon Ro
> Date: Thu, 7 Jul 2016 08:48:03 -0700 > From: ccbe...@ucsd.edu > To: joon...@outlook.com > Subject: Re: [O] Using property values in source code blocks > CC: emacs-orgmode@gnu.org > > On Wed, 6 Jul 2016, Joon Ro wrote: > > > > > > > > >>

Re: [O] Using property values in source code blocks

2016-07-06 Thread Joon Ro
> I have no idea what you are asking. > > > The reason is I have to put those values inside a comment, > > so I cannot pass them as variables. > > So your original query about accessing property values from src blocks was > not what you wanted? > > Examples of what one is trying to do - eve

Re: [O] Using property values in source code blocks

2016-07-06 Thread Joon Ro
> Yes. `org-property-values' does the trick > > > * Subtree > :PROPERTIES: > :DUMMY: Value > :END: > > #+BEGIN_SRC shell :var dumdum=(car (org-property-values "DUMMY")) > echo $dumdum > #+END_SRC > > #+RESULTS: > : Value > > #+NAME: get-property > #+BEGIN_SRC emacs-lisp :var prop="prop" > (or

[O] Using property values in source code blocks

2016-07-05 Thread Joon Ro
Hi, I'm aware of passing variables through header arguments, and also inserting another source code block using the noweb syntax. I was wondering, however, would it be possible to directly input values of properties inside source code blocks? For example, * Subtree:PROPERTIES::DUMMY: Value:END:

[O] Using property macro with argument (or subtree-specific macro)

2016-03-19 Thread Joon Ro
Hi, Is there any way to use argument with property macro? For example, * test:PROPERTIES::HIDDEN: @@latex:\iffalse $1 \fi@@:END: {{{property(HIDDEN(string))}}} I don't think currently it is possible, but it would be great if this is possible, or we can have subtree-specific macro replacement. Than

Re: [O] Remove notes blocks from latex export

2016-01-03 Thread Joon Ro
> A simple derived exporter? Or (on the LaTeX side) the comment package? > Thank you. I managed to achieve this with the following code: (defun my/latex-remove-NOTES-blocks (text backend info) "Filter special blocks from latex export." (when (eq backend 'latex) (if (string/starts-with tex

[O] Remove notes blocks from latex export

2016-01-01 Thread Joon Ro
Hi, org-reveal uses notes blocks (#+BEGIN_NOTES) for speaker notes, and I want to remove those blocks when I export those slides to latex for handouts.For src blocks it can be done easily with org-export-filter-src-block-functions - is there any way to do this with generic blocks? Thank you and

Re: [O] :minlevel for columnview dynamic block

2015-11-18 Thread Joon Ro
> > Fixed. Thank you. > Thank you so much for the quick fix! It now works perfectly. Best,Joon

Re: [O] :minlevel for columnview dynamic block

2015-11-16 Thread Joon Ro
> > http://orgmode.org/worg/org-faq.html#ecm > I sent this email yesterday but I'm sending it again because it seems it did not go through - I'm sorry if this is a duplicate message. I found that skip-empty-rows works correctly only if ITEM is in the COLUMNS property. Here is an ECM :). As yo

Re: [O] :minlevel for columnview dynamic block

2015-11-16 Thread Joon Ro
> http://orgmode.org/worg/org-faq.html#ecmThank you. I found that > skip-empty-rows works correctly only if ITEM is in the COLUMNS property. Here > is an ECM :). As you can see, when ITEM is not included in COLUMNS property, > it generates an empty line for the parent heading.* Columnview with I

Re: [O] :minlevel for columnview dynamic block

2015-11-16 Thread Joon Ro
> http://orgmode.org/worg/org-faq.html#ecm I found that skip-empty-rows works correctly only if ITEM is in the COLUMNS property. Here is an ECM :). As you can see, when ITEM is not included in COLUMNS property, it generates an empty line for the parent heading. * Columnview with ITEM in columns:

Re: [O] :minlevel for columnview dynamic block

2015-11-15 Thread Joon Ro
> > Could you provide an ECM? Thank you. > I'm sorry, what is an ECM? -Joon

Re: [O] :minlevel for columnview dynamic block

2015-11-14 Thread Joon Ro
> > Could you provide an ECM? Thank you. > I'm sorry, what is an ECM?

[O] :minlevel for columnview dynamic block

2015-11-13 Thread Joon Ro
Hi, I use columnview a lot with :id option to generate a table from sub-headlines of the tree that has an :ID: property. The issue is that even with :skip-empty-rows t option, the generated table always have one empty line on the top, for the headline for the tree itself. It would be great to ha

Re: [O] Favorite way of syncing?

2015-09-11 Thread Joon Ro
I use Unison for settings like dotfiles, since with unison you don't have to put files into a specific folder or use symlinks. I miss versioning of Dropbox, but it is okay since settings do not change that frequently. I just back up everything every day. I use AeroFS for sensitive data and Dropb

[O] subtreep option in export stopped working propery

2015-09-06 Thread Joon Ro
Hi, I have been using a link containing elisp:(org-beamer-export-to-pdf nil t) to export the subtree as a beamer pdf. It used to work well, but after a certain update a couple of months ago (I'm using 8.3beta and I regularly update it), it stopped working properly. For example, when I click on t

Re: [O] subtreep option in export stopped working propery

2015-09-05 Thread Joon Ro
I figured it out - the culprit was Evil mode. For some reason, if I click on the link in the normal state, the problem happens, while in emacs state it works.Thanks. -JoonFrom: joon...@outlook.com To: m...@nicolasgoaziou.fr CC: emacs-orgmode@gnu.org Subject: RE: [O] subtreep option in export sto

Re: [O] subtreep option in export stopped working propery

2015-09-05 Thread Joon Ro
I got rid of my init file and it exported correctly, so I guess there is something in my init file which was causing this - I will figure it out. Thank you so much.From: joon...@outlook.com To: m...@nicolasgoaziou.fr Date: Sat, 5 Sep 2015 12:34:24 -0700 CC: emacs-orgmode@gnu.org Subject: Re: [O]

Re: [O] subtreep option in export stopped working propery

2015-09-05 Thread Joon Ro
> From: m...@nicolasgoaziou.fr > > I cannot reproduce it. Did you (require 'ox-beamer)? You might also try > latest Org. > Thank you for the reply. I added require 'ox-beamer to my init file but it did not make any difference. I'm using the lastest Org (8.3beta). Again, my org file is * Expor

[O] subtreep option in export stopped working propery

2015-09-04 Thread Joon Ro
Hi, I have been using a link containing elisp:(org-beamer-export-to-pdf nil t) to export the subtree as a beamer pdf. It used to work well, but after a certain update a couple of months ago (I'm using 8.3beta and I regularly update it), it stopped working properly. For example, when I click on t

Re: [O] Tangling #+Results block?

2015-06-22 Thread Joon Ro
> > See: > > http://orgmode.org/manual/Noweb-reference-syntax.html#Noweb-reference-syntax > I have read that documentation several times - I cannot believe I missed that. Thank you very much.

Re: [O] Tangling #+Results block?

2015-06-22 Thread Joon Ro
I found the following thread, and tried to follow it, but it did not work: https://lists.gnu.org/archive/html/emacs-orgmode/2010-11/msg00390.html From: joon...@outlook.com To: emacs-orgmode@gnu.org Date: Sun, 21 Jun 2015 21:40:17 -0700 Subject: [O] Tangling #+Results block? Is it possible to ta

[O] Tangling #+Results block?

2015-06-21 Thread Joon Ro
Is it possible to tangle #+RESULTS: block? For example, #+BEGIN_SRC rst :tangle ./test.txt :noweb yes<>#+END_SRC #+BEGIN_SRC python :exports results :results output rawprint("Printed Results")#+END_SRC #+RESULTS: Printed Results And I want to tangle #+RESULTS: part, not the actual Python source co

Re: [O] Column formats for columnview dynamic block

2015-06-18 Thread Joon Ro
I solved this with providing 'printf' format specifiers (http://orgmode.org/org.html#Formula-syntax-for-Calc). I wasn't aware of the the formatting capability - awesome.From: joon...@outlook.com To: emacs-orgmode@gnu.org Date: Thu, 18 Jun 2015 15:27:33 -0700 Subject: [O] Column formats for colum

[O] Column formats for columnview dynamic block

2015-06-18 Thread Joon Ro
Hi, I use columnview dynamic block to generate a table so I can export it.However, it does not obey the #+COLUMNS: settings that I have in the org file.Is there any way to make it obey the settings? I'm exporting the table for LaTeX and I want to control the number of digits that it shows. Chee

[O] Hiding stars for Item column from columnview

2015-05-31 Thread Joon Ro
Hi, I'm using the great columnview feature a lot to generate dynamic tables. When I use %Item column, the generated table shows the stars in front of each heading.I used to not include "Item" in columns, and added additional property for the name for each heading to avoid this. However, I need t

Re: [O] Subtree-specific variables

2015-05-10 Thread Joon Ro
Oh, I forgot to turn on org-use-property-inheritance. Now it works in the included subtree as well. Thank you so much!From: joon...@outlook.com To: m...@nicolasgoaziou.fr CC: emacs-orgmode@gnu.org Subject: RE: Subtree-specific variables Date: Sun, 10 May 2015 12:01:23 -0500 > * Subtree root >

Re: [O] Subtree-specific variables

2015-05-10 Thread Joon Ro
> * Subtree root > > :PROPERTIES: > > :EXPORT_Variable: Test> > :END: > > {{{Variable}}} > > Would something like this be possible? > > Best,Joon > > It is: > > {{{property(EXPORT_Variable)}}} > Thank you so much! This will be very useful. One related question - I'm including another subtr

Re: [O] Subtree-specific variables

2015-05-09 Thread Joon Ro
> > Usually, you get subtree specific variables with node properties, > appending "EXPORT_" to them, e.g. > > * Subtree root > :PROPERTIES: > :EXPORT_AUTHOR: Not me > :END: > > > I have been using #+MACRO: but it seems it is a buffer-wide thing. > > The suggestion above doesn't apply to

[O] Subtree-specific variables

2015-05-08 Thread Joon Ro
Hi, I was wondering if there is a way to have subtree-specific variables? I have been using #+MACRO: but it seems it is a buffer-wide thing. For example, it would be great if I can use a property value in org-mode bodies. Best,Joon

Re: [O] ox-latex export code block results without \texttt

2015-05-01 Thread Joon Ro
I'm sorry, :results latex solved my problem. :)From: joon...@outlook.com To: emacs-orgmode@gnu.org Date: Fri, 1 May 2015 17:34:34 -0500 Subject: [O] ox-latex export code block results without \texttt Hi, When I export a org file with an inline code like "Two plus two equals src_python{return(2

[O] ox-latex export code block results without \texttt

2015-05-01 Thread Joon Ro
Hi, When I export a org file with an inline code like "Two plus two equals src_python{return(2+2)}" to latex, it is exported as "Two plus two equals \texttt{4}". Is there any way to suppress \texttt and have it exported as a common text? Usually I would want the verbatim font, but in this partic

Re: [O] Using macros in properties

2015-04-30 Thread Joon Ro
> From: m...@nicolasgoaziou.fr > > Actually, this is now possible in development version. Truth is no match > against Time. > Indeed! Thank you so much for letting me know (I just saw your reply). In fact I'm using the dev version and it seems to be working well. Thank you. -Joon

Re: [O] export fails with "byte-code: Before first headline at position ..."

2015-04-26 Thread Joon Ro
Apparently it was caused by the following custom function for org-export-before-parsing-hook that I had to remove the subtree with "beameronly" tag: (defun as/delete-ignored-heading (backend) (unless (equal backend 'beamer) ; remove subtree with beameronly tag (org-map-entries

[O] export fails with "byte-code: Before first headline at position ..."

2015-04-26 Thread Joon Ro
Hi, When I try to export my org files I'm getting this error. For example: byte-code: Before first headline at position 1 in buffer Blog.org<2> I could not find any way to fix this - any help will be very appreciated. Thank you,Joon

[O] Beamer export: heading tags rendered as \textsc{}

2015-04-21 Thread Joon Ro
Hi, I just found that beamer export is rendering heading tags with \textsc. For example, it looks like this in the latex file: \section{Section Name\hfill{}\textsc{tagname}} Which makes them show up in the navigation bar in beamer slides.Please let me know if I can turn this off - I'm using o

Re: [O] Using macros in properties

2015-04-04 Thread Joon Ro
> From: m...@nicolasgoaziou.fr > > This is not possible. > Thanks for letting me know. :) -Joon

[O] Using macros in properties

2015-04-04 Thread Joon Ro
Hi, I was wondering if it is possible to use macros in properties? I'm exporting a subtree separately, and wanted to have something like this: * Heading:PROPERTIES: :EXPORT_FILE_NAME: ./test:EXPORT_AUTHOR: {{{AUTHOR}}}:END: #+MACRO: AUTHOR joon But when I export the document, the author part comes

Re: [O] INCLUDE heading

2015-04-01 Thread Joon Ro
> From: ras...@gmx.us > Date: Wed, 1 Apr 2015 21:42:43 +0200 > Subject: Re: [O] INCLUDE heading > > Joon Ro writes: > > > I would love to have this feature (include only a subtree from another org > > file) as well. > > You can do this in Org v8.3. > T

Re: [O] INCLUDE heading

2015-04-01 Thread Joon Ro
Rob Richmond gmail.com> writes: > > > Hi all, > I use org-mode to write both papers and slides. The code to generate tables and figures is placed in source blocks. Most of the time I use the same tables in my slides as in my papers, but a lot of preprocessing code is needed to generate the t