#embed all fonts
pdftops file.pdf
ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true file.ps file.pdf

 

debug: cannot loaded simhei.ttf
put simhei into /usr/local/texlive/texmf-local/fonts/truetype
and then re-generate ls-R directory useing: sudo mktexlsr

fc-cache -fc: scan files
fc-list :lang=zh-cn #list all chinese font

 

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8
%!TEX main=../main.tex
\documentclass[11pt]{article}
\usepackage[a4paper,margin=0.75in]{geometry}
\usepackage{amsmath}
\usepackage{subfig}
\usepackage{epsfig}
\usepackage{graphicx}
\graphicspath{{figures/}}
\usepackage{epstopdf}
\epstopdfsetup{suffix=}
\usepackage{booktabs}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
\usepackage{CJK}

 

\newcommand{\myvskip}[0]{\vskip 1cm}
\begin{document}
\begin{CJK}{UTF8}{gbsn}

 

\title{Brief Article}
\author{The Author 蒋小可 }
%\date{}
\maketitle

 

 

\section{标签}
Hello World, 蒋小可

 

%多行等号对齐长公式
%\usepackage{amsmath}
\begin{equation}
\begin{split}
BitsSent &= (\Delta + p) * n \\
&= (\Delta + P) * \frac{1}{(1-\Omega)^{\Delta + P}}
\end{split}
\end{equation}

 

%大括号多种情况公式
\begin{equation} H =
\begin{cases}
h & \textrm{if p = 0} \\
\frac{1-(1-p)^h}{p} & \textrm{ if $p \neq 0 $}
\end{cases}
\end{equation}
or
\begin{displaymath}
\bar{H} = \left\{ \begin{array}{ll}
h & \textrm{if p = 0 } \\
\frac{1-(1-p)^h}{p} & \textrm{ if $p \neq 0 $}
\end{array} \right.
\end{displaymath}

 

%该环境对多行公式每行都加自动编号,如果相对某行不加编号,可在换行之前添加命令\nonumber
\begin{eqnarray}
a & b & c\\
x & y & z\\
\end{eqnarray}

 

%插入图片
\begin{figure}[htbp]
\begin{center}
\includegraphics[width=3.2in]{a}
\caption{Invalid Payload Ratio}
\label{fig:invalid-payload-ratio}
\end{center}
\end{figure}

 

% location of
% h Place the float here, i.e., approximately at the same point it occurs in the source text (however, not exactly at the spot)
% t Position at the top of the page.
% b Position at the bottom of the page.
% p Put on a special page for floats only.
% ! Override internal parameters LaTeX uses for determining “good” float positions.
% H Places the float at precisely the location in the LaTeX code. Requires the float package,[1] e.g., \usepackage{float}. This is somewhat equivalent to h!.

 

%一行多个图片
%\usepackage{subfig}
\begin{figure*}[t]
\centering
\subfloat[Node Failure] {\label{fig:nodedown}
\includegraphics[width=0.5\textwidth]{a}}
\subfloat[Link Failure] {\label{fig:linkfail}
\includegraphics[width=0.5\textwidth]{b}}
\myvskip
\end{figure*}

 

%多行多个
%\usepackage{subfig}
\begin{figure*}[t]
\centering
\subfloat[Node Failure] {\label{fig:nodedown}
\includegraphics[width=0.33\textwidth]{a}}
\subfloat[Link Failure] {\label{fig:linkfail}
\includegraphics[width=0.33\textwidth]{a}}
\subfloat[Bandwidth] {\label{fig:bandwidth}
\includegraphics[width=0.33\textwidth]{a}}

 

\subfloat[Packet Loss] {\label{fig:loss}
\includegraphics[width=0.33\textwidth]{b}}
\subfloat[Latency] {\label{fig:latency}
\includegraphics[width=0.33\textwidth]{b}}
\subfloat[Jitter] {\label{fig:jitter}
\includegraphics[width=0.33\textwidth]{b}}
\caption{QoS and Reliability}
\label{fig:qos}
\end{figure*}

 

%表格样式
%\usepackage{booktabs}
\begin{table}[htbp]
\caption{Terminology}
\begin{center}
\begin{tabular}{cl}
\toprule[1.5pt]
Variable & Meaning \\
\midrule[1pt]
$\Delta$ & overhead of signature \\
$S$ & File Size \\
$B$ & Bandwidth\\
$\Omega$ & Packet Loss rate of 1KB Packet\\
$p$ & Payload Size (by 1KB)\\
$\rho$ & Packet Loss rate of Packet with Size $\Delta+p$\\
n & Time of Transmission to delivery a Chunk\\
\bottomrule[1.5pt]
\end{tabular}
\end{center}
\label{default}
\end{table}%

 

%\usepackage{booktabs}
\begin{table}[htbp]
\caption{Terminology}
\begin{center}
\begin{tabular}{cl}
\toprule[1.5pt]
A & B \\
\midrule[1pt]
C & D \\
X & Y\\
\bottomrule[1.5pt]
\end{tabular}
\end{center}
\label{default}
\end{table}

 

%蒋小可
\end{CJK}
\end{document}