开始使用Latex写作啦!不过目前处于测试摸索阶段,欢迎提issue~

This commit is contained in:
skyel1u
2018-01-13 23:29:42 +08:00
parent c68ed33d4c
commit bf8f3d4038
62 changed files with 1443 additions and 0 deletions

View 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}

View 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

View 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}

View 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: äöüß

View File

@ -0,0 +1,4 @@
\chapter{Japanese - 日本語}
むかし、むかし、ある所におじいさんとおばあさんが住んでいました。おじいさんは山へしば刈りに、おばあさんは川へ洗濯に行きました。すると大きな桃が流れてきました。
「なんと大きな桃じゃろう!家に持って帰ろう。」とおばあさんは背中に担いで帰って行きました。

View 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}

View 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}

View 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}

View 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}

View 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}

View File

@ -0,0 +1,7 @@
\chapter{Snippets}
\input{contents/EN/snippets/bash}
\input{contents/EN/snippets/html}
\input{contents/EN/snippets/java}

View 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}

View 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}

View File

@ -0,0 +1,9 @@
\chapter{Use of References}
\cite{exampleArticle} Article
\\
\cite{exampleBook} Book
\\
\cite{exampleManual} Manual
\\
\cite{exampleOnline} Online

View File

@ -0,0 +1,3 @@
\chapter{Use of Index}
\index{test index} Test

View File

@ -0,0 +1,21 @@
\input{contents/ZH/introduction/introduction}
%\newpage
% \input{contents/ZH/snippets/snippets}
% \newpage
% \input{contents/ZH/useofabbreviations/useofabbreviations}
% \newpage
% \input{contents/ZH/useofbibliography/useofbibliography}
% \newpage
% \input{contents/ZH/useofindex/useofindex}
% \newpage
% \input{contents/ZH/tables/tables}
% \newpage
% \input{contents/ZH/footnotes/footnotes}
% \newpage
% \input{contents/ZH/japanese/japanese}
% \newpage
% \input{contents/ZH/images/images}
% \newpage
% \input{contents/ZH/landscape/landscape}
% \newpage
% \input{contents/ZH/mathematics/mathematics}

View File

@ -0,0 +1,36 @@
\chapter{前言}
————“与其相信谣言,不如一起学习”。
\section{常见问题}
\begin{itemize}\setlength{\parindent}{2em}
\item 什么是 CTF我为什么要学
CTF 是网络安全技术人员之间进行技术竞技的一种比赛形式,通过学习,可以在法律允许的范围内,快速地了解和掌握相关安全技术。
\item 阅读本书的预备知识是什么?
本书是为初学者准备的,不要求有预备知识,但如果对 Linux 操作系统,对编程有一定了解,肯定会有帮助。
\item 我可以买到纸质版吗?
抱歉,目前没有。除非对纸质书有偏好,你可以自行打印。否则由于内容整体尚未完成,且更新很快,作者更推荐使用电子版。
\item 本书有PDF/epub/mobi格式的吗
没有 epub/mobi 版本。暂时有 pdf可在 GitBook 页面下载这群人正在努力学习Latex的使用以提供更优雅的排版和PDF文件。
\item 我能打印本书或者作为教材教课吗?
太棒了!必须的!本书使用 Creative Commons license (CC BY-SA 4.0),大可随意使用。作为一个开源项目,我们当然希望更多的人了解并参与进来。
\item 本书为何免费,有何目的?
技术类书籍大多赚不到钱,只是作者的兴趣使然,顺便给自己打个广告。
\item 我还有其他问题。
你也可以选择提交issue到本仓库也可以邮件联系我们。
\end{itemize}

View File

@ -0,0 +1,5 @@
\IfFileExists{contents/\CONFIGLanguage/contents}{
\input{contents/\CONFIGLanguage/contents}
}{false-branch
Content: UNSUPPORTED LANGUAGE ,,\CONFIGLanguage ``
}