emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: pineiden <pineiden@protonmail.com>
To: "Emacs-orgmode@gnu.org" <Emacs-orgmode@gnu.org>
Subject: How create a hook before export ONLY to text
Date: Mon, 03 Aug 2020 14:42:01 +0000	[thread overview]
Message-ID: <2hFSn8V0gWEy4EiuJIsebp9RQt7J81al69lqGbea3AeQwHdKETyMvBY52CS9zCj3OZQnlebM1gsj0JuHB610-5RywBUSfK66UpbRrNoGgxk=@protonmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]

Hi friends.

First time here, I have a couple of years working with org and i love it.
Now I have a problem.
I discovered the plantuml language to create nice charts, also I have minted configured to transform in latex to pdf.
But minted doesn't have the lexer so throws error.
I think, if there are a simple solution to do that.
A hook, maybe this:

org-export-before-parsing-hook

To parse or use 'sed' i don't know yet. To change the "#+BEGIN_SRC plantuml" to "#+BEGIN_SRC text" or similar.

So, what i need to know or do?
I know a little of lisp, i understand i have to:

- condition export to latex (only, because html is fine)
- if use plantuml change, if not not
- in latex has to create \begin{minted}[text] and not
\begin{minted}[plantuml]

Or, there are a general form to drop the minted on languages that not has lexer? Using emacs-org

Best regards!!

Sent with [ProtonMail](https://protonmail.com) Secure Email.

[-- Attachment #2: Type: text/html, Size: 1326 bytes --]

             reply	other threads:[~2020-08-03 14:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-03 14:42 pineiden [this message]
2020-08-04 12:18 ` How create a hook before export ONLY to text Russell Adams
  -- strict thread matches above, loose matches on Subject: below --
2020-08-07 20:07 pineiden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='2hFSn8V0gWEy4EiuJIsebp9RQt7J81al69lqGbea3AeQwHdKETyMvBY52CS9zCj3OZQnlebM1gsj0JuHB610-5RywBUSfK66UpbRrNoGgxk=@protonmail.com' \
    --to=pineiden@protonmail.com \
    --cc=Emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).