Re: Org to ConTeXt exporter?

2021-01-09 Thread Juan Manuel Macías
Hello, Jason, Jason Ross writes: > I recently had the same thought and I've started working on one. > You can see it here: > > https://github.com/Jason-S-Ross/ox-context/ > > It's no substitute for the LaTeX exporter but it implements a lot > of the basics. I'm deriving from the LaTeX exporter b

Re: [PATCH] A proposal to add LaTeX attributes to verse blocks

2021-01-07 Thread Juan Manuel Macías
t; "\n" - contents nil t) nil t) nil t)) + contents nil t) nil t) nil t) linreset) info) ;; Insert footnote definitions, if any, after the environment, so ;; the special formatting above is not applied to them. - (org-latex--delayed-footnotes-definitions ve

Re: Possibility to copy text outside EMACS and send it to orgmode document

2021-01-06 Thread Juan Manuel Macías
Gerardo Moro writes: > Basically that: as I copy (Control-C) text from the browser (Chrome), > I would like those copied sentences to be sent to a ordered list in an > OrgMode document: > > - copied text 1 > - copied text 2 > - etc. > > Any ideas? This would be very useful. > Thanks! I don't kno

Re: Inserting LaTex expressions using a filter fails

2021-01-06 Thread Juan Manuel Macías
Mart van de Wege writes: > You're right. I looked up the variable, and there is only one mention > in the docs, and that is about binding emacs variables locally to the > org file buffer. > > Can I just clone the repo and prepare a patch? As far as I know, you can create a diff and propose the p

Re: Inserting LaTex expressions using a filter fails

2021-01-06 Thread Juan Manuel Macías
Mart van de Wege writes: > Kind of weird it's not mentioned in the docs though (at least not in > the same section as export filters); if you're going to tell people that > you can bind local functions to an org file, then it might be nice to > point out that you do need to turn that on. You're

Re: Inserting LaTex expressions using a filter fails

2021-01-06 Thread Juan Manuel Macías
Mart van de Wege writes: > Thanks! > > But see my answer to Nick Dokos on the list, that does not do anything > either. Try putting this variable in your .emacs with non-nil value: (setq org-export-allow-bind-keywords t) Regards, Juan Manuel

Re: Inserting LaTex expressions using a filter fails

2021-01-05 Thread Juan Manuel Macías
Hello, Mart van de Wege writes: > I'm trying to replace U+00BD in an org buffer with \sfrac{1}{2} during > export to LaTex, and obviously I'm doing something wrong, or I don't > understand the documentation. > > I use the following code to set up the filter: > > #+BIND: org-export-filter-item-fu

Re: [PATCH] A proposal to add LaTeX attributes to verse blocks

2021-01-03 Thread Juan Manuel Macías
Hi Timothy, TEC writes: > Hi Juan, > > Thanks for your patch. > > This looks like a fairly sensible addition. Two comments from me: > > 1. I'm not sure that "options" is a good name for arbitrary LaTeX which >is included inside the verse block. Perhaps something like "insert" >or "inclu

Re: Org to ConTeXt exporter?

2020-12-29 Thread Juan Manuel Macías
Hello, Marcin, Marcin Borkowski writes: > Here's the thing. Some time ago, I have dedicated about 20 minutes per > day (sometimes less, sometimes more, but the average over the past 6 > years is about 17 minutes now) to what I call "creative writing" - > mainly the book I was working on for the

Re: [tip] Export subfigures to LaTeX (and HTML)

2020-12-29 Thread Juan Manuel Macías
Hello, John, Thank you very much for the two links. John Kitchin writes: > You might look at this > http://kitchingroup.cheme.cmu.edu/blog/2015/02/05/Extending-the-org-mode-link-syntax-with-attributes/ > for another way to do that. Your idea of adding attributes to Org links is very interesti

Re: Org to ConTeXt exporter?

2020-12-28 Thread Juan Manuel Macías
Hello, Diego, Diego Zamboni writes: > I have never used ConTeXt, but from what I've seen, despite its many > differences, a lot is still similar to TeX/LaTeX (e.g. math). Given > this, I think it might be easier to create a new derived exporter from > ox-latex, and override the parts that differ

Re: Org to ConTeXt exporter?

2020-12-28 Thread Juan Manuel Macías
Hello, Jonathan, Jonathan McHugh writes: > I have wondered about the interoperability between Context and Latex. > > As somebody who (previously) invested a lot of time into Latex, my migration > to > Context (due to its emphasis on Lua) grew problematic once other commitments > grew. What I l

Re: Org to ConTeXt exporter?

2020-12-28 Thread Juan Manuel Macías
Hello, Marcin, Marcin Borkowski writes: > Creating an exporter from scratch is probably easier than you think. > A few years ago I planned a tutorial about this, but another job > happened, then covid happened etc. Now that I finished some big project > taking me a lot of time, I might be tempt

Org to ConTeXt exporter?

2020-12-28 Thread Juan Manuel Macías
Hi, Just out of curiosity, I am wondering if there are plans to create an Org to ConTeXt exporter in the future, or if there is already some work in progress on this front. I have to say that among TeX formats I tend to prefer LaTeX to ConTeXt; but ConTeXt has very interesting features (grid type

Re: Bug: Tildes in URL impact visible link text [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)]

2020-12-27 Thread Juan Manuel Macías
Hello, writes: > This would be a bug: tilde is an allowed URI character [1] You're right. I have also noticed that if I write links like these: [[*foo ~foo~ foo]][[foo]] [[*foo =foo= foo]][[foo]] There is an anomaly in the description similar to what Chris comments in his email... Regards,

Re: A way to avoid unwanted new lines when using paragraph quotes?

2020-12-27 Thread Juan Manuel Macías
Hello again Kashyap, Kashyap Chamarthy writes: > Hmm, that fixes the new line before the "sub bullet under test 3, with > a quote". However, a new line still remains after the quote ends (and > before the "Test 4" starts). Is it possible to nuke that too? If > not, that's okay, I can live wit

Re: Bug: Tildes in URL impact visible link text [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)]

2020-12-27 Thread Juan Manuel Macías
Hello, I think the problem comes because in that url the tilde does not have an escape character. If it's just that case, you can try replacing each tilde with %7E (see https://www.w3schools.com/tags/ref_urlencode.asp). That way the link description would have to be formatted correctly, without sp

Re: A way to avoid unwanted new lines when using paragraph quotes?

2020-12-27 Thread Juan Manuel Macías
Hello, Kashyap Chamarthy writes: > Is there a way to avoid the said new lines in the above mentioned > examples? (NB: A space right _before_ the quote starts is okay.) Or > alternatively, is there a way to consistently force a new line in the > HTML export, after each of "Test 1", "Test 2", et

[tip] Export subfigures to LaTeX (and HTML)

2020-12-25 Thread Juan Manuel Macías
Hi, I have come up with a way to export subfigures to LaTeX (with the subfigure package) by defining a new link type. The 'subcaption' of the subfigure would be the description of the link. If we want to add parameters such as width, scale, etc., we can put them next between the marks '>( ... )

Re: *strong* markup not honored at boundary of macro input during HTML export

2020-12-23 Thread Juan Manuel Macías
recede or follow them. An emergency cure ;-) Regards, Juan Manuel m27315 writes: > Worked like a charm.  Thanks, Juan! > > On 2020-12-23 9:22 AM, Juan Manuel Macías wrote: >> quote (eval (concat "@@html:“@@" "\u200B" $1 >> "\u200B" "@@html:”@@")) >

Re: *strong* markup not honored at boundary of macro input during HTML export

2020-12-23 Thread Juan Manuel Macías
Hello, a possible dirty solution could be defining the macro with two Unicode zero-width spaces (u+200b): #+MACRO: quote (eval (concat "@@html:“@@" "\u200B" $1 "\u200B" "@@html:”@@")) Regards, Juan Manuel m27315 writes: > Resending as plain-text ... If somebody could point me in the direct

[TIP] Export to LaTeX and HTML with a watermark

2020-12-22 Thread Juan Manuel Macías
Hi, Recently, I needed to export a document to both LaTeX and HTML with a watermark background. I came to write this little function (for LaTeX, the 'draftwatermark' package is used; for html, a bit of CSS. The optional arg `text' is the text of the watermark; by default what is printed is "DRAFT"

Displaying verse numbers within a verse block

2020-12-20 Thread Juan Manuel Macías
Hi, One of the many, many things where I use Org Mode is my Spanish translation of Homer's Odyssey (work in progress). To avoid getting lost inside each Book, I wrote this little code that helps me navigate through the verses, displaying in the margin (within a verse block) the verse numbers in

[PATCH] A proposal to add LaTeX attributes to verse blocks

2020-12-17 Thread Juan Manuel Macías
(Sorry, due to a mistake, the text of my message did not appear in my previous email) Hi, I would like to propose this patch to add some LaTeX attributes to the verse block, especially to be able to apply certain features from the verse.sty package, which is an extension (widely used in Humani

[Small suggestion] on exporting verse blocks to LaTeX and vertical spaces

2020-12-15 Thread Juan Manuel Macías
Hi, When exporting a verse block to LaTeX, each empty line between 'stanzas' results in the command =\vspace*{1em}=, which is fine. However, I would dare to suggest that, in order to be more consistent with the LaTeX `verse' environment (both the one that comes by default and the one provided by

Re: #+include and org-export-before-processing-hook

2020-12-13 Thread Juan Manuel Macías
Hello, Eric S Fraga writes: > Hello, > > I have a particular function that I want to invoke when exporting an org > file. This works just fine, adding this function to the > org-export-before-processing-hook, for simple org files. However, if I > have an org file which uses #+include: to inclu

Accessing a DLNA server through an Org link

2020-12-10 Thread Juan Manuel Macías
Hi, I'm storing in an Org document a list of links to all my media files (videos, music, and the like). This is a little trick that I came up with to access the multimedia content of my raspberry's dlna server (minidlna), using an Org link and the Javier López 'simple-dlna-browser' script (https:/

Re: Bug: Footnotes on Headers and LaTeX export [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)]

2020-12-09 Thread Juan Manuel Macías
You're welcome ;-) Charis Michelakis writes: > Thank you :) > > On 12/9/20 5:06 PM, Juan Manuel Macías wrote: >> Hello, >> >> Charis Michelakis writes: >> >>> There is a potential bug regarging how footnotes on headers are >>> con

Re: Bug: Footnotes on Headers and LaTeX export [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)]

2020-12-09 Thread Juan Manuel Macías
Hello, Charis Michelakis writes: > There is a potential bug regarging how footnotes on headers are > converted to LaTeX. > > Consider the following org file: > --start-of-file--- > > #+AUTHOR: Me > #+LATEX_HEADER: \usepackage{titlesec} > > * Header1[fn:1] > > * Footnotes > > [fn:1]Lo

Re: Footnote definition within a verse block has spurious line breaks when exported to LaTeX

2020-12-05 Thread Juan Manuel Macías
Hello, Nicolas Goaziou writes: > This is hopefully fixed in master branch. Let me knows if it works for > you. Thank you, Nicolas. I've tried it and it works perfectly. I see that \footnotemark\footnotetext is used now, same as in tables. I think it's a great solution. Best, Juan Manuel

Footnote definition within a verse block has spurious line breaks when exported to LaTeX

2020-12-01 Thread Juan Manuel Macías
Hi, When a verse block includes a footnote reference, the corresponding footnote definition is understood in the LaTeX export as if it were part of the verses. In other words, every line in a =\footnote{}= macro ends with the string =\\=, and the spaces between paragraphs are understood as spa

<    4   5   6   7   8   9