[LON-CAPA-cvs] cvs: loncom /html/adm/help/tex Latex_Header.tex /interface printout.pl doc/help render.texxml.pl

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 01 Apr 2003 04:30:11 -0000


albertel		Mon Mar 31 23:30:11 2003 EDT

  Modified files:              
    /doc/help	render.texxml.pl 
    /loncom/interface	printout.pl 
    /loncom/html/adm/help/tex	Latex_Header.tex 
  Log:
  - making pdf files look good on screen
  
  
Index: doc/help/render.texxml.pl
diff -u doc/help/render.texxml.pl:1.9 doc/help/render.texxml.pl:1.10
--- doc/help/render.texxml.pl:1.9	Mon Dec  9 17:09:44 2002
+++ doc/help/render.texxml.pl	Mon Mar 31 23:30:10 2003
@@ -81,7 +81,7 @@
 system ( "cd $tmpdir; echo | latex $fileroot $redir; echo | latex $fileroot $redir; echo | latex $fileroot\ $redir; " );
 
 print "Running dvips...\n";
-system ( "cd $tmpdir; dvips -f $fileroot.dvi > $fileroot.ps  " );
+system ( "cd $tmpdir; dvips -Ppdf -G0 -f $fileroot.dvi > $fileroot.ps  " );
 
 print "Copying ps file...\n";
 system ( "cp $tmpdir/$fileroot.ps .");
Index: loncom/interface/printout.pl
diff -u loncom/interface/printout.pl:1.22 loncom/interface/printout.pl:1.23
--- loncom/interface/printout.pl:1.22	Wed Mar  5 11:28:04 2003
+++ loncom/interface/printout.pl	Mon Mar 31 23:30:11 2003
@@ -82,7 +82,7 @@
       $name_file =~ s/\.tex/\.dvi/;
       my $new_name_file = $name_file;
       $new_name_file =~ s/\.dvi/\.ps/;
-      my $comma = "dvips -o $new_name_file";
+      my $comma = "dvips -Ppdf -G0 -o $new_name_file";
       system("$comma $name_file");
       if (-e $new_name_file) {
 	  print "<h1>OUTPUT is in the PDF FILE (see link below)</h1>\n";
Index: loncom/html/adm/help/tex/Latex_Header.tex
diff -u loncom/html/adm/help/tex/Latex_Header.tex:1.2 loncom/html/adm/help/tex/Latex_Header.tex:1.3
--- loncom/html/adm/help/tex/Latex_Header.tex:1.2	Thu Jul 18 11:52:27 2002
+++ loncom/html/adm/help/tex/Latex_Header.tex	Mon Mar 31 23:30:11 2003
@@ -2,7 +2,7 @@
 %% LyX 1.2 created this file.  For more info, see http://www.lyx.org/.
 %% Do not edit unless you really know what you are doing.
 \documentclass[12pt,english]{article}
-\usepackage[T1]{fontenc}
+%\usepackage[T1]{fontenc}
 \usepackage[latin1]{inputenc}
 \usepackage{geometry}
 \geometry{verbose,letterpaper,tmargin=1.25in,bmargin=1in,lmargin=1in,rmargin=1in}\pagestyle{headings}