From: John Hendy <jw.hendy@gmail.com>
To: "J. David Boyd" <jdavidboyd@adboyd.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: setting left margin in PDF output of ORG file
Date: Wed, 23 Apr 2014 12:41:05 -0500 [thread overview]
Message-ID: <CA+M2ft-DzcDLzaGk1MiUs45_E1nvNd_6-j0ZSYU0x3ucC8+WTw@mail.gmail.com> (raw)
In-Reply-To: <e0tcioq0hthg.fsf@www1.g9.pair.com>
On Wed, Apr 23, 2014 at 11:59 AM, J. David Boyd <jdavidboyd@adboyd.com> wrote:
> Bastien <bzg@gnu.org> writes:
>
>> jdavidboyd@adboyd.com (J. David Boyd) writes:
>>
>>> I've looked through all the latex, org-latex, org-beamer variables I can
>>> find with customize-apropos, but not having any luck.
>>
>> You can use the LaTeX geometry package:
>>
>> \usepackage[margin=0.25in]{geometry}
>>
>> HTH,
>
> Thanks, but since my LaTeX-fu and Org-fu are quite weak, where would I use
> this at?
I have a line at the top like so:
#+latex_header: \usepackage[margin=0.25in]{geometry}
(Mine's different, but that's the analog for this case). Anything you
would normally put in LaTeX straight-up, like commands, settings,
packages, etc. would go into #+latex_header: lines in Orgmode. Here's
an example of my default setup:
#+AUTHOR: John Henderson
#+OPTIONS: *:t TeX:t H:5 creator:nil
#+latex_header: \usepackage[hmargin=2.5cm,vmargin=2.5cm]{geometry}
#+latex_header: \usepackage{mathpazo} \usepackage{paralist}
#+latex_header: \usepackage{enumitem}
#+latex_header: \setlength{\parskip}{0.5cm} \setlength{\parindent}{0cm}
#+latex_header: \usepackage{lscape}
#+latex_header: \usepackage{booktabs}
#+latex_header: \hypersetup{colorlinks=true,linkcolor=blue,urlcolor=blue}
Just wanted to give an example of how you might setup Org to do what
you want in LaTeX/PDF output.
To go even further, I don't even have the above in each Org file. I
keep it in ~/org/aux/setupfile.org. Then in each file I create, I use
this line:
#+setupfile: "~/org/aux/setupfile.org"
So, for any regularly used options, I just leave them in setupfile.org
and bring them in with the above line for new files. For things I want
to set per-file, I'd add a file-specific #+latex_header line, or tweak
the #+options parameters.
John
>
> I can put it into the .tex file that is created manually, then run pdflatex 3
> times like org does, but there must be somewhere to put it into the org
> config, yes?
>
> Dave
>
>
>
next prev parent reply other threads:[~2014-04-23 17:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-23 14:48 setting left margin in PDF output of ORG file J. David Boyd
2014-04-23 14:54 ` Bastien
2014-04-23 16:59 ` J. David Boyd
2014-04-23 17:41 ` John Hendy [this message]
2014-04-23 18:24 ` J. David Boyd
2014-04-23 17:47 ` Nick Dokos
2014-04-23 18:25 ` J. David Boyd
2014-04-24 10:29 ` Michael Strey
2014-04-25 19:01 ` John Hendy
2014-04-25 19:31 ` Martin Schöön
2014-04-25 19:51 ` Thomas S. Dye
2014-04-25 19:57 ` Martin Schöön
2014-04-28 13:58 ` Michael Strey
2014-04-28 23:13 ` John Hendy
2014-04-28 23:23 ` John Hendy
2014-04-29 0:06 ` Thomas S. Dye
2014-04-29 2:47 ` John Hendy
2014-04-25 20:19 ` Achim Gratz
2014-04-26 12:23 ` J. David Boyd
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+M2ft-DzcDLzaGk1MiUs45_E1nvNd_6-j0ZSYU0x3ucC8+WTw@mail.gmail.com \
--to=jw.hendy@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jdavidboyd@adboyd.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.