From: epsmjd@ams.org (Michael J Downes)
Subject: Re: AucTeX fontifying: mishandling $ within \verb argument and verbatim environment.
Date: 8 Nov 2002 12:47:27 -0800 [thread overview]
Message-ID: <25180b3c.0211081247.76ef121c@posting.google.com> (raw)
In-Reply-To: OjNy9.125$__7.1465715@news-text.cableinet.net
Adam <a24061@void.yahoo.void.com> writes:
> ...in your \verb!$PATH! blah blah
> blah
> \begin{verbatim}
> $ passwd
> Changing password for USERID
> (current) UNIX password:
> New password:
> Retype new password:
> passwd: all authentication tokens updated successfully
> $ logout
> \end{verbatim}
> blah
> blah
>
> Everything from PATH through {verbatim} and from logout onward is colored
> as if in math mode. Anyone know how to fix this?
A workaround that I sometimes use is
\newcommand{\ignore}[1]{}
...in your \verb!$PATH!\ignore$ blah blah
But since that just makes the problem a little less annoying, I also
started working some time ago on a better fontifier for LaTeX files. A
really ambitious one, in fact---I am currently pondering whether it
might be possible to handle even things like
\newcommand{\beq}{\begin{equation}}
\newcommand{\eeq}{\end{equation}}
...
\beq
some math here
\eeq
But since this doesn't fall within the scope of what the standard
font-lock machinery can handle, there's a lot of work involved and
(alas) I don't expect to have a releasable version any time soon.
next prev parent reply other threads:[~2002-11-08 20:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-08 11:35 AucTeX fontifying: mishandling $ within \verb argument and verbatim environment Adam
2002-11-08 20:47 ` Michael J Downes [this message]
2002-11-09 1:10 ` Peter S Galbraith
[not found] ` <mailman.1036805218.32603.help-gnu-emacs@gnu.org>
2002-11-14 15:51 ` Michael J Downes
2002-11-15 0:54 ` Peter S Galbraith
-- strict thread matches above, loose matches on Subject: below --
2003-01-21 19:45 Adam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=25180b3c.0211081247.76ef121c@posting.google.com \
--to=epsmjd@ams.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).