Skip to content

Commit 19ed779

Browse files
committed
Add writing advice
1 parent 86fb8d9 commit 19ed779

File tree

4 files changed

+65
-3
lines changed

4 files changed

+65
-3
lines changed

.astro/astro/content.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,13 @@ declare module 'astro:content' {
550550
collection: "post";
551551
data: InferEntrySchema<"post">
552552
} & { render(): Render[".mdx"] };
553+
"writing-advice.mdx": {
554+
id: "writing-advice.mdx";
555+
slug: "writing-advice";
556+
body: string;
557+
collection: "post";
558+
data: InferEntrySchema<"post">
559+
} & { render(): Render[".mdx"] };
553560
};
554561

555562
};

bun.lockb

6.2 KB
Binary file not shown.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
},
1313
"dependencies": {
1414
"@astrojs/check": "^0.5.10",
15-
"@astrojs/mdx": "^3.1.4",
15+
"@astrojs/mdx": "^3.1.5",
1616
"@astrojs/rss": "^4.0.7",
1717
"@astrojs/sitemap": "^3.1.6",
1818
"@astrojs/tailwind": "^5.1.0",
1919
"@astrojs/vercel": "^7.8.0",
2020
"@fontsource/iosevka": "^5.0.11",
2121
"@vercel/analytics": "^1.3.1",
2222
"ajv": "^8.17.1",
23-
"astro": "^4.14.5",
23+
"astro": "^4.15.1",
2424
"astro-expressive-code": "^0.33.5",
2525
"astro-icon": "^1.1.1",
2626
"clsx": "^2.1.1",
@@ -40,7 +40,7 @@
4040
},
4141
"devDependencies": {
4242
"@tailwindcss/aspect-ratio": "^0.4.2",
43-
"@tailwindcss/typography": "^0.5.14",
43+
"@tailwindcss/typography": "^0.5.15",
4444
"@typescript-eslint/parser": "^7.18.0",
4545
"eslint": "^8.57.0",
4646
"eslint-plugin-astro": "^0.31.4",
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: "Writing Advice for Machine Learning Researchers"
3+
description: "Some bullet-point advice regarding paper-writing I would give to my younger self."
4+
publishDate: 2024-08-30 00:00
5+
---
6+
7+
import BlogImage from "@/components/BlogImage.astro";
8+
9+
## General protips
10+
11+
- **DO:** Write before you even do any experiment.
12+
- **_DON’T_:** Leave everything to the last minute, esp. writing.
13+
- **DO:** _Obsess_ over styling (see below).
14+
- **DO:** Read _widely_ and _a lot_ (in English!): novels, nonfictions,
15+
popular science, etc.
16+
- **DO:** Read math books and appreciate the typography & styling.
17+
18+
## LaTeX protips
19+
20+
- **One line = one sentence**
21+
- This will make debugging easier, due to how LaTeX shows errors
22+
- **Quotation marks:** Instead of `"something"`, write ` ``something'' `
23+
(2 backtics & 2 standard ticks)
24+
- **Math macros:** Use this and add your own often-used math definitions
25+
https://github.com/goodfeli/dlbook_notation/blob/master/math_commands.tex
26+
- So, gone are the days where you need to write `\mathbf{x}` again and again.
27+
Instead you could just write `\vx`.
28+
- **Citation:** Always use `natbib`! Two ways of citing:
29+
- "... has been done before [4]." --- in this case, you use `\citep`
30+
and write `... has been done before \citep{someone2024}`.
31+
- "Someone et al, 2024 has done ..." --- in this case, you use `\citet`
32+
and write `\citet{someone2024} has done ...`
33+
- **Table:** Always use booktabs instead of standard table.
34+
- https://nhigham.com/2019/11/19/better-latex-tables-with-booktabs/
35+
- **Style tips:**
36+
- Figures must always fill the full paper width (or column width).
37+
- Use my library: https://github.com/wiseodd/pub-ready-plots
38+
- https://github.com/wiseodd/pub-ready-plots?tab=readme-ov-file#creating-a-figure-with-multiple-subplots
39+
- Tables, likewise, must also always fill the full width.
40+
- https://tex.stackexchange.com/questions/240154/setting-table-width-exactly-to-linewidth
41+
- If you think they are not appropriate for full width, use wrapfig and wraptable:
42+
- https://www.overleaf.com/learn/latex/Positioning_images_and_tables
43+
- **Bibliography:**
44+
- Don't just copy-paste from Google Scholar! Always recheck & edit!
45+
- E.g. make sure the proper capitalization:
46+
- Instead of: `title={Introduction to Bayesian optimization}`
47+
- Write this: `title={Introduction to {B}ayesian optimization}`
48+
- I.e., always surround the character that needs to be capitalized
49+
with `{ }`
50+
- Venue precedence if a publication appears in multiple venues
51+
(top = most prioritized):
52+
1. Journal
53+
2. Conference
54+
3. Workshop/symposium
55+
4. ArXiv/preprint

0 commit comments

Comments
 (0)