기능
Typst / LaTeX 출력
HWP 문서를 Typst, LaTeX 소스 파일로 직접 변환합니다.
Typst / LaTeX 출력은 Pro 기능입니다.
Typst
--format typst로 HWP를 Typst 소스(.typ)로 변환합니다.
docpler convert report.hwp --format typst -o report.typ출력 예시:
= 2024년 예산 보고서
#table(
columns: 3,
table.header[항목], table.header[예산], table.header[집행],
[인건비], [500], [480],
[운영비], [200], [195],
)
$ x = frac(-b plus.minus sqrt(b^2 - 4a c), 2a) $
#figure(
image("assets/image001.png"),
caption: [예산 추이 그래프],
)LaTeX
--format latex로 완전한 LaTeX 문서(.tex)를 생성합니다.
프리앰블(documentclass, usepackage)이 자동 포함됩니다.
docpler convert report.hwp --format latex -o report.tex출력 예시:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{booktabs}
\begin{document}
\section{2024년 예산 보고서}
\begin{tabular}{l l l}
\toprule
항목 & 예산 & 집행 \\
\midrule
인건비 & 500 & 480 \\
운영비 & 200 & 195 \\
\bottomrule
\end{tabular}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.8\textwidth]{assets/image001.png}
\caption{예산 추이 그래프}
\end{figure}
\end{document}지원 요소
| 요소 | Typst | LaTeX |
|---|---|---|
| 문단 | 그대로 | 그대로 |
| 제목 | = / == / === | \section / \subsection |
| 표 | #table(...) | tabular + booktabs |
| 수식 | $ ... $ | \[ ... \] |
| 이미지 | #figure(image(...)) | \includegraphics |