auctex-devel
[Top][All Lists]

## Re: [AUCTeX-devel] indenting split long command lines

 From: Ivan Andrus Subject: Re: [AUCTeX-devel] indenting split long command lines Date: Tue, 9 Apr 2013 08:20:35 -0600

You might try using https://github.com/blerner/auc-tikz
I tried it a while ago and it didn't handle everything I needed it to, but it
might be good enough for your needs.  Or, even better, you might be
able to improve it.  I think it handles indentation, but I can't remember
for sure.

-Ivan

On Apr 8, 2013, at 1:04 PM, Julien Cubizolles <address@hidden> wrote:

> As far as I know, AucTeX doesn't deal with pstricks in tikz code in any
> special way. Very often in this environments one needs very long
> lines, and some kind of splitting/indenting would be useful. What I
> would like is something like:
>
> --8<---------------cut here---------------start------------->8---
> \begin{tikzpicture}
>   \draw (0,0) -- (1,1) -- (2,2) -- (3,3)
>         -- (4,4) -- (5,5);
> \end{tikzpicture}
> --8<---------------cut here---------------end--------------->8---
>
> To summarize: split long lines and add an indentation if not on a
> semicolon otherwise keep indentation the same as the beginning of the
> line.
>
> At the moment I manually add a TAB (like in the second line of the
> example) but I couldn't find a way to remove the indentation for the
> third line. Is there a "go back one tab" command ?
>
> Julien.
>
>
> _______________________________________________
> auctex-devel mailing list