Thread Subject: Inserting a carriage return into comments field

Subject: Inserting a carriage return into comments field

From: emailaddy25@gmail.com

Date: 4 Feb, 2008 04:37:52

Message: 1 of 2

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

Subject: Inserting a carriage return into comments field

From: Matthew Simoneau

Date: 5 Feb, 2008 01:31:01

Message: 2 of 2

Sorry, but the answer on #1 is that there's no good answer.

On #2, remember that only valid LaTeX math mode markup will
work here.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com