약어 패키지: 소유격 처리(아포스트로피 s)

약어 패키지: 소유격 처리(아포스트로피 s)

패키지를 사용하여 소유격 형태의 두문자어를 어떻게 처리합니까 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}

FBI 연방수사국(FBI) 연방수사국(FBI)의 계획. FBI의 계획.

너가 선호한다면의 (짧은's) 그런 다음 대신 다음 정의를 사용하십시오.

\newcommand{\acposs}[1]{%
 \expandafter\ifx\csname AC@#1\endcsname\AC@used
   \acs{#1}'s%
 \else
   \aclu{#1}'s (\acs{#1}'s)%
 \fi
}

관련 정보