ReVIEWè¨æ³ åºæ¬ææ³æéãã¹ã¿ã¼
ä»æ¥ã¯ã½ãã¼ãªã¼ãã¼ã®è©±ãããªãã¦ãå½ç¤¾ã§çºå£²ãã¦ããæ¬ã®æ¹ã®è©±é¡ã§ãã
é人åºçä¼ãçºè¡ãã¦ããããã¥ã¡ã³ãã¯ãä»ã®ã¨ããå ¨ã¦ReVIEWè¨æ³ã¨ããè¨æ³ã使ã£ã¦æ¸ããã¦ãã¾ããReVIEWã®ã¢ããªï¼ã¨ãããåç´ãªã³ãã³ãã©ã¤ã³ç¨ã®ã³ãã³ãï¼ã使ãã°ãEPUBãLaTeXã«èªåå¤æã§ããããInDesignã使ã£ã¦å°å·ç¨å稿ã«ãããã¨ãã§ãã¾ããå®éãé«æ©ãå·çãããRubyã¬ã·ãããã¯ç¬¬3çããªã©ã¯ãReVIEWã使ã£ã¦æ¸ããå稿ãããInDesignã«ãã£ã¦å°å·ç¨ã«ä½¿ããã¦ãã¾ãã
ReVIEWè¨æ³ã®çé¢ç®ãªç´¹ä»ã¯ãµã¤ãã®æ¹ã«ããç¨åº¦æ¸ãã¦ããã¾ãããç°¡åãªãã¥ã¼ããªã¢ã«ã¨ãããã¨ã§ãã¯ã¦ãªã£ã½ãæ¸ãã¦ã¿ã¾ããã¨ããããã¯ã¦ãªè¨æ³ åºæ¬ææ³æéãã¹ã¿ã¼ããåèã«ãã¦ã¾ãã
åºç¤
ãã¬ã¼ã³ããã¹ã
å¤ãã®Wikiè¨æ³ãç°¡æãã¼ã¯ã¢ããè¨èªã¨åãæ§ã«ãç¹å¥ãªè¨æ³(å¾è¿°)ã使ã£ã表ç¾ä»¥å¤ã¯å ¨ã¦ãã®ã¾ã¾åºåããã¾ãã
ç¹ã«ãASCIIã«å«ã¾ããªãæ¥æ¬èªæåãªã©ã¯ãä½ãèããã«æ¸ãã°ãã®ã¾ã¾è¡¨ç¾ãããã¨ãã§ãã¾ãã以ä¸ããã®ãµã³ãã«ã§ãã
ReVIEWè¨æ³ã¯ç°¡åã«æ¸ãã¦ä¾¿å©ã«ä½¿ãã¾ãã
ReVIEWè¨æ³ã§ã¯ã空è¡ãä¸ã¤ã®æ®µè½(paragraph)ã¨ãã¦æ±ããã¾ããã¾ããè¡æ«ã®æ¹è¡ã¯ç¡è¦ããã¾ãã段è½ã§ã¯ãªãæ¹è¡ã®ããã«ã¯ãæ¹è¡ã¤ã³ã©ã¤ã³è¨æ³ãç¨æããã¦ãã¾ãã
ããã¯1è¡ç®ã«è¡¨ç¤ºããã¾ãã@<br>{}ããã¯2è¡ç®ã«è¡¨ç¤ºããã¾ãã@<br>{} ããã¯3è¡ç®ã«è¡¨ç¤ºããã¾ããã½ã¼ã¹ã§ã®æ¹è¡(\n)ãªã©ã¯ç¡è¦ããã¾ãã ãã段è½ã®åºåããå ¥ã£ã¦ãï¼è¡ç©ºãã¦ï¼è¡ç®ã«è¡¨ç¤ºããã¾ãã
ä¸è¬çã«ã¯ç´ ç´ã«æ®µè½ãã¨ã«æ¸ããããã¨ãåæã¨ãã¦è¡¨ç¾ãããã®ã§ãååã¨ãã¦ã¯æ¹è¡ã¤ã³ã©ã¤ã³è¨æ³ã¯ä½¿ããªããã¨ãå¼·ããå§ããã¾ããã¯ã£ãããã£ã¦å¾®å¦ãªè¨æ³ã§ããæ¹è¡ã¤ã³ã©ã¤ã³è¨æ³ã§ãããããããæ¹è¡ã¨ãã»ãã»ãæ¸ããªãã¨ããå¼·ãæå¿ãæãããã¦ããã¾ããæãã¦ãã ããã
ãªããããã¹ãä¸ã®æ¹è¡æåã¯åãå¥ãããã¦ãåé¤ããã¾ããè±åèªãªã©ãæ¹è¡ãã¾ããã£ã¦æ¸ãã¨ãã«ã¯ãã¾ã¡ãã£ã¦åèªãªã©ãé£çµããªããããæ°ãã¤ãã¦ãã ãããããªãªãã¾ã§ã®ä¸æã¯ãã®ã¾ã¾æ¹è¡ãå
¥ããã«æ¸ããã¨ã«ãªãã¾ãã
èè ç¨ãã¼ã¯ã¢ãã
æçµçã«ã¯åºåãããªããå稿ã®ã¿ã«æ¸ãè¨æ³ã¨ãã¦ãèè ç¨ãã¼ã¯ã¢ããè¨æ³ãããã¾ãã
#@# ã³ã¡ã³ãããã®è¡ã«ã¯ä½ãæ¸ãã¦ãç¡è¦ããã¾ãã #@warn(è¦åã§ããããªããã»ã¹æã«ã¡ãã»ã¼ã¸ãåºåããããã¨ãããã¾ãã)
èè
ç¨ãã¼ã¯ã¢ããã¯ã¾ã ã¾ã æ´ç·´ããã¦ãªãã§ãããåç´ãªã³ã¡ã³ãã¨ãã¦ä½¿ãã®ãç¡é£ãªæãã§ãã
æåå修飾
ReVIEWè¨æ³ã«ã¯ã@<ãã§å§ã¾ãã¤ã³ã©ã¤ã³è¨æ³ãããã¤ãããã¾ããããã使ãã°ãåèªã強調ãããããã¤ãã¼ãªã³ã¯ãæ¸ããããã¾ãã
@<em>{ã©ããã¦ã}å¿ è¦ã«ãªãã¾ãã (â太åã«ãªãã¾ãã) @<kw>{ReVIEW}ã使ãã¾ãã (âãã¼ã¯ã¼ããæ¸ãéã«ä½¿ãã¾ãã強調ãããããã¾ãã) @<href>{http://www.google.com/} (âURLãæ¸ãã¦ããã¤ãã¼ãªã³ã¯ãå®ç¾ãã¾ãã) @<code>{x = obj.x.to_s} (âã½ã¼ã¹ã³ã¼ãã®å¼ç¨ã§ãã)
ããã«æ¸ãã¦ããªããã®ã§ãå¤æ°ã®è¨æ³ãããã¾ããä»å¾ãæ¡å¼µãããããªæ°ããã¾ããã¨ã¯ãããããã¾ãé§ä½¿ããããã¨ãããããªãã®ã§ãå¿
è¦ã«å¿ãã¦ã©ããã
æ°å¼
ReVIEWã®æ°å¼ã¯ã@
å¼ã¯ã@<m>{y = \alpha x ^ 2 + \beta x + \gamma}ã¨ãªãã¾ãã
ã¾ã å®é¨çãªå®è£
ãªæ°ãããã®ã§ãsvgãªã©ã®å³ã«ãã¦ãããæ¹ãå®å¿ããã
è注
è注ã¯@
ç¾å¨ã®ReVIEWå¦çç³»ã¯Ruby@<fn>{ruby}ã§è¨è¿°ããã¦ãã¾ãã //footnote[ruby][ã¾ã¤ãã¨ããã²ããããéçºããã¦ããã¹ã¯ãªããè¨èª]
è注ãã©ã®ä½ç½®ã«ã©ã表示ããããã¯ãåºåç¨ã«å¤æããããã©ã¼ãããã«ãã£ã¦ç°ãªãã¾ãããããååã¨ãã¦ã¯ããã¾ã使ãéããã極åæ¬æãä¸ããé ã«èªãã§ç解ã§ããããã«ãã¦ãããæ¹ãããããªæå³ã§ãå§ãã§ãã
è¦åºã
ReVIEWã§ã¯ã5ã¤ã®ã¬ãã«ã®è¦åºããç¨æããã¦ãã¾ãã
= ç« == ç¯ === é ==== 段 ===== å°æ®µ(ã¨ããååã§ãããã§ããã£ã? ã¾ãã段ããå°ããã«ã¿ããªã§ã)
ããã«ãè¦åºãã«ã¯ã¿ã°ãæå®ã§ãã¾ããç¾å¨ä»æ§ã§æ±ºãããã¦ããã®ã¯ãcolumnãã¿ã°ã§ãã
===[column] ã¡ãã£ã¨ä¾¿å©ãªä½¿ãæ¹ ä¾¿å©ãªããã§ããã»ã©ä¾¿å©ãããªããã§ãã¡ãã£ã¨ã ã便å©ãªä½¿ãæ¹ã§ãã
ãã®è¾ºãã¯Rubyæ¹é¢ã§ã¯ããç¥ããã¦ããè¨æ³ã§ããRDãRDocã«å
±éãã¦ããæãã§ããããã£ã±ãæ軽ã«æ¸ããã®ã便å©ã§ãã
ãªã³ã¯
ReVIEWã§ã¯URLãªã©ã使ã£ã¦ãä»ã®ã³ã³ãã³ãã¸ã®ãã¤ãã¼ãªã³ã¯ãæ¸ããã¨ãã§ãã¾ããURLã§ä»ã®ã³ã³ãã³ããªã©ããªã³ã¯ããã«ã¯ã@
é人åºçä¼ã®ãµã¤ã㯠@<href>{http://tatsu-zine.com/} ã«ããã¾ãã @<href>{http://d.hatena.ne.jp/tatsu-zine/,é人åºçä¼æ¥è¨} ãã覧ãã ããã
@
ããã¹ã以å¤ã®ã¡ãã£ã¢
ç»åã®è¡¨ç¤º
ç»åã®è¡¨ç¤ºã«ã¯ã//imageè¨æ³ã使ãã¾ãã
//image[capture12][ç»é¢ãã£ããã£ãã®12]
ããããã¨ãç»åãã£ã¬ã¯ããª/ãã¡ã¤ã«å-capture12.{jpg|png}ãåããã¾ãã¾ããå¤é¨ã¸ã®ç»åãã¡ã¤ã«ã(URLãªã©ã使ã£ã¦)ææ¸ã«åãè¾¼ãæ¹æ³ã¯ããã¾ããã
ã¾ããã¤ã³ã©ã¤ã³ã«ç»åãå«ããã«ã¯ã@
ãã£ã¨@<icon>{capture12}âãããªé¡ããã¦ããã¯ãã
ç»åã®ãã©ã¼ãããã¯PNGãJPEGã使ãã®ãç¡é£ã§ããããåºåãã©ã¼ãããã«ãã£ã¦ã¯ä»ã®å½¢å¼ã®ç»åããµãã¼ããã¦ãããã¨ãããã¾ãã
æ´å½¢æ¸ã¿ããã¹ããããã¯
è¨å·ã¨ãã¦è§£éãããæååãæ¹è¡ãå«ããã«ã¯ãæ´å½¢æ¸ã¿ãããã¯ã使ãã¾ãã
emlistãããã¯ã使ãã¨ãé£çªããµãããªãããã£ãã·ã§ã³ããªãã®æ´å½¢æ¸ã¿ãããã¯ã«ãªãã¾ãã
//emlist{ def fact(n) return 1 if n == 1 n * fact(n-1) end //}
listãããã¯ã使ãã¨ãé£çªããµãããããã£ãã·ã§ã³ã¤ãã®æ´å½¢æ¸ã¿ãããã¯ã«ãªãã¾ããå¼æ°ã®ä¸ã¤ç®ã¯ãã®ãããã¯ã®èå¥åï¼IDï¼ã«ãäºã¤ç®ã¯ãã£ãã·ã§ã³ç¨ã®æååã«ãªãã¾ãã
//list[fact][factã¡ã½ããå®ç¾©]{ def fact(n) return 1 if n == 1 n * fact(n-1) end //}
sourceãããã¯ã使ãã¨ãé£çªããµãããªãããã£ãã·ã§ã³ã¤ãã®æ´å½¢æ¸ã¿ãããã¯ã«ãªãã¾ãã
//source[fact.rb]{ def fact(n) return 1 if n == 1 n * fact(n-1) end //}
sourceãããã¯ã¯ããã¾ã使ã£ããã¨ãããã¾ãããemlistãlistãããã°ä½ã¨ããªãã¾ãã
ï¼è¿½è¨ï¼ä¸è¨ã®ä¾ã§ããããã¯ã®çµç«¯ãã//}ãã§ã¯ãªãã}ãã¨æ¸ããã¦ã¾ããããã¿ã¾ãããç¾å¨ã¯ä¿®æ£æ¸ã¿ã§ããï¼
å¼ç¨ãããã¯
//quoteè¨æ³ã使ãã¨ãä»ã®ã³ã³ãã³ãããå¼ç¨ãããã®ã§ãããã¨ã表ç¾ã§ãã¾ãã
//quote{ ãããå°çãè¡ããã ã§ï¼ã ãäºäººã¯ãããã®æããã«å¯ãããã£ã¦ãè¸çãèã®ã³ãããããã«å»¶ã³ã¦ãæµ·ãæ±ãè¾¼ãã§ããå½é¤¨ã®è¡ãè¦ã¦ããã ï¼å°æå¤åäºãè¹å·¥è¹ãï¼ //}
ããã¯æ®éã«å¤ç¨ãã¾ãã
ã³ãã³ãã©ã¤ã³ãããã¯
ã³ãã³ãã©ã¤ã³ã«ã¯ãã½ã¼ã¹ã³ã¼ãç¨ã®ãããã¯ã¨ã¯å¥ã«//cmdè¨æ³ã使ãã¾ãã
//cmd{ $ ruby -v ruby 1.9.2p0 (2010-08-18 revision 29036) //}
ããã°ã©ãã³ã°ç³»ä»¥å¤ã¯ããã¾ã使ããªãããããã¾ããã
表çµã¿
æ¬æä¸ã§è¡¨ãæ示ããã«ã¯ã//tableè¨æ³ã使ãã¾ãã
//table[envvars][éè¦ãªç°å¢å¤æ°]{ åå æå³ ------------------------------------------------------------- PATH ã³ãã³ãã®åå¨ãããã£ã¬ã¯ã㪠TERM 使ã£ã¦ãã端æ«ã®ç¨®é¡ãlinuxã»ktermã»vt100ãªã© LANG ã¦ã¼ã¶ã®ããã©ã«ããã±ã¼ã«ã LOGNAME ã¦ã¼ã¶ã®ãã°ã¤ã³å //}
ãªã¹ã
ç®æ¡æ¸ãï¼ãªã¹ãï¼ã¯ãçªå·ãã¤ããã®ã¨ã¤ããªããã®ã®äºã¤ããã¾ããçªå·ãã¤ããªããã®ã¯ã*ãã§ãçªå·ãã¤ããã®ã¯ã1.ãã¨ãã2.ãã¨ãã®ããã«è¨è¿°ãã¾ããæ°åã¯ã§ãããã§ãã¡ããã¨é£çªãç´ãã¦è¡¨ç¤ºãã¾ãã
* æ°´æ * éæ * å°ç * ç«æ 1. æ°´æ 2. éæ 3. å°ç 4. ç«æ
ç¨èªãªã¹ããæ¸ãã¾ããããããã¯è¨æ³ã«é£ãããã¨ããããå®ç¾©é¨ã®è¨æ³ã¯ã©ãã¾ã§ã©ãããã®ããã¿ãããªåé¡ãããã®ã§ãããã¾ãå¤ç¨ããªãã»ããããããããã¾ããï¼ã¨è¨ãã¤ã¤ãç§ã¯çµæ§ä½¿ã£ã¦ãã¾ãï¼ã
: foo å°ã£ãæã«ãã使ãããååãå¤æ°åãã¡ã½ããåã¨ãã¦ã : bar ä¸ã«åã : hoge æ¥æ¬ãã¼ã«ã«ã®ããã ããä¸ã¨åããããªç®çã«ä½¿ããã¦ããã
ãªã¼ãæãããã¯
ç« ã®é ã«ãããªã¼ãæã«ã¯ã//leadè¨æ³ã使ãã¾ãã
//lead{ æ¬ç« ã§ã¯ã¤ã³ã¹ãã¼ã«ã®ä»æ¹ãç´¹ä»ãã¾ãã //}
ãªã¼ãæã¯æ´å²çäºæ ã«ãã//readã¨ãæ¸ãã¾ãããã//leadã ãç¥ã£ã¦ããã°ååã§ãããã
ã¨ãããããããªã¨ããã§ãããããã½ã¼ã¹ã«ã©ãæ¸ãã°æçµåºåçµæã¯ã©ããªãã®ããã¨ããã®ããã¾ãã¡åããã¥ãããããåºåçµæã®ç»åã¨ãããªãã¨ã¤ã¡ã¼ã¸ãã¥ããã§ããâ¦â¦ä½åã¨æ©ä¼ãããã°ã¾ãä»åº¦ã