Path: news.mathworks.com!not-for-mail
From: "Brandeis " <dicemarquette.nospam.@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: MATLAB Publishing of Symbolic Equations through TEX
Date: Tue, 22 Jan 2008 20:02:01 +0000 (UTC)
Organization: Raytheon Co
Lines: 28
Message-ID: <fn5i3p$mq3$1@fred.mathworks.com>
References: <fn322h$36v$1@fred.mathworks.com> <fn3461$2l2$1@fred.mathworks.com>
Reply-To: "Brandeis " <dicemarquette.nospam.@yahoo.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 1201032121 23363 172.30.248.38 (22 Jan 2008 20:02:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 22 Jan 2008 20:02:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 735354
Xref: news.mathworks.com comp.soft-sys.matlab:447043


We are using a tool to automatically convert MATLAB code 
into real time C code. I am also using the publishing 
feature of MATLAB to automatically create the algorithm 
description document for the MATLAB code.

Since the auto-generated C code keeps MATLAB comments 
intact, the MATLAB "publishing tags" are retained. I wrote 
a MS-Word VBA macro to suck the auto-generated C code into 
MS-Word. The VBA macro catches the "publishing tags" in 
the auto-generated C code and insert the appropriate hyper-
text links, image, or formatting. The only hangup is when 
the VBA maco encounters the tag for a symbolic equation, 
it can not figure out which corresponding ".png" equation 
file to insert into the word document.

The idea is to basically have a published version of the 
MATLAB code and a published version of the auto-generated 
C code that match (i.e. have the same symbolic math 
equations and formatting).

If I can just get MS-word to recognize TEX strings that 
would also work, but that is a MS-Word issue, not a MATLAB 
issue.

"Matthew Simoneau" <matthew@mathworks.com> wrote in 
message <fn3461$2l2$1@fred.mathworks.com>...
> Sorry, nope.  Why does this matter to you?