Skip to content

Commit 6b22f47

Browse files
committed
Update link styles
1 parent 9fc33dd commit 6b22f47

File tree

3 files changed

+27
-25
lines changed

3 files changed

+27
-25
lines changed

src/content/post/writing-advice.mdx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,24 @@ import BlogImage from "@/components/BlogImage.astro";
2121
- This will make debugging easier, due to how LaTeX shows errors
2222
- **Quotation marks:** Instead of `"something"`, write ` ``something'' `
2323
(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
24+
- **Math macros:** [Use this](https://github.com/goodfeli/dlbook_notation/blob/master/math_commands.tex)
25+
and add your own often-used math definitions
2626
- So, gone are the days where you need to write `\mathbf{x}` again and again.
2727
Instead you could just write `\vx`.
2828
- **Citation:** Always use `natbib`! Two ways of citing:
2929
- "... has been done before [4]." --- in this case, you use `\citep`
3030
and write `... has been done before \citep{someone2024}`.
3131
- "Someone et al, 2024 has done ..." --- in this case, you use `\citet`
3232
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/
33+
- **Table:** Always use booktabs instead of standard table. [See this](https://nhigham.com/2019/11/19/better-latex-tables-with-booktabs/).
3534
- **Style tips:**
3635
- 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
36+
- Use [my library](https://github.com/wiseodd/pub-ready-plots).
37+
- For figures with multiple subplots, avoid creating a single pdf file
38+
for each subplot. Instead, [follow this](https://github.com/wiseodd/pub-ready-plots?tab=readme-ov-file#creating-a-figure-with-multiple-subplots)
3939
- 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
40+
[See how](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](https://www.overleaf.com/learn/latex/Positioning_images_and_tables).
4342
- **Bibliography:**
4443
- Don't just copy-paste from Google Scholar! Always recheck & edit!
4544
- E.g. make sure the proper capitalization:

src/styles/app.css

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,6 @@
22
@tailwind components;
33
@tailwind utilities;
44

5-
@font-face {
6-
font-family: "Satoshi";
7-
src: url("/fonts/Satoshi-Variable.ttf");
8-
font-style: normal;
9-
font-display: swap;
10-
}
11-
12-
@font-face {
13-
font-family: "Satoshi";
14-
src: url("/fonts/Satoshi-VariableItalic.ttf");
15-
font-style: italic;
16-
font-display: swap;
17-
}
18-
195
@layer base {
206
:root {
217
--background: 210 33% 99%;

tailwind.config.js

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,35 @@ const config = {
7878
md: "calc(var(--radius) - 2px)",
7979
sm: "calc(var(--radius) - 4px)",
8080
},
81-
typography: {
81+
typography: (theme) => ({
8282
DEFAULT: {
8383
css: {
84+
// Remove backticks from inline code
8485
"code::before": {
8586
content: '""',
8687
},
8788
"code::after": {
8889
content: '""',
8990
},
91+
code: {
92+
backgroundColor: "hsl(var(--accent))",
93+
borderRadius: theme("borderRadius.DEFAULT"),
94+
paddingLeft: theme("spacing[0.5]"),
95+
paddingRight: theme("spacing[0.5]"),
96+
paddingTop: theme("spacing[0.5]"),
97+
paddingBottom: theme("spacing[0.5]"),
98+
},
99+
a: {
100+
color: theme("colors.blue.500"),
101+
fontWeight: "400",
102+
textDecoration: "none",
103+
"&:hover": {
104+
textDecoration: "underline",
105+
},
106+
},
90107
},
91108
},
92-
},
109+
}),
93110
},
94111
},
95112
};

0 commit comments

Comments
 (0)