そもそもGitHubでブログとか抜かし始めたのは、この拡張マークダウン記法があったからだと思う。 とりあえずソースコードを綺麗に貼れるだけでポイントが高いし、 厄介な手続きを踏んで、アカウントを取得する手間もかからんので楽だろうと思った。 試しにソースを載せると非常に美しく表示される。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \makeatletter | |
| \def\@sect#1#2#3#4#5#6[#7]#8{% | |
| \ifnum #2>\c@secnumdepth | |
| \let\@svsec\@empty | |
| \else | |
| \refstepcounter{#1}% | |
| \protected@edef\@svsec{\@seccntformat{#1}\relax}% | |
| \fi | |
| \@tempskipa #5\relax |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \lstset{ | |
| basicstyle=\footnotesize\tt, | |
| keywordstyle=\footnotesize\sl, | |
| numbers=left, | |
| breaklines=true, | |
| frame=trbl, | |
| showstringspaces=false, | |
| firstnumber=1, | |
| xleftmargin=16pt, | |
| xrightmargin=4pt, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| open build/LaTeX | |
| DefineCommandVars() | |
| .SUBDIRS: . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LATEX = platex --interaction=nonstopmode --kanji=utf8 | |
| DVIPDFM = dvipdfmx | |
| DVIPSFLAGS = -t jisb5 -P pdf | |
| DVIPDFMFLAGS = -p jisb5 | |
| TEXDEPS = word.cls | |
| word.cls : ../../texfiles/word.cls | |
| cp ../../texfiles/word.cls word.cls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 参考:http://ydal.de/vimium-mapping-for-dvorak-layouts/ | |
| unmapAll | |
| map r reload | |
| map x removeTab | |
| map u restoreTab | |
| map t scrollDown | |
| map n scrollUp | |
| map h scrollLeft |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \makeatletter | |
| \newcount\barsNow | |
| \def\underbar#1{% | |
| \barsNow =#1\relax% | |
| \expandafter\@underbar} | |
| \def\@underbar{% | |
| \advance\barsNow -1% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \usepackage[dvipdfmx]{graphicx} | |
| \usepackage[first=0, last=360]{lcg} | |
| \makeatletter | |
| \def\rotate#1{% | |
| \def\str{#1@}% | |
| \expandafter\@rotate\str} | |
| \def\makerandrotatebox#1{% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select 氏名, 住所 | |
| from 従業員 | |
| where 部門番号=1 | |
| select 部門名 | |
| from 部門 | |
| where exists | |
| (select 部門番号 | |
| from 従業員 | |
| where 氏名='山田一郎') |