Skip to content

Instantly share code, notes, and snippets.

@dralletje
Created September 18, 2020 15:17
Show Gist options
  • Save dralletje/edd382feba2523b3aab891fdf4f3319f to your computer and use it in GitHub Desktop.
Save dralletje/edd382feba2523b3aab891fdf4f3319f to your computer and use it in GitHub Desktop.
### A Pluto.jl notebook ###
# v0.11.14
using Markdown
using InteractiveUtils
# ╔═╡ c58752e4-f038-11ea-0726-f98f4287c9f4
md"""
# Use counter in Pluto
Made for [Pluto #449](https://github.com/fonsp/Pluto.jl/issues/449)
"""
# ╔═╡ 923fb8c2-f9bd-11ea-3baf-15c7a4297858
html"""<style>
pluto-notebook {
counter-reset: section;
}
pluto-notebook h2 {
counter-reset: subsection;
}
pluto-notebook h2:before {
counter-increment: section;
content: "" counter(section) ". ";
}
pluto-notebook h3:before {
counter-increment: subsection;
content: counter(section) "." counter(subsection) " ";
}
"""
# ╔═╡ a66b15da-f9bd-11ea-0c02-abe8756f79de
md"""
## Introduction
Here is some explanation.
I'm not an academic what is this.
"""
# ╔═╡ d2ee37b0-f9bd-11ea-2e1e-a30d5c5d6c58
md"""
### Do introductions have subsections?
I wouldn't know
"""
# ╔═╡ 38bd67ac-f9c1-11ea-0970-ef7baf223d8c
md"""
### Well I guess they do now
Hey there, you're a rock start.
"""
# ╔═╡ 46cfbe6a-f9c1-11ea-255f-79693473b14a
md"""
## Not-introduction
"""
# ╔═╡ 561668b0-f9c1-11ea-26a3-73666182abc0
md"""
### Very important
Stuff
### Other stuff
More stuff
"""
# ╔═╡ Cell order:
# ╟─c58752e4-f038-11ea-0726-f98f4287c9f4
# ╠═923fb8c2-f9bd-11ea-3baf-15c7a4297858
# ╟─a66b15da-f9bd-11ea-0c02-abe8756f79de
# ╟─d2ee37b0-f9bd-11ea-2e1e-a30d5c5d6c58
# ╟─38bd67ac-f9c1-11ea-0970-ef7baf223d8c
# ╟─46cfbe6a-f9c1-11ea-255f-79693473b14a
# ╠═561668b0-f9c1-11ea-26a3-73666182abc0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment