TeX
TeXã§èæ¯ã«ã°ãªããã©ã¤ã³ã表示ããæ¹æ³ã§ãï¼TeXã®å稿ã®ä½ç½ãã¹ãã¼ã¹ã調æ´ããã¨ãã«ï¼ããããå®è¦ã使ã£ã¦é·ãã測ããªãã¦ãç°¡åã«ã¬ã¤ã¢ã¦ãã確èªã§ããããã«ãªãã¾ãï¼ ããªã¡ã¼ãã«åä½ã§ã°ãªãããæç»ãã %% ã°ãªããã表示ãã (åä½ï¼mmâ¦
TeX㧠pngç»åã表示ãããªãå ´åã®ä¿®æ£æ¹æ³ã§ã çç¶ \includegraphicsã§pngç»åãè²¼ã£ã¦ãï¼ç»åã表示ãããªã ã³ã³ãã¤ã«æã®ãã°ã確èªããã¨ï¼ä»¥ä¸ã®è¦åãåºã¦ãã dvipdfmx:warning: Unparsed material at end of special ignored. ä¿®æ£æ¹æ³ \documeâ¦
TeXã§åæ°ãæ¸ãã³ãã³ããï¼è¡¨ã§æ´çãã¾ãã ã³ãã³ã åºå 説æ ã³ãã³ãå®ç¾© \frac{1}{4} TeXæ¨æºã³ãã³ã \dfrac{1}{4} amsmath ããã±ã¼ã¸ \def\dfrac#1#2{{\displaystyle\frac{#1}{#2}}} \tfrac{1}{4} amsmath ããã±ã¼ã¸ \def\dfrac#1#2{{\textstyleâ¦
gnuplotã§ç¶ºéºãªãã¹ãã°ã©ã ãæ¸ãæ¹æ³ã§ã # ãã¹ãã°ã©ã ã®è¨å® # min = æå°å¤ max = æå¤§å¤ width = binã®å¹ # # minããmaxã¾ã§ã®ç¯å²ãï¼Néç´ã«åå²ãããå ´å㯠# width = (max - min)/N # ã¨ãã¾ã bin(x) = width*(floor((x - min)/width)) + minâ¦
mac ã® TeXç°å¢ã texlive2024 (BasicTeX) ã«æ´æ°ããã®ã§æé ãã¾ã¨ãã¾ãï¼ãã®è¨äºã¯ä»¥ä¸ã®ã¨ã³ããªã macOS 㨠Tex Live 2024 ã«åããã¦æ´æ°ã»å çãããã®ã§ãï¼ https://pyopyopyo.hatenablog.com/entry/2022/04/06/211116 (TeX Live 2022ã®è¨äº) httâ¦
TeXã§æç®ãªã¹ãä¸ã®éèªåãã¸ã£ã¼ãã«åãç¥ç§°ã«å·®ãæ¿ããæ¹æ³ã§ã æé ï¼ï¼bibãã¡ã¤ã«ã使ã æç®ãªã¹ãã«ã¯ãæ£ããæ¸ãæ¹ãã¨ãããã®ãåå¨ãã¾ãï¼TeXã®å ´åã¯ï¼æ¸èªæ å ±ã¯bibãã¡ã¤ã«ã§ç®¡çãã¦ï¼èªåå¦çã§ãæ£ããæ¸ãæ¹ãã®æç®ãªã¹ããåºåãâ¦
TeXã§æ¬æã«è¡çªå·ãã¤ããæ¹æ³ã§ã ï¼è¡ããã«è¡çªå·ãã¤ããï¼è¡ã¯æç« å ¨ä½ã§æ°ããï¼ æç« ã®å é è¡ã1ã¨ãã¦è¡ãæ°ãããå ´åã¯æ¬¡ã®ããã«ãã¾ã \usepackage[right]{lineno} \runninglinenumbers \modulolinenumbers[5] ï¼è¡ããã«è¡çªå·ãã¤ããï¼è¡ã¯â¦
TeXã§æç« ã«ããã°ã©ã ã®ã½ã¼ã¹ã³ã¼ããæ²è¼ããå ´å㯠listings ããã±ã¼ã¸ã使ãæ¹æ³ãããããã§ãï¼æ³¨æï¼é¡ä¼¼ããåå㧠listing ããã±ã¼ã¸ãåå¨ãã¾ãï¼æ¬ã¨ã³ããªã§ç´¹ä»ããã®ã¯æ«å°¾ã«"s"ãã¤ãï¼ listings ããã±ã¼ã¸ã§ã 使ãæ¹ ã·ã³ã¿ãã¯ã¹ãã¤â¦
TeXã®è¡¨ä¸ã§æ¹è¡ããæ¹æ³ãã¾ã¨ãã¾ã表ä¸ã®ã»ã«å ã§æ¹è¡ããæ¹æ³ã¯ããããããã¾ã ã»ã«ã®ä¸ã§å¥ã®è¡¨ãå®ç¾©ãã \makecell ã使ã tabularx ç°å¢ã使ã æ°ç®æã ãæ¹è¡ãããå ´åã¯ï¼ä¸çªç®ã®æ¹æ³ã便å©ã§ãæ¹è¡ãããã»ã«ãå¤ãå ´åã¯ï¼ä¸çªç®ã®tabularx â¦
TeXã§è¡¨ã®ã»ã«ã®ééãå°ããããæ¹æ³ã§ãTeXã®è¡¨ã®ä½ç½ã¯ åæ¹åï¼ã«ã©ã æ¹åï¼æ°´å¹³æ¹åï¼ã¯ \tabcolsep è¡æ¹åï¼ãã¦æ¹åï¼åç´æ¹åï¼ã¯ \tabrowsep ã§è¨å®ã§ãã¾ãä¾ãã°ãããã1ptã«ããå ´å㯠\tabcolsep = 1pt \tabrowsep = 1pt ã¨æ¸ãã ãã§ããã ãâ¦
TeXã§æ¿å ¥ãã¦ããå³ãç»åãªã©ã®ãã¡ã¤ã«åã®ä¸è¦§ã調ã¹ãæ¹æ³ã§ã æé ï¼ï¼.flsãã¡ã¤ã«ãä½ã TeXã« "-recorder"ãªãã·ã§ã³ãã¤ãã¦ã³ã³ãã¤ã«ãã㨠.fls ã¨ãããã¡ã¤ã«ãåºåã§ãã¾ãï¼ãã®ãã¡ã¤ã«ã調ã¹ãã¨ç°¡åã«ç»åãå³ã®ãã¡ã¤ã«åããããã¾ãâ¦
ããªã¢ã³ãã«ã« \setcounter{tocdepth}{3} ãæ¸ãã°OKTOC㯠table of contents ã®ç¥ï¼æ°å¤ã®æå³ã¯ 0 chapter 1 section 2 subsection 3 subsubsection 4 paragraph 5 subparagraph ãã¨ãã° \setcounter{tocdepth}{4} ã¨ãã㨠\paragraph ã¾ã§ç®æ¬¡ã«åºåãâ¦
TeXã®ã¤ã³ã¹ãã¼ã«æ¸ã¿ããã±ã¼ã¸ãï¼å¼·å¶çã«åã¤ã³ã¹ãã¼ã«ãç´ãã¯ã³ã©ã¤ãã¼ã§ã $ tlmgr info --only-installed | while read a pkg b; do pkg=${pkg/:/}; sudo tlmgr install $pkg --reinstall; done [æ¹è¨ç¬¬8ç]LaTeX2εç¾ææ¸ä½æå ¥éä½è :奥ææ´å½¦,â¦
詳細ãªæ å ±ãå¿ è¦ãªå ´åã¯ï¼"--json"ãã¤ããã¨JSONå½¢å¼ã§æ å ±ãåºåã§ãã¾ãï¼ã¤ã³ã¹ãã¼ã«æ¥æã ã¨ãï¼ããã±ã¼ã¸ã«å«ã¾ãããã¡ã¤ã«åãå¿ è¦ãªå ´åã¯JSONå½¢å¼ã使ãæ¹ãè¯ãã§ãããï¼ $ tlmgr info --only-installed --json JSONå½¢å¼ãªã®ã§ jq ã³ãã³ãâ¦
TeX Live ç°å¢ã®ã¤ã³ã¹ãã¼ã«æ¸ã¿ããã±ã¼ã¸ã®ãªã¹ããå¾ãã«ã¯ä»¥ä¸ã®ã³ãã³ãã使ãã¾ã $ tlmgr info --only-installed åºåã®æ¸å¼ã¯ i ããã±ã¼ã¸å: 説ææã§ã ããã±ã¼ã¸åã ãã欲ããå ´å shellè¸bash ã®ã¯ã³ã©ã¤ãã¼ $ tlmgr info --only-installedâ¦
mac ã® TeXç°å¢ã texlive2023 (BasicTeX) ã«æ´æ°ããã®ã§æé ãã¾ã¨ãã¾ãï¼ãã®è¨äºã¯ä»¥ä¸ã®ã¨ã³ããªã macOS 㨠Tex Live 2023 ã«åããã¦æ´æ°ã»å çãããã®ã§ãï¼ https://pyopyopyo.hatenablog.com/entry/2022/04/06/211116 (TeX Live 2022ã®è¨äº) httâ¦
BibTeX ã§è¤æ°ã®èè ãããå ´åã¯ï¼çç¥ã㦠et al. ã¨è¡¨è¨ããæ¹æ³ã§ãèè åãçç¥ããã¨æç®ãªã¹ããçããªãã¾ãï¼ãã¼ã¸æ°ãå¶éããã¦ããå ´åã«ä½¿ããã常å¥ãã¯ããã¯ãªã®ã§ï¼ããã«æé ãã¡ã¢ãã¦ããã¾ãï¼ æ¦è¦ TeX㧠BibTeXã使ãã¨ï¼æç®ãã¼ã¿â¦
TeXã§æ¹è¡ããæ¹æ³ã¨ããã¼ã¸ãå¤ããæ¹æ³ã§ã æ¹è¡ ã³ãã³ã æ¹æ®µè½ æ¹ãã¼ã¸ è£è¶³ ç©ºè¡ ãã ãã \\ ç¡ã ãã \\* ç¡ã ç¡ã \newline ç¡ã ãã \\ã¨åãæå³ \linebreak ç¡ã ãã \break ç¡ã ãã \hfill\break ç¡ã ãã \vspace{5mm} ç¡ã ãã ä½â¦
jupyter notebook ã®åºå㯠pdf å½¢å¼ã§ä¿åã§ãã¾ããã®æ¹æ³ã¯ï¼ç»é¢å·¦ä¸ã®ãã¡ãã¥ã¼ãã®ãååãä»ãã¦ãã¦ã³ãã¼ãããããPDF via LaTeX (.pdf)ããé¸ã¶ã ãï¼ãã ãï¼ãã®æ©è½ãæ£å¸¸ã«åä½ããããã«ã¯ LaTeX ãã¤ã³ã¹ãã¼ã«ããã¦ããã㨠æ¥æ¬èªç¨ã«â¦
macOS ã® TeXç°å¢ã texlive2020 ã«æ´æ°ããã®ã§æé ãã¾ã¨ãã¾ãï¼ãã®è¨äºã¯ä»¥ä¸ã®ã¨ã³ããªã macOS 㨠Tex Live 2020 ã«åããã¦æ´æ°ã»å çãããã®ã§ãï¼ http://pyopyopyo.hatenablog.com/entry/2019/07/04/150000 http://pyopyopyo.hatenablog.com/entâ¦
macOS mojave ã® TeXç°å¢ã texlive2019 ã«æ´æ°ããã®ã§æé ãã¾ã¨ãã¾ãï¼2020å¹´6æ27æ¥è¿½è¨ï¼ Tex Live 2020çã®è¨äºãç¨æãã¾ããï¼ pyopyopyo.hatenablog.com ãã®è¨äºã¯ä»¥ä¸ã®ã¨ã³ããªã macOS mojave㨠Tex Live 2019 ã«åããã¦æ´æ°ã»å çãããã®ã§â¦
TeXã§ãã¼ã¸çªå·ãå·¦ä¸ã«è¡¨ç¤ºããå ´å㯠fancyhdr ããã±ã¼ã¸ã使ãã¾ã fancyhdr ã®ä½¿ãæ¹ \usepackage{fancyhdr} \pagestyle{fancy} \rhead{\thepage} ããã¿ã¼ã®ãã¼ã¸çªå·ãæ¶ãã«ã¯ããã« \cfoot{ } ã¨ãã¾ã fancyhdrã®ä»çµã¿ fancyhdrããã±ã¼ã¸ã使â¦
macOS High Sierra ã® TeXç°å¢ã texlive2018 ã«æ´æ°ããã®ã§æé ãã¾ã¨ãã¾ãï¼ 2019å¹´7æ5æ¥è¿½è¨ï¼ Tex Live 2019çã®è¨äºãç¨æãã¾ããï¼ pyopyopyo.hatenablog.comãã®è¨äºã¯ä»¥ä¸ã®ã¨ã³ããªã macOS High Sierra 㨠Tex Live 2018 ã«åããã¦æ´æ°ã»å çâ¦
macOS Sierra ã® TeXç°å¢ã texlive2017 ã«æ´æ°ããã®ã§æé ãã¾ã¨ãã¾ãï¼ãã®è¨äºã¯ä»¥ä¸ã®ã¨ã³ããªã macOS Sierra 㨠Tex Live 2017 ã«åããã¦æ´æ°ã»å çãããã®ã§ãï¼ http://d.hatena.ne.jp/pyopyopyo/20161106 http://d.hatena.ne.jp/pyopyopyo/2015â¦
macOS Sierra ã® TeXç°å¢ã texlive2016 ã«æ´æ°ããã®ã§æé ãã¾ã¨ãã¾ãï¼ãã®è¨äºã¯ä»¥ä¸ã®ã¨ã³ããªã macOS Sierra 㨠Tex Live 2016 ã«åããã¦æ´æ°ã»å çãããã®ã§ãï¼ http://d.hatena.ne.jp/pyopyopyo/20140815 http://d.hatena.ne.jp/pyopyopyo/2015â¦
éå»ã«æ¸ããTeXã®Tipsã®ä¸è¦§ãä½ãã¾ããï¼åè«ï¼ä¿®è«ï¼Dè«å·çã®å©ãã«ãªãã°å¹¸ãã§ã OS X ã« texlive2015 ãã¤ã³ã¹ãã¼ã«ãã Macbook air ã« texlive2014 ãã¤ã³ã¹ãã¼ã«ãã TeX ã§ä½ç½ã調æ´ãã octaveã§ãã¼ã¿ã解æããæ¹æ³ TeX ã« svg ãè²¼ãæ¹æ³â¦
Macbook Air (OS X Yosemite) ã® TeXç°å¢ã texlive2015 ã«æ´æ°ããã®ã§æé ãã¾ã¨ãã¾ãï¼ãã®è¨äºã¯ http://d.hatena.ne.jp/pyopyopyo/20140815 ã®å 容ã texlive2015 ã«åããã¦æ´æ°ã»å çãããã®ã§ãï¼2018å¹´5æ9æ¥è¿½è¨ï¼ Tex Live 2018çã®è¨äºãhttp:â¦
Macbook Air (OS X Marvericks) ã® TeXç°å¢ã texlive2014 ã«æ´æ°ããã®ã§æé ãã¾ã¨ãã¾ãï¼2018å¹´5æ9æ¥è¿½è¨ï¼ Tex Live 2018çã®è¨äºãhttp://d.hatena.ne.jp/pyopyopyo/20180509 ã«ç¨æãã¾ããï¼2016å¹´11æ6æ¥è¿½è¨ï¼Tex Live 2016çã®è¨äºãhttp://d.haâ¦
TeXã®ä½ç½ï¼ã¹ãã¼ã¹ï¼ééï¼ã調æ´ããæ¹æ³ãã¾ã¨ãã¾ãï¼ã¦ã£ã¨ãã°ããã¹ãã¼ã¹ã調æ´ãããå ´åï¼ä¾ãã°ä¸è¡ééãè©°ããå ´å㯠\vspace{-10pt}ãç´æ¥æ¿å ¥ãã¾ãï¼TeXã¨ãã¦ã¯ææªã®æ¹æ³ã§ãããã®å ´ãã®ãã«ã¯æãã¾ãï¼æç« å ¨ä½ã§ä¸æ¬ãã¦ä½ç½ãå¤æ´ãâ¦
TeXã®ä½ç½ï¼ã¹ãã¼ã¹ï¼ééï¼ã調æ´ããæ¹æ³ãã¾ã¨ãã¾ãï¼ ã¦ã£ã¨ãã°ããã¹ãã¼ã¹ã調æ´ãããå ´å TeXã¨ãã¦ã¯ææªã®æ¹æ³ã§ãã"ãã®å ´ãã®ã"ã«ã¯æãã¾ãï¼ ä¸è¡ééãè©°ãã \vspace{-1zh} ä¸è¡ééãåºãã \vspace{1zh}"zh"ã¯ï¼å ¨è§æåã®é«ãï¼ã«ç¸â¦