SlideShare a Scribd company logo
1 of 19
Larry cai <larry.caiyu@gmail.com>
Agenda
 Environment
 Exercise

1: generate book
 Exercise 2: add your own into the books (workflow)
 Exercise 3: add more things using markdown
 Exercise 4: Hello World in Latex
 Exercise 5: Change color for header/footer
 Exercise 6: Table in MultiMarkdown
 Reference

2

Learn MultiMarkdown to Book
Environment @ Windows


Git Bash (unix env)




Editor




MarkdownPad http://markdownpad.com/

MultiMarkdown




http://git-scm.com

http://fletcherpenney.net/multimarkdown

Latex


3

MiKTex: http://www.miktex.org/portable

Learn MultiMarkdown to Book
Exercise 1 – Generate Book PDF


(120M) is provided for
multimarkdown+MiKTex environment
mmdtex-2.9.5105.tar.gz

$ tar –zxvf mmdtex-2.9.5105.tar.gz –C /c # extract to c:

 In Windows

Explorer, run C:mmdtexMiKTexmiktex-

portable.cmd

 Right

click miktex icon

-> Options -> Refresh FNDB

 Generate
$
$
$
$

source /c/mmdtex/env.sh
git clone git@github.com:larrycai/sdcamp.git
cd sdcamp
./mmd2bok

 Open
4

book

sdcamp.pdf
Learn MultiMarkdown to Book
HOWTO: mmdtex-2.9.5105.tar.gz


Download MultiMarkdown portable version
http://fletcherpenney.net/multimarkdown/download/
c:mmdtexMultiMarkdown



Download MiKTex Windows Portable version 2.9.5105
http://www.miktex.org/portable
c:mmdtexMiKTex



Add c:mmdtexenv.sh

$ cat env.sh
MMDTEX_BASE=/c/mmdtex
export PATH=${MMDTEX_BASE}/MiKTex/miktex/bin:$
{MMDTEX_BASE}/MultiMarkdown:$PATH




Run Exercise 1 to get latex package automatically
Then
$ tar –zcvf mmdtex-2.9.5105.tar.gz mmdtex

5

Learn MultiMarkdown to Book
Workflow

Latex Template

Markdown

multimarkdown
Latex

xelatex

Book content



Take a look at the script mmd2bok

6

Learn MultiMarkdown to Book

PDF
Exercise 2: add one chapter



Edit sdcamp/contents/*.markdown
Change contexts in Preface/Chapters/Appendix and build
again

MarkdownPad is the best markdown editor
in Windows – Simple, Clean

7

Learn MultiMarkdown to Book
Learn markdown





Markdown is a text-to-HTML conversion tool for web
writers.
Markdown allows you to write using an easy-to-read,
easy-to-write plain text format, then convert it to
structurally valid XHTML 
Others: rST (reStructuredText) , asciidoc are similar to
markdown

8

Learn MultiMarkdown to Book
Markdown syntax

http://packetlife.net/media/library/16/Markdown.pdf
Book structure
 Front-cover

& Back-cover
 Preface/Forward/Acknowledgement
 Contents
 Main chapters
 Appendix/Glossary/Bibliography

10

Learn MultiMarkdown to Book
Exercise 3: Markdown
 Add

code section
 Add extra subsection
 Add bullet
 Add image


![ 敏捷宣言 ](../img/xxx)

 Build

11

again

Learn MultiMarkdown to Book
LaTeX in short

12

Learn MultiMarkdown to Book
Exercise 4: Latex hello World
 Open

TeXworks
 Create file hello.tex
documentclass[11pt,a4paper]{article}
usepackage{fontspec}
setmainfont{Microsoft YaHei}
begin{document}
世界 , 你好 !
end{document}
 Or

$ xelatex hello.tex
 See template template/template-win.tex
 See other latex latex/chapters.tex
13

Learn MultiMarkdown to Book
Latex Fonts
 Fonts

textrm{...} roman
 textsf{...} sans serif
 textbf{...} bold face
 textnormal{...} document font


 Size

tiny tiny font
 footnotesize quite small font
 small , normalsize normal font


 中文

楷体,宋体,黑体


14

$ fc-list :lang=zh-cn

Learn MultiMarkdown to Book
Exercise 5: Update template
 Footer/header

– to change color and position
L: Left, E: Even

fancyhf{}
fancyhead[LE]
{color{colorheader}quadsmalltextbfthepagequadquadsmallleftmark}
fancyhead[RO]
{color{colorheader}smallrightmarkquadquadsmalltextbfthepagequad}
%fancyhead[RE,LO]{color{colorheader}small{savedtitle}} % book title
%fancyfoot[LE,RO]{smalltextbfthepage} % page number
%renewcommand{headrulewidth}{0.4pt} % add one line
pagestyle{fancy}

15

Learn MultiMarkdown to Book
MultiMarkdown




MultiMarkdown, or MMD, is a tool to help turn minimally
marked-up plain text into well formatted documents,
including HTML, PDF (by way ofLaTeX) …
MMD is a superset of the Markdown syntax,



Table/Footnote/Image control …
Code ..

http://fletcherpenney.net/multimarkdown
16

Learn MultiMarkdown to Book
Exercise 6: Add table


Add table

| First Header |
| :----------| First row
| Second row
[simple_table]

Second Header |
| :-----------:
| Data
| **Cell**

Third Header
|
| -------------------: |
| Very long data entry |
| *Cell*
|

https://rawgithub.com/fletcher/human-markdown-reference/master/index.html

17

Learn MultiMarkdown to Book
Reference
 Markdown
 Standard

markdown:
http://daringfireball.net/projects/markdown/
 Github flavored markdown:
http://github.github.com/github-flavored-markdown/
 Multimarkdown: http://fletcherpenney.net/multimarkdown
 MarkdownPad: http://markdownpad.com/
 Latex: http://www.latex-project.org/intro.html
 MiKTex: http://www.miktex.org/portable
 My

projects

 https://github.com/larrycai/sdcamp
 https://github.com/larrycai/latex-support

18

Learn MultiMarkdown to Book
Other platform: Ubuntu/MacOS (TBD)


https://github.com/larrycai/sdcamp/blob/master/BUILD.md

19

Learn MultiMarkdown to Book

More Related Content

What's hot

Web development automatisation for fun and profit (Artem Daniliants)
Web development automatisation for fun and profit (Artem Daniliants)Web development automatisation for fun and profit (Artem Daniliants)
Web development automatisation for fun and profit (Artem Daniliants)
LumoSpark
 
Php psr standard 2014 01-22
Php psr standard 2014 01-22Php psr standard 2014 01-22
Php psr standard 2014 01-22
Võ Duy Tuấn
 
Ruby Projects and Libraries
Ruby Projects and LibrariesRuby Projects and Libraries
Ruby Projects and Libraries
Vorleak Chy
 
Assurer - a pluggable server testing/monitoring framework
Assurer - a pluggable server testing/monitoring frameworkAssurer - a pluggable server testing/monitoring framework
Assurer - a pluggable server testing/monitoring framework
Gosuke Miyashita
 
Dependency management with Composer
Dependency management with ComposerDependency management with Composer
Dependency management with Composer
Jason Grimes
 
How Danga::Socket handles asynchronous processing and how to write asynchrono...
How Danga::Socket handles asynchronous processing and how to write asynchrono...How Danga::Socket handles asynchronous processing and how to write asynchrono...
How Danga::Socket handles asynchronous processing and how to write asynchrono...
Gosuke Miyashita
 

What's hot (20)

Controlling multiple VMs with the power of Python
Controlling multiple VMs with the power of PythonControlling multiple VMs with the power of Python
Controlling multiple VMs with the power of Python
 
Web develop in flask
Web develop in flaskWeb develop in flask
Web develop in flask
 
Installing AtoM with Ansible
Installing AtoM with AnsibleInstalling AtoM with Ansible
Installing AtoM with Ansible
 
Maven 3.0 at Øredev
Maven 3.0 at ØredevMaven 3.0 at Øredev
Maven 3.0 at Øredev
 
Basic testing with selenium
Basic testing with seleniumBasic testing with selenium
Basic testing with selenium
 
Web development automatisation for fun and profit (Artem Daniliants)
Web development automatisation for fun and profit (Artem Daniliants)Web development automatisation for fun and profit (Artem Daniliants)
Web development automatisation for fun and profit (Artem Daniliants)
 
Php psr standard 2014 01-22
Php psr standard 2014 01-22Php psr standard 2014 01-22
Php psr standard 2014 01-22
 
Introduction to WP-CLI: Manage WordPress from the command line
Introduction to WP-CLI: Manage WordPress from the command lineIntroduction to WP-CLI: Manage WordPress from the command line
Introduction to WP-CLI: Manage WordPress from the command line
 
Python virtualenv & pip in 90 minutes
Python virtualenv & pip in 90 minutesPython virtualenv & pip in 90 minutes
Python virtualenv & pip in 90 minutes
 
Making environment for_infrastructure_as_code
Making environment for_infrastructure_as_codeMaking environment for_infrastructure_as_code
Making environment for_infrastructure_as_code
 
Ruby Projects and Libraries
Ruby Projects and LibrariesRuby Projects and Libraries
Ruby Projects and Libraries
 
The MetaCPAN VM for Dummies Part One (Installation)
The MetaCPAN VM for Dummies Part One (Installation)The MetaCPAN VM for Dummies Part One (Installation)
The MetaCPAN VM for Dummies Part One (Installation)
 
Shared Object images in Docker: What you need is what you want.
Shared Object images in Docker: What you need is what you want.Shared Object images in Docker: What you need is what you want.
Shared Object images in Docker: What you need is what you want.
 
Groovy - Grails as a modern scripting language for Web applications
Groovy - Grails as a modern scripting language for Web applicationsGroovy - Grails as a modern scripting language for Web applications
Groovy - Grails as a modern scripting language for Web applications
 
Assurer - a pluggable server testing/monitoring framework
Assurer - a pluggable server testing/monitoring frameworkAssurer - a pluggable server testing/monitoring framework
Assurer - a pluggable server testing/monitoring framework
 
Dependency management with Composer
Dependency management with ComposerDependency management with Composer
Dependency management with Composer
 
What The Flask? and how to use it with some Google APIs
What The Flask? and how to use it with some Google APIsWhat The Flask? and how to use it with some Google APIs
What The Flask? and how to use it with some Google APIs
 
Learning Puppet Chapter 1
Learning Puppet Chapter 1Learning Puppet Chapter 1
Learning Puppet Chapter 1
 
How Danga::Socket handles asynchronous processing and how to write asynchrono...
How Danga::Socket handles asynchronous processing and how to write asynchrono...How Danga::Socket handles asynchronous processing and how to write asynchrono...
How Danga::Socket handles asynchronous processing and how to write asynchrono...
 
Designing net-aws-glacier
Designing net-aws-glacierDesigning net-aws-glacier
Designing net-aws-glacier
 

Viewers also liked

Viewers also liked (20)

CommonMark: Markdown Done Right
CommonMark: Markdown Done RightCommonMark: Markdown Done Right
CommonMark: Markdown Done Right
 
Markdown可以做什麼
Markdown可以做什麼Markdown可以做什麼
Markdown可以做什麼
 
Let's learning Markdown
Let's learning MarkdownLet's learning Markdown
Let's learning Markdown
 
Markdown – An Introduction
Markdown – An IntroductionMarkdown – An Introduction
Markdown – An Introduction
 
CommonMark: Markdown done right - Nomad PHP September 2016
CommonMark: Markdown done right - Nomad PHP September 2016CommonMark: Markdown done right - Nomad PHP September 2016
CommonMark: Markdown done right - Nomad PHP September 2016
 
Take it easy with markdown
Take it easy with markdownTake it easy with markdown
Take it easy with markdown
 
Markdown - friend or foe?
Markdown - friend or foe?Markdown - friend or foe?
Markdown - friend or foe?
 
How to make keynote like presentation with markdown
How to make keynote like presentation with markdownHow to make keynote like presentation with markdown
How to make keynote like presentation with markdown
 
The Making of Likeonomics - How To Sell And Write A Book
The Making of Likeonomics - How To Sell And Write A BookThe Making of Likeonomics - How To Sell And Write A Book
The Making of Likeonomics - How To Sell And Write A Book
 
What is mmd - Multi Markdown ?
What is mmd - Multi Markdown ?What is mmd - Multi Markdown ?
What is mmd - Multi Markdown ?
 
MC0088 Internal Assignment (SMU)
MC0088 Internal Assignment (SMU)MC0088 Internal Assignment (SMU)
MC0088 Internal Assignment (SMU)
 
Markdown入門
Markdown入門Markdown入門
Markdown入門
 
Dmm117 – SAP HANA Processing Services Text Spatial Graph Series and Predictive
Dmm117 – SAP HANA Processing Services Text Spatial Graph Series and PredictiveDmm117 – SAP HANA Processing Services Text Spatial Graph Series and Predictive
Dmm117 – SAP HANA Processing Services Text Spatial Graph Series and Predictive
 
Markdown vs. WYSIWYG - Stop using the web like a word document
Markdown vs. WYSIWYG - Stop using the web like a word document Markdown vs. WYSIWYG - Stop using the web like a word document
Markdown vs. WYSIWYG - Stop using the web like a word document
 
markedj: The best of markdown processor on JVM
markedj: The best of markdown processor on JVMmarkedj: The best of markdown processor on JVM
markedj: The best of markdown processor on JVM
 
Markdown Slides [EN]
Markdown Slides [EN]Markdown Slides [EN]
Markdown Slides [EN]
 
An introduction to knitr and R Markdown
An introduction to knitr and R MarkdownAn introduction to knitr and R Markdown
An introduction to knitr and R Markdown
 
Write a book in 40 hours - YES it works!
Write a book in 40 hours - YES it works!Write a book in 40 hours - YES it works!
Write a book in 40 hours - YES it works!
 
Learn jobDSL for Jenkins
Learn jobDSL for JenkinsLearn jobDSL for Jenkins
Learn jobDSL for Jenkins
 
20161024 R語言資料分析實務 (3)
20161024 R語言資料分析實務 (3)20161024 R語言資料分析實務 (3)
20161024 R語言資料分析實務 (3)
 

Similar to Write book in markdown (20)

Write effectlively in late x
Write effectlively in late xWrite effectlively in late x
Write effectlively in late x
 
documents writing with LATEX
documents writing with LATEXdocuments writing with LATEX
documents writing with LATEX
 
Exp_3_20BCA1066 Linux.docx
Exp_3_20BCA1066 Linux.docxExp_3_20BCA1066 Linux.docx
Exp_3_20BCA1066 Linux.docx
 
Fullstack Academy - Awesome Web Dev Tips & Tricks
Fullstack Academy - Awesome Web Dev Tips & TricksFullstack Academy - Awesome Web Dev Tips & Tricks
Fullstack Academy - Awesome Web Dev Tips & Tricks
 
Exp_3_20BCA1311 Linux Labbyharshdeep.docx
Exp_3_20BCA1311 Linux Labbyharshdeep.docxExp_3_20BCA1311 Linux Labbyharshdeep.docx
Exp_3_20BCA1311 Linux Labbyharshdeep.docx
 
Sample pdf
Sample pdfSample pdf
Sample pdf
 
SAMPDF 1
SAMPDF 1SAMPDF 1
SAMPDF 1
 
sample.pdf
sample.pdfsample.pdf
sample.pdf
 
sample.pdf
sample.pdfsample.pdf
sample.pdf
 
11p2
11p211p2
11p2
 
sample.pdf
sample.pdfsample.pdf
sample.pdf
 
sample.pdf
sample.pdfsample.pdf
sample.pdf
 
Sample pdf
Sample pdfSample pdf
Sample pdf
 
pdf
pdfpdf
pdf
 
sample.pdf
sample.pdfsample.pdf
sample.pdf
 
new.pdf
new.pdfnew.pdf
new.pdf
 
sample.pdf
sample.pdfsample.pdf
sample.pdf
 
123
123123
123
 
12p
12p12p
12p
 
sample.pdf
sample.pdfsample.pdf
sample.pdf
 

More from Larry Cai

Learn RabbitMQ with Python in 90mins
Learn RabbitMQ with Python in 90minsLearn RabbitMQ with Python in 90mins
Learn RabbitMQ with Python in 90mins
Larry Cai
 
Learn REST API with Python
Learn REST API with PythonLearn REST API with Python
Learn REST API with Python
Larry Cai
 
Practical way to experience of Specification by Example
Practical way to experience of Specification by ExamplePractical way to experience of Specification by Example
Practical way to experience of Specification by Example
Larry Cai
 
Experience from specification_by_examples
Experience from specification_by_examplesExperience from specification_by_examples
Experience from specification_by_examples
Larry Cai
 

More from Larry Cai (17)

Learn kubernetes in 90 minutes
Learn kubernetes in 90 minutesLearn kubernetes in 90 minutes
Learn kubernetes in 90 minutes
 
Learn RabbitMQ with Python in 90mins
Learn RabbitMQ with Python in 90minsLearn RabbitMQ with Python in 90mins
Learn RabbitMQ with Python in 90mins
 
Learn ELK in docker
Learn ELK in dockerLearn ELK in docker
Learn ELK in docker
 
Software Engineer Talk
Software Engineer TalkSoftware Engineer Talk
Software Engineer Talk
 
Learn nginx in 90mins
Learn nginx in 90minsLearn nginx in 90mins
Learn nginx in 90mins
 
Learn basic ansible using docker
Learn basic ansible using dockerLearn basic ansible using docker
Learn basic ansible using docker
 
Build service with_docker_in_90mins
Build service with_docker_in_90minsBuild service with_docker_in_90mins
Build service with_docker_in_90mins
 
Learn docker in 90 minutes
Learn docker in 90 minutesLearn docker in 90 minutes
Learn docker in 90 minutes
 
Learn Dashing Widget in 90 minutes
Learn Dashing Widget in 90 minutesLearn Dashing Widget in 90 minutes
Learn Dashing Widget in 90 minutes
 
Learn REST API with Python
Learn REST API with PythonLearn REST API with Python
Learn REST API with Python
 
Jenkins Scriptler in 90mins
Jenkins Scriptler in 90minsJenkins Scriptler in 90mins
Jenkins Scriptler in 90mins
 
Lead changes in software development
Lead changes in software developmentLead changes in software development
Lead changes in software development
 
Python in 90mins
Python in 90minsPython in 90mins
Python in 90mins
 
Practical way to experience of Specification by Example
Practical way to experience of Specification by ExamplePractical way to experience of Specification by Example
Practical way to experience of Specification by Example
 
Experience from specification_by_examples
Experience from specification_by_examplesExperience from specification_by_examples
Experience from specification_by_examples
 
Continuous Integration Introduction
Continuous Integration IntroductionContinuous Integration Introduction
Continuous Integration Introduction
 
Agile & ALM tools
Agile & ALM toolsAgile & ALM tools
Agile & ALM tools
 

Recently uploaded

Recently uploaded (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 

Write book in markdown

  • 2. Agenda  Environment  Exercise 1: generate book  Exercise 2: add your own into the books (workflow)  Exercise 3: add more things using markdown  Exercise 4: Hello World in Latex  Exercise 5: Change color for header/footer  Exercise 6: Table in MultiMarkdown  Reference 2 Learn MultiMarkdown to Book
  • 3. Environment @ Windows  Git Bash (unix env)   Editor   MarkdownPad http://markdownpad.com/ MultiMarkdown   http://git-scm.com http://fletcherpenney.net/multimarkdown Latex  3 MiKTex: http://www.miktex.org/portable Learn MultiMarkdown to Book
  • 4. Exercise 1 – Generate Book PDF  (120M) is provided for multimarkdown+MiKTex environment mmdtex-2.9.5105.tar.gz $ tar –zxvf mmdtex-2.9.5105.tar.gz –C /c # extract to c:  In Windows Explorer, run C:mmdtexMiKTexmiktex- portable.cmd  Right click miktex icon -> Options -> Refresh FNDB  Generate $ $ $ $ source /c/mmdtex/env.sh git clone git@github.com:larrycai/sdcamp.git cd sdcamp ./mmd2bok  Open 4 book sdcamp.pdf Learn MultiMarkdown to Book
  • 5. HOWTO: mmdtex-2.9.5105.tar.gz  Download MultiMarkdown portable version http://fletcherpenney.net/multimarkdown/download/ c:mmdtexMultiMarkdown  Download MiKTex Windows Portable version 2.9.5105 http://www.miktex.org/portable c:mmdtexMiKTex  Add c:mmdtexenv.sh $ cat env.sh MMDTEX_BASE=/c/mmdtex export PATH=${MMDTEX_BASE}/MiKTex/miktex/bin:$ {MMDTEX_BASE}/MultiMarkdown:$PATH   Run Exercise 1 to get latex package automatically Then $ tar –zcvf mmdtex-2.9.5105.tar.gz mmdtex 5 Learn MultiMarkdown to Book
  • 6. Workflow Latex Template Markdown multimarkdown Latex xelatex Book content  Take a look at the script mmd2bok 6 Learn MultiMarkdown to Book PDF
  • 7. Exercise 2: add one chapter   Edit sdcamp/contents/*.markdown Change contexts in Preface/Chapters/Appendix and build again MarkdownPad is the best markdown editor in Windows – Simple, Clean 7 Learn MultiMarkdown to Book
  • 8. Learn markdown    Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML  Others: rST (reStructuredText) , asciidoc are similar to markdown 8 Learn MultiMarkdown to Book
  • 10. Book structure  Front-cover & Back-cover  Preface/Forward/Acknowledgement  Contents  Main chapters  Appendix/Glossary/Bibliography 10 Learn MultiMarkdown to Book
  • 11. Exercise 3: Markdown  Add code section  Add extra subsection  Add bullet  Add image  ![ 敏捷宣言 ](../img/xxx)  Build 11 again Learn MultiMarkdown to Book
  • 12. LaTeX in short 12 Learn MultiMarkdown to Book
  • 13. Exercise 4: Latex hello World  Open TeXworks  Create file hello.tex documentclass[11pt,a4paper]{article} usepackage{fontspec} setmainfont{Microsoft YaHei} begin{document} 世界 , 你好 ! end{document}  Or $ xelatex hello.tex  See template template/template-win.tex  See other latex latex/chapters.tex 13 Learn MultiMarkdown to Book
  • 14. Latex Fonts  Fonts textrm{...} roman  textsf{...} sans serif  textbf{...} bold face  textnormal{...} document font   Size tiny tiny font  footnotesize quite small font  small , normalsize normal font   中文 楷体,宋体,黑体  14 $ fc-list :lang=zh-cn Learn MultiMarkdown to Book
  • 15. Exercise 5: Update template  Footer/header – to change color and position L: Left, E: Even fancyhf{} fancyhead[LE] {color{colorheader}quadsmalltextbfthepagequadquadsmallleftmark} fancyhead[RO] {color{colorheader}smallrightmarkquadquadsmalltextbfthepagequad} %fancyhead[RE,LO]{color{colorheader}small{savedtitle}} % book title %fancyfoot[LE,RO]{smalltextbfthepage} % page number %renewcommand{headrulewidth}{0.4pt} % add one line pagestyle{fancy} 15 Learn MultiMarkdown to Book
  • 16. MultiMarkdown   MultiMarkdown, or MMD, is a tool to help turn minimally marked-up plain text into well formatted documents, including HTML, PDF (by way ofLaTeX) … MMD is a superset of the Markdown syntax,   Table/Footnote/Image control … Code .. http://fletcherpenney.net/multimarkdown 16 Learn MultiMarkdown to Book
  • 17. Exercise 6: Add table  Add table | First Header | | :----------| First row | Second row [simple_table] Second Header | | :-----------: | Data | **Cell** Third Header | | -------------------: | | Very long data entry | | *Cell* | https://rawgithub.com/fletcher/human-markdown-reference/master/index.html 17 Learn MultiMarkdown to Book
  • 18. Reference  Markdown  Standard markdown: http://daringfireball.net/projects/markdown/  Github flavored markdown: http://github.github.com/github-flavored-markdown/  Multimarkdown: http://fletcherpenney.net/multimarkdown  MarkdownPad: http://markdownpad.com/  Latex: http://www.latex-project.org/intro.html  MiKTex: http://www.miktex.org/portable  My projects  https://github.com/larrycai/sdcamp  https://github.com/larrycai/latex-support 18 Learn MultiMarkdown to Book
  • 19. Other platform: Ubuntu/MacOS (TBD)  https://github.com/larrycai/sdcamp/blob/master/BUILD.md 19 Learn MultiMarkdown to Book