diff --git a/ICPCnotebook.cls b/ICPCnotebook.cls index 4627722a7..bd699c2bf 100644 --- a/ICPCnotebook.cls +++ b/ICPCnotebook.cls @@ -25,6 +25,7 @@ \RequirePackage{pgfplots} \RequirePackage{pdflscape} \RequirePackage{pdfpages} +\RequirePackage{qrcode} \RequirePackage{seqsplit} \RequirePackage{subcaption} \RequirePackage{svg} @@ -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} diff --git a/src/cheatsheet/bash.tex b/src/cheatsheet/bash.tex index 541bfa85b..145c44a9a 100644 --- a/src/cheatsheet/bash.tex +++ b/src/cheatsheet/bash.tex @@ -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} diff --git a/src/cheatsheet/vim.tex b/src/cheatsheet/vim.tex index fc39f7ee7..1aca615af 100644 --- a/src/cheatsheet/vim.tex +++ b/src/cheatsheet/vim.tex @@ -1,3 +1,3 @@ -From \url{https://learnxinyminutes.com/docs/vim/}. +From \qrcode{https://learnxinyminutes.com/docs/vim/}. \inputminted{text}{src/src/LearnVim.txt} diff --git a/src/doc_tex/edh/hash_splitmix64.tex b/src/doc_tex/edh/hash_splitmix64.tex index 3866f9a0f..7bfdcaf0c 100644 --- a/src/doc_tex/edh/hash_splitmix64.tex +++ b/src/doc_tex/edh/hash_splitmix64.tex @@ -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} \ No newline at end of file +\qrcode{https://codeforces.com/blog/entry/62393} +\qrcode{http://xorshift.di.unimi.it/splitmix64.c} diff --git a/src/doc_tex/fast/str2uint_si64.tex b/src/doc_tex/fast/str2uint_si64.tex index 6d84a52bf..7956c9e61 100644 --- a/src/doc_tex/fast/str2uint_si64.tex +++ b/src/doc_tex/fast/str2uint_si64.tex @@ -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/} diff --git a/src/doc_tex/fast/strhex2uint_si64.tex b/src/doc_tex/fast/strhex2uint_si64.tex index 67e5b5bfc..521f8c95e 100644 --- a/src/doc_tex/fast/strhex2uint_si64.tex +++ b/src/doc_tex/fast/strhex2uint_si64.tex @@ -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/} diff --git a/src/doc_tex/fast/u32tostr.tex b/src/doc_tex/fast/u32tostr.tex index 7320fdb6c..127b09fa8 100644 --- a/src/doc_tex/fast/u32tostr.tex +++ b/src/doc_tex/fast/u32tostr.tex @@ -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/} diff --git a/src/doc_tex/fast/u32tostrhex.tex b/src/doc_tex/fast/u32tostrhex.tex index 47d12a9b9..fd573cc8a 100644 --- a/src/doc_tex/fast/u32tostrhex.tex +++ b/src/doc_tex/fast/u32tostrhex.tex @@ -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/} diff --git a/src/doc_tex/graph/cle.tex b/src/doc_tex/graph/cle.tex index b2f6459f9..4927c5355 100644 --- a/src/doc_tex/graph/cle.tex +++ b/src/doc_tex/graph/cle.tex @@ -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} diff --git a/src/doc_tex/math/div64.tex b/src/doc_tex/math/div64.tex index 6010b4536..dbac810ae 100644 --- a/src/doc_tex/math/div64.tex +++ b/src/doc_tex/math/div64.tex @@ -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} diff --git a/src/doc_tex/math/exeuclid.tex b/src/doc_tex/math/exeuclid.tex index e41cbfe34..b820b3034 100644 --- a/src/doc_tex/math/exeuclid.tex +++ b/src/doc_tex/math/exeuclid.tex @@ -35,4 +35,4 @@ \paragraph{参考链接} -\url{https://www.luogu.com.cn/blog/_post/225005} +\qrcode{https://www.luogu.com.cn/blog/_post/225005} diff --git a/src/doc_tex/math/nim_prod.tex b/src/doc_tex/math/nim_prod.tex index 959d3c75b..d4ad461f2 100644 --- a/src/doc_tex/math/nim_prod.tex +++ b/src/doc_tex/math/nim_prod.tex @@ -25,4 +25,4 @@ \paragraph{参考链接} -\url{https://en.wikipedia.org/wiki/Nimber} +\qrcode{https://en.wikipedia.org/wiki/Nimber} diff --git a/src/doc_tex/math/nimber.tex b/src/doc_tex/math/nimber.tex index 01b090e65..ecc81289f 100644 --- a/src/doc_tex/math/nimber.tex +++ b/src/doc_tex/math/nimber.tex @@ -1,3 +1,3 @@ \paragraph{参考链接} -\url{https://en.wikipedia.org/wiki/Nimber} +\qrcode{https://en.wikipedia.org/wiki/Nimber} diff --git a/src/doc_tex/nt/exgcd.tex b/src/doc_tex/nt/exgcd.tex index 8cc12c28b..6eaae60d0 100644 --- a/src/doc_tex/nt/exgcd.tex +++ b/src/doc_tex/nt/exgcd.tex @@ -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} \ No newline at end of file diff --git a/src/doc_tex/nt/gcd.tex b/src/doc_tex/nt/gcd.tex index 34aa48352..220bd4c48 100644 --- a/src/doc_tex/nt/gcd.tex +++ b/src/doc_tex/nt/gcd.tex @@ -1 +1,3 @@ -From \url{https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/blob/8ee2caf6ae1b2c915933811ebe58762a0a9c25df/2024/04/13/module/gcd.h} \ No newline at end of file +\paragraph{参考链接} + +\qrcode{https://github.com/lemire/Code-used-on-Daniel-Lemire-s-blog/blob/8ee2caf6ae1b2c915933811ebe58762a0a9c25df/2024/04/13/module/gcd.h} \ No newline at end of file diff --git a/src/doc_tex/nt/lsieve2.tex b/src/doc_tex/nt/lsieve2.tex index aedad14a9..5f63f0bc8 100644 --- a/src/doc_tex/nt/lsieve2.tex +++ b/src/doc_tex/nt/lsieve2.tex @@ -6,4 +6,4 @@ \paragraph{参考链接} -\url{https://www.cnblogs.com/JustinRochester/p/17860373.html} +\qrcode{https://www.cnblogs.com/JustinRochester/p/17860373.html} diff --git a/src/doc_tex/nt/min25_sieve.tex b/src/doc_tex/nt/min25_sieve.tex index d6420b3f2..0b35da326 100644 --- a/src/doc_tex/nt/min25_sieve.tex +++ b/src/doc_tex/nt/min25_sieve.tex @@ -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/} diff --git a/src/doc_tex/nt/pi_min25.tex b/src/doc_tex/nt/pi_min25.tex index 29cae7917..b81e04041 100644 --- a/src/doc_tex/nt/pi_min25.tex +++ b/src/doc_tex/nt/pi_min25.tex @@ -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} diff --git a/src/doc_tex/str/lyndon.tex b/src/doc_tex/str/lyndon.tex index 0a7c5bfa0..dd04c1003 100644 --- a/src/doc_tex/str/lyndon.tex +++ b/src/doc_tex/str/lyndon.tex @@ -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/} diff --git a/src/doc_tex/util/unordered_stl_hacker.tex b/src/doc_tex/util/unordered_stl_hacker.tex index 69c508a0f..0dd45a186 100644 --- a/src/doc_tex/util/unordered_stl_hacker.tex +++ b/src/doc_tex/util/unordered_stl_hacker.tex @@ -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}