diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/xsim/xsim.random.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/xsim/xsim.random.code.tex | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/xsim/xsim.random.code.tex b/Master/texmf-dist/tex/latex/xsim/xsim.random.code.tex index 0730d04d454..e8bddf2a10d 100644 --- a/Master/texmf-dist/tex/latex/xsim/xsim.random.code.tex +++ b/Master/texmf-dist/tex/latex/xsim/xsim.random.code.tex @@ -8,7 +8,7 @@ % Web: https://github.com/cgnieder/xsim % E-Mail: contact@mychemistry.eu % ---------------------------------------------------------------------------- -% Copyright 2017 Clemens Niederberger +% Copyright 2017--2018 Clemens Niederberger % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -27,6 +27,16 @@ % ---------------------------------------------------------------------------- \XSIMmodule{random}{randomly select exercises from collections} +\msg_new:nnn {xsim} {random-numbers-unavailable} + { + You~ are~ compiling~ your~ document~ using ~XeLaTeX.~ Please~ be~ aware~ + that~ random~ selection~ of~ exercises~ is~ unavailable~ in~ XeLaTeX.~ If~ + you~ use~ this~ feature~ you~ can~ safely~ ignore~ this~ message. + } + +\sys_if_engine_xetex:T + { \msg_warning:nn {xsim} {random-numbers-unavailable} } + \xsim_load_modules:n {collections} \tl_new:N \l_xsim_random_collection_tl |