Skip to content

Commit

Permalink
Modify LaTeX-cn slightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
wklchris committed Sep 24, 2016
1 parent 7f839f1 commit 1ae1bf1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@
*.ptc
*.nav
*.snm
*.vrb
*.vrb
*.bbl
*.blg
2 changes: 1 addition & 1 deletion LaTeX-beamer-en/LaTeX-beamer-en.tex
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ \subsection{Math Contents}
\end{frame}
\begin{frame}[fragile]
This is \env{theorem} environment, the same usage in normal \LaTeX:
This is \env{theorem} environment, it has the same usage with that under normal \LaTeX:
\begin{theorem}
If A=B, B=C, then A=C.
\end{theorem}
Expand Down
1 change: 1 addition & 0 deletions LaTeX-cn/Head.tex
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
\newcommand{\emptyaccsupp}[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}
% Color
\usepackage{xcolor}
\newcommand{\scol}[1]{\colorbox{#1}{\rule{0em}{1ex}}\,#1}
\definecolor{commentcolor}{RGB}{85,139,78}
\definecolor{numbercolor}{RGB}{166,206,168}
\definecolor{stringcolor}{RGB}{206,145,108}
Expand Down
Binary file modified LaTeX-cn/LaTeX-cn.pdf
Binary file not shown.
16 changes: 13 additions & 3 deletions LaTeX-cn/LaTeX-cn.tex
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,16 @@ \subsection{颜色}
{\color{`\textit{color-name}`}{text}}
\end{latex}

\LaTeX 原生支持的颜色:
\begin{center}
\tabcaption{\protect\LaTeX{} 预定义颜色}
\begin{tabular}{*{6}{l|}l}
\scol{black} & \scol{darkgray} & \scol{lime} & \scol{pink} & \scol{violet} & \scol{blue} & \scol{gray} \\
\scol{magenta} & \scol{purple} & \scol{white} & \scol{brown} & \scol{green} & \scol{olive} & \scol{red}\\
\scol{yellow} & \scol{cyan} & \scol{lightgray} & \scol{orange} & \multicolumn{3}{|l}{\scol{teal}}
\end{tabular}
\end{center}

\section{引用与注释}
电子文档的最大优越在于能够使用超链接,跳转标签、目录,甚至访问外部网站。这些功能实现都需要“引用”。
\subsection{标签和引用}
Expand Down Expand Up @@ -481,7 +491,7 @@ \subsection{脚注}
\footnote{This is a footnote.}
\end{latex}

行文中切忌过多地使用脚注,它会分散读者的注意力。默认情况下脚注按章编号。脚注与正文的间距使用类似\latexline{\\setlength{\\skip\\footins}{0.5cm}}的命令调节
行文中切忌过多地使用脚注,它会分散读者的注意力。默认情况下脚注按章编号。调节脚注与正文的间距类似\latexline{\\setlength{\\skip\\footins}{0.5cm}}即可

\subsection{参考文献}
\label{subsec:cite}
Expand Down Expand Up @@ -820,7 +830,7 @@ \subsection{纸张、方向和边距}

最后,这是一个小例子:
\begin{latex}{}
\usepackage[marginpar=3cm, includemp]{package}
\usepackage[marginpar=3cm,top=1in,includemp]{geometry}
\end{latex}

\subsection{页眉和页脚}
Expand Down Expand Up @@ -1545,7 +1555,7 @@ \subsection{箭头}
\end{tabular}
\end{table}

依旧给出一个基于amssymb宏包的附\tref{amsarrow}。
依旧给出一个基于amssymb宏包的附\tref{tab:amsarrow}。
\begin{table}[!htb]
\centering
\caption{amssymb箭头}
Expand Down
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Markdown是一种标记语言,类似于HTML,但它很注重**易读**和__

# 中文更新日志(Update Log in Chinese)

2016-09-22 Add **LaTeX-beamer-en**

2016-09-20

> LaTeX-cn
Expand Down

0 comments on commit 1ae1bf1

Please sign in to comment.