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
Mime-Version:
1.0
Content-Type:
text/plain; charset="us-ascii"
Date:
Thu, 4 Aug 2011 13:41:44 +0200
Reply-To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Subject:
Content-Transfer-Encoding:
7bit
Message-ID:
Sender:
Mailing list for the LaTeX3 project <[log in to unmask]>
From:
Ulrike Fischer <[log in to unmask]>
Parts/Attachments:
text/plain (32 lines)
l3basics contains \luatex_if_engine:... and \xetex_if_engine:... 

I would find similar \xetex_or_luatex_if_engine:... quite useful but
as it doesn't exist I defined my local one:

\documentclass{scrartcl}
\usepackage{expl3}
\begin{document}

\ExplSyntaxOn

  
\prg_new_conditional:Nnn  \ufcore_xetex_or_luatex_if_engine: {T, F,
TF}
 {\bool_if:nTF
  {\c_luatex_is_engine_bool || \c_xetex_is_engine_bool}
  {\prg_return_true:}
  {\prg_return_false:}
 }

\ufcore_xetex_or_luatex_if_engine:TF{true}{false}
\ExplSyntaxOff

\end{document}

It seems to work fine. But I'm a bit unsure about the naming of the
command. Is the prefix \ufcore OK?


-- 
Ulrike Fischer 

ATOM RSS1 RSS2