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/contents.tex
Normal file
21
tex/contents/EN/contents.tex
Normal file
@ -0,0 +1,21 @@
|
||||
\input{contents/EN/introduction/introduction}
|
||||
\newpage
|
||||
\input{contents/EN/snippets/snippets}
|
||||
\newpage
|
||||
\input{contents/EN/useofabbreviations/useofabbreviations}
|
||||
\newpage
|
||||
\input{contents/EN/useofbibliography/useofbibliography}
|
||||
\newpage
|
||||
\input{contents/EN/useofindex/useofindex}
|
||||
\newpage
|
||||
\input{contents/EN/tables/tables}
|
||||
\newpage
|
||||
\input{contents/EN/footnotes/footnotes}
|
||||
\newpage
|
||||
\input{contents/EN/japanese/japanese}
|
||||
\newpage
|
||||
\input{contents/EN/images/images}
|
||||
\newpage
|
||||
\input{contents/EN/landscape/landscape}
|
||||
\newpage
|
||||
\input{contents/EN/mathematics/mathematics}
|
9
tex/contents/EN/footnotes/footnotes.tex
Normal file
9
tex/contents/EN/footnotes/footnotes.tex
Normal file
@ -0,0 +1,9 @@
|
||||
\chapter{Footnotes}
|
||||
|
||||
one\footnote{\label{foot-1}Footnote 1.}
|
||||
two\footnote{\label{foot-2}Footnote 2.}
|
||||
three\footnote{\label{foot-3}Footnote 3.}
|
||||
four\textsuperscript{\ref{foot-2}}
|
||||
|
||||
\section{Example 1}
|
||||
test
|
18
tex/contents/EN/images/images.tex
Normal file
18
tex/contents/EN/images/images.tex
Normal file
@ -0,0 +1,18 @@
|
||||
\chapter{Use of Images}
|
||||
|
||||
% Required packages: "graphicx", "float"
|
||||
% See for more info: https://en.wikibooks.org/wiki/LaTeX/Importing_Graphics
|
||||
\section{Image Area}\index{Image Area}
|
||||
\subsection{Example Image 1}
|
||||
|
||||
\includegraphics[trim = 10mm 60mm 20mm 5mm, clip, height=\linewidth, angle=90]{\IMGExampleOne}
|
||||
\captionof{figure}{Example Image 1}
|
||||
|
||||
\subsection{Example Image 2}
|
||||
|
||||
\includegraphics[width=\linewidth]{\IMGExampleTwo}
|
||||
\captionof{figure}{Example Image 2}
|
||||
\label{figure:anime}
|
||||
|
||||
You can reference images, for instance, the image \ref{figure:anime} shows
|
||||
an image from \textit{unsplash}
|
37
tex/contents/EN/introduction/introduction.tex
Normal file
37
tex/contents/EN/introduction/introduction.tex
Normal file
@ -0,0 +1,37 @@
|
||||
\chapter{Introduction}
|
||||
|
||||
this is the first chapter
|
||||
|
||||
\section{section}
|
||||
|
||||
This is the first section.
|
||||
|
||||
\subsection{Subsection}
|
||||
|
||||
normal \emph{italic}, \textbf{bold} and \textbf{\emph{bold italic}}.
|
||||
|
||||
ä ö ü ß
|
||||
|
||||
% Required packages: "csquotes", (optional) "babel"
|
||||
|
||||
% bold
|
||||
{\textbf{Sample Text 0123}}
|
||||
\\ % italic
|
||||
{\textit{Sample Text 0123}}
|
||||
\\ % small caps
|
||||
{\textsc{Sample Text 0123}}
|
||||
\\ % sans serif
|
||||
{\textsf{Sample Text 0123}}
|
||||
\\ % tiny
|
||||
{\tiny{Sample Text 0123}}
|
||||
\\ % normalsize
|
||||
{\normalsize{Sample Text 0123}}
|
||||
\\ % huge
|
||||
{\huge{Sample Text 0123}}
|
||||
\\ % hiperlink
|
||||
{\color{HyperlinkBlue}\url{https://de.sharelatex.com/learn/}}
|
||||
\\
|
||||
\\
|
||||
A \rotatebox{90}{B} C
|
||||
\\
|
||||
These are special characters: äöüß
|
4
tex/contents/EN/japanese/japanese.tex
Normal file
4
tex/contents/EN/japanese/japanese.tex
Normal file
@ -0,0 +1,4 @@
|
||||
\chapter{Japanese - 日本語}
|
||||
|
||||
むかし、むかし、ある所におじいさんとおばあさんが住んでいました。おじいさんは山へしば刈りに、おばあさんは川へ洗濯に行きました。すると大きな桃が流れてきました。
|
||||
「なんと大きな桃じゃろう!家に持って帰ろう。」とおばあさんは背中に担いで帰って行きました。
|
6
tex/contents/EN/landscape/landscape.tex
Normal file
6
tex/contents/EN/landscape/landscape.tex
Normal file
@ -0,0 +1,6 @@
|
||||
% Requierd packages: "pdflscape" alternative: lscape
|
||||
\begin{landscape}
|
||||
\chapter{Landscape Area}\index{Landscape Area}
|
||||
\section{Example 1}
|
||||
This page is in Landscape mode
|
||||
\end{landscape}
|
30
tex/contents/EN/mathematics/mathematics.tex
Normal file
30
tex/contents/EN/mathematics/mathematics.tex
Normal file
@ -0,0 +1,30 @@
|
||||
\chapter{Mathematics Area}\index{Mathematics Area}
|
||||
\section{Example 1}
|
||||
|
||||
The well known Pythagorean theorem \(x^2 + y^2 = z^2\) was
|
||||
proved to be invalid for other exponents.
|
||||
Meaning the next equation has no integer solutions:
|
||||
|
||||
\[ x^n + y^n = z^n \]
|
||||
|
||||
An alternative:
|
||||
|
||||
\begin{center}
|
||||
\begin{math}
|
||||
7+12+x=10
|
||||
\end{math}
|
||||
\end{center}
|
||||
|
||||
In physics, the mass-energy equivalence is stated
|
||||
by the equation $E=mc^2$, discovered in 1905 by Albert Einstein.
|
||||
|
||||
The mass-energy equivalence is described by the famous equation
|
||||
|
||||
$$E=mc^2$$
|
||||
|
||||
discovered in 1905 by Albert Einstein.
|
||||
In natural units ($c$ = 1), the formula expresses the identity
|
||||
|
||||
\begin{equation}
|
||||
E=m
|
||||
\end{equation}
|
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}
|
109
tex/contents/EN/tables/tables.tex
Normal file
109
tex/contents/EN/tables/tables.tex
Normal file
@ -0,0 +1,109 @@
|
||||
\chapter{Tables}
|
||||
|
||||
% alternate rowcolors for all long-tables
|
||||
\renewenvironment{longtable}{\rowcolors{2}{LightGray}{white}\oldlongtable} {\endoldlongtable}
|
||||
|
||||
\begin{longtable}[l]{| p{40mm} | p{105mm} |}
|
||||
\hline
|
||||
\rowcolor{Gray}
|
||||
\textbf{Term} & \textbf{Description}\\
|
||||
\hline
|
||||
|
||||
\endfirsthead
|
||||
|
||||
\hline
|
||||
\rowcolor{Gray}
|
||||
\textbf{Term} & \textbf{Description}\\
|
||||
\hline
|
||||
|
||||
\endhead
|
||||
\hiderowcolors
|
||||
\endfoot
|
||||
\caption{Table example}\label{table:kysymys}\\
|
||||
\endlastfoot
|
||||
\showrowcolors
|
||||
Lotsoflines & like this like this like this like this like this like this like this like this like this like this like this like this like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
Lots of lines & like this\\
|
||||
\hline
|
||||
\end{longtable}
|
||||
|
||||
Table \ref{table:kysymys}
|
33
tex/contents/EN/useofabbreviations/useofabbreviations.tex
Normal file
33
tex/contents/EN/useofabbreviations/useofabbreviations.tex
Normal file
@ -0,0 +1,33 @@
|
||||
\chapter{Use of Abbreviations}
|
||||
|
||||
\ac{KDE} % K Desktop Environment (KDE)
|
||||
\\
|
||||
\acs{KDE} % KDE
|
||||
\\
|
||||
\acf{KDE} % K Desktop Environment (KDE)
|
||||
\\
|
||||
\acl{KDE} % K Desktop Environment
|
||||
\\
|
||||
\acp{KDE} % K Desktop Environments (KDEs)
|
||||
\\
|
||||
\acsp{KDE} % KDEs
|
||||
\\
|
||||
\acfp{KDE} % K Desktop Environments (KDEs)
|
||||
\\
|
||||
\aclp{KDE} % K Desktop Environments
|
||||
\\
|
||||
\ac{SQL}
|
||||
\\
|
||||
\acs{SQL}
|
||||
\\
|
||||
\acf{SQL}
|
||||
\\
|
||||
\acl{SQL}
|
||||
\\
|
||||
\acp{SQL}
|
||||
\\
|
||||
\acsp{SQL}
|
||||
\\
|
||||
\acfp{SQL}
|
||||
\\
|
||||
\aclp{SQL}
|
9
tex/contents/EN/useofbibliography/useofbibliography.tex
Normal file
9
tex/contents/EN/useofbibliography/useofbibliography.tex
Normal file
@ -0,0 +1,9 @@
|
||||
\chapter{Use of References}
|
||||
|
||||
\cite{exampleArticle} Article
|
||||
\\
|
||||
\cite{exampleBook} Book
|
||||
\\
|
||||
\cite{exampleManual} Manual
|
||||
\\
|
||||
\cite{exampleOnline} Online
|
3
tex/contents/EN/useofindex/useofindex.tex
Normal file
3
tex/contents/EN/useofindex/useofindex.tex
Normal file
@ -0,0 +1,3 @@
|
||||
\chapter{Use of Index}
|
||||
|
||||
\index{test index} Test
|
Reference in New Issue
Block a user