::: Materials
- Computer
- We recommend using VS code with the Live Server extension
- Optionally, you should install the Spell Right extension to catch typos in markdown files
- Unless you are Louis, of course 😉
- Brains
- Hopefully you have these handy!
- Patience
- It's a virtue, you know :::
The second single-hashed header becomes Part I. Typically this should be an introduction section. Since it is the first thing that students will read, they will be less mentally fatigued and recall more of this information. It should summarize the 'big-picture' of the lab, and use visual elements such as images, videos and figures.
Second level headers are earmarked on the left navigation screen. This means that students can quickly navigate between parts and the subsections. Second level sections should thus be used to delinate important chunks of information. Unlike this,
Third Level Headers and beyond will not generate a link, so they should be used to draw attention to important subcontent in the section.
Generate your Material List quickly with the following Code:
::: Materials
- item 1
- item 2
- note for item 2
- item 3
:::
::: Materials
- item 1
- item 2
- note for item 2
- item 3 :::
Figures and generally contain images. They are automatically numbered, nameable and have three types. The simplest will generate a full row div which breaks the text.
::: Figure optional-name optional-size
![This is an image](../imgs/Balls2.png)
:::
To improve visual variety you can also make right and left floating figures, respectively. These will float to the right(left) of any text that follows it.
Right:
::: RFigure optional-name optional-size
![This is a right floating image](../imgs/phyphox.png)
:::
Left:
::: LFigure optional-name optional-size
![The relationship between x and t is constant](../imgs/Constant.png)
![The relationship between x and t is linear](../imgs/Linear.png)
![The relationship between x and t is quadratic](../imgs/Quad.png)
:::
The figure will not float next to this text because the text is placed above the image.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
It will, however, float to the right of text that follows. Floating figures are best used for tall images, or a figure containing multiple images.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
You might worry that the images appear too small when multiple are in a figure, but the website automatically compiles modals. These are frames that pop up to show full-size media when clicked. Go ahead and click on of the images.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
To ensure that Figures look nice on large screens, one can specify a maximum size. These sizes, {xs, s, m ,l ,xl} are computed relative to the font size and constrain the height and width of an image to a square. The figures in the excercise below show variants of Fi with each size
:::::: Exercise
::: Figure ball-o
![This is an image](../imgs/Balls2.png)
**Original**
:::
Original :::
::: Figure ball-xs xs
![This is an image](../imgs/Balls2.png)
**xs**
:::
xs :::
::: Figure ball-s s
![This is an image](../imgs/Balls2.png)
**s**
:::
s :::
::: Figure ball-m m
![This is an image](../imgs/Balls2.png)
**m**
:::
m :::
::: Figure ball-l l
![This is an image](../imgs/Balls2.png)
**l**
:::
l :::
::: Figure ball-xl xl
![This is an image](../imgs/Balls2.png)
**xl**
:::
xl ::: ::::::
In order to accomodate a row of images, the site makes use of W3.CSS standard columnization. Each full figure generates a row div class containing 12 equally sized columns. These are visualized in the figure below
::::::Figure
:::col l1 theme-l1 C1 ::: :::col l1 theme-l2 C2 ::: :::col l1 theme-l3 C3 ::: :::col l1 theme-l4 C4 ::: :::col l1 theme-l5 C5 ::: :::col l1 theme-l6 C6 ::: :::col l1 theme-l5 C7 ::: :::col l1 theme-l4 C8 ::: :::col l1 theme-l3 C9 ::: :::col l1 theme-l2 C10 ::: :::col l1 theme-l1 C11 ::: :::col l1 theme-l2 C12 :::
::::::
Within this, we can designate how many columns each part of the figure should take up large screens. The example below shows two images that each take up half of the horizontal space = 6 columns Note: all columns take up the full width on mobile and tablet sized screens.
::::::Figure
:::col l6
![Part A: Unobstructed view](../imgs/HP_MotionGraphs_Download.png)
Part A: This figure takes up 6 of 12 rows
:::
:::col l6
![](../imgs/HP_MotionGraphs_Annotated.png)
Part B:This figure takes up 6 of 12 rows
:::
::::::
Part A: This figure takes up 6 of 12 rows ::: :::col l6
Part B:This figure takes up 6 of 12 rows ::: ::::::
Just as important as figures, equations get their own box. Each equation is automatically numbered. Moreover, equations can be named and linked to later (see linking Section).
:::Equation equation_name
$$
\int_M K dA+\int_{\partial M}k_g ds=2\pi\chi(M)
$$
:::
:::Equation gbt $$ \int_M K dA+\int_{\partial M}k_g ds=2\pi\chi(M) $$ :::
Equation markup uses standard KaTeX. For less important equations, KaTeX may be rendered in-line with single dollar signs $a=\tfrac{1}{2}\pi r^2$
, e.g. : For our purposes Eq can be reduced to the more familiar
Question boxes contain graded action items for students, and are brightly colored to draw attention to them. They are automatically numbered and may be linked to.
:::Question optional-name
Are you following along with this tutorial?
:::
:::Question following Are you following along with this tutorial? :::
Questions with multiple subparts are automatically labeled with lower-case letters.
:::Question
1. Using [Eq](#Eq-gbt) for the case of $d=2$ , derive the result $a=\tfrac{1}{2}\pi r^2$
2. How would this result change if $M$ was a manifold of genus 2? Discuss
:::
:::Question
- Using Eq for the case of
$d=2$ , derive the result$a=\tfrac{1}{2}\pi r^2$ - How would this result change if
$M$ was a manifold of genus 2? Discuss :::
Exercises are another important call-to-action for students. They act as a stand alone prompt with step-by-step instructions for completing part of a lab. They are automatically numbered and occur in full-width boxes so that any figures or questions within have sufficient readability.
:::::: Exercise optional-name
Firstly, let's measure the direction of magnetic field from the magnet.
**Measurement steps:**
1. Put your phone on the table and open the phyphox app and go to “magnetometer”. You can see there are three plots, representing $B_x$, $B_y$ and $B_z$.
2. Start recording. You should see some random fluctuations on the plot.
3. Hold the magnet above the magnetomer, with one flat side facing up. Move it up and down above the magnetometer.
4. Now flip the magnet over, and repeat the motion.
5. Stop recording to view the collected data.
::: Question
1. Why does $B_z$ change when you move the magnet vertically?
2. At the point where you flipped the magnet, describe the difference you observe, and give a possible explanation.
:::
::::::
:::::: Exercise magnetic-field Firstly, let's measure the direction of magnetic field from the magnet. Measurement steps:
- Put your phone on the table and open the phyphox app and go to “magnetometer”. You can see there are three plots, representing
$B_x$ ,$B_y$ and$B_z$ . - Start recording. You should see some random fluctuations on the plot.
- Hold the magnet above the magnetomer, with one flat side facing up. Move it up and down above the magnetometer.
- Now flip the magnet over, and repeat the motion.
- Stop recording to view the collected data.
::: Question
- Why does
$B_z$ change when you move the magnet vertically? - At the point where you flipped the magnet, describe the difference you observe, and give a possible explanation. ::: ::::::
Videos can be added directly via iframe since html is enabled. Use the Video container to keep them labeled
:::Video
<iframe src="https://www.youtube.com/embed/PT6GM85ut4I" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
:::
:::Video
<iframe src="https://www.youtube.com/embed/PT6GM85ut4I" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> :::Simulations work the same as everything else, and collapse to save space when they aren't needed:
::: Simulation optional-name
<iframe src="https://kapawlak.github.io/PhDemoJS/Apps/BiotSavart_Current_Line/Biot_Savart.html" width= "100%" height="800" style="border:none;"></iframe>
:::
::: Simulation long-wire
<iframe src="https://kapawlak.github.io/PhDemoJS/Apps/BiotSavart_Current_Line/Biot_Savart.html" width= "100%" height="800" style="border:none;"></iframe> :::Notes are small blurbs meant to call students' attention to a potential pitfall, or a subtly they might otherwise miss
::: Note
Pay attention to how many colons you use in your markdown container!
:::
::: Note Pay attention to how many colons you use in your markdown container! :::
Warnings are like notes, but indicate possible danger to the student. To make sure they are seen, they are colored obnoxiously and shake until clicked on
::: Warning
Knives are sharp and not a toy!
(click to dismiss)
:::
::: Warning Knives are sharp and not a toy! (click to dismiss) :::
Tables are as usual, and will fill the entire width available. If the width is not long enough to display the table, the table will become scrollable
:::Table
|Offset $y$ | $R$ |$1/R$ | Measured $B_y$ |Measured $B_z$ | Field strength $B$ |
|------|------|------|------|------|------|
|@fa-pencil@ | | | | | |
|@fa-pencil@ | | | | | |
|@fa-pencil@ | | | | | |
|@fa-pencil@ | | | | | |
:::
:::Table
Offset |
Measured |
Measured |
Field strength |
||
---|---|---|---|---|---|
@fa-pencil@ | |||||
@fa-pencil@ | |||||
@fa-pencil@ | |||||
@fa-pencil@ | |||||
::: |
Linking allows you to reference previous named material, autogenerating a link to the place on the page it is located and the correct description of the item. The syntax is [Eq](#Eq-gbt)
:::Figure
[Eq](#Eq-gbt) is an Equation link to the Gauss-Bonnet Theorem
Eq is an Equation link to the Gauss-Bonnet Theorem
[Qu](#Qu-following) is a Question link to the "Are you following?" question
Qu is a Question link to the "Are you following?" question
[Fi](#Fi-balls) is a Figure link to the balls figure
Fi is a Figure link to the balls figure
[Ex](#Ex-magnetic-field) is an Exercise link to the Magnetic Strength Exercise
Ex is an Exercise link to the Magnetic Strength Exercise
[Si](#Si-long-wire) is a Simulation link to the Biot Savart Simulation
Si is a Simulation link to the Biot Savart Simulation
To name a Figure, Equation, Question, Exercise or Simulation element, simply provide a name directly after the declaration (on the same line).
:::
To nest elements, you must include additional colons for each level of nesting within the element
:::::::::Exercise
In this exercise, you will do stuff.
::: Figure
![explanatory image](../imgs/calibration.gif)
:::
::::::Question
Look at the image below and write the first word that comes to mind
:::Figure
![it dips](dip_gif.gif)
:::
::::::
:::::::::
:::::::::Exercise In this exercise, you will do stuff.
::::::Question Look at the image below and write the first word that comes to mind
:::Figure ::: :::::: :::::::::
You can use any icons from Font Awesome 4.7 by sandwiching the icon name with @ symbols
@fa-thumbs-up@
@fa-area-chart@
@fa-briefcase@
@fa-check@
@fa-gear@
@fa-thumbs-up@ @fa-area-chart@ @fa-briefcase@ @fa-check@ @fa-gear@
Footnotes are automatically numbered and create small popups on the bottom of the screen that linger for a few seconds to allow for clicking. These are inserted using:
[fn]An interesting and informative comment appears here, as if by magic. [http://www.google.com](http://www.google.com)[/fn]
You can see the effect by hovering over the number[fn]An interesting and informative comment appears here, as if by magic. http://www.google.com[/fn].
A Hider is good for letting students check their understanding or condensing a less important block of information. To title the Hider, type something after decalring it without a line break.
:::Hider If you drop a magnet down a conducting tube, which direction will the force be applied?
Upwards! Or, more correctly, in the direction opposite of the gravitational force accelerating it
:::
:::Hider If you drop a magnet down a conducting tube, which direction will the force be applied?
Upwards! Or, more correctly, in the opposite direction of the gravitational force accelerating it
:::
HTML is enabled in this markdown compiler, so if you need to include something beyond the scope of what is provided, you can directly code it in. Check out the Course Info page to see an example
::: Summary
Please turn in your report [here](https://gauchospace.ucsb.edu/courses/my/)
:::
::: Summary Please turn in your report here :::