Mike Gerwitz

Activist for User Freedom

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2014-06-03 09:16:25 -0400
committerMike Gerwitz <gerwitzm@lovullo.com>2014-06-03 09:16:25 -0400
commit09e64b171ac3cfbbcb84978f1d9f78e731379c9b (patch)
tree4e8cd4ad52520e61369fbbd4f75267378f1ef816
parent4e03ed702318ab5ffce5a732aab6209ce2e9011e (diff)
downloadlvspec-09e64b171ac3cfbbcb84978f1d9f78e731379c9b.tar.gz
lvspec-09e64b171ac3cfbbcb84978f1d9f78e731379c9b.tar.bz2
lvspec-09e64b171ac3cfbbcb84978f1d9f78e731379c9b.zip
Resolved shorthand map problems for \question with mmode confusion
-rw-r--r--raterspec/question.sty15
1 files changed, 8 insertions, 7 deletions
diff --git a/raterspec/question.sty b/raterspec/question.sty
index 465e5bc..7d3f8bd 100644
--- a/raterspec/question.sty
+++ b/raterspec/question.sty
@@ -55,16 +55,17 @@
\vskip-0.5\baselineskip
\@margin@sig
\begingroup
- \def\@mapsto{#3}%
- \ifx\@mapsto\empty
+ \def\@@qid{#2}%
+ \def\@@mapid{#3}%
+ \def\@@dash{-}%
+ \ifx\@@mapid\empty
\May not map to any rater input parameter.%
\else
+ \ifx\@@mapid\@@dash%
+ \let\@@mapid\@@qid
+ \fi
\Shall map to rater input parameter
- \if\@mapsto-%
- \paramref{#2}%
- \else
- \paramref{#3}%
- \fi.%
+ \expandafter\paramref\expandafter{\@@mapid}.%
\fi
\endgroup
\space Input value \shall be \csname @qtypedesc@#4\endcsname\space