[lug] LaTeX block comment?

Ed Hill ed at eh3.com
Tue Jun 25 18:36:15 MDT 2002


On Tue, 2002-06-25 at 18:25, Peter Hutnick wrote:
> 
> I am just starting to get into LaTeX.  I'm using "LaTeX for Everyone" by Hahn.  
> Very good.

You might want to check out "A Guide to LaTeX2e" by Kopka & Daly which
is a more in-depth reference.


> I can't seem to be able to find any way to do a block comment (i.e. comment 
> many lines with a start comment and end comment identifier, like /* comment 
> */ in C).  Is there one?

Not that I'm aware of...  If you're using Emacs, then there are some
very helpful LaTeX modes.  For instance, you can hilight any region and
then (un-)comment it with a leading "%" character with just a few
keystrokes.

My favorite is auctex which you can get at:

  http://www.rpmfind.net/linux/rpm2html/search.php?query=auctex

and then add the following (or something similar) to your .emacs file:

=== BEGIN ===
;; load AUC-TeX
;;
    (setq load-path (cons "/usr/share/emacs/site-lisp" load-path))
    (require 'tex-mik)
    (require 'tex-site)
    (setq tex-default-mode 'latex-mode)
    (require 'font-latex)
=== END ===

hth,
Ed

-- 
Edward H. Hill III, PhD 
Post-Doctoral Researcher   |  Emails:      ed at eh3.com, ehill at mines.edu
Division of ESE            |  URL:         http://www.eh3.com
Colorado School of Mines   |  Phone:       303-273-3483
Golden, CO  80401          |  Fax:         303-273-3311
Key fingerprint = 5BDE 4DA1 66BE 4F7B BC17  3A0C 932B 7266 1E76 F123



More information about the LUG mailing list