패키지를 사용하여 소유격 형태의 두문자어를 어떻게 처리합니까 acronym
?
약어 정의:
\begin{acronym}
\acro{FBI}{Federal Bureau of Investigation}
\end{acronym}
용법:
The \ac{FBI}'s plan. The \ac{FBI}'s plan.
결과:
The Federal Bureau of Investigation (FBI)'s plan. The FBI's plan.
짧은 형식은 맞지만 긴 형식은 잘못되었습니다.
답변1
\acposs
다음은 확장할 명령을 정의하는 방법입니다 .긴의 (짧은) 처음 사용 시 및짧은다음 사용 예정:
\documentclass{article}
\usepackage{acronym}
\makeatletter
\newcommand{\acposs}[1]{%
\expandafter\ifx\csname AC@\AC@prefix#1\endcsname\AC@used
\acs{#1}'s%
\else
\aclu{#1}'s (\acs{#1})%
\fi
}
\makeatother
\begin{document}
\begin{acronym}
\acro{FBI}{Federal Bureau of Investigation}
\end{acronym}
The \acposs{FBI} plan. The \acposs{FBI} plan.
\end{document}
너가 선호한다면긴의 (짧은's) 그런 다음 대신 다음 정의를 사용하십시오.
\newcommand{\acposs}[1]{%
\expandafter\ifx\csname AC@#1\endcsname\AC@used
\acs{#1}'s%
\else
\aclu{#1}'s (\acs{#1}'s)%
\fi
}