all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Timothy <tecosaur@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: (Feature Request) add more entry points to configure some export functionality
Date: Tue, 19 May 2020 20:50:04 +0800	[thread overview]
Message-ID: <DA779519-2712-43FB-A59B-CE6BA526D170@getmailspring.com> (raw)
In-Reply-To: <87imgsjmsf.fsf@nicolasgoaziou.fr>

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

Nicolas,

> You asked for it, though, using `pp'.
I guess I did, didn't I 😅

> is just a string, with properties attached. If you simply return `text', you will only see "string"
Good to know, thanks :)

>> I still feel that it would be nicer to have the body of this cl-case (from org-latex-item) be a variable
> Maybe. OTOH, Org has already so many variables…
Indeed. Though my 2c on this sort of thing that the most important factor is consistency. IMO if org-html-checkbox-types exists, then an equivalent should also exist for other primary/default export backends.

> I don't know HTML enough to help you. You may want to look into headline and section filters.
Looks like this can do it for me! I still prefer doing this at-generation, but I'll take this too.

Seems to be working :) https://tecosaur.github.io/emacs-config/config.html#header-anchors
Timothy

On May 19 2020, at 5:29 pm, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Timothy writes: > Once again, thanks for taking the time to respond. I can assure you > that it's much appreciated :) You're welcome. > By item filter, I assume you are referring to org-export-filter-item-functions. That looks quite promising. I just tried a minimal function to testit > (defun tec/org-export-latex-fancy-item-checkboxes (text backend info) > (pp text) > "") > However, I must admit I find myself somewhat overwhelmed by the > output: You asked for it, though, using `pp'. #("string" X Y (properties)) is just a string, with properties attached. If you simply return `text', you will only see "string" > I've tried applying a simple regex replace, which produces > a satisfactory output though, so perhaps I'll just ignore all the > 'extra stuff' above. Exactly. The "extra stuff" is there for more advanced uses, when you need information about the surrounding of the string you are going to change. > * > I still feel that it would be nicer to have the body of this cl-case (from org-latex-item) be a variable, but I'm quite happy to have a working solution! > (checkbox (cl-case (org-element-property :checkbox item) > (on "$\\boxtimes$") > (off "$\\square$") > (trans "$\\boxminus$"))) Maybe. OTOH, Org has already so many variables… > Lastly, might you be able to shed any light on the feasibility of my desire to adjust the generation of HTML headers? I'm specifically looking to insert an element like this within the ... block:m > aria-hidden="true" href="#theHeaderID">(Link Icon) I don't know HTML enough to help you. You may want to look into headline and section filters.


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

  reply	other threads:[~2020-05-19 12:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19  1:58 (Feature Request) add more entry points to configure some export functionality Timothy
2020-05-19  7:31 ` Nicolas Goaziou
2020-05-19  8:54   ` Timothy
2020-05-19  9:29     ` Nicolas Goaziou
2020-05-19 12:50       ` Timothy [this message]
2020-05-19 13:17         ` Nicolas Goaziou
2020-05-19 13:23           ` Timothy
  -- strict thread matches above, loose matches on Subject: below --
2020-05-18  6:58 Timothy

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

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

  git send-email \
    --in-reply-to=DA779519-2712-43FB-A59B-CE6BA526D170@getmailspring.com \
    --to=tecosaur@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.