Article View: comp.text.tex
Article #2020Re: DUAL HANDOUTS/PERSONAL NOTES MACRO IDEA
From: Navindra S Gambhir
Date: Thu, 03 Sep 1992 01:31
Date: Thu, 03 Sep 1992 01:31
37 lines
1965 bytes
1965 bytes
In article <1992Sep2.154831.22839@athena.mit.edu> lasmith@athena.mit.edu (Lones A Smith) writes:
>
>
> I am making class notes. I would like on the same file to add my own comments that will NOT APPEAR on the notes. I do not want two separate files,
> for editing purposes. Here's what I want: I want to prefix the additional
> comments for my expanded version of the notes by a symbol --- call it ** ---
> so that lines preceeded by ** are only printed out when a particular control sequence in the preamble is present. That is,
>
> [...]
>
> Then when I LaTeX the first file, the ** should be ignored entirely, whereas when I LaTeX the second file ** should be read as %. Brute force methods
> have failed me. Any ideas, (La)TeXperts??????
>
If you had only chosen a single character (e.g., @) instead of **,
this would have been rather simple:
Then if you have
\catcode`\@=9
at the beginning of the file, @ would be ignored and
if you have
\catcode`\@=14
at the beginning of the file, @ would be the comment character.
(Or you could \def\privatenotes{\catcode`\@=9 }
and \def\classhandout{\catcode`\@=14 } in your macro file
as mnemonics for these commands.)
If you also want @ in the text somewhere, you can use \@ for that
by saying
\chardef\@=`\@
--
---------------------------------------------------------------------------
Navindra S Gambhir gambhir@cs.cornell.edu
I would rather write programs to help me write programs than write programs
Technical Details
Message-ID:
<1992Sep3.013130.18857@cs.cornell.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!destroyer!ubc-cs!uw-beaver!cornell!gambhirReferences:
<1992Sep2.154831.22839@athena.mit.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!destroyer!ubc-cs!uw-beaver!cornell!gambhir From: gambhir@cs.cornell.edu (Navindra S Gambhir) Subject: Re: DUAL HANDOUTS/PERSONAL NOTES MACRO IDEA Message-ID: <1992Sep3.013130.18857@cs.cornell.edu> Organization: Cornell University, Ithaca NY 14853 References: <1992Sep2.154831.22839@athena.mit.edu> Date: Thu, 3 Sep 1992 01:31:30 GMT Lines: 37