emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Literal examples and indentation
@ 2010-07-01  9:51 Francis Moreau
  2010-07-01 17:51 ` Juan
  0 siblings, 1 reply; 5+ messages in thread
From: Francis Moreau @ 2010-07-01  9:51 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

When I include literate example like this:

#+BEGIN_EXAMPLE
Some example from a text file.
#+END_EXAMPLE

The example is indented with 2 spaces when rendered.

Is there any ways to customise the size of the indentation ?

Thanks
-- 
Francis

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Literal examples and indentation
  2010-07-01  9:51 Literal examples and indentation Francis Moreau
@ 2010-07-01 17:51 ` Juan
  2010-07-02 21:22   ` Francis Moreau
  2010-07-04 21:41   ` Juan
  0 siblings, 2 replies; 5+ messages in thread
From: Juan @ 2010-07-01 17:51 UTC (permalink / raw)
  To: Francis Moreau; +Cc: emacs-orgmode

Francis,

How are you 'rendering'? To HTML, PDF, ASCII?

Regards,
.j.

On Thu, Jul 01, 2010 at 11:51:39AM +0200, Francis Moreau wrote:
> When I include literate example like this:
>
> #+BEGIN_EXAMPLE
> Some example from a text file.
> #+END_EXAMPLE
>
> The example is indented with 2 spaces when rendered.
> Is there any ways to customise the size of the indentation ?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Literal examples and indentation
  2010-07-01 17:51 ` Juan
@ 2010-07-02 21:22   ` Francis Moreau
  2010-07-04 21:41   ` Juan
  1 sibling, 0 replies; 5+ messages in thread
From: Francis Moreau @ 2010-07-02 21:22 UTC (permalink / raw)
  To: Juan; +Cc: emacs-orgmode

Hello,

On Thu, Jul 1, 2010 at 7:51 PM, Juan <Pechiar@computer.org> wrote:
>
> How are you 'rendering'? To HTML, PDF, ASCII?
>

To ASCII

-- 
Francis

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Literal examples and indentation
  2010-07-01 17:51 ` Juan
  2010-07-02 21:22   ` Francis Moreau
@ 2010-07-04 21:41   ` Juan
  2010-07-06 11:46     ` Francis Moreau
  1 sibling, 1 reply; 5+ messages in thread
From: Juan @ 2010-07-04 21:41 UTC (permalink / raw)
  To: Francis Moreau; +Cc: emacs-orgmode

For ASCII export, the 2 leading spaces are hard-coded in org-ex.el
line 2292:

   (lambda (l) (concat "  " l))

You'll need to tinker inside the code in order to change the
indentation.

Regards,
.j.

On Fri, Jul 02, 2010 at 11:22:47PM +0200, Francis Moreau wrote:
> To ASCII

On Thu, Jul 01, 2010 at 02:51:55PM -0300, Juan wrote:
> How are you 'rendering'? To HTML, PDF, ASCII?
>
> On Thu, Jul 01, 2010 at 11:51:39AM +0200, Francis Moreau wrote:
> > When I include literate example like this:
> >
> > #+BEGIN_EXAMPLE
> > Some example from a text file.
> > #+END_EXAMPLE
> >
> > The example is indented with 2 spaces when rendered.
> > Is there any ways to customise the size of the indentation ?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Literal examples and indentation
  2010-07-04 21:41   ` Juan
@ 2010-07-06 11:46     ` Francis Moreau
  0 siblings, 0 replies; 5+ messages in thread
From: Francis Moreau @ 2010-07-06 11:46 UTC (permalink / raw)
  To: Juan; +Cc: emacs-orgmode

On Sun, Jul 4, 2010 at 11:41 PM, Juan <Pechiar@computer.org> wrote:
> For ASCII export, the 2 leading spaces are hard-coded in org-ex.el
> line 2292:
>
>   (lambda (l) (concat "  " l))
>
> You'll need to tinker inside the code in order to change the
> indentation.

Ok, so the answer of my initial question is no.

That's a bit sad because, IMHO, this could a little be smarter than
this. For example if the line to indent is an empty one, then don't
insert indentation, or if the text is already indented then indent
with respect of the current indentation, etc...

Bye,
-- 
Francis

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-07-06 11:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-01  9:51 Literal examples and indentation Francis Moreau
2010-07-01 17:51 ` Juan
2010-07-02 21:22   ` Francis Moreau
2010-07-04 21:41   ` Juan
2010-07-06 11:46     ` Francis Moreau

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).