æè¡æ¸å ¸5ã«åãã¦ãå·çç°å¢ã®æ´åãè¡ãªã£ã¦ãã¾ããååã®æè¡æ¸å ¸4ã§ã¯ãæçµçã«Googleããã¥ã¡ã³ãã§å·çãã¾ããã
ååã®æè¡æ¸å ¸4ã®æ¨¡æ§ã¯ãéå»ã®ããã°è¨äºã§ç¶´ã£ã¦ããã¾ãã®ã§ãããå®ãããã°ã覧ãã ããã
ãã¦ãä»åã¯ãGitBookãRe:VIEWã使ããã¨æ±ºãã¦ãã¾ãããããã§ãå®éã«ä¸¡æ¹ã§å·çããã¦ã¿ãã®ã§ãããæ¯è¼ããçµæRe:VIEWã§æ¸ããã¨ã«æ±ºãã¾ããã
ãã®éã®Re:Viewã®ç°å¢æ§ç¯æé ãå ±æãããã¨æãã¾ããæåã«è¨ã£ã¦ããã¾ãããRe:VIEWã®å·çç°å¢ã®æ§ç¯ã¯ãç©åãç°¡åã§ãã
å¿ è¦ãªã¢ãã¯Dockerã ãã§ãã
ç§ã¯ãä»åã®å·çã«ã¯Dockerãæ´»ç¨ãããã¨ã«ãã¾ããããªããDocker for Macã®ã¤ã³ã¹ãã¼ã«ã¯ãHomeBrewçµç±ãæããæ軽ã§ãã
# HomeBrewã®ã¤ã³ã¹ãã¼ã«(å ¥ã£ã¦ãªã人ã ã) /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # Docker for Macã®ã¤ã³ã¹ãã¼ã«(å ¥ã£ã¦ãªã人ã ã) brew cask install docker
ã¤ã³ã¹ãã¼ã«ãå®äºããããä¸åº¦LaunchpadããDockerãèµ·åãã¾ããããç§ãDockerãã¤ã³ã¹ãã¼ã«ããã®ã¯ã ãã¶åã®è©±ãªã®ã§ããã確ãå©ç¨è¦ç´ã¸ã®åæãæ±ããããã¯ãã§ãã
review-init ã«ããéå½¢ã®ä½æ
Dockerã®ã¤ã³ã¹ãã¼ã«ãå®äºããããå·çãéå§ãã¾ãããã®ããã«ãã¾ããreview-initãã§éå½¢ã¨ãªãããã¸ã§ã¯ããä½æãã¾ãããã
docker run \ --rm \ -v $(pwd):/work \ vvakame/review:latest /bin/sh -c "cd /work && review-init your_project_name"
vvakameããã®Re:VIEWç¨ã®dockerãèµ°ããããã¨ã§ãæå ã«Re:VIEWã®ç°å¢ãæ§ç¯ãããã¨ãªããããã¸ã§ã¯ãä½æãè¡ãªãã¾ãã
review-pdfmakerã«ããPDFã®ä½æ
å·çãéå§ããããé次å稿ã確èªãããæã«ãPDFã®ä½æãè¡ãã¾ãã
docker run \ --rm \ -v $(pwd):/work \ -v $(pwd)/.texmf-var:/root/.texmf-var \ vvakame/review:latest /bin/sh -c "cd /work && review-pdfmaker config.yml"
ããã¯ãããã¸ã§ã¯ãã®ç´ä¸ã§è¡ãªãããã«ãã¦ãã ãã(注éï¼config.ymlã®ããå ´æã®ãã¨ã§ã)ã
Re:VIEWç¨ã®Dockerã«ã¤ãã¦ã¯ããRe:VIEWã¨Dockerã¨CircleCIã§å稿ãç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³ãã®è¨äºã大å¤åèã«ãªãã¾ããããããã¨ããããã¾ãã
æççµè·¯ã¸ã®ã³ãã¯ãæå ã«Re:VIEWã®ç°å¢ãæ§ç¯ããªããã¨ã§ãã
æ¢ã«ãRe:VIEWç°å¢ãæ´ã£ã¦ããdockerãå©ç¨ãããã¨ã§ãç°å¢æ§ç¯ãããäºãªãã«ãRe:VIEWãæ´»ç¨ãããã¨ãåºæ¥ãã®ã§ãã
Re:VIEWã使ãããã«è¦ããã¹ããã¨
æä½éãè¦ãªããã°ãªããªãã®ã¯ãããã¸ã§ã¯ãç´ä¸ã«ã§ããäºã¤ã®ãã¡ã¤ã«ã§ãã
config.yml
ãconfig.ymlãã¯ãèè åãã³ãã¼ã©ã¤ãã®è¡¨è¨ãã¯ããã¨ãããRe:VIEWç¨ã®è¨å®ãã¡ã¤ã«ã§ãã
ãã¡ã¤ã«å ã«è©³ãã解説ãæ¸ãã¦ããã¾ãã®ã§ãã³ã¡ã³ããåèã«ãã¦ãã ããã
catalog.yml
ãcatalog.ymlãã¯ãããããç®æ¬¡ãã¡ã¤ã«ã®ãããªå½¹å²ãæããã¾ããç« ã追å ããæã¯ãCHAPSã«ãã¡ã¤ã«ã足ãã¾ãã
å¾ã¯ãæ¡å¼µåãã.reãã®ãã¡ã¤ã«ã§æ¸ãå§ããã°OKã§ãã
PREDEF: # åä»ããã¯ããã« - ãã¡ã¤ã«å.re CHAPS: # åç« (1ç« ã2ç« ã¨ç¶ãã¾ã) - ãã¡ã¤ã«å01.re - ãã¡ã¤ã«å02.re APPENDIX: # è£è¶³ãä»é² - ãã¡ã¤ã«å.re POSTDEF: # å¾ä»ããç·¨éå¾è¨ - ãã¡ã¤ã«å.re
ãµããã£ã¬ã¯ããªã«reãã¡ã¤ã«ãç½®ããã¨ã¯ã§ããªã
æ£ç¢ºãªäºãè¨ãã¾ãã¨ãcontentdirãã¨ããè¨å®ãconfig.ymlã«æ¸ãã°å¯è½ã§ããããããããã«å¯¾å¿ãã¦ããã®ã¯ãVersion 3.0.0 preview 1ãã®ã¿ã§ãã
ãªã®ã§ããµããã£ã¬ã¯ããªã«ç« ãã¡ã¤ã«ãç½®ãããæ¹ã¯ãPreviewçã®Re:VIEWã使ãå¿ è¦ãããã¾ãã
(注éï¼2018å¹´7ææ«æç¹ã§ã®è©±ã§ã)
ã¡ãªã¿ã«ãç§ã¯ç´ ç´ã«ããã¸ã§ã¯ãç´ä¸ã«reãã¡ã¤ã«ã並ã¹ãäºã«ãã¾ããããã¡ã¤ã«åã工夫ããã°ãæå¤ã«æ··ä¹±ããã«ããã¾ãã
Re:VIEWè¨æ³ã®ãã¼ãã·ã¼ã
Re:VIEWã¯ãå°ã ã¯ã»ã®ããè¨æ³ãæ¡ç¨ãã¦ãã¾ãããã®ãããæ £ããã¾ã§ã¯ãæå ã«Re:VIEWè¨æ³ã®ãã¼ãã·ã¼ããããã¨ä¾¿å©ã§ãã
ã¨ããããããã»ã¼å¿ é ã§ãã
ãã¼ãã·ã¼ã(å°å·ç¨)
ãã¼ãã·ã¼ã(Web)
ã©ã¡ãã®ãã¼ãã·ã¼ãããä¸è©±ã«ãªã£ã¦ãã¾ãããããã¨ããããã¾ãã
ãããã«
vvakameããã®Re:VIEWç¨ã®dockerãæ´»ç¨ãããã¨ã§ããæ軽ã«å·çãéå§ãããã¨ãã§ãã¾ããã
æ¸ãæ¹ããæåããã¯ã»ããããªã¨æãããã®ã®ãæ°æéå·çãããã°æ £ããã¬ãã«ã§ããããã¯ãªããªãã«ããªã¹ã¹ã¡ã§ã¯ãªããã¨æãã¾ãã
ããã§ã¯çæ§ãè¯ãå·çã©ã¤ãããéãããã ããï¼
è£è¶³1ï¼Mac以å¤ã§ãç°å¢ã¯æ§ç¯ã§ãã¾ã
ç§ã®æå ã®ç°å¢ãMacã®ãããæ¬è¨äºã¯Macç¨ã«æ¸ãã¦ããã¾ãã
ããããªãããDockerããããã°ãLinuxã§ãã£ã¦ãWindowsã§ãã£ã¦ããåãããã«ç°å¢ãæ§ç¯ããäºã¯å¯è½ãªã¯ãã§ãã®ã§ããã²ãã£ã¬ã³ã¸ãã¦ã¿ã¦ãã ããã
è£è¶³2ï¼Re:VIEW Starterã®ã¹ã¹ã¡
ã«ã¦ãã©ã³æ©é¢ããã®ãRe:VIEW Starterãããªã¹ã¹ã¡ã§ãã
https://kauplan.org/reviewstarter/
èªåã§ãreview-initãããããã¸ã§ã¯ãã使ã£ã¦ããã¾ã§æ¸ãã¦ããã®ã§ãããLaTeXé¢é£ã®è¨å®ã調ã¹ãã®ã大å¤ã§ãã©ãã«ãæéããããã¾ãã
è¨å®ã«ã¯æéãããããæ¬æãæ¸ãã®ã«éä¸ãããã®ã§ããã°ã試ãã¦ã¿ã¦ã¯ãããã§ããããï¼