emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Where to customize the generated ID of html export? i.e outline-container-org
@ 2020-03-04  1:05 KOKOU AFIDEGNON
  2020-09-04 14:33 ` Bastien
  2020-09-04 18:57 ` Ivan Tadeu Ferreira Antunes Filho
  0 siblings, 2 replies; 5+ messages in thread
From: KOKOU AFIDEGNON @ 2020-03-04  1:05 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi,

I want to replace the CSS and div layout with my custom layout from a theme
i designed.

how do i change the generated id and classes? i.e outline-container-org and
outline-3?

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Where to customize the generated ID of html export? i.e outline-container-org
  2020-03-04  1:05 Where to customize the generated ID of html export? i.e outline-container-org KOKOU AFIDEGNON
@ 2020-09-04 14:33 ` Bastien
  2020-09-04 18:57 ` Ivan Tadeu Ferreira Antunes Filho
  1 sibling, 0 replies; 5+ messages in thread
From: Bastien @ 2020-09-04 14:33 UTC (permalink / raw)
  To: KOKOU AFIDEGNON; +Cc: emacs-orgmode

Hi Kokou,

KOKOU AFIDEGNON <kokou.afidegnon@gmail.com> writes:

> I want to replace the CSS and div layout with my custom layout from a
> theme i designed. 
>
> how do i change the generated id and classes? i.e 
> outline-container-org and outline-3?

You cannot change id and classes nams (like "outline-container-org"
and "outline-3") but you can use custom IDs to get readable anchors in
the HTML output.  Just set :CUSTOM_ID: for your headlines and see.

Please check the manual if it does not work as expected.

Thanks,

-- 
 Bastien


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Where to customize the generated ID of html export? i.e outline-container-org
  2020-03-04  1:05 Where to customize the generated ID of html export? i.e outline-container-org KOKOU AFIDEGNON
  2020-09-04 14:33 ` Bastien
@ 2020-09-04 18:57 ` Ivan Tadeu Ferreira Antunes Filho
  2020-09-05  8:16   ` Bastien
  1 sibling, 1 reply; 5+ messages in thread
From: Ivan Tadeu Ferreira Antunes Filho @ 2020-09-04 18:57 UTC (permalink / raw)
  To: KOKOU AFIDEGNON; +Cc: Liste-emacs-orgmode@gnu.org

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

I use the following code to customize the ids:
http://ivanmalison.github.io/dotfiles/#usemyowndefaultnamingschemefororgheadings

It replaces the function 'org-export-get-reference' with something less
random.
You could take a similar approach, maybe substituting the function
responsible for creating the classes as well.
(I use Org mode 9.1.9, I haven't tested this code with more recent versions)


On Tue, Mar 3, 2020 at 8:07 PM KOKOU AFIDEGNON <kokou.afidegnon@gmail.com>
wrote:

> Hi,
>
> I want to replace the CSS and div layout with my custom layout from a
> theme i designed.
>
> how do i change the generated id and classes? i.e outline-container-org
> and outline-3?
> _______________________________________________
> Ita mailing list
> Ita@mit.edu
> http://mailman.mit.edu/mailman/listinfo/ita
>

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Where to customize the generated ID of html export? i.e outline-container-org
  2020-09-04 18:57 ` Ivan Tadeu Ferreira Antunes Filho
@ 2020-09-05  8:16   ` Bastien
  2020-09-05 10:00     ` TEC
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2020-09-05  8:16 UTC (permalink / raw)
  To: Ivan Tadeu Ferreira Antunes Filho
  Cc: Liste-emacs-orgmode@gnu.org, KOKOU AFIDEGNON

Hi Ivan,

Ivan Tadeu Ferreira Antunes Filho <ita@mit.edu> writes:

> (I use Org mode 9.1.9, I haven't tested this code with more recent
> versions)

When you upgrade Org, please report whether your code still works so
that we can discussing its integration as a feature in Org, if that's
useful to others as well.

Thanks,

-- 
 Bastien


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Where to customize the generated ID of html export? i.e outline-container-org
  2020-09-05  8:16   ` Bastien
@ 2020-09-05 10:00     ` TEC
  0 siblings, 0 replies; 5+ messages in thread
From: TEC @ 2020-09-05 10:00 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode, KOKOU AFIDEGNON, Ivan Tadeu Ferreira Antunes Filho


Bastien <bzg@gnu.org> writes:

> When you upgrade Org, please report whether your code still works so
> that we can discussing its integration as a feature in Org, if that's
> useful to others as well.

For what it's worth, I'm just a few commits behind head and this:
https://tecosaur.github.io/emacs-config/config.html#nicer-generated-heading,code--2
is currently working quite nicely for me.

This was the subject of an earlier email to this list:
https://orgmode.org/list/E1jxAjq-0004Dk-LH@lists.gnu.org/ but there
didn't seem to be much interest.

Timothy.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-09-05 10:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-04  1:05 Where to customize the generated ID of html export? i.e outline-container-org KOKOU AFIDEGNON
2020-09-04 14:33 ` Bastien
2020-09-04 18:57 ` Ivan Tadeu Ferreira Antunes Filho
2020-09-05  8:16   ` Bastien
2020-09-05 10:00     ` TEC

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).