It is now possible to 'log in' to the HTML version of a PreTeXt
textbook. The publisher can choose to enable logging in, and
if it is enabled, logging in can be required, or not. And whether
or not it is required, a 'guest' login can be allowed, or not.
Other options will be available in the future.
The current default is that logging in is enabled but not
required, and it is possible to log in as a guest.
The point of logging in is to activate additional features. At the
moment, the only such feature is allowing 'reading questions' to be
answered in the text.
Suggestions for other use cases are welcome.
To try out the current setup, go to the sample article:
http://mathbook.pugetsound.edu/examples/sample-article/html/interesting-corollary.html
and scroll down to Section 4.2.5 .
You won't see anything special, because you are not logged in.
To log in, scroll up to the top and hover your mouse near the
top-right of the page, maybe a quarter-inch down and a half-inch
from the right. The word "login" will appear. Click it,
and then log in as 'guest' with password 'guest'. (Note: the
login link may be outside the banner at the top.)
Now if you scroll down to the reading questions, you will see
a little "Answer -->" link after each question. Click it and
you will be able to enter your answer.
What is supposed to happen is that, when you are logged in,
your computer will remember your answer(s). Eventually you
will be able to share data across multiple devices, but for now
it only uses local storage.
Currently there are accessibility issues, and it may not work
well on mobile devices.
You can enter inline math LaTeX using $...$ or \(...\) delimiters,
and inline AsciiMath using backticks `...` as delimiters. Except
for math, the answer has to be plain text.
I would appreciate hearing of reasonable answer markup that is
not handled properly. In particular, if you have bought into
the myth that dollar sign math delimiters are a bad idea because
of possible confusion with other uses of dollar signs, note that
the following nonsensical answer behaves as expected:
The optimal price of apples is $2 if $3<n<10$ & $4\le m$, and
$4 otherwise, except when `z<=e^0.7`. The first option is
better for consumers because $2 < $4.
Note also that white space is preserved, so a copy-paste
of the above answer does not look good because the lines are
wider than the answer box.
Suggestions are welcomed for other features to enable when
logged in. If there were an 'instructor mode', what would be
different?
Regards,
David
ps. There was a report of this feature not working properly in an
older browser.