Latex Templates

Latex 中文 Option 1

% ctex_test.tex
\documentclass[UTF8]{ctexart}
\CTEXsetup[format={\Large\bfseries}]{section}	% align right
\pagestyle{plain}	% remove top header

\usepackage{fontspec} % Font selection for XeLaTeX; see fontspec.pdf for documentation
\defaultfontfeatures{Mapping=tex-text} % to support TeX conventions like ``---''
\usepackage{xunicode} % Unicode support for LaTeX character names (accents, European chars, etc)
\usepackage{xltxtra} % Extra customizations for XeLaTeX
\setmainfont{Charis SIL} % set the main body font (\textrm), assumes Charis SIL is installed

% other LaTeX packages.....
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{a4paper} % or letterpaper (US) or a5paper or....
\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent

\usepackage{graphicx} % support the \includegraphics command and options

\title{一些文字}
\author{  }
\date{} % Activate to display a given date or no date (if empty),
% otherwise the current date is printed

\begin{document}
\maketitle

\section{ }

\subsection{ }

\end{document}

Latex 中文 Option 2

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode

%From Smart Kanji Book template released under CC-BY-SA : https://creativecommons.org/licenses/by-sa/2.0/
%Source : http://smartkanjibook.com/wp-content/uploads/2013/11/free_sample.pdf
%Will only work with xelatex, IPAex fonts and GNU Unifont

\documentclass[a4paper,12pt]{book}

%\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{mdframed}
\usepackage{anyfontsize}
\usepackage[colorlinks=true,urlcolor=blue]{hyperref}
\usepackage{ctex}
\usepackage{xpatch}
\usepackage[margin=1in]{geometry}

% \usepackage[fallback]{xeCJK}
% \usepackage{CJKfntef}
% \ExplSyntaxOn
%     \xpatchcmd\__xeCJK_check_family:n{\__xeCJK_warning:nxx}{\__xeCJK_info:nxx}{}{}
% \ExplSyntaxOff
% due to unexpected xelatex error with ipaexm.ttf and ipaexg.ttf fonts
% \setCJKmainfont{FandolSong-Regular}

\title{操作文档}
\author{作者}
\date{2022-10-12}

\begin{document}

\maketitle
\begin{center}
  Š 2013 Thomas Schneider\\
  Released under \href{https://creativecommons.org/licenses/by-sa/2.0/}{CC-BY-SA}. If you want to reuse it, please respect the atttribution clause by linking to the \href{http://smartkanjibook.com/wp-content/uploads/2013/11/free_sample.pdf}{original document} (\href{mailto:ts@domainname.com}{emailing me} would also be nice).
\end{center}
\vfill
\paragraph{Many Thanks to:}
\begin{itemize}
  \item James Heisig for inspiring this template with his book Remembering the Kanji.
\end{itemize}

\chapter*{Smart Kanji Book Template}
\section*{Inspired by Remembering the Kanji}

\begin{mdframed}
  {\fontsize{3em}{3.6em}\selectfont 漢字  }
  \textbf{ {\Large : keyword } \hfill {\large parts, parts}}
  \paragraph{} Story
  \begin{description}
    \item[word] definition
  \end{description}
\end{mdframed}

\end{document}

Tikz Matrix

\documentclass[10pt]{article}
\usepackage{tikz}
\usetikzlibrary{backgrounds,fit}

\begin{document}

\begin{tikzpicture}[outer sep=0.05cm,node distance=0.8cm,]
\tikzstyle{bigbox} = [draw=blue!50, thick, fill=blue!10, rounded corners, rectangle]
\tikzstyle{box} = [minimum size=0.6cm, rounded corners,rectangle, fill=blue!50]
%
\node[box] (11) {1};
\node[box,right of=11] (12) {2};
\node[box,right of=12] (13) {3};
\node[box,below of=11] (21) {4};
\node[box,right of=21] (22) {5};
\node[box,right of=22] (23) {6};
%
\begin{pgfonlayer}{background}
  \node[bigbox] [fit = (11) (23)] {};
\end{pgfonlayer}
%
\end{tikzpicture}

\end{document}
Previous
Next