diff options
author | Karl Berry <karl@freefriends.org> | 2023-08-15 20:21:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-08-15 20:21:44 +0000 |
commit | 5ce1490e3dfe124d646d39abb88e8e2c39050a16 (patch) | |
tree | 56bf76278ffc31440344fa77bb3a6ed728637cd4 /Master/texmf-dist/metapost | |
parent | 1882a0b189274c22ea749ae66b2f91bb4e85d8c2 (diff) |
profcollege (15aug23)
git-svn-id: svn://tug.org/texlive/trunk@67936 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/metapost')
-rw-r--r-- | Master/texmf-dist/metapost/profcollege/PfCCalculatrice.mp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Master/texmf-dist/metapost/profcollege/PfCCalculatrice.mp b/Master/texmf-dist/metapost/profcollege/PfCCalculatrice.mp index 633b3ab6a74..daae0553f71 100644 --- a/Master/texmf-dist/metapost/profcollege/PfCCalculatrice.mp +++ b/Master/texmf-dist/metapost/profcollege/PfCCalculatrice.mp @@ -168,6 +168,7 @@ vardef Test(expr cptk)(text cptnt)= elseif substring(cptk,cptk+1) of cptnt="&":draw Affichage("00000100001100011100110001000000000") shifted(Decalage); elseif substring(cptk,cptk+1) of cptnt="$":draw Affichage("00000000000000100001000010000111111") shifted(Decalage); elseif substring(cptk,cptk+1) of cptnt="^":draw Affichage("00100010101000100000000000000000000") shifted(Decalage); + elseif substring(cptk,cptk+1) of cptnt="_":draw Affichage("11111111111111111111111111111111111") shifted(Decalage); fi; enddef; @@ -178,10 +179,12 @@ vardef LCD(text nt)(text rep)(expr NB)= Ecran:=(u*(0,-1)--u*(LargeurEcran,-1)--u*(LargeurEcran,7)--u*(0,7)--cycle) shifted(u*(0,-8*(nblignes-1))); fill Ecran withcolor if print=true:0.8white else:CouleurEcran fi; draw Ecran withcolor if print=true:0.8white else:CouleurEcran fi; + if length(nt)>0: for k=0 upto length(nt)-1: BlocAffichage; Test(k,nt); endfor; + fi; for k=1 upto NB: nblignes:=nblignes+1; Ecran:=(u*(0,-1)--u*(LargeurEcran,-1)--u*(LargeurEcran,7)--u*(0,7)--cycle) shifted(u*(0,-8*(nblignes-1))); |