Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 45
correction erreur code définition alternative \newcommand

24 Oct '17, 12:59

idefix's gravatar image

idefix
955134151

Je ne m'attendais pas à une réponse aussi rapide. Apparemment on pouvait aussi *protéger* la commande `\bareme` dans le titre du cadre (`\protect\bareme{titi}`). \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[tikz]{bclogo} %définition de variable texte pour compilation conditionnelle \def\ChoixDeVersion{AB} %AB=Avec Barème \newcommand{\bareme}[1]{% \ifthenelse{\equal{\ChoixDeVersion}{AB}}% {#1\ignorespaces}% {\ignorespaces}% } % BONNE ALTERNATIVE NE NÉCESSITANT PAS DE PROTECTION %\newif\ifAB %\ABtrue %\ABfalse % %\newcommand{\bareme}[1]{% % \ifAB% % #1\ignorespaces% % \else% % \ignorespaces% % \fi} % %\newcommand{\bareme}[1]{% % \ifthenelse% % #1\ignorespaces% % \else% % \ignorespaces% % \fi} \begin{document} \part{Questions de cours} Mon texte \bareme{toto } suite du texte %Protection nécessaire pour \bareme (avec \ifthenelse) dans l'argument de bclogo \begin{bclogo}[epBord=2,logo=\bcquestion,ombre=true,couleur=blue!10]% {% Question 1 Complétez la phrase \protect\bareme{titi }% } Texte du cadre \bareme{tata } \end{bclogo} \end{document} Cela fonctionne alors également avec `\ifthenelse`, mais je préfère votre méthode avec `\newif`, elle est me semble plus propre et plus carrée. La mise en forme du code est aussi très propre. C'est un standard d'édition ?
cliquez ici pour masquer/afficher la révision 44

24 Oct '17, 12:54

idefix's gravatar image

idefix
955134151

Je ne m'attendais pas à une réponse aussi rapide. Apparemment on pouvait aussi *protéger* la commande `\bareme` dans le titre du cadre (`\protect\bareme{titi}`). \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[tikz]{bclogo} %définition de variable texte pour compilation conditionnelle \def\ChoixDeVersion{AB} %AB=Avec Barème \newcommand{\bareme}[1]{% \ifthenelse{\equal{\ChoixDeVersion}{AB}}% {#1\ignorespaces}% {\ignorespaces}% } % BONNE ALTERNATIVE NE NÉCESSITANT PAS DE PROTECTION %\newif\ifAB %\ABtrue %\ABfalse % %\newcommand{\bareme}[1]{% % \ifAB% % #1\ignorespaces% % \else% % \ignorespaces% % \fi} % %\newcommand{\bareme}[1]{% % \ifthenelse% % #1\ignorespaces% % \else% % \ignorespaces% % \fi} \begin{document} \part{Questions de cours} Mon texte \bareme{toto } suite du texte %Protection nécessaire pour \bareme (avec \ifthenelse) dans l'argument de bclogo \begin{bclogo}[epBord=2,logo=\bcquestion,ombre=true,couleur=blue!10]% {% Question 1 Complétez la phrase \protect\bareme{titi }% } Texte du cadre \bareme{tata } \end{bclogo} \end{document} Cela fonctionne alors également avec `\ifthenelse`, mais je préfère votre méthode avec `\newif`, elle est me semble plus propre et plus carrée. La mise en forme du code est aussi très propre. C'est un standard d'édition ?
cliquez ici pour masquer/afficher la révision 43

24 Oct '17, 12:52

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 42

24 Oct '17, 12:50

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 41
mineure

23 Oct '17, 14:43

Pathe's gravatar image

Pathe
7.6k49209252

cliquez ici pour masquer/afficher la révision 40

22 Oct '17, 23:58

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 39

22 Oct '17, 23:51

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 38

22 Oct '17, 23:50

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 37

22 Oct '17, 23:44

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 36

22 Oct '17, 23:43

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 35

22 Oct '17, 23:40

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 34

22 Oct '17, 23:37

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 33

22 Oct '17, 23:34

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 32

22 Oct '17, 23:30

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 31

22 Oct '17, 23:29

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 30

22 Oct '17, 23:28

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 29

22 Oct '17, 23:27

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 28

22 Oct '17, 23:25

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 27
Mise en forme du code

22 Oct '17, 23:21

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 26

22 Oct '17, 23:09

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 25

22 Oct '17, 23:06

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 24

22 Oct '17, 23:05

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 23

22 Oct '17, 23:04

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 22

22 Oct '17, 23:04

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 21
Mise en forme du code

22 Oct '17, 23:03

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 20

22 Oct '17, 23:02

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 19
Séparation de la réponse en deux parties

22 Oct '17, 22:44

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 18

22 Oct '17, 22:32

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 17

22 Oct '17, 22:31

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 16
rectification du code

22 Oct '17, 22:30

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 15

22 Oct '17, 22:10

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 14

22 Oct '17, 22:09

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 13

22 Oct '17, 22:07

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 12
Mise au format code du texte code

22 Oct '17, 22:00

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 11

22 Oct '17, 21:59

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 10

22 Oct '17, 21:58

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 9

22 Oct '17, 21:58

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 8

22 Oct '17, 21:57

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 7

22 Oct '17, 21:55

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 6

22 Oct '17, 21:55

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 5

22 Oct '17, 21:51

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 4

22 Oct '17, 21:47

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 3

22 Oct '17, 21:47

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 2

22 Oct '17, 21:46

idefix's gravatar image

idefix
955134151

cliquez ici pour masquer/afficher la révision 1

22 Oct '17, 21:45

idefix's gravatar image

idefix
955134151