Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Is there a way to do comment with just one keystroke at the start

  • To: mathgroup at smc.vnet.net
  • Subject: [mg128650] Re: Is there a way to do comment with just one keystroke at the start
  • From: "Nasser M. Abbasi" <nma at 12000.org>
  • Date: Wed, 14 Nov 2012 01:27:26 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <k7skul$kud$1@smc.vnet.net>
  • Reply-to: nma at 12000.org

On 11/12/2012 11:13 PM, Eric Rasmusen wrote:
>    Hello.
>     The standard way to do comments in Mathematica is like this
> (*Here is a comment*)
>
> In Latex,  a short comment only takes one symbol, at the start of the line:
> %Here is a latex comment
>
> Is there a way to comment in Mathematica without the closing symbols? is
>  there an any easy way to make a macro to imitate latex comments?
>

There is no easy way.  You just have to live with (* *)

On the same topic, I find one of the annoying things in the
notebook is that one can't write free style comments. The comment
text follow the notebook rules for alignments in the code cell, so
one can't align comments nicely and make free style type
documentation inside the notebook (i.e. like verbatim).

Unless one makes a new Text cell to write comments in, which is ok, but
if one is in a Code Cell, writing comments next or around the code is not
too much fun because of code cell own rules of alignments of code which
affects comments as well.

--Nasser




  • Prev by Date: Is there a way to do comment with just one keystroke at the start as
  • Next by Date: Re: Mode of InverseChiSquareDistribution
  • Previous by thread: Re: Is there a way to do comment with just one keystroke at the start
  • Next by thread: Euclidean distance of all pairwise combinations (redundants)