Re: [O] enhancement - cross-reference to another file?

2017-10-14 Thread Martin Alsinet
Hello Sharon: On Sat, Oct 14, 2017 at 7:45 AM Sharon Kimble wrote: > > Is it possible to cross reference to another org-mode file in a > different directory? > Yes, it is possible, you have to use the following syntax: [[file:/path/to/other/org/file.org:*

[O] Nested smart quotes

2017-10-05 Thread Martin Alsinet
Hello! My name is Martin and I use org-mode every day. This is my first message to the mailing list, and I wanted to ask if somebody could help me with a problem I encountered when exporting a document with nested smart quotes. I have submitted the same question

Re: [O] Nested smart quotes

2017-10-05 Thread Martin Alsinet
for my taste. Thanks anyway! Martin On Thu, Oct 5, 2017 at 12:22 PM Colin Baxter <m43...@yandex.com> wrote: > >>>>> Martin Alsinet <mar...@alsinet.com.ar> writes: > > > > #+TITLE: Smart quotes example #+OPTIONS: toc:nil ':t #+LANGUAGE: > &

Re: [O] Nested smart quotes

2017-10-05 Thread Martin Alsinet
Hello Nick. First, thank you so much for your detailed answer. On Thu, Oct 5, 2017 at 2:16 PM Nick Dokos wrote: > > This example has the additional problem of the apostrophe in "let's", which > basically causes more mayhem. Let's simplify the example a bit by > considering > >

Re: [O] Nested smart quotes [fixed]

2017-10-05 Thread Martin Alsinet
On Thu, Oct 5, 2017 at 2:41 PM Martin Alsinet <mar...@alsinet.com.ar> wrote: > Hello Nick. First, thank you so much for your detailed answer. > > I'm not sure whether smart quotes can be made smarter, perhaps by >> detecting the problem and inserting the small space \, to res

Re: [O] Nested smart quotes

2017-10-05 Thread Martin Alsinet
On Thu, Oct 5, 2017 at 4:58 PM Adonay Felipe Nogueira wrote: > What about using org-entities for these quotes? > > \ldquo{}Hello \lsquo{}World\rsquo{}!\rdquo{} > > This is Org mode syntax, not LaTeX. > > Adonay: I wanted to solve this using smart quotes, that is when I

Re: [O] *Good* client for Android?

2017-10-12 Thread Martin Alsinet
Hello John: If your phone screen is big enough, you could use termux + emacs + git & git-remote-gcrypt. With that you could use the same stack on Android as on your laptop. Termux is a linux console for Android that lets you install

Re: [O] can't get org-mode noweb tangle to work

2017-11-24 Thread Martin Alsinet
Hello Charlie: I have found that I like better to use a combination of tangle and import instead of noweb syntax. #+BEGIN_SRC python :tangle board.py def init_board(args) return [[-1 for x in range(3)] for y in range(3)] #+END_SRC #+BEGIN_SRC python import sys import os from board import

Re: [O] ob-python newline & indentation behavior

2017-11-18 Thread Martin Alsinet
Hello Jack: What versions of emacs and org-mode are you using? I tried your example on Emacs 25.3.1 and org-mode 9.1.2-22 and I got "20" as result It has happened to me in the past that some bug I was seeing goes away just by updating org-mode. Regards, Martin On Sat, Nov 18, 2017 at 5:16 PM

Re: [O] ob-python newline & indentation behavior

2017-11-18 Thread Martin Alsinet
Sorry Jack, I overlooked the :session bit. Disregard my email please On Sat, Nov 18, 2017 at 10:27 PM Martin Alsinet <mar...@alsinet.com.ar> wrote: > Hello Jack: > > What versions of emacs and org-mode are you using? > > I tried your example on Emacs 25.3.1 and org-mode 9

Re: [O] C++ sessions for Babel with cling interpreter

2017-11-05 Thread Martin Alsinet
Hello Garjola: I have not used C++ source blocks, but I use them frequently with Javascript and Python, and I don't use sessions. The thing is, for literate programming, we want to include the code from one source block in others, and it would seem that sessions are the solution. However, I find

Re: [O] org-babel source block unevaluated into variable?

2017-10-25 Thread Martin Alsinet
ESULTS: : ls -alh Martín On Wed, Oct 25, 2017 at 10:36 AM Martin Alsinet <mar...@alsinet.com.ar> wrote: > Johan: > > You can try the following: > > #+NAME: lscode > #+BEGIN_ASCII > ls -alh > #+END_ASCII > > #+BEGIN_SRC emacs-lisp :var code=lscode > (message

Re: [O] org-babel source block unevaluated into variable?

2017-10-25 Thread Martin Alsinet
Johan: You can try the following: #+NAME: lscode #+BEGIN_ASCII ls -alh #+END_ASCII #+BEGIN_SRC emacs-lisp :var code=lscode (message code) #+END_SRC #+RESULTS: : ls -alh I haven't tried the noweb references, but it does return the code block in the variable. Martín On Wed, Oct 25, 2017 at

Re: [O] org-babel source block unevaluated into variable?

2017-10-26 Thread Martin Alsinet
I would like ":var code=example" to make "code" carry the > full (and expanded) text of the "example" block, i.e. to have > > echo ls -alh > > as the result -- the code itself, unevaluated. > > Johan > > 2017-10-25 17:52 GMT+02:00 Martin Alsi

Re: [O] Hope ob-js can support :session feature

2017-12-22 Thread Martin Alsinet
GPG key ID: 47C32433 > IRC(freeenode): stardiviner Twitter: @numbchild > Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 > Blog: http://stardiviner.github.io/ > > On Sat, Dec 23, 2017 at 2:32 AM, Martin Alsinet <mar...@alsinet.com.ar&

Re: [O] Hope ob-js can support :session feature

2017-12-24 Thread Martin Alsinet
gt; IRC(freeenode): stardiviner Twitter: @numbchild > Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 > Blog: http://stardiviner.github.io/ > > On Sat, Dec 23, 2017 at 11:06 AM, Martin Alsinet <mar...@alsinet.com.ar> > wrote: > >&g

Re: [O] Hope ob-js can support :session feature

2017-12-22 Thread Martin Alsinet
Hello stardiviner, On Fri, Dec 22, 2017 at 6:57 AM stardiviner wrote: > > I wish to do JavaScript Literate Programming in Org-mode. > > So the :session header argument is very necessary. > > I do Literate Programming in Javascript with Org-mode, and I have found a

Re: [O] do you need a separate LaTeX installation to export org mode files to pdf?

2018-01-22 Thread Martin Alsinet
TeX: FROM ubuntu:xenial MAINTAINER Martin Alsinet <martin@alsinet> ENV DEBIAN_FRONTEND noninteractive RUN apt-get update -q RUN apt-get install -y texlive-full gnuplot python-pygments RUN apt-get clean RUN rm -rf /var/lib/apt/lists/* Save that in a file named *Dockerfile* in a blank folder and r

Re: [O] Python with org-mode

2019-03-30 Thread Martin Alsinet
Lawrence, It depends on what you want to do. Anaconda is a python distribution intended for data science and machine learning, so if you want to work on machine learning, it provides an easy way to install all the required packages for that. You can use any python distribution with org-mode, you

Re: [O] Lowercase keywords in 9.2?

2019-02-12 Thread Martin Alsinet
Carlos Here are two previous threads about the subject: - Last month: http://lists.gnu.org/archive/html/emacs-orgmode/2019-01/msg00349.html - A year ago: http://lists.gnu.org/archive/html/emacs-orgmode/2018-01/msg00425.html Regards On Tue, Feb 12, 2019 at 9:51 AM Carlos Pita

Re: [O] Lowercase keywords in 9.2?

2019-02-12 Thread Martin Alsinet
Carlos, I recently updated to 9.2 and was also confronted with the org-tempo change. At first I didn't like the lowercase tags for the blocks, but I got used to them after a couple of days. Someone suggested adding a defcustom option to org-tempo to let the user choose between lower and upper

Re: [O] Lowercase keywords in 9.2?

2019-02-12 Thread Martin Alsinet
What do you mean with the "uppercase legacy"? You mean all the current documents we already have? In my case, those will remain with the upper case tags until I need to edit them. I guess it would be enough to patch the sites affected by > >

Re: [O] [Proposal] Source Blocks with Post-Extensions

2019-06-26 Thread Martin Alsinet
Dmitrii, I use a different approach, where I tangle the source into files in modules and then I import those modules from other blocks. This allows me to organize my document with different sections for the code and its tests, which then get exported into their corresponding files. * Square

Re: [O] Best practice for providing an Org-based application?

2019-09-11 Thread Martin Alsinet
Neil, You could use transient[1], the tool used to build the menus of magit[2]. I really like magit's discoverability and ease of use. There is a video of a talk where it is used to control kubernetes from inside emacs in magit style: https://www.youtube.com/watch?v=w3krYEeqnyk [1] transient:

Re: [O] [Proposal] Source Blocks with Post-Extensions

2019-07-26 Thread Martin Alsinet
about this problem and provided a solution that may work for you, but I have not tried it yet. Martin On Fri, Jul 26, 2019 at 7:02 AM Ken Mankoff wrote: > Hi Martin, > > On 2019-06-26 at 18:09 -04, Martin Alsinet > wrote... > > I use a different approach, where I tang

Re: [O] [Proposal] Source Blocks with Post-Extensions

2019-07-26 Thread Martin Alsinet
Well Ken, you improved my workflow right there, I am going to add the :prologue trick to my shell properties header and get the test error output in the results block. Thank you right back! On Fri, Jul 26, 2019 at 10:18 AM Ken Mankoff wrote: > > On 2019-07-26 at 08:58 -04, Martin A