클래스를 사용하여 LaTeX 문서에서 용어집을 생성하려고 하며 article
TeXStudio를 사용하고 있습니다.
아래 코드를 사용했지만 아무것도 인쇄되지 않습니다
\documentclass{article}
\usepackage{titlesec}
\usepackage[utf8]{inputenc}
\usepackage[hidelinks]{hyperref}
\usepackage{glossaries}
\makeglossaries
\newglossaryentry{culdesac}{name=cul-de-sac,description={passage or street closed at one end},plural=culs-de-sac}
\newacronym{led}{LED}{light-emitting-diode}
\begin{document}
\section{This is my section}
Some text
\end{document}
검색을 해보니 용어집을 생성하고 인쇄하려면 Arara가 필요하다는 사실을 알게 되었습니다. C:\Program Files\arara\에 Arara.exe를 설치했습니다.
아래 링크를 기반으로 새로운 명령을 만들었습니다.
하지만 오류가 발생합니다.
오류: C:\Program Files\arara\arara.exe -v -l "my_text_file" 명령을 시작할 수 없습니다.
누군가 나를 도와줄 수 있나요?
내 기사에 약어와 용어집을 인쇄하고 싶습니다.
답변1
a) 용어집 생성과 b) 편집자의 프로세스 제어를 구별해야 할 것 같습니다. b) TeXstudio를 사용하지 않기 때문에 도움을 드릴 수 없습니다.
다음 문서를 이름으로 저장하세요. sample.tex
(이름이 중요해요!)
\documentclass{article}
\usepackage[colorlinks,linkcolor=blue]{hyperref}
\usepackage[style=long,toc,acronym=true]{glossaries}
\newglossaryentry{Perl}{name=\texttt{Perl},sort=Perl,description=A scripting language}
\newacronym{svm}{SVM}{Support Vector Machine}
\newacronym{xml}{XML}{Extensible Markup Language}
\makeglossaries
\begin{document}
\gls{Perl}
\gls{svm}
\printglossaries
\end{document}
sample.tex
선택한 LaTeX 컴파일러를 통해 실행합니다 . 저는 일반적으로 다음을 사용합니다.pdflatex
a) 명령줄에서 다음 두 명령을 실행하거나 b) 확장자를 가진 파일에 저장합니다..bat
makeindex -s sample.ist -t sample.glg -o sample.gls sample.glo
makeindex -s sample.ist -t sample.alg -o sample.acr sample.acn
TeX 파일에서 LaTeX를 다시 실행하십시오. 다음 PDF를 받아야 합니다.
그럼에도 불구하고 위의 코드는 몇 년 전이고(예제 저장소에서 가져옴) 그 동안 상황이 변경되었을 수 있으므로 Nicolas 매뉴얼을 강력히 권장합니다. TeXworks에 대한 간단한 설명을 작성 했는데 arara
도움이 될 수도 있습니다.http://uweziegenhagen.de/?p=2928
명령 창을 열고 실행할 수 없다면 arara.exe
경로 설정이 손상된 것 같습니다. 이 경우 arara.exe
컴퓨터를 찾아 해당 컴퓨터가 있는 디렉터리를 Windows 경로 변수에 추가합니다.