커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
웹개발 종합반 수강 중 조금 다른 질문이 있는데, 답변이 가능할까요?
undefined주차
북마크
유*림
댓글
8
추천
0
조회수
16
조회수
16
답변 완료

안녕하세요, 웹개발 종합반 듣고 있는 수강생입니다. 1주차 즉문즉답 시간이지만, 너무 궁금해서 여쭤봅니다.


1, 2주차 내용까지 공부한 바로는 API를 통해, 웹페이지에 jQuery를 써서 불러일으키는 것까지는 충분히 이해가 되었습니다. 어떻게 구동시켜야하는지까지 한번 해보았으니 알것 같은데, 궁금한 부분은 다음입니다.


현재 제가 목표하는 바는 문제은행식 웹페이지를 만들어서 학생들에게 배포하고자 합니다. 목표가 확실해서 그런지 조금 빨리빨리 수강을 하고 있는데요. 문제은행에 들어갈 문제들은 이미 제가 LaTeX이라는 파일들로 가지고 있고, 이 부분은 HTML+Mathjax(javascript library로 수학 표현을 잘 예쁘게 바꿔줍니다) 파일로 변경이 가능한데, 이렇게 변경된 HTML 파일 중 문제에 해당되는 부분만 긁어서, API로 변경하는 방법이 있을까요?


예를 들어, 제가 지금 가지고 있는 LaTeX 파일을 HTML + MathJaX로 변경하면, 다음과 같습니다.

<!DOCTYPE html> 
<html lang='en-US' xml:lang='en-US'> 
<head><title></title> 
<meta charset='utf-8' /> 
<meta content='TeX4ht (https://tug.org/tex4ht/)' name='generator' /> 
<meta content='width=device-width,initial-scale=1' name='viewport' /> 
<link href='TwinQuestionBooklet.css' rel='stylesheet' type='text/css' /> 
<meta content='TwinQuestionBooklet.tex' name='src' /> 
 <script async='async' id='MathJax-script' src='https://cdn.jsdelivr.net/npm/mathjax@3/es5/mml-chtml.js' type='text/javascript'></script>  
</head><body>
<div class='flushleft'>
<!-- l. 6 --><p class='noindent'>
 1. Compute the number of
<!-- l. 7 --><math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mn>3</mn></math>s
used in the three-digit positive integers.<br />
2. Compute the number of all non-negative integer quadruples
<!-- l. 8 --><math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mrow><mo class='MathClass-open' stretchy='false'>(</mo><mi>a</mi><mo class='MathClass-punc'>,</mo><mi>b</mi><mo class='MathClass-punc'>,</mo><mi>c</mi><mo class='MathClass-punc'>,</mo><mi>d</mi><mo class='MathClass-close' stretchy='false'>)</mo></mrow></math>
satisfying
<!-- l. 8 --><math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mrow><mn>5</mn><mi>a</mi> <mo class='MathClass-bin'>+</mo> <mn>4</mn><mi>b</mi> <mo class='MathClass-bin'>+</mo> <mn>3</mn><mi>c</mi> <mo class='MathClass-bin'>+</mo> <mn>2</mn><mi>d</mi> <mo class='MathClass-rel'>=</mo> <mn>20</mn></mrow></math>.<br />
3. In how many ways can a set of 12 identical-looking marbles be partitioned
into three bundles of different sizes?<br />
</p>
</div>
    
</body> 
</html>


이런 파일들이 정말 여러개를 만들수 있는데, 제가 원하는 것은

<div>

위 파일 내용 중 수학 문제에 해당되는 부분만 HTML을 긁어오기

</div>


만약 복잡하다면, 차라리 제가 가지고 있는 LateX 파일을 image로 모두 변경 (이 방법은 LaTeX에서 CGI로 바꾸는 방식이 또 있나봅니다..)해서, 그걸 API로 호출하게하는 방식도 생각은 하고 있는데, 이런 것을 구현하고 있는 홈페이지들을 보니, 그렇게 하고 있는 것 같진 않고, MathJax로 변경된 파일을 호출하는 것 같은데, 도저히 어떻게 해석해야할지 몰라서 여쭤봅니다.


제가 이런 것엔 처음이라 잘 몰라서, 어느 분한테 여쭤봐야할지 몰라서, 이렇게 게시판에 한번 올려봅니다.


제가 현재 모델을 삼고 있는 웹페이지는 다음 url에서 확인할 수 있습니다.

http://mathcounts.saab.org/mc.cgi



취소
 공유
취소
댓글 0
댓글 알림
나의얼굴