我的Lyx LaTeX Preamble

Article


\usepackage{fontspec,xunicode,xltxtra}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{color}
\usepackage{float}
\usepackage{blkarray}
\usepackage{multicol}
\usepackage{tcolorbox}
\tcbuselibrary{listings}
\setmainfont[BoldFont=Adobe Heiti Std]{Adobe Song Std}
\setsansfont[BoldFont=Adobe Heiti Std]{AR PL UKai CN}
\setmonofont{Bitstream Vera Sans Mono}
\XeTeXlinebreaklocale "zh"  %
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
\newcommand\li{\fontspec{LiSu}}
\newcommand\hei{\fontspec{SimHei}}
\newcommand\you{\fontspec{YouYuan}}
\newcommand\sun{\fontspec{SimSun}}
\newcommand\fangsong{\fontspec{仿宋_GB2312}}
\newcommand\kai{\fontspec{KaiTi_GB2312}}
\usepackage{titlesec}
\titleformat{\chapter}{\centering\huge}{第\thechapter{}章}{1em}{\textbf}
\titleformat{\part}{\centering\huge}{第\thepart{}部分}{1em}{\textbf}
\renewcommand{\contentsname}{目~录}
\renewcommand{\listfigurename}{插图目录}
\renewcommand{\listtablename}{表格目录}
\renewcommand{\indexname}{索引}
\renewcommand{\tablename}{表}
\renewcommand{\figurename}{图}
\renewcommand{\lstlistingname}{源码}

%算法框架用的
\usepackage{caption}
\usepackage{algorithm}
\usepackage{algpseudocode}
%设置边框用的
\usepackage{fancyvrb}
%水印用的
%\usepackage{watermark}
%\usepackage{draftwatermark}
%\SetWatermarkText{\shortstack{水印第一行\\水印第二行}}
%\SetWatermarkScale{0.3}
%\SetWatermarkLightness{0.88}%defaultis0.8

% lstlisting宏包:添加源码用的
\lstset{
basicstyle=\scriptsize,
numbers=left,
keywordstyle=\color{blue},
numberstyle={\tiny\color{lightgray}},
stepnumber=1, %行号会逐行往上递增
numbersep=5pt,
commentstyle=\small\color{red},
%backgroundcolor=\color[rgb]{0.95,1.0,1.0},
showspaces=false,
showtabs=false,
frame=shadowbox, framexleftmargin=5mm, rulesepcolor=\color{red!20!green!20!blue!20!},
% frame=single,
% TABframe=single,
tabsize=4,
breaklines=tr,
extendedchars=false %这一条命令可以解决代码跨页时,章节标题,页眉等汉字不显示的问题
}
% 公式编号,要在MathOptions中将ams和esint自动勾去选中不带自动的
% \numberwithin{equation}{section}

%图形环绕包围用
\usepackage{wrapfig}



Beamer

\usepackage{fontspec,xunicode,xltxtra}  
\usepackage{listings}  
\usepackage{xcolor}  
\usepackage{color}  
\usepackage{float}  
\usepackage{blkarray}  
\usepackage{multicol}  
\usepackage{tcolorbox}  
\tcbuselibrary{listings}  
\setmainfont[BoldFont=Adobe Heiti Std]{Adobe Song Std}  
\setsansfont[BoldFont=Adobe Heiti Std]{AR PL UKai CN}  
\setmonofont{Bitstream Vera Sans Mono}  
\XeTeXlinebreaklocale "zh"  %  
%图形环绕包围用
\usepackage{wrapfig}
%算法框架用的
\usepackage{caption}
\usepackage{algorithm}
\usepackage{algpseudocode}
\lstset{
basicstyle=\scriptsize,
numbers=left,
keywordstyle=\color{blue},
numberstyle={\tiny\color{lightgray}},
stepnumber=1, %行号会逐行往上递增
numbersep=5pt,
commentstyle=\small\color{red},
%backgroundcolor=\color[rgb]{0.95,1.0,1.0},
showspaces=false,
showtabs=false,
frame=shadowbox, framexleftmargin=5mm, rulesepcolor=\color{red!20!green!20!blue!20!},
% frame=single,
% TABframe=single,
tabsize=4,
breaklines=tr,
extendedchars=false %这一条命令可以解决代码跨页时,章节标题,页眉等汉字不显示的问题
}
\renewcommand{\lstlistingname}{源码}

%设置边框用的

%\usetheme{JuanLesPins}
%\usetheme{Goettingen}
\usetheme{Warsaw}
%\usetheme{Hannover}
%\usetheme{Madrid}
%\usetheme{Marburg}
%\usetheme{Antibes}
%\usetheme{Luebeck}
%\usetheme{Frankfurt}
%\usetheme{Darmstadt}
%\usetheme{Copenhagen}
%\usetheme{Berkeley}
%\usetheme{Berlin}
%\usetheme{Boadilla}
%\usepackage{pstcol,pst-node,pst-tree}
\hypersetup{pdfpagemode=FullScreen}
%\usecolortheme{albatross}
%\usecolortheme{beaver}
\setbeamercovered{transparent}
% or whatever (possibly just delete it)
\usepackage{multimedia}
\usefonttheme[onlylarge]{structuresmallcapsserif}


你可能感兴趣的:(sun,Adobe,float,Numbers)