Site hosted by Angelfire.com: Build your free website today!

publishrr

PURPOSE ^

PUBLISHRR Run a script and save the results.

SYNOPSIS ^

function varargout = publishrr(file,outputDir)

DESCRIPTION ^

PUBLISHRR   Run a script and save the results.
   PUBLISH(CELLSCRIPT,FORMAT) publishes the script in the specified format.
 if nargin<=1
     XX = 'html';
     outputDir = fullfile(scriptDir,XX);
 else
     XX = 'html';
     outputDir = fullfile(outputDir,XX);
 end
   FORMAT can be one of the following:

      'html'  - HTML.
      'doc'   - Microsoft Word (requires Microsoft Word).
      'ppt'   - Microsoft PowerPoint (requires Microsoft PowerPoint).
      'xml'   - An XML file that can be transformed with XSLT or other tools.
      'latex' - LaTeX.  Also changes the imageFormat to 'epsc2'.

   PUBLISH(SCRIPT,OPTIONS) provides a structure of options that may contain any
   of the following fields (first choice listed is the default):

       format: 'html' | 'doc' | 'ppt' | 'xml' | 'latex'
       stylesheet: '' | an XSL filename (ignored unless format = html or xml)
       outputDir: '' (an html subfolder below the file) | full path
       imageFormat: 'png' | any supported by PRINT or IMWRITE, depending on figureSnapMethod
       figureSnapMethod: 'print' | 'getframe'
       useNewFigure: true | false
       maxHeight: [] | positive integer (pixels)
       maxWidth: [] | positive integer (pixels)
       showCode: true | false
       evalCode: true | false
       stopOnError: true | false
       createThumbnail: true | false

   When publishing to HTML, the default stylesheet stores the original code as
   an HTML comment, even if "showcode = false".  Use GRABCODE to extract it.

   See also GRABCODE.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^


Generated on Sat 12-Mar-2005 01:01:49 by Rezaul Karim © 2004