Re: ox-html: exporting LaTeX-environments

2022-04-11 Thread Thibault Marin
Hi Vitus, list. My memory is quite fuzzy on this and I won't have a chance to take a deep look until later, but I will try to share the information I have. On Mon, 11 Apr 2022 19:38:13 + (9 hours, 37 minutes, 37 seconds ago), Vitus Schäfftlein wrote: Dear org-mode mailing list,

Re: LaTeX fragments not being generated due to extra * in tikz env

2020-12-17 Thread Thibault Marin
Hi, I introduced the change that broke the behavior. The attached patch seems to fix the issue for me, does it look reasonable? Thanks, thibault On 2020-12-09T13:16:19-0500, Jeremie Juste wrote: Hello, Thanks for reporting. Indeed this is an issue that hasn't been fixed yet. This is

Re: latex fragments compilation error when exporting to html

2020-09-02 Thread Thibault Marin
Hi, I can't comment on the rest of the discussion but I think I added this org-html--unlabel-latex-environment line. It was part of a change allowing links to equations in HTML export (https://lists.gnu.org/archive/html/emacs-orgmode/2018-01/msg00120.html). When removing the call to

Re: Bug: org-mime-htmlize generates unwanted equations numbers in mail [9.2.5 (release_9.2.5-521-gdea0c7 @ /home/oub/emacs/site-lisp/packages/org/)]

2019-12-08 Thread Thibault Marin
Hi, thanks for the quick review. On 2019-12-08T15:40:54-0500, Nicolas Goaziou wrote: > > +(defun org-html--latex-environment-numbered-p (latex-frag) > ^^ > latex-env I changed the name

Re: Bug: org-mime-htmlize generates unwanted equations numbers in mail [9.2.5 (release_9.2.5-521-gdea0c7 @ /home/oub/emacs/site-lisp/packages/org/)]

2019-12-08 Thread Thibault Marin
be considered for a merge and if there any comments or suggestions to improve it? Thanks in advance. thibault On 2019-11-02T05:38:04-0400, Uwe Brauer wrote: >>> "TM" == Thibault Marin writes: > Hi, > I think I wrote some of that code, I was not trying to s

Re: org-custom-id-goto?

2019-12-04 Thread Thibault Marin
> I'd also be happy with a helm interface to the actual headline text I use `helm-semantic-or-imenu' to navigate between org headlines, it may partly fit your needs.

Re: Bug: org-mime-htmlize generates unwanted equations numbers in mail [9.2.5 (release_9.2.5-521-gdea0c7 @ /home/oub/emacs/site-lisp/packages/org/)]

2019-11-02 Thread Thibault Marin
Hi, I think I wrote some of that code, I was not trying to support "unnumbered" environments. If I understand correctly, this is what you are trying to get. The attached patch attempts to solve this. Currently, `displaymath' and `*' environments do not get numbers, I am not sure if there are

Re: [O] blogging wih org-mode

2019-09-29 Thread Thibault Marin
Last time I researched this, this was the list I obtained: http://bastibe.de/2013-11-13-blogging-with-emacs.html http://endlessparentheses.com/how-i-blog-one-year-of-posts-in-a-single-org-file.html https://github.com/howardabrams/dot-files/blob/master/emacs-blog.org

Re: [O] getting access to a self-invented option?

2019-08-02 Thread Thibault Marin
Hi, I am not sure where you are trying to get to the value (in the publishing function?), but I use something like the following to handle custom keywords: , | #+MWP_EXPORT_TYPE: slides | | #+name: elt | #+begin_src emacs-lisp :results silent :exports none | (let ((tree

Re: [O] Org publish inserting HTML tags into sitemap-format-entry

2019-07-10 Thread Thibault Marin
class="timestamp"2019-07-10/div Test#+endexport On 7/10/19 7:47 PM, Thibault Marin wrote: > You may need to wrap the html part in a `#+begin_export html' block or > similar. I believe the custom sitemap function should generate org > content, not directly HTML. >

Re: [O] Org publish inserting HTML tags into sitemap-format-entry

2019-07-10 Thread Thibault Marin
You may need to wrap the html part in a `#+begin_export html' block or similar. I believe the custom sitemap function should generate org content, not directly HTML. Hope it helps. On 2019-07-10T17:44:01-0400, Thomas Ingram wrote: Hello, I am using ox-publish to build my website. I have

Re: [O] org-mode blogging

2018-12-22 Thread Thibault Marin
I have done something similar with the sitemap functionality: - I used the sitemap functions to extract date and title from the page: https://thibaultmarin.github.io/blog/posts/2016-11-13-Personal_website_in_org.html#sitemap - The sitemap is added in the main page to show a list of blog

Re: [O] Problem with python source block

2018-05-25 Thread Thibault Marin
Hi, For what it's worth, I cannot reproduce it on Org mode version 9.1.13 (release_9.1.13-763-g2621db) with -Q; the file is properly produced. I get the same error if I add the `session' header argument, maybe it is set elsewhere? Hope it helps. thibault Doyley, Marvin M. writes: > Hi

Re: [O] ox-md: Export links to equations for use with MathJax

2018-02-12 Thread Thibault Marin
> Markdown has no direct business with Mathjax, so introducing Mathjax > components in "ox-md.el" sounds wrong to me. "ox-md.el" doesn't even > have any math-related function (it lets "ox-html.el" take care of LaTeX > fragments and environments). OK. > Since it is a specific requirement, you may

[O] ox-md: Export links to equations for use with MathJax

2018-02-10 Thread Thibault Marin
Hi list, Similar to a change introduced recently to ox-html (ba6c0f1ea9), I'd like to be able to export (in markdown, using ox-md.el) links to LaTeX equations with "\eqref{org000}" and rely on MathJax for rendering instead of the default markdown format ("[description][#org000]"). The

[O] Two ob-lua versions

2018-02-10 Thread Thibault Marin
Hi maintainers, I noticed that a recent change added an ob-lua.el file to contrib/lisp/. Since there is already an ob-lua.el in lisp/, I was wondering if the new version was adding functionality not supported by the one in lisp/ (it does not seem to be the case on casual inspection) and if so,

Re: [O] Equation references in HTML export

2018-01-18 Thread Thibault Marin
> To avoid having to hack the code, you could try using the mathtools > package and ask it to only number equations that are referenced: > > \usepackage{mathtools} > \mathtoolsset{showonlyrefs} Thanks, if there is a mechanism to alter the preamble when creating the image, that may be

Re: [O] Equation references in HTML export

2018-01-17 Thread Thibault Marin
Nicolas Goaziou writes: > Could you write a short entry in ORG-NEWS to advertise it? Done in the attached patch. Thanks >From 7c59f34ccd19278f10be399645f641b791e7f41b Mon Sep 17 00:00:00 2001 From: thibault Date: Wed, 17 Jan 2018 21:08:59 -0600 Subject: [PATCH]

Re: [O] Equation references in HTML export

2018-01-16 Thread Thibault Marin
Hi, thanks for the review. Please find attached an updated patch. > I guess so. OTOH, I assume latex environments are always math > environments. One can use LaTex export blocks for "regular" LaTeX. I left the math check in the attached patch for now. Please let me know if you would like me to

Re: [O] Equation references in HTML export

2018-01-10 Thread Thibault Marin
Hi, > You may be right. In this case, we may use \eqref if MathJax is > going to be used (like your initial patch did), and do the above > otherwise. OK, I think that would work. To summarize, here are the different outputs under MathJax and the other modes: - MathJax mode: - Environment:

Re: [O] Equation references in HTML export

2018-01-07 Thread Thibault Marin
Hi, thank you for the review. > I'm not convinced that inserting label and, more importantly, > caption within the environment is the way to go. For example, that > will not work when `org-html-with-latex' is set `verbatim'. Couldn't > we simply wrap a HTML label and caption above, or below, the

[O] Equation references in HTML export

2018-01-04 Thread Thibault Marin
>From 094df613ec5fd05b6d2124bc45e6f9a8cbef92e5 Mon Sep 17 00:00:00 2001 From: thibault Date: Thu, 4 Jan 2018 21:23:59 -0600 Subject: [PATCH] ox-html.el: Add MathJax label and reference to equations in HTML export * lisp/ox-html.el (org-html-format-latex): Add "\label" to

Re: [O] Possible bug with coderef highlighting in HTML export

2017-12-03 Thread Thibault Marin
Hi, Hi the attach patch fixes the issue for me. Please let me know if you have any suggestions. As always, thanks for the guidance. thibault >From a78dc91c9fd1aacb2c65f66ae5afa9ee25f56e01 Mon Sep 17 00:00:00 2001 From: thibault Date: Sun, 3 Dec 2017 17:42:13 -0600

[O] Possible bug with coderef highlighting in HTML export

2017-12-03 Thread Thibault Marin
Hi all, I am using Org mode version 9.1.3 (release_9.1.3-216-g259656 @ /.../org-mode/lisp/) and I am experiencing an issue with the exported HTML of the following org file: , | this links get highlighted [[(link0)]]. | | this link does not get highlighted [[(link1)]]. | | #+begin_src

Re: [O] Running org-mode (and emacs) inside the Web browser ?

2017-10-28 Thread Thibault Marin
Hi, org-mode in a browser would be great indeed. With https://github.com/paradoxxxzero/butterfly, you can get a terminal in the browser, then run emacs in terminal mode. It is not ideal (some keyboard shortcuts are intercepted by the browser), but it seems quite interesting. Olivier Berger

Re: [O] Tangling org file with nested org source block

2017-10-20 Thread Thibault Marin
Following-up on the issue I reported some time ago with tangling of nested source blocks, I would like to propose a patch for review. Before the patch, the following file: , | #+PROPERTY: header-args :tangle output.org | | #+BEGIN_SRC org | | ,* Test | | ,#+BEGIN_SRC org | ,,#+BEGIN_SRC

[O] Tangling org file with nested org source block

2017-09-27 Thread Thibault Marin
Hi list, I am trying to tangle the following org file: , | #+PROPERTY: header-args :tangle output.org | | #+BEGIN_SRC org | | ,* Test | | ,#+BEGIN_SRC org | ,,#+BEGIN_SRC emacs-lisp | '(1 2 3) | ,,#+END_SRC | ,#+END_SRC | | #+END_SRC ` (note the double commas at the beginning of

Re: [O] Variables in properties no longer working

2017-04-12 Thread Thibault Marin
Hi, The syntax has changed in org-9, see http://orgmode.org/manual/Header-arguments-in-Org-mode-properties.html#Header-arguments-in-Org-mode-properties The following seems to fix your example: :HEADER-ARGS: :var foo="bar" Andreas Mueller writes: > Hello > > The attached example seems to

Re: [O] plantuml export (unable to resolve link: nil)

2016-12-30 Thread Thibault Marin
Prabhakaran Kasinathan writes: > PlantUML src when exported to latex, has problems with link reference. > > export in latex : C-x C-e l l > Error: Unable to resolve link: nil > > Fix: #+OPTION: broken-links:mark > > Everything works very well with

Re: [O] [ANN] Substantial changes to sitemap generation

2016-12-19 Thread Thibault Marin
Nicolas Goaziou writes: > Hello, > > I just pushed a revamp of sitemap generation during publishing process. > If you tweaked sitemap, you almost certainly need to update your > settings. > > Basically, the changes at the property level are: > > - :sitemap-sans-extension and

Re: [O] Add preamble support to ob-plantuml.el

2016-12-10 Thread Thibault Marin
Hi, Please find attached a patch updating ORG-NEWS. Thanks, thibault >From 3d335b093d4e95b14cc71317d2aef024f1c64fd5 Mon Sep 17 00:00:00 2001 From: thibault Date: Sat, 10 Dec 2016 08:27:48 -0600 Subject: [PATCH] * etc/ORG-NEWS: Header arguments support for PlantUML

Re: [O] Add preamble support to ob-plantuml.el

2016-12-09 Thread Thibault Marin
(org-babel-eval cmd "") nil)) ;; signal that output has already been written to file diff --git a/testing/lisp/test-ob-plantuml.el b/testing/lisp/test-ob-plantuml.el new file mode 100644 index 000..794d313 --- /dev/null +++ b/testing/lisp/test-ob-plantuml.el @@ -0,0 +

Re: [O] Add preamble support to ob-plantuml.el

2016-12-06 Thread Thibault Marin
l"))) +(with-temp-file in-file (insert full-body)) (message "%s" cmd) (org-babel-eval cmd "") nil)) ;; signal that output has already been written to file diff --git a/testing/lisp/test-ob-plantuml.el b/testing/lisp/test-ob-plantuml.el new file mode 100644 inde

Re: [O] Add preamble support to ob-plantuml.el

2016-12-05 Thread Thibault Marin
Hi, thanks for the feedback. > You don't need to use the TINYCHANGE string since you signed FSF papers > already. Fixed. > The :version keyword is inaccurate. It should be :version "25.2". It is > also missing :package-version and :safe #'stringp. Fixed (I hope). > OOC, what is your use case?

[O] Add preamble support to ob-plantuml.el

2016-12-01 Thread Thibault Marin
Hi list, I am attaching a patch adding support for preamble commands to ob-plantuml.el. The string content of the `org-plantuml-preamble' variable is added at the beginning of each source block before execution (after the "@startuml" string). Does this look like this could be merged? Please

Re: [O] project website from org

2016-11-19 Thread Thibault Marin
Hi, I recently research that a little. I think a good place to start is the worg tutorial at: http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html. I decided to use org without jekyll to avoid intermediaries, but that is one option. I found the following blog posts about

Re: [O] Multiple bibliography files with ox-bibtex and html export

2016-11-15 Thread Thibault Marin
Hi, I am trying to get back to the multiple bibliography issue discussed some time ago. I have two patches proposing two slightly different approaches (from earlier suggestions): - 0001-contrib-lisp-ox-bibtex.el-org-bibtex-process-bib-fil.patch creates a new bibliography file, a

Re: [O] Use headings in sitemap

2016-10-31 Thread Thibault Marin
> I think this is a genuine bug. Exclude regexp should be matched against > relative file names, not absolute ones. I fixed it in wip-sitemap. You > may want to rebase the branch if you want to experiment with the fix. The latest update works for me (all my previously reported issues are fixed).

Re: [O] Use headings in sitemap

2016-10-31 Thread Thibault Marin
> I'm not sure to understand. Why resulting in an empty file list is > a problem? Is there an error in the new "ox-publish.el"? Sorry for the confusion, I don't think anything is wrong with the new ox-publish.el, but the selection of excluded files by regexp seems to have changed (I personally

Re: [O] Use headings in sitemap

2016-10-30 Thread Thibault Marin
Nicolas Goaziou writes: > I pushed an implementation of that idea in wip-sitemap branch, if anyone > wants to test it. Thanks! > For example, setting :sitemap-function property to > >(lambda (title list) > (concat "#+TITLE: " title "\n\n" >

Re: [O] replying to emai with org-mode syntax in mu4e

2016-10-28 Thread Thibault Marin
Matt Price writes: > On Fri, Oct 28, 2016 at 7:48 PM, Thibault Marin <thibault.ma...@gmx.com> > wrote: > >> >> It looks like you may be looking for `org-mu4e-compose-org-mode'. >> > > duh... > > Thank you. So, if I want this to be on by default, do you

Re: [O] replying to emai with org-mode syntax in mu4e

2016-10-28 Thread Thibault Marin
It looks like you may be looking for `org-mu4e-compose-org-mode'. Matt Price writes: > I've just switched to mu4e. It's unbelievably great, thank you everyone > who's recommended it over the years. > > However, I would like to compose my replies in org-mode and send them out > as HTML. I guess

Re: [O] Export tangle filename with source block

2016-10-12 Thread Thibault Marin
Thibault Marin writes: > OK, then it looks like I may be able to build a list of source block > name/tangle filename pairs on pre-processing, store it in a global > variable and use it when processing source-blocks. It is probably a > little hack-ish but that would be fine for me. O

Re: [O] Use headings in sitemap

2016-10-11 Thread Thibault Marin
Nicolas Goaziou writes: > This reminds me of a patch Rasmus (Cc'ed) is working on (thread starting > at: ). I missed that for some reason, it is better and more ambitious. > I suggest to let :sitemap-function operate on the lists of files >

Re: [O] Export tangle filename with source block

2016-10-11 Thread Thibault Marin
Thanks for your reply, it is very helpful. Nicolas Goaziou writes: > They are not. You may want to see how cache is used with info in, e.g., > `org-export-get-footnote-definition'. That looks like what I was trying to achieve (except better), thanks. > The buffer used during export is unlikely

Re: [O] Export tangle filename with source block

2016-10-08 Thread Thibault Marin
Hi all, I am following up on a question I posted here a while ago to show my progress in case it can help others and to ask for a few clarifications. I would appreciate any feedback. My goal is to add a label to source blocks on HTML export to indicate the name of the file to which the block

[O] Preserving links when using org-element-interpret-data

2016-10-05 Thread Thibault Marin
Hi all, I am trying to use the org-element tools to modify an org file from elisp code and I was wondering if the `org-element-parse-buffer' / `org-element-interpret-data' combo should result in the same content as the original buffer. I am having issues with links where the target and the

[O] Use headings in sitemap

2016-09-28 Thread Thibault Marin
Hi list, I would like to generate a sitemap for a published website and use it to extract the last few entries in a specific folder to put on the main page. The site structure looks like: . ├── index.org ├── posts │ ├── A.org │ ├── B.org │ └── C.org ├── misc │ ├── page.org │ └──

Re: [O] Multiple bibliography files with ox-bibtex and html export

2016-09-27 Thread Thibault Marin
Hi, sorry for the delay, I was away for a while. > I'd suggest 2 :) But not that I don't use this feature. > > It should be easy to unify the code: something along the lines of starting > the process, and then looping over bibtex files and sending them one by one > to bibtex2html's standard

Re: [O] Multiple bibliography files with ox-bibtex and html export

2016-09-13 Thread Thibault Marin
Clément Pit--Claudel writes: > On 2016-09-06 23:46, Thibault Marin wrote: >>>> I am attaching a patch which allows me to use multiple files with html >>>> export. It creates a combined bibliography file and call bibtex2html on >>>> it. I am not sure this

Re: [O] Multiple bibliography files with ox-bibtex and html export

2016-09-10 Thread Thibault Marin
work towards an updated patch. thibault > I'd suggest starting the process and then using process-send-string. > > Clément. > > On 2016-09-08 23:55, Thibault Marin wrote: > > > > Clément Pit--Claudel writes: > > > >> On 2016-09-06 23:46, Thibault M

Re: [O] ob-lua

2016-09-07 Thread Thibault Marin
Hi, I have received the FSF papers. Thanks thibault Nicolas Goaziou writes: > Hello, > > Thibault Marin <thibault.ma...@gmx.com> writes: > >> I have just submitted the FSF papers. > > Great! Please let me know when the whole process is done. > > Thank you.

Re: [O] Multiple bibliography files with ox-bibtex and html export

2016-09-06 Thread Thibault Marin
Nicolas Goaziou writes: > Hello, > > Thibault Marin <thibault.ma...@gmx.com> writes: > >> I would like to use ox-bibtex to export a bibliography to html with >> multiple bibliography files, as follows: >> >> #+BIBLIOGRAPHY: bibtex_1.bib,bibtex_2.bib plai

Re: [O] ob-lua

2016-08-30 Thread Thibault Marin
Thanks, I have just submitted the FSF papers. Best, thibault Nicolas Goaziou writes: > Hello, > > Thibault Marin <thibault.ma...@gmx.com> writes: > >> I am attaching an updated patch adding the Lua language to the CSS in >> `org-html-style-default'. > > P

[O] Problem exporting file with code references

2016-08-26 Thread Thibault Marin
Hi list, I am trying to run the last example on the documentation page: http://orgmode.org/manual/Literal-examples.html and I am running into a problem. The following is the full org file I am trying to export: --- #+BEGIN_SRC emacs-lisp -n -r (save-excursion (ref:sc)

[O] Multiple bibliography files with ox-bibtex and html export

2016-08-23 Thread Thibault Marin
Hi list, I would like to use ox-bibtex to export a bibliography to html with multiple bibliography files, as follows: #+BIBLIOGRAPHY: bibtex_1.bib,bibtex_2.bib plain option:-d option:-noabstract limit:t This works with latex export but not with html (I get a "Executing bibtex2html failed").

Re: [O] ob-lua

2016-08-23 Thread Thibault Marin
Hi, Thibault Marin writes: >>> The attached patch (using git format-patch) is adding test-ob-lua.el and >>> ob-lua.el. My contribution to ob-lua.el is only a tiny patch on top of >>> Dieter's ob-lua.el but it appears as a new file in the patch, since >

Re: [O] ob-lua

2016-08-22 Thread Thibault Marin
-"))) + (org-babel-comint-with-output + (session org-babel-lua-eoe-indicator nil body) + (let ((comint-process-echoes nil)) + (funcall input-body body) + (funcall dump-last-value tmp-file +

Re: [O] ob-lua

2016-08-21 Thread Thibault Marin
"lua-"))) + (org-babel-comint-with-output + (session org-babel-lua-eoe-indicator nil body) + (let ((comint-process-echoes nil)) + (funcall input-body body) + (funcall dump-last-value tmp-file +

Re: [O] ob-lua

2016-08-20 Thread Thibault Marin
>> There may be a better way to do it, but it seems to work. > > In this case, `org-babel-get-header' should be replaced with > `org-babel--get-vars', per ORG-NEWS. Thanks, it is much better. >> So my question is: could this be considered for a merge? The code does >> not seem to support

[O] ob-lua

2016-08-19 Thread Thibault Marin
Hi list, I was looking for lua support in source blocks and I came across this discussion: https://lists.gnu.org/archive/html/emacs-orgmode/2014-05/msg01149.html. It seems that this was never merged, but I am not sure why. Trying to use the ob-lua.el file linked, it appears to be working for

[O] Export tangle filename with source block

2016-07-31 Thread Thibault Marin
Hi list, I have an org file that I am tangling into multiple files, and exporting to html. What I would like to do is to label each source block in the exported html with the filename used for tangling this specific block. I don't have a strong opinion about the actual appearance of the label

[O] [PATCH] EPS generation from latex source block

2016-02-14 Thread Thibault Marin
Here is a small patch I use to produce TikZ EPS files from LaTeX source blocks. >From d750c26cabc87e4917974df8080714d5d7e2c9a8 Mon Sep 17 00:00:00 2001 From: thibault Date: Sun, 14 Feb 2016 03:07:20 -0600 Subject: [PATCH] Add eps output to ob-latex (without imagemagick) To: emacs-orgmode@gnu.org