Skip to content

Commit

Permalink
feat(PDF): URL -> QRcode
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiphereth-A committed Oct 21, 2024
1 parent 4c37115 commit 7b1f552
Show file tree
Hide file tree
Showing 20 changed files with 34 additions and 28 deletions.
3 changes: 3 additions & 0 deletions ICPCnotebook.cls
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
\RequirePackage{pgfplots}
\RequirePackage{pdflscape}
\RequirePackage{pdfpages}
\RequirePackage{qrcode}
\RequirePackage{seqsplit}
\RequirePackage{subcaption}
\RequirePackage{svg}
Expand Down Expand Up @@ -127,6 +128,8 @@
\titlespacing*{\subsubsection}{0pt}{0.6ex}{0.6ex}
\titlespacing*{\paragraph}{0pt}{0.6ex}{0.6ex}

\qrset{link, height=1cm}

% Code style
\RequirePackage{minted}

Expand Down
2 changes: 1 addition & 1 deletion src/cheatsheet/bash.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
From \url{https://learnxinyminutes.com/docs/bash/}.
From \qrcode{https://learnxinyminutes.com/docs/bash/}.

\inputminted[mathescape=false]{bash}{src/src/LearnBash.sh}
2 changes: 1 addition & 1 deletion src/cheatsheet/vim.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
From \url{https://learnxinyminutes.com/docs/vim/}.
From \qrcode{https://learnxinyminutes.com/docs/vim/}.

\inputminted{text}{src/src/LearnVim.txt}
6 changes: 2 additions & 4 deletions src/doc_tex/edh/hash_splitmix64.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@

\paragraph{参考链接}

\begin{itemize}
\item \url{https://codeforces.com/blog/entry/62393}
\item \url{http://xorshift.di.unimi.it/splitmix64.c}
\end{itemize}
\qrcode{https://codeforces.com/blog/entry/62393}
\qrcode{http://xorshift.di.unimi.it/splitmix64.c}
2 changes: 1 addition & 1 deletion src/doc_tex/fast/str2uint_si64.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

\paragraph{参见}

\url{https://johnnylee-sde.github.io/Fast-numeric-string-to-int/}
\qrcode{https://johnnylee-sde.github.io/Fast-numeric-string-to-int/}
2 changes: 1 addition & 1 deletion src/doc_tex/fast/strhex2uint_si64.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

\paragraph{参见}

\url{https://johnnylee-sde.github.io/Fast-hex-number-string-to-int/}
\qrcode{https://johnnylee-sde.github.io/Fast-hex-number-string-to-int/}
2 changes: 1 addition & 1 deletion src/doc_tex/fast/u32tostr.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

\paragraph{参见}

\url{https://johnnylee-sde.github.io/Fast-unsigned-integer-to-string/}
\qrcode{https://johnnylee-sde.github.io/Fast-unsigned-integer-to-string/}
2 changes: 1 addition & 1 deletion src/doc_tex/fast/u32tostrhex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

\paragraph{参见}

\url{https://johnnylee-sde.github.io/Fast-unsigned-integer-to-hex-string/}
\qrcode{https://johnnylee-sde.github.io/Fast-unsigned-integer-to-hex-string/}
4 changes: 3 additions & 1 deletion src/doc_tex/graph/cle.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
最小树形图 (minimum cost arborescence) 即为有向图版本的最小生成树

From \url{https://nyaannyaan.github.io/library/graph/minimum-cost-arborescence.hpp}
\paragraph{参考链接}

\qrcode{https://nyaannyaan.github.io/library/graph/minimum-cost-arborescence.hpp}
2 changes: 1 addition & 1 deletion src/doc_tex/math/div64.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

\paragraph{参考链接}

\url{https://nyaannyaan.github.io/library/multiplicative-function/prime-counting-faster.hpp#%E8%A3%9C%E8%B6%B3}
\qrcode{https://nyaannyaan.github.io/library/multiplicative-function/prime-counting-faster.hpp#%E8%A3%9C%E8%B6%B3}
2 changes: 1 addition & 1 deletion src/doc_tex/math/exeuclid.tex
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@

\paragraph{参考链接}

\url{https://www.luogu.com.cn/blog/_post/225005}
\qrcode{https://www.luogu.com.cn/blog/_post/225005}
2 changes: 1 addition & 1 deletion src/doc_tex/math/nim_prod.tex
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

\paragraph{参考链接}

\url{https://en.wikipedia.org/wiki/Nimber}
\qrcode{https://en.wikipedia.org/wiki/Nimber}
2 changes: 1 addition & 1 deletion src/doc_tex/math/nimber.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
\paragraph{参考链接}

\url{https://en.wikipedia.org/wiki/Nimber}
\qrcode{https://en.wikipedia.org/wiki/Nimber}
4 changes: 3 additions & 1 deletion src/doc_tex/nt/exgcd.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
From \url{https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/blob/8ee2caf6ae1b2c915933811ebe58762a0a9c25df/2024/04/13/module/gcd.h}
\paragraph{参考链接}

\qrcode{https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/blob/8ee2caf6ae1b2c915933811ebe58762a0a9c25df/2024/04/13/module/gcd.h}

\paragraph{参考文献} \cite{menezes2018handbook}
4 changes: 3 additions & 1 deletion src/doc_tex/nt/gcd.tex
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
From \url{https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/blob/8ee2caf6ae1b2c915933811ebe58762a0a9c25df/2024/04/13/module/gcd.h}
\paragraph{参考链接}

\qrcode{https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/blob/8ee2caf6ae1b2c915933811ebe58762a0a9c25df/2024/04/13/module/gcd.h}
2 changes: 1 addition & 1 deletion src/doc_tex/nt/lsieve2.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

\paragraph{参考链接}

\url{https://www.cnblogs.com/JustinRochester/p/17860373.html}
\qrcode{https://www.cnblogs.com/JustinRochester/p/17860373.html}
6 changes: 2 additions & 4 deletions src/doc_tex/nt/min25_sieve.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@

\paragraph{参考链接}

\begin{itemize}
\item \url{https://nyaannyaan.github.io/library/multiplicative-function/sum-of-multiplicative-function.hpp}
\item \url{https://oi-wiki.org/math/number-theory/min-25/}
\end{itemize}
\qrcode{https://nyaannyaan.github.io/library/multiplicative-function/sum-of-multiplicative-function.hpp}
\qrcode{https://oi-wiki.org/math/number-theory/min-25/}
5 changes: 4 additions & 1 deletion src/doc_tex/nt/pi_min25.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

\paragraph{空间复杂度} \(O\left(\sqrt n\right)\)

\paragraph{参考资料} \url{https://rsk0315.hatenablog.com/entry/2021/05/18/015511} \url{https://loj.ac/s/796720}
\paragraph{参考资料}

\qrcode{https://rsk0315.hatenablog.com/entry/2021/05/18/015511}
\qrcode{https://loj.ac/s/796720}
6 changes: 2 additions & 4 deletions src/doc_tex/str/lyndon.tex
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,5 @@

\paragraph{参考链接}

\begin{itemize}
\item \url{https://oi-wiki.org/string/minimal-string/}
\item \url{https://oi-wiki.org/string/lyndon/}
\end{itemize}
\qrcode{https://oi-wiki.org/string/minimal-string/}
\qrcode{https://oi-wiki.org/string/lyndon/}
2 changes: 1 addition & 1 deletion src/doc_tex/util/unordered_stl_hacker.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
\paragraph{参考链接}

\url{https://github.com/wery0/CP-library/blob/8d47f3fdac56b0cf18865209d7fdcb692ff9e971/Language/Unordered%20stl%20containers%20hacker.cpp}
\qrcode{https://github.com/wery0/CP-library/blob/8d47f3fdac56b0cf18865209d7fdcb692ff9e971/Language/Unordered%20stl%20containers%20hacker.cpp}

0 comments on commit 7b1f552

Please sign in to comment.