견적 목록 만들기

견적 목록 만들기

저에게는 저작자 표시와 함께 저널리즘 유형의 기사에 사용된 모든 인라인 인용문을 마지막에 나열해야 하는 사용 사례가 있습니다. 다음과 같은 것 :

START EXAMPLE Text text text "이것은 인용문입니다." person1이 말했습니다. person2에 따르면 텍스트 텍스트 텍스트는 "그리고 이것은 또 다른 것입니다." ...

인용문 목록:

"인용문입니다" Person1, Title, Organization

"그리고 이것은 또 다른 것입니다" Person2, Title, Organization

최종 예

저는 라텍스를 처음 접했고 최선의 접근 방식이 명확하지 않습니다. 나는 온라인에서 찾은 예제를 기반으로 csquote 명령(\textquote) 중 하나를 사용하여 tocloft를 작동시키려고 재빠르게 시도했습니다. 이것이 실현 가능한 접근 방식입니까, 아니면 더 건전한 다른 권장 접근 방식이 있습니까?

미리 감사드립니다

답변1

인용과 비슷한 방식으로 문제에 접근하는 것이 좋을 것 같습니다. 먼저 파일에서 인용 집합을 정의하는 것과 마찬가지로 인용 집합을 정의한 .bib다음 문서에서 원하는 인용 집합을 사용합니다.

다음은glossaries패키지. 따옴표는 \newquote이 예제에서 제공하는 사용자 정의 명령을 사용하여 정의됩니다. 예제를 단순하게 유지하기 위해 서문에만 넣었지만, 너무 많은 경우에는 별도의 .tex파일(예: quotes.tex)에 넣고 를 사용하여 해당 파일을 로드하는 것이 더 쉽습니다 \loadglsentries{quotes}.

\documentclass{article}

\usepackage{csquotes}
\usepackage{glossaries}

\makenoidxglossaries

% \newquote[options]{label}{name}{quote}{title}{organisation}
\newcommand*{\newquote}[6][]{%
 \newglossaryentry{#2}{name={#3},description={#4},%
    user1={#5},user2={#6},#1}%
}

% \usequote{label}{said}
\newcommand*{\usequote}[2]{\enquote{\glsdesc{#1},} #2 \glstext{#1}}

% Convert the first letter of the quote to upper case:
\newcommand*{\Usequote}[2]{\enquote{\Glsdesc{#1},} #2 \glstext{#1}}

\newglossarystyle{quotes}{%
  \setglossarystyle{index}%
  \renewcommand*{\glossentry}[2]{%
    \item\glsentryitem{##1}\glstarget{##1}{\enquote{\Glossentrydesc{##1}}}
    \glossentryname{##1}, \glsentryuseri{##1}, \glsentryuserii{##1}%
  }%
}
\newcommand*{\printquotes}[1][]{%
 \printnoidxglossary[sort=use,nogroupskip,style=quotes,%
   title={List of Quotes},#1]%
}

\newquote{smith1}{John Smith}{this is a quote}{President}{Smith \& co}
\newquote{doe1}{Jane Doe}{and this is another}{Galactic Ruler}{The Empire}
\newquote{smith2}{John Smith}{we retract our earlier statement}{President}{Smith \& co}

\begin{document}
Text text text \usequote{smith1}{said}.
Text text text \usequote{doe1}{according to}.
\Usequote{smith2}{said}.

\printquotes
\end{document}

목차, 상호 참조 등과 마찬가지로 문서가 최신인지 확인하려면 두 번의 실행이 필요합니다. 나는 당신이 문서의 사용 순서에 따라 인용문을 나열하기를 원한다고 가정합니다. 저는 단순화를 위해 \enquote대신 사용했지만 \textquote필요에 따라 조정할 수 있습니다.

결과 문서는 다음과 같습니다.

문서 이미지

관련 정보