
Latex
蓝鲸123
做更好的自己
展开
-
latex中,如何定义definition 和theorem
我们可以先导入包: \usepackage{amsthm}但,由于,这个包已经在amsmath中包含了,故而只包含amsmath就够了。然后,在preamble中定义, 就是在usepackage后面,定义\newtheorem{myDef}{Definition} \newtheorem{myTheo}{Theorem}当然,第一个括号里的随便定义。然后,在下面,就可以用: \begin{原创 2016-11-04 10:51:22 · 66068 阅读 · 6 评论 -
LaTeX:加背景色
设置环境、段落的背景色1.导言区部分,文件头\usepackage{color} %\definecolor{shadecolor}{named}{Gray} \definecolor{shadecolor}{rgb}{0.92,0.92,0.92} \usepackage{framed} 2.文档内容部分begin{shaded} $$ \int_...原创 2018-06-16 14:07:51 · 9456 阅读 · 0 评论 -
latex摘要栏设置
%摘要单栏设置 \twocolumn[ \begin{@twocolumnfalse} \maketitle \renewcommand{\abstractname} {}%不显示摘要名字 \begin{abstract} \noindent%摘要无缩进 摘要正文 \end{abstract} \renewcomman原创 2016-11-23 12:31:07 · 20601 阅读 · 1 评论 -
Latex: 调整文档的行距
若在文档中使用两倍行距,要在导言区中加入 \linespread{1.6} 或等价地 \renewcommand{\baselinestretch}{1.6} 这时,除了使得正文中行距为缺省值的两倍外,脚注和浮动对象中标题的行距 也扩大为原来的两倍。要想在正文中使用两倍行距,而在标题中使用单倍行距, 可由 setspace 宏包来完成这一任务。 \usepackage{setspace}原创 2016-11-23 12:32:36 · 6946 阅读 · 0 评论 -
Latex 设置字体和名称中文化
%——————————设置字体大小————————% \newcommand{\chuhao}{\fontsize{42pt}{\baselineskip}\selectfont} %初号 \newcommand{\xiaochuhao}{\fontsize{36pt}{\baselineskip}\selectfont} %小初号 \newcommand{\yihao}{\fonts原创 2016-11-23 12:29:36 · 3797 阅读 · 0 评论 -
latex 插入Logo
Logo怎么办?搜索到一个还算好用的eso-pic宏包,导言区 \usepackage{eso-pic} \newcommand\BackgroundPic{ \put(16.57, 23.19){ \parbox[t]{\textwidth}{ \includegraphics[scale=1,keepaspectratio]{logo_jnm.png}%原创 2016-11-23 12:26:39 · 12143 阅读 · 0 评论 -
titlesec
跟章节标题有关的自然都要请出titlesec宏包,在导言区写\usepackage[bf, small]{titlesec}\titleformat{\section}{\bf\large}{\thesection.\,}{0.24em}{}\titlespacing{\section}{0cm}{*1.5}{*1.1}\titleformat{\subsection}{\it}{\thesu原创 2016-11-23 12:15:41 · 2030 阅读 · 0 评论 -
XeCJK 使用系统字体
\documentclass[12pt,a4paper]{article}\usepackage{xeCJK}%\usepackage{ctex}\usepackage{fontenc,xunicode,xltxtra}\usepackage{titlesec}\usepackage[top=1in,bottom=1in,left=1.25in,right=1.25in]{geometry原创 2016-11-23 12:12:14 · 5257 阅读 · 0 评论 -
Latex 使用windows自带字体
\documentclass[12pt,a4paper]{article}\usepackage{fontspec,xunicode,xltxtra}\usepackage{titlesec}\usepackage[top=1in,bottom=1in,left=1.25in,right=1.25in]{geometry}\titleformat{\section}{\Large\xbson原创 2016-11-22 12:44:51 · 6634 阅读 · 0 评论 -
latex 矩阵叫行列编号
\begin{array}{lc}\mbox{}&\begin{array}{cc}r&m-r \end{array}\\\begin{array}{c}l\\n-l\end{array}&\left[\begin{array}{cc}P&0\\0&Q\end{array}\right]\end{array}原创 2016-12-02 01:29:59 · 6844 阅读 · 1 评论 -
IPE 画图(辅助Latex)
IPe 我们在用 word 写文章时,一般会用 Visio 画图,然后把他黏贴到 word 中;而写论文一般都会用 LaTeX 排版,虽然你也能用 Visio 画图,但是公式啊什么支持的并不好,那么我们会用什么来画图呢?比如很有名的 MetaPost 绘矢量图的编程语言,但学起来太费劲…而且我们要画的图一般不麻烦。我们就想: 是不是有一个GUI的工具,能够基本满足画图需求,而且能够和 La原创 2016-10-31 21:32:57 · 7333 阅读 · 2 评论 -
Latex中的caption
一般而言图片的题注会加在图片下方。如果想要使题注位于图片上方,只需要 \caption{caption-content} 置于命令 \includegraphics[options]{picture-file} 之前即可。下面是一个例子。\begin{figure}[h!] \caption{A picture of a gull.} \centering \includegraphic转载 2016-11-07 12:22:28 · 43315 阅读 · 0 评论 -
Latex使用介绍
\\ 表示换行 \chapter{} \section{} \subsection{} 其中chapter 表示每一个大的章节,section 为章节里面的每一个小标题 \tableofcontents \sec原创 2016-11-05 11:01:57 · 3918 阅读 · 0 评论 -
在Mac上通过Sublime、Skim编辑LaTeX
Sublime Text是一款非常优秀的编辑器,速度快,界面简洁,插件众多。并且能跨平台使用,在Mac和Windows上都能完美使用。虽然是一款付费软件,但作者很厚道地给了无限期的试用期限。这一切正如其官网广告词说的那样:The text editor you’ll fall in love with.Skim是一款免费轻量的PDF阅读、标注工具,布局贴心友好,与OS X自带的Previewer...原创 2019-01-12 14:52:26 · 717 阅读 · 0 评论