0. 개요

자신의 웹 페이지에서 LaTeX를 사용하고 싶다면 MathJax에서 제공하는 자바스크립트 라이브러리를 쓰면 된다.

1. 설치 방법

MathJax.orgGetting Started 페이지에서 제공하는 설명대로 다음의 코드를 자신의 웹 페이지에 추가하면 된다.

<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML'></script>

그러면 해당 웹 페이지에 있는 텍스트 중, $$로 좌우가 감싸인 문자열은 LaTeX 문법으로 인식해, 수식으로 변환해준다.

2. 수식 사용 예제

  • 간단한 제곱
    $$( a^2 )$$
    

  • 이차방정식의 근의 공식
    $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$
    

  • 행렬
    \begin{pmatrix}
     1 & a_1 & a_1^2 & \cdots & a_1^n \\
     1 & a_2 & a_2^2 & \cdots & a_2^n \\
     \vdots  & \vdots& \vdots & \ddots & \vdots \\
     1 & a_m & a_m^2 & \cdots & a_m^n    
     \end{pmatrix}
    

  • 나눗셈
    $$
    \require{enclose}
    \begin{array}{r}
                  13  \\[-3pt]
    4 \enclose{longdiv}{52} \\[-3pt]
       \underline{4}\phantom{2} \\[-3pt]
                  12  \\[-3pt]
       \underline{12}
    \end{array}
    $$
    

3. 도구

  • detexify.kirelabs.org/classify.html: 기호를 마우스로 그리면, 필기 인식으로 내가 찾는 기호와 유사한 기호의 목록과 latex 코드를 제안해준다. 매우 편리하다.

Bibtex 101

  • Mendeley or Biblatex or Zotero
  • Maybe Zotero or Mendeley
  • Start from Mendeleyk
  • WikiBooks

    BibTex

    Basic Form

    @article{greenwade93,
      author  = "George D. Greenwade",
      title   = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
      year    = "1993",
      journal = "TUGBoat",
      volume  = "14",
      number  = "3",
      pages   = "342--351"
    }
    
  • @type: article, book, booklet, …
  • author: John {von Neumann} Basic Cite
     /cite[]{CODE}
    
  • just before the End of the document
  • insert
    \bibliography{library.bib}
    

    Bib Style

  • .tex file inculdes bibliographystyle
  • no whitespace btw bib files \bibliographystyle{plain} \bibliographystyle{agsm} before the La-TeX\begin{document} ... \bibliography{<directory-and-bib-file-name,file2,file3>} \end{document} `
  • asgm is the example of stye you want to use

    \documentclass{article} \usepackage{natbib} ```

    citation Key

  • Tools - Options - Document Details - Citation Key
  • e.g) Gee2018

    Mendeley Ref -> LaTex

  • Sync button
  • Tools - Options - BibTex
  • Edit Path
  • “library.lib” created
  • copy this file and paste it to library folder for LaTEX
  • sources
    • check link in link

LaTEX 101 Resources

My workflow

  • find Name or citation Key in large bib file
  • extract the part
  • put it in new .bib
  • cite in .tex
    • \cite{}
    • \cite[]{}