SelfscribeDownloadOpen the app

Research paper

Footnotes, citations and a reference list that number and link themselves.

Document · Advanced · uses maths, table

Edit it in the playgroundRead the file

What it shows

Write a paper whose footnotes, citations and reference list number and link themselves.

What you learn

The academic look, a title block from line rules, citations numbered in the order they are made, a reference list of the sources cited, footnotes, a numbered table, numbered equations, a glossary that marks its terms, a callout.

Try this

  • Move the Discussion above the Results, and the footnotes renumber in their new order.
  • Delete both citations of [@oke1982], and Oke's paper leaves the reference list.
  • Add a line style author-year to the sources block, and every citation reads like (Oke 1982).
examples/research-paper.self · 162 lines
~~~ selfscribe
# Lesson: Write a paper whose footnotes, citations and reference list number and link themselves.
# You learn: the academic look, a title block from line rules, citations numbered in the order they are made, a reference list of the sources cited, footnotes, a numbered table, numbered equations, a glossary that marks its terms, a callout.
# Try this: move the Discussion above the Results, and the footnotes renumber in their new order.
# Try this: delete both citations of [@oke1982], and Oke's paper leaves the reference list.
# Try this: add a line style author-year to the sources block, and every citation reads like (Oke 1982).
# summary: Footnotes, citations and a reference list that number and link themselves.
# category: study
# tags: document, advanced, school
# uses: maths, table
use markdown
set title Research paper
# One word gives the whole page the look of a journal article.
set style academic

# ---- The title block: a line starting "Preprint:", "Authors:", "From:", "Abstract:" or "Keywords:"
line    Preprint: _       -> div.preprint
line    Authors: _        -> div.authors
line    From: _           -> div.from
line    Abstract: _       -> div.abstract
line    Keywords: _       -> div.keywords
class preprint  { text-align: center; font: 600 0.72em/1.4 var(--doc-font-ui); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; margin-bottom: 0.4em }
class preprint::before { content: "Preprint · " }
class authors   { text-align: center; font-size: 1.08em; margin-bottom: 0.3em }
class from      { text-align: center; font-size: 0.84em; font-style: italic; opacity: 0.7; margin-bottom: 1.6em }
class abstract  { font-size: 0.93em; line-height: 1.55; padding: 1em 1.3em; border-radius: 4px; background: color-mix(in srgb, currentColor 4.5%, transparent); border-top: 2px solid color-mix(in srgb, currentColor 55%, transparent) }
class abstract::before { content: "Abstract"; display: block; font: 700 0.76em/1 var(--doc-font-ui); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.6em }
class keywords  { font-size: 0.84em; padding: 0.6em 1.5em 1.4em }
class keywords::before { content: "Keywords  "; font-weight: 700 }

# ---- Citations: "[@key]" cites a source, numbered in the order it is first cited --------
# The sources are a ```sources block, one a line: "[key]" and then the reference as it reads.
# The list shows only the sources cited, in that order, each linked back to its citations.
inline  [@_]                 -> sources  verbatim
block   ``` sources ... ```  -> sources  verbatim

# ---- "::: table {#name} Caption" ... ":::": a table numbered Table 1; "[@tbl:name]" refers to it
block   ::: table {#_} _ ... :::  -> numbered kind=table label=_1 caption=_2
inline  [@tbl:_]          -> ref kind=table

# ---- Maths: "$x$" in a line, "$$ ... $$" on its own, "$$ {#name}" numbered -------------
block   $$ {#_} ... $$    -> equation label=_1 verbatim
block   $$ ... $$         -> math verbatim
inline  $_$               -> math verbatim
# "[@eq:name]" points at a numbered equation and shows its number.
inline  [@eq:_]           -> eqref

# ---- "*[TERM]: meaning": a glossary entry; the term is marked wherever it appears ------
line    *[_]: _           -> glossary key=_1  group dl

# ---- "::: tip Title" ... ":::": a callout box with an icon -----------------------------
block   ::: _ ... :::     -> callout kind=_1
~~~
Preprint: University of Wexcombe · 18 November 2026

# Street trees and summer heat: a walking survey of 36 streets

Authors: Amara Okafor¹, Lukas Brandt² and Mei Lin Tan¹

From: ¹ Geography, University of Wexcombe · ² Parks and Trees, Wexcombe City Council

Abstract: On three hot afternoons in July 2026 we walked 36 residential streets with a thermometer and an infrared camera. Air at head height was 1.9 °C cooler on the streets with the most tree cover than on those with the least, and pavement in shade was about 15 °C cooler than pavement in sun. The cooling grew fastest once a street's canopy passed about 40 per cent. Planting to close gaps in a canopy may cool a street more than spreading the same trees thinly.

Keywords: street trees · urban heat · canopy cover · walking survey

## Introduction

A city is warmer than the country around it, most of all on clear, still evenings [@oke1982]. Trees cool a street in two ways: their crowns shade the ground, and their leaves give off water.[^leaves] Parks are on average about 1 °C cooler than built-up land by day [@bowler2010], and across European cities the ground under trees is several degrees cooler than built-up ground in summer [@schwaab2021].

Less is known about single streets, where most people walk, wait for a bus or sit outside a café. A city that plants 500 trees a year has to choose between many streets with a few new trees each and a few streets with many. This paper asks how much a street cools as its canopy grows, and whether the cooling is even.

## Methods

We chose 36 residential streets of similar width, 12 to 16 m between buildings, and with no park within 200 m. Canopy cover is the share of a street's area under tree crowns, drawn from aerial photographs taken in June 2025.[^canopy] We also noted the species and DBH of every street tree.

On 14, 15 and 22 July 2026, between 14:00 and 16:00, two of us walked each street and read the air temperature at 1.5 m every 50 m. An infrared camera recorded the pavement in sun and in shade at the same points. For street $i$ we fitted

$$ {#model}
T_i = \alpha + \beta\,C_i + \gamma\,W_i + \varepsilon_i
$$

where $T_i$ is the mean afternoon air temperature, $C_i$ the canopy cover in per cent and $W_i$ the street's width in metres. The cooling from ten more points of canopy is then

$$ {#ten}
\Delta T_{10} = -10\,\beta
$$

## Results

[@tbl:bands] gives the means for five bands of canopy cover. Air temperature falls from 33.6 °C on the barest streets to 31.7 °C on the leafiest, a difference of 1.9 °C. Shaded pavement stays within 3 °C of the air, while pavement in sun reaches 51 °C.

::: table {#bands} Afternoon air, and pavement in sun and in shade, by canopy cover: means of three days in °C
| Canopy cover | Streets | Air | Pavement, sun | Pavement, shade |
|---|---|---|---|---|
| under 10 % | 7 | 33.6 | 51.2 | 36.4 |
| 10 to 25 % | 9 | 33.3 | 50.8 | 35.6 |
| 25 to 40 % | 8 | 33.0 | 50.1 | 35.0 |
| 40 to 55 % | 7 | 32.3 | 49.6 | 34.1 |
| over 55 % | 5 | 31.7 | 48.9 | 33.2 |
:::

Fitting equation [@eq:model] gives $\beta = -0.034$ °C per point of canopy ($R^2 = 0.71$), so by equation [@eq:ten]

$$
\Delta T_{10} = -10 \times (-0.034) \approx 0.34\ ^{\circ}\mathrm{C}
$$

of cooling for ten more points of canopy. The steps between bands are not even: 0.3 °C below 40 per cent, and 0.6 to 0.7 °C above it.

## Discussion

Our cooling per point of canopy is close to what block-scale studies with fixed sensors report, and the steeper cooling above 40 per cent matches the threshold found in Madison, Wisconsin [@ziter2019]. A walking survey cannot see the evening, when the UHI is strongest [@oke1982], so the cooling we measured is probably the smaller part of what trees give.[^evening]

The pavement figures matter more to people on foot than the air does. Satellite LST maps show the same contrast across whole cities [@schwaab2021], but on a single street it decides whether a bench or a bus stop can be used at 15:00.

::: tip For planners
Close gaps first. In our streets the cooling grew fastest between 40 and 60 per cent cover, so a street near 40 per cent gains more from ten new trees than a bare street does.
:::

## Conclusion

Street trees cooled the air of a residential street by about a third of a degree for every ten points of canopy, and by more once the canopy was dense. Shade, not air, made the largest difference to the pavement underfoot.

## Glossary

*[UHI]: Urban heat island: a city warmer than the country around it
*[LST]: Land surface temperature, measured from above by satellite

## Notes

[^leaves]: Water evaporating from leaves takes heat from the air around them, as sweat does from skin.
[^canopy]: Crowns were traced by hand on the city's 2025 photographs at 25 cm per pixel.
[^evening]: All three afternoons were clear and almost still. Wind would narrow the gaps between streets.

## References

```sources
[oke1982] Oke, T. R. (1982). The energetic basis of the urban heat island. *Quarterly Journal of the Royal Meteorological Society* 108(455), 1–24. https://doi.org/10.1002/qj.49710845502
[bowler2010] Bowler, D. E., Buyung-Ali, L. M., Knight, T. M., & Pullin, A. S. (2010). Urban greening to cool towns and cities: a systematic review of the empirical evidence. *Landscape and Urban Planning* 97(3), 147–155. https://doi.org/10.1016/j.landurbplan.2010.05.006
[stewart2012] Stewart, I. D., & Oke, T. R. (2012). Local climate zones for urban temperature studies. *Bulletin of the American Meteorological Society* 93(12), 1879–1900. https://doi.org/10.1175/BAMS-D-11-00019.1
[schwaab2021] Schwaab, J., Meier, R., Mussetti, G., Seneviratne, S., Bürgi, C., & Davin, E. L. (2021). The role of urban trees in reducing land surface temperatures in European cities. *Nature Communications* 12, 6763. https://doi.org/10.1038/s41467-021-26768-w
[ziter2019] Ziter, C. D., Pedersen, E. J., Kucharik, C. J., & Turner, M. G. (2019). Scale-dependent interactions between tree canopy cover and impervious surfaces reduce daytime urban heat during summer. *Proceedings of the National Academy of Sciences* 116(15), 7575–7580. https://doi.org/10.1073/pnas.1817561116
```

---

## How it's made

- **The title block** is five line rules. A line starting `Preprint:`, `Authors:`, `From:`, `Abstract:` or `Keywords:` becomes a box with a class, styled once in the rules block. `set style academic` does the rest of the page.
- **Citations.** `[@ziter2019]` finds the line `[ziter2019]` in the `sources` block under References, and reads [4]: citations are numbered in the order they are first made. The list shows the sources the paper cites, in that order, each with a link back to its citations. Stewart and Oke's paper is in the block but cited nowhere, so it is not listed.
- **Footnotes** are `[^leaves]` in a sentence and `[^leaves]: text` under Notes. They number themselves in the order they first appear.
- **Numbers and terms.** `::: table {#bands}` is Table 1, and `[@tbl:bands]` says so. `$$ {#model}` numbers an equation, and `[@eq:model]` shows the number. A line `*[UHI]: meaning` marks every UHI in the text, with the meaning on hover.

## Try it yourself

1. Move the whole Discussion above the Results. The footnotes renumber in their new order.
2. Delete `[@oke1982]` from the first sentence of the Introduction and from the Discussion. Oke's paper leaves the reference list, and the others number themselves again from [1].
3. Change `[@oke1982]` in the first sentence to `[@oke1982; @stewart2012]`. Stewart and Oke's paper joins the list as [2], and the papers after it move down one.
4. Add a line `style author-year` at the top of the `sources` block. Each citation then reads like (Ziter et al. 2019), and the list is sorted by name.
5. Add `*[DBH]: Diameter at breast height, how foresters measure a trunk` under Glossary. DBH in the Methods is marked, with its meaning on hover.

Next: *Lab report* numbers its figures and draws a chart from its data; *Maths notes* writes theorems and proofs.