From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: trying to write a guidebook for students using org , need help with formating Date: Thu, 24 Oct 2013 16:53:53 +0200 Message-ID: References: <20131022093943.GX6656@kuru.dyndns-at-home.com> <87iowokdi5.fsf@ericabrahamsen.net> <87eh7cgybu.fsf@ericabrahamsen.net> <87li1koyl7.fsf@nowhere.org> <8761sndyas.fsf@ericabrahamsen.net> <20131024104357.GK1769@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013a215a6a9d0304e97dcdc4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZMIO-0007si-I4 for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 10:53:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZMIM-0001Jm-Nv for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 10:53:56 -0400 Received: from mail-oa0-x230.google.com ([2607:f8b0:4003:c02::230]:44741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZMIM-0001Jg-GW for emacs-orgmode@gnu.org; Thu, 24 Oct 2013 10:53:54 -0400 Received: by mail-oa0-f48.google.com with SMTP id m17so2454260oag.7 for ; Thu, 24 Oct 2013 07:53:53 -0700 (PDT) In-Reply-To: <20131024104357.GK1769@kuru.dyndns-at-home.com> 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: org mode --089e013a215a6a9d0304e97dcdc4 Content-Type: text/plain; charset=ISO-8859-1 Thank you all ill try the Latex list suggestion over the weekend as i have Zero Latex knowledge so ill try to dig into it a bit Best z. On Thu, Oct 24, 2013 at 1:43 PM, Suvayu Ali wrote: > 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. > > --089e013a215a6a9d0304e97dcdc4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thank you all

ill try the Latex list su= ggestion over the weekend as i have Zero Latex knowledge so ill try to dig = into it a bit

Best

z.


On Thu,= Oct 24, 2013 at 1:43 PM, Suvayu Ali <fatkasuvayu+linux@gmail.co= m> wrote:
Hello Xebar,

On Thu, Oct 24, 2013 at 01:37:31PM +0800, Eric Abrahamsen wrote:
> Xebar Saram <zeltakc@gmail.com= > writes:
>
> > Thanks again guys
> >
> > Rick: "But a better approach would be to define your own lat= ex 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 w= ith 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 expo= rter.
> 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. =A0I suggested this a couple of= days back.
Sadly I was in a hurry and could not provide precise instructions. =A0You 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 <http://ctan.org/pkg/enumitem>).

Hope this helps,


Footnotes:

[1] See this TeX.SX question for more details:
=A0 =A0 <http://TeX.stackexchange.com/q/10684>.

--
Suvayu

Open source is the future. It sets us free.


--089e013a215a6a9d0304e97dcdc4--