[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: indentation for Latex
From:       Jeroen Vuurens <j.b.p.vuurens () tudelft ! nl>
Date:       2013-11-09 12:53:25
Message-ID: 527E3045.6000704 () tudelft ! nl
[Download RAW message or body]

I'm very sorry, I'll have to pass, atm I'm really too busy to look into 
that.

On 11/09/2013 12:35 PM, Dominik Haumann wrote:
> Hi Jeroen,
>
> On Friday 08 November 2013 19:12:33 Jeroen Vuurens wrote:
>> Hi Guys,
>>
>> Thanks for the great job on Kate/Kile :)
>>
>> I've just started using Kile as editor for Latex documents. I rather
>> like my editor to support auto-indentation, and created a Kate-script to
>> do that. It is rather simple/primitive, but does a
>> decent job for structuring the \begin \end and {} blocks, handling
>> escaped characters. If you like, you can add it for others to use.
> That's very nice, thanks.
>
> In order to guarantee the indenter does not break over time, we have unit
> testing suite. It would be good if you created unit tests as well for the
> indenter. To this end, can you please follow http://kate-editor.org/get-it/
> and build Kate from sources. Then, additionally, add the 'latex' indenter to
> in tests/indenttest.h:
> +  void latex_data();
> +  void latex();
>
> in tests/indenttest.cpp
> +void IndentTest::latex_data()
> +{
> +  getTestData( "latex" );
> +}
> +
> +void IndentTest::latex()
> +{
> +  runTest( ExpectedFailures() );
> +}
>
> And the test data into tests/data/latex/*
> Important is the file tests/data/latex/.kateconfig, here you have to specify
> Latex Highlighting and the indent-mode latex;
>
> I've already copied latex.js into part/script/data/indentation, so your
> indenter should be there when you git clone the repository.
>
> Then, please post a patch again :-)
>
> Greetings,
> Dominik

_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic