[Share] collect some idea about auto eval code when TAB expand headline

2020-10-15 Thread stardiviner
I write an elisp config for Org Mode to auto evaluate inline source block in property "EVAL". #+begin_src emacs-lisp (defcustom org-property-eval-keywords-list '("EVAL") "A list of property keywords for evaluate code." :type 'list :safe #'listp :group 'org) (defun

Re: best practices query: non-emacs packages based on tangled source

2020-10-15 Thread Tim Cross
There is no great answer I am aware of. However, I will sometimes generate a markdown version of the source so that at least non-emacs users have a slightly better chance of being able to view the source in a more format friendly manner than a 'raw' org file. However, pull requests and the like

Re: org-tables with monetary amounts

2020-10-15 Thread Daniele Nicolodi
On 12/10/2020 10:22, Christian Moe wrote: > > Hi, Daniele, > > Good that it's working for you. I'll try to explain the unclear parts. > > Daniele Nicolodi writes: > >> On 24/09/2020 11:17, Christian Moe wrote: >> >>> Now, with the Calc command to simplify units, you can add dollars to >>>

Re: export to babel, sometimes a block environment is inserted.

2020-10-15 Thread Uwe Brauer
>>> "CB" == Colin Baxter writes: >> Uwe Brauer writes: >> Hello I have a org file that I want to export either to >> 1. Regular latex or >> 2. To beamer. >> So I just use the corresponding export engines. >> However the following minimal example puzzles me: >> #+begin_src >> # -*-

Re: export to babel, sometimes a block environment is inserted.

2020-10-15 Thread Colin Baxter
> Uwe Brauer writes: > Hello I have a org file that I want to export either to > 1. Regular latex or > 2. To beamer. > So I just use the corresponding export engines. > However the following minimal example puzzles me: > #+begin_src > # -*-

best practices query: non-emacs packages based on tangled source

2020-10-15 Thread Greg Minshall
hi. i apologize if this has been asked before (especially if by me). but, since i had a question recently about Org Src... buffers, this came up. i'm wondering what people do who want to release a non-emacs'y package (an R package, say, or ...), and who did their development "from within" a .org

export to babel, sometimes a block environment is inserted.

2020-10-15 Thread Uwe Brauer
Hello I have a org file that I want to export either to 1. Regular latex or 2. To beamer. So I just use the corresponding export engines. However the following minimal example puzzles me: #+begin_src # -*- org-confirm-babel-evaluate: nil -*- #+LATEX_HEADER_EXTRA:

Re: Special symbols with monospace

2020-10-15 Thread Eric S Fraga
On Thursday, 15 Oct 2020 at 16:03, Colin Baxter wrote: > Is there any reason why you don't use LaTeX's \leftarrow in place of ← ? > With perhaps a (set-input-method 'TeX). Funnily enough, it's because I was originally using the TeX input method (which I love) that I ended up with ← instead of

Re: Special symbols with monospace

2020-10-15 Thread Colin Baxter
Hello Eric, > Eric S Fraga writes: > On Thursday, 15 Oct 2020 at 12:31, Jarmo Hurri wrote: >> In my case there is a specific pseudocode format I need to use. I >> think I would have to try to tune one of these packages pretty >> heavily. > In that case, you may simply

Re: Special symbols with monospace

2020-10-15 Thread Jarmo Hurri
Eric S Fraga writes: > In that case, you may simply wish to use the alltt environment. This > works for me: > > #+begin_src org > ,* algorithm pseudo code > ,#+latex_header: \usepackage{alltt} > ,#+begin_alltt > for i \in [0,1] do > if i \neq 3 > x ← i^2 > end if > end

Re: Special symbols with monospace

2020-10-15 Thread Jarmo Hurri
Maxim Nikulin writes: What is the easiest way to combine monospace and special symbols? >>> >>> Is there any problem with UTF-8 symbols such as "≠"? I have typed it using >>> Compose / = >> >> At least out of the box, the UTF-8 symbol is not exported. > > #+BEGIN_SRC emacs-lisp >

Re: Special symbols with monospace

2020-10-15 Thread Maxim Nikulin
Jarmo Hurri wrote: Maxim Nikulin writes: Jarmo Hurri wrote: What is the easiest way to combine monospace and special symbols? Is there any problem with UTF-8 symbols such as "≠"? I have typed it using Compose / = At least out of the box, the UTF-8 symbol is not exported. #+BEGIN_SRC

Re: Special symbols with monospace

2020-10-15 Thread Eric S Fraga
On Thursday, 15 Oct 2020 at 12:31, Jarmo Hurri wrote: > In my case there is a specific pseudocode format I need to use. I think > I would have to try to tune one of these packages pretty heavily. In that case, you may simply wish to use the alltt environment. This works for me: #+begin_src org

Re: Special symbols with monospace

2020-10-15 Thread Jarmo Hurri
Hello. Maxim Nikulin writes: > Jarmo Hurri wrote: >> What is the easiest way to combine monospace and special symbols? > > Is there any problem with UTF-8 symbols such as "≠"? I have typed it using > Compose / = At least out of the box, the UTF-8 symbol is not exported. All the best, Jarmo

Re: Special symbols with monospace

2020-10-15 Thread Jarmo Hurri
Hi there. Eric S Fraga writes: > I resort to LaTeX for this, using a LaTeX src block with the algorithm > and algpseudocode packages. In my case there is a specific pseudocode format I need to use. I think I would have to try to tune one of these packages pretty heavily. But I will see.

Re: Special symbols with monospace

2020-10-15 Thread Jarmo Hurri
Hi there! Colin Baxter writes: > Would https://github.com/jsalzbergedu/pseudocode-mode be any good? I will have to explore it. The documentation is almost as thin as my wallet. Thanks, Jarmo

Re: Special symbols with monospace

2020-10-15 Thread Colin Baxter
> Jarmo Hurri writes: > Greetings. > I like to embed pseudocode etc. in example blocks so that it is > typeset in monospace when exported. But sometimes I would need > special symbols, such as \neq, in pseudocode. What is the easiest > way to combine monospace and

Re: Special symbols with monospace

2020-10-15 Thread Eric S Fraga
On Thursday, 15 Oct 2020 at 09:13, Jarmo Hurri wrote: > I like to embed pseudocode etc. in example blocks so that it is typeset > in monospace when exported. But sometimes I would need special symbols, > such as \neq, in pseudocode. What is the easiest way to combine > monospace and special

Re: Special symbols with monospace

2020-10-15 Thread Maxim Nikulin
Jarmo Hurri wrote: I like to embed pseudocode etc. in example blocks so that it is typeset in monospace when exported. But sometimes I would need special symbols, such as \neq, in pseudocode. What is the easiest way to combine monospace and special symbols? Is there any problem with UTF-8

Special symbols with monospace

2020-10-15 Thread Jarmo Hurri
Greetings. I like to embed pseudocode etc. in example blocks so that it is typeset in monospace when exported. But sometimes I would need special symbols, such as \neq, in pseudocode. What is the easiest way to combine monospace and special symbols? Jarmo