Wednesday, September 7, 2011

hiding text, paragraphs, sections with open office; code folding with vim

Good link for hiding text or paragraphs in open office, see specifically the sample text the guy wrote up, about 3/5 the way down the page.

http://user.services.openoffice.org/en/forum/viewtopic.php?f=7&t=19331&start=0


To be able to hide a section of text,

1. Create a variable, 'variable',
ctrl-f2
variables>set variable
insert variable name, and value
for example, variable name=Show, value=1

2. Create a section

highlight a section of text, by dragging your mouse over the text
insert> Section...
click on the hide option
In the with condition box, write

Show EQ "0"


Then, if you set the variable Show to 0 later on, it will hide that section



Also, code folding in vim, if it ever seems useful

http://smartic.us/2009/04/06/code-folding-in-vim/


Here is a tutorial for sections in open office, they weren't quite working how I wanted them to
http://wiki.services.openoffice.org/wiki/Documentation/OOoAuthors_User_Manual/Writer_Guide/Using_sections_for_page_layout#Introduction_to_sections

No comments:

Post a Comment