Code Monkey home page Code Monkey logo

zh-beamer's Introduction

Zh-beamer

Create Chinese Beamer & PDF with rmarkdown on Windows.

Requirement

Must have installed MikTex 2.9 and pandoc 1.15. To test whether have installed pandoc ,just run pandoc -v in the Windows Cmd (win+R -> cmd ->Enter).

Usage

For Chinese Beamer:

  1. download this repository
  2. open the test.Rmd
  3. press Ctrl + Shift + K (knit PDF)
  4. wait a minute and see what has been generated.

Just click new R Markdown -> presentation -> PDF(Beamer). Edit the file, then press knit. If you haven't run the code before, it wil take about 2minutes to render Rmd to PDF.

Notice: the beamer_default.tex & _output.yaml & the Rmd file should be in the same fold!

You can also customise the beamer theme in the Output Options, which next to knit PDF. Or you can directly change default theme and fonttheme in the _output.yaml file.

If you encounter a problem, please don't hesitate to creat an issue. You'd better print the error info.

Beamer.pdf,Here are the snapshots:

img2 img3 img4

For Chinese PDF

  1. the Rmd file is in the Chinese-PDF fold
  2. open the code.Rmd
  3. press Ctrl + Shift + K (knit PDF)
  4. you will encounter 43 error.

Notice: it's because that your MikTex lacks some related packages. So you need to open the default.latex and the MikTex Packages Manager to download the packages that are used in the default.latex.

I don't know how many times I have tried, but it worked at last. Good luck, my friend!

Chinese.pdf, Here are the snapshots:

img1 img2 img3

License

Licensed under theApache License, Version 2.0.

zh-beamer's People

Contributors

brucezhaor avatar yihui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zh-beamer's Issues

如何添加beamer目录

请问如何用r markdown添加beamer目录。我使用了toc: 'true'指令,但效果不是很好,一是只能展示一级标题,二是在每个小节处会加入一页标题页,如图所示。
屏幕截图 2020-11-27 112224

Missing input file: 'xecjk.sty' from line

根据博主的方法安装了相关的包:miktex、pandoc。只是我安装在ubuntu 16.04上。但是最后运行的结果出现一下错误:
Latexmk: Errors, so I did not complete making targets
===========Latexmk: Missing input file: 'xecjk.sty' from line
'! LaTeX Error: File xecjk.sty' not found.' Latexmk: Missing input file: 'xecjk.sty' from line '! LaTeX Error: File xecjk.sty' not found.'
Collected error summary (may duplicate other messages):
pdflatex: Command for 'pdflatex' gave return code 1
Refer to 'test.log' for details
Latexmk: Use the -f option to force complete processing,
unless error was exceeding maximum runs of latex/pdflatex.
! LaTeX Error: File `xecjk.sty' not found.

how to add institute in your beamer

您好!
请问您的模板为什么无法显示机构信息。
我在您的原始代码中加入
institute: "Affiliation"
但是最终的pdf并没显示机构信息。
谢谢!期待您的指点!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.