unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* fill-paragraph
@ 2009-10-28 14:01 Leo
  2009-10-28 16:10 ` fill-paragraph Andreas Politz
  0 siblings, 1 reply; 3+ messages in thread
From: Leo @ 2009-10-28 14:01 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,

I use AUCTeX for editing LaTeX files. I use tikz/pgf for drawing
graphics in TeX. In tikz, each drawing command ends with a `;', for
example:

\begin{tikzpicture}
  \draw (0,0) -- (1,1);
  \draw (1,1) -- (2,2);
\end{tikzpicture}

How can I configure Emacs (possibly by changing paragraph-separate or
paragraph-start) so that M-q (M-x fill-paragraph) does not join those
tikz drawing command.

At the moment if I M-q in the above code it will change to:

\begin{tikzpicture}
  \draw (0,0) -- (1,1); \draw (1,1) -- (2,2);
\end{tikzpicture}

Thank you.

Leo





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

* Re: fill-paragraph
  2009-10-28 14:01 fill-paragraph Leo
@ 2009-10-28 16:10 ` Andreas Politz
  2009-10-28 23:08   ` fill-paragraph Leo
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Politz @ 2009-10-28 16:10 UTC (permalink / raw)
  To: help-gnu-emacs

Leo <sdl.web@gmail.com> writes:

> Hi all,
>
> I use AUCTeX for editing LaTeX files. I use tikz/pgf for drawing
> graphics in TeX. In tikz, each drawing command ends with a `;', for
> example:
>
> \begin{tikzpicture}
>   \draw (0,0) -- (1,1);
>   \draw (1,1) -- (2,2);
> \end{tikzpicture}
>
> How can I configure Emacs (possibly by changing paragraph-separate or
> paragraph-start) so that M-q (M-x fill-paragraph) does not join those
> tikz drawing command.
>
> At the moment if I M-q in the above code it will change to:
>

Then don't do it.

> \begin{tikzpicture}
>   \draw (0,0) -- (1,1); \draw (1,1) -- (2,2);
> \end{tikzpicture}
>
> Thank you.
>
> Leo

Seriously, if you add "tikzpicture" to LaTeX-indent-environment-list

(add-to-list 'LaTeX-indent-environment-list '("tikzpicture"))

it'll leave the code unfilled.

-ap





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

* Re: fill-paragraph
  2009-10-28 16:10 ` fill-paragraph Andreas Politz
@ 2009-10-28 23:08   ` Leo
  0 siblings, 0 replies; 3+ messages in thread
From: Leo @ 2009-10-28 23:08 UTC (permalink / raw)
  To: Andreas Politz; +Cc: help-gnu-emacs

On 2009-10-28 16:10 +0000, Andreas Politz wrote:
> Seriously, if you add "tikzpicture" to LaTeX-indent-environment-list
>
> (add-to-list 'LaTeX-indent-environment-list '("tikzpicture"))

Thank you.

Leo




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

end of thread, other threads:[~2009-10-28 23:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-28 14:01 fill-paragraph Leo
2009-10-28 16:10 ` fill-paragraph Andreas Politz
2009-10-28 23:08   ` fill-paragraph Leo

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