2016-08-18 6 views
0

In einer .Rmd Datei mit beamer_presentation Ausgabe können wir neue Folien mit Doppel-Hashtags erstellen. das heißtHinzufügen von Header-Text zu Markdown-Folie

## Slide with Plot 
some text here 

dies wird eine neue Folie mit dem Titel Slide with Plot und dann dem Text some text here als Inhalt des Schiebers starten.

Darüber hinaus verwenden wir in R Markdown, um einen Text als Header 2 Element anzugeben, ## some text. Jetzt, wenn ich eine Kopfzeile 1 platziere, bekomme ich automatisch eine neue Folie mit dem Text in der Mitte der Folie. Wenn ich eine Kopfzeile 2 platziere, bekomme ich automatisch eine neue Folie mit dem Text oben

Ist es möglich, eine Kopfzeile 1 oder 2 innerhalb einer Folie zu verwenden, ohne eine neue Folie zu beginnen?

Darüber hinaus scheinen mir alle Header 3-Header 6 Größen die gleiche Größe zu haben.

Hier ist ein Beispiel .Rmd Datei, die meine Frage reproduziert.

--- 
title: "SO reproduce" 
author: "shayaa" 
date: "August 18, 2016" 
output: beamer_presentation 
--- 

## First Slide 

Some Text 

# Auto Slide with Header 1 

## New Slide 

### Header 3 

###### Header 6 same size? 

Edit: Um klar zu sein, würde Ich mag, dass der Schieber Auto Slide with Header 1 keine neue Folie erstellen; eher sollte es einfach ein Text der Größe sein Header 1. Ich verstehe, dass, wenn ich --- verwendet, um Folien zu erstellen, dann wird dieser Header als der Titel einer neuen Folie mit einem Standard (Header 2) großen Titel platziert. Beachten Sie jedoch, dass, wenn Sie meinen Code ausführen, wo ich Kopfzeilen von ## definieren, diese Header 1 wird einfach eine Header 1, aber es wird in der Mitte einer neuen Folie platziert werden. Meine zweite Frage ist, wie man es so macht, dass Header 6 same size? auf die halbe Größe von Header 3 Größe.

Antwort

1

Es ist nicht klar, was Sie tun möchten. Vielleicht suchen Sie nach neuer Folie ---?

--- 
title: "SO reproduce" 
author: "shayaa" 
date: "August 18, 2016" 
output: 
    beamer_presentation: 
    keep_tex: yes 
--- 

# First Slide (with header 1) 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 

--- 

# Second Slide (with header 1) 

## Second Slide (with header 2) 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 

## Second Slide (with another header 2) 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 

--- 

## Third Slide (with header 2) 

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 
+0

Dies beantwortet meine Frage nicht vollständig. Überlegen Sie, was passiert, wenn Sie am Anfang einer neuen Folie "# Header 1" hinzufügen. Sie erhalten eine neue Folie mit Titel 1 als Titel. – shayaa

+0

Können Sie Ihre Frage bearbeiten, um sie klarer zu machen? Die einzige Frage: "Ist es möglich, eine Kopfzeile 1 oder 2 innerhalb einer Folie zu verwenden, ohne eine neue Folie zu beginnen?" ist zweideutig und wird, wie ich es gelesen habe, durch meine Antwort gelöst. –

Verwandte Themen