# Put points of question into brackets in exsheets

I want align the points value of questions to margin and put inside brackets with exsheets package.

MWE:

\documentclass[a4paper]{article}
\usepackage{lipsum}
\SetupExSheets{
points/name = pont,
points/number-format=\textit,
counter-within=section,
solution/name = Megoldás
}
toc-reversed = true,
indent-first = true,
vscale = 2,
post-code = \rule{\linewidth}{1pt},
title-format = \Large\scshape,
join = {
main[l,vc]title[l,B](0pt,0pt) ;
},
}
\RenewQuSolPair
%
\begin{document}
\begin{question}{10}
\lipsum[1]
\end{question}
\begin{question}{10}
\lipsum[2]
\end{question}
\end{document}


So I want replace "10 pont" to "(10 pont)". How can I do this?

If you want to place all appearances of points in parentheses (i.e. also those created with \pointssum and friends) you can define a command

\newcommand*\pointsformat[1]{(#1)}


and then set the option

\SetupExSheets{
points/format = \pointsformat
}


If you only want to place the points in the margin in parentheses you need to modify the headings instance you're using for the questions instead:

\documentclass[a4paper]{article}
\usepackage{lipsum}
\SetupExSheets{
points/name = pont,
points/number-format=\textit,
counter-within=section,
solution/name = Megoldás
}
toc-reversed = true,
indent-first = true,
vscale = 2,
post-code = \rule{\linewidth}{1pt},
title-format = \Large\scshape,
join = {
main[l,vc]title[l,B](0pt,0pt) ;
}
}
runin = true ,
attach = {
main[l,vc]number[r,vc](-.333em,0pt) ;
main[r,vc]points[l,vc](\linewidth+\marginparsep,0pt)
} ,
points-pre-code = ( ,  % <= this is different
points-post-code = ) , % <= this is different
}

\RenewQuSolPair