-
수식 입력기: Equation Editor
-
1.
먼저 관련 Css 및 스크립트를 CDN으로 링크하고 스크립트를 초기화해주어야 한다:
[ Equation Editor CDN 링크 및 초기화 ]
<head>
<title>수식입력기</title>
<!-- Css CDN 링크 -->
<link rel="stylesheet" href="https://editor.codecogs.com/eqneditor.css" />
</head>
<body>
<!-- 에디터용 컨테이너 작성할 곳 -->
<!-- 스크립트 CDN 링크 및 초기화 -->
<script src="https://editor.codecogs.com/eqneditor.api.min.js" crossorigin="anonymous"></script>
<script type="text/javascript">
/* Equation Editor 초기화 */
textarea= new EqEditor.TextArea('latexInput')
.addToolbar(new EqEditor.Toolbar('toolbar'), true)
.addOutput(new EqEditor.Output('output'))
.addHistoryMenu(new EqEditor.History('history'));
</script>
<!-- 작성된 기호를 html에 삽입하기 위한 latex 플러그인 CDN 링크 -->
<script src="http://latex.codecogs.com/latexit.js"></script>
</body>
-
2.
다음, <body>에서 에디터용 컨테이너를 만들어준다:
☞
이제, 이렇게 만들어진 Equation 컨테이너에서 수식기호를 작성한 뒤, 웹문서에 붙여넣으면 됩니다..
░
위 설명대로 따라하다보니 얼떨결에 만들어진
입니다