Files
2026-10-23 19:56:37 +02:00

410 lines
17 KiB
Typst
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*––––––––––––––––––––––––––––––––––––––––––––––––––––Import some package––––––––––––––––––––––––––––––––––––––––––––––––––––*/
// you can remove those you don't use
#import "@preview/cetz:0.5.3" // to draw some goofy sketch
#import "@preview/cetz-plot:0.1.4" // to plot directly in typst
#import "@preview/wordometer:0.1.6": total-words, word-count // for count the words in the file
#show: word-count
// insert [the total word count is #total-words()] at the end of the document
/*–––––––––––––––––––––––––––––––––––––––––––––––––––––Setup the document–––––––––––––––––––––––––––––––––––––––––––––––––––––*/
#set page(
paper: "a4",
margin: 0.5in,
number-align: center,
numbering: "1"
)
#show figure.caption: it => [
*#it.supplement #context it.counter.display(it.numbering)* #it.separator #emph(it.body)
] // to have the "Figure 1" in bold and the caption italic
#show link: set text(blue)
#set text(size: 9pt)
#set par(first-line-indent: 1em, justify: true, spacing: 2mm)
#set list(indent: 1em)
#set footnote(numbering: "*")
#set math.equation(numbering: "(1)", number-align: bottom)
// the numbering of the section
// it's weirdly complexe to skip the abstract...
#set heading(
numbering: (..nums) => {
if nums.pos().at(0) != 1 {
let tmp = for i in range(nums.len()) {
if i == 0 {
(nums.at(0) - 1,)
} else {
(nums.at(i),)
}
}
numbering("1.", ..tmp)
}
}
)
#let ie = text(style: "italic")[i.e.]
#set page(columns: 2)
/*––––––––––––––––––––––––––––––––––––––––––––––––––––ARTICLE starts here––––––––––––––––––––––––––––––––––––––––––––––––––––*/
#place(
center + top,
float: true,
scope: "parent",
title[
#text(25pt)[Template for subatomic reports,\
rewrite for typst]
]
)
// Note: footnotes not working in parent scoped placement with two column mode. :/
#place(
center + top,
float: true,
scope: "parent",
align(
center,
text(18pt)[
#text(red)[*DOT NOT CHANGE the document setup*]\
You can use this template for other experiments but please verify with the corresponding instructor the number of pages, style etc...\
This rewrite was made by Gaspar Daguet \
*When you upload to moodle* :\
Please name your file EXP\#-SESSION1or2-GROUPETAG #footnote[The group TAG will be assigned on the moodle planning by the instructor.],\
#ie for experiment "alpha", session 1 and group A3\
File Name : alpha-S1-A3.pdf
#v(0.2cm)
])
)
#place(
center + top,
float: true,
scope: "parent",
[
#text(14pt)[
Author1 Name, Author 2 Name, Author 3 Name\
#v(1mm)
#datetime.today().display("[month repr:long] [day], [year]")
]
]
)
= Abstract
Here you should write a brief summary of the article. It provides an overview of the main findings and the purpose of the research. It also contains the main measurement value, _for example :_ $theta=3.4^circle.small plus.minus 0.2^circle.small$ which can be in agreement or not with the tabulated/theoretical values. The abstract is designed to give readers a quick understanding of the content and results of the paper.
= Introduction<intro>
The introduction provides background information on the topic of the
research. It outlines the problem, the significance of the study, and
the objectives. This section sets the stage for the detailed experiment
and results that follow.
#text(red)[
The main article SHOULD NOT go beyound 4-5 pages maximum
(i.e. with figures/tables etc...), this is ONLY required for subatomic,
other colleagues might have their own requirement please ask. The
exercice is also to select the relevant information and not swarm the
reader with repetitive or non-relevant information.
]
If more information (tables, figures, graphs, codes) need to be in-
cluded (example : figures for similar cases of measurements, etc...) use
the appendix. The appendices will not be read systematically only if
needed.
#text(red)[
Please start writing and filling the template on Monday, you can
include the ”raw” measurements, some bullet points, discussions with
colleagues or instructor, reflections etc... The best way is to use #link("https://typst.app")[typst website] for collaborative writing (because Overleaf is cap to two editing person).
]
= Experiment Description
== Material
This subsection describes the materials used in the experiment. It
includes details on the type and specifications of the materials, such
as:
- (Always use the compact format to win space)
- Material 1: Description
- Material 2: Description
- Material 3: Description
Below is a photo (or two if needed) of the experimental setup.
#text(red)[It is a requirement to precise where the High Voltages and the Low
voltages are connected on the setup.]
#figure(
grid(
columns: 2,
column-gutter: 1mm,
image("example-image-a.pdf", width: 100%), // Replace with your image file
image("example-image-b.pdf", width: 100%), // Replace with your image file
),
caption: [Experimental setup, caption must be more informative this
is an example.]
)
= Calibration
Calibration is an essential part of the experiment to ensure accuracy
and repeatability. This section describes the calibration procedure.
Below is a photo of the calibration function.\
\
*Discussion* In this paragraph, the results of the calibration are
discussed. It includes analysis of the calibration data, any issues en-
countered, and how they were resolved. The discussion can also be
written in a subsection. See for example the next section. Normally a
paragraph is better for a short discussions.
#figure(
grid(
columns: 2,
column-gutter: 1mm,
image("example-image-a.pdf", width: 100%), // Replace with your image file
image("example-image-b.pdf", width: 100%), // Replace with your image file
),
caption: [Energy and efficiency if needed, see above for caption
indications.]
)
#text(red)[Notice that every block/section (here it is the calibration) has an
explanatory paragraph followed, if need be, by a discussion, you can
add it as a subsection like it was done here. The discussions concerns
any point that need to be raised, such as an outlier measurement, large
errors etc...]
#text(red)[Normally the graphs, figures, tables, graphs related to a given sec-
tion are ”packed” in this section. The reader #underline[SHOULD NOT] look
around for the pictures ideally they are on the same or neighbouring
page.]
= Measurement
This section details the raw measurement made in the experiment (in
contrast with deduced or calculated measurements).
Raw measurements are typically what you read on a #link("https://en.wikipedia.org/wiki/Vernier_scale")[vernier scale]
with no further treatment. Every measurement should have an asso-
ciated uncertainty. If there’s many measurements use the appendix
and refer to it. See example below.
It also describes the procedures, mention the equipments, and tech-
niques used to obtain the data. Example : If there is supplementary
data that are important for the discussion they can be found here in
@table-1; *NB* : in some cases appendices could be indispensable to
judge the accuracy of the work. You should provide enough data for
the reader to be able to reproduce your calculated measurements.
== Discussion
In this subsection, the results of the measurement are discussed. It
includes critique of the measured data, any issues encountered, and
how they were resolved.
= Main findings : Results And Discussion
The results of the experiment are presented in this section, it mainly
includes the final *calculated* data and measurements, graphs, and
tables that summarize the findings.
== Discussion of result 1
In this subsection, the final result/conclusion are discussed in detail. It
includes analysis of the calculated data, it should answer the following
questions at minimum :
- Are the results in agreement with the expected value?
- If not then why? Is there a clear reason? An estimate? Areasonable guess?...
- What measured parameter or analysis method is at the origin of the anomalies? etc...
#figure(
grid(
columns: 2,
column-gutter: 2mm,
row-gutter: 0.5mm,
image("example-image-a.pdf", width: 100%), // Replace with your image file
image("example-image-b.pdf", width: 100%), // Replace with your image file
image("example-image-a.pdf", width: 100%), // Replace with your image file
image("example-image-b.pdf", width: 100%), // Replace with your image file
),
caption: [Graph showing the results, analysis, diagrams etc... take
out figures as needed.]
)
#text(red)[If you have several results you can create several subsections.]
= Conclusion
The conclusion summarizes the key findings of the experiment, dis-
cusses their implications, and suggests possible areas for future re-
search.
// = Word Count
// The number of words in the document : #total-words
== Referencing
You can reference sections with internal hyperlinks, like this: #link(<intro>)[Introduction] to send the reader to the introduction section.
Some referencing notes:
- Here’s a direct link to #link("https://www.feynmanlectures.caltech.edu/")[Feynman lectures].
- The #link("https://www.nndc.bnl.gov/")[National Nuclear Data Center], NNDC, collects, evaluates,
and disseminates nuclear physics data for basic nuclear research
and applied nuclear technologies.
- Library for gamma and alpha emissions #link("https://www.lnhb.fr/Laraweb/index.php")[Nucléide - Lara], useful
for inspecting decay data of radioactive nuclei.
- An example to cite a reference in the bibliography; Here’s an
article by Al-Khalili about Alhazen [3].
- An example to reference a website in the bibliography, IAEA
Live shart can be found in this reference [4].
= Bibliography
== #text(13pt)[*References*]
// In typst you should use the bibliography function with a .bib or yaml file
// but here I'm just put it by hand to copy the base latex template
#set par(first-line-indent: 0pt, hanging-indent: 1.5em) // just to copy the bibliography, remove it if you use the bibliography function
[1] Author Name, _Title_. Publisher or Journal, year.\
\
[2] Isaac Newton, _Opticks: or, a treatise of the reflexions, refractions, inflexions and colours of light_. First edition, 1704. http://cudl.lib.cam.ac.uk/view/MS-ADD-03970/.\
\
[3] Jim Al-Khalili, _In retrospect: Book of Optics_. Nature, Vol. 518, 2015. https://doi.org/10.1038/518164a\
\
[4] International Atomic Energy Agency (IAEA) _Live Chart of Nuclides_. Apr 2023 - Nov 2023. https://www-nds.iaea.org/relnsd/vcharthtml/VChartHTML.html.\
\
[5] _Wikipedia page : History of the scientific method_. https://en.wikipedia.org/wiki/History_of_scientific_method.\
\
[6] _Github page : Le-foucheur home page_. https://github.com/Le-foucheur
#counter(heading).update((first, second) => (0, second))
#set heading(numbering: "A.1.")
= Appendix : purpose or use <appendixA>
#set par(first-line-indent: 1em, hanging-indent: 0mm, spacing: 4mm) // to cancel the previous one in bibliography, like the other one remove it if you use the bibliography function
#text(red)[The appendix are not counted in the 4-5 pages of the report.]\
In case you use an appendix it should be referenced in the text such as Appendix #link(<appendixA>)[A] produced with this syntaxe `#link(<label>)[content]` or `@label` where label is a word choose by you. It gives the authors a space to put more explanation (see Appendix #link(<appendixB>)[B] for more details), for non fundamental data or explanation it is optional.
#text(red)[However if some measurements are presented “out of the blue” (i.e. parachutés) in the main text, with no data to support it, the use of referenced appendix is indispensable in order to provide the information without going beyond the allowed number of pages.]
= Appendix Contents <appendixB>
This Appendix contains what supplementary data and results that goes in an appendix in general.
+ *Raw Data or Detailed Tables*
- Large sets of raw data or results that are referenced but not included in the main text.
- Complex tables or figures that would disrupt the flow of the main document if placed within the core sections.
+ *Supplementary Figures or Charts*
- Additional graphs, charts, diagrams, or images that support the analysis but are not critical to the main discussion.
- Alternative or repetitive visualizations or versions of figures already present in the document.
+ *Supplementary Calculations*
- Detailed mathematical derivations, calculations, or proofs that support claims made in the main document but are too lengthy to include in the text.
+ *Technical or Methodological Details*
- Detailed descriptions of methodologies, procedures, or technical specifications that are essential but too extensive for the main text.
- Software code, algorithms, or scripts used for analyses or simulations. For code sharing in general it is better to use #link("https://github.com/archlinux")[github] or #link("https://about.gitlab.com/fr-fr/")[gitlab]. However this is not necessary in general.
+ *Extended Literature Review or Theoretical Explanations*
- Additional background information that is important but too detailed to be included in the main literature review.
- Extended explanations of theories or models referenced in the paper.
+ *Abbreviations or Glossaries*
- A glossary of terms or a list of abbreviations and acronyms used in the document, especially if extensive.
= Appendix example
== Raw Measurement Example
This part includes the raw data collected during the experiment. It presents the measurements in tabular form for detailed analysis, see @table-1.
== Formula Development
A similar section could be used to provide a detailed development of
the formulas used in the analysis. It includes derivations, explanations,
and any relevant mathematical steps.
=== Example : Error propagation formula
The general error propagation formula for a function f (x, y, z) with
three variables and including covariances is given by:
// Aligning with &: The & character is used to align the equation at a specific point across multiple lines.
// the real functionment of & is pretty weird in typst, it slice the equation block in several columns. Please refer to the Typst documentation
$
sigma_f^2 = &((partial f)/(partial x))^2 sigma_x^2 + ((partial f)/(partial y))^2 sigma_y^2 + ((partial f)/(partial z))^2 sigma_z^2\
&+ 2 ((partial f)/(partial x)) ((partial f)/(partial y)) "Cov"(x,y)\
&+ 2 ((partial f)/(partial x)) ((partial f)/(partial z)) "Cov"(x,z)\
&+ 2 ((partial f)/(partial y)) ((partial f)/(partial z)) "Cov"(y,z)\
$
Where:
- $sigma_f^2$: The variance of the function $f(x,y,z)$
- $(partial f)/(partial x), (partial f)/(partial y), (partial f)/(partial z)$: he partial derivatives of the function $f$ with respect to variables $x, y$ and $z$, respectively. These represent the sensityvity of the function $f$ to changes in each variable.
- $sigma_x^2, sigma_y^2, sigma_z^2$: The variances of the individual variables $x, y$ and $z$. These describe the uncertainties in the measurements or values of the variables
- $"Cov"(x,y), "Cov"(x,z), "Cov"(y, z)$: The covariances between pairs of variables. Covariance measures how two variables change to gether. If the covariance is positive, an increase in one variable tends to be associated with an increase in the other.
- The terms $2 ((partial f)/(partial x)) ((partial f)/(partial y)) "Cov"(x,y)$, $2 ((partial f)/(partial x)) ((partial f)/(partial z))"Cov"(x,z)$, and $2 ((partial f)/(partial y)) ((partial f)/(partial z))"Cov"(y,z)$ account for the covariances between the variables x, y and z.
And here’s a numbered equation with respect to the one above
$
E = m c^2
$
or the #underline[un]numbered equation if needed
#set math.equation(numbering: none)
$
E = m c^2
$
The above formula represents the mass-energy equivalence where
$E$ is the energy in joules, $m$ is the mass in kilogrammes, and $c$ is the
speed of light $m\/s$.
#set page(columns: 1)
#align(center + horizon)[
#figure(
table(
columns: 8,
align: center + horizon,
stroke: none,
table.hline(),
table.hline(y: 1),
table.hline(y: 5),
..for i in range(9) {(table.vline(x: i),)},
$P_1$, $delta P_1$,$P_2$, $delta P_2$,$P_3$, $delta P_3$,$C_1$, $delta C_1$,
..for i in range(32){
([Data ] + $#i$, )
}
),
caption: figure.caption(
position: top,
[Raw measurements collected during the experiment, P1 for parameter 1 or measured quantity 1 $delta$P1 for its uncertainty, C forcalculated etc..]
)
)<table-1>
]