Folding Latex files in geany

It’s been a long hiatus, but since I’ve spent most of the morning working on this one, I thought I’d share.

To the horror of all of my colleagues, I write latex documents (and even slides for presentations) by hand* , using geany. It annoys the heck out of me that geany doesn’t support folding in latex documents.

But inspired by the use of manual break-points somewhere else, I hacked together something that should do the same for latex.So, just add this function to LexOthers.cxx, add it and rebuild from source (I used geany 1.2.3.1). Then adding %%{ and %%} sequences will define folding blocks in your document.

Caveat emptor, use at your own risk, your mileage may vary, keep out of direct sunlight

*not like this :Image

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s