diff --git a/src/01_intro.md b/src/01_intro.md index fa12d10..7082271 100644 --- a/src/01_intro.md +++ b/src/01_intro.md @@ -161,6 +161,20 @@ And a more simple table, with custom `HTML class` for styling. With the amount o All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. All human beings are born free and equal in dignity and rights. +And here goes a rather wide table (scrollable in x). Optionally, we can add a HTML `div` wrapper to set minimal column widths, or some other styling +spec. For `min-width`, the `class` options are: `c75`, `c100`,`c125`, `c150`, `c175`, `c200`, `c250`, `c300`, `cfull` (number corresponds to pixels). The +last one sets each column to full width of it's content. Note that this styling only applies to the HTML output. LaTeX is styled via the corresponding +LaTeX template. + +
+| column 1 | column 2 | column 3 | column 4 | column 5 | column 6 | column 7 | +| --- | --- | --- | --- | --- | --- | --- | +| All human | beings are born | free and equal | in dignity | and rights | Period. | Big row | +| All human | beings are born | free and equal | in dignity | and rights | End of sentence | check mobile | + +: A table with full column width (`class=cfull`) +
+ A LaTeX table (other tex snippets also possible) that will be ignored in HTML, but allowed in `PDF` and `Tex` formats. ```{=tex} diff --git a/src/_base.md b/src/_base.md index 0d21359..6915c54 100644 --- a/src/_base.md +++ b/src/_base.md @@ -69,11 +69,13 @@ author-meta: - Senne Van Baelen date-meta: 2024 +# options +code-lang: true # show code language in code blocks +code-copy: true # add copy-to-clipboard button in code blocks # Download other outputs: requires a .pdf/.tex with this name in your server directory # (-> can be compiled with $ cowkit -s --format pdf|tex|all) -# simply comment out to remove this button -download-pdf: index.pdf -download-tex: index.tex +download-pdf: index.pdf # comment out to remove button +download-tex: index.tex # comment out to remove button # Latex # ====== @@ -81,8 +83,8 @@ download-tex: index.tex # margin-right: 3cm # can also set in templates # ListOfX (in html, make a dedicated .md, e.g., with \listoffigures inside) -lof: false -lot: false +lof: false # we choose to manually set the location of the figure list via a .md file (appendix.md) +lot: false # we choose to manually set the location of the table list via a .md file (appendix.md) #lofTitle: | # # List of Figures # add {-} to skip section number diff --git a/src/scripts/code.js b/src/scripts/code.js index 6ae97be..9024fab 100644 --- a/src/scripts/code.js +++ b/src/scripts/code.js @@ -1,5 +1,7 @@ /* Additional code block functionality */ +const metaTrueStrings = ["true", "True", "1"]; + const copyIconSvg = `