diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/xsim/xsim-manual.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/xsim/xsim-manual.cls | 61 |
1 files changed, 51 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/xsim/xsim-manual.cls b/Master/texmf-dist/tex/latex/xsim/xsim-manual.cls index 23fb8db3f24..1db5337a58b 100644 --- a/Master/texmf-dist/tex/latex/xsim/xsim-manual.cls +++ b/Master/texmf-dist/tex/latex/xsim/xsim-manual.cls @@ -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 @@ -126,6 +126,12 @@ IfExerciseTypeGoalsSumF , IfExerciseTypeGoalsSumT , IfExerciseTypeGoalsSumTF , + IfExerciseTagSetF , + IfExerciseTagSetT , + IfExerciseTagSetTF , + IfExerciseTopicSetF , + IfExerciseTopicSetT , + IfExerciseTopicSetTF , IfInsideSolutionF , IfInsideSolutionT , IfInsideSolutionTF , @@ -143,6 +149,7 @@ printsolutions , printsolutionstype , PropertyValue , + ProvideExerciseTagging , SaveExerciseProperty , SetExerciseParameter , SetExerciseParameters , @@ -678,6 +685,38 @@ % ---------------------------------------------------------------------------- +\ExplSyntaxOn +\cs_set:Npn \__xsim_get_texsx_number:w texsx- #1 \q_stop: {#1} +\cs_set:Npn \__xsim_get_texwelt_number:w texwelt- #1 \q_stop: {#1} +\cs_set:Npn \__xsim_get_golatex_number:w golatex- #1 \q_stop: {#1} + +\newcommand* \xsim@example@links [1] { + \href { \xsim@example@texfile@path {#1} } { \color{white} [\TeX] } ~ + \href { \xsim@example@pdffile@path {#1} } { \color{white} [PDF] } + \tl_if_in:nnT {#1} {texsx} + { + \tl_set:Nx \l_tmpa_tl { \__xsim_get_texsx_number:w #1 \q_stop: } + \space \href + { https \c_colon_str //tex.stackexchange.com/q/ \l_tmpa_tl / } + { \color {white} [forum] } + } + \tl_if_in:nnT {#1} {texwelt} + { + \tl_set:Nx \l_tmpa_tl { \__xsim_get_texwelt_number:w #1 \q_stop: } + \space \href + { http \c_colon_str //texwelt.de/wissen/fragen/ \l_tmpa_tl / } + { \color {white} [forum] } + } + \tl_if_in:nnT {#1} {golatex} + { + \tl_set:Nx \l_tmpa_tl { \__xsim_get_golatex_number:w #1 \q_stop: } + \space \href + { http \c_colon_str //golatex.de/viewtopic,p, \l_tmpa_tl .html } + { \color {white} [forum] } + } +} +\ExplSyntaxOff + \newcounter{examplefile} \newcounter{examplefiles} \newcommand*\xsim@add@example[1]{% @@ -695,8 +734,7 @@ sidebyside gap=0pt, lower separated=false, title=Example~\theexamplefile\ \enquote{\texttt{##1}} - \href{\xsim@example@texfile@path{##1}}{\color{white}[\TeX]} - \href{\xsim@example@pdffile@path{##1}}{\color{white}[PDF]}% + \xsim@example@links{##1}% ] \bookmark[level=2,dest=examplefile.\arabic{examplefile}]{Example~\theexamplefile\ (##1)}% \lstinputlisting[style=cnltx,lastline=10]{\xsim@example@texfile@path{##1}} @@ -739,10 +777,11 @@ \xsim@add@example{texsx-369803} \xsim@add@example{texsx-370642} \xsim@add@example{texsx-391530} +\xsim@add@example{texsx-395273} \xsim@add@example{texwelt-6698} \xsim@add@example{texwelt-15093} -\xsim@add@example{golatex-16824} -\xsim@add@example{golatex-18844} +\xsim@add@example{golatex-80640} +\xsim@add@example{golatex-91339} % ---------------------------------------------------------------------------- @@ -771,11 +810,13 @@ \xsim@add@layout{runin}[\renewcommand*\theexercise{\arabic{exercise}.}] \xsim@add@layout{margin}[\renewcommand*\theexercise{\arabic{exercise}.}] -\xsim@add@version{0.8} {2017-05-18} -\xsim@add@version{0.8a} {2017-05-19} -\xsim@add@version{0.8b} {2017-05-23} -\xsim@add@version{0.9} {2017-06-20} -\xsim@add@version{0.10} {2017-09-19} +\xsim@add@version{0.8} {2017-05-18} +\xsim@add@version{0.8a} {2017-05-19} +\xsim@add@version{0.8b} {2017-05-23} +\xsim@add@version{0.9} {2017-06-20} +\xsim@add@version{0.10} {2017-09-19} +\xsim@add@version{0.10a} {2017-10-04} +\xsim@add@version{0.11} {2018-02-12} % ---------------------------------------------------------------------------- \endinput |