On Mon, Feb 18, 2002 at 05:50:47PM -0500, Matej Cepl wrote:
> which avoids the problem. However, I would like to make script
> which would delete superfluous empty groups so as not to avoid
> proper kerning. I tried to insert this line in my script running
> latex, but I was not successful. Could you tell me how to do it,
> please?
>
> sed 's/\{}([^?!])``/\1``/' input.tex
So finally, I have found answer myself (with help of some good
people on other list). Better than sed is to use perl like this
(I run this script instead of {pdf}latex from LyX).
#!/bin/sh
#$Id: vlnlatex,v 1.4 2000/12/07 08:58:38 matej Exp $
if [[ $(basename $0) == "pdfvlnlatex" ]] ; then
PROG="pdflatex"
else
PROG="latex"
fi
BNAME=$(basename $1 .tex)
if [ -f $BNAME.tex ]; then
# LyX is slightly too active with protecting quotes
perl -pe 's/([^?!]){}``/\1``/g' $BNAME.tex \
| vlna -s -v KkSsVvZzOoUuAI§ -f > $BNAME.ctex
$PROG $BNAME.ctex
fi
Happy LyXing!
Matej
--
Matej Cepl, [EMAIL PROTECTED]
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
Some see private enterprise as a predatory target to be shot,
others as a cow to be milked, but few are those who see it as a
sturdy horse pulling the wagon.
-- Sir Winston Churchill