Hello,
I frequently insert comment blocks to mark sections into my latex documents. It looks something like this:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% SECTION NAME %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Its always 80 characters in length and I currently just copy paste them. I thought about making it a snippet, but I would like the text to always be as centered as possible. In other words, if the text I want to place in there is 13 characters long, I want 33 spaces on one side, and 34 spaces on the other (80-13=67, 67/2=33.5). Can snippets do this? Do I need to write some kind of function? Or a full flegded plugin?
Thanks!