beamer

knitr: code in chunks gets wrapped unexpectedly

冷暖自知 提交于 2019-12-20 05:10:10
问题 In a beamer presentation using knit2pdf() and LaTeX, I sometimes find that code in chunks gets wrapped, even though I have set tidy=FALSE globally. For example, this chunk: \item Fit this using \func{glm}: <<berk-logit2, size='footnotesize'>>= berkeley <- as.data.frame(UCBAdmissions) berk.logit2 <- glm(Admit == "Admitted" ~ Dept + Gender, data = berkeley, weights = Freq, family = "binomial") @ Appears like this: Note that all three lines are wrapped, as if in paragraph mode. The indented line

Hiding the presentation controls in LaTeX beamer presentation [closed]

放肆的年华 提交于 2019-12-18 10:18:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am currently building a presentation using LaTeX beamer. Is there a way to hide the presentation controls on the bottom of the slides? I don't use those controls, and they sometimes collide with the slide's text. 回答1: Yes, from p.223 of the Beamer guide: To remove navigation symbols,

How to change the color of bullet-points in default environments in beamer?

血红的双手。 提交于 2019-12-18 09:46:29
问题 I am making a beamer presentation using \usetheme{Aalborg} and I want to create blocks for definitions, theorems, remarks, exercises, proofs, examples etc. It seems that the default example-environment inherits some features from the default theorem-environment. I want to be able to make itemizations and enumerations within the example-block environment such that the bullet-points have the same color as the background color of the example-block header. Right now, the color of the bullet

References Truncated in Beamer Presentation prepared in Knitr/RMarkdown

♀尐吖头ヾ 提交于 2019-12-18 02:57:11
问题 I'm currently preparing a presentation in RStudio (using RMarkdown and Knitr, outputting to a Beamer presentation) that has quite a few references. I'm using a pretty typical YAML header: --- title: "Title" author: "Me" date: "February 27th, 2016" output: beamer_presentation csl: ../../apa.csl bibliography: ../../RefenceDesk.bib --- This presentation compiles and the references appear as they should, but unfortunately they all appear on one slide (and actually run off the page). Is there any

两种可行的Latex中文生成方式(GBK/UTF8)

我怕爱的太早我们不能终老 提交于 2019-12-15 14:12:48
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 本来想总结一下Latex里各种中文排版支持,但是发现太乱了,CCT,CJK,CTEX神马的,还有GBK和UTF8下的不同编码方式,再加上XeLatex这样来搅局的……所以最后决定只给出一种可行的排版方式,测试环境是Windows+CTex2.8。 ps:每天忍辱负重的在Windows下用Vim和Latex…… 第一种是gbk编码下的编译方式 REM taskkill /im AcroRd32.exe pdflatex %1 bibtex %1 pdflatex %1 gbk2uni %1.out pdflatex %1 start %1.pdf 其中第一句的目的是结束掉当前的PDF文档,但是它会随机选择一个Acrobat Reader进程结束,所以给注掉了。从代码里可以看出,需要执行多遍pdflatex,同时穿插bibtex生成参考文件,gbk2uni的作用是将gbk转成unicode,这个命令是cct里的,请确保你的环境变量中有cct的bin目录。 测试article代码如下: \documentclass{article} \usepackage{CJK} \usepackage{cite} \newcommand{\upcite}[1]{\textsuperscript{\textsuperscript{

Resize matrix in LaTeX beamer

情到浓时终转凉″ 提交于 2019-12-14 00:32:14
问题 Hi I was wondering how to resize matrices in a beamer environment. Currently I am writing the following code: \begin{align*} \left( \begin{array}{ccccccc} 0 & 1 & & & & & \\ -1 & 0 & & & & & \\ & & 0 & 1 & & & \\ & & -1 & 0 & & & \\ & & & & \ddots & & \\ & & & & & 0 & 1 \\ & & & & & -1 & 0 \end{array} \right) \end{align*} and the matrix takes up almost a whole page. I would like it to be about half a page in height. 回答1: See this answer for how to change font dimensions in LaTeX's math mode.

compiling latex file generated by RStudio

浪子不回头ぞ 提交于 2019-12-13 02:22:55
问题 I am trying to edit the latex file generated by RStudio but it seems the file generated by RStudio does not compile out of the box. Here is the template rmarkdown (edited a little as I want to show code in my slides) --- title: "Untitled" author: "SN248" date: "April 17, 2016" output: beamer_presentation: keep_tex: true theme: "CambridgeUS" --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE) ``` ## R Markdown This is an R Markdown document. Markdown is a simple formatting

Internal section link fails in beamer output of pandoc markdown

☆樱花仙子☆ 提交于 2019-12-11 13:39:42
问题 I have tried the answer to this question, but I can't get the internal section links in Pandoc to work with the Latex Beamer output. Following the Pandoc Documentation, I have created this minimal working example: # Part One {#part-one} ## Section One {#section-one} ### Frame one {#frame-one} - Items... ### Frame two {#frame-two} - Items... - Link to [Section One](#section-one) And built it using: pandoc \ --table-of-contents \ -s -t beamer test.md \ -o test.pdf The built LaTex Beamer pdf

Conditional slides in R markdown (beamer presentation)

寵の児 提交于 2019-12-11 05:14:03
问题 Is it possible to have conditional slides in R markdown (beamer presentation)? I tried using R code chunk hacks with results = 'asis' and further tried using custom LaTeX commands but to no avail. One problem seems to be that each markdown slide delimiter actually results in the combination of both \end{frame} \begin{frame} so it is hard to conditionally exclude a slide. 来源: https://stackoverflow.com/questions/43396667/conditional-slides-in-r-markdown-beamer-presentation

Rmarkdown Beamer presentation, option clash clash for xcolor

梦想的初衷 提交于 2019-12-10 18:44:14
问题 I am trying to build a beamer presentation using rmarkdown. In my presentation I want to include tables using the kable , and kableExtra packages. I am having issues with this because one of the LaTex packages that kableExtra requires is already loaded by the beamer presentation with different options. This is the error message that I receive. ! LaTeX Error: Option clash for package xcolor. I have been searching for a fix for this but have not had any luck. I have found solutions on the LaTex