Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Markdown to LaTeX
Search
Kaneko Tatsuya
April 14, 2013
Technology
1
1.5k
Markdown to LaTeX
Markdown to LaTeX
Kaneko Tatsuya
April 14, 2013
Tweet
Share
More Decks by Kaneko Tatsuya
See All by Kaneko Tatsuya
キャリアを充実させる『カギ』に!PR TIMES CTO金子達哉から学ぶアウトプット術 / output_method
catatsuy
0
590
ISUCONの情報共有にはこれ!notify_slack!/isucon_notify_slack
catatsuy
1
1k
ISUCON6本選のベンチマークでconsulを使用してクラスタを構築した話 / isucon6-night
catatsuy
2
1.2k
ユニクロの レジから学ぶ Goroutine #yapc8oji #yapc8ojiA /uniqlo_golang
catatsuy
6
2.3k
社内ISUCONオープニング/private-isu-opening
catatsuy
0
10k
ピクシブ社内広告サーバーでのGoの開発・運用 #gocon /p_ads_server_gocon2015
catatsuy
10
11k
fluentdで大量のログを Google BigQueryに送ってみた #fluentdmeetup /send_a_log_to_bigquery_with_fluentd
catatsuy
1
4.2k
『pixivエンジニアが教えるプログラミング入門』出版記念特別編基調講演
catatsuy
3
1.9k
ピクシブ広告サーバー開発・運用の軌跡 2015春インターン講義資料
catatsuy
17
11k
Other Decks in Technology
See All in Technology
kubellが挑むBPaaSにおける、人とAIエージェントによるサービス開発の最前線と技術展望
kubell_hr
1
390
2025/6/21 日本学術会議公開シンポジウム発表資料
keisuke198619
2
470
In Praise of "Normal" Engineers (LDX3)
charity
2
1.2k
Amazon ECS & AWS Fargate 運用アーキテクチャ2025 / Amazon ECS and AWS Fargate Ops Architecture 2025
iselegant
13
4.2k
AIの最新技術&テーマをつまんで紹介&フリートークするシリーズ #1 量子機械学習の入門
tkhresk
0
120
変化する開発、進化する体系時代に適応するソフトウェアエンジニアの知識と考え方(JaSST'25 Kansai)
mizunori
0
120
AIエージェント最前線! Amazon Bedrock、Amazon Q、そしてMCPを使いこなそう
minorun365
PRO
10
3.5k
AI技術トレンド勉強会 #1MCPの基礎と実務での応用
nisei_k
1
240
白金鉱業Meetup_Vol.19_PoCはデモで語れ!顧客の本音とインサイトを引き出すソリューション構築
brainpadpr
2
470
Windows 11 で AWS Documentation MCP Server 接続実践/practical-aws-documentation-mcp-server-connection-on-windows-11
emiki
0
660
AIにどこまで任せる?実務で使える(かもしれない)AIエージェント設計の考え方
har1101
3
1.2k
Model Mondays S2E02: Model Context Protocol
nitya
0
180
Featured
See All Featured
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
700
Documentation Writing (for coders)
carmenintech
71
4.9k
It's Worth the Effort
3n
184
28k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Testing 201, or: Great Expectations
jmmastey
42
7.5k
Designing for Performance
lara
609
69k
4 Signs Your Business is Dying
shpigford
184
22k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
790
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Transcript
Markdown to L ATEX ۚࢠୡ࠸ (id:catatsuy) April 14, 2013
ࣗݾհ • ۚࢠୡ࠸ • 〤〛〟 ID: catatsuy • twitter: catatsuy
URL: • http://www.catatsuy.org • http://blog.catatsuy.org • https://matw.co
ॴଐ • ౦ژۀେֶʢʺి௨େʣ • ใֶՊ 4 ʢ9 ݄ଔۀ༧ఆʣ • ٢ݚڀࣨ
• ぢアゃゔがのぎがずふぜばを • C++11 ্〜まがへげこぎهड़〣てゎゔ゛がてゖアぇ『 DSL ぇఏڙ『ぐゅ゙ぇߴԽ『ݚڀぇ「〛 ⿶〳『ʢ。〟〣〜ུʣ
ब৬׆ಈ • 〤〛〟ぐアのがア 2012 • pixiv ぐアのがア
10 ݄〾 〭ʂ
લճ〣 Dentoo.LT Acme::MorningMusume 〣ぇ「〳「〔 http://blog.catatsuy.org/a/256
ଔۀ「〔⿶
ଔۀจ ʢ8 ݄ఏग़〣〔〶ʣ ઈࢍ⿶ࠐ〴〟⿸ˑ
ಥવ〣ࢮܐએࠂ
ଔ〝⿶⿺〥. . . I ♡ L ATEX
L ATEX • \verb/gcc/ 〝ॻ。〣໘ • \begin{} - \end{} 〜ғ⿸〣໘
• ࠷ॳ〣ゆ゙ぎアゅ゚⿸》⿶
࣌〤ܰྔろがぜぎひゆ〭 L ATEX HTML ⇒ Markdown wiki ه๏ 〤〛〟ه๏
I ♡ Markdown • Github 〟〞〜࠾༻ • ిࢠゐが゚〾〣০〾ண • ւ֎〣ਓ〠〤ײత〾「⿶
• てアゆ゚〠ॻ々 • ֤ݴޠ〜むがつが࣮《ぁ〛⿶
ࠓճ〣のぐぷ゚ Markdown to L ATEX
Pandoc • ろがぜぎひゆݴޠ〣૬ޓมびが゚ • ؔܕݴޠ haskell 〜࣮ • ػೳ〉〝〠៉ྷ〠ゑでゔが゚Խ《ぁ〛⿶ •
ଟ࠼〟やさがろひぷ〠ରԠ • Markdown ⇒ L A TEX 〷Մೳ
Pandoc ぐアとぷが゚ Ubuntu: sudo apt-get install haskell-platform Mac: brew install
ghc brew install haskell-platform common: cabal update cabal install pandoc # ~/.cabal/bin/ ぶく゛ぜぷ゙ҎԼ〠 PATH ぇ௨『
Pandoc 〣⿶ํ # ຊจ〣〴 pandoc input.md -o output.tex # ふアゆ゛がぷࠐ〴
pandoc -s input.md -o output.tex # beamerʢゆ゛にアʣग़ྗ pandoc -t beamer input.md -o output.tex # มࢦఆ pandoc -V fontsize=12Q input.md -o output.tex
Pandoc 〣 • ‘gcc‘ 〝ॻ。〝 \texttt{gcc} 〠《ぁ〛「〳⿸ • ຊ〤 \verb+gcc+
〝〠「〛ཉ「⿶ • ふアゆ゛がぷຊ〣 L A TEX 々〜〤〟⿶
Github 〜 Fork 「〳「〔ʂ git clone git://github.com/catatsuy/pandoc.git cd pandoc git
submodule init git submodule update # git://github.com/catatsuy/pandoc-templates.git # data/templates ҎԼ〠 clone 《ぁ
‘ ‘ 〣ڍಈぇม⿺ src/Text/Pandoc/Writers/LaTeX.hs - rawCode = liftM (text .
(\s -> "\\texttt{" ++ s ++ "}")) - $ stringToLaTeX False str + rawCode = liftM (text . (\s -> "\\verb‘" ++ s ++ "‘")) + $ stringToLaTeX True str
ふアゆ゛がぷ • ผ゙れでぷ゙ʢgit submoduleʣ • data/templates ҎԼ〣 default.latex • $
. . . $ 〜มల։ • ม〤 -V ざゆてゖア〜『
ふアゆ゛がぷ࡞れぐアぷ • ಡ〴ࠐ〵むひたがで〟〞〤࠷খݶ〠 • --include-in-header header.tex 〝「〛Ճ むひたがで〹༨നઃఆ〟〞ぇผやきぐ゚〠〜
cabal-dev • cabal 〤 ~/.cabal/ ҎԼ〠ぐアとぷが゚『 • 『〜〠ຊՈ〣 pandoc 〤ぐアとぷが゚ࡁ〴
• じ゛アぷぶく゛ぜぷ゙্〜ぢアむぐ゚「〔⿶ cabal install cabal-dev cd pandoc cabal-dev install --sandbox=. # pandoc/bin/ ҎԼ〠࣮ߦやきぐ゚ग़ྗ《ぁ
〘〛〴〛〘〔 • গ「〜〷ෳࡶ〟〷〣〤 L A TEX 〜ॻ。ඞཁ • Emacs 〣৭々
L A TEX ෦〜ޮ〟⿶ • yatex 〣ڧྗ〟ิػೳ⿺〟⿶ • վߦ「〔〝〈あ〜とらがとೖ〈〝⿴
վળҊ • Markdown 〜 L A TEX 〣จষぇॻ。〣〜〤〟。 L A
TEX 〣จষ্〜 Markdown ه๏ぇ෦త〠⿸〮 • とらがとೖ〘〛〷〣〟⿶ॴ〜վߦ『 # ⿶〣〜 Makefile ࡞ਪ pandoc -f markdown input.tex -o output.tex # yatex 〤ぶやさ゚ぷ〜ࣗಈվߦ「〛「〳⿸〣〜 .emacs 〠Ճ (add-hook ’ yatex-mode-hook ’(lambda () (auto-fill-mode -1)))
վળҊ〣ॴ • 〈ぁ࠷దղ〘〲⿶ • L A TEX やきぐ゚『〘 〿『 • yatex
〷⿺ • Markdown 〠ิ〹৭々⿶〾〟⿶
ܽ • ग़ྗぇҙࣝ「〟〾ॻ。ඞཁ • L A TEX 〣ॻ ํ〠〷ඞཁ • L
A TEX ぇ७ਮ〠ॻ。〟〾ੜ」〟⿶ແବ〟〴ൃੜ
ඞཁ〟 • \\ ॻ々〟⿶ • \linebreak 〹 \newline 〟〞ぇ⿸ඞཁ •
ぢゐアぷぎげぷ % 〜〜 〟⿶ • comment.sty \if0 \fi ぇ⿸
つアゆ゚ ࠓճ〣Ұ࿈〣ྲྀぁぇ࠶ݱ『つアゆ゚ github.com/catatsuy/mdtolatex_sample Makefile 〟〞ࢀߟ〠「〛。〕《⿶
ࠓޙ〣༧ఆ • ଔぇ Markdown 〜ॻ 〳『 • 〒〣্〜〘〔ぇڞ༗「〛⿶ 〳『 • Markdown 〜ଔॻ 〳「〼⿸