From: Christophe Rhodes <csr21@cantab.net>
To: emacs-orgmode@gnu.org
Subject: Re: [PATCH] customize latex table export
Date: Fri, 02 Dec 2011 10:21:13 +0000 [thread overview]
Message-ID: <87vcpzb7fq.fsf@cantab.net> (raw)
In-Reply-To: CACDo9LcOPKfUNQzm8ap-zBqgoquvxLZe_s-o-jtTwOmuhgTQHA@mail.gmail.com
Niels Giesen <niels.giesen@gmail.com> writes:
> Could you provide us with a minimal example of how this new functionality
> can be used?
Sure, sorry. Here we go:
--- start here ---
#+TITLE: Example of using hfmt
#+AUTHOR: Christophe Rhodes
* Introduction
This document shows the use of the =hfmt= tag in =#+LaTeX_ATTR=
lines to customize table headings. Analgous functionality is
available in HTML export by customizing the style of =th= tags.
* Example table
#+ATTR_LaTeX: hfmt=\multicolumn{1}{c}{\textbf{%s}}
| table | headings |
|-------------+-----------|
| body | cells |
| have | unchanged |
| formatting. | |
--- end here ---
> I am trying to test it and see if there are any conflicts with my patch of
> late to supports the booktabs package @
> http://patchwork.newartisans.com/patch/1016/ (aside from one of the two
> patches not applying without some minor human intervention around line
> 1998).
Apart from the code conflict itself, I don't see why it shouldn't work:
this patch only changes the export of individual cells, while the
booktabs one alters the export of lines :-). Your patch took the
approach I originally took too, with a customization variable; Carsten
(in May, aeons ago) suggested that an attribute might be preferable,
which is why I've reworked it in this way. (It might be sensible for my
patch to have a configuration variable so that there could be a
document-wide default, too; I don't know whether it would be sensible
for yours to be customizeable using ATTR_LaTeX...
> Besides that, it would in general be good to have an example for
> documentation purposes.
I hope this helps,
Christophe
next prev parent reply other threads:[~2011-12-02 10:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-19 12:34 [PATCH] customize latex table export Christophe Rhodes
2011-05-24 11:02 ` Carsten Dominik
2011-11-29 17:44 ` Christophe Rhodes
2011-12-02 9:59 ` Niels Giesen
2011-12-02 10:21 ` Christophe Rhodes [this message]
2011-12-07 15:43 ` Christophe Rhodes
2011-12-14 9:01 ` Christophe Rhodes
2011-12-14 10:19 ` Bastien
2012-04-23 12:59 ` Bastien
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=87vcpzb7fq.fsf@cantab.net \
--to=csr21@cantab.net \
--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).