Showing points and total points using `exercise package` or any suitable package












0















I want to prepare a book with many chapters (and sections), notes, exercises and linked solutions at the end of the book . I decided to adopt the example from on matching enumerated exercises with their answer. However, I want to display points per question part as shown here on the image. The exam package



documentclass{memoir}



usepackage{amsmath}
usepackage[inline]{enumitem}
usepackage{xcolor}
usepackage{ntheorem}
theorembodyfont{upshape}
theoremseparator{.}



usepackage{answers}
Newassociation{sol}{Solution}{ans}
renewcommand{Solutionlabel}[1]{small{#1.}}
newtheorem{ex}{}[section]
renewcommand{theex}{arabic{ex}}
newenvironment{Ex}[1]{begin{trivlist}item textsc{#1} %
renewcommand{Currentlabel}{#1}}{end{trivlist}}



usepackage{multicol}
newenvironment{mtmulticols}[1]{%
Writetofile{ans}{stringbegin{multicols}{#1}}
begin{multicols}{#1}}{end{multicols}%
Writetofile{ans}{stringend{multicols}}}



Newassociation{solitem}{Solutionsubitem}{ans}
renewcommand{Solutionsubitemlabel}[1]{#1}
newenvironment{Solutionsublist}{Writetofile{ans}{stringbegin{Solution} {theex}}}{Writetofile{ans}{stringend{Solution}}}



begin{document}
chapter{Polynomials}
section{Partial fractions}
label{sec:partial-fractions}
tracingmacros=1
Opensolutionfile{ans}[partial-fractions]
section*{Exercises for Section ref{sec:partial-fractions}}
vspace{-0.6cm}
hrulefill
begin{Ex}{Warm-ups}
end{Ex}
begin{ex}
Who is the most famous mathematician of all time?
begin{sol}
Euler
end{sol}
end{ex}
begin{ex}
Resolve each of the following proper rational expressions (some filler here) into partial fractions.
begin{multicols}{3}
begin{Solutionsublist}
begin{enumerate}[label=(alph*)]
item $displaystyle{frac{1}{(x - 1)(x - 2)}}$
begin{solitem}
$displaystyle{frac{1}{x - 2} - frac{1}{x - 1}}$
end{solitem}
item $displaystyle{frac{5x + 4}{x^2 + x - 2}}$
begin{solitem}
$displaystyle{frac{2}{x + 2} + frac{3}{x - 1}}$
end{solitem}
item $displaystyle{frac{7x - 1}{2x^2 - x - 1}}$
begin{solitem}
$displaystyle{frac{3}{2x + 1} + frac{2}{x - 1}}$
end{solitem}
item $displaystyle{frac{25}{18x^3 - 9x^2 - 11x + 2}}$
begin{solitem}
$displaystyle{frac{3}{3x + 2} - frac{12}{6x - 1} + frac{1}{x -
1}}$
end{solitem}
item $displaystyle{frac{x^2 + 15x - 4}{(x + 1)(x + 2)(x - 8)}}$
begin{solitem}
$displaystyle{frac{2}{x - 8} + frac{2}{x + 1} - frac{3}{x +
2}}$
end{solitem}
item $displaystyle{frac{48}{(x^2 - 1)(x^2 - 9)}}$
begin{solitem}
$displaystyle{frac{3}{x - 1} + frac{3}{x + 1} - frac{1}{x + 3}
+ frac{1}{x - 3}}$
end{solitem}
end{enumerate}
end{Solutionsublist}
end{multicols}
end{ex}



Closesolutionfile{ans}
section*{Answers for Section ref{sec:partial-fractions}}
input{partial-fractions}



end{document}









share



























    0















    I want to prepare a book with many chapters (and sections), notes, exercises and linked solutions at the end of the book . I decided to adopt the example from on matching enumerated exercises with their answer. However, I want to display points per question part as shown here on the image. The exam package



    documentclass{memoir}



    usepackage{amsmath}
    usepackage[inline]{enumitem}
    usepackage{xcolor}
    usepackage{ntheorem}
    theorembodyfont{upshape}
    theoremseparator{.}



    usepackage{answers}
    Newassociation{sol}{Solution}{ans}
    renewcommand{Solutionlabel}[1]{small{#1.}}
    newtheorem{ex}{}[section]
    renewcommand{theex}{arabic{ex}}
    newenvironment{Ex}[1]{begin{trivlist}item textsc{#1} %
    renewcommand{Currentlabel}{#1}}{end{trivlist}}



    usepackage{multicol}
    newenvironment{mtmulticols}[1]{%
    Writetofile{ans}{stringbegin{multicols}{#1}}
    begin{multicols}{#1}}{end{multicols}%
    Writetofile{ans}{stringend{multicols}}}



    Newassociation{solitem}{Solutionsubitem}{ans}
    renewcommand{Solutionsubitemlabel}[1]{#1}
    newenvironment{Solutionsublist}{Writetofile{ans}{stringbegin{Solution} {theex}}}{Writetofile{ans}{stringend{Solution}}}



    begin{document}
    chapter{Polynomials}
    section{Partial fractions}
    label{sec:partial-fractions}
    tracingmacros=1
    Opensolutionfile{ans}[partial-fractions]
    section*{Exercises for Section ref{sec:partial-fractions}}
    vspace{-0.6cm}
    hrulefill
    begin{Ex}{Warm-ups}
    end{Ex}
    begin{ex}
    Who is the most famous mathematician of all time?
    begin{sol}
    Euler
    end{sol}
    end{ex}
    begin{ex}
    Resolve each of the following proper rational expressions (some filler here) into partial fractions.
    begin{multicols}{3}
    begin{Solutionsublist}
    begin{enumerate}[label=(alph*)]
    item $displaystyle{frac{1}{(x - 1)(x - 2)}}$
    begin{solitem}
    $displaystyle{frac{1}{x - 2} - frac{1}{x - 1}}$
    end{solitem}
    item $displaystyle{frac{5x + 4}{x^2 + x - 2}}$
    begin{solitem}
    $displaystyle{frac{2}{x + 2} + frac{3}{x - 1}}$
    end{solitem}
    item $displaystyle{frac{7x - 1}{2x^2 - x - 1}}$
    begin{solitem}
    $displaystyle{frac{3}{2x + 1} + frac{2}{x - 1}}$
    end{solitem}
    item $displaystyle{frac{25}{18x^3 - 9x^2 - 11x + 2}}$
    begin{solitem}
    $displaystyle{frac{3}{3x + 2} - frac{12}{6x - 1} + frac{1}{x -
    1}}$
    end{solitem}
    item $displaystyle{frac{x^2 + 15x - 4}{(x + 1)(x + 2)(x - 8)}}$
    begin{solitem}
    $displaystyle{frac{2}{x - 8} + frac{2}{x + 1} - frac{3}{x +
    2}}$
    end{solitem}
    item $displaystyle{frac{48}{(x^2 - 1)(x^2 - 9)}}$
    begin{solitem}
    $displaystyle{frac{3}{x - 1} + frac{3}{x + 1} - frac{1}{x + 3}
    + frac{1}{x - 3}}$
    end{solitem}
    end{enumerate}
    end{Solutionsublist}
    end{multicols}
    end{ex}



    Closesolutionfile{ans}
    section*{Answers for Section ref{sec:partial-fractions}}
    input{partial-fractions}



    end{document}









    share

























      0












      0








      0








      I want to prepare a book with many chapters (and sections), notes, exercises and linked solutions at the end of the book . I decided to adopt the example from on matching enumerated exercises with their answer. However, I want to display points per question part as shown here on the image. The exam package



      documentclass{memoir}



      usepackage{amsmath}
      usepackage[inline]{enumitem}
      usepackage{xcolor}
      usepackage{ntheorem}
      theorembodyfont{upshape}
      theoremseparator{.}



      usepackage{answers}
      Newassociation{sol}{Solution}{ans}
      renewcommand{Solutionlabel}[1]{small{#1.}}
      newtheorem{ex}{}[section]
      renewcommand{theex}{arabic{ex}}
      newenvironment{Ex}[1]{begin{trivlist}item textsc{#1} %
      renewcommand{Currentlabel}{#1}}{end{trivlist}}



      usepackage{multicol}
      newenvironment{mtmulticols}[1]{%
      Writetofile{ans}{stringbegin{multicols}{#1}}
      begin{multicols}{#1}}{end{multicols}%
      Writetofile{ans}{stringend{multicols}}}



      Newassociation{solitem}{Solutionsubitem}{ans}
      renewcommand{Solutionsubitemlabel}[1]{#1}
      newenvironment{Solutionsublist}{Writetofile{ans}{stringbegin{Solution} {theex}}}{Writetofile{ans}{stringend{Solution}}}



      begin{document}
      chapter{Polynomials}
      section{Partial fractions}
      label{sec:partial-fractions}
      tracingmacros=1
      Opensolutionfile{ans}[partial-fractions]
      section*{Exercises for Section ref{sec:partial-fractions}}
      vspace{-0.6cm}
      hrulefill
      begin{Ex}{Warm-ups}
      end{Ex}
      begin{ex}
      Who is the most famous mathematician of all time?
      begin{sol}
      Euler
      end{sol}
      end{ex}
      begin{ex}
      Resolve each of the following proper rational expressions (some filler here) into partial fractions.
      begin{multicols}{3}
      begin{Solutionsublist}
      begin{enumerate}[label=(alph*)]
      item $displaystyle{frac{1}{(x - 1)(x - 2)}}$
      begin{solitem}
      $displaystyle{frac{1}{x - 2} - frac{1}{x - 1}}$
      end{solitem}
      item $displaystyle{frac{5x + 4}{x^2 + x - 2}}$
      begin{solitem}
      $displaystyle{frac{2}{x + 2} + frac{3}{x - 1}}$
      end{solitem}
      item $displaystyle{frac{7x - 1}{2x^2 - x - 1}}$
      begin{solitem}
      $displaystyle{frac{3}{2x + 1} + frac{2}{x - 1}}$
      end{solitem}
      item $displaystyle{frac{25}{18x^3 - 9x^2 - 11x + 2}}$
      begin{solitem}
      $displaystyle{frac{3}{3x + 2} - frac{12}{6x - 1} + frac{1}{x -
      1}}$
      end{solitem}
      item $displaystyle{frac{x^2 + 15x - 4}{(x + 1)(x + 2)(x - 8)}}$
      begin{solitem}
      $displaystyle{frac{2}{x - 8} + frac{2}{x + 1} - frac{3}{x +
      2}}$
      end{solitem}
      item $displaystyle{frac{48}{(x^2 - 1)(x^2 - 9)}}$
      begin{solitem}
      $displaystyle{frac{3}{x - 1} + frac{3}{x + 1} - frac{1}{x + 3}
      + frac{1}{x - 3}}$
      end{solitem}
      end{enumerate}
      end{Solutionsublist}
      end{multicols}
      end{ex}



      Closesolutionfile{ans}
      section*{Answers for Section ref{sec:partial-fractions}}
      input{partial-fractions}



      end{document}









      share














      I want to prepare a book with many chapters (and sections), notes, exercises and linked solutions at the end of the book . I decided to adopt the example from on matching enumerated exercises with their answer. However, I want to display points per question part as shown here on the image. The exam package



      documentclass{memoir}



      usepackage{amsmath}
      usepackage[inline]{enumitem}
      usepackage{xcolor}
      usepackage{ntheorem}
      theorembodyfont{upshape}
      theoremseparator{.}



      usepackage{answers}
      Newassociation{sol}{Solution}{ans}
      renewcommand{Solutionlabel}[1]{small{#1.}}
      newtheorem{ex}{}[section]
      renewcommand{theex}{arabic{ex}}
      newenvironment{Ex}[1]{begin{trivlist}item textsc{#1} %
      renewcommand{Currentlabel}{#1}}{end{trivlist}}



      usepackage{multicol}
      newenvironment{mtmulticols}[1]{%
      Writetofile{ans}{stringbegin{multicols}{#1}}
      begin{multicols}{#1}}{end{multicols}%
      Writetofile{ans}{stringend{multicols}}}



      Newassociation{solitem}{Solutionsubitem}{ans}
      renewcommand{Solutionsubitemlabel}[1]{#1}
      newenvironment{Solutionsublist}{Writetofile{ans}{stringbegin{Solution} {theex}}}{Writetofile{ans}{stringend{Solution}}}



      begin{document}
      chapter{Polynomials}
      section{Partial fractions}
      label{sec:partial-fractions}
      tracingmacros=1
      Opensolutionfile{ans}[partial-fractions]
      section*{Exercises for Section ref{sec:partial-fractions}}
      vspace{-0.6cm}
      hrulefill
      begin{Ex}{Warm-ups}
      end{Ex}
      begin{ex}
      Who is the most famous mathematician of all time?
      begin{sol}
      Euler
      end{sol}
      end{ex}
      begin{ex}
      Resolve each of the following proper rational expressions (some filler here) into partial fractions.
      begin{multicols}{3}
      begin{Solutionsublist}
      begin{enumerate}[label=(alph*)]
      item $displaystyle{frac{1}{(x - 1)(x - 2)}}$
      begin{solitem}
      $displaystyle{frac{1}{x - 2} - frac{1}{x - 1}}$
      end{solitem}
      item $displaystyle{frac{5x + 4}{x^2 + x - 2}}$
      begin{solitem}
      $displaystyle{frac{2}{x + 2} + frac{3}{x - 1}}$
      end{solitem}
      item $displaystyle{frac{7x - 1}{2x^2 - x - 1}}$
      begin{solitem}
      $displaystyle{frac{3}{2x + 1} + frac{2}{x - 1}}$
      end{solitem}
      item $displaystyle{frac{25}{18x^3 - 9x^2 - 11x + 2}}$
      begin{solitem}
      $displaystyle{frac{3}{3x + 2} - frac{12}{6x - 1} + frac{1}{x -
      1}}$
      end{solitem}
      item $displaystyle{frac{x^2 + 15x - 4}{(x + 1)(x + 2)(x - 8)}}$
      begin{solitem}
      $displaystyle{frac{2}{x - 8} + frac{2}{x + 1} - frac{3}{x +
      2}}$
      end{solitem}
      item $displaystyle{frac{48}{(x^2 - 1)(x^2 - 9)}}$
      begin{solitem}
      $displaystyle{frac{3}{x - 1} + frac{3}{x + 1} - frac{1}{x + 3}
      + frac{1}{x - 3}}$
      end{solitem}
      end{enumerate}
      end{Solutionsublist}
      end{multicols}
      end{ex}



      Closesolutionfile{ans}
      section*{Answers for Section ref{sec:partial-fractions}}
      input{partial-fractions}



      end{document}







      exam xsim points





      share












      share










      share



      share










      asked 8 mins ago









      FreemanFreeman

      808




      808






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473279%2fshowing-points-and-total-points-using-exercise-package-or-any-suitable-package%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473279%2fshowing-points-and-total-points-using-exercise-package-or-any-suitable-package%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          サソリ

          広島県道265号伴広島線

          Accessing regular linux commands in Huawei's Dopra Linux