landslideを使ってmarkdownをPPTにします

5864 ワード

markdownでPPTを書く
LandslideはGoogleのhtml 5 slidesに基づくSlide生成ツールで、markdown、ReSTまたはtextileファイルをHTML 5のslideに変換することができます.
LandslideはPythonの開発に基づいて、最大の利点は簡潔で、インストールから作成まで、生成されたslidesスタイルまで非常に簡潔である.プロセス全体で、ユーザーはMarkdown構文を理解するだけでよい.
この変換は、完全な機能を持つHTMLファイルを生成し、依存するcssなどを入れて共有しやすいインラインモードをサポートします.
プロジェクトのアドレス:https://github.com/adamzap/landslide著者が書いたいくつかの例:https://github.com/adamzap/landslide/tree/master/examples
一.インストールの使用
インストール:
---   
$ pip install landslide

---   
$ landslide file.md -d name_you_like.html

スライドショーのショートカット:
--- PPT       

h:          
← →:     /      
t:         
ESC:      PPT  
n:                 
b:          
e:               
2:               ,     .notes      
3:         3D  
c:                 ,        
S:                       .

詳細:
---           
$ landslide slides.md -d /path/to/dest/slide.html

---   
$ landslide slides/

---        
$ landslide slides.md -o | tidy

---       
$ landslide slides.md -t mytheme
$ landslide slides.md -t /path/to/theme/dir

--- copy the whole theme directory to your presentation one by passing the --copy-theme option to the landslide command
$ landslide slides.md -t /path/to/theme/dir --copy-theme

---    Base-64      
$ landslide slides.md -i

---     pdf
$ landslide slides.md -d presentation.pdf

--- If you intend to publish your HTML presentation online, you'll have to use the --relative option, as well as the --copy-theme one to have all asset links relative to the root of your presentation;
$ landslide slides.md --relative --copy-theme

ヘルプの表示
---   
$ landslide --help

    Usage: landslide [options] input.md ...

    Generates an HTML5 or PDF slideshow from Markdown or other formats

    Options:
      --version             show program's version number and exit
      -h, --help            show this help message and exit
      -c, --copy-theme      Copy theme directory into current presentation source
                            directory
      -b, --debug           Will display any exception trace to stdout
      -d FILE, --destination=FILE
                            The path to the to the destination file: .html or .pdf
                            extensions allowed (default: presentation.html)
      -e ENCODING, --encoding=ENCODING
                            The encoding of your files (defaults to utf8)
      -i, --embed           Embed stylesheet and javascript contents,
                            base64-encoded images in presentation to make a
                            standalone document
      -l LINENOS, --linenos=LINENOS
                            How to output linenos in source code. Three options
                            availables: no (no line numbers); inline (inside 

                            tag); table (lines numbers in another cell, copy-paste
                            friendly)
      -o, --direct-output   Prints the generated HTML code to stdout; won't work
                            with PDF export
      -P, --no-presenter-notes
                            Don't include presenter notes in the output
      -q, --quiet           Won't write anything to stdout (silent mode)
      -r, --relative        Make your presentation asset links relative to current
                            pwd; This may be useful if you intend to publish your
                            html presentation online.
      -t THEME, --theme=THEME
                            A theme name, or path to a landlside theme directory
      -v, --verbose         Write informational messages to stdout (enabled by
                            default)
      -x EXTENSIONS, --extensions=EXTENSIONS
                            Comma-separated list of extensions for Markdown
      -w, --watch           Watch source directory for changes and regenerate
                            slides
      -m, --math-output     Enable mathematical output using MathJax

    Note: PDF export requires the `prince` program: http://princexml.com/

.プロファイルの
プロファイルは のとおりです. する があります.[landslide]
$ cat config.cfg
  [landslide]
  theme = /path/to/mytheme
  source = myslice_source.md
           a_dir
           another_dir
           now_a_slide.markdown
           another_one.rst
  destination = /path/to/dest/presentation.html
  css =    my_first_stylesheet.css
           my_other_stylesheet.css
  js =     jquery.js
           my_fancy_javascript.js
  relative = True
  linenos = inline

---          slide
$ landslide config.cfg

.Macros
マクロの は、タイトルの にしっかりと いていなければなりません.そうしないと になりません!!!
1. notes
.notes:キーワードはslideにコメント を する.
# My Slide Title
.notes: These are my notes, hidden by default

My visible content goes here.

テンキーを する2 ノートを く.
2. QR Codes
.qrキーワードはslideにQRコードを する.
---
#     
.qr: 450|https://www.pyfdtic.com

   ,     !

3. Presenter Notes
ページにおいて、h 1タイトルモードで、 を する# Presenter Notesは、スピーチ ノートとして する、ショートカットキーを いるpノートの と を うことができる.
---
#   
You can also add presenter notes to each slide by following the slide content with a heading entitled "Presenter Notes". Press the 'p' key to open the presenter view.

# Presenter Notes
       ,     .

.markdown
  • Markdownソースファイル、 ず.md/.markdn/.mdwn/.mdown/.markdown
  • ---:3 の は ページングを す.
  • slideページごとに1つずつ#レンダリングを すh1タイトル
  • open NAME.htmliterm 2は にブラウザでそのhtmlページを く.openコマンドは、システム ファイルのデフォルトオープンプログラムを してファイルを く.

  • # PPT # markdown