LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Thu, 26 Feb 2009 08:35:15 +0000
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=ISO-8859-1
From: Joseph Wright <[log in to unmask]>
Parts/Attachments: text/plain (29 lines)
Will Robertson wrote:

> Well, I'll leave it there for now but I wonder if that implies we need a
> macro that has "setup" parameters:

Somethine like:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{expl3}
\begin{document}
\ExplSyntaxOn
  \cs_new:Npn \tlist_rescan:nn #1#2 {
    \group_begin:
      \etex_everyeof:D { \exp_not:N }
      #1
      \toks_set:Nx \l_tmpa_toks { \etex_scantokens:D {#2} }
    \exp_args:NV \group_end: \l_tmpa_toks
  }

  \tlist_rescan:nn { \char_make_other:N \^ \char_make_other:N \_ }
    {1_2^3}
\ExplSyntaxOff
\end{document}

perhaps?
-- 
Joseph Wright

ATOM RSS1 RSS2