marky
Quickstart Source2021-09-09
Abstract – This is the source code of the
marky
Example document for illustratingmarky
markup using simple examples. This document represents themarky
source code before processing python code embedded into the document itself. For documentation and download please refer to themarky
repository.
---
"`marky` Example"
title:
date: Date
author: Name-citations: true
link/marky.bib
bibliography: data-includes--pdf: >
header\hypersetup{colorlinks=false,
={0 0 0},
allbordercolors={/S/U/W 1}}
pdfborderstyle-includes--html: >
header<style>* { box-sizing: border-box; }</style>
-cleveref: true
xnos-capitalise: true
xnos11pt
fontsize:
---
> **Abstract** -- This is a `marky` example document for
> illustrating `marky` markup. The `marky` source code of this
> document can be read [here](example-src.html).
> For more information please refer to the
> [`marky` repository](https://github.com/lehmann7/marky),
> [`marky` documentation](marky.html) or the
> [`marky` quickstart](quickstart.html).
---
# Referenced Section {#sec:label}
is a reference to @sec:label.
This
{#fig:label}
is a reference to @fig:label.
This
|B |C |D
A ---|---|---|---
000|111|444|555
222|333|666|777
is the caption {#tbl:label}
Table: This
is a reference to @tbl:label.
This
\mbox{e}^{\mbox{i}\pi}+1=0$${#eq:label}
$$
is a reference to @eq:label.
This
is a citation [@Muller1993].
This
# `marky` Markup for Execution of Embedded Python Code
**Displayed Code, Executed**
!
```import math
def list_and(l):
return ", ".join(str(i) for i in l[:-1]) + " and " + str(l[-1])
= 2
x = math.sqrt(x)
y
```
**Hidden Code, Executed**
!!
```print("Hello Console!")
```
**Displayed Code, Not Executed**
```python= 3
x
```
**Inline Formatted Output**
=`!x`$ is `!y:.3f`.
The square root of $x
**Inline Expression**
!list_and(range(10))`.
The first ten numbers are `
**Format Links**
```mdfile.???)
[Link to document](
```
will be proprocessed into the following text:* for `html`: `[Link to document](file.html)`
* for `pdf`: `[Link to document](file.pdf)`
[Link to this document](example.html)
**Format Codes**
!
```def html_FMTCODE(): return "H<sup>T</sup><sub>M</sub>L"
def pdf_FMTCODE(): return "\LaTeX"
```
is a `?_FMTCODE()` document.
This
---
*Thanks for reading, please try `marky`.*
---
# References {-}