From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: trying to write a guidebook for students using org , need help with formating Date: Thu, 24 Oct 2013 12:43:57 +0200 Message-ID: <20131024104357.GK1769@kuru.dyndns-at-home.com> References: <20131022093943.GX6656@kuru.dyndns-at-home.com> <87iowokdi5.fsf@ericabrahamsen.net> <87eh7cgybu.fsf@ericabrahamsen.net> <87li1koyl7.fsf@nowhere.org> <8761sndyas.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZIOa-0004wQ-5S for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 06:44:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZIOY-00084n-BC for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 06:44:04 -0400 Received: from mail-ea0-x236.google.com ([2a00:1450:4013:c01::236]:49120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZIOY-00084b-4Z for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 06:44:02 -0400 Received: by mail-ea0-f182.google.com with SMTP id o10so1115060eaj.27 for ; Thu, 24 Oct 2013 03:44:00 -0700 (PDT) Received: from kuru.dyndns-at-home.com ([2001:610:120:3001:f2de:f1ff:fe37:c76c]) by mx.google.com with ESMTPSA id z12sm2762394eev.6.2013.10.24.03.43.58 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Thu, 24 Oct 2013 03:43:59 -0700 (PDT) Content-Disposition: inline In-Reply-To: <8761sndyas.fsf@ericabrahamsen.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello Xebar, On Thu, Oct 24, 2013 at 01:37:31PM +0800, Eric Abrahamsen wrote: > Xebar Saram writes: > > > Thanks again guys > > > > Rick: "But a better approach would be to define your own latex list > > environment for > > program steps and use lists:" > > > > ive never used latex, do you mind expanding on that a bit? > > > > Eric: "I don't think it's cut, is it? I just tried with your example > > and long > > lines are preserved as-is (ie, quite long)" > > this is how it looks in my pdf export: > > > > https://paste.xinu.at/sYsMVz/ > > Oh I see -- it's latex that cuts those lines off, not the org exporter. > You'll probably want to go the list route then. See this link for how to > create a custom list environment: > > http://www.troubleshooters.com/linux/lyx/ownlists.htm > > Then do this in org, replacing "bogus" with the name of your new environment: > > #+ATTR_LATEX: :environment bogus > - this is a > - list with some > - items in it I guess you missed my response. I suggested this a couple of days back. Sadly I was in a hurry and could not provide precise instructions. You can achieve this using the enumitem package with the noitemsep option[1]. So inside Org all you need to do is add the following to the file header: #+LATEX_HEADER: \usepackage{enumitem} If you want this behaviour for all lists add the following: #+LATEX_HEADER: \setlist{nolistsep} If you only want to do this for a particular kind of list (say, enumerate) add the following line instead: \setenumerate{noitemsep} To control this per-list you can do: #+attr_latex: :options noitemsep - Step 1 - Step 2 - Step 3 For more info on other options, see the documentation for enumitem (`texdoc enumitem' or ). Hope this helps, Footnotes: [1] See this TeX.SX question for more details: . -- Suvayu Open source is the future. It sets us free.