mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-01-31 16:57:54 +00:00
0681d1fd7c
It's been a while but I've been using NixOS (or anything styled like it like GuixSD, for example) and distro-hopped from Arch Linux. I think it's high noon for making the structure of this setup to be truer to one of the big objectives which is how easy to transfer this between different setups. Which means I removed some things such as the package lists, systemd config files, and package manager-specific configs. While the solution is easy (which is to simply ignore the system-specific files) but I'm not going with the pragmatic solution not because I'm a dumbass but because I'm so smart that I want to create a challenge for myself to solve a puzzle on figuring out a way on how to structure my dotfiles. :) Such a productive use of my time, that's for sure.
25 lines
748 B
Plaintext
Executable File
25 lines
748 B
Plaintext
Executable File
# -*- mode: snippet -*-
|
|
# name: Graph without considering integers
|
|
# key: agraph
|
|
# --
|
|
\begin{figure}[${1:ht}]
|
|
\centering
|
|
\begin{tikzpicture}
|
|
\begin{axis}[
|
|
xlabel=${2:$x$},
|
|
ylabel=${3:$y$},
|
|
axis lines = middle,
|
|
grid=major,
|
|
axis equal=false,
|
|
tick style={very thick},
|
|
major tick style=thick,
|
|
minor tick num=2,
|
|
domain=${4:-10}:${5:10},$6
|
|
]
|
|
\addplot[samples=${7:$$(+ (string-to-number (or (yas-field-value 5) "0")) (string-to-number (or (yas-field-value 4) "0")))}, $8]{${9:x}\};
|
|
\end{axis}
|
|
\end{tikzpicture}
|
|
\caption{$10}
|
|
\label{fig!${11:$10}}
|
|
\end{figure}
|
|
`(yas-field-value 4)` |