Files
2026-07-23 20:36:13 +08:00

2.2 KiB
Executable File

theme, paginate, math, created, updated
theme paginate math created updated
academic true latex 2025-09-08T22:43 2025-09-09T18:22

Create lab presentation slides with Marp

Let's graduate from Beamer


Author Taro Hogehoge Laboratory M2 YYYY/MM/DD


  1. First of all
  2. Code block
  3. Formula
  4. Figure

  • Marp is software for creating slides in Markdown.
    • Basic Markdown syntax is supported.
  • You can move to the next page just by putting --- in Markdown. ^1

1: Marp is developed according to the Markdown specification called CommonMark, so the "footnote" grammar (using [^1]), which is not included in CommonMark, is not provided. Therefore, by referring to https://github.com/marp-team/marp/discussions/150#discussioncomment-1302384, a pseudo-footnote was realized.


import torch
print(torch.cuda.is_available())

You can write a code block like this.

from transformers import AutoModelForMaskedLM, AutoTokenizer
model = AutoModelForMaskedLM.from_pretrained("cl-tohoku/bert-base-japanese-whole-word-masking")
tokenizer = AutoTokenizer.from_pretrained("cl-tohoku/bert-base-japanese-whole-word-masking")

inputs = tokenizer.encode_plus("I'm very [MASK]", return_tensors='pt')
outputs = model(**inputs)
tokenizer.convert_ids_to_tokens(outputs.logits[0][1:-1].argmax(axis=-1))

The width is automatically adjusted (see Auto-scaling in the document).


I_{xx}=\int\int_Ry^2f(x,y)\cdot{}dydx

f(x) = \int_{-\infty}^\infty
    \hat f(\xi)\,e^{2 \pi i \xi x}
    \,d\xi

You can write the formula like this. Of course you can also use inline \LaTeX. You can also use emojis 😄


  1. First, right-click to download the image (kenkyu_woman_seikou.png) from This Irasutoya link.
  2. Create a directory named images in this directory with Markdown, and place the image you downloaded earlier. You are now ready to go.

w:300 center