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.4k
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
560
ISUCONの情報共有にはこれ!notify_slack!/isucon_notify_slack
catatsuy
1
990
ISUCON6本選のベンチマークでconsulを使用してクラスタを構築した話 / isucon6-night
catatsuy
2
1.2k
ユニクロの レジから学ぶ Goroutine #yapc8oji #yapc8ojiA /uniqlo_golang
catatsuy
6
2.2k
社内ISUCONオープニング/private-isu-opening
catatsuy
0
9.9k
ピクシブ社内広告サーバーでのGoの開発・運用 #gocon /p_ads_server_gocon2015
catatsuy
10
11k
fluentdで大量のログを Google BigQueryに送ってみた #fluentdmeetup /send_a_log_to_bigquery_with_fluentd
catatsuy
1
4.1k
『pixivエンジニアが教えるプログラミング入門』出版記念特別編基調講演
catatsuy
3
1.8k
ピクシブ広告サーバー開発・運用の軌跡 2015春インターン講義資料
catatsuy
17
11k
Other Decks in Technology
See All in Technology
JavaにおけるNull非許容性
skrb
2
2.7k
1行のコードから社会課題の解決へ: EMの探究、事業・技術・組織を紡ぐ実践知 / EM Conf 2025
9ma3r
12
4.5k
フォーイット_エンジニア向け会社紹介資料_Forit_Company_Profile.pdf
forit_tech
1
1.7k
自分だけの仮想クラスタを高速かつ効率的に作る kubefork
donkomura
0
110
Autonomous Database Serverless 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
17
45k
DeepSeekとは?何がいいの? - Databricksと学ぶDeepSeek! 〜これからのLLMに備えよ!〜
taka_aki
1
170
AI Agent時代なのでAWSのLLMs.txtが欲しい!
watany
3
350
OPENLOGI Company Profile for engineer
hr01
1
20k
Change Managerを活用して本番環境へのセキュアなGUIアクセスを統制する / Control Secure GUI Access to the Production Environment with Change Manager
yuj1osm
0
110
AIエージェント時代のエンジニアになろう #jawsug #jawsdays2025 / 20250301 Agentic AI Engineering
yoshidashingo
8
4k
Pwned Labsのすゝめ
ken5scal
2
540
EMConf JP 2025 懇親会LT / EMConf JP 2025 social gathering
sugamasao
2
210
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Thoughts on Productivity
jonyablonski
69
4.5k
Code Review Best Practice
trishagee
67
18k
Raft: Consensus for Rubyists
vanstee
137
6.8k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.2k
Embracing the Ebb and Flow
colly
84
4.6k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.3k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
650
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.3k
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.5k
GraphQLの誤解/rethinking-graphql
sonatard
69
10k
Site-Speed That Sticks
csswizardry
4
410
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 〜ଔॻ 〳「〼⿸