mirror of
https://github.com/nganhkhoa/CTF-All-In-One.git
synced 2025-06-23 03:35:03 +07:00
开始使用Latex写作啦!不过目前处于测试摸索阶段,欢迎提issue~
This commit is contained in:
21
tex/contents/EN/snippets/bash.tex
Normal file
21
tex/contents/EN/snippets/bash.tex
Normal file
@ -0,0 +1,21 @@
|
||||
\section{Bash Light}
|
||||
|
||||
\begin{lstlisting}[language=bash, style=customStyleBashLight, caption=Snippet title]
|
||||
#!/bin/bash
|
||||
|
||||
STRING="HELLO WORLD!!!"
|
||||
echo $STRING
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Bash Dark}
|
||||
|
||||
\begin{lstlisting}[language=bash, style=customStyleBashDark, caption=Snippet title]
|
||||
#!/bin/bash
|
||||
|
||||
STRING="HELLO WORLD!!!"
|
||||
echo $STRING
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Bash Import}
|
||||
|
||||
\lstinputlisting[language=bash, style=customStyleBashDark, caption=Snippet title]{\SNIPPETBash}
|
51
tex/contents/EN/snippets/html.tex
Normal file
51
tex/contents/EN/snippets/html.tex
Normal file
@ -0,0 +1,51 @@
|
||||
\section{HTML Light}
|
||||
|
||||
\begin{lstlisting}[language=bash, style=customStyleHTMLLight, caption=Snippet title]
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>GGHTMLCodeExample</title>
|
||||
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
|
||||
<script>
|
||||
var variable = 4;
|
||||
if(variable != null && variable == 4) {
|
||||
variable++;
|
||||
variable += 12 * 4 / 3;
|
||||
document.write(variable);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div><Example HTML/div>
|
||||
</body>
|
||||
</html>
|
||||
\end{lstlisting}
|
||||
|
||||
\section{HTML Dark}
|
||||
|
||||
\begin{lstlisting}[language=bash, style=customStyleHTMLDark, caption=Snippet title]
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>GGHTMLCodeExample</title>
|
||||
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
|
||||
<script>
|
||||
var variable = 4;
|
||||
if(variable != null && variable == 4) {
|
||||
variable++;
|
||||
variable += 12 * 4 / 3;
|
||||
document.write(variable);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div><Example HTML/div>
|
||||
</body>
|
||||
</html>
|
||||
\end{lstlisting}
|
||||
|
||||
\section{HTML Import}
|
||||
|
||||
\lstinputlisting[language=bash, style=customStyleHTMLDark, caption=Snippet title]{\SNIPPETHTML}
|
33
tex/contents/EN/snippets/java.tex
Normal file
33
tex/contents/EN/snippets/java.tex
Normal file
@ -0,0 +1,33 @@
|
||||
\section{Java Light}
|
||||
|
||||
\begin{lstlisting}[language=bash, style=customStyleJavaLight, caption=Snippet title]
|
||||
/**
|
||||
* HelloWorld.java
|
||||
*/
|
||||
|
||||
public class HelloWorld
|
||||
{
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello World!");
|
||||
}
|
||||
}
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Java Dark}
|
||||
|
||||
\begin{lstlisting}[language=bash, style=customStyleJavaDark, caption=Snippet title]
|
||||
/**
|
||||
* HelloWorld.java
|
||||
*/
|
||||
|
||||
public class HelloWorld
|
||||
{
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello World!");
|
||||
}
|
||||
}
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Java Import}
|
||||
|
||||
\lstinputlisting[language=bash, style=customStyleJavaDark, caption=Snippet title]{\SNIPPETJava}
|
7
tex/contents/EN/snippets/snippets.tex
Normal file
7
tex/contents/EN/snippets/snippets.tex
Normal file
@ -0,0 +1,7 @@
|
||||
\chapter{Snippets}
|
||||
|
||||
\input{contents/EN/snippets/bash}
|
||||
|
||||
\input{contents/EN/snippets/html}
|
||||
|
||||
\input{contents/EN/snippets/java}
|
Reference in New Issue
Block a user