Forums » Using AMC (english) »
good frame for rtl language like arabic and hebrew
Added by red sea almost 14 years ago
- in the head:
you can change the color or any option.
\usepackage{tikz}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{lipsum}
\mdfdefinestyle{MyFrame}{ %
linecolor=blue,
outerlinewidth=2pt,
roundcorner=20pt,
innertopmargin=\baselineskip,
innerbottommargin=\baselineskip,
innerrightmargin=20pt,
innerleftmargin=20pt,
backgroundcolor=gray!50!white}
- add the quetion betowen :
\begin{mdframed}[style=MyFrame]
.....
\end{mdframed}
example:
\begin{mdframed}[style=MyFrame]
\begin{question}{8}
\raggedleft
\textarab{مدينة مكة المكرمة توجد في ؟}
\begin{choices}
\correctchoice{السعودية}
\wrongchoice{الكويت}
\wrongchoice{سوريا}
\wrongchoice{المغرب}
\end{choices}
\end{question}
\end{mdframed}
you can put its in 2 or 3 columns by :
\begin{multicols}{2}
......
\end{multicols}
example:
\begin{multicols}{2}\normalsize
\begin{mdframed}[style=MyFrame]
\begin{question}{8}
\raggedleft
\textarab{مدينة مكة المكرمة توجد في ؟}
\begin{choices}
\correctchoice{السعودية}
\wrongchoice{الكويت}
\wrongchoice{سوريا}
\wrongchoice{المغرب}
\end{choices}
\end{question}
\end{mdframed}
\begin{mdframed}[style=MyFrame]
\begin{question}{9}
\raggedleft
\textarab{مدينة مكة المكرمة توجد في ؟}
\begin{choices}
\correctchoice{السعودية}
\wrongchoice{الكويت}
\wrongchoice{سوريا}
\wrongchoice{المغرب}
\end{choices}
\end{question}
\end{mdframed}
\end{multicols}
rtlFram.png (9.9 kB)
Replies (1)
(1-1/1)
