Path: news.mathworks.com!not-for-mail
From: "Jon Bain" <withheld@spam.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Publish to HTML
Date: Sun, 24 Feb 2008 00:09:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 34
Message-ID: <fpqcj1$j6u$1@fred.mathworks.com>
References: <fjb8dq$m12$1@fred.mathworks.com> <fjbd6r$m69$1@fred.mathworks.com> <fjgi6h$odr$1@fred.mathworks.com> <fjjv3p$po4$1@fred.mathworks.com>
Reply-To: "Jon Bain" <withheld@spam.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 1203811745 19678 172.30.248.38 (24 Feb 2008 00:09:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 24 Feb 2008 00:09:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1290668
Xref: news.mathworks.com comp.soft-sys.matlab:453354



"Matthew Simoneau" <matthew@mathworks.com> wrote in message 
<fjjv3p$po4$1@fred.mathworks.com>...
> Hi Chen,
> 
> Inline LaTeX isn't supported, but is on our wishlist.
> 
> The LaTeX that we do support is only "math mode" LaTeX.  I
> don't know if there's a way to specify bullets in math 
mode.
> 
> Thanks for the feedback,
> Matthew

Actually, it is possible to mix text and math on a line, 
although it can be kind of messy.

As long as you begin, and end the cell with $$, then you 
can turn off math mode in between:

for example:

%% 
% $$ x = 1 $$ for all $$ y < 5 $$

The key is that you must start and end the cell in math 
mode.   You can insert an empty latex string to accomplish 
this -- in other words $${}$$ at the start or end of the 
comment as needed:

%%
% $${}$$ Text mode $$math mode$$ back to text $${}$$

I believe there is also a limitation where long latex 
strings must go on a single comment line, which is annoying.