To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 43823981 authored by Bengt Giger's avatar Bengt Giger
Browse files

Added 'details' element

parent deb6451b
Pipeline #97070 passed with stages
in 6 minutes and 25 seconds
......@@ -52,3 +52,8 @@ Additionally, a Pressbook template with the ability to disable the `wpautop` fun
## Example
See [the walkthrough](https://gitlab.ethz.ch/laweb/laweb/-/wikis/walkthrough/1-Example-Start) for a an example *Laweb* conversion from source to Pressbooks.
# Development and Roadmap
The further development of *Laweb* depends on your input. You may look for some software project financing, you may have skilled developers in your group which could devote some work to the project or you may even think about an [Innvovedum project application](https://ethz.ch/en/the-eth-zurich/education/innovedum/innovedum-fund.html) grant application.
......@@ -346,8 +346,17 @@ implementation of different browsers varies).
</p><!--l. 97--><p class="noindent" >
</p>
<h3 class="sectionHead"><span class="titlemark">3.2 </span> <a
id="x1-80003.2"></a>Geogebra Applets</h3>
<!--l. 98--><p class="noindent" >To embed interactive Geogebra applets, store them at the Geogebra site. Every
id="x1-80003.2"></a>Laweb Macros</h3>
<!--l. 98--><p class="noindent" ><span
class="cmsl-10x-x-109">Laweb</span>&#x00A0;adds some macros:
</p><!--l. 100--><p class="noindent" >
</p>
<h4 class="subsectionHead"><span class="titlemark">3.2.1 </span> <a
id="x1-90003.2.1"></a>Geogebra Applets</h4>
<!--l. 101--><p class="noindent" >To embed interactive Geogebra applets, store them at the Geogebra site. Every
applet gets a so called material_id, which is used as a mandatory parameter. The
height defaults to 500 (px), it may be overwritten with
......@@ -357,7 +366,7 @@ height defaults to 500 (px), it may be overwritten with
<pre class="verbatim" id="verbatim-1">
&#x005C;geogebra[650]{mc2EbNa6}
</pre>
<!--l. 102--><p class="nopar" >
<!--l. 105--><p class="nopar" >
</p>
<hr class="figure" /><div class="figure"
>
......@@ -365,18 +374,42 @@ height defaults to 500 (px), it may be overwritten with
<a
id="x1-80011"></a>
id="x1-90011"></a>
<!--l. 105--><p class="noindent" ><iframe height="650px" scrolling="no" src="https://www.geogebra.org/material/iframe/id/mc2EbNa6/width/720/height/650/border/888888/rc/false/ai/false/sdz/false/smb/false/stb/false/stbh/true/ld/false/sri/false" style="border:0px;" width="720px"></iframe>
<!--l. 108--><p class="noindent" ><iframe height="650px" scrolling="no" src="https://www.geogebra.org/material/iframe/id/mc2EbNa6/width/720/height/650/border/888888/rc/false/ai/false/sdz/false/smb/false/stb/false/stbh/true/ld/false/sri/false" style="border:0px;" width="720px"></iframe>
<br /> </p><div class="caption"
><span class="id">Figure&#x00A0;3.1: </span><span
class="content">Example of Geogebra applet</span></div><!--tex4ht:label?: x1-80011 -->
class="content">Example of Geogebra applet</span></div><!--tex4ht:label?: x1-90011 -->
</div><hr class="endfigure" />
<h4 class="subsectionHead"><span class="titlemark">3.2.2 </span> <a
id="x1-100003.2.2"></a>Expandable Boxes</h4>
<pre class="verbatim" id="verbatim-2">
&#x005C;details{What&#x00A0;is&#x00A0;hidden&#x00A0;here?}{An&#x00A0;expandable&#x00A0;box&#x00A0;with&#x00A0;explanations,&#x00A0;definitions&#x00A0;or&#x00A0;solutions}
</pre>
<!--l. 115--><p class="nopar" > <details><summary>What is hidden here?</summary>An expandable box with explanations, definitions or solutions</details>
</p><!--l. 119--><p class="noindent" >
</p>
<h4 class="subsectionHead"><span class="titlemark">3.2.3 </span> <a
id="x1-110003.2.3"></a>Verbatim HTML</h4>
<!--l. 121--><p class="noindent" >With the macro
</p>
<pre class="verbatim" id="verbatim-3">
&#x005C;webonly{Text&#x00A0;and&#x00A0;&#x003C;html-tags&#x003E;&#x003C;/html-tags&#x003E;}
</pre>
<!--l. 124--><p class="nopar" >
</p><!--l. 126--><p class="indent" > <img src="https://ethz.ch/de/news-und-veranstaltungen/eth-news/news/2021/06/verstehen-wie-viren-in-der-evolution-entstanden-sind/_jcr_content/news_content/fullwidthimage/image.imageformat.fullwidth.1518047974.jpg" alt="Random picture for demonstration purposes only">
</p>
</body>
</html>
......
......@@ -94,7 +94,10 @@ Mathematical expressions are converted to MathML, and MathJax is used to improve
MathJax is the preferred renderer. If JavaScript is disabled in a browser, or MathJax is not supported for any reason, the rendering will fall back to MathML. Be aware that MathML has its limitations (or: the MathML implementation of different browsers varies).
\section{Geogebra Applets}
\section{Laweb Macros}
\Laweb\ adds some macros:
\subsection{Geogebra Applets}
To embed interactive Geogebra applets, store them at the Geogebra site. Every applet gets a so called material\_id, which is used as a mandatory parameter. The height defaults to 500 (px), it may be overwritten with
\begin{verbatim}
......@@ -106,5 +109,20 @@ To embed interactive Geogebra applets, store them at the Geogebra site. Every ap
\caption{Example of Geogebra applet}
\end{figure}
\subsection{Expandable Boxes}
\begin{verbatim}
\details{What is hidden here?}{An expandable box with explanations, definitions or solutions}
\end{verbatim}
\details{What is hidden here?}{An expandable box with explanations, definitions or solutions}
\subsection{Verbatim HTML}
With the macro
\begin{verbatim}
\webonly{Text and <html-tags></html-tags>}
\end{verbatim}
\webonly{<img src="https://ethz.ch/de/news-und-veranstaltungen/eth-news/news/2021/06/verstehen-wie-viren-in-der-evolution-entstanden-sind/_jcr_content/news_content/fullwidthimage/image.imageformat.fullwidth.1518047974.jpg" alt="Random picture for demonstration purposes only">}
\end{document}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment