2014-09-17 25 views
5

का उपयोग करके बीमर प्रेजेंटेशन में लोगो डालने का प्रयास मैं रमार्कडाउन का उपयोग करके बीमर प्रेसीनेशन में लोगो डालने की कोशिश कर रहा हूं, और ऐसा लगता है कि \logo{\includegraphics[height=1cm,width=3cm]{logo.png}} में आकार नियंत्रण नहीं है, इससे कोई फर्क नहीं पड़ता कि मैं वहां क्या मूल्य डालता हूं, छवि हमेशा एक ही आकार का है । छवि को मैन्युअल रूप से संशोधित करने के अलावा कोई सुझाव?आर मार्कडाउन

--- 
title: "Presentation" 
author: "Author" 
output: 
    beamer_presentation: 
    includes: 
     in_header: mystyle.tex 

--- 

## R Markdown 

This is an R Markdown presentation. Markdown is a simple formatting 
syntax for authoring HTML, PDF, and MS Word documents. For more 
details on using R Markdown see <http://rmarkdown.rstudio.com>. 

When you click the **Knit** button a document will be generated that 
includes both content as well as the output of any embedded R code 
chunks within the document. 

## Slide with Bullets 

- Bullet 1 
- Bullet 2 
- Bullet 3 

## Slide with R Code and Output 

```{r} 
summary(cars) 
``` 

## Slide with Plot 

```{r, echo=FALSE} 
plot(cars) 
``` 

यह mystyle.tex

\logo{\includegraphics[height=1cm,width=3cm]{logo.png}} 
\usetheme{Madrid} 
\usefonttheme{serif} 
\institute{Institute} 
\setbeamertemplate{navigation symbols}{} 

अद्यतन है: - बस संशोधित छवि काम नहीं करेगा - त्वरित काम के आसपास छवि बदसूरत और pixelated है। सीधे शब्दों में पीडीएफ में कनवर्ट भी अच्छी तरह से काम नहीं किया है, इसलिए मैं पीडीएफ बना सकते हैं और \ लोगो में इसका इस्तेमाल करने के आर कोड निम्नलिखित इस्तेमाल किया {\ includegraphics {logo.pdf}}

library(png) 
library(grid) 
img <- readPNG('logo.png') 
img <- rasterGrob(img, interpolate=TRUE) 
pdf(file = 'logo.pdf', width = 1, height = 0.25) 
grid.newpage() 
grid.raster(img) 
dev.off() 
+0

बस एक ओर टिप्पणी: यदि आप Markdown साथ प्रस्तुति करना चाहते हैं, यही कारण है कि यह सीधे की तरह [RemarkJS] उपकरणों के साथ प्रयोग नहीं (http://remarkjs.com/)? – rlegendi

+0

यह आर के साथ स्वचालित रूप से जेनरेट किया जाना है, यह डेटा खींच जाएगा, इसे संसाधित करेगा, चार्ट और टेबल बनाएगा। – ilya

+0

ओह ठीक है, स्पष्टीकरण के लिए thx :-) – rlegendi

उत्तर

2

मैं समाधान पाया; बीमर मैनुअल में लोगो फ़ंक्शन का उपयोग करने का एक और तरीका है और यह ठीक काम करता है।

\pgfdeclareimage[height=0.2787cm, width=2.5cm]{logo}{logo.png} 
\logo{\pgfuseimage{logo}} 
संबंधित मुद्दे