Cool! I was inspired by this to try it with Python doctests. Check out the
result here: http://kitchingroup.cheme.cmu.edu/blog/2018/05/17/
Literate-programming-with-python-doctests/
Note: I thought I had sent this email before, but it appeared as a draft
just now, so I am just sending it again.
J
On Wed, May 16, 2018 at 9:25 AM, John Kitchin wrote:
> #+NAME: DOC-OF-ADD
> We use the function add to calculate the sum of two numbers.
>
> #+NAME: add-options
> - one
> - two
> - three
> - and of course "optional things"
>
>
> We use a block like this to get the contents of an org-element by nam
Thanks, that works perfectly. I made a simple summary of this thread on my
site: http://kdr2.com/tech/emacs/1805-approach-org-ref-code-to-text.html
Greetings.
ZHUO QL (KDr2, http://kdr2.com)
On Thursday, May 17, 2018, 11:11:39 AM GMT+8, John Kitchin
wrote:
I believe you can do that
I believe you can do that with the Library of Babel (
https://orgmode.org/worg/org-contrib/babel/library-of-babel.html)
John
---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-780
interesting package! but i'm not sure it would work with org as well
as org-link-minor-mode does.
On 5/16/18, John Kitchin wrote:
> You might want to check out linkd: https://www.emacswiki.org/emacs/linkd.el
>
> It does a lot of what you describe independently of org-mode.
>
> John
>
> -
You might want to check out linkd: https://www.emacswiki.org/emacs/linkd.el
It does a lot of what you describe independently of org-mode.
John
---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, P
i'm not sure if i understand the goal. is it babel-only?
this email might be off-topic.
what i want is links, using something like org-id,
- from non-org [for example, a link in file.el in a comment]
- to non-org [for example, a named or id'ed location in the same file]
- or to org [e.g.
* Main document
See [[id:BAD97113-3561-4A4A-BA07-0CD5BF6BA35F][There is a reason we only
support two args]] (text to text) for notes about this function. The
addition is done in line [[(add)]] (text to code).
Here we put names on different kinds of elements so we can put them into a
tangled file
Oh, that makes sense.
So in this way, we must put the text into quotes, and then into a txt code
block. And also we don't have a chance to do any transformation of the
text(e.g. org-mode list to javadoc format).
I think the direct reference from code to text is better. I will try to
implement
On Tuesday, 15 May 2018 at 04:49, ZHUO QL (KDr2) wrote:
> 2. The bug Eric just found while putting a <> link within
> quotes, although, it may be easy to fix.
I realised afterwards that it is not a bug but is a feature: org assumes
that anything before the << start of the link should be repeated
On Monday, 14 May 2018 at 08:05, John Kitchin wrote:
> It seems like this is nearly all possible already (see below). It is a
> little wonky that you have to put text in a src txt block to achieve it,
> but otherwise what is missing?
Ah, yes, quite nice. Thanks!
--
Eric S Fraga via Emacs 27.0.5
... continued ...
although I found a strange bug in the tangling and noweb syntax. I
didn't want to have quotes in the text so I removed them and put them in
the lisp src block instead:
#+begin_src org
,#+NAME: ADD
,#+BEGIN_SRC emacs-lisp -n -r :noweb yes :tangle test.el
(defun add (x y)
It seems like this is nearly all possible already (see below). It is a
little wonky that you have to put text in a src txt block to achieve it,
but otherwise what is missing?
* Main document
See [[id:BAD97113-3561-4A4A-BA07-0CD5BF6BA35F][There is a reason we only
support two args]] (text to text)
On Saturday, 12 May 2018 at 13:29, ZHUO QL (KDr2) wrote:
> Hi all, I just post a proposal for orgmode on my website(generated by
> orgmode):
> http://kdr2.com/tech/emacs/1805-proposal-org-ref-code-to-text.html .
> Here is the source of the proposal:
> # -*- mode: org; mode: auto-fill; -*-
>
> #+TI
Hi all, I just post a proposal for orgmode on my website(generated by orgmode):
http://kdr2.com/tech/emacs/1805-proposal-org-ref-code-to-text.html .
Here is the source of the proposal:
# -*- mode: org; mode: auto-fill; -*-
#+TITLE: Proposal for Orgmode: references from code to text.
#+AUTHOR: KDr2
15 matches
Mail list logo