내 목적에 완벽하게 작동하는 @mafp의 답변에 제공된 용어집 형식을 가지고 있습니다.
그러나 논문인 내 기본 tex 파일에 이 솔루션을 추가하면 목록이 인쇄되는 페이지에서 항상 목록의 모양에 대한 링크를 얻게 됩니다. 이 첫 번째 항목을 제거하는 방법이 있습니까?
관련 항목에서도 동일한 문제가 나타났습니다.질문@Max이지만 해결책이 없습니다.
@mafp가 제공한 실제 예제는 다음과 같습니다.
\documentclass[a4paper,10pt]{article}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=cyan,
}
\usepackage{glossaries}
\makeglossaries
\renewcommand{\glossarysection}[2][]{} % not to show word glossary
\newglossaryentry{A}{%
name={foo},%
description={bar},%
%user1={cm}%
}
\newglossaryentry{B}{%
name={AAPL},%
description={apples},%
%user1={box}%
}
\newglossaryentry{C}{%
name={BTR},%
description={books to read},%
%user1={LoC}%
}
\newglossaryentry{D}{%
name={BTRTIO},%
description={books to read that I own},%
%user1={shelf},%
%parent={C}
}
\newglossarystyle{aiaostyle}{%
% put the glossary in a longtable environment:
\renewenvironment{theglossary}%
{\begin{longtable}{lp{\glsdescwidth}cp{\glspagelistwidth}}}%
{\end{longtable}}%
% Set the table’s header: title row
\renewcommand*{\glossaryheader}{%
\bfseries Term & \bfseries Description &
\bfseries Units & \bfseries Page List
\\\endhead}%
% No table header:
%\renewcommand*{\glossaryheader}{}%
% No heading between groups:
\renewcommand*{\glsgroupheading}[1]{}%
% Main (level 0) entries displayed in a row optionally numbered:
\renewcommand*{\glossaryentryfield}[5]{%
\glstarget{##1}{##2}% Name
& ##3% Description
& \glsentryuseri{##1}% Units
& ##5% Page list
\\% end of row
}%
% Similarly for sub-entries (no sub-entry numbers):
\renewcommand*{\glossarysubentryfield}[6]{%
% ignoring first argument (sub-level)
\glstarget{##2}{##3}% Name
& ##4% Description
& \glsentryuseri{##2}% Units
& ##6% Page list
\\% end of row
}%
% Nothing between groups:
\renewcommand*{\glsgroupskip}{}%
}
\begin{document}
\null
\glsaddall
\glossarystyle{aiaostyle}
\setlength{\glsdescwidth}{0.5\textwidth}
\setlength{\glspagelistwidth}{0.1\textwidth}
\printglossaries
\newpage
test entry \gls{A}.
\end{document}
새로운 질문을 작성해서 미안하지만 이것이 TeX.SE
.
답변1
\glsadd{
상표}
항목의 번호 목록에 위치를 자동으로 추가하는 색인 명령입니다. \glsaddall
정의된 모든 항목을 반복하고 \glsadd
각 항목에 대해 사용합니다. nonumberlist
문서에서 항목을 사용했는지 여부에 관계없이(예: 명령 사용 \gls
) 용어집의 모든 항목을 자동으로 포함하는 옵션 과 함께 사용하도록 설계되었습니다 . 번호 목록이 표시되지 않으면 \glsaddall
모든 항목이 문서에서 \glsaddall
사용된 위치에 해당하는 추가 위치를 갖게 됩니다.
번호 목록을 원하고 문서에서 사용되었는지 여부에 관계없이 정의된 모든 항목을 포함하려면 다음을 입력할 수 있습니다.\glsaddallunused
문서 마지막에사용되지 않은 나머지 항목을 추가합니다.