cgnieder / xsim

eXercise Sheets IMproved
65 stars 20 forks source link

\numberofexercise with space after #101

Closed MichaelHuck closed 2 years ago

MichaelHuck commented 2 years ago

Just add There are \numberofexercises~exercises in this chapter. to my document. Works.

There are \numberofexercises exercises in this chapter. Works not, I lose the space after the number: e.g. I get: There are 54exercises in this chapter. instead of There are 54 exercises in this chapter. I know, this is a minor issue.

Michael

cgnieder commented 2 years ago

This is a standard behaviour of TeX/LaTeX macros. The space terminates the macro but maybe no space in the output is wanted (e.g. the \TeX book).

See also https://tex.stackexchange.com/q/31091/5049 for example.