Path: news.mathworks.com!not-for-mail
From: "Fran?ois Bouffard" <remove.fbouffard.this@and.gmail.this.com>
Newsgroups: comp.soft-sys.matlab
Subject: Publish without code output
Date: Fri, 11 Apr 2008 14:12:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <ftnrjh$aq0$1@fred.mathworks.com>
Reply-To: "Fran?ois Bouffard" <remove.fbouffard.this@and.gmail.this.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1207923121 11072 172.30.248.38 (11 Apr 2008 14:12:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 11 Apr 2008 14:12:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869669
Xref: news.mathworks.com comp.soft-sys.matlab:462453


The preferences options for publishing (in the version of
Matlab I'm using, which admitedly is not the latest) enable
us to decide if we want to a) evaluate code, b) use new
figures, and c) display the code in the output. I want to
produce a report in which the code is evaluated (to generate
figures), so a) has to be checked. Since the code is quite
lengthy, I don't want it displayed in the HTML file, so c)
has to be unchecked.

However even if the code itself is not displayed in the HTML
file, the code output is listed. This is a problem since I'm
using third-party functions that spew out dozens of
uninteresting messages. Thus I'd like the code output not
shown in the report. Is there an easy way to do this?

Since there is no "Display code output" checkbox in the
preferences or an equivalent option to the publish function,
I guess I should either use an appropriate XSL stylesheet,
or parse the HTML and remove the "codeoutput"-class pre
tags. Has anyone produced such an XSL stylesheet?

Thanks for any hint,

Fran?ois