Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I've been using Texmaker for ~5 years now and prefer it over other editors because of its flexibility.

Is there a way to auto-indent LaTeX code in TeXmaker so that the code becomes more manageable ?

share|improve this question
3  
one such code beautification tool is latexindent by cmhughes which can be integrated into TeXmaker by user command and automated by arara. As such TeXmaker does not have any full pledged indentation(i suppose). –  texenthusiast Jul 31 '13 at 17:57
    
BTW Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. –  texenthusiast Jul 31 '13 at 18:05
    
@texenthusiast Good idea, but I would be a little concerned that TeXmaker may have some sort of write-protection on the file in question. –  Sean Allred Jul 31 '13 at 20:52
1  
@SeanAllred Although I did not try this personally, but I hope: Options-->Configure-->Editor-->tick on check for external changes might work. –  texenthusiast Jul 31 '13 at 21:10
add comment

1 Answer

up vote 4 down vote accepted

Upvoted comment converted to answer to clear off the Q from unanswered list.

Such indentation and code beautification is made possible with latexindent tool by cmhughes which can be integrated into TeXmaker by user command and automated by arara. As such TeXmaker does not have any full pledged indentation.

Also one might need to change settings of TeXmaker to notice the indentation changes done by arara and latexindent externally as shown below

Open TeXmaker: Options-->Configure-->Editor-->tick on check for external changes might be needed.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.