Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, April 18, 2024

File: [Platon] / vimconfig / vim / vimlatex (download)

Revision 1.2, Mon Nov 3 08:20:21 2003 UTC (20 years, 5 months ago) by rajo


Changes since 1.1: +6 -0 lines

Headers update.

#!/bin/bash

#
# $Platon: $
#

# remove a few problems with the output of the latex compiler.
# 1. sometimes the compiler splits a single linenumber into multiple lines.
#    therefore join lines when the first ends in '\d\+' and the second starts
#    with the same
# 2. sometimes there are more than 2 closing or opening brackets in the
#    same line. vim's 'efm' cannot handle the case where multiple files
#    have to be popped in the same line. therefore if a line has more than
#    1 ( or), push them to the next line.
latex '\nonstopmode' "\\input\{$*\}" | \
sed -e '/[0-9]\+$/{N;s/\n\([0-9]\+\)/\1/;}' | \
sed -e 's/(/\
(/g' | \
sed -e 's/)/)\
/g' 


Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top