12/2/22
Python
, R
,Julia
(Choose one of them)javascript
lua
html
, pdf
, docx
, pptx
and more.python
as a backend and observable javascript
as a frontendvscode
as an editor with quarto vscode-extensionxelatex
for pdf
outputrevealjs
slidepdf
Markdown
is basically a simple and readerable markup which can be converted into html
. Quarto is based on Pandoc
markdown.
For example, the output of *italics* and **bold**
is italics and bold.
Link: Markdown Basics
The document yaml
contains options and metadata
. We can put options of a output format
.
For revealjs
slide,
For pdf
,
Each slide is defined with a level 2 heading (##
).
Make a Trigometry lecture.
ojs
)data
on the webObservable notebooks
are made of cell
s.Cell
is markdown
, html
or observable javascript
.Observable Javascript
is almost javascript with a automatic dataflow.Note: ojs
is only working with html
type output.
To embed a value from ojs
, use ${expr}
where expr
is a variable or expression (inline code). To deliver a data from python
to ojs
, we use ojs_define
function.
Please, move \(\theta\) to see the corresponding reference angle of \(\theta\).
Note: This ojs
is made using Geogebra
.
ojs
on pdf
outputTo prevent from running ojs
for pdf
output,
we can hide ojs
code using {.content-hidden when-format="pdf"}
with a block ::: :::
include
shortcodeIncludes are a convenient way to re-use content across documents. To include a file, add the {{< include >}}
shortcode at the location in your document where you want it included:
Use exam
class in latex
to make a short exam.
matplotlib
to plot a right triangle.sympy
for symbolic computationslatex-environment
Pandoc
ignores other formats within a Latex environment. This extension is useful when you’d like to share content between LaTeX and other formats, but need the content to be placed in an environment when emitting LaTeX.
quarto
is still in development.html
may not work for revealjs
spaces
matters. Please, check whether you put enough spaces among blocks.Using playwright
, we can run ojs
or js
code on python
.
This example shows how to get SVG from a python
code with jsxgraph
js library.
Any question?