Re: How to expand macro in LaTeX export? How to use different options per export type?

2021-03-31 Thread Greg Minshall
Jean Louis, another thing that i find helpful in understanding the tao of export: if you haven't, look at the help string for the variable ~org-export-options-alist~: [C-h v org-export-options-alist]. cheers, Greg

Re: How to expand macro in LaTeX export? How to use different options per export type?

2021-03-31 Thread Greg Minshall
Jean Louis, when publishing, one presents a data structure ~org-publish-project-alist~ that defines the back ends and options for publishing actions. the options are here: https://orgmode.org/manual/Publishing-options.html#Publishing-options below is an example. as you can see,

Re: Using backticks for the inline code delimeter?

2021-03-31 Thread Greg Minshall
George and all, whether it's the right thing to do or not, i don't know. but, i'm very sympathetic to the urge. even when posting to the list, the reflex to use back ticks is strong. Greg

Re: Using backticks for the inline code delimeter?

2021-03-31 Thread Bill Burdick
Grepping for src_ in *.el in the org distro shows 11 hits over 3 files: ob-core.el, ob-exp.el, and org-element.el. That's where you can start working if you want to copy those functions into your init files and modify them for yourself, or you can see if maybe using function advice is sufficient.

Re: Using backticks for the inline code delimeter?

2021-03-31 Thread Samuel Wales
just personal opinion but i wouldn't want org's syntax to get more heterogeneous and non-orthogonal/non-factored. i could see room for an orthogonal/factored flexible syntax, like "parsing risk" and "extensible syntax" threads on this ml. this would be the one syntax to rule them all, /vaguely/

Re: Using backticks for the inline code delimeter?

2021-03-31 Thread Tim Cross
"Dr. Arne Babenhauserheide" writes: > George Mauer writes: >> - lists with dashes, org supports that just fine > > or stars (not possible with org) or plus (in org). > >> *bold text* with stars, again org already does this > > Note that this does not match markdown: Markdown uses *emphasis*

Re: Using backticks for the inline code delimeter?

2021-03-31 Thread Dr. Arne Babenhauserheide
George Mauer writes: > - lists with dashes, org supports that just fine or stars (not possible with org) or plus (in org). > *bold text* with stars, again org already does this Note that this does not match markdown: Markdown uses *emphasis* and **strong**. > `backtick code`, org doesn't

Re: Using backticks for the inline code delimeter?

2021-03-31 Thread George Mauer
The point I'm making is that this is already the de-facto thing. People on this email list do it, people in talking in irc and in forums do it. I don't think it has so much to do with markdown documents as it does with Slack, Discord, Teams, even google chat adopting that convention. All our

Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export

2021-03-31 Thread Berry, Charles
> On Mar 31, 2021, at 9:41 AM, Timothy wrote: > > I anticipate that this change may be somewhat contentions because ox-md > explicitly follows only the original Markdown spec from 2003, however > I've thought this over and come to the conclusion that this change is > still in keeping with

Re: Using backticks for the inline code delimeter?

2021-03-31 Thread Diego Zamboni
The approach I've taken is to try and stop using Markdown altogether and write everything in Org, exporting to Markdown for those destinations that need it. You could even use https://github.com/tecosaur/org-pandoc-import to automatically convert/reconvert other formats as needed, and

Re: How to expand macro in LaTeX export? How to use different options per export type?

2021-03-31 Thread Jean Louis
* Greg Minshall [2021-03-31 14:33]: > Jean Louis, > > > Another issue related to this setup is that I would like: > > > > - for HTML export: title:t toc:t > > > > - for LaTeX PDF export: title:nil toc:nil > > > > Is there way to have options different for different exports? > > sometimes

Re: fuzzy link can't be exported when \begin{foo} is there

2021-03-31 Thread James Powell
Thank you Kyle.  I can see how using the latex environments the way I did caused the table part to not be org-mode at all any more.  I didn't realize org behaved that way, and the workaround of using #+LATEX works wonderfully. Incidentally would not org-mode benefit from a bug tracker?

Re: Using backticks for the inline code delimeter?

2021-03-31 Thread autofrettage
> > I would like to submit that org consider adopting backticks as an alternate > > way of denoting inline code. > > Just FYI, this is almost certainly not going to happen. Perhaps as unlikely as Python adopts 'i' instead of 'j' in complex numbers? It looks awful for all but electrical and

Re: Using backticks for the inline code delimeter?

2021-03-31 Thread Timothy
George Mauer writes: > I would like to submit that org consider adopting backticks as an alternate > way of denoting inline code. Just FYI, this is almost certainly not going to happen. -- Timothy

Re: Using backticks for the inline code delimeter?

2021-03-31 Thread Sébastien Miquel
George Mauer writes: is there a straightforward way to extend the org parser to do this? I don't think so. It seems the emphasis markers are hard-coded in various places. From a quick look at the code, you'd have to customize `org-emphasis-alist` and redefine `org-set-emph-re`  and

Re: Using backticks for the inline code delimeter?

2021-03-31 Thread Timothy
autofrettage writes: > Quick and Dirty: Bind key '`' to ~ in Emacs? > > (I guess it is clear I haven't thought about the consequences.) You can add that just to the Org-mode map. That wouldn't be too bad, there's always C-q. -- Timothy

Re: Using backticks for the inline code delimeter?

2021-03-31 Thread autofrettage
Hi, George> Aside from any official movement, I would like to add this to my own files - is there a straightforward way to extend the org parser to do this? Quick and Dirty: Bind key '`' to ~ in Emacs? (I guess it is clear I haven't thought about the consequences.) Cheers Rasmus

Re: About exporting

2021-03-31 Thread Juan Manuel Macías
Martin Steffen writes: > [...] And last not least; if I ``compile'' the document (firing off latex, > bibtex, or index or whatever), the compilation runs in the background. > As far as I do that in org (exporting to pdf), it blocks emacs. Not > that it's a huge delay even, at least for smaller

Using backticks for the inline code delimeter?

2021-03-31 Thread George Mauer
Markdown uses backticks to denote inline code which should get special (typically monospace) formatting, org uses the tilde character. Now I know that org is not markdown, is far more powerful than markdown, and is not (mostly) the same use cases as markdown. But this one use case *does* overlap.

Re: About exporting

2021-03-31 Thread Martin Steffen
> "Eric" == Eric S Fraga writes: Eric> On Tuesday, 30 Mar 2021 at 17:44, Juan Manuel Macías wrote: >> However, *I would not recommend anyone to use LaTeX for >> writing*. A light markup language is more comfortable and >> efficient for me. Eric> Totally agree! Although,

[PATCH] Wrap LaTeX snippets in $$ with markdown export

2021-03-31 Thread Timothy
Hi All, I anticipate that this change may be somewhat contentions because ox-md explicitly follows only the original Markdown spec from 2003, however I've thought this over and come to the conclusion that this change is still in keeping with that, and beneficial. Currently ox-md simply inherits

[PATCH] Add font-lock rule for inline export snippets

2021-03-31 Thread Timothy
Hello, The latest in my visually-oriented (mostly) short patch series, adding basic fontification to inline export snippets --- @@comment:these things@@. I think fontification for stuff like this is nice because it visually indicates to the user that they've written out an Org construct, and

[PATCH] avoid loading major modes when exporting to file

2021-03-31 Thread Timothy
Hello, Another little patch, this time a one-liner. I think the commit description is pretty thorough, so give that a look. TLDR; it makes `org-export-to-file' behave a bit more nicely. -- Timothy >From eb9d7c038dbb9e7a4b89edf61db83a31dda27170 Mon Sep 17 00:00:00 2001 From: TEC Date: Wed, 31

Re: How to expand macro in LaTeX export? How to use different options per export type?

2021-03-31 Thread Eric S Fraga
> Another solution could be if a program in BEGIN_SRC block could > generate Org inline, so that it gets processed after generation. Or even an inline src block, e.g. src_elisp{...}, which checks the /backend/ for export and outputs accordingly. Search the mailing list as there have been

Re: How to expand macro in LaTeX export? How to use different options per export type?

2021-03-31 Thread Greg Minshall
Jean Louis, > Another issue related to this setup is that I would like: > > - for HTML export: title:t toc:t > > - for LaTeX PDF export: title:nil toc:nil > > Is there way to have options different for different exports? sometimes "publishing" gives me easier control over options than

Re: How to expand macro in LaTeX export? How to use different options per export type?

2021-03-31 Thread Jean Louis
* Eric S Fraga [2021-03-31 13:46]: > On Wednesday, 31 Mar 2021 at 13:29, Jean Louis wrote: > > By doing this: > > > > @@latex:\def\version{@@ {{{version}}} @@latex:}@@ > > > > Then {{{version}}} will get expanded in the document, right? As I have > > hidden then only tags surrounding

Re: How to expand macro in LaTeX export? How to use different options per export type?

2021-03-31 Thread Eric S Fraga
On Wednesday, 31 Mar 2021 at 13:29, Jean Louis wrote: > By doing this: > > @@latex:\def\version{@@ {{{version}}} @@latex:}@@ > > Then {{{version}}} will get expanded in the document, right? As I have > hidden then only tags surrounding {{{version}}}. Yes. >> Also, a macro can itself use the @@

Re: How to expand macro in LaTeX export? How to use different options per export type?

2021-03-31 Thread Jean Louis
* Eric S Fraga [2021-03-31 13:06]: > On Wednesday, 31 Mar 2021 at 12:40, Jean Louis wrote: > > But then the line with \def\version{ {{{version}}} } gets shown in > > HTML export, which is not what I want. How to resolve that? > > Can you surround the line with @@latex: ... @@? > > You might

Re: About exporting

2021-03-31 Thread Eric S Fraga
On Tuesday, 30 Mar 2021 at 17:44, Juan Manuel Macías wrote: > However, *I would not recommend anyone to use LaTeX for writing*. A > light markup language is more comfortable and efficient for me. Totally agree! Although, over the years, I have written many papers in LaTeX directly, in the past

Re: How to expand macro in LaTeX export? How to use different options per export type?

2021-03-31 Thread Eric S Fraga
On Wednesday, 31 Mar 2021 at 12:40, Jean Louis wrote: > But then the line with \def\version{ {{{version}}} } gets shown in > HTML export, which is not what I want. How to resolve that? Can you surround the line with @@latex: ... @@? You might need to do @@latex:\def\version{@@ {{{version}}}

How to expand macro in LaTeX export? How to use different options per export type?

2021-03-31 Thread Jean Louis
In this following peculiar setup, I wish to publish the macro value {{{version}}} inside of the LaTeX source code export. That makes the first page how I need it, as it displays logo and other matters. But I cannot use macro replacements in src blocks, right? That is why I have defined

Re: org-adapt-indentation not honored prior to Org 9.4?

2021-03-31 Thread Bastien
Hi, Kyle Meyer writes: > Tim Cross writes: > >> one thing I think might help (maybe too late) would be to put the >> entries for both electric-indent-mode and org-adapt-indentation so that >> they are together in the release notes as they do interact with each >> other and often people stop