Re: First steps exporting to tex

2021-04-04 Thread Tim Cross
> Hi Tim > I have been exporting from orgmode to PDF time ago, but very basic PDFs, > playing with some basic options of orgmode. When I tried to produce a > meeting minute with a logo in the heading, I decided that I should learn > better a way of exporting, because the minute meeting was a f

Re: Bug: inconsistent escaping of coderef regexp

2021-04-04 Thread Tom Gillespie
Hi Nicolas, I've attached a patch with a first pass implementation that I think resolves most of the issues. It probably needs a few tests to go along with it, but I think it is the simplest way forward. I tried to make the changes without disrupting the org-babel info structure, but it comes wi

Re: [feature request] The :pre header argument

2021-04-04 Thread Ihor Radchenko
Hi, Rodrigo Morales writes: > I've provided more relevant information on this feature request [[ > https://codeberg.org/rdrg109/gists/src/branch/main/feature-request-pre-header-argument.org][here]]. > Please consider reading that instead of the first message on this thread. I think the origin i

Re: Bug: inconsistent escaping of coderef regexp

2021-04-04 Thread Nicolas Goaziou
Hello, Tom Gillespie writes: > After a bit of investigation I understand the issue better now. > There are two problems here. One is an easy single line change, > the other is a deeper issue, which is that it is impossible for the > user to specify their own coderef regexp that can be used i

Re: Using backticks for the inline code delimeter?

2021-04-04 Thread Nicolas Goaziou
Hello, Joost Kremers writes: > So if I were so inclined, I could write a parser for Markdown that produces > this > internal format and get all the export targets that Org has? (Not that I'm so > inclined... Just wondering. ;-) ) You can turn this internal format back to Org syntax with `org-e

Re: Bug: inconsistent escaping of coderef regexp

2021-04-04 Thread Tom Gillespie
Hi Nicolas, After a bit of investigation I understand the issue better now. There are two problems here. One is an easy single line change, the other is a deeper issue, which is that it is impossible for the user to specify their own coderef regexp that can be used in both cases. No matter what

Re: Using backticks for the inline code delimeter?

2021-04-04 Thread Joost Kremers
On Sun, Apr 04 2021, Nicolas Goaziou wrote: > Joost Kremers writes: > >> On Sat, Apr 03 2021, Tom Gillespie wrote: >>> Is there any reason why folks couldn't just customize >>> org-emphasis-alist using a file local variable? > > [...] > >> If all exporters worked off an internal representation

[PATCH] LaTeX export: arbitrary float environments

2021-04-04 Thread Thomas S. Dye
Aloha all, LaTeX users are able to define arbitrary float types, e.g. with the float package. The attached patch makes them accessible from Org mode. This is a follow on to my efforts several years ago to support the Tufte-LaTeX package in Org mode, and a suggestion at the time (by Rasmus

Re: Using backticks for the inline code delimeter?

2021-04-04 Thread Nicolas Goaziou
Hello, Bill Burdick writes: > Allowing local modifications lets people experiment and share > their impressions. Local modifications are allowed, this is Elisp after all. I don't see a good reason to make it easier, tho. > Unless the org-mode format is perfect for universal needs now and into

Re: Using backticks for the inline code delimeter?

2021-04-04 Thread Maxim Nikulin
On 02/04/2021 18:23, Andreas Eder wrote: On Do 01 Apr 2021 at 09:32, autofrettage wrote: Please evaluate the design of Org Mode (and other things) without putting a value on how similar it is to other things. A bicycle would appear more familiar to a car driver if we replaced the handlebar with

Re: Using backticks for the inline code delimeter?

2021-04-04 Thread Bill Burdick
On Sun, Apr 4, 2021 at 7:21 AM Nicolas Goaziou wrote: > Anyway, one of the goals of Org is to provide a universal document > format. It is not there yet, but allowing local modifications of the > syntax certainly goes against that goal. > Allowing local modifications lets people experiment and s

Re: Idea for handling timezones

2021-04-04 Thread Maxim Nikulin
The notes below are quite general and unrelated to particular message. On 04/04/2021 07:51, Tom Gillespie wrote: followed by a space and then the repeat or delay for example [+1-01-01 10:11:00,992315771-04:00 Sat] or [-480-08-20 05:00+01:00] or more temporally local [2021-03-03 17:43-07:00

[PATCH 3/3] test-org-protocol.el: Add expected failures for file:/// URLs

2021-04-04 Thread Maxim Nikulin
* testing/lisp/test-org-protocol.el (test-org-protocol/org-protocol-store-link-file, test-org-protocol/org-protocol-capture-file): Add tests to document that existing calls to `org-protocol-sanitize-uri' could make passed URLs invalid by changing number of slashes after scheme. Till a fix of the p

[PATCH 2/3] org-protocol.el: Fix detection of old-style URIs

2021-04-04 Thread Maxim Nikulin
* lisp/org-protocol.el (org-protocol-check-filename-for-protocol): Avoid incorrect regexp in check whether command line argument uses new syntax. Fix failures of org-protocol tests. Question mark was not escaped in the previous version 928e67df7e, so any string was matched by lazy "*". Match in n

[PATCH 1/3] test-org-protocol.el: Fix the case for parse parameters with complex argument

2021-04-04 Thread Maxim Nikulin
* testing/lisp/test-org-protocol.el (test-org-protocol/org-protocol-parse-parameters): Specify that the case simulating real life capture uses new style parameters string to prevent test failure. It looks like a typo survived since addition of this case in 2216f4d2c7. --- testing/lisp/test-org-pr

Broken org-protocol tests

2021-04-04 Thread Maxim Nikulin
Hi, Is there any reason why org-protocol tests are not run by default? Is dependency on server.el considered as too heavy for routine testing? I know, the tests are broken, but I suspect, it is a consequence that additional efforts are required to run them. Almost unrelated note: either I mi

Re: Using backticks for the inline code delimeter?

2021-04-04 Thread Nicolas Goaziou
Hello, Joost Kremers writes: > On Sat, Apr 03 2021, Tom Gillespie wrote: >> Is there any reason why folks couldn't just customize >> org-emphasis-alist using a file local variable? [...] > If all exporters worked off an internal representation such as what is > returned by `org-element-parse-

Re: First steps exporting to tex

2021-04-04 Thread Juan Manuel Macías
Ypo writes: > I've already tried that. But it doesn't seem to understand the HOME > directory ~~/~. At least at Windows. I haven't touched Windows for a thousand years :-), but maybe this thread can help you: https://stackoverflow.com/questions/13584118/how-to-write-a-path-with-latex best regards

Re: how to export (latex) a image without using figure

2021-04-04 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías writes: Hi Juan, > Hi Uwe, > Try: > #+ATTR_LaTeX: :float nil > #+CAPTION: La función La función $x^2 e^{-\alpha x} = \frac{1}{\alpha}$, > $\alpha=-\ln(1-p)$ con $p=0.01$ con $p=0.3$ > [[./images/dfp_03.png]] Muchas gracias, I mean thank you very much. U

Re: how to export (latex) a image without using figure

2021-04-04 Thread Juan Manuel Macías
Hi Uwe, Try: #+ATTR_LaTeX: :float nil #+CAPTION: La función La función $x^2 e^{-\alpha x} = \frac{1}{\alpha}$, $\alpha=-\ln(1-p)$ con $p=0.01$ con $p=0.3$ [[./images/dfp_03.png]] Best regards, Juan Manuel Uwe Brauer writes: > Hi > > Currently > > #+CAPTION: La función La función $x

Re: First steps exporting to tex

2021-04-04 Thread Ypo
>>> El 03/04/2021 a las 18:00, emacs-orgmode-requ...@gnu.org escribió: Message: 34 Date: Sun, 04 Apr 2021 00:31:24 +1100 To:emacs-orgmode@gnu.org Subject: Re: First steps exporting to tex Message-ID:<871rbr7ag1@gmail.com> Content-Type: text/plain; charset=utf-8 Why do you think you nee

how to export (latex) a image without using figure

2021-04-04 Thread Uwe Brauer
Hi Currently #+CAPTION: La función La función $x^2 e^{-\alpha x} = \frac{1}{\alpha}$, $\alpha=-\ln(1-p)$ con $p=0.01$ con $p=0.3$ #+NAME: fig:plotcalor23 [[./images/dfp_03.png]] Gets translated to \begin{figure}[htbp] \centering \includegraphics[width=.9\linewidth]{./images/dfp_03.

Re: Using backticks for the inline code delimeter?

2021-04-04 Thread Joost Kremers
On Sat, Apr 03 2021, Tom Gillespie wrote: > Is there any reason why folks couldn't just customize > org-emphasis-alist using a file local variable? Just add ("`" org-code > verbatim) and see what happens. Knowing a bit about the codebase this > will probably lead to trouble during export because