latex

Stargazer column on multiple lines *with multiple models*?

拜拜、爱过 提交于 2021-01-24 15:06:43
问题 Similar question as Getting Stargazer Column labels to print on two or three lines?. I have long model titles that I would like to print on several lines while showing the results for multiple models . Unfortunately, the answer to the other question does not work in this case. var1<-rnorm(100) var2<-rnorm(100) df<-data.frame(var1, var2) mod<-lm(var1~var2) library(stargazer) stargazer(mod, mod, column.labels=c('my models\\\\ & need long titles', 'my models\\\\ & need long titles')) yields

Stargazer column on multiple lines *with multiple models*?

♀尐吖头ヾ 提交于 2021-01-24 15:03:23
问题 Similar question as Getting Stargazer Column labels to print on two or three lines?. I have long model titles that I would like to print on several lines while showing the results for multiple models . Unfortunately, the answer to the other question does not work in this case. var1<-rnorm(100) var2<-rnorm(100) df<-data.frame(var1, var2) mod<-lm(var1~var2) library(stargazer) stargazer(mod, mod, column.labels=c('my models\\\\ & need long titles', 'my models\\\\ & need long titles')) yields

Code chunk font size in Beamer with knitr and latex

*爱你&永不变心* 提交于 2021-01-21 02:32:32
问题 I am trying get some R code to fit on my beamer slides. It does not seem possible to change the font size via the size argument for the code chunk as you might do for other knitr type documents. The only way seems to be with \footnotesize before every code chunk. This is gets frustrating, as I have lots of code chunks and in many cases I then have to use \normalsize after for my LaTeX bullet points. --- title: "Untitled" output: beamer_presentation: includes: in_header: header.txt --- ```{r

How to produce a PDF title page from an R Markdown document

余生长醉 提交于 2021-01-20 13:46:02
问题 I would like to produce a custom title page when I knit my R Markdown document to pdf. Here are the contents of my R Markdown document: --- output: pdf_document: template: template.tex --- # abstract this is just some text And here are the contents of template.tex: \begin{document} \maketitle \end{document} When I knit to pdf none of the R Markdown text appears. Only the template does. Could anyone explain how I could type in R Markdown after using a latex template? 回答1: Your R Markdown

How to produce a PDF title page from an R Markdown document

半世苍凉 提交于 2021-01-20 13:45:47
问题 I would like to produce a custom title page when I knit my R Markdown document to pdf. Here are the contents of my R Markdown document: --- output: pdf_document: template: template.tex --- # abstract this is just some text And here are the contents of template.tex: \begin{document} \maketitle \end{document} When I knit to pdf none of the R Markdown text appears. Only the template does. Could anyone explain how I could type in R Markdown after using a latex template? 回答1: Your R Markdown

Allow non-zero return codes in Travis CI .yml

放肆的年华 提交于 2021-01-18 10:12:25
问题 I am trying to setup Travis CI to build a latex report. When building the latex report some steps have to be repeated and so the first time they are called there is a non-zero return code. My travis.yml so far is language: R before_install: - tlmgr install index script: - latex report - bibtex report - latex report - latex report - dvipdf report.dvi report.pdf However in Travis Docs it states If script returns a non-zero exit code, the build is failed, but continues to run before being marked

Allow non-zero return codes in Travis CI .yml

ぃ、小莉子 提交于 2021-01-18 10:09:46
问题 I am trying to setup Travis CI to build a latex report. When building the latex report some steps have to be repeated and so the first time they are called there is a non-zero return code. My travis.yml so far is language: R before_install: - tlmgr install index script: - latex report - bibtex report - latex report - latex report - dvipdf report.dvi report.pdf However in Travis Docs it states If script returns a non-zero exit code, the build is failed, but continues to run before being marked

Latex 论文情况

穿精又带淫゛_ 提交于 2021-01-13 14:40:27
1. 基本上解决前两章,基本上解决文献引用,图片添加问题。下一步就是不断完善前两章内容。 2. 自己做的内容有增加SU(4)激发的一部分,最好把RPA做出来,整理上VSe2的内容。 来源: oschina 链接: https://my.oschina.net/u/4381686/blog/4894316

线性代数很重要,选对教材更重要:同济版《线性代数》引发激烈争议

橙三吉。 提交于 2021-01-11 08:16:56
点击上方“ 迈微电子研发社 ”,选择“ 星标★ ”公众号 重磅干货,第一时间送达 你的线性代数,过了没? 不论是结构力学还是人脸识别,理工类型的科研,深究之后就会发现到处都是线性代数的身影。这样一门课程,要是在大一的时候学不好,可是会要命的。 在国内上过大学的理科同学应该都见过《线性代数》(同济版),就算没有学过,也是听过它的大名。作为一名过来人,只能说,晦涩难懂,章节混杂... 即使不少 985、211 走过高考独木桥的学生,每到期末考试,也要默默祈祷不要挂科。现在想起一些内容:相似矩阵、线性变换、特征值、特征向量…… 真是一个头两个大。 作为一本大学教材,让学习者如此后怕,是该考虑一下教材问题了。如今已经毕业多年,没想到最近在知乎上看到一篇文章《《线性代数》(同济版)——教科书中的耻辱柱》,点赞量快突破五千。对于这篇文章,大家有时间可以读一下,看看是不是同意作者的观点。 线性代数真的很重要,这是很多工程技术人员走上工作岗位的最大感受。好多算法都用到线性代数的知识,就比如现在非常热门的深度学习,它的底层实现方式用到好多线性代数方面的知识。如果底层基础打不好,不明白其中的原理,算法实现方式真的很难理解,更不可能去创新了。好的教材才能起到事半功倍的效果。 目前这本教材已更新了好几版,每次更新的内容看起来也是无关紧要,如果有下次版本更新,还是希望制定教材的老师们听取一下广大学生的建议。

Markdown

空扰寡人 提交于 2021-01-07 18:41:23
文章目录 Markdown 1.前言 2.图片引用方式 方式1:可以任意比例放缩图片 方式2:原比例引用图片 3.推荐公式编辑器 4.此外简单介绍下Markdown的一种轻量化工具Typora的使用方法。 Markdown 1.前言 相信大家在使用Typora,经常会遇到图片编辑的问题,这里提供一种解决方案。 将图片单独分开建立一个文件夹上传到github或者服务上,目录结构如下所示: doc ​ images/remap/rgb.bmp **<图片名称>.格式,如前所示 ​ 算法描述文档.md 2.图片引用方式 在算法描述文档.md中文件引用采用相对路径的方式,使用HTML的编程语言,举例如下: 方式1:可以任意比例放缩图片 <div align="center"> <img src="./images/remap/rgb.jpg" width = "100%" > </div> <div align="center"> 图1 原始rgb图像 </div> 方式2:原比例引用图片 <div align="center"> <img src="./images/remap/rgb.jpg" width = "480" height = "848"> </div> <div align="center"> 图1 原始rgb图像 </div> 3.推荐公式编辑器 该公式编辑器