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
Show All Mail Headers

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

Print Reply
Subject:
From:
Joseph Wright <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Thu, 26 Feb 2009 08:35:15 +0000
Content-Type:
text/plain
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