Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force \Alph to Latin symbols in exam class #2

Open
avidseeker opened this issue Jul 14, 2022 · 0 comments
Open

Force \Alph to Latin symbols in exam class #2

avidseeker opened this issue Jul 14, 2022 · 0 comments

Comments

@avidseeker
Copy link

I have an exam written in Arabic. Need Latin numbering for choices (A, B, C, D).

MWE:

\documentclass[12pt]{exam}
            
\usepackage{polyglossia}
\usepackage{fontspec}

% Language setup
\setmainlanguage[numerals=maghrib]{arabic}
\setotherlanguage{english}
\newfontfamily\arabicfont[Script=Arabic,Scale=0.9]{Amiri}

% Questions setup
\usepackage{alphalph}
\renewcommand{\thechoice}{\AlphaAlph{\value{choice}}}

\begin{document}

\begin{questions}
    \question
        أوجد قيمة $x$ في المقدار اﻵتي:
    \begin{choices}
        \choice 1
        \choice 2
        \choice 3
        \choice 4
    \end{choices}
\end{questions}

\end{document}

Yields undefined control sequence for \choice.

Tried this, and this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant