latex

Embedding multipage documents in LaTeX documents

限于喜欢 提交于 2020-01-15 13:35:02
问题 I am writing my dissertation and need to reproduce different short booklets (2-7 pages) that I have used in my studies. Ideally, I would like to have each page of the booklet appear as a page in my dissertation, but enclosed within some frame and using my dissertation's page numbering, etc. I have the booklets in Word format but would rather embed them as PDFs so they would look exactly as they did to my subjects. I can do this manually by splitting each PDF into multiple files and including

column_spec function in kableExtra in R doesn't work

眉间皱痕 提交于 2020-01-15 10:16:29
问题 I want co change column width in pdf with kable ( , 'latex') but the fucntion doesn't work. Anybody know why? here is my code: table = knitr::kable(jeden, "latex" , row.names = F , align = "llrrrrrrrrrr" , escape = F, booktabs = F, caption = '1. Sprzedaz uslug i towarow razem') kableExtra::column_spec(table, 1, width = "1cm", bold = TRUE, italic = TRUE) 回答1: It's not a bug but rather a relatively strange setting for align in knitr::kable() . In xtable you can put align in a string but for

Combined Pearson/Spearman rank correlation matrix with significance stars in Stata

我只是一个虾纸丫 提交于 2020-01-15 07:11:34
问题 I want to calculate a correlation matrix, where the lower triangle consists of Pearson and the upper triangle consists of Spearman rank correlation coefficients. I am using corr and spearman , which works fine. But with corr I cannot get the significance (p-value or stars and so on). So I tried pwcorr, list which gives me the exact results but with significance. Using this "new combination" I cannot create the matrix as with corr . //Get Pearson Matrix corr var1 var2 var3 matrix R = r(C) /

LaTeX学习笔记(一)

不问归期 提交于 2020-01-14 15:36:19
LaTeX学习笔记 学习内容来自书籍《一份不太简短的LATEX2" 介绍》,如有冒犯,请告知删除。 第一章 基础知识 1.1 基础知识 1.1.1 TEX TEX 是由Donald E. Knuth编写的计算机程序,用于文章和数学公式的排版。1977 年Knuth 开始编写TEX 排版系统引擎的时候,是为了探索当时正开始进入出版工业的数字印刷设备的潜力。他特别希望能因此扭转那种排版质量下降的趋势,使自己写的书和文章免受其害。我们现在使用的TEX 系统是在1982 年发布的,1989 年又略作改进,增进了对8 字节字符和多语言的支持。TEX 以具有优异的稳定性,可以在各种不同类型的计算机上运行,以及几乎没有错误而著称。TEX 的版本号不断趋近于¼,现在为3:14159。 TEX 的发音为“Tech”, 其中的“ch” 音和德语“Ach” 和苏格兰语“Loch” 中的“ch” 类似。在ASCII 文本环境中,TEX 表示为TeX。 1.1.2 LaTeX LATEX 是一个宏包,其目的是使作者能够利用一个预先定义好的专业页面设置,从而得以高质量地排版和打印他们的作品。LATEX 最早是由LeslieLamport编写的,并使用TEX 作为其排版系统引擎。1994 年, Frank Mittelbach 领导的LATEX 3 小组对LATEX 宏包进行了更新,作了一些被期望已久的改进

Can R help manuals have latex math in them?

ε祈祈猫儿з 提交于 2020-01-14 09:35:08
问题 I am working on an R package and I am using the package Roxygen2 to write the help manuals for my R functions. What I would like to know is if it is possible to use latex for math equations in the manual pages? For example, if I had a function called add2 that did the following: add2 = function(x,y){ z = x+y return(z) } And using Roxygen2 documentation I had the following: ##' @include add2.R {} ##' Compute the sum of x_1 and x_2 ##' ##' Computes the sum of x_1 and x_2 ##' ##' @param x_1

LaTeX PDF with images from web in shinyapp

爱⌒轻易说出口 提交于 2020-01-14 08:22:28
问题 I used to be able to include images from URLs in PDF reports generated from shiny apps doing ![](url.com) . A few markdown versions later I get the following error: ! Unable to load picture or PDF file https://i0.wp.com/wptavern.com/wp-content/uploads/2016/07/stack-overflow.png?ssl=1 for the same code. Adding pandoc_args: ["--extract-media", "."] to the YAML downloads the imaged file locally but only works in local r-markdown files. How does shinyapp store local files and how to get the

test

a 夏天 提交于 2020-01-13 18:49:39
List item Helvetica, ‘Hiragino Sans GB’, ‘Microsoft YaHei’, Arial, sans-serif; background-image: linear-gradient(90deg, rgba(50, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0) 3%), linear-gradient(360deg, rgba(50, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0) 3%); background-size: 20px 20px; background-position: center center;"> 微信公众号: <a href="#jump_10" style="font-size : inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration: none; color: rgb(30, 107, 184); overflow-wrap: break-word;">颜家大少 关注可了解更多的教程及排版技巧。问题或建议,请公众号留言; 如果你觉得Md2All对你有帮助,欢迎赞赏 [1] 内容目录(由[TOC]自动生成) Md2All 简介 详细教程 对公众号、博客的优化 代码块显示效果 图片显示

Coverpage and copyright notice before title in R bookdown?

本秂侑毒 提交于 2020-01-13 12:48:09
问题 Back in March, I asked a question and got an answer to including coverpage in a pdf document rendered by R bookdown: R bookdown - cover page and appendix I tried the solution and came up with the following results: using in index.rmd yaml: output: pdf_document: includes: before_body: frontpage.tex number_sections: yes toc: yes toc_depth: 3 site: bookdown::bookdown_site documentclass: book classoption: letterpaper The title still appeared before the coverpage AND the Chapter 'wording' in

Coverpage and copyright notice before title in R bookdown?

点点圈 提交于 2020-01-13 12:45:54
问题 Back in March, I asked a question and got an answer to including coverpage in a pdf document rendered by R bookdown: R bookdown - cover page and appendix I tried the solution and came up with the following results: using in index.rmd yaml: output: pdf_document: includes: before_body: frontpage.tex number_sections: yes toc: yes toc_depth: 3 site: bookdown::bookdown_site documentclass: book classoption: letterpaper The title still appeared before the coverpage AND the Chapter 'wording' in