emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Alan E. Davis" <lngndvs@gmail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Change line spacing for lists for LaTeX export
Date: Fri, 26 Jun 2009 17:41:08 +0200	[thread overview]
Message-ID: <5807B3AC-DA53-420A-8479-2DCCED781D2A@gmail.com> (raw)
In-Reply-To: <7bef1f890906181502p5557aae7o447b651729a2dacd@mail.gmail.com>


On Jun 19, 2009, at 12:02 AM, Alan E. Davis wrote:

> I need to print outlines in a more compact form than LaTeX lists  
> ordinarily provide.  I often have used the paralist package,  
> although it conflicts with some other packages.  How can I alter the  
> line spacing for the lists directly, for export?
>
> I found this suggestion, and I was going to use #+LATEX_HEADER:, but  
> then it occured to me that I don't have a way to specifiy that  
> "my_enumerate" would be used instead of "enumerate".
>
> This is the code I found on line:
>
> %
> % this makes list spacing much better.
> %
> \newenvironment{my_enumerate}{
> \begin{enumerate}
>   \setlength{\itemsep}{1pt}
>   \setlength{\parskip}{0pt}
>   \setlength{\parsep}{0pt}}{\end{enumerate}
>
>
> }
> Thank you for any suggestions.

You can now (latest git) define an environment like you do above

Then set

(setq org-export-latex-low-levels '("\\begin{myenv}" "\\end{myenv}" "\ 
\item %s"))


Now this environment will be used for the lower levels of LaTeX export.

Note that you can use

#+OPTIONS: H:0

to force even the top-level headings into this environment.

HTH

- Carsten

>
>
> Alan Davis
>
> "Pollution is nothing but the resources we are not harvesting. We  
> allow them to disperse because we've been ignorant of their value."
>   --- Buckminster Fuller
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      parent reply	other threads:[~2009-06-26 15:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-18 22:02 Change line spacing for lists for LaTeX export Alan E. Davis
2009-06-18 22:18 ` Alan E. Davis
2009-06-18 22:19   ` Alan E. Davis
2009-06-18 23:09     ` Alan E. Davis
2009-06-26 15:41 ` Carsten Dominik [this message]

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=5807B3AC-DA53-420A-8479-2DCCED781D2A@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=lngndvs@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).