emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Peter Davis <pfd@pfdstudio.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Exporting text
Date: Mon, 27 Jan 2014 15:41:29 -1000	[thread overview]
Message-ID: <m18uu051di.fsf@tsdye.com> (raw)
In-Reply-To: <20140127213329.GD97990@pdavismbp15.iscinternal.com> (Peter Davis's message of "Mon, 27 Jan 2014 16:33:30 -0500")

Aloha Peter,

Peter Davis <pfd@pfdstudio.com> writes:

> On Mon, Jan 27, 2014 at 01:06:53PM -0500, Nick Dokos wrote:
>> 
>> ...what happens if you replace org-article with just plain boring old
>> article? 
>> 
>
> Yeah, that worked. Unfortunately, though, I didn't get the Times font
> I was after.
>
> Actually, Times was just going to be a stepping stone to what I really
> want ... a) sans-serif headings and b) Palatino as the base font.
>
> I'd welcome any suggestions on how to achieve those.

The Koma scripts for LaTeX use sans-serif headings.  Try this:

#+name: koma-article
#+header: :results silent
#+begin_src emacs-lisp
   (require 'ox-latex)
   (add-to-list 'org-latex-classes
                '("koma-article"
                  "\\documentclass{scrartcl}
                   \\usepackage{microtype}
                   \\usepackage{tgtermes}
                   \\usepackage[scale=.9]{tgheros}
                   \\usepackage{tgcursor}"
                  ("\\section{%s}" . "\\section*{%s}")
                  ("\\subsection{%s}" . "\\subsection*{%s}")
                  ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
                  ("\\paragraph{%s}" . "\\paragraph*{%s}")
                  ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
#+end_src

This uses the beautiful TeX-Gyre fonts. I haven't checked if they have a
Palatino clone--if so, I'd be inclined to use it.  If not, then you'll
want to replace tgtermes with mathpazo and give a bit more leading with 
\\linespread{1.05}.

You can put this code block in your local library of Babel and then load
it on a buffer-local basis, like this:

# Local Variables: 
# eval: (org-sbe "koma-article")
# End:

Beware of org-sbe, which used to be just sbe. You might need something
like this:

# eval: (and (fboundp 'org-sbe) (not (fboundp 'sbe)) (fset 'sbe 'org-sbe))

hth,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com

  parent reply	other threads:[~2014-01-28  1:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-26 19:31 Exporting text Peter Davis
2014-01-26 22:14 ` Bastien
2014-01-27 15:05   ` Peter Davis
2014-01-27 16:19     ` Peter Davis
2014-01-27 16:31       ` Peter Davis
2014-01-27 17:00         ` Nick Dokos
2014-01-27 17:28           ` Peter Davis
2014-01-27 18:06             ` Nick Dokos
2014-01-27 21:33               ` Peter Davis
2014-01-27 22:09                 ` Nick Dokos
2014-01-27 23:37                   ` Peter Davis
2014-01-28  1:41                 ` Thomas S. Dye [this message]
2014-01-28  1:58                   ` Peter Davis
2014-01-28  3:06                     ` 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=m18uu051di.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=pfd@pfdstudio.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).