Exam, LyX and compiling

Stef Pillaert stef.pillaert at kuleuven.be
Mon Jun 8 11:41:03 UTC 2026


See the file MWE3.lyx.
Compile it (ctrl-R): it shows in the pdf correctly this:
[cid:c9f1d98b-e3d6-445a-b69c-2aeb341e05f8]
Then, without saving, change the point value for question 2 to 5:
[cid:ec10634c-ad11-4187-bbb7-e1d65a0403e7]
Ctrl-R shows the same (= wrong) total of points (= 3,5 P) in the output, same as the first screenshot. It should be 7,5 P
Then add a space behind "Question 2":
[cid:078504af-aefa-4e10-9f9f-11c219df1d25]
Ctrl-R shows the correct heading now:
[cid:946f4021-c328-4fcc-af01-c1d18a9809d8]
Then, add an extra page with lines at the end of the exam:
[cid:cbfcc55a-9f9d-4353-a23b-72ef72bc9f83]
Ctrl-R shows an extra page, but the total number of pages is wrong:
[cid:76c55144-b6f7-4cba-a813-533f5814cde4]
Again, adding some space at the end of some line repairs this behaviour.

Hope this is clear. If not, I'll make a video to demonstrate the behaviour?
Thanks for your time.
Stef


________________________________
Van: lyx-users <lyx-users-bounces at lists.lyx.org> namens Scott Kostyshak via lyx-users <lyx-users at lists.lyx.org>
Verzonden: maandag 8 juni 2026 12:40
Aan: lyx-users at lists.lyx.org <lyx-users at lists.lyx.org>
Onderwerp: Re: Exam, LyX and compiling

On Mon, Jun 08, 2026 at 10:28:49AM +0000, Stef Pillaert via lyx-users wrote:
> Hello
> I use the exam.layout. I use \numpoints and \numpages. I work on Windows, LyX 2.5.1
> Often those numbers are not correct when I make changes and compile using ctrl-R.
> I can make them correct in the pdf, by adding e.g. a space somewhere in the document, and then ctrl-R again.
> Is this normal behaviour? Can this be solved?
> Thanks
> Stef

This may be solvable. Can you please post a simple example file (respond
to lyx-users) and instructions for how to reproduce the problem?

Thanks,
Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20260608/51ba1c5c/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 5110 bytes
Desc: image.png
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20260608/51ba1c5c/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 3537 bytes
Desc: image.png
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20260608/51ba1c5c/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 3298 bytes
Desc: image.png
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20260608/51ba1c5c/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 4713 bytes
Desc: image.png
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20260608/51ba1c5c/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 34780 bytes
Desc: image.png
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20260608/51ba1c5c/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 4995 bytes
Desc: image.png
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20260608/51ba1c5c/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MWE3.lyx
Type: application/lyx
Size: 8426 bytes
Desc: MWE3.lyx
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20260608/51ba1c5c/attachment-0001.bin>


More information about the lyx-users mailing list