
저는 논문을 쓰고 있는데 몇 가지 주요 용어를 정의하고 싶습니다. 이제 항목별로 이 작업을 수행하고 들여쓰기된 작은 글머리 기호를 사용합니다. 괜찮아 보이지만 LaTeX의 장점 중 하나는 더 큰 꿈을 꿀 수 있고 더 많은 미적 옵션을 찾을 수 있다는 것입니다.
그러나 "LaTeX의 단어 정의 환경"을 Google에 검색하면 수학 관련 주제에 대한 검색 결과만 얻습니다. 주변 텍스트와 상쇄되는 방식으로 용어를 정의할 수 있는 환경에 대한 좋은 제안이 있습니까?
지금 내가 하는 일은 다음과 같습니다.
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
Many terms are important, including surprising ones. In this treatise, we use the word \textit{potato}, like so:
\begin{itemize}
\item Potato. Species of ghost native to Mexico.
\end{itemize}
Therefore, we propose that potatoes be dug up and reburied in accordance with proper rites.
\end{document}
하지만 나는 다음과 같은 것을 갖고 싶습니다.
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
Many terms are important, including surprising ones. In this treatise, we use the word \textit{potato}, like so:
Potato. Species of ghost native to Mexico.
% Where the above is nicely indented, offset from the rest of the paragraph, so readers can easily find it.
Therefore, we propose that potatoes be dug up and reburied in accordance with proper rites.
\end{document}
답변1
...읽기가 쉽게 찾을 수 있도록 들여쓰기가 잘 되어 있고 단락의 나머지 부분과 오프셋되어 있습니다.
enumitem
제 생각에는 환경 에 대한 의 목록 형식 지정 기능 description
이 다음과 같습니다.
\documentclass{article}
\usepackage{enumitem}
\newlist{worddefs}{description}{1}
\setlist[worddefs]{font=\sffamily\bfseries, labelindent=\parindent, leftmargin=6em, style=sameline}
\begin{document}
Many terms are important, including surprising ones. In this treatise, we use the word \textit{potato}, like so:
\begin{worddefs}
\item[Potato.] Species of ghost native to Mexico.
\item[Potato.] Species of ghost native to Mexico. Species of ghost native to Mexico.
Species of ghost native to Mexico. Species of ghost native to Mexico.
\item[Potatomato.] Species of ghost native to Mexico.
\end{worddefs}
Therefore, we propose that potatoes be dug up and reburied in accordance with proper rites.
\end{document}