<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167402</link>
    <title>MATLAB Central Newsreader - Publish without code output</title>
    <description>Feed for thread: Publish without code output</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 11 Apr 2008 14:12:01 -0400</pubDate>
      <title>Publish without code output</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167402#426111</link>
      <author>Fran?ois Bouffard</author>
      <description>The preferences options for publishing (in the version of&lt;br&gt;
Matlab I'm using, which admitedly is not the latest) enable&lt;br&gt;
us to decide if we want to a) evaluate code, b) use new&lt;br&gt;
figures, and c) display the code in the output. I want to&lt;br&gt;
produce a report in which the code is evaluated (to generate&lt;br&gt;
figures), so a) has to be checked. Since the code is quite&lt;br&gt;
lengthy, I don't want it displayed in the HTML file, so c)&lt;br&gt;
has to be unchecked.&lt;br&gt;
&lt;br&gt;
However even if the code itself is not displayed in the HTML&lt;br&gt;
file, the code output is listed. This is a problem since I'm&lt;br&gt;
using third-party functions that spew out dozens of&lt;br&gt;
uninteresting messages. Thus I'd like the code output not&lt;br&gt;
shown in the report. Is there an easy way to do this?&lt;br&gt;
&lt;br&gt;
Since there is no "Display code output" checkbox in the&lt;br&gt;
preferences or an equivalent option to the publish function,&lt;br&gt;
I guess I should either use an appropriate XSL stylesheet,&lt;br&gt;
or parse the HTML and remove the "codeoutput"-class pre&lt;br&gt;
tags. Has anyone produced such an XSL stylesheet?&lt;br&gt;
&lt;br&gt;
Thanks for any hint,&lt;br&gt;
&lt;br&gt;
Fran?ois&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 14 Apr 2008 14:51:45 -0400</pubDate>
      <title>Re: Publish without code output</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167402#426520</link>
      <author>Matthew Simoneau</author>
      <description>"Fran?ois Bouffard"&lt;br&gt;
&amp;lt;remove.fbouffard.this@and.gmail.this.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;ftnrjh$aq0$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; The preferences options for publishing (in the version of&lt;br&gt;
&amp;gt; Matlab I'm using, which admitedly is not the latest) enable&lt;br&gt;
&amp;gt; us to decide if we want to a) evaluate code, b) use new&lt;br&gt;
&amp;gt; figures, and c) display the code in the output. I want to&lt;br&gt;
&amp;gt; produce a report in which the code is evaluated (to generate&lt;br&gt;
&amp;gt; figures), so a) has to be checked. Since the code is quite&lt;br&gt;
&amp;gt; lengthy, I don't want it displayed in the HTML file, so c)&lt;br&gt;
&amp;gt; has to be unchecked.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; However even if the code itself is not displayed in the HTML&lt;br&gt;
&amp;gt; file, the code output is listed. This is a problem since I'm&lt;br&gt;
&amp;gt; using third-party functions that spew out dozens of&lt;br&gt;
&amp;gt; uninteresting messages. Thus I'd like the code output not&lt;br&gt;
&amp;gt; shown in the report. Is there an easy way to do this?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Since there is no "Display code output" checkbox in the&lt;br&gt;
&amp;gt; preferences or an equivalent option to the publish function,&lt;br&gt;
&amp;gt; I guess I should either use an appropriate XSL stylesheet,&lt;br&gt;
&amp;gt; or parse the HTML and remove the "codeoutput"-class pre&lt;br&gt;
&amp;gt; tags. Has anyone produced such an XSL stylesheet?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks for any hint,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Fran?ois&lt;br&gt;
&lt;br&gt;
In newer versions of MATLAB, there's an option for this&lt;br&gt;
called maxOutputLines.&lt;br&gt;
&lt;br&gt;
On older versions, you're solution of modifying the&lt;br&gt;
stylesheet is a good one.&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; edit private/mxdom2simplehtml.xsl&lt;br&gt;
&lt;br&gt;
Find where "mcodeoutput" is in your version and delete it. &lt;br&gt;
Then re-save this file to a new location.  When you publish,&lt;br&gt;
specify you want to use this custom stylesheet.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 14 Apr 2008 16:08:01 -0400</pubDate>
      <title>Re: Publish without code output</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/167402#426534</link>
      <author>Francois Bouffard</author>
      <description>&amp;gt; On older versions, you're solution of modifying the&lt;br&gt;
&amp;gt; stylesheet is a good one.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; edit private/mxdom2simplehtml.xsl&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Find where "mcodeoutput" is in your version and delete it. &lt;br&gt;
&amp;gt; Then re-save this file to a new location.  When you publish,&lt;br&gt;
&amp;gt; specify you want to use this custom stylesheet.&lt;br&gt;
&lt;br&gt;
Thanks for your help, this worked very well.&lt;br&gt;
&lt;br&gt;
Fran?ois&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
