框架完成
This commit is contained in:
4
.gitattributes
vendored
Normal file
4
.gitattributes
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.jpg filter=lfs diff=lfs merge=lfs -text
|
||||
*.JPG filter=lfs diff=lfs merge=lfs -text
|
||||
*.svg filter=lfs diff=lfs merge=lfs -text
|
||||
BIN
DSC_0210.JPG
LFS
Normal file
BIN
DSC_0210.JPG
LFS
Normal file
Binary file not shown.
154
main.typ
154
main.typ
@@ -1,122 +1,72 @@
|
||||
#import "@preview/minimal-presentation:0.6.0": *
|
||||
|
||||
//#set text(font: "Lato")
|
||||
//#show math.equation: set text(font: "Lato Math")
|
||||
//#show raw: set text(font: "Fira Code")
|
||||
// 中文使用思源宋体,英文使用 Times New Roman
|
||||
#set text(font: ("Times New Roman", "Source Han Serif SC"))
|
||||
#show raw: set text(font: "Fira Code")
|
||||
|
||||
#show: project.with(
|
||||
title: "Minimalist presentation template",
|
||||
sub-title: "This is where your presentation begins",
|
||||
author: "Flavio Barisi",
|
||||
date: "10/08/2023",
|
||||
index-title: "Contents",
|
||||
// logo: image("./logo.svg"),
|
||||
// logo-light: image("./logo_light.svg"),
|
||||
// cover: image("./image_1.jpg"),
|
||||
main-color: rgb("#5ec7a7"),
|
||||
lang: "it",
|
||||
title: "在科学计算中使用Nix",
|
||||
sub-title: "非CS专业人士的使用经验与困难",
|
||||
author: "陈浩南",
|
||||
date: "2025-08-09",
|
||||
index-title: "目录",
|
||||
logo: image("./nix-snowflake-colours.svg"),
|
||||
logo-light: image("./nix-snowflake-white.svg"),
|
||||
cover: image("./DSC_0210.JPG"),
|
||||
main-color: rgb("#3e5c98"),
|
||||
lang: "zh",
|
||||
)
|
||||
|
||||
= This is a section
|
||||
= 背景介绍
|
||||
|
||||
== This is a slide title
|
||||
== 个人Linux使用经验
|
||||
|
||||
#lorem(10)
|
||||
- 桌面:2018年起主力使用Linux,Deepin #sym.arrow Arch #sym.arrow Gentoo #sym.arrow NixOS (2023-05-28)
|
||||
- 服务器(VPS):差不多时间,OpenWRT #sym.arrow Ubuntu #sym.arrow Arch #sym.arrow Gentoo #sym.arrow NixOS
|
||||
- 科学计算(HPC):2020年硕士入组开始接触,Gentoo + Ubuntu #sym.arrow NixOS (2023-09)
|
||||
|
||||
- #lorem(10)
|
||||
- #lorem(10)
|
||||
- #lorem(10)
|
||||
// - #lorem(10) @harry @electronic.
|
||||
== 科学计算现状
|
||||
|
||||
#columns-content(colwidths: (1fr, 1.8fr))[
|
||||
#figure(
|
||||
image("meme.jpg", width: 100%)
|
||||
)
|
||||
- *复古*的包管理:手动修改Makefile指定编译器/参数/库路径。
|
||||
- *随意*的编程:无视标准、能用就行,C/C++不分,Fortran/MPI只有特定编译器能编译。
|
||||
- *闭源*的编译器:Intel OneAPI / NVIDIA HPC SDK。
|
||||
- *混乱*的用户权限:超算共用账户,小组随意`sudo make install`。
|
||||
]
|
||||
|
||||
== 我们需要更多的可复现!
|
||||
|
||||
|
||||
== One column image
|
||||
#figure(
|
||||
image("更多的.png", width: 120%)
|
||||
)
|
||||
|
||||
// #figure(
|
||||
// image("image_1.jpg", height: 10.5cm),
|
||||
// caption: [An image],
|
||||
// ) <image_label>
|
||||
= 切换到Nix/NixOS后解决的问题
|
||||
|
||||
== Two columns image
|
||||
== 切换到Nix/NixOS后解决的问题
|
||||
|
||||
// #columns-content()[
|
||||
// #figure(
|
||||
// image("image_1.jpg", width: 100%),
|
||||
// caption: [An image],
|
||||
// ) <image_label_1>
|
||||
// ][
|
||||
// #figure(
|
||||
// image("image_1.jpg", width: 100%),
|
||||
// caption: [An image],
|
||||
// ) <image_label_2>
|
||||
// ]
|
||||
- 方便打补丁、魔改软件,无需研究具体软件的编译流程:
|
||||
```
|
||||
xxx = prev.xxx.overrideAttrs (prev: patches = prev.patches or [] ++ [ ./my.patch ])
|
||||
```
|
||||
- 编译/运行环境可复现:
|
||||
- “你遇到的问题,网上肯定也有人遇到过。Gentoo除外。”
|
||||
- 再也不会忘记自己去年配置的服务是怎么配置的了。
|
||||
- 跨服务/跨机器共享配置
|
||||
|
||||
== Two columns
|
||||
// TODO:举个例子
|
||||
|
||||
// #columns-content()[
|
||||
// - #lorem(10)
|
||||
// - #lorem(10)
|
||||
// - #lorem(10)
|
||||
// ][
|
||||
// #figure(
|
||||
// image("image_1.jpg", width: 100%),
|
||||
// caption: [An image],
|
||||
// ) <image_label_3>
|
||||
// ]
|
||||
// TODO: highlight code
|
||||
|
||||
= This is a section
|
||||
|
||||
== This is a slide title
|
||||
= 尚待解决的问题
|
||||
|
||||
#lorem(10)
|
||||
== 尚待解决的问题
|
||||
|
||||
= This is a section
|
||||
|
||||
== This is a slide title
|
||||
|
||||
#lorem(10)
|
||||
|
||||
= This is a section
|
||||
|
||||
== This is a slide title
|
||||
|
||||
#lorem(10)
|
||||
|
||||
= This is a very v v v v v v v v v v v v v v v v v v v v long section
|
||||
|
||||
== This is a very v v v v v v v v v v v v v v v v v v v v long slide title
|
||||
|
||||
= Subtitle test
|
||||
|
||||
== Slide title
|
||||
|
||||
#lorem(50)
|
||||
|
||||
=== Slide subtitle 1
|
||||
|
||||
#lorem(50)
|
||||
|
||||
=== Slide subtitle 2
|
||||
|
||||
#lorem(50)
|
||||
|
||||
== Slide title 2
|
||||
|
||||
#lorem(50)
|
||||
|
||||
=== Slide subtitle 3
|
||||
|
||||
#lorem(50)
|
||||
|
||||
=== Slide subtitle 4
|
||||
|
||||
#lorem(50)
|
||||
|
||||
#set-main-color(blue)
|
||||
|
||||
= You can change color
|
||||
|
||||
== Slide title
|
||||
|
||||
#lorem(50)
|
||||
|
||||
// #bibliography("bibliography.yaml")
|
||||
- 闭源编译器和 stdenv
|
||||
- 无root权限安装nix
|
||||
- FHSStdenv?
|
||||
- impermanence /home-manager 与共享文件系统
|
||||
|
||||
BIN
nix-snowflake-colours.svg
LFS
Normal file
BIN
nix-snowflake-colours.svg
LFS
Normal file
Binary file not shown.
BIN
nix-snowflake-white.svg
LFS
Normal file
BIN
nix-snowflake-white.svg
LFS
Normal file
Binary file not shown.
Reference in New Issue
Block a user