Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!n20g2000hsh.googlegroups.com!not-for-mail
From: emailaddy25@gmail.com
Newsgroups: comp.soft-sys.matlab
Subject: Inserting a carriage return into comments field
Date: Sun, 3 Feb 2008 20:37:52 -0800 (PST)
Organization: http://groups.google.com
Lines: 43
Message-ID: <d5bb64ed-f869-4e7d-a4ad-1327cf536b5f@n20g2000hsh.googlegroups.com>
NNTP-Posting-Host: 76.172.85.63
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1202099873 22158 127.0.0.1 (4 Feb 2008 04:37:53 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 4 Feb 2008 04:37:53 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: n20g2000hsh.googlegroups.com; posting-host=76.172.85.63; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) 
Xref: news.mathworks.com comp.soft-sys.matlab:449075


Hi,

I often use Matlab 2007a's publish feature for its *.m files.

One thing I notice is the comments field seems to have no direct way
to edit the formatting, even putting in a carriage return.

E.g.,

%% commands
% line1
% line2
% line3

will give

line1 line2 line3

however, doing this
% line1
%
% line2
%
% line3

will give

line1

line2

line3


Basically, how do  put a simple carriage return into the comment
field?

Also, while I'm at it, when using TeX equations, how do I have those
give a carriage return also. I'd expect %% \cr %% to do this, but it
doesn't...


Thanks