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

Exercise title #89

Open
Vouivre opened this issue Nov 25, 2018 · 6 comments
Open

Exercise title #89

Vouivre opened this issue Nov 25, 2018 · 6 comments
Labels
Feature request Request new functionalities and features new feature New accepted feature

Comments

@Vouivre
Copy link

Vouivre commented Nov 25, 2018

Hi,

it would be very interesting to give a title to an exercise. For example:

Exercice 1. Speed of an airplane

Sometimes it's just a math exercise to solve, sometimes the exercise is related to a real life problem. In that case to add a title is a good point: it gives more sense.

I would add it as above. I still didn't use the point system, but I saw it's possible to customize the style. My proposal is to add a point or brackets next to "Exercise" and give the user the opportunity to customize the style of the title. Would it be possible to implement it ?

@Strauman Strauman added new feature New accepted feature Feature request Request new functionalities and features labels Nov 26, 2018
@Strauman
Copy link
Owner

Do you have a suggestion as to how the interface of this would be? I mean:

  • Where would you specify the problem title?
  • The part problem title I suggest would be specified used the \nextproblem command

@Strauman
Copy link
Owner

Strauman commented Nov 27, 2018

A temporary solution:

\DeclareExerciseCommand\problemtitle[1]{\stepcounter{problemcounter}%
	\strut{\vadjust{\vbox to 0pt{\hskip\pMarginLeft{\Large{\bfseries Exercice \theproblemcounter.} #1}}}}%
}
\makeset[nohead]{2}{\problemtitle{Speed of an airplane}, airplaneexercise}

@Vouivre
Copy link
Author

Vouivre commented Dec 5, 2018

Sorry, I didn't see your answer. I'll use your temporary solution if needed. But for me at the moment, the main problem is the point system.

I don't know how is your implementation. Perhaps it's easier for you in nextproblem, perhaps a parameter to the problem environment. The best is probably in the command \nextproblem.

@Vouivre
Copy link
Author

Vouivre commented Dec 8, 2018

After thinking about it, when you implement it, I would not choose something as "problemtitle". It was my first idea, but we could also:

  • use a star to show that it's a difficult problem
  • write "(optional)" if it's not for every students
  • Simply "Hard" or "Medium" to give an idea of the difficulty of a problem.

So at the end it won't be always a title. It would be rather some informations one the problem, why not probleminfo or something like that. Maybe you have a better idea.

@Vouivre
Copy link
Author

Vouivre commented Jan 29, 2019

Some more consideration: after discovering the package exercisepoints, something like

\begin{problem}[Problem title]
\end{problem}

Would be very easy to use. I don't know if it's possible.

In between I can use your solution if necessary. My needs changed a little bit:

  • I still need to write a title or "optional". In short: a string.
  • Perhaps a picture of a calculator to show that a student can use a calculator for the exercise. Probably there is not much to do, I would use \includegraphics here.

@Strauman
Copy link
Owner

That exact syntax would not be possible because of limitations of the comments package. I think \nextproblem would be the place to put it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Request new functionalities and features new feature New accepted feature
Projects
None yet
Development

No branches or pull requests

2 participants