LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-Transfer-Encoding:
7bit
Sender:
Mailing list for the LaTeX3 project <[log in to unmask]>
Subject:
From:
Joseph Wright <[log in to unmask]>
Date:
Fri, 19 Sep 2008 16:00:37 +0100
Content-Type:
text/plain; charset=ISO-8859-1
MIME-Version:
1.0
Reply-To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Parts/Attachments:
text/plain (24 lines)
Hello all,

In TeX, to save a series of catcodes one might do something like:

\edef\savedcatcodes{%
  \catcode\string`\string ` \the\catcode\string`\`\relax
  \catcode\string`\string = \the\catcode\string`\=\relax
  \catcode\string`\string ^ \the\catcode\string`\^\relax
  \catcode\string`\string _ \the\catcode\string`\_\relax
  \catcode\string`\string ~ \the\catcode\string`\~\relax
  \catcode\string`\string : \the\catcode\string`\:\relax
  \catcode\string`\string - \the\catcode\string`\-\relax
  \catcode\string`\string + \the\catcode\string`\+\relax
  \catcode\string`\string ; \the\catcode\string`\;\relax
  \catcode\string`\string , \the\catcode\string`\,\relax
  \catcode\string`\string . \the\catcode\string`\.\relax}

the use \savedcatcodes later to restore them.  Achieving the same in
expl3 seems to be driving me round the bend.  I can't figure out what
the correct syntax is for \char_value_catcode:n and \char_set_catcode:nn
under these circumstances.  Any chance of a clue?
-- 
Joseph Wright

ATOM RSS1 RSS2