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:
Mon, 8 Sep 2008 20:05:11 +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 (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