Re: [O] [PATCH] Support for 'using namespace *' in ob-C.el

2017-07-31 Thread Charles C. Berry
On Mon, 31 Jul 2017, Jay Kamat wrote: Hello! Sorry for the late reply, I was pretty busy last week. An updated patch is attached! [snip] Using `org-entry-get' is no longer supported. You can replace the `or' with (cdr (assq :namespaces params)) Done, I also replaced the other uses

Re: [O] Different listing styles for same babel language?

2017-07-24 Thread Charles C. Berry
On Mon, 24 Jul 2017, Michael Gauland wrote: My org documents include lots of source code blocks, in a variety of languages. I use the listings package to give each language a distinctive look. Lately, my work has involved using shell commands on different machines, as different users. I'd like

Re: [O] org babel, ess, R

2017-07-05 Thread Charles C. Berry
On Wed, 5 Jul 2017, Vikas Rawal wrote: "... I'd like Org to pick up the fact that there's a :session argument with a custom name and use that for C-RET in the edit buffer; otherwise it generates the default *R* session there, but if you C-c C-c the block later it puts it into the custom

Re: [O] org babel, ess, R

2017-07-05 Thread Charles C. Berry
ed into the session named by the block I'm editing. At present, interactive mode appears to ignore this. Hope that helps clarify, John Regards, -- Nicolas Goaziou Charles C. Berry Dept of Family Medicine & Public Health cberry at ucsd edu U

Re: [O] org babel, ess, R

2017-07-03 Thread Charles C. Berry
On Tue, 4 Jul 2017, Vikas Rawal wrote: On 04-Jul-2017, at 1:22 AM, John Hendy wrote: On Sun, Jul 2, 2017 at 7:17 PM, Vikas Rawal wrote: Vikas Rawal writes: Isn’t is what most users need while editing

Re: [O] Replace macros on tangle

2017-06-26 Thread Charles C. Berry
On Mon, 26 Jun 2017, Nicolas Goaziou wrote: Hello, Giacomo M writes: Dear all, how can I add macro replacement support when a source block is being tangled? I don't think so. Macro replacement is an export feature. If Giacomo's macros operate outside of src blocks,

Re: [O] Asks user what to do with each tangle-file before overriding?

2017-06-18 Thread Charles C. Berry
On Sun, 18 Jun 2017, Chunyang Xu wrote: Nicolas Goaziou writes: [...] I don't think it is a good idea to have file that can be both edited manually, and auto-generated (i.e., tangled). Or, to put it differently, the idea behind tangling is that you only handle the

Re: [O] order of evaluation upon export: macros are evaluated too soon

2017-06-07 Thread Charles C. Berry
On Wed, 7 Jun 2017, Eric S Fraga wrote: Hello all, I have a document with this (ECM) structure: #+begin_src org ,#+macro: item I{{{n(i)}}}@@latex:}%@@ ,#+options: toc:nil num:nil ,* {{{item()}}} Some topic ,* {{{item()}}} Another topic :noexport: ,*

Re: [O] exporting markdown with tables

2017-06-04 Thread Charles C. Berry
On Sun, 4 Jun 2017, Vicente Vera wrote: Cool, you're welcome. It is not the most convenient solution, but keeping your tables in Editorial Markdown syntax should work: #+BEGIN_EXPORT md Cat | Fur | --- | --- | A | A lot | B | None | #+END_EXPORT Except that the above is not

Re: [O] how to replace includegraphics?

2017-05-31 Thread Charles C. Berry
On Wed, 31 May 2017, ed...@openmail.cc wrote: Hello dear list, * Summary I want to know if someone could tell me how to replace (the macro, function, string) includegraphics for something else when exporting to LaTeX. In my case, simplesvg. This is what filters are for. In your case

Re: [O] [org] different key binding between GUI emacs and emacs -nw

2017-05-30 Thread Charles C. Berry
On Tue, 30 May 2017, Scott Randby wrote: On 05/30/2017 08:29 AM, Jean-Christophe Helary wrote: It is the opposite that's happening. Terminal works fine. It is the GUI that does not accept the bindings. And as I wrote, it is not limited to my macOS (Emacs.app and Aquamacs show the same

Re: [O] Bug: begin_src org :results replace does not work

2017-05-29 Thread Charles C. Berry
On Mon, 29 May 2017, Vikas Rawal wrote: The problem is that the results you generate is a table with affiliated keywords NAME and CAPTION and ATTR_[backend]. `org-at-table-p' does not recognize that the keywords are followed by a table. Altering this function might be asking for trouble

Re: [O] Overriding org-html-headline or other export functions?

2017-05-29 Thread Charles C. Berry
On Mon, 29 May 2017, Brett Viren wrote: "Charles C. Berry" <ccbe...@ucsd.edu> writes: You do have that wrong. This is exactly what export filters and derived backends are for. In fact, you can use both. For an example, see http://orgmode.org/worg/exporters/filter-

Re: [O] Overriding org-html-headline or other export functions?

2017-05-29 Thread Charles C. Berry
On Mon, 29 May 2017, Brett Viren wrote: Hi, I am writing a manual in Org which gets exported/published to HTML and styled with org-html-themes. I want the HTML to include a little icon next to each headline which is a direct link to the headline itself. Basically, I want to rip off what

Re: [O] Bug: begin_src org :results replace does not work

2017-05-29 Thread Charles C. Berry
On Mon, 29 May 2017, Vikas Rawal wrote: Why does the replace keyword not work? It prepends the results. I have tried both ":results value replace" and ":results output replace". I am on org-version 9.0.7 Vikas #+NAME: one #+BEGIN_SRC org :results value replace export both ,#+NAME:

Re: [O] returning propertized strings

2017-05-20 Thread Charles C. Berry
On Sat, 20 May 2017, John Kitchin wrote: If I run this block I get test as a result, but all its properties have been stripped. #+BEGIN_SRC emacs-lisp :results drawer (propertize "test" 'font-lock-face '(:foreground "red") 'help-echo "tooltip") #+END_SRC #+RESULTS: :RESULTS: test :END: Does

Re: [O] How to use :prologue with latex

2017-04-24 Thread Charles C. Berry
On Mon, 24 Apr 2017, Jeremie Juste wrote: Hello, I would like to use :prologue and epilogue with latex output when using R. Would it be possible to do something like the following? [...] #+BEGIN_SRC R :results output latex :prologue \\begin{table} :epilogue \\end{table} [...] [...]

Re: [O] ANN: org-sticky-header

2017-04-22 Thread Charles C. Berry
On Wed, 19 Apr 2017, Adam Porter wrote: This should now be fixed. Thanks! I have encountered a bug when trying to export a subtree containing an inlinetask just after the headline/metadata and a src block further down. Here is an ECM: --8<---cut

Re: [O] :noweb-ref property inheritance failure?

2017-04-18 Thread Charles C. Berry
On Tue, 18 Apr 2017, D Bro wrote: Both 26.0 and 25.1 on OS X 10.12 via homebrew, using the Spacemacs configuration. I recently tried the weaving technique from http://orgmode.org/manual/noweb_002dref.html#noweb_002dref :

Re: [O] Bug: :session doesn't honor :verbatim [8.2.10 (release_8.2.10 @ /usr/local/share/emacs/26.0.50/lisp/org/)]

2017-04-16 Thread Charles C. Berry
On Sun, 16 Apr 2017, Michael Albinus wrote: "Charles C. Berry" <ccbe...@ucsd.edu> writes: Michael might get some relief by altering `shell-prompt-pattern' whose default value is "^[^#$%>\n]*[#$%>] *" is tricked by the embedded `%' in the output lines If you

Re: [O] Bug: :session doesn't honor :verbatim [8.2.10 (release_8.2.10 @ /usr/local/share/emacs/26.0.50/lisp/org/)]

2017-04-16 Thread Charles C. Berry
On Sun, 16 Apr 2017, Tilmann Singer wrote: Let me add that when not specifying ":results verbatim", the presence of the % sign in the output also triggers table formatting: #+BEGIN_SRC sh :session *session* echo "a%b" #+END_SRC #+RESULTS: | | | b | The extra line looks like a bug in

Re: [O] Trouble exporting inline code blocks

2017-04-10 Thread Charles C. Berry
On Mon, 10 Apr 2017, Richard Stanton wrote: Here’s a very simple org file: Some inline Python code: 2 plus 2 is src_python[:session]{2+2} - If I put the cursor on the code block and type C-c C-c, I get nice results block containing the answer, 4. So far so good. I’d like to

Re: [O] Babel R source blocks problem

2017-03-20 Thread Charles C. Berry
On Mon, 13 Mar 2017, Thomas S. Dye wrote: Aloha Chuck, Charles C. Berry writes: On Fri, 10 Feb 2017, Thomas S. Dye wrote: Aloha Chuck, Charles C. Berry writes: A look at the `slidify-example.org' file in the `org-9-plus' branch of my (chasberry) `orgmode-accessories' github repo might

Re: [O] Bug report: export to HTML does not escape * in example

2017-03-03 Thread Charles C. Berry
On Wed, 1 Mar 2017, Nicolas Goaziou wrote: Hello, D M German writes: So the original issue (* not being escaped) will nonetheless appear when the threshold is passed: Fixed. Thank you. Hmmm. Now I get :FAILED test-ob/org-babel-insert-result for make

Re: [O] Strings converted to numbers in Org table?

2017-02-27 Thread Charles C. Berry
On Mon, 27 Feb 2017, Vicente Vera wrote: Hello again, I'm sorry for being noisy. OK yes, `org-babel-read' is indeed converting "number strings" to numbers. [proposed fix deleted] I don't have a feeling as to whether the proposed fix is appropriate. However, there are other ways to solve

Re: [O] Bug report: export to HTML does not escape * in example

2017-02-27 Thread Charles C. Berry
On Mon, 27 Feb 2017, dmg wrote: On Sun, Feb 26, 2017 at 11:40 PM, Nicolas Goaziou wrote: A star at the beginning of a line is always a headline. [...] ​Thank you. I guess the issue is then with org-babel. I am running a babel script that generates, as one of

Re: [O] Where to put dates on meeting headlines

2017-02-24 Thread Charles C. Berry
On Fri, 24 Feb 2017, John Kitchin wrote: Suppose I use a heading to store notes on a meeting. Is there a canonical location to put a date so I could search for them later? It seems like the date is not a deadline, or scheduled timestamp. I could see putting the date in the headline, but then

Re: [O] Code block eval scope - subtree only option ignored

2017-02-24 Thread Charles C. Berry
On Fri, 24 Feb 2017, Jay Iyer wrote: Hi, evaluating a simple elisp code block in a subtree, called with C-c C-v C-s or just C-c C-C, evaluates the entire Org buffer. Is this expected behavior? Not at all. C-c C-v C-s on the headline evaluates just the subtree via the command

Re: [O] org-export-babel-evaluate=nil ignores ":exports results" setting - this has changed

2017-02-21 Thread Charles C. Berry
On Tue, 21 Feb 2017, Aaron Ecay wrote: Hi Chuck, 2017ko otsailak 20an, "Charles C. Berry"-ek idatzi zuen: [...] Allowing header args to be processed (as before) also allows for arbitrary code to be executed. The point of setting ‘org-export-use-babel’ or `org-export-babe

Re: [O] org-export-babel-evaluate=nil ignores ":exports results" setting - this has changed

2017-02-21 Thread Charles C. Berry
On Mon, 20 Feb 2017, Derek Feichtinger wrote: Hi Chuck On 21.02.2017 00:54, Charles C. Berry wrote: On Mon, 20 Feb 2017, Derek Feichtinger wrote: When org-export-babel-evaluate is set to nil, I see a different behavior now as compared to earlier versions of org. Indeed. It is now

Re: [O] org-export-babel-evaluate=nil ignores ":exports results" setting - this has changed

2017-02-20 Thread Charles C. Berry
On Mon, 20 Feb 2017, Derek Feichtinger wrote: When org-export-babel-evaluate is set to nil, I see a different behavior now as compared to earlier versions of org. Indeed. It is now *obsolete* and its behavior has intentionally been changed as noted here: ,[ C-h v

Re: [O] Problems exporting simple LaTeX math to HTML

2017-02-14 Thread Charles C. Berry
On Tue, 14 Feb 2017, Richard Stanton wrote: [My apologies if this is a repeat. I tried posting this 4 days ago and didn’t see if appear on the list.] I created the following very simple org file: #+TITLE: *Math example* \[ w_j = \nu_j \prod_{l

Re: [O] Help checking orgcard.pdf

2017-02-11 Thread Charles C. Berry
On Sat, 11 Feb 2017, Kyle Meyer wrote: "Charles C. Berry" <ccbe...@ucsd.edu> writes: [snip] Also AFAICS, this one is not current either: \key{toggle pretty display of scripts, entities}{C-c C-x {\tt\char`\\}} Hmm, C-c C-x \ is bound to org-toggle-pretty-entities

Re: [O] Babel R source blocks problem

2017-02-11 Thread Charles C. Berry
On Fri, 10 Feb 2017, Thomas S. Dye wrote: Aloha Chuck, Charles C. Berry writes: A look at the `slidify-example.org' file in the `org-9-plus' branch of my (chasberry) `orgmode-accessories' github repo might be a good start with .Rmd exports even if you do not want to use `slidify'. Your ox

Re: [O] Help checking orgcard.pdf

2017-02-09 Thread Charles C. Berry
On Thu, 9 Feb 2017, Kyle Meyer wrote: Kyle Meyer writes: Sorry not to be sending a patch, but I figured I should at least mention that these are not current: \key{export visible part only}{C-c C-e v} \key{insert template of export options}{C-c C-e t} Also `C-c C-e'

Re: [O] Exporting blocks of text completely verbatim

2017-02-09 Thread Charles C. Berry
On Thu, 9 Feb 2017, Vicente Vera wrote: Hello. This discussion https://lists.gnu.org/archive/html/emacs-orgmode/2017-02/msg00163.html points out that Org tables are converted to HTML tables when exporting through "ox-md". Leaving Markdown-related issues aside, I've stumbled upon this problem a

Re: [O] backporting changes to exported results for collaborative editing

2017-02-07 Thread Charles C. Berry
On Tue, 7 Feb 2017, Marcin Borkowski wrote: On 2017-02-07, at 02:15, Samuel Wales wrote: suppose you export a subtree to ascii or html, and then a bunch of people want to help you edit it. obviously you want the changes back in org. obviously the best would be if you

Re: [O] How to use .pdf images on Latex export, and .png images on ODT export

2017-01-31 Thread Charles C. Berry
On Tue, 31 Jan 2017, Giacomo M wrote: Dear all, I was wondering what is the best way to include pdf images on latex export and png images on odt export (assuming same path, only extension changes). A macro like this one: #+MACRO: figext @@latex:.pdfodt:.png@@ doesn't seem to work.

Re: [O] Babel R source blocks problem

2017-01-28 Thread Charles C. Berry
On Sat, 28 Jan 2017, Thomas S. Dye wrote: Aloha Chuck, [snip] Thanks, too, for asking about export. I'm giving a demo at a conference this spring and the organizer has asked for a .rmd file, which is new to me. I hope to produce it with your ox-ravel, also new to me, so I might be

Re: [O] Babel R source blocks problem

2017-01-28 Thread Charles C. Berry
On Sat, 28 Jan 2017, Thomas S. Dye wrote: Aloha all, I've run into a problem running R code blocks in a new Spacemacs setup. Results are not written to the Org mode buffer. In *Messages* I see this the first time I evaluate the R source code block: Error during redisplay: (jit-lock-function

Re: [O] src block: 'C-c C-c can do nothing useful here' if cursor on blank line

2017-01-27 Thread Charles C. Berry
On Fri, 27 Jan 2017, Kyle Meyer wrote: Eric S Fraga writes: On Friday, 27 Jan 2017 at 18:44, John Hendy wrote: Perhaps this is the intended behavior, but I noticed that I go to execute a code block and get the message "C-c C-c can do nothing useful here" if I'm not on the

Re: [O] Is it possible to "properly" indent inside latex fragments?

2017-01-23 Thread Charles C. Berry
On Mon, 23 Jan 2017, alain.coch...@unistra.fr wrote: Hello. This is what I obtain if I type each line followed by and then in an org file: * foo \begin{displaymath} \begin{split} a &= b \\ &+c \end{split} \end{displaymath} If I highlight everything and use 'M-x indent-region' or

Re: [O] How to pass table to SRC block as strings only?

2017-01-19 Thread Charles C. Berry
On Thu, 19 Jan 2017, Sébastien Brisard wrote: Thanks Charles for this answer. Let me state the problem more clearly. Number-like cells *are* converted to numbers (as best illustrated by the example below (see the use of numberp), which might incur accuracy loss (see below, the first row has a

Re: [O] How to pass table to SRC block as strings only?

2017-01-19 Thread Charles C. Berry
On Thu, 19 Jan 2017, Sébastien Brisard wrote: Hello all, here is a MWE =BEGIN MWE= #+NAME: table20170119 | col1 | col2 | |--+| | row1 | 1234567890 | | row2 | a | | row3 | b | | row4 | c | #+BEGIN_SRC emacs-lisp :var table=table20170119

Re: [O] Latex Preview Fragment is not working on org 9.0.3 from elpa

2017-01-18 Thread Charles C. Berry
On Wed, 18 Jan 2017, Young-whan wrote: I've installed the emacs-app via port, and there was no problem with Latex Preview Fragment in a buffer at all. Now, using the M-x package-list-packages, I've installed the latest org 9.0.3, then the latex preview is not working at all. It comes with

Re: [O] speeding up Babel Gnuplot

2017-01-04 Thread Charles C. Berry
On Wed, 4 Jan 2017, Achim Gratz wrote: Thierry Banel writes: There is no way to ensure a single call to (org-babel-gnuplot-process-vars) without modifying ob-core.el. I don't want to do that because I would have to change a lot of babel backends. But that is the right fix to apply, unless

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

2017-01-03 Thread Charles C. Berry
On Tue, 3 Jan 2017, Joon Ro wrote: 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

Re: [O] Something like #+BIND but for the destination buffer

2017-01-03 Thread Charles C. Berry
On Tue, 3 Jan 2017, Jonas Bernoulli wrote: So here's the ECM: * Node #+BEGIN_SRC emacs-lisp (progn (progn foo bar)) #+END_SRC (info "(org) Literal examples") suggests this #+BEGIN_SRC emacs-lisp -i (progn (progn foo bar)) #+END_SRC (16 spaces before bar) which gives

Re: [O] Referring to an Org Babel variable in the invocation arguments to another Org Babel code block

2017-01-01 Thread Charles C. Berry
On Sun, 1 Jan 2017, Zack Piper wrote: Hi Nicolas, I tried "c", and it gives me: c <<< as the result. I would like it to use the _variable_ "c", not the literal string. So the result should be ">>> test <<<" You mean you want to use the `name' of one `:var name=assign' argument in the

Re: [O] function to select text of in a cell of a table

2016-12-30 Thread Charles C. Berry
On Fri, 30 Dec 2016, dmg wrote: hi everybody, has anybody written a function to select the text in a cell of a table? If you mean like what ob-ref.el uses to support babel references, yes. Also see org-table.el. If you just want support for working with Babel src blocks, see (info

Re: [O] org mode latex export excude title

2016-12-30 Thread Charles C. Berry
On Fri, 30 Dec 2016, Ken Mankoff wrote: (setq-local org-latex-title-command "") Can be set as a buffer local variable. True, but not relevant to the OPs query: Is there any way to excude the empty `\title{}` command? And if you browse thru org-latex-template, you will see that

Re: [O] org mode latex export excude title

2016-12-30 Thread Charles C. Berry
On Fri, 30 Dec 2016, Fanpeng Kong wrote: I am trying to use org mode to write a paper. The latex template of the journal restricts the location of `\title{}` command to be after the `\begin{document}`. While by leaving `#+TITLE:` empty and specify `#+OPTIONS: title:nil` in my org file, I can

Re: [O] src blocks: code is /always/ exported

2016-12-29 Thread Charles C. Berry
On Thu, 29 Dec 2016, Martin Gürtler wrote: Am Donnerstag, 29. Dezember 2016, 09:07:40 CET schrieb Charles C. Berry: On Thu, 29 Dec 2016, "Martin Gürtler" wrote: Dear list, I am exporting the following org mode file: [deleted] But how would I control the (not-)inclusion of th

Re: [O] src blocks: code is /always/ exported

2016-12-29 Thread Charles C. Berry
On Thu, 29 Dec 2016, "Martin Gürtler" wrote: Dear list, I am exporting the following org mode file: 8< * doc #+BEGIN_SRC shell :exports none ls |wc #+END_SRC #+RESULTS: : 20  20 199 8< I'd expect org mode to honour the :exports none header

Re: [O] Error when using :session :colnames yes :results graphics on an R code block

2016-12-28 Thread Charles C. Berry
On Wed, 28 Dec 2016, Kodi Arfer wrote: If I run Emacs with [snip] cons: Wrong type argument: listp, "x 1" If I remove ":colnames yes", the error doesn't happen and the file is produced as expected. Fixed on master. Chuck

Re: [O] Bug: EXPORT_FILE_NAME error [9.0.3 (9.0.3-elpaplus @ /home/andrea/.emacs.d/elpa/org-plus-contrib-20161224/)]

2016-12-28 Thread Charles C. Berry
On Wed, 28 Dec 2016, Andrea wrote: Hello, thanks for org mode, it is great! I am having a problem with the latest version of org: I really would like to be able to export buffers in a different directory, and so far I used the :EXPORT_FILE_NAME: property for this use case. However, after

Re: [O] bug in orgmode parsing of results

2016-12-27 Thread Charles C. Berry
On Tue, 27 Dec 2016, daimrod wrote: Hi, I've found what I think is a bug in orgmode parsing. When the following file is parsed : * Test #+BEGIN_SRC emacs-lisp :exports results :results raw drawer (format "- Test2") #+END_SRC #+RESULTS: :RESULTS: - Test2 :END: [snip] That is, it

Re: [O] Referring to an Org Babel variable in the invocation arguments to another Org Babel code block

2016-12-27 Thread Charles C. Berry
On Tue, 27 Dec 2016, Zack Piper wrote: Hi all, Hopefully the below can explain better: [deleted] This is a workable idiom. C-c C-c on the second block produces the output shown. #+NAME: block-1 #+BEGIN_SRC shell :var x="X" echo ">>>" $x "<<<" #+END_SRC #+BEGIN_SRC shell :var

Re: [O] Literate config and :tangle clauses

2016-12-25 Thread Charles C. Berry
On Sun, 25 Dec 2016, joa...@verona.se wrote: aaermo...@gmail.com writes: Hi all! Recently I've experienced a kind of a problem - my literate Emacs config stopped tangling correctly, only a subset of code blocks were found in resulting .el file. I've looked at it a bit closer and it seems now

Re: [O] Defining macros globally

2016-12-19 Thread Charles C. Berry
On Mon, 19 Dec 2016, Nicolas Goaziou wrote: Hello, Arun Isaac writes: Is it possible to define macros globally, probably in the ~/.emacs init file with some elisp, instead of on a per-file basis using the #+MACRO keyword? This is not possible ATM. Perhaps the

Re: [O] Fwd: including external file in src block execution; ATTR_HTML on src blocks

2016-12-13 Thread Charles C. Berry
On Tue, 13 Dec 2016, Matt Price wrote: (sent to Charles direcly by mistake. Charles, this resend gave me the chance to modify my response) On Mon, Dec 12, 2016 at 10:52 PM, Charles C. Berry <ccbe...@ucsd.edu> wrote: [snipping throughout] My questions are: 1. can I pass this html att

Re: [O] including external file in src block execution; ATTR_HTML on src blocks

2016-12-12 Thread Charles C. Berry
On Mon, 12 Dec 2016, Matt Price wrote: On Mon, Dec 12, 2016 at 12:16 PM, Charles C. Berry <ccbe...@ucsd.edu> wrote: On Mon, 12 Dec 2016, Matt Price wrote: [snip] My questions are: 1. can I pass this html attribute to the block somehow? Yes. ATTR_HTML doesn't seem t

Re: [O] exporting # to latex?

2016-12-12 Thread Charles C. Berry
On Mon, 12 Dec 2016, Sharon Kimble wrote: I'm trying to write an org-mode file that is being exported to latex, and then built into a pdf file, of the MPD online manual. I'm now trying to show the 'mpf.conf' file which is mostly with commented out lines starting with a hash (#). But that

Re: [O] including external file in src block execution; ATTR_HTML on src blocks

2016-12-12 Thread Charles C. Berry
On Mon, 12 Dec 2016, Matt Price wrote: [snip] My questions are: 1. can I pass this html attribute to the block somehow? Yes. ATTR_HTML doesn't seem to work. Is this a bug? If so, should I try to fix it? No and no. Did you try : (plist-get (cadr src-block) :attr_html) in

Re: [O] setting a custom flag for src blocks

2016-12-10 Thread Charles C. Berry
On Sat, 10 Dec 2016, Matt Price wrote: On Sat, Dec 10, 2016 at 12:19 AM, Matt Price wrote: On Fri, Dec 9, 2016 at 12:19 PM, Eric S Fraga wrote: On Friday, 9 Dec 2016 at 16:42, Matt Price wrote: I think I am getting closer, actually (details soon,

Re: [O] Include sections of org document in tangled files

2016-12-07 Thread Charles C. Berry
On Wed, 7 Dec 2016, David Dynerman wrote: Dear Chuck, Your suggestion worked fantastically - I got it working and am very excited. Now, the next step is figuring out how to handle typesetting math in single way between org and python docstrings. Math in Python docstrings is usually done by

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-05 Thread Charles C. Berry
On Sun, 4 Dec 2016, Nicolas Goaziou wrote: Hello, Scott Randby writes: There is an interesting issue here. I sometimes want to use ~ in a code snippet, so I can't use ~code snippet~. Yet, Indeed, this was discussed in this ML. We need some escape character in Org. A

Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-03 Thread Charles C. Berry
On Sat, 3 Dec 2016, Scott Randby wrote: On 12/03/2016 02:40 PM, Scott Otterson wrote: When an org file contains a string with more than one underscore, the orgmode export result will crash latex (example attached). On the other hand, the org html export does finish successfully, and while

Re: [O] Include sections of org document in tangled files

2016-12-03 Thread Charles C. Berry
On Fri, 2 Dec 2016, David Dynerman wrote: Dear list, Is it possible to include sections of an org document while tangling. I have in mind something like the following: * Some section [David's version deleted] #+NAME: doc #+BEGIN_SRC org :exports results :results replace This is an

Re: [O] passing entry property to a source code block?

2016-12-02 Thread Charles C. Berry
On Fri, 2 Dec 2016, Piter wrote: Hi everybody. I would like to get a property of org-mode entry and pass it as a string variable to a python source code. Is it possible to do? I have been looking into attach screensshot code but since my elisp experience is very limited I can not figure

Re: [O] fuzzy matching of parameters

2016-12-01 Thread Charles C. Berry
On Thu, 1 Dec 2016, Matt Price wrote: I have just done something I'm very excited about. Given a directory name (the variable ~assignment~ in this case) and a list of student info, search through the directory for files whose names contain the student names, and attach those to newly created

Re: [O] v9.0 ignores org-export-babel-evaluate

2016-12-01 Thread Charles C. Berry
On Thu, 1 Dec 2016, Alexander Vorobiev wrote: I noticed this happening with R source code blocks after the upgrade. This should be fixed in master. But use `org-export-use-babel' instead as `org-export-babel-evaluate' is obsolete. Chuck

Re: [O] List restarts numbering at 1 after table

2016-11-25 Thread Charles C. Berry
On Fri, 25 Nov 2016, Roger Mason wrote: Hello, I have a table in a list, like this: 2. Write stuff in the empty table: # See http://orgmode.org/manual/LaTeX-specific-attributes.html to get # predetermined width on export. #+ATTR_LATEX: :align |p{2cm}|p{2cm}| |--+| | This | That

Re: [O] Tangling include files

2016-11-24 Thread Charles C. Berry
On Thu, 24 Nov 2016, Robert Klein wrote: On Wed, 23 Nov 2016 21:22:08 -0800 "Charles C. Berry" <ccbe...@ucsd.edu> wrote: On Thu, 24 Nov 2016, Harry Butterworth wrote: I tried org-org-export-to-org which puts everything into a single document but it strips the :tangle p

Re: [O] Tangling include files

2016-11-23 Thread Charles C. Berry
On Thu, 24 Nov 2016, Harry Butterworth wrote: I tried org-org-export-to-org which puts everything into a single document but it strips the :tangle parameters out so a subsequent tangle doesn't generate any source code. You might try this. Put this at the *top* of your file:

Re: [O] Release 9.0 test failed: test-ob/indented-cached-org-bracket-link

2016-11-19 Thread Charles C. Berry
On Sat, 19 Nov 2016, John Kitchin wrote: I have also seen this error on my mac. I guess it is from the trailing slash as you suggest: echo $TMPDIR /var/folders/5q/lllv2yf95hg_n6h6kjttbmdwgn/T/ So, : testdir=${TMPDIR%/}/tmp-orgtest in mk/default.mk would handle this on my mac, but I

Re: [O] Release 9.0 test failed: test-ob/indented-cached-org-bracket-link

2016-11-19 Thread Charles C. Berry
On Fri, 18 Nov 2016, Nicolas Goaziou wrote: Hello, "Charles C. Berry" <ccbe...@ucsd.edu> writes: On Fri, 18 Nov 2016, Nicolas Goaziou wrote: Hello, David Talmage <david.talm...@shoutpoint.com> writes: I built org 9.0 on my Mac today. 'make test' reported one fail

Re: [O] Inheritance of tangle file for org babel blocks is broken in org 9

2016-11-18 Thread Charles C. Berry
On Fri, 18 Nov 2016, William Henney wrote: Hi, Since upgrading to version 9.0, tangling of babel source blocks no longer works properly for me. It works for me with Org mode version 9.0.1 (release_9.0.1-31-g0a24f5). Running your ECM, the `tail' of C-c C-v C-i: :tangle

Re: [O] Release 9.0 test failed: test-ob/indented-cached-org-bracket-link

2016-11-18 Thread Charles C. Berry
On Fri, 18 Nov 2016, Nicolas Goaziou wrote: Hello, David Talmage writes: I built org 9.0 on my Mac today. 'make test' reported one failed test. I don't know if it is important or not. Please advise me. 'make test' said: 1 unexpected results: FAILED

Re: [O] [PATCH] Re: HTML export with ":export" parameter with Orgmode 9.0

2016-11-13 Thread Charles C. Berry
On Sun, 13 Nov 2016, Nicolas Goaziou wrote: Hello, "Charles C. Berry" <ccbe...@ucsd.edu> writes: [snip] Thinking about it, wouldn't `org-export-use-babel' or even `org-export-with-babel' (as `org-export-with-author'...) be simpler and yet, as clear? You are right. `org-

[O] [PATCH] Re: HTML export with ":export" parameter with Orgmode 9.0

2016-11-12 Thread Charles C. Berry
On Sat, 12 Nov 2016, Nicolas Goaziou wrote: [discussion of problems interpreting the variable `org-export-babel-evaluate' deleted] It is tempting to `make-obsolete-variable' this variable and change its name to something that more completely describes what does not happen when set to nil.

Re: [O] HTML export with ":export" parameter with Orgmode 9.0

2016-11-11 Thread Charles C. Berry
On Fri, 11 Nov 2016, Frederick Giasson wrote: Hi Chuck, even with a minimal init file. If you ever set the value of `org-export-babel-evaluate' to nil this might produce the behavior you describe. Maybe, but as stated in the manual: "Setting the org-export-babel-evaluate variable to nil

Re: [O] HTML export with ":export" parameter with Orgmode 9.0

2016-11-11 Thread Charles C. Berry
On Fri, 11 Nov 2016, Frederick Giasson wrote: Hi Nicolas, It seems other users experienced it, yet it is unexpected and I cannot reproduce it even with a minimal init file. If you ever set the value of `org-export-babel-evaluate' to nil this might produce the behavior you describe. In

Re: [O] Tangling flow control

2016-11-09 Thread Charles C. Berry
On Wed, 9 Nov 2016, Philip Hudson wrote: On 9 November 2016 at 21:41, Charles C. Berry <ccbe...@ucsd.edu> wrote: The org src block is just a container. Its body is a src block template that gets copied into the variable `tmpl', which if filled and placed in file can be tangled. That

Re: [O] Tangling flow control

2016-11-09 Thread Charles C. Berry
On Wed, 9 Nov 2016, Philip Hudson wrote: On 9 November 2016 at 17:54, Charles C. Berry <ccbe...@ucsd.edu> wrote: On Tue, 8 Nov 2016, Philip Hudson wrote: [snip] How do you do "looping" flow control? For context, what I'm trying to write is a single Org file from which

Re: [O] Tangling flow control

2016-11-09 Thread Charles C. Berry
On Tue, 8 Nov 2016, Philip Hudson wrote: [snip] How do you do "looping" flow control? For context, what I'm trying to write is a single Org file from which I can tangle out a number of =~/.ssh/config= files, one for each of several hosts on a LAN. Within this file I need to repeatedly place a

Re: [O] Bug: Unable to nest headings within export blocks [9.0 (9.0-elpa @ c:/Data/Documents/emacs.d/elpa/org-20161102/)]

2016-11-07 Thread Charles C. Berry
On Mon, 7 Nov 2016, Lixin Chin wrote: Hi, Thanks, yes that almost works. Unfortunately the heading line is just reproduced verbatim in the output, whereas ideally it should be parsed as a normal heading. I.e., currently: #+BEGIN_EXPORT html ,* HTML only heading Text which should appear in

Re: [O] code blocks: update cache hash on export

2016-10-18 Thread Charles C. Berry
On Tue, 18 Oct 2016, Ulrich J. Herter wrote: Hi everybody! Two questions I'd like to ask the Org-community: ?? First: When I export my document, the source blocks with outdated cache hashes run, but no new hashes are put in the document. Right. The exporter runs in a buffer copy, so

Re: [O] gmane link broken

2016-10-01 Thread Charles C. Berry
On Sat, 1 Oct 2016, ilya shlyakhter wrote: The link "Browse org-mode mailing list through Gmane" at http://orgmode.org/community.html seems broken. There have been some recent changes to gmane.org. See https://en.wikipedia.org/wiki/Gmane AFAICS, the search has not (yet?) been

Re: [O] export of src block ignores :results

2016-10-01 Thread Charles C. Berry
On Fri, 30 Sep 2016, Thomas Alexander Gerds wrote: right, this is what changed and setting :eval never-export on a each block solves the problem. however, the new way breaks all my existing org-code. I don't follow this. What exactly is broken? You know all the options for setting header

Re: [O] export of src block ignores :results

2016-09-30 Thread Charles C. Berry
On Thu, 29 Sep 2016, Thomas Alexander Gerds wrote: [deleted] anyway, the original problem is not solved yet. org-babel-current-result-hash is related to the execution of the src block which is independent of the export process since I have (setq org-export-babel-evaluate nil). and the

Re: [O] export of src block ignores :results

2016-09-29 Thread Charles C. Berry
On Thu, 29 Sep 2016, Charles C. Berry wrote: On Thu, 29 Sep 2016, Thomas Alexander Gerds wrote: Hi Chuck thanks for checking. my org-version is the same release_8.3.6-1178-g2b22d5 to get the date and time of the in the results: (setq org-babel-hash-show-time t) but even without

Re: [O] export of src block ignores :results

2016-09-29 Thread Charles C. Berry
On Thu, 29 Sep 2016, Thomas Alexander Gerds wrote: Hi Chuck thanks for checking. my org-version is the same release_8.3.6-1178-g2b22d5 to get the date and time of the in the results: (setq org-babel-hash-show-time t) but even without this option the results of the block are exported no

Re: [O] Bug? org-export-babel-evaluate setting breaks :exports results

2016-09-29 Thread Charles C. Berry
On Thu, 29 Sep 2016, William Denton wrote: I'm working on a big Org file on a slow machine, so I set org-export-babel-evaluate to nil so exporting to PDF just generates the file from what's in the buffer, without doing any calculating. Actually it does a lot LESS than that. The docstring

Re: [O] export of src block ignores :results

2016-09-29 Thread Charles C. Berry
On Thu, 29 Sep 2016, Thomas Alexander Gerds wrote: Hi org's development version (I am using the one updated yesterday: 2b22d50 Nicolas Go 2016-09-28) seems to ignore the :results setting of a src block. more specifically, the export of this #+BEGIN_SRC R :results output :exports code

Re: [O] Dynamic tangle target?

2016-09-21 Thread Charles C. Berry
On Wed, 21 Sep 2016, Philip Hudson wrote: AFAICT :tangle takes only "yes", "no", or a literal pathname. Stuff like :tangle (my-lisp-function arg1 arg2) will work. How might I dynamically generate a pathname for :tangle? I suppose what I want is some kind of escape syntax for eval'ing a

Re: [O] Something to watch out for when including files

2016-09-20 Thread Charles C. Berry
On Tue, 20 Sep 2016, Eric S Fraga wrote: Hello all, just wanted to help others avoid spending a long time trying to figure out some strange (well, unexpected) behaviour in org... I have a document for which the LaTeX export was ignoring a #+begin_abstract ... #+end_abstract construct near the

Re: [O] Embedded LaTeX fontification

2016-09-09 Thread Charles C. Berry
On Fri, 9 Sep 2016, Kai von Fintel wrote: When I embed LaTeX code in a `#+BEGIN_SRC latex` block and `org-src-fontify-natively` is set to `t`, the code is fontified as LaTeX code. But when the code is embedded in a `#+BEGIN_LaTeX` block, there's no fontification. Is that as intended? Am I

Re: [O] :exports not being respected

2016-08-10 Thread Charles C. Berry
On Wed, 10 Aug 2016, Vikas Rawal wrote: I have a with just the following header, and it is not respecting :exports in my R source blocks. The pdf file created has source code as well as the results. What is wrong? No ECM with src blocks, but see below. Has the syntax changed again? I

Re: [O] seeking good practices for writing about org using org

2016-08-04 Thread Charles C. Berry
On Thu, 4 Aug 2016, Cook, Malcolm wrote: Hi Charles, On Wed, 3 Aug 2016, Cook, Malcolm wrote: > > Thanks. Much closer. Still some issues. Mind taking another gander (hoping the attached jpeg of the webpage rendered comes through as an attachment) If my emacs buffer holds...

  1   2   3   4   >