* Paper Size for Exported LaTeX
@ 2014-10-21 18:00 Kenneth Jacker
2014-10-21 18:29 ` John Hendy
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Kenneth Jacker @ 2014-10-21 18:00 UTC (permalink / raw)
To: emacs-orgmode
[ Org-mode version 8.3beta (release_8.3beta-175-g59cd25 ]
First time I've used the LaTeX exporting ...
I have a hunch the default paper size is "A4".
Margins are *way* too wide ...
How do I change it to "letter"?
I tried a few things, but they don't seem to be changing anything!
Thanks for your help,
--
Prof Kenneth H Jacker (ret) khj@cs.appstate.edu
Computer Science Dept www.cs.appstate.edu/~khj
Appalachian State Univ
Boone, NC 28608 USA
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Paper Size for Exported LaTeX
2014-10-21 18:00 Paper Size for Exported LaTeX Kenneth Jacker
@ 2014-10-21 18:29 ` John Hendy
2014-10-21 19:26 ` Thomas S. Dye
2014-10-21 20:38 ` Nick Dokos
2 siblings, 0 replies; 11+ messages in thread
From: John Hendy @ 2014-10-21 18:29 UTC (permalink / raw)
To: khj; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]
On Oct 21, 2014 1:05 PM, "Kenneth Jacker" <khj@be.cs.appstate.edu> wrote:
>
> [ Org-mode version 8.3beta (release_8.3beta-175-g59cd25 ]
>
> First time I've used the LaTeX exporting ...
>
> I have a hunch the default paper size is "A4".
> Margins are *way* too wide ...
>
Default latex tends to look like that, so you'd be better off viewing the
document properties from your viewer to verify.
If it's a4, I set mine when I installed latex via texlive, but you can set
it via your org doc:
-http://en.m.wikibooks.org/wiki/LaTeX/Page_Layout
There's been some other posts on the ML about making PDF export look
better. Example:
- http://comments.gmane.org/gmane.emacs.orgmode/85428
That has my setup a few posts in which I'm pretty happy with.
John
> How do I change it to "letter"?
>
> I tried a few things, but they don't seem to be changing anything!
>
John
>
> Thanks for your help,
> --
> Prof Kenneth H Jacker (ret) khj@cs.appstate.edu
> Computer Science Dept www.cs.appstate.edu/~khj
> Appalachian State Univ
> Boone, NC 28608 USA
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 1740 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Paper Size for Exported LaTeX
2014-10-21 18:00 Paper Size for Exported LaTeX Kenneth Jacker
2014-10-21 18:29 ` John Hendy
@ 2014-10-21 19:26 ` Thomas S. Dye
2014-10-21 19:38 ` Kenneth Jacker
2014-10-21 20:38 ` Nick Dokos
2 siblings, 1 reply; 11+ messages in thread
From: Thomas S. Dye @ 2014-10-21 19:26 UTC (permalink / raw)
To: khj; +Cc: emacs-orgmode
Aloha Kenneth,
Kenneth Jacker <khj@be.cs.appstate.edu> writes:
> [ Org-mode version 8.3beta (release_8.3beta-175-g59cd25 ]
>
> First time I've used the LaTeX exporting ...
>
> I have a hunch the default paper size is "A4".
> Margins are *way* too wide ...
>
> How do I change it to "letter"?
>
> I tried a few things, but they don't seem to be changing anything!
I think this will do what you want:
#+LATEX_CLASS_OPTIONS: [letterpaper]
hth,
Tom
--
Thomas S. Dye
http://www.tsdye.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Paper Size for Exported LaTeX
2014-10-21 19:26 ` Thomas S. Dye
@ 2014-10-21 19:38 ` Kenneth Jacker
0 siblings, 0 replies; 11+ messages in thread
From: Kenneth Jacker @ 2014-10-21 19:38 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: emacs-orgmode
tsd> Aloha Kenneth,
Hello! (Reminds me of the three months I lived on Kauai ...)
tsd> I think this will do what you want:
tsd>
tsd> #+LATEX_CLASS_OPTIONS: [letterpaper]
That was one of the things I tried before posting to the ML.
Saw no difference in the margins, etc.
Thanks for your comments!
-Kenneth
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Paper Size for Exported LaTeX
2014-10-21 18:00 Paper Size for Exported LaTeX Kenneth Jacker
2014-10-21 18:29 ` John Hendy
2014-10-21 19:26 ` Thomas S. Dye
@ 2014-10-21 20:38 ` Nick Dokos
2014-10-21 22:08 ` Kenneth Jacker
2 siblings, 1 reply; 11+ messages in thread
From: Nick Dokos @ 2014-10-21 20:38 UTC (permalink / raw)
To: emacs-orgmode
Kenneth Jacker <khj@be.cs.appstate.edu> writes:
> [ Org-mode version 8.3beta (release_8.3beta-175-g59cd25 ]
>
> First time I've used the LaTeX exporting ...
>
> I have a hunch the default paper size is "A4".
> Margins are *way* too wide ...
>
> How do I change it to "letter"?
>
> I tried a few things, but they don't seem to be changing anything!
>
>
> Thanks for your help,
This may be a TeX installation default. If it is indeed the case
that it is using A4 (check it with pdfinfo on linux, check properties
in Acrobat Reader on windows), then you have to change the default.
On linux, run texconfig in a terminal, choose PAPER, choose Letter.
Nick
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Paper Size for Exported LaTeX
2014-10-21 20:38 ` Nick Dokos
@ 2014-10-21 22:08 ` Kenneth Jacker
2014-10-21 22:29 ` Thomas S. Dye
2014-10-21 23:40 ` Marcin Borkowski
0 siblings, 2 replies; 11+ messages in thread
From: Kenneth Jacker @ 2014-10-21 22:08 UTC (permalink / raw)
To: Nick Dokos; +Cc: emacs-orgmode
ndokos> This may be a TeX installation default.
Apparently, 'letter' is the default.
ndokos> If it is indeed the case that it is using A4 (check it with
ndokos> pdfinfo on linux, ...
Good suggestion. I used 'pdfinfo' on the generated PDF file and saw
(among other output) this:
Page size: 612 x 792 pts (letter)
So, I guess I need to explicitly change the L/R and top/bottom margins.
Here's what I do using emacs/latex without Org:
\setlength{\textheight}{9.25in}
\setlength{\textwidth}{6.75in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\topmargin}{-0.6in}
Can I just put the above somewhere near the beginning of my .org file?
Or, is there a "better" way? ;-)
Sorry if dumb questions, but am trying to figure out the org/latex
approach ...
Thanks for the 'pdfinfo' tip ...
-Kenneth
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Paper Size for Exported LaTeX
2014-10-21 22:08 ` Kenneth Jacker
@ 2014-10-21 22:29 ` Thomas S. Dye
2014-10-21 23:18 ` Andreas Kiermeier
2014-10-21 23:40 ` Marcin Borkowski
1 sibling, 1 reply; 11+ messages in thread
From: Thomas S. Dye @ 2014-10-21 22:29 UTC (permalink / raw)
To: khj; +Cc: Nick Dokos, emacs-orgmode
Aloha Kenneth,
Kenneth Jacker <khj@be.cs.appstate.edu> writes:
> ndokos> This may be a TeX installation default.
>
> Apparently, 'letter' is the default.
>
> ndokos> If it is indeed the case that it is using A4 (check it with
> ndokos> pdfinfo on linux, ...
>
> Good suggestion. I used 'pdfinfo' on the generated PDF file and saw
> (among other output) this:
>
> Page size: 612 x 792 pts (letter)
>
> So, I guess I need to explicitly change the L/R and top/bottom margins.
>
> Here's what I do using emacs/latex without Org:
>
> \setlength{\textheight}{9.25in}
> \setlength{\textwidth}{6.75in}
> \setlength{\oddsidemargin}{0in}
> \setlength{\evensidemargin}{0in}
> \setlength{\topmargin}{-0.6in}
>
> Can I just put the above somewhere near the beginning of my .org file?
> Or, is there a "better" way? ;-)
If you want to achieve what you do using LaTeX without Org mode, then
this should work:
#+LATEX_HEADER: \setlength{\textheight}{9.25in}
#+LATEX_HEADER: \setlength{\textwidth}{6.75in}
...
hth,
Tom
--
Thomas S. Dye
http://www.tsdye.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Paper Size for Exported LaTeX
2014-10-21 22:29 ` Thomas S. Dye
@ 2014-10-21 23:18 ` Andreas Kiermeier
2014-10-22 1:42 ` Brady Trainor
2014-10-23 14:00 ` Kenneth Jacker
0 siblings, 2 replies; 11+ messages in thread
From: Andreas Kiermeier @ 2014-10-21 23:18 UTC (permalink / raw)
To: khj; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 458 bytes --]
Hi Kenneth,
I believe the reason for the large margins are based on readability (long
lines are harder). Having said that, I've also found them a bit 'odd' and
maybe that's because I'm so used to Microsoft Word's default margins of 1in
all around.
Anyway, if you prefer to specify margins directly, rather than calculating
them via \textwidth, you can also use the geometry package, e.g.
#+LATEX_HEADER: \usepackage[various options]{geometry}
Cheers,
AK
[-- Attachment #2: Type: text/html, Size: 1872 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Paper Size for Exported LaTeX
2014-10-21 22:08 ` Kenneth Jacker
2014-10-21 22:29 ` Thomas S. Dye
@ 2014-10-21 23:40 ` Marcin Borkowski
1 sibling, 0 replies; 11+ messages in thread
From: Marcin Borkowski @ 2014-10-21 23:40 UTC (permalink / raw)
To: emacs-orgmode
On 2014-10-22, at 00:08, Kenneth Jacker wrote:
> So, I guess I need to explicitly change the L/R and top/bottom margins.
>
> Here's what I do using emacs/latex without Org:
>
> \setlength{\textheight}{9.25in}
> \setlength{\textwidth}{6.75in}
> \setlength{\oddsidemargin}{0in}
> \setlength{\evensidemargin}{0in}
> \setlength{\topmargin}{-0.6in}
>
> Can I just put the above somewhere near the beginning of my .org file?
> Or, is there a "better" way? ;-)
Please don't do this! There /is/ a better way. What you're doing is
very low-level; the canonical way to change such settings is to use the
geometry package. Quoting from http://www.ctan.org/pkg/geometry :
--8<---------------cut here---------------start------------->8---
The package provides an easy and flexible user interface to customize
page layout, implementing auto-centering and auto-balancing mechanisms
so that the users have only to give the least description for the page
layout. For example, if you want to set each margin 2cm without header
space, what you need is just \usepackage[margin=2cm,nohead]{geometry}.
The package knows about all the standard paper sizes, so that the user
need not know what the nominal ‘real’ dimensions of the paper are, just
its standard name (such as a4, letter, etc.).
--8<---------------cut here---------------end--------------->8---
Protip: if you're on a Linux system, typing texdoc geometry at the
terminal will give you the docs for this package. (I don't know whether
this works with Windows or Mac.)
Hth,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Paper Size for Exported LaTeX
2014-10-21 23:18 ` Andreas Kiermeier
@ 2014-10-22 1:42 ` Brady Trainor
2014-10-23 14:00 ` Kenneth Jacker
1 sibling, 0 replies; 11+ messages in thread
From: Brady Trainor @ 2014-10-22 1:42 UTC (permalink / raw)
To: emacs-orgmode
Andreas Kiermeier <andreas.kiermeier@gmail.com> writes:
>
> #+LATEX_HEADER: \usepackage[various options]{geometry}
>
Here is an example I am using to cram a lot of lists/notes onto a peice of paper to fold into eighths.
#+BEGIN_SRC org
#+LaTeX_CLASS_OPTIONS: [landscape]
#+LaTeX_HEADER: \usepackage[top=.1in,bottom=.125in,left=0in,right=.125in]{geometry}
#+LaTeX_HEADER: \usepackage{amssymb} % for org checkboxes -> $\square$
#+LaTeX_HEADER: \usepackage{nopageno} % no page number
#+LaTeX_HEADER: \usepackage{multicol} % slice page into arbitrary columns
#+LaTeX_HEADER: \setlength\columnsep{.35in} % set column separation
#+LaTeX_HEADER: \usepackage{paralist} % reduce spacing in lists
#+LaTeX_HEADER: \let\itemize\compactitem
#+LATEX_HEADER: \let\enumerate\compactenum
#+LATEX_HEADER: \let\description\compactdesc
#+LaTeX_HEADER: \let\centering\relax % prevent centering of tables
#+TITLE:
#+END_SRC
(I setup TeXLive to default to letter.)
I originally started with a uniform
: #+LaTeX_HEADER: \usepackage[margin=.125in]{geometry}
but had to massage out the edges due to the printer (or something?) adding a margin on the left, and basically use a ruler to get the column separation to work in concert.
I also throw in
#+BEGIN_SRC org
#+BEGIN_LaTeX
\begin{multicols*}{4}
#+END_LaTeX
#+END_SRC
The `*' is for allowing uneven heights of columns.
To break a column, I use
: \vfill
: \columnbreak
--
Brady
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Paper Size for Exported LaTeX
2014-10-21 23:18 ` Andreas Kiermeier
2014-10-22 1:42 ` Brady Trainor
@ 2014-10-23 14:00 ` Kenneth Jacker
1 sibling, 0 replies; 11+ messages in thread
From: Kenneth Jacker @ 2014-10-23 14:00 UTC (permalink / raw)
To: Andreas Kiermeier; +Cc: emacs-orgmode
ak> Anyway, if you prefer to specify margins directly, rather than calculating
ak> them via \textwidth, you can also use the geometry package, e.g.
ak> #+LATEX_HEADER: \usepackage[various options]{geometry}
And that's what I did ...
Thanks to all who contributed to my initial query!
-Kenneth
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2014-10-23 14:06 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-21 18:00 Paper Size for Exported LaTeX Kenneth Jacker
2014-10-21 18:29 ` John Hendy
2014-10-21 19:26 ` Thomas S. Dye
2014-10-21 19:38 ` Kenneth Jacker
2014-10-21 20:38 ` Nick Dokos
2014-10-21 22:08 ` Kenneth Jacker
2014-10-21 22:29 ` Thomas S. Dye
2014-10-21 23:18 ` Andreas Kiermeier
2014-10-22 1:42 ` Brady Trainor
2014-10-23 14:00 ` Kenneth Jacker
2014-10-21 23:40 ` Marcin Borkowski
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).