#!make # -*- coding:utf-8 -*- default: revealjs all: default test s5 slidy dzslides beamer maindoc=reST2RevealjsSlides #theme black(default), white, league, sky, Beige, Simple, Serif, Blood, Night, Moon, solarized, theme=Beige #transition: None - Fade - Slide - Convex - Concave - Zoom transition=Convex writer=revealjs # slidy, slideous, dzslides, rveal.js, S5 pandoc_options=-f rst --standalone --self-contained --base-header-level=1 --slide-level=2 pandoc_options += --mathml #pandoc_options += --mathjax #pandoc_options += --toc --toc-depth=1 #pandoc_options += --reference-links #pandoc_options += --number-sections pandoc_options += --section-divs revealjs_URL=file:/Users/noboru/Sites/jslib/reveal.js-master #s5_theme=default # or "default" s5_URL="file:/Users/noboru/Sites/jslib/s5-11/ui/default" s5_opt += -V s5-url=$(s5_URL) #s5_theme= -V theme= "i18n" # or "default" #s5_theme= -V theme= "default" # or "default" slideous_URL = file:/Users/noboru/Sites/jslib/slideous metadatafile="metadata.json" revealjs_opt = --metadata-file=$(metadatafile) revealjs_opt += -V revealjs-url=$(revealjs_URL) revealjs_opt += -V transition=$(transition) -V theme=$(theme) -V progress=1 slideous_opt += -V slideous-url=$(slideous_URL) slidy_opt = slidy_theme= -V theme=default # insert the following lines in tex file. #¥usepackage{luatexja} % ltjclasses, ltjsclasses を使う場合には、不要 #¥usepackage[utf8]{inputenc}%文字コードをUTF-8に beamer_options = -f rst -t beamer -V fontsize="11pt" -V lang="ja-JP" #beamer_options += --number-sections# does not work correctly for this example #beamer_options += --listings # does not work correctly for this example beamer_options += --biblatex #beamer_options += --data-dir=. beamer_options += --template=./templates/default.beamer beamer_options += --base-header-level=1 --slide-level=2 beamer_options += -V aspectratio=1610 beamer_options += -V section-titles=True #beamer_options += -V beamerarticle=True #Beamer tehmes: ## spruce, metropolis, dolphin ## AnnArbor, Antibes, Bergen, Berkeley, Berlin, Boadilla ## CambridgeUS, Copenhagen, Darmstadt, Dresden ## EastLansing, Frankfurt, Goettingen, Hannover, Ilmenau, JuanLesPins ## Luebeck, Madrid, Malmoe, Marburg, Montpellier, PaloAlto, Pittsburgh ## Rochester, Singapore, Szeged, Warsaw ## bars, boxes, classic, compatibility, default, lined, plain, shadow, sidebar, split, tree ## cuerna, detlevcm, epyt, focus, light, metropolis, npbt, phnompenh, saintpetersburg, upenn-bc, jltree, nirma beamer_theme_opt= -V theme="PaloAlto" beamer: ${maindoc}.rst /usr/local/bin/pandoc --pdf-engine="lualatex" $(beamer_options) ${beamer_theme_opt} -o $(maindoc).tex $(maindoc).rst lualatex $(maindoc).tex lualatex $(maindoc).tex revealjs: echo $@ /usr/local/bin/pandoc -t $(writer) $(pandoc_options) $(revealjs_opt) -o $(maindoc).html $(maindoc).rst s5: ${maindoc}.rst /usr/local/bin/pandoc -t $@ $(pandoc_options) $($@_opt) $($@_theme) -o $(maindoc)-$@.html $(maindoc).rst slidy: ${maindoc}.rst /usr/local/bin/pandoc -t $@ $(pandoc_options) $($@_opt) ${$@_theme} -o $(maindoc)-$@.html $(maindoc).rst dzslides: ${maindoc}.rst /usr/local/bin/pandoc -t $@ $(pandoc_options) $(revealjs_opt) -o $(maindoc)-$@.html $(maindoc).rst slideous: ${maindoc}.rst /usr/local/bin/pandoc -t $@ $(pandoc_options) $(revealjs_opt) -o $(maindoc)-$@.html $(maindoc).rst test: /usr/local/bin/pandoc -t $(writer) -V revealjs-url=$(revealjs_URL) --base-header-level=2 --slide-level=3 --mathml -f rst -t revealjs --standalone --self-contained -V transition=$(transition) -V theme=$(theme) -V progress=1 -V control=0 -V parallaxBackgroundSize="400px" -V background-image="20190924-C12137-EnSpctrm-5hr.png" -V backgroundTransition="fade" -V backgroundTransition="fade" -V transitionSPeed="slow" -o revealjs_test.html revealjs_test.rst