emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Cc: tsd@tsdye.com
Subject: Re: An Org-mode LaTeX class?
Date: Tue, 28 Oct 2014 10:54:00 +0100	[thread overview]
Message-ID: <87ppdcmsef.fsf@gmx.us> (raw)
In-Reply-To: 87y4s1t1nw.fsf@wmi.amu.edu.pl

Hi Marcin,

Thanks for sharing your ideas.

Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:

> Imagine someone wrote a dedicated Org-mode LaTeX class, and the LaTeX
> exporter got an option to export to this class.  The class modifies
> LaTeX so that it supports all Org's elements and objects, and things
> like tags, timestamps, checkboxes etc.

Honestly, a patch or an exact bug report would be great.  If something
is not right it should be fixed across all backends.  That being said,
at least cheackboxes are pretty pretty these days

(checkbox (case (org-element-property :checkbox item)
		     (on "$\\boxtimes$ ")
		     (off "$\\square$ ")
		     (trans "$\\boxminus$ ")))

It would be nice to format all timestamps using strftime-like syntax.

> Moreover, the look of these elements is configurable on the LaTeX
> end, and further by means of Org options.  This way, we drop the
> "generic LaTeX" thing (which is nice for people sending articles to
> journals etc. – so my dream should not replace the current LaTeX
> exporter, only constitute a variant!), but instead we gain a
> beautiful, configurable pdf rendering of Org buffers.

Thomas S. Dye tried it back in the days.  It was called org-article¹.
I'm sure he will share his experience here eventually.

In general, if you want to pursuit this, I would advice you to look
into derived classes, ox and ox-latex.  In ox-latex search for
org-export-define-backend and note how each element is "translated"
using a functinon.  From the sound of your project you will want to
tune some of them, and change the default class (for the latter point
see ox-koma-letter).

I think you will have a easier time today than Thomas' had, since ox
and org-element is so modual and easy to work with.

Two good examples of ox-latex derived backends are ox-beamer.el and
ox-koma-letter.el.

Hope it helps.

—Rasmus

Footnotes: 
¹   http://orgmode.org/worg/org-contrib/babel/examples/article-class.html

-- 
Got mashed potatoes. Ain't got no T-Bone. No T-Bone

  parent reply	other threads:[~2014-10-28  9:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-28  1:37 An Org-mode LaTeX class? Marcin Borkowski
2014-10-28  8:02 ` Fabrice Popineau
2014-10-28  9:49   ` Mike McLean
2014-10-28  9:15 ` Thorsten Jolitz
2014-10-28  9:54 ` Rasmus [this message]
2014-10-28 17:38   ` Thomas S. Dye

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=87ppdcmsef.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    --cc=tsd@tsdye.com \
    /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).