LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Proportional Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Joseph Wright <[log in to unmask]>
Mon, 8 Sep 2008 20:05:11 +0100
text/plain (26 lines)
Hello,

I've been trying to work out if the current expl3 has anything like
\patchcmd from etoolbox.  Will suggested looking at the various \tlp_
... macros.  However, even a simple two-part test in this way fails:

\documentclass{article}
\usepackage{expl3}
\CodeStart
\cs_if_really_exist:cT{thanks}{
  \tlp_if_in:NnT\thanks{\footnotemark}{
    % Do something
  }
  \tlp_if_in:NnT\thanks{\footnotetext}{
    % Also do something
  }
}
\CodeStop
\begin{document}
\end{document}

I guess I'm abusing the functions.  So have I missed something obvious?
 The ability to patch existing functions is very handy.
-- 
Joseph Wright

ATOM RSS1 RSS2