zoukankan      html  css  js  c++  java
  • LaTeX模板

    学校linux机子根本跑不动libreoffice,wps没有公式,只好上LaTeX了。

    先 beamer:
    需要安装firasans和firamono字体,思源黑体SC

    documentclass[10pt]{beamer}
    
    usetheme[progressbar=frametitle]{metropolis}
    usepackage{appendixnumberbeamer}
    
    usepackage{booktabs}
    usepackage[scale=2]{ccicons}
    
    usepackage{pgfplots}
    usepgfplotslibrary{dateplot}
    
    usepackage{xspace}
    
    ewcommand{	hemename}{	extbf{	extsc{metropolis}}xspace}
    
    usepackage[bookmarks=true]{hyperref}
    
    usepackage[BoldFont,SlantFont,CJKchecksingle]{xeCJK}
    setCJKmainfont[BoldFont=SimHei]{SimSun}
    setCJKmonofont{FangSong_GB2312}
    setCJKsansfont[BoldFont=Source Han Sans SC Medium, ItalicFont=KaiTi_GB2312]{Source Han Sans SC Normal}
    
    	itle{这是一个测试的标题}
    subtitle{test你好}
    % date{	oday}
    date{	oday}
    author{poorpool}
    institute{lfyz}
    	itlegraphic{hfillincludegraphics[height=1.5cm]{lfyzoj.png}}
    
    egin{document}
    	
    maketitle
    section{orzzz}
    egin{frame}{QAQ中文假}
    test LaTeX{}
    
    QAQ公式 ,$sum_{i=1}^{+infty}a_i^2$
    end{frame}
    
    setbeamercolor{palette primary}{fg=white, bg=mDarkTeal}
    	egin{frame}[standout]
    	Questions?
    end{frame}
    end{document}
    
    documentclass[12pt]{article}
    
    usepackage{xeCJK}
    usepackage{fontspec}
    usepackage{indentfirst}
    usepackage{geometry}
    usepackage{graphicx}
    usepackage[format=hang,font=small,textfont=it]{caption}
    usepackage{float}
    usepackage[usenames, dvipsnames]{xcolor}
    usepackage{listings}
    usepackage{amsmath}
    usepackage[perpage]{footmisc}
    usepackage[nottoc]{tocbibind}
    
    setmonofont{Input}
    
    setCJKmainfont[BoldFont=SimHei, ItalicFont=KaiTi_GB2312]{SimSun}
    setCJKmonofont{FangSong_GB2312}
    setCJKsansfont{WenQuanYi Micro Hei}
    
    
    enewcommand{abstractname}{摘要}
    
    enewcommand
    efname{参考文献}  
    
    enewcommandfigurename{图}  
    
    enewcommand	ablename{表} 
    
    
    ewtheorem{thm}{定理}
    
    ewtheorem{lemma}{引理}
    
    ewtheorem{definition}{定义}
    
    makeatletter
    let@afterindentfalse@afterindenttrue
    @afterindenttrue
    makeatother
    setlength{parindent}{2em}
    
    lstset{
    	basicstyle=	tfamily,% 基本风格
    	numberstyle=	tfamily,
    	numbers=left,    % 行号
    	numbersep=10pt,  % 行号间隔 
    	tabsize=4,       % 缩进
    	extendedchars=true, % 扩展符号?
    	breaklines=true, % 自动换行
    	language=C++,
    	showspaces=false,% 空格字符加下划线
    	showstringspaces=false,% 字符串中的空格加下划线
    	showtabs=false,  % 字符串中的tab加下划线
    	breaklines=true,
    	frame=shadowbox,
    	rulesepcolor=color{red!20!green!20!blue!20},
    	keywordstyle=color{Fuchsia},       % keyword style
    	stringstyle=color{teal},
    	commentstyle=color{gray},
    }
    
    	itle{huge OI练习赛}
    author{poorpool}
    date{	oday}
    
    egin{document}
    
    maketitle
    
    你好!
    
    end{document}
    
    
  • 相关阅读:
    一文看懂:史上最通俗的视频编码技术详解
    浅谈常见的七种加密算法及实现
    自毁程序
    windows下, 宽字符和窄字符的打印输出
    修改Django自带auth模块的表名
    苹果IOS微信网页cookie缓存清理
    django_rest_framework ModelViewSet不支持PUT方法,PUT修改后不生效
    nginx的access日志打印十六进制x16x03x01x02x00x01
    解决/usr/bin/ld: cannot find -lmariadb报错
    使用antd的Upload组件和axios上传文件
  • 原文地址:https://www.cnblogs.com/poorpool/p/8366900.html
Copyright © 2011-2022 走看看