Home > atmlab > documentation > qpack2 > qp2_make_pdf.m

qp2_make_pdf

PURPOSE ^

QP2_MAKE_PDF Compiles the Qpack2 manual

SYNOPSIS ^

function qp2_make_pdf(clean_files)

DESCRIPTION ^

 QP2_MAKE_PDF   Compiles the Qpack2 manual

   The function extracts on-line documentation to be included on the PDF.
   And runs pdflatex (twice) on qpack2.tex

 FORMAT   qp2_make_pdf( [clean_files] )

 OPT   clean_files   Flag to delete unnecessary files. Default is false.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

qp2_make_pdf.m

SOURCE CODE ^

0001 % QP2_MAKE_PDF   Compiles the Qpack2 manual
0002 %
0003 %   The function extracts on-line documentation to be included on the PDF.
0004 %   And runs pdflatex (twice) on qpack2.tex
0005 %
0006 % FORMAT   qp2_make_pdf( [clean_files] )
0007 %
0008 % OPT   clean_files   Flag to delete unnecessary files. Default is false.
0009 
0010 % 2009-08-10   Created by Patrick Eriksson.
0011 
0012 
0013 function qp2_make_pdf(clean_files)
0014 
0015   
0016 wd = pwd;
0017 %
0018 if ~strcmp( wd(end+(-5:0)), 'qpack2' )
0019   error( 'This function must be executed from the qpack2 sub-folder.' );
0020 end
0021 
0022 
0023 sw = atmlab( 'SCREEN_WIDTH' );
0024      atmlab( 'SCREEN_WIDTH', 70 );
0025 
0026   
0027 fid = fileopen( 'qarts.txt', 'w' );
0028 qinfo( @qarts, 'all', fid, false );
0029 fileclose( fid );
0030 
0031 fid = fileopen( 'oem.txt', 'w' );
0032 qinfo( @oem, 'all', fid, false );
0033 fileclose( fid );
0034 
0035 fid = fileopen( 'qp2_y.txt', 'w' );
0036 qinfo( @qp2_y, 'all', fid, false );
0037 fileclose( fid );
0038 
0039 
0040 !pdflatex qpack2
0041 !pdflatex qpack2
0042 
0043 
0044 if nargin  &  clean_files
0045   delete('qarts.txt');
0046   delete('oem.txt');
0047   delete('qp2_y.txt');
0048   delete('qpack2.log');
0049   delete('qpack2.aux');
0050 end
0051 
0052 atmlab( 'SCREEN_WIDTH', sw );

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005