latex

周报 Latex 模板

时间秒杀一切 提交于 2020-03-13 11:23:40
在单位,每周末都要写周报给老大。于是自己写了一个简易的周报模板,供大家和我自己参考吧。中间的注释部分是为了添加能够显示并排的图片。 另外,向大家推荐Tex编写工具TeXstudio 我觉着相较于TexMaker,前者的最大好处就是多了一个New from Template的选项。这个功能非常实用。 \documentclass[]{article} \usepackage{datetime} \usepackage{advdate} \usepackage{graphicx} \usepackage[top=1in, bottom=1in, left=1.25in, right = 1.25in]{geometry} %\begin{figure}[htbp] %\centering %\begin{minipage}[t]{0.3\textwidth} %\centering %\includegraphics{left} %\caption{part one} %\end{minipage} %\begin{minipage}[t]{0.3\textwidth} %\centering %\includegraphics{right} %\caption{part two} %\end{minipage} %\end{figure} \begin{document}

在windows10上使用sphinx制作文档,并输出PDF

你离开我真会死。 提交于 2020-03-11 10:20:09
1、安装sphinx pip3 install -U sphinx 2、安装现成的主题 pip3 install sphinx-rtd-theme 3、使用向导 制作一个文档 sphinx-quickstart 4、在文档的配置中使用主题 #引用主题 import sphinx_rtd_theme #设置扩展 extensions = [ ... "sphinx_rtd_theme" ... ] #设置主题名称 html_theme = "sphinx_rtd_theme" #设置主题选项 html_theme_options = { 'canonical_url': '', # 'analytics_id': 'UA-XXXXXXX-1', # Provided by Google in your dashboard 'logo_only': False, 'display_version': True, 'prev_next_buttons_location': 'bottom', 'style_external_links': False, # 'vcs_pageview_mode': '', # 'style_nav_header_background': 'white', # Toc options 'collapse_navigation': True, 'sticky

CSDN-markdown语法之怎样使用LaTeX语法编写数学公式

南笙酒味 提交于 2020-03-11 07:40:55
文件夹 文件夹 正文 标记公式 行内公式 块级公式 上标和下标 分数表示 各种括号 根号表示 省略号 矢量表示 间隔空间 希腊字母 特殊字符 关系运算符 集合运算符 对数运算符 三角运算符 微积分运算符 逻辑运算符 戴帽符号 连线符号 箭头符号 几个样例 其他特殊字符 字体种类 參考文献 正文 CSDN-markdown编辑器支持基于MathJax编写LaTeX数学公式。 MathJax是一款执行在浏览器中的开源的数学符号渲染引擎,使用MathJax能够方便的在浏览器中显示数学公式,不须要使用图片。 这篇文章介绍怎样使用LaTeX语法编写数学公式。 标记公式 LaTeX的数学公式有两种:行内公式和块级公式。 行内公式放在文中与其他文字混编,块级公式单独成行。都使用美元符号进行标记显示。 行内公式 标记方法:使用一个美元符号包围起来 $数学公式$ 样例: 这是行内公式:$\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$ 效果: 这是行内公式: Γ ( n ) = ( n − 1 ) ! ∀ n ∈ N 块级公式 标记方法:使用两个美元符号包围起来 $$数学公式$$ 样例: $$ x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a} $$ 效果: x = − b ± b 2 − 4 a c − − − − − − −

论文写作之Latex使用技巧

久未见 提交于 2020-03-08 01:17:11
论文写作之Latex使用技巧 1、两张图片并列 1、代码展示 2、代码展示 1、两张图片并列 1、代码展示 % 添加包 \usepackage { subfigure } \begin { figure } [ htbp ] \centering \subfigure { \begin { minipage } [ b ] { .4 \linewidth } \centering \includegraphics [ scale = 0.3 ] { figure1 } \end { minipage } } \subfigure { \begin { minipage } [ b ] { .4 \linewidth } \centering \includegraphics [ scale = 0.3 ] { figure2 } \end { minipage } } \caption { figure title } \end { figure } 效果展示 2、代码展示 \begin { figure } [ htbp ] \begin { minipage } [ t ] { 0.5 \linewidth } % 并排插图时,线宽很重要,自己慢慢试,俩张图就不要超过 0.5 ,三张图不要超过 0.33 之类的,自己看着办 \centering \includegraphics

LaTex学习笔记(一):review

血红的双手。 提交于 2020-03-07 13:03:39
1.百分号 95\% 2.下标 b_{ij} 3.表格(excel2latex) 符号说明 \begin{table}[H] \centering \begin{tabular}{m{100pt}<{\centering} m{100pt}<{\centering} m{200pt}<{\centering}} \toprule 序列 & 符号& 符号说明\\ \midrule 1 & $t_{ij}$ & 第i个会员第j种DVD的态度\\ 2 & $s_j$ & 愿意观看第j张的DVD的会员数 \\ 3 & $p_j$ & 会员愿意观看第j种DVD的概率 \\ 4 & $x_{ij}$ & 第i个会员是否被分配到第j张DVD \\ 5 & $a_{ij}$ & 第i个会员对第j张DVD的满意度 \\ 6 & $k_{i}$ & 第i个会员有没有被分配到DVD \\ 7 & $c_j$ & 第j种DVD购买的数量 \\ 8 & $b_{ij}$ & 第i个会员是否返还第j张DVD \\ 9 & $w_j$ & 两阶段共需要购买的j种DVD数量 \\ 10 & $z_{ij}$ & 第二阶段针第i个会员需求的第j种DVD \\ \bottomrule \end{tabular} \end{table} 一般表格【有表头】 \begin{table}[H] \caption

Sphinx Latex break line autodoc

有些话、适合烂在心里 提交于 2020-03-05 01:34:12
问题 I am making my python docs with sphinx-apidoc. But some text seems messed up because the line does not break in certain cases. I have tried to set latex_elements on config.py with preamble, but the result is the same. You can also see that the methods table also is a little confusing with a word in front of the other. latex_elements = { 'papersize': 'a4paper', 'pointsize': '12pt', 'figure_align': 'htbp', 'preamble': r''' \usepackage[draft]{minted} \fvset{breaklines=true} ''', } Have you had

Sphinx Latex break line autodoc

柔情痞子 提交于 2020-03-05 01:31:53
问题 I am making my python docs with sphinx-apidoc. But some text seems messed up because the line does not break in certain cases. I have tried to set latex_elements on config.py with preamble, but the result is the same. You can also see that the methods table also is a little confusing with a word in front of the other. latex_elements = { 'papersize': 'a4paper', 'pointsize': '12pt', 'figure_align': 'htbp', 'preamble': r''' \usepackage[draft]{minted} \fvset{breaklines=true} ''', } Have you had

Sphinx Latex break line autodoc

大兔子大兔子 提交于 2020-03-05 01:31:01
问题 I am making my python docs with sphinx-apidoc. But some text seems messed up because the line does not break in certain cases. I have tried to set latex_elements on config.py with preamble, but the result is the same. You can also see that the methods table also is a little confusing with a word in front of the other. latex_elements = { 'papersize': 'a4paper', 'pointsize': '12pt', 'figure_align': 'htbp', 'preamble': r''' \usepackage[draft]{minted} \fvset{breaklines=true} ''', } Have you had

一款不错的LaTeX Beamer模板(二)

佐手、 提交于 2020-03-04 21:07:47
1. Beamer模板样式 每日发布全网Beamer模板资源 1. 源代码 slide.tex \documentclass{beamer} \usetheme{Madrid} \title{About Machine Learning} \author{by Amit Swain} \centering \date{September 2019} \begin{document} \maketitle \begin{frame}{Content} \begin{itemize} \item What is machine learning? \item Growth of Machine Learning. \item Application of machine Learning. \item Classification: Applications \item Top 10 use cases of Machine Learning \item What machine learning tools do Kaggle champions use? \item Types of Learning? \end{itemize} \end{frame} \begin{frame}{What is Machine learning?} \framesubtitle{Why do

vim使用latex(vimtex+vim-live-preview)

感情迁移 提交于 2020-03-03 08:31:53
折腾了很久终于从坑里爬了出来,记录一下,后人可免踩坑 vimtex是vim中使用latex的最好插件(个人认为) vim-live-preview是实时预览插件 1.vimtex配置 1.1安装插件 使用vundle,不会的自行百度 Plugin 'lervag/vimtex' 1.2vimtex配置 let g:tex_flavor = 'latex' let g:vimtex_view_method = 'zathura' let g:vimtex_quickfix_mode = 0 set conceallevel = 1 let g:tex_conceal = 'abdmg' let g:vimtex_compiler_latexmk = { \ 'executable' : 'latexmk' , \ 'options' : [ \ '-xelatex' , \ '-file-line-error' , \ '-synctex=1' , \ '-interaction=nonstopmode' , \ ] , \ } 1.3latexmk配置 latexmk一般linux都会自带有,直接在命令行输入latexmk可检查是否安装好了。 在你的home主目录下创建一下文件 .latexmkrc (前面是点不要漏了) 然后内容为 $pdf_mode = 5 ;