emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Tags LaTeX export question
@ 2021-01-03 20:08 Éric Würbel
  2021-01-03 20:44 ` Eric S Fraga
  2021-01-03 20:56 ` Kyle Meyer
  0 siblings, 2 replies; 4+ messages in thread
From: Éric Würbel @ 2021-01-03 20:08 UTC (permalink / raw)
  To: emacs-orgmode

Hi listers,

How can I customize healine tags export to LaTeX ?

The default settings provide a first line-break but then no more,
resulting in a truncation in case of a large number of tags.

I need this for a computational poem.

Oh, and if the solution needs elisp programming, no problem, so
pointing me on some king of hook will be ok.

Thanks. Regards.

E.
-- 
http://www.vents-sauvages.fr/
gemini://retry-abort.org/
« Ils étaient tous différents les uns des autres, et en cela exactement pareils à nous. »
Haruki Murakami


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

* Re: Tags LaTeX export question
  2021-01-03 20:08 Tags LaTeX export question Éric Würbel
@ 2021-01-03 20:44 ` Eric S Fraga
  2021-01-03 20:49   ` Éric Würbel
  2021-01-03 20:56 ` Kyle Meyer
  1 sibling, 1 reply; 4+ messages in thread
From: Eric S Fraga @ 2021-01-03 20:44 UTC (permalink / raw)
  To: Éric Würbel; +Cc: emacs-orgmode

On Sunday,  3 Jan 2021 at 21:08, Éric Würbel wrote:
> How can I customize healine tags export to LaTeX ?

You might be able to do something using filters.  See org info manual:
(org) Advanced Export Configuration

There is a headline filter variable.  Whether the tags come through or
not is unclear to me, however.  Easy enough to find out, I guess.

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-166-g291993


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

* Re: Tags LaTeX export question
  2021-01-03 20:44 ` Eric S Fraga
@ 2021-01-03 20:49   ` Éric Würbel
  0 siblings, 0 replies; 4+ messages in thread
From: Éric Würbel @ 2021-01-03 20:49 UTC (permalink / raw)
  To: emacs-orgmode

Thank you,

I should have remembered this, as I already wrote a backend system for
static html site generation which uses filters. For sure this is the
way to go.

Thanks again.

E.
Le dim. 03 janv. 2021 à 20:44, Eric S Fraga a écrit :

> On Sunday,  3 Jan 2021 at 21:08, Éric Würbel wrote:
>> How can I customize healine tags export to LaTeX ?
>
> You might be able to do something using filters.  See org info manual:
> (org) Advanced Export Configuration
>
> There is a headline filter variable.  Whether the tags come through or
> not is unclear to me, however.  Easy enough to find out, I guess.


-- 
http://www.vents-sauvages.fr/
gemini://retry-abort.org/
« Il faut toujours viser la lune, car même en cas d’échec, on atterrit 
dans les étoiles »
Oscar WILDE


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

* Re: Tags LaTeX export question
  2021-01-03 20:08 Tags LaTeX export question Éric Würbel
  2021-01-03 20:44 ` Eric S Fraga
@ 2021-01-03 20:56 ` Kyle Meyer
  1 sibling, 0 replies; 4+ messages in thread
From: Kyle Meyer @ 2021-01-03 20:56 UTC (permalink / raw)
  To: Éric Würbel; +Cc: emacs-orgmode

Éric Würbel writes:

> Hi listers,
>
> How can I customize healine tags export to LaTeX ?
>
> The default settings provide a first line-break but then no more,
> resulting in a truncation in case of a large number of tags.
>
> I need this for a computational poem.
>
> Oh, and if the solution needs elisp programming, no problem, so
> pointing me on some king of hook will be ok.

By default, the headline is formatted with

  (defun org-latex-format-headline-default-function
      (todo _todo-type priority text tags _info)
    "Default format function for a headline.
  See `org-latex-format-headline-function' for details."
    (concat
     (and todo (format "{\\bfseries\\sffamily %s} " todo))
     (and priority (format "\\framebox{\\#%c} " priority))
     text
     (and tags
          (format "\\hfill{}\\textsc{%s}"
                  (mapconcat #'org-latex--protect-text tags ":")))))

You could write a custom variant and point
org-latex-format-headline-function to it.  (Or at least I think that
should work; I haven't tested it myself.)


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

end of thread, other threads:[~2021-01-03 21:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-03 20:08 Tags LaTeX export question Éric Würbel
2021-01-03 20:44 ` Eric S Fraga
2021-01-03 20:49   ` Éric Würbel
2021-01-03 20:56 ` Kyle Meyer

Code repositories for project(s) associated with this 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).