#StackBounty: #tikz-pgf How to align tikzpicture beside a question (in the same line)?

Bounty: 50

I mean the question,figure and the answers be in the same rectangular.

My code:

documentclass{article}
usepackage{tasks,fontspec,tikz,color}
usepackage{amsmath,pgf,pgffor,comment,polyglossia}
setmainlanguage{english}
setotherlanguage{arabic}
usetikzlibrary{arrows}
usetikzlibrary{shapes}
newcommand{mymk}[1]{%
    tikz[baseline=(char.base)]node[anchor=south west, draw,rectangle, rounded corners, inner sep=2pt, minimum size=7mm,
    text height=2mm](char){ensuremath{#1}} ;}

newcommand*circled[1]{tikz[baseline=(char.base)]{
        node[shape=circle,draw,inner sep=2pt] (char) {#1};}}
newfontfamilyarabicfont[Script = Arabic]{Scheherazade} % Replace 'Simplified Arabic' with a font from your system



newcommand{nodear}[1]{node{begin{Arabic}{#1}end{Arabic}}}


begin{document}

    begin{comment}
    task[circled{A}]hspace{2pt} 
    task[circled{B}]hspace{2pt} 
    task[circled{C}]hspace{2pt} 
    task[circled{D}]hspace{2pt}
    end{comment}







begin{Arabic}

    begin{enumerate}

        item  في الشكل المجاور؛ إذا كان $mwidehat{AB} = 120textdegree$ فإنّ قيمة $x$ تساوي dots

begin{tikzpicture}
clip[draw] (0,0) circle (0.5cm);
draw  (0,0) circle(0.5cm);


end{tikzpicture}



    begin{tasks}(2)
        task[circled{A}]hspace{2pt} 
        task[circled{B}]hspace{2pt} 
        task[circled{C}]hspace{2pt} 
        task[circled{D}]hspace{2pt} 
    end{tasks}


    end{enumerate}


end{Arabic}


end{document}

enter image description here


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.