emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* tabs pic mode and org
@ 2009-07-21 13:16 Rustom Mody
  2009-07-21 13:38 ` Giovanni Ridolfi
  2009-07-21 16:59 ` Bernt Hansen
  0 siblings, 2 replies; 6+ messages in thread
From: Rustom Mody @ 2009-07-21 13:16 UTC (permalink / raw)
  To: emacs-orgmode

When I try to use ditaa with org (which is a very neat combo BTW)
I keep getting tabs in the picture which gives hell if I move rectangles around.

What is the way of telling org (or it picture mode?) -- No tab-chars please!

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

* Re: tabs pic mode and org
  2009-07-21 13:16 tabs pic mode and org Rustom Mody
@ 2009-07-21 13:38 ` Giovanni Ridolfi
  2009-07-21 16:59 ` Bernt Hansen
  1 sibling, 0 replies; 6+ messages in thread
From: Giovanni Ridolfi @ 2009-07-21 13:38 UTC (permalink / raw)
  To: emacs-orgmode, Rustom Mody


--- Mar 21/7/09, Rustom Mody <rustompmody@gmail.com> ha scritto:
> What is the way of telling org (or it picture mode?) -- No
> tab-chars please!

Hi, Rustom,

how about using emacs ? ;-)

M-x untabify 

cheers,
Giovanni




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

* Re: tabs pic mode and org
  2009-07-21 13:16 tabs pic mode and org Rustom Mody
  2009-07-21 13:38 ` Giovanni Ridolfi
@ 2009-07-21 16:59 ` Bernt Hansen
  2009-07-22  5:55   ` Rustom Mody
  1 sibling, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2009-07-21 16:59 UTC (permalink / raw)
  To: Rustom Mody; +Cc: emacs-orgmode

Rustom Mody <rustompmody@gmail.com> writes:

> When I try to use ditaa with org (which is a very neat combo BTW)
> I keep getting tabs in the picture which gives hell if I move rectangles around.
>
> What is the way of telling org (or it picture mode?) -- No tab-chars please!

When I edit ditaa blocks in 

#begin_ditaa x.png

#end_ditaa

and then using C-c ' inside the block I never get TABs in the result.
This prefixes all of the lines with ': ' and uses spaces only for the
diagram.

Are you doing something differently?

My ditaa blocks look something like this:

* Test
#+begin_ditaa x.png
:              +--------+
:              |        |               +-----------------+
:              |        |               |                 |
:              |        |               |                 |
:              +--------+               +-----------------+
#+end_ditaa

-Bernt

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

* Re: tabs pic mode and org
  2009-07-21 16:59 ` Bernt Hansen
@ 2009-07-22  5:55   ` Rustom Mody
  2009-07-22 18:00     ` Bernt Hansen
  0 siblings, 1 reply; 6+ messages in thread
From: Rustom Mody @ 2009-07-22  5:55 UTC (permalink / raw)
  To: emacs-orgmode

Thanks Bernt for C-c ' -- thats what I needed.
BTW Whats the : at BOL for?

On Tue, Jul 21, 2009 at 10:29 PM, Bernt Hansen<bernt@norang.ca> wrote:
> Rustom Mody <rustompmody@gmail.com> writes:
>
>> When I try to use ditaa with org (which is a very neat combo BTW)
>> I keep getting tabs in the picture which gives hell if I move rectangles around.
>>
>> What is the way of telling org (or it picture mode?) -- No tab-chars please!
>
> When I edit ditaa blocks in
>
> #begin_ditaa x.png
>
> #end_ditaa
>
> and then using C-c ' inside the block I never get TABs in the result.
> This prefixes all of the lines with ': ' and uses spaces only for the
> diagram.
>
> Are you doing something differently?
>
> My ditaa blocks look something like this:
>
> * Test
> #+begin_ditaa x.png
> :              +--------+
> :              |        |               +-----------------+
> :              |        |               |                 |
> :              |        |               |                 |
> :              +--------+               +-----------------+
> #+end_ditaa
>
> -Bernt
>
>

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

* Re: tabs pic mode and org
  2009-07-22  5:55   ` Rustom Mody
@ 2009-07-22 18:00     ` Bernt Hansen
  2009-08-03  4:33       ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2009-07-22 18:00 UTC (permalink / raw)
  To: Rustom Mody; +Cc: emacs-orgmode

Rustom Mody <rustompmody@gmail.com> writes:

> Thanks Bernt for C-c ' -- thats what I needed.
> BTW Whats the : at BOL for?

I think it's just used to escape the data for the exporter but that's
just a guess.  Other people probably have a more definitive answer.

-Bernt

PS. If you include me in the To: header of mails directed at me you'll
    get a quicker response (without it I may miss your post completely)
    We normally use Reply-All on this list sending to interested parties
    and cc-ing the org-mode mailing list.

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

* Re: Re: tabs pic mode and org
  2009-07-22 18:00     ` Bernt Hansen
@ 2009-08-03  4:33       ` Carsten Dominik
  0 siblings, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2009-08-03  4:33 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Rustom Mody, emacs-orgmode


On Jul 22, 2009, at 8:00 PM, Bernt Hansen wrote:

> Rustom Mody <rustompmody@gmail.com> writes:
>
>> Thanks Bernt for C-c ' -- thats what I needed.
>> BTW Whats the : at BOL for?
>
> I think it's just used to escape the data for the exporter but that's
> just a guess.  Other people probably have a more definitive answer.

The leading ": " used to protect the drawing from strange
fontification.  This is no longer strictly necessary.
However, currently this lead string also ensures that "C-c '"
will edit the string in artist-mode, irrespective of the begin/end
wrapper, so that other ditaa-like programs could be used.
We could actually remove this lead string and implement direct
recognition of the ditaa block, but this is not really urgent.
I'll put it on my list.

- Carsten

>
> -Bernt
>
> PS. If you include me in the To: header of mails directed at me you'll
>    get a quicker response (without it I may miss your post completely)
>    We normally use Reply-All on this list sending to interested  
> parties
>    and cc-ing the org-mode mailing list.
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2009-08-03  4:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-21 13:16 tabs pic mode and org Rustom Mody
2009-07-21 13:38 ` Giovanni Ridolfi
2009-07-21 16:59 ` Bernt Hansen
2009-07-22  5:55   ` Rustom Mody
2009-07-22 18:00     ` Bernt Hansen
2009-08-03  4:33       ` Carsten Dominik

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