Mathematica에서 LaTeX을 사용하기 위한 방법이다.
1. MaTeX Paclet 설치. Notebook 에서 아래의 명령을 실행.
ResourceFunction["MaTeXInstall"][]
2. MaTeX를 불러올때는
<<MaTeX`
혹은
Needs["MaTeX`"];
3. 일반적인 TeX와 다른 점은" \" 하나가 아니라 " \\" 를 사용한다.
SetOptions[MaTeX,
"Preamble"->{"\\usepackage{color}\\usepackage{amsmath}\\everymath{\\color{red}}"}]
4. 사용예 ( 따옴표 내에서 (" ") 사용할때는 \\ )
MaTeX["\\int_0^\\infty e^{-x}\\, dx", FontSize -> 20, Magnification -> 1]
MaTeX[sin[x], Magnification -> 2]
자세한 사용법은 http://szhorvat.net/pelican/latex-typesetting-in-mathematica.html 를 참고하세요.
'Mathematica' 카테고리의 다른 글
Temperature inside of cylindrical heater (0) | 2025.05.12 |
---|---|
Mathematica를 이용한 Fourier 급수 구하기 (0) | 2023.10.26 |
재귀함수(recursive function)을 이용한 피노나치 수열 (1) | 2023.10.25 |
List Manupulation (0) | 2016.01.09 |
Transpose 기능 이용하기 (0) | 2015.11.17 |