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: Wed, 23 Oct 2013 14:23:47 +0200 Message-ID: References: <20131022093943.GX6656@kuru.dyndns-at-home.com> <87iowokdi5.fsf@ericabrahamsen.net> <87eh7cgybu.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5d5c14cf471404e967963a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYxTb-0004Ei-8J for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 08:23:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYxTZ-00012t-8Y for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 08:23:51 -0400 Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:39732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYxTZ-00012a-1C for emacs-orgmode@gnu.org; Wed, 23 Oct 2013 08:23:49 -0400 Received: by mail-ob0-f170.google.com with SMTP id wp18so674883obc.15 for ; Wed, 23 Oct 2013 05:23:48 -0700 (PDT) In-Reply-To: <87eh7cgybu.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: Eric Abrahamsen , org mode --047d7b5d5c14cf471404e967963a Content-Type: text/plain; charset=ISO-8859-1 Thx again Eric i actually like using the example block but as you mentioned i think the text is cut at the end when you export it , is there anyway to make the exporter auto wrap lines inside example blocks? best z On Wed, Oct 23, 2013 at 11:56 AM, Eric Abrahamsen wrote: > Xebar Saram writes: > > > Thank you Eric and Rick! > > > > Eric: > > The #+OPTIONS: \n:nil didn't do much here even using the default > > templates for export as suggested > > Sorry! Got it backwards -- it's meant to be \n:t > > But still, other responders are probably right that what you want is > actually a different kind of text type: a list or an example block. > > E > > > Rick: > > i think i can live with the #+BEGIN_EXAMPLE blocks , is there a way > > to define wrapping text in the block? as you said using the block > > currently cuts off text towards the lines end > > > > Appreciate all the help from everyone. thanks alot! > > > > z. > > > > > > On Wed, Oct 23, 2013 at 4:00 AM, Eric Abrahamsen < > > eric@ericabrahamsen.net> wrote: > >> > >> Xebar Saram writes: > >> > >> > Thank you all > >> > > >> > "I think `org-export-preserve-breaks' is the option you want. Try > >> > setting it in a single buffer with #+OPTIONS:\n:nil and see what > >> > happens..." > >> > > >> > that sounds interesting, but i couldn't understand how to use it > >> > (again im still an org novice:) ) > >> > do i stick this line at the start: > >> > #+OPTIONS:\n:nil > >> > > >> > is that ^^ syntax correct? > >> > >> Nearly correct -- we're the victim of unfortunate line wrapping. It > >> should look like: > >> > >> #+OPTIONS: \n:nil > >> > >> Ie, with an extra space. If you're a novice, as you say, you might > > like > >> to see the default options template for exporting. In your org > > buffer, > >> hit "C-c C-e" to get to the export dispatcher, then hit "#" for > > template > >> insertion, then pick "default". It will be a lot easier to see and > > edit > >> existing options than type them all in by hand. > >> > >> Yours, > >> Eric > >> > >> > >> > On Tue, Oct 22, 2013 at 12:39 PM, Suvayu Ali < > >> > fatkasuvayu+linux@gmail.com> wrote: > >> > > >> > On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram wrote: > >> > > > >> > > I'm trying to write a simple guidebook for my students in a > > GIS > >> > course. > >> > > Everything works great apart for the life of me i cant get > > the > >> > hang of > >> > > formatting and specifically how to insert (automatically?) > > line > >> > breaks so > >> > > that its discrete lines and not a paragraph. i think one > > can > >> > use '\\' to > >> > > indicate a line break but since its a guidebook "form" > > there > >> > are almost no > >> > > paragraphs and most line are 1 liners, so it seems to me > > crazy > >> > to go over > >> > > hundred lines of text and attach a \\ at the end. What am i > >> > missing here? > >> > > > >> > > i hope i made sense :) any help or documentation links > > would be > >> > really > >> > > appreciated! > >> > > > >> > > I'm attaching a short example of my org file, note that > > where i > >> > want single > >> > > lines i add a empty space between lines but still in the > >> > exporter it > >> > > creates a paragraph out of these lines > >> > > > >> > > >> > I think you are better off trying to do this with a > > specialised > >> > LaTeX > >> > class. A quick search led me to this TeX.SX question: > >> > . You could also try > > using > >> > lists, > >> > just disable the bullets with an option in an #+attr_latex > > line. > >> > > >> > > >> > GL, > >> > > >> > -- > >> > Suvayu > >> > > >> > Open source is the future. It sets us free. > >> > > >> > >> > > > --047d7b5d5c14cf471404e967963a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thx again Eric

i actually like using the example block but as you mentioned i think = the text is cut at the end when you export it , is there anyway to make the= exporter auto wrap lines inside example blocks?

best

z


On Wed, Oct 23, 2013 at= 11:56 AM, Eric Abrahamsen <eric@ericabrahamsen.net> w= rote:
Xebar Saram <zeltakc@gmail.com> writes:

> Thank you Eric and Rick!
>
> Eric:
> The #+OPTIONS: \n:nil didn't do much here even using the default > templates for export as suggested

Sorry! Got it backwards -- it's meant to be \n:t

But still, other responders are probably right that what you want is
actually a different kind of text type: a list or an example block.

E

> Rick:
> i think i can live with the =A0#+BEGIN_EXAMPLE blocks , is there a way=
> to define wrapping text in the block? as you said using the block
> currently cuts off text towards the lines end
>
> Appreciate all the help from everyone. thanks alot!
>
> z.
>
>
> On Wed, Oct 23, 2013 at 4:00 AM, Eric Abrahamsen <
> eric@ericabrahamsen.net= > wrote:
>>
>> Xebar Saram <zeltakc@gmail= .com> writes:
>>
>> > Thank you all
>> >
>> > "I think `org-export-preserve-breaks' is the option = you want. Try
>> > setting it in a single buffer with #+OPTIONS:\n:nil and see w= hat
>> > happens..."
>> >
>> > that sounds interesting, but i couldn't understand how to= use it
>> > (again im still an org novice:) )
>> > do i stick this line at the start:
>> > #+OPTIONS:\n:nil
>> >
>> > is that ^^ syntax correct?
>>
>> Nearly correct -- we're the victim of unfortunate line wrappin= g. It
>> should look like:
>>
>> #+OPTIONS: \n:nil
>>
>> Ie, with an extra space. If you're a novice, as you say, you m= ight
> like
>> to see the default options template for exporting. In your org
> buffer,
>> hit "C-c C-e" to get to the export dispatcher, then hit = "#" for
> template
>> insertion, then pick "default". It will be a lot easier = to see and
> edit
>> existing options than type them all in by hand.
>>
>> Yours,
>> Eric
>>
>>
>> > On Tue, Oct 22, 2013 at 12:39 PM, Suvayu Ali <
>> > fatkasuvayu+= linux@gmail.com> wrote:
>> >
>> > =A0 =A0 On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram= wrote:
>> > =A0 =A0 >
>> > =A0 =A0 > I'm trying to write a simple guidebook for m= y students in a
> GIS
>> > =A0 =A0 course.
>> > =A0 =A0 > Everything works great apart for the life of me = i cant get
> the
>> > =A0 =A0 hang of
>> > =A0 =A0 > formatting and specifically how to insert (autom= atically?)
> line
>> > =A0 =A0 breaks so
>> > =A0 =A0 > that its discrete lines and not a paragraph. i t= hink one
> can
>> > =A0 =A0 use '\\' to
>> > =A0 =A0 > indicate a line break but since its a guidebook = "form"
> there
>> > =A0 =A0 are almost no
>> > =A0 =A0 > paragraphs and most line are 1 liners, so it see= ms to me
> crazy
>> > =A0 =A0 to go over
>> > =A0 =A0 > hundred lines of text and attach a \\ at the end= . What am i
>> > =A0 =A0 missing here?
>> > =A0 =A0 >
>> > =A0 =A0 > i hope i made sense :) any help or documentation= links
> would be
>> > =A0 =A0 really
>> > =A0 =A0 > appreciated!
>> > =A0 =A0 >
>> > =A0 =A0 > I'm attaching a short example of my org file= , note that
> where i
>> > =A0 =A0 want single
>> > =A0 =A0 > lines i add a empty space between lines but stil= l in the
>> > =A0 =A0 exporter it
>> > =A0 =A0 > creates a paragraph out of these lines
>> > =A0 =A0 >
>> >
>> > =A0 =A0 I think you are better off trying to do this with a > specialised
>> > =A0 =A0 LaTeX
>> > =A0 =A0 class. =A0A quick search led me to this TeX.SX questi= on:
>> > =A0 =A0 <http://tex.stackexchange.com/q/3852>. =A0You could = also try
> using
>> > =A0 =A0 lists,
>> > =A0 =A0 just disable the bullets with an option in an #+attr_= latex
> line.
>> >
>> >
>> > =A0 =A0 GL,
>> >
>> > =A0 =A0 --
>> > =A0 =A0 Suvayu
>> >
>> > =A0 =A0 Open source is the future. It sets us free.
>> >
>>
>>



--047d7b5d5c14cf471404e967963a--