File: ifthen.plt

package info (click to toggle)
tralics 2.14.4-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 17,152 kB
  • ctags: 8,260
  • sloc: cpp: 49,403; xml: 18,145; sh: 140; makefile: 118
file content (23 lines) | stat: -rw-r--r-- 666 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%%% -*- latex -*-
\ProvidesPackage{ifthen}[2006/10/05 v1.0 standard latex ifthen package]
%% $Id: ifthen.plt,v 2.6 2007/11/23 17:00:32 grimm Exp $
%% TRALICS, copyright (C) INRIA/apics (Jose' Grimm) 2006, 2007
%% Licensed under the CeCILL free software license 
%% (See the file COPYING in the main directory for details)


\let\@original@ifthen\ifthenelse
\def\@fixifthen{\def\value##1{\the\csname c@##1\endcsname}} 
\newif\if@ifthenpatch

\def\Ifthenelse#1{%
 \bgroup
   \@fixifthen
   \@original@ifthen{#1}{\global\@ifthenpatchtrue}{\global\@ifthenpatchfalse}%
 \egroup%
 \@original@ifthen{\boolean{@ifthenpatch}}}
\endinput

%The package is implemented in C++