emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Peter Davis <pfd@pfdstudio.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Resume: Squeezing lines tighter in LaTeX output?
Date: Fri, 17 Apr 2015 13:13:56 -0500	[thread overview]
Message-ID: <CA+M2ft-vVm9ZZCWHggGLZk-JwP16S_PLxKF=ov1J9Bga-jvq1w@mail.gmail.com> (raw)
In-Reply-To: <553142B3.2090905@pfdstudio.com>

On Fri, Apr 17, 2015 at 12:28 PM, Peter Davis <pfd@pfdstudio.com> wrote:
> Hi
>
> I'm trying to get a single .org file I can use to general PDF, HTML or even
> (gasp!) Word format versions of my resume. The problem I'm having now is
> that the PDF is 7 pages, compared with the 4 pages I get from my directly
> editing LaTeX file. One big difference is that individual jobs, titles, etc.
> are in a separate left column in the LaTeX version, while they're just
> subheaders and subsubheaders in the org version. I think this will be easier
> for on-line resume upload systems to parse correctly.
>
> Beyond that, though, the org output has lots of white space. While it looks
> beautiful, I'd like to squeeze together:
>  1) the headers, subheaders, etc.
>  2) The items in a bullet list
>  3) Lists and surrounding paragraphs.
>

Everything you'll do in Org will simply involve passing the right
parameters to LaTeX via Org. In other words, you should start by
finding out how to do what you want to do in LaTeX; for example google
"how to change line spacing latex" and peruse the top result:
- http://en.wikibooks.org/wiki/LaTeX/Paragraph_Formatting

Then pick something that does one of the above, and add it to Org.
Most likely these options will be passed using:

#+latex: \command{foo} %%% this is just in-lining some latex command
somewhere in the document

#+latex_header: \usepackage[foo]{bar} %%% this is loading some
package, e.g. enumitem, and passing options

#+attr_latex: :foo bar %%% this would go above a table or picture to
set attributes for that particular element

Sorry to not be more specific... Org is just a middle-man to tell
LaTeX what to do, so there's really not "Org-specific" syntax for
changing your spacing. It's LaTeX syntax that can be inserted via
methods like the above, which will then get interpreted when you
compile/export.

That said, this is the setupfile I use for all my LaTeX exports. I'll
tweak individual files here and there to adjust various things, but
for the most part I've been happy with how this looks for reports, and
think it removes some of the white space issue.

#+OPTIONS: *:t TeX:t LaTeX:t H:5 creator:nil toc:nil num:nil
#+latex_header: \usepackage[hmargin=2.5cm,vmargin=2.5cm]{geometry}
#+latex_header: \usepackage{mathpazo} \usepackage{paralist}
#+latex_header: \usepackage{enumitem}
#+latex_header: \usepackage{amsmath}
#+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}

Definitely look at paralist and enumitem for tweaking spacing as a
starting point.


Hope that helps.
John


> Is there a way to do this in org?
>
> Thank you!
> -pd
>
> --
> ----
> Peter Davis
> The Tech Curmudgeon
> www.techcurmudgeon.com
>
>

  reply	other threads:[~2015-04-17 18:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-17 17:28 Resume: Squeezing lines tighter in LaTeX output? Peter Davis
2015-04-17 18:13 ` John Hendy [this message]
2015-04-17 19:13   ` Peter Davis
2015-04-17 20:10     ` John Hendy
2015-04-18  0:18   ` Marcin Borkowski
2015-04-18  2:20     ` Peter Davis
2015-04-18  7:02       ` Marcin Borkowski
2015-04-20  8:23       ` Eric S Fraga
2015-04-18 17:27     ` John Hendy
2015-04-18 17:45       ` Peter Davis
2015-04-18 18:08       ` Marcin Borkowski

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='CA+M2ft-vVm9ZZCWHggGLZk-JwP16S_PLxKF=ov1J9Bga-jvq1w@mail.gmail.com' \
    --to=jw.hendy@gmail.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).