emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tim Cross <theophilusx@gmail.com>
To: Jeff Filipovits <jrfilipovits@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: letterhead and signature in odt export
Date: Wed, 31 Oct 2018 08:41:52 +1100	[thread overview]
Message-ID: <87d0rri02n.fsf@gmail.com> (raw)
In-Reply-To: <CAGE1zdk=ye+M-0enDYR_sJ+72qEfcOmLd9hFSMpiQ91N=VL7Ag@mail.gmail.com>


I've never delved into the XML nightmare that is ODT and stick with
latex/PDF export.

Here is how I handled needing to have a logo and banner at the top of my
documents. Essentially, it involves using the Latex 'minipage'
environment to setup the layout and the xcolor package to handle
colours. Getting it working is somewhat trial and error, but once you
have it, it is pretty much set and forget. 

The below is an early version. I later refined it and put it into my
org-latex-classes variable, but removed it when I left the University
for a new employer. It should be fairly straight-forward to adapt to a
letter head. The only challenge will be if your Uni Marketing/PR are
very rigid re: format. In particular, fonts can be a challenge if they
have selected something unusual.  

#+TITLE: XXXXXXXXX
#+AUTHOR: XXXXXXX
#+DATE: \today
#+SUBTITLE: IAM Use Case
#+OPTIONS: ^:nil num:nil toc:nil tags:nil |:t
#+LATEX_CLASS: une-article
#+LATEX-OPTIONS: 12pt,a4paper
#+LATEX_HEADER: \usepackage{xcolor}
#+LATEX_HEADER_EXTRA: \definecolor{unegreen}{HTML}{7AB800}
#+LATEX_HEADER_EXTRA: \definecolor{Black}{HTML}{000000}
#+LATEX_HEADER_EXTRA: \definecolor{White}{HTML}{FFFFFF}
#+LATEX_HEADER_EXTRA: \definecolor{dimgrey}{HTML}{696969}
#+LATEX_HEADER_EXTRA: \makeatletter
#+LATEX_HEADER_EXTRA: \def\@maketitle{
#+LATEX_HEADER_EXTRA:  \noindent \begin{minipage}[c][4cm][t]{\linewidth}
#+LATEX_HEADER_EXTRA:    \colorbox{Black}{%
#+LATEX_HEADER_EXTRA:      \begin{minipage}[t][4cm][c]{4cm}
#+LATEX_HEADER_EXTRA:      \flushleft
#+LATEX_HEADER_EXTRA:      \includegraphics{~/Pictures/unelogo_medium.png}
#+LATEX_HEADER_EXTRA:    \end{minipage}}
#+LATEX_HEADER_EXTRA:    \colorbox{unegreen}{%
#+LATEX_HEADER_EXTRA:      \begin{minipage}[t][4cm][c]{10cm}
#+LATEX_HEADER_EXTRA:        \flushright
#+LATEX_HEADER_EXTRA:        \Large \textbf{\color{White}{\@title}} \\
#+LATEX_HEADER_EXTRA:         \vspace{4pt}
#+LATEX_HEADER_EXTRA:        \small \color{White}{\@author} \\
#+LATEX_HEADER_EXTRA:        \small \color{White}{\@date}
#+LATEX_HEADER_EXTRA:      \end{minipage}}
#+LATEX_HEADER_EXTRA:    \end{minipage}}
#+LATEX_HEADER_EXTRA: \makeatother



Jeff Filipovits <jrfilipovits@gmail.com> writes:

> Would you mind sharing them? This is a problem I am trying to figure out as
> well.
>
> On Tue, Oct 30, 2018, 9:29 AM Eric S Fraga <esflists@gmail.com> wrote:
>
>> Matt,
>>
>> I've replied directly to you with some files.
>> --
>> Eric S Fraga via Emacs 27.0.50, Org release_9.1.13-783-g97fac4
>>
>>


-- 
Tim Cross

  parent reply	other threads:[~2018-10-30 21:42 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-30  5:55 letterhead and signature in odt export Matt Price
2018-10-30  6:54 ` Eric S Fraga
2018-10-30 12:34   ` Matt Price
2018-10-30 13:28     ` Eric S Fraga
2018-10-30 14:29       ` Jeff Filipovits
2018-10-30 15:56         ` ckelty ckelty
2018-10-31  1:26           ` Matt Price
2018-10-31  1:30             ` Matt Price
2018-10-31  3:04               ` Alan L Tyree
2018-10-31  3:50             ` ckelty ckelty
2018-11-01 12:47               ` getting close on latex letterheads [was: letterhead and signature in odt export] Matt Price
2018-11-01 13:58                 ` Eric S Fraga
2018-11-02  2:28                   ` Matt Price
2018-10-31 14:53             ` letterhead and signature in odt export John Kitchin
2018-10-30 21:41         ` Tim Cross [this message]
2018-10-31  1:21           ` Matt Price
2018-11-01 21:11             ` Tim Cross
2018-10-30  7:31 ` Christian Moe

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=87d0rri02n.fsf@gmail.com \
    --to=theophilusx@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jrfilipovits@gmail.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).