본문 바로가기
limesurvey_라임서베이/questionnaire

[수학 공식] latex 스타일 { } 활용 주의

by 거인과난쟁이 2024. 2. 1.

https://forums.limesurvey.org/forum/installation-a-update-issues/145638-rendering-latex-expressions-with-alphabets-inside-braces-in-mathjax#255269

 

Rendering LaTeX Expressions with Alphabets Inside Braces in MathJax

Rendering LaTeX Expressions with Alphabets Inside Braces in MathJax

forums.limesurvey.org

라임서베이의 질문, 응답 편집기에 latex 스타일의 수학 용어들을 넣을 수 있다.  아래 사항을 소스에 추가해야 한다:

<script>
MathJax = {
  tex: {
    inlineMath: '$', '$'], ['\\(', '\\)'
  }
};
</script><script id="MathJax-script" async
  src=" cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js ">

숫자와 관련해서는 latex 방식의 수학 공식화 방식을 따른다.

<script>
MathJax = {
  tex: {
    inlineMath: '$', '$'], ['\\(', '\\)'
  }
};
</script><script id="MathJax-script" async
  src=" cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js ">

<p>\(\overline{ AP}\)</p>
<p>\(\sqrt[3]{ B}\)</p>

그런데, { }를 사용해야하는 경우는 조심할 필요가 있다. { }는 라임서베이에서 연산과 관련된 기능적 기호이기 때문이다.

선분 AP를 overline{AP}로 입력하면 반영이 안된다. overline{ AP}로 중간에 공백을 넣는 방식을 추천한다.