Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: Inserting a carriage return into comments field

Subject: Inserting a carriage return into comments field

From: emailaddy25@gmail.com

Date: 04 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: Re: Inserting a carriage return into comments field

From: Matthew Simoneau

Date: 05 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

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics