Skip to content

Commit

Permalink
bump deps, format plate-capacitor.tex, add 'how to cite' link
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Apr 3, 2024
1 parent 2f00b84 commit 4635301
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ repos:
args: [--ignore-words-list, "noe,ket,ba,te,nd", --check-filenames]

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0
rev: v0.39.0
hooks:
- id: markdownlint
# MD013: line too long
Expand All @@ -45,7 +45,7 @@ repos:
args: [--disable, MD013, MD033, MD041, "--"]

- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.0.0-alpha.1
rev: v9.0.0-rc.0
hooks:
- id: eslint
types: [file]
Expand Down
28 changes: 14 additions & 14 deletions assets/plate-capacitor/plate-capacitor.tex
Original file line number Diff line number Diff line change
Expand Up @@ -38,33 +38,33 @@

% dielectric slab
\draw[orange!60!black,fill=orange!80!brown!5]
(\dielwidth,-0.03*\height) rectangle (\width-\dielwidth,1.03*\height)
node[Ecolor, above=3cm, midway] {$\vec E$}
node[above, pluscolor] {$+Q_\text{surf}$}
node[above, minuscolor] at (1.3*\dielwidth,1.03*\height) {$-Q_\text{surf}$};
(\dielwidth,-0.03*\height) rectangle (\width-\dielwidth,1.03*\height)
node[Ecolor, above=3cm, midway] {$\vec E$}
node[above, pluscolor] {$+Q_\text{surf}$}
node[above, minuscolor] at (1.3*\dielwidth,1.03*\height) {$-Q_\text{surf}$};

% electric field
\foreach \i [evaluate={\y=(\i-0.75)*\height/(\nfieldlines-0.5);}] in {1,...,\nfieldlines}{
\draw[EFieldLine={0.54},very thick] (0,\y) --++ (\width,0);
}
\draw[EFieldLine={0.54},very thick] (0,\y) --++ (\width,0);
}

% plates
\draw[anode] (0,0) rectangle++ (-\platewidth,\height)
node[above, pluscolor] {$+Q_\text{C}$};
node[above, pluscolor] {$+Q_\text{C}$};
\draw[cathode] (\width,0) rectangle++ (\platewidth,\height)
node[above, minuscolor] {$-Q_\text{C}$};
node[above, minuscolor] {$-Q_\text{C}$};

\foreach \i [evaluate={\y=(\i-0.5)*\height/\ncharges;}] in {1,...,\ncharges}{
\node[pluscolor] at (-\platewidth/2,\y) {$+$};
\node[minuscolor] at (\width+\platewidth/2,\y) {$-$};
}
\node[pluscolor] at (-\platewidth/2,\y) {$+$};
\node[minuscolor] at (\width+\platewidth/2,\y) {$-$};
}

% dipoles
\foreach \i in {0.25, 0.5, 0.75}{
\foreach \j in {1, 3, 5, 7, 9}{
\dipole{\i*\width,0.\j*\height}
\foreach \j in {1, 3, 5, 7, 9}{
\dipole{\i*\width,0.\j*\height}
}
}
}

\end{tikzpicture}
\end{document}
22 changes: 11 additions & 11 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,31 @@
"devDependencies": {
"@iconify/svelte": "^3.1.6",
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.5.0",
"@sveltejs/kit": "^2.5.5",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@types/js-yaml": "^4.0.9",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"eslint": "^8.56.0",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"eslint": "^8.57.0",
"eslint-plugin-svelte": "^2.35.1",
"highlight.js": "^11.9.0",
"image-size": "^1.1.1",
"js-yaml": "^4.1.0",
"prettier": "^3.2.4",
"prettier-plugin-svelte": "^3.1.2",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"rehype-katex": "^7.0.0",
"rehype-stringify": "^10.0.0",
"remark-math": "3.0.0",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.0",
"svelte": "4.2.9",
"svelte-check": "^3.6.3",
"svelte": "4.2.12",
"svelte-check": "^3.6.9",
"svelte-multiselect": "^10.2.0",
"svelte-preprocess": "^5.1.3",
"svelte-zoo": "^0.4.10",
"svelte2tsx": "^0.7.0",
"typescript": "5.3.3",
"svelte2tsx": "^0.7.6",
"typescript": "5.4.3",
"unified": "^11.0.4",
"vite": "^5.0.12"
"vite": "^5.2.7"
}
}
7 changes: 5 additions & 2 deletions site/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

<GitHubCorner
href={repository}
--zoo-github-corner-bg="var(--text-color)"
--zoo-github-corner-color="var(--body-bg)"
--zoo-gh-corner-bg="var(--text-color)"
--zoo-gh-corner-color="var(--body-bg)"
/>

<slot />
Expand All @@ -26,4 +26,7 @@
&copy; Janosh Riebesell 2021 &ensp;-&ensp;
<Icon icon="octicon:law" inline />
<a href="{repository}/blob/main/license">MIT License</a>
&ensp;-&ensp;
<Icon icon="octicon:quote" inline />
<a href="{repository}/#--how-to-cite">How to cite</a>
</footer>

0 comments on commit 4635301

Please sign in to comment.