Re: [O] [NOT SOLVED: BUG?] (was: [SOLVED])

2017-08-03 Thread Berry, Charles
> On Aug 3, 2017, at 1:04 AM, Uwe Brauer wrote: > > > > I just checked and situation is absurd. Here is the minimal example: > [snip] > > When I set org-export-babel-evaluate nil, then the code is *not* > evaluated, *but* the code block *and* the result are exported. >

Re: [O] Happily exporting LaTeX, now want to export to text and HTML, can't figure how to handle latex markup

2017-08-03 Thread Berry, Charles
> On Aug 2, 2017, at 4:22 PM, Jeremie Juste wrote: > > > > Hello > >> >> Putting together a macro seems like the best option. Recall that you >> can use elisp in macros by placing it between `(eval’ and `)', so the >> following emits “def’ in all but latex exports

Re: [O] interaction of =org-export-babel-evaluate= and =results output= counter-intuitive

2017-08-15 Thread Berry, Charles
> On Aug 15, 2017, at 5:25 AM, George Jones wrote: > > __ > [snip] > I want to define code blocks that export only results, and are not > automatically executed on export. To get this behavior, I have to > > - `setq

Re: [O] [Feature Request] Provide a way to jump to noweb reference definition under point

2017-08-13 Thread Berry, Charles
You want ,[ C-h k C-c C-v g ] | C-c C-v g runs the command org-babel-goto-named-src-block (found in | org-mode-map), which is an interactive autoloaded compiled Lisp | function in ‘ob-core.el’. | | It is bound to C-c C-v g. | | (org-babel-goto-named-src-block NAME) | | Go to a named

Re: [O] Property header :session... really working?

2017-08-10 Thread Berry, Charles
> On Aug 10, 2017, at 5:54 AM, Igor Sosa Mayor > wrote: > > Hi, > > I have in an org file the following > > #+PROPERTY: header-args:R :session *R-cities* > > I open a R session, rename it to *R-cities*, open the org file. If I go > then to a babel block and send

Re: [O] Happily exporting LaTeX, now want to export to text and HTML, can't figure how to handle latex markup

2017-08-02 Thread Berry, Charles
> On Aug 1, 2017, at 10:20 PM, Grant Rettke wrote: > > Good morning, > > I'm happily exporting an Org-Mode document to LaTeX using the nifty > `letterine' package. An example is attached. Writing using it has been > so fun that naturally now I want to export it both

Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Berry, Charles
> On Aug 16, 2017, at 11:19 AM, Eric S Fraga <e.fr...@ucl.ac.uk> wrote: > > On Wednesday, 16 Aug 2017 at 17:48, Berry, Charles wrote: > > [...] > >> org 9.0.9 and FWIW, I see this > > [...] > >> in org-babel-execute:octave > > But

Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Berry, Charles
> On Aug 15, 2017, at 2:12 AM, Neil Jerram wrote: > > On 13/08/17 10:33, Uwe Brauer wrote: >> Hi >> >> I would like to execute some matlab code in org file (using GNU emacs 26 >> and the git version of org mode) and save the result of the plot command >> in a png

Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Berry, Charles
> On Aug 16, 2017, at 10:41 AM, Eric S Fraga <e.fr...@ucl.ac.uk> wrote: > > On Wednesday, 16 Aug 2017 at 17:25, Berry, Charles wrote: > > [...] > >> I do not have matlab, but looking at the code in ob-matlab.el and >> ob-octave.el, it seems

Re: [O] "header-args :eval inline-only" not working

2017-08-19 Thread Berry, Charles
> On Aug 19, 2017, at 1:36 PM, Vikas Rawal > wrote: > > >> On 20-Aug-2017, at 12:57 AM, Nicolas Goaziou wrote: >> >> Hello, >> >> Vikas Rawal writes: >> >>> My org-version (latest on org ELPA) is:

Re: [O] "header-args :eval inline-only" not working

2017-08-19 Thread Berry, Charles
> On Aug 19, 2017, at 6:10 PM, Vikas Rawal > wrote: > >> >> >> The first problem is that you have babel code *inside* a macro. Since >> macros are run after babel executes, nothing will happen. > > From the manual: "Org expands macros at the very beginning

Re: [O] "header-args :eval inline-only" not working

2017-08-19 Thread Berry, Charles
> On Aug 19, 2017, at 7:24 PM, Vikas Rawal > wrote: > > >> >> There is a bug in the documentation -- `org-export-babel-evaluate' is >> obsolete. It should say `org-export-use-babel’. > > I don’t see org-export-use-babel in available options. I cannot

Re: [O] "header-args :eval inline-only" not working

2017-08-20 Thread Berry, Charles
> On Aug 20, 2017, at 3:21 AM, Nicolas Goaziou wrote: > > Hello, > > Vikas Rawal writes: > >> I am on the latest version on org mode ELPA. It is dated August 18, >> 2017, so should include the commit you mention. > >

Re: [O] switch export subtree

2017-08-24 Thread Berry, Charles
> On Aug 24, 2017, at 12:12 AM, Sébastien Le Maguer > wrote: > > Hello, > > I'm looking for a way to switch of the export of a specific subtree in a > document using a specific exporter. For example, let's assume the document > > * Section 1 > ** Subsection

Re: [O] how to get version information on title slide with org beamer

2017-08-26 Thread Berry, Charles
> On Aug 26, 2017, at 10:57 AM, Eric S Fraga wrote: > > Hello all, > > I know I can use {{{modification-time(...,t)}}} say to get the revision > control system information about when the repository was last > modified. However, I would like to have other information (e.g.

Re: [O] problem evaluating src block on file opening

2017-08-25 Thread Berry, Charles
> On Aug 25, 2017, at 6:01 AM, Eric S Fraga wrote: > > Hello, > > Long story short: org-babel-goto-named-src-block does not seem to work, > at least since b862c24b9f or thereabouts? > Confirmed on my setup. Here is an ECM. Always goes to the first block.

Re: [O] Edit whole session with org-edit-src-edit

2017-10-08 Thread Berry, Charles
> On Oct 8, 2017, at 3:58 PM, Yury G. Kudryashov wrote: > > Hello, > > I want to use orgmode for literate programming with Coq. > I like the "edit in major mode" org-edit-src-edit feature, but it > exports only the current src block to the temprorary buffer, so it's >

Re: [O] Unable to retrieve :parameters for src-block [org-element]

2017-10-17 Thread Berry, Charles
> On Oct 17, 2017, at 5:51 AM, Kaushal Modi wrote: > > So it is clear that the parameters are read inside > org-element-src-block-parser, but I don't understand why > (org-element-property :parameters src-block) is unable to fetch the same. > > Hints? > -- The copy

Re: [O] Unable to retrieve :parameters for src-block [org-element]

2017-10-17 Thread Berry, Charles
> On Oct 17, 2017, at 10:22 AM, Kaushal Modi <kaushal.m...@gmail.com> wrote: > > On Tue, Oct 17, 2017 at 12:31 PM Berry, Charles <ccbe...@ucsd.edu> wrote: > The copy buffer that org-export-as sets up will contain this src block > *after* the babel process runs. >

Re: [O] org-babel: insert named source block

2017-11-15 Thread Berry, Charles
> On Nov 15, 2017, at 11:04 AM, Deepak Cherian wrote: > > Has anyone here managed to configure ivy or helm to show a list of named > source blocks that org knows about? > > I am imagining this workflow: > 1. M-x org-babel-insert-named-source-block (imaginary function)

Re: [O] changed visibility when using org-goto-named-src-block

2017-11-27 Thread Berry, Charles
> On Nov 27, 2017, at 9:14 AM, Eric S Fraga wrote: > > when I invoke org-babel-goto-named-src-block, all entries that have > source blocks become visible (or maybe all contents become visible) > regardless of what was folded or not before invoking the command. This happens

Re: [O] changed visibility when using org-goto-named-src-block

2017-11-28 Thread Berry, Charles
> On Nov 27, 2017, at 11:54 PM, Eric S Fraga <esfli...@gmail.com> wrote: > > On Monday, 27 Nov 2017 at 17:48, Berry, Charles wrote: >> This happens when `org-babel-src-block-names' calls `org-next-block' >> calls `org-show-context'. > > Thanks. Was

Re: [O] header argument :noweb-ref seems can't be resolved

2017-12-17 Thread Berry, Charles
> On Dec 17, 2017, at 6:58 AM, stardiviner wrote: > > I have the following org-mode file content: > > ```org > > #+begin_src shell :tangle yes :noweb yes :shebang #!/bin/sh > <> > #+end_src > > ** the mount point of the fullest disk > :PROPERTIES: > :header-args:

Re: [O] "Minimal" LaTeX export

2017-12-16 Thread Berry, Charles
> On Dec 16, 2017, at 8:48 AM, Vicente Vera wrote: > > I'm trying to export a simple document to a LaTeX buffer, but just the > main content, without a preamble nor the "document" environment. You want `(org-latex-export-as-latex nil nil nil t)' or `C-c C-e C-b l L'.

Re: [O] header argument :noweb-ref seems can't be resolved

2017-12-18 Thread Berry, Charles
> On Dec 17, 2017, at 8:28 PM, stardiviner wrote: > > I can't find `org-babel-noweb-ref-resolve` in any of org-mode `master` branch > source code. Sorry. I was off my medication when I wrote that. I suffer from CDD (Caffeine Deficit Disorder). Now I am back on my meds

Re: [O] [BUG] Re: header argument :noweb-ref seems can't be resolved

2017-12-19 Thread Berry, Charles
> On Dec 18, 2017, at 11:31 PM, stardiviner wrote: > > Confirmed. I don't know how to fix this problem, so maybe report to Org-mode > ML is the better way. (I changed the message title by prepend [BUG]) I guess I was unclear. There are two ways to fix this. 1) let bind

Re: [O] [BUG] Re: header argument :noweb-ref seems can't be resolved

2017-12-19 Thread Berry, Charles
> On Dec 19, 2017, at 11:00 AM, Nicolas Goaziou wrote: > > Since :noweb-ref is the only property that absolutely needs to be > retrieved from definition, another option would be to write a specific > function for that. > > It implies some duplicated efforts with

Re: [O] header argument :noweb-ref seems can't be resolved

2017-12-18 Thread Berry, Charles
> On Dec 18, 2017, at 9:28 AM, numbch...@gmail.com wrote: > > Hope someone can help here. > OK. I think I have it. `org-babel-params-from-properties' uses `org-babel-current-src-block' to figure out where to look for properties. And o-b-c-s-b-l is let bound in

Re: [O] header argument :noweb-ref seems can't be resolved

2017-12-17 Thread Berry, Charles
> On Dec 17, 2017, at 6:08 PM, stardiviner wrote: > > The example I original copied from is Emacs org-mode info. > So I rewrite a hand typing content again: > ```org > * Test > > #+begin_src shell :tangle yes :noweb yes :shebang #!/bin/sh > <> > #+end_src > > ** the

Re: [O] org-babel: insert named source block

2017-11-15 Thread Berry, Charles
> On Nov 15, 2017, at 4:12 PM, Deepak Cherian wrote: > > Thanks. That works well, but only shows named source blocks in the particular > file. > > Is there a way to make it show library of babel blocks too? Sure. `org-babel-library-of-babel' is an association list

Re: [O] function for inserting a block

2017-11-08 Thread Berry, Charles
> On Nov 8, 2017, at 6:07 AM, Rasmus wrote: > > I think the template expansion a la " YASnippet installed for many years, and I never figured out how to use it > properly. To me, it is a bit too complex a replacement. Me too. "

Re: [O] [patch] structure snippet completions

2017-12-08 Thread Berry, Charles
> On Dec 7, 2017, at 3:37 PM, Rasmus wrote: > > I have also pushed the code. " enabled by requiring org-tempo. > Thanks. I was in a deep funk without " Let me know about any issues. > Maybe make

[O] Irrelevant src blocks can break noweb expansion

2017-12-10 Thread Berry, Charles
I used to avoid this by `(setq org-babel-use-quick-and-dirty-noweb-expansion t)'. This illustrates the issue: #+begin_src org ,* abc ,#+begin_src R :comment (message "running on empty") ,#+end_src ,#+begin_src R :noweb yes 1 ,#+end_src #+end_src The irrelevant, unnamed, empty

Re: [O] [patch] structure snippet completions

2017-12-09 Thread Berry, Charles
> On Dec 8, 2017, at 1:20 PM, Rasmus wrote: > >> >> A minor gotcha: if you `(require 'org-tempo)' after an org buffer has >> been created you will need to (org-mode-restart) the buffer to enable >> completions. I got stuck trying to add custom templates until I >> realized

[O] Bug: Inline src block results no longer exported

2017-12-10 Thread Berry, Charles
This commit --- commit 5f5d82ed516b7b385a9258271becbfa247e94af3 Author: Nicolas Goaziou Date: Tue Nov 21 22:25:17 2017 +0100 Remove second pass for macro expansion --- breaks the processing of inline src block results wrapped as {{{results(=my result=)}}}.

Re: [O] Irrelevant src blocks can break noweb expansion

2017-12-12 Thread Berry, Charles
> On Dec 11, 2017, at 11:42 PM, Nicolas Goaziou wrote: > >> >> The irrelevant, unnamed, empty src block its consulted via >> org-babel-get-src-block-info. > > When? AFAICT, the second block doesn't contain any Noweb reference, so > there is nothing to consult in the

Re: [O] Painfully Slow Export

2018-06-12 Thread Berry, Charles
> On Jun 12, 2018, at 7:01 AM, Ken Mankoff wrote: > > I'm trying to export a file to LaTeX. It takes about one minute. The > file is 12000 lines long and has 200 code blocks. I have set: > > #+PROPERTY: header-args :eval never-export > That is the right idiom. Of course, you have to

Re: [O] Painfully Slow Export

2018-06-12 Thread Berry, Charles
> On Jun 12, 2018, at 12:41 PM, Ken Mankoff wrote: > > Hi Chuck, > > It looks fine to me. I see: > > Name: fig:foo > Lang: python > Properties: > :header-args:eval never-export > :header-args:python nil > Header Arguments: > :cache no > :eval

Re: [O] Painfully Slow Export

2018-06-12 Thread Berry, Charles
> On Jun 12, 2018, at 2:30 PM, Ken Mankoff wrote: > > Based on the profiling, I think the reason it takes 1 minute is because the > code blocks use <> blocks? I do not see this. It takes a bit longer to run the noweb example you gave with 200 `baz' src blocks, but nothing crazy - like 10

Re: [O] Painfully Slow Export

2018-06-13 Thread Berry, Charles
> On Jun 12, 2018, at 10:32 PM, Ken Mankoff wrote: > > > > On Wed, Jun 13, 2018 at 12:12 AM Berry, Charles wrote: > > On Jun 12, 2018, at 2:30 PM, Ken Mankoff wrote: > > > > Based on the profiling, I think the reason it takes 1 minute is because the >

[O] BUG? WAS: Re: Painfully Slow Export

2018-06-14 Thread Berry, Charles
tl;dr: `:exports results :noweb no-export :eval never-export' needlessly expands <> code causing massive slowdowns on export. > On Jun 13, 2018, at 9:42 PM, Ken Mankoff wrote: > > One more thought - even if your system is significantly faster for some > unknown reason - why is export taking

Re: [O] running a source code by name

2018-05-28 Thread Berry, Charles
--- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > > > On Mon, M

Re: [O] running a source code by name

2018-05-30 Thread Berry, Charles
> On May 29, 2018, at 11:59 PM, Julian M. Burgos > wrote: > > I am building an org template to create html presentations using the R > package xaringan. In my case each slide is a markdown source block. > The elisp block tangles everything into a Rmd file, and the R block runs >

Re: [O] C++ is not accepted for SRC block evaluation

2018-05-30 Thread Berry, Charles
> On May 30, 2018, at 4:11 AM, Nicolas Goaziou wrote: > > Hello, > > Aaron Ecay writes: > >> Improved documentation is never a bad thing. OTOH, I personally would >> not spend time on implementing the mapping you propose. > > I simply added a footnote about C++ and D languages. > >>

Re: [O] Babel problem: Output incomplete if it contains # character (only in session)

2018-06-04 Thread Berry, Charles
> On Jun 4, 2018, at 9:42 AM, Marian Schubert wrote: > > I'm having trouble with babel block like this: > > > #+BEGIN_SRC shell :results output :session abc > echo foo#bar > #+END_SRC > > When I execute it for the first time I get this result: > > #+RESULTS: > : > : foo#bar > > When I

Re: [O] running a source code by name

2018-05-28 Thread Berry, Charles
> On May 28, 2018, at 7:35 AM, Eric S Fraga wrote: > > On Monday, 28 May 2018 at 11:13, Julian M. Burgos wrote: >> Dear list, >> >> I have an org file with an R source code block. I want to have a second >> code block with an elisp call to run that first code. Something

Re: [O] Including file from a macro?

2018-06-27 Thread Berry, Charles
> On Jun 27, 2018, at 2:28 AM, Diego Zamboni wrote: > > Hi Nicolas, > > (sorry for repeat- resending reply to list) > > Thanks for the clarification. Do you think there could be a way to achieve > what I need (basically what was shown in my question). I would to build a > summary file

Re: [O] BUG? WAS: Re: Painfully Slow Export

2018-06-23 Thread Berry, Charles
> On Jun 23, 2018, at 2:06 PM, Nicolas Goaziou wrote: > > Hello, > > "Berry, Charles" writes: > >> tl;dr: `:exports results :noweb no-export :eval never-export' needlessly >> expands <> code causing massive slowdowns on export. > >

Re: [O] Missing `Specific Header Arguments' in Manual

2018-05-01 Thread Berry, Charles
> On May 1, 2018, at 2:49 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > > Hello, > > "Berry, Charles" <ccbe...@ucsd.edu> writes: > >> I miss not being able to refer to a single section in the manual so >> I can browse th

Re: [O] Babel: Shell source block outputting latex for export

2018-05-01 Thread Berry, Charles
> On May 1, 2018, at 9:29 AM, Russell Adams wrote: > > Seems like this recently broke. > > Here's an example: > > #+begin_src sh :results latex :exports results >echo '\begin{lstlisting}' >echo 'latex test should not be table' >echo '\end{lstlisting}' >

[O] Missing `Specific Header Arguments' in Manual

2018-05-01 Thread Berry, Charles
I miss not being able to refer to a single section in the manual so I can browse the useful babel header arguments whose name, spelling, or function I have forgotten. I guess it was re-organized out of the manual in the update to the new org formatted manual. Is there any way to recover this?

Re: [O] Missing `Specific Header Arguments' in Manual

2018-05-01 Thread Berry, Charles
> On May 1, 2018, at 3:10 PM, Kaushal Modi wrote: > > Hi Nicolas, > > I ran into this issue too very recently when I wanted to search for ":eval". > Details below. > > On Tue, May 1, 2018 at 5:50 PM Nicolas Goaziou wrote: > > Yes, and it

Re: [O] Missing `Specific Header Arguments' in Manual

2018-05-02 Thread Berry, Charles
> On May 2, 2018, at 3:56 AM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > > Hello, > > "Berry, Charles" <ccbe...@ucsd.edu> writes: > >> cmdline (not in the previous info version either) >> sep > > I'm not sure what these two

[O] `:wrap src latex' now fails on export

2017-12-24 Thread Berry, Charles
I can execute this src block with no problems: #+begin_src emacs-lisp :wrap src latex :exports results "some-text" #+end_src and it will produce the expected result: #+RESULTS: #+begin_src latex some-text #+end_src and if I then export as (say) `C-c C-e C-b l L n y', I get just `some-text' in

Re: [O] `:wrap src latex' now fails on export

2017-12-24 Thread Berry, Charles
> On Dec 24, 2017, at 3:16 PM, Nicolas Goaziou wrote: > > I fixed it in maint. > Yes, indeed. Thank you! Chuck

Re: [O] Change mode in org-edit-special

2018-02-02 Thread Berry, Charles
> On Feb 1, 2018, at 9:07 PM, ed...@openmail.cc wrote: > > Is there a safe way to change mode in an org-edit-special buffer? The safest thing would be to customize `org-src-lang-modes' so the buffer is created with the mode you want to edit in. Or if you want to edit in that mode only

Re: [O] computing the size of a tikz to png image during export

2018-01-28 Thread Berry, Charles
> On Jan 28, 2018, at 7:37 AM, Fabrice Popineau > wrote: > > I jump on this example to ask: does this by-backend trick still work with Org > 9.1.6? Probably not. Nowadays, you should reference `org-export-current-backend ', not `backend'. ,[ C-h v

Re: [O] BUG report [Was: computing the size of a tikz to png image during export]

2018-01-28 Thread Berry, Charles
> On Jan 28, 2018, at 3:24 PM, Nicolas Goaziou wrote: > > Would you have an ECM? I don't know what is "the by-backend trick". Not a bug AFAICS. `by-backend' is a macro mentioned here: https://lists.gnu.org/archive/html/emacs-orgmode/2013-07/msg00500.html I guess it

Re: [O] BUG report [Was: computing the size of a tikz to png image during export]

2018-01-29 Thread Berry, Charles
> On Jan 28, 2018, at 11:49 PM, Fabrice Popineau > wrote: > > You should have a look at commit 38be85124551083d269. > It prevents evaluation of the by-backend form in parameters. > You are right. I do not see a clean way to do what `by-backend' would

Re: [O] :EXPORT_FILE_NAME: containing a date-stamp

2018-02-07 Thread Berry, Charles
> On Feb 7, 2018, at 7:31 AM, Karl Voit wrote: > > What I want to achieve: > > *** My Report > :PROPERTIES: > :EXPORT_FILE_NAME: (format-time-string "%Y-%m-%d") Project Status.html > :END: > > ... which results in the file: "2018-02-07 Project Status.html" Use an

Re: [O] :EXPORT_FILE_NAME: containing a date-stamp

2018-02-07 Thread Berry, Charles
> On Feb 7, 2018, at 9:37 AM, Kaushal Modi <kaushal.m...@gmail.com> wrote: > > On Wed, Feb 7, 2018 at 12:22 PM Berry, Charles <ccbe...@ucsd.edu> wrote: > Use an `eval' macro. > > In a more recent version than you use, this works: > > * abc > :PROP

[O] BUG in ob-scheme WAS: Re: Babel: verbatim results yield a table

2018-08-02 Thread Berry, Charles
> On Aug 2, 2018, at 5:19 AM, Jarmo Hurri wrote: > > > Greetings. > > The org manual states that in the :results header argument of a block > > verbatim Interpret literally and insert as quoted text. Do not create a > table. Usage example: :results value verbatim Unfortunately,

Re: [O] Org src blocks and multiline macros

2018-08-02 Thread Berry, Charles
> On Aug 2, 2018, at 5:32 AM, Jarmo Hurri wrote: > >> >> Org macros don't get evaluated inside src blocks as far as I know. But >> Noweb might help you. Look for this feature in Org manual. I use Noweb as >> "macros for src blocks". > Me, too. But maybe Jarmo just wants a template for

Re: [O] can't get table output when running r babel

2018-08-08 Thread Berry, Charles
> On Aug 8, 2018, at 8:10 AM, Zhihao Ding wrote: > > I can't seem to get a table output from running this toy example: > >#+HEADER: :results value > #+BEGIN_SRC R > data <- data.frame(list(a=c(1,2,3), b=c(4,5,6))) > data > #+END_SRC > > #+RESULTS: > > I get

Re: [O] Markdown Export Manual Confusion

2018-08-09 Thread Berry, Charles
> On Aug 9, 2018, at 4:10 AM, Matthew Brecher wrote: > > Markdown export is disabled by default in org version 9.1.9. > As far as I can see the manual does not indicate any way to enable this. As I read `Exporting' [1], the instruction is to load ox-md or customize `org-export-backends'.

Re: [O] org babel R source blocks :results output with :session includes extra blank lines

2018-08-28 Thread Berry, Charles
Cannot confirm. See inline. > On Aug 28, 2018, at 7:48 AM, Dylan Schwilk wrote: > > Hello, > > I recently have run into a change in output from my R language source code > blocks. > > I have found that when I include :session to the source block header, I now > get > extra blank lines in

Re: [O] Bug: duplicated output in inline code block exports

2018-07-05 Thread Berry, Charles
> On Jul 5, 2018, at 10:46 AM, William Denton wrote: > > Here's a very simple R command in an inline code block: > > # - > What is 1 + 1? src_R{1+1} {{{results(=2=)}}} > # - > > Exporting this to PDF we get: > > # - > What is 1 + 1? 2 2 Or exporting to to latex What is 1 +

Re: [O] babel properties and inheritance

2018-07-12 Thread Berry, Charles
> On Jul 12, 2018, at 4:13 AM, Ken Mankoff wrote: > > Hi Org List, > > I'm confused about the inheritance behavior of babel properties. > >> From the MWE below, I'd expect :tangle to take effect at the heading level >> (it does), but :tangle-mode and :comments to apply to the whole file.

Re: [O] Library of Babel confusion

2018-04-06 Thread Berry, Charles
> On Apr 6, 2018, at 4:59 PM, Thomas S. Dye wrote: > [Tom's response covering the main issues deleted] > hth, > Tom > > Lawrence Bottorff writes: > >> I guess I need more information. For example, what is C-c C-v v doing >> exactly? Then C-x C-e? And M-x (symbol-function

Re: [O] Let Org-mode support export to PDF with language indicator for src blocks

2018-04-10 Thread Berry, Charles
> On Apr 10, 2018, at 1:11 AM, stardiviner wrote: > > I found LaTeX can do this: > https://tex.stackexchange.com/questions/342683/specify-box-with-header-around-listing > > I want to ask, can Org-mode support exporting to PDF by supporting this? Yes. See

Re: [O] How to get 'repeating footnotes' please?

2018-04-10 Thread Berry, Charles
> On Apr 10, 2018, at 5:42 AM, Sharon Kimble wrote: > > Samuel Wales writes: > >> [fn:apples: ...] >> >> [fn:apples] > > I'm sorry Samuel, but it seems like you haven't read all of my initial > question, where I stated 'All my footnotes are

Re: [O] Library of Babel confusion

2018-04-11 Thread Berry, Charles
to > do an org-babel-lob-ingest to actually get library-of-babel.org loaded. > > On Fri, Apr 6, 2018 at 10:38 PM, Berry, Charles <ccbe...@ucsd.edu> wrote: > > > > > On Apr 6, 2018, at 4:59 PM, Thomas S. Dye <t...@tsdye.com> > wrote: > > > > [Tom'

Re: [O] How to get 'repeating footnotes' please?

2018-04-14 Thread Berry, Charles
> On Apr 13, 2018, at 3:40 AM, Sharon Kimble <boudic...@skimble.plus.com> wrote: > > "Berry, Charles" <ccbe...@ucsd.edu> writes: > >>> On Apr 10, 2018, at 5:42 AM, Sharon Kimble <boudic...@skimble.plus.com> >>> wrote: >>> &

Re: [O] Problems created by inlinetasks in agenda views

2018-04-16 Thread Berry, Charles
> On Apr 16, 2018, at 7:01 AM, Eric S Fraga wrote: > > So, you have motivated me to look at alternatives just in case. I've > started playing with the export settings for drawers for odt and > LaTeX. It does seem like I can move to using drawers instead of inline > tasks

Re: [O] [PATCH] support insert link without write result to :file link

2018-03-29 Thread Berry, Charles
> On Mar 28, 2018, at 8:39 PM, stardiviner wrote: > > `:results file` will write non-empty result to `:file`. But `:results link` > don't, it just insert a link of `:file` at result. And that is what I want to > solve in the first post of this thread. The :post header

Re: [O] Library of Babel confusion

2018-04-03 Thread Berry, Charles
> On Apr 3, 2018, at 1:31 PM, Lawrence Bottorff wrote: > > I've been trying to grok LOB again. So I've cloned the worg git and > library-of-babel.el is one of the files. org-babel-lob-injest didn't work, Try M-x org-babel-lob-ingest RET org/worg/library-of-babel.org RET

Re: [O] insert evaluation results in place

2018-03-28 Thread Berry, Charles
> On Mar 28, 2018, at 7:42 AM, Zhihao Ding wrote: > > I was wondering if anyone could share an example for referencing the results > of a source code block in place. > See (info "(org) Evaluating code blocks") Example #+Name: put_in_para #+BEGIN_SRC R :exports

Re: [O] org-mode R using xtable produces strange output

2018-03-20 Thread Berry, Charles
> On Mar 19, 2018, at 4:44 PM, Brian Shine wrote: > > I am using xtable to produce summary tables of linear models, specifying the > output as latex. If I just run the code in R, I get the correct output. > However, the latex output in the org document contains a lot of

Re: [O] R source code block :session

2018-09-30 Thread Berry, Charles
> On Sep 30, 2018, at 8:18 AM, Seb wrote: > > Hello, > > I'm running into a couple of issues with R source code blocks using > :session : > > ------ > #+NAME: test01 > #+BEGIN_SRC R :session :results output >

Re: [O] Trying to use :post header argument to set #+ATTR_LATEX: line

2018-10-22 Thread Berry, Charles
> On Oct 22, 2018, at 7:43 AM, L.C. Karssen wrote: > > Dear list, > > I'd like to create several tables from R and export those to a LaTeX > document. Because only input variable differs for the R code that > generates the tables, I thought I could use the :post header argument to > add the

Re: [O] Org source block header argument :var does not support space separated string

2018-10-22 Thread Berry, Charles
> On Oct 21, 2018, at 5:48 PM, stardiviner wrote: > > Oops, I misunderstand the :var variable="literal quoted string". > I want to reference the named source's result in variable. > > Like: > > encrypt text -- ~<<< [TEXT]~ > > #+NAME: base64 encrypt text > #+begin_src sh > base64 <<<

Re: [O] [BUG] src_blocks - :wrap blocks not being overwritten

2018-10-31 Thread Berry, Charles
> On Oct 31, 2018, at 2:26 AM, Carlos García wrote: > > The bigger issue is that it "used to work". A few releases ago, wrapped > results could be correctly replaced when using ":results replace". I was > wondering if the change was intentional or a side-effect of something else. > This

Re: [O] [BUG] src_blocks - :wrap blocks not being overwritten

2018-10-30 Thread Berry, Charles
> On Oct 30, 2018, at 3:35 AM, Carlos García wrote: > > Hi Chuck, > > Thanks for looking into this. How difficult/desirable would it be to create > another block such as "wrap-block" for those blocks created with ":wrap"? A `special-block' is a syntactic element. A `wrap-block' is not. >

Re: [O] [BUG] src_blocks - :wrap blocks not being overwritten

2018-10-29 Thread Berry, Charles
> On Oct 24, 2018, at 2:29 PM, Carlos García wrote: > > Hi List, > > The functionality of replacing blocks using ":wrap" seems to be broken. > In this email [1] from 2014, a user reported that this was working: > > , > | * A > | > | #+header: :results raw replace :wrap > | #+begin_src

Re: [O] open link in source code block

2019-01-17 Thread Berry, Charles
> On Jan 16, 2019, at 3:43 PM, Win Treese wrote: > > [Quoting trimmed for the most relevant context.] > >> On Jan 11, 2019, at 7:12 PM, Berry, Charles wrote: >> >>> On Jan 5, 2019, at 7:41 AM, Win Treese wrote: >>> >>>> On Jan 5, 2019,

Re: [O] org-open-at-point calls visit-tags-table ?!?

2019-01-18 Thread Berry, Charles
> On Jan 17, 2019, at 6:59 PM, David Masterson wrote: > > I have various Org files with internal hyperlinks of the form > [[#mylink][My Link]] that should point to a header with the appropriate > CUSTOM_ID property that I've setup. For some reason that I can't figure > out, when I call

Re: [O] org-open-at-point calls visit-tags-table ?!? org-ctags module bug?

2019-01-19 Thread Berry, Charles
> On Jan 18, 2019, at 9:01 PM, David Masterson wrote: > > David Masterson writes: > >> I have various Org files with internal hyperlinks of the form >> [[#mylink][My Link]] that should point to a header with the appropriate >> CUSTOM_ID property that I've setup. For some reason that I

Re: [O] problems with org-tempo

2018-12-13 Thread Berry, Charles
> On Dec 13, 2018, at 2:36 PM, Uwe Brauer wrote: > > > Hi > > I hoped that org-tempo would be a substitute for the old beloved org > template system. well > >1. It expands >2. The syntax is not the same for example I want > > Key: b >Keyword: >

Re: [O] Bug: Infinite recursion in org-babel-get-src-block-info [9.1.13 (9.1.13-elpaplus @ mixed installation!

2018-12-04 Thread Berry, Charles
I cannot reproduce this in 9.1.14 C-c C-v C-i on each src block works as expected. org-babel-execute-buffer runs to successful completion. HTH, Chuck > On Dec 4, 2018, at 8:45 AM, Tobias Zawada wrote: > > I mostly cite here from https://emacs.stackexchange.com/q/41208/2370: > > The

Re: [O] org babel: %% [removed source block]

2018-11-29 Thread Berry, Charles
I cannot reproduce your export issue with org 9.1.14. You need to provide more details. Perhaps you have a header-arg set that you have not told us about? What does C-c C-v C-i report when point is in each of your source blocks? I get Lang: matlab Properties: :header-argsnil

Re: [O] selective tangling?

2018-11-29 Thread Berry, Charles
> On Nov 29, 2018, at 5:10 AM, John Kitchin wrote: > > Are there any ways to selectively tangle blocks? > > By that I mean suppose there are a dozen src blocks in a file, but I want to > selectively tangle only a few of them, selecting them by a tag, for example, > or some other property.

Re: [O] Bug: Infinite recursion in org-babel-get-src-block-info [9.1.13 (9.1.13-elpaplus @ mixed installation!

2018-12-05 Thread Berry, Charles
Hmmm. I just updated from master using `make update2'. I ran /Applications/Emacs.app/Contents/MacOS/Emacs -q which is morally equivalent to `emacs -q' on a linux box. I had to customize `org-babel-load-languages' to add `shell'. I copied your text to an org buffer did C-c ' to extract the

Re: [O] suppress ++ markup in orgmode?

2018-11-20 Thread Berry, Charles
> On Nov 19, 2018, at 6:08 PM, John Kitchin wrote: > > I was looking at https://github.com/joostkremers/criticmarkup-emacs again > recently and ran into something I don't recall happening before. > > There is a markup for inserting text thatlooks like {++Insert this text++}. > However, in

Re: [O] open link in source code block

2019-01-11 Thread Berry, Charles
> On Jan 5, 2019, at 7:41 AM, Win Treese wrote: > > > >> On Jan 5, 2019, at 5:25 AM, Eric S Fraga wrote: >> >> On Friday, 4 Jan 2019 at 19:38, Win Treese wrote: >>> Suppose I have the following Org file contents: >>> >>> * test >>> >>> #+BEGIN_SRC emacs-lisp >>> (setq yyy 3) >>> ;; See

Re: [O] org-mode export behavior change in 9.2?

2019-01-12 Thread Berry, Charles
> On Jan 11, 2019, at 5:03 PM, Haider Rizvi wrote: > > I've been using literate programming approach with org-babel for a > while. I just noticed that with 9.2, when I try to export (c-c c-e h > o) an org doc / section, any shell blocks with a named session are > executed as it is exporting

Re: [O] org-mode export behavior change in 9.2?

2019-01-13 Thread Berry, Charles
> On Jan 12, 2019, at 1:33 PM, Haider Rizvi wrote: > > "Berry, Charles" writes: > >>> On Jan 11, 2019, at 5:03 PM, Haider Rizvi wrote: >>> >>> I've been using literate programming approach with org-babel for a >>> while. I just no

Re: [O] Feature request: Allow export to convert broken links to plain text

2019-01-13 Thread Berry, Charles
> On Jan 12, 2019, at 12:38 PM, Ryan Thompson wrote: > > Hi all, > > I have a use case where I'd like for Org Mode to remove broken links while > preserving their text when exporting. In particular, I'm exporting the same > file multiple times with different sets of headlines excluded each

Re: [O] Feature request: Allow export to convert broken links to plain text

2019-01-13 Thread Berry, Charles
> On Jan 13, 2019, at 1:33 PM, Ryan Thompson wrote: > > Hi, > > This sounds like a good idea, but unfortunately it seems that the > `broken-links:mark' option doesn't preserve the text of the link. In fact, > looking at the source, the code that handles broken link errors doesn't even >

Re: [O] Easy templates broken with 9.2

2019-01-27 Thread Berry, Charles
> On Jan 27, 2019, at 9:17 AM, Thomas S. Dye wrote: > > Aloha LB, > > I'm working my way through this change, too, hunting down all the places I've > modified org-structure-template-alist. You'll need to get rid of the > templates you've added to this list. The new function won't run if

Re: [O] Feature Request: allow export yes/no for blocks that are valid babel inputs

2019-03-24 Thread Berry, Charles
AFAICS, the functionality you seek already exists, although it is not heavily advertised. `C-c C-x t' will insert an inline task. Within such a `task' you can put text, tables, src blocks and other objects. Setting option `inline:nil' will prevent export, but leave the content visible to src

  1   2   3   >