performance: Linux vs Win

Stelios Bounanos sb at dial.pipex.com
Tue Jun 11 06:42:02 EEST 2002


 >>>>> On Tue, 11 Jun 2002 03:12:44 +0300, Giorgos Keramidas
 >>>>> <keramida at ceid.upatras.gr> was runoured to have said:

 > On 2002-06-10 17:40 +0100, Stelios Bounanos wrote:
 >> 
 >> Ma giati den anaferei kaneis to lyx (www.lyx.org)? Grafikos word
 >> processor me LaTeX backend poy kanei ta panta(?)

 > Giati to lyx den kanei tipota antistoixo tou:

 > 	bash-2.01$ for fname in `find . -type f | fgrep -v CVS` ;do
 > 		perl -e 'while(defined($line=<>)) {
 > 		    chomp $line;
 > 		    if ($line =~ m/\\begin{document}/) {
 > 			print "\usepackage{greek}\n\n";
 > 		    }
 > 		    print "$line\n";
 > 		}' < "${fname}" > /var/tmp/giorgos
 > 		if [ $? -eq 0 ]; then
 > 		    mv /var/tmp/giorgos "${fname}"
 > 		else
 > 		    echo "*** Failed to filter: $fname"
 > 		fi
 > 	done

Hmm, ok, alla s'aythn thn periptwsh 8a ekanes to .lyx export se latex
kai o perlokwdikas 8a doyleye kanonika (mallon). Enallaktika, 8a allazes
ton kwdika gia na bazei to \usepackage{greek} mesa sto lyx arxeio
anamesa se \begin_preamble & \end_preamble, px:

for fname in `find . -type f`; do
    # to lyx fainetai na bazei to preamble katw apo to \textclass
    perl -pi.orig -e 's/(\\textclass \S+\n)/$1\\begin_preamble\n\\usepackage{greek}\n\\end_preamble\n/s' "$fname"
    if [ $? -eq 0 ]; then
	rm "${fname}.orig"
    else
	echo "*** Failed to filter: $fname"
	mv "${fname}.orig" "$fname"
    fi
done

Kanontas meta ayto to arxeio dvi 'h export, to latex output 8a eixe kati san:

....
%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands
\usepackage{greek}
....
\begin{document}
....


 > - Giorgos


Rgds,
/-sb.



More information about the Linux-greek-users mailing list