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: Sun, 27 Oct 2013 08:49:35 +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=047d7b472078f976fa04e9b36264 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaKAM-00077v-Mk for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 02:49:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VaKAL-0004C6-3i for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 02:49:38 -0400 Received: from mail-ob0-x236.google.com ([2607:f8b0:4003:c01::236]:55120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VaKAK-0004By-S2 for emacs-orgmode@gnu.org; Sun, 27 Oct 2013 02:49:37 -0400 Received: by mail-ob0-f182.google.com with SMTP id wn1so2493850obc.13 for ; Sat, 26 Oct 2013 23:49:36 -0700 (PDT) In-Reply-To: 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 --047d7b472078f976fa04e9b36264 Content-Type: text/plain; charset=ISO-8859-1 Hi again all so i tried playing around with the latex options, read the Latex org manual part but still confused and i still get the lines cut. the one thing that did work was using this: begin{itemize} \item testing1 the long lines testing2 the long lines testing3 the long lines testing4 the long lines testing5 the long lines testing6 the long lines \item \item \item \item \end{itemize} but that seems very cumbersome, inserting it every time, writing the lines after the \items etc.. I am really content with using the org example method. is there no way to make the exporter to pdf (latex i guess) auto wrap lines? thx alot Z On Thu, Oct 24, 2013 at 5:53 PM, Xebar Saram wrote: > 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. >> >> > --047d7b472078f976fa04e9b36264 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi again all

so i tried playing around = with the latex options, read the Latex org manual part but still confused a= nd i still get the lines cut.

the one thing that d= id work was using this:

begin{itemize}

\item test= ing1 the long lines testing2 the long lines testing3 the long lines testing= 4 the long lines testing5 the long lines testing6 the long lines=A0
\item
\item
\item
\item
\e= nd{itemize}=A0

but that seems very cumbersom= e, inserting it every time, writing the lines after the \items etc..

I am really content with using the org example method. = is there no way to make the exporter to pdf (latex i guess) auto wrap lines= ?=A0

thx alot

Z



On Thu, Oct 24, 2013 at 5:53 PM, Xebar Saram <zeltakc@gmail.com>= wrote:
Thank you all

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

Best

z.

On Thu, Oct 24, 2013 at 1:43 PM, Suvayu Al= i <fatkasuvayu+linux@gmail.com> 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.



--047d7b472078f976fa04e9b36264--