Macros in an activity/ximera

(a)
\pdfOnly
Counterpart of begin{onlineOnly}...end{onlineOnly} , but for somewhat unclear reasons as a command instead of an environment. The content therefore does not appear in the HTML. \pdfOnly can exceptionally also be used for constructions that do not work (well) in HTML.
(b)
Links or iframes with interactive content: \youtube, \geogebra and \desmos, \graph and \sageCell
Show Youtube (for specified id), Geogebra app or Desmos app (for specified link). With \graph, you show a Desmos graph of specified code.

The link is shown in the PDF (Todo: also automatically add QR code where possible?)

             \graph{y=x^2}
      
    
(c)
in preamble.tex and the packages included there, various other macros are defined. Most TeX packages can be used, but some do not have TeX4HT support, so they do not work (well) in the online version!

Macros in a xourse

(a)
\activitychapter and \practicesection : respectively include a (theory-)activity as a new ’chapter’ or an (exercises-)activity as a new ’section’ in the current chapter. The ’practicesections’ are colored blue in the online table of contents to indicate that they are exercise pages.

\activitychapter and \practicesection are wrappers around the standard Ximera command \activity.

(b)
in printstyle.sty, some defaults are set that can or cannot be overwritten in a xourse (or with the necessary caution also in an activity):
             \setcounter{secnumdepth}{6}    % number sections up to 6 levels deep, e.g. 6.5.4.3.2.1
      
        \setcounter{tocdepth}{1}       % limit the table of contents to 6.5  
 
        % base URL for QR codes that can optionally be printed in the margin of an activity  
        \def\xmbaseurl{https://set.kuleuven.be/voorkennis/zomercursus/handboekB/}  
        \printactivityqrcodetrue  
 
 
        \handouttrue                   % force handout mode (i.e., without solutions)  
        \hintstrue                     % print hints  
 
        \printpartfrontpagetrue        % print a title page for each \part  
 
        \printbasicversiontrue         % create a ’basic’ version (see basicOnly/basicSkip environment)  
    
2024-07-15 10:40:11