
현재 작성자 필드에 다음 줄을 추가하여 가져옵니다.
Author = {{\includegraphics[scale = 0.03]{bullet3}} Mosco Vicent}
하지만 자동으로 수행하고 소스에 따라 다른 아이콘을 추가하는 방법을 찾고 싶습니다. 나는 비머에서도 비슷한 일을 할 수 있다는 것을 알고 있습니다.
내 생각에 가장 좋은 방법은 사용자 정의 참고문헌 스타일을 만드는 것입니다. 나는 다음 스타일을 사용하고 있습니다 :
https://drive.google.com/file/d/1ZXw4UA_d2rbcegvGrTGuMLuAdsiGE8XY/view?usp=sharing
누군가 나에게 해결책을 안내해 줄 수 있습니까?
답변1
참고문헌 스타일 파일을 편집하여 이 작업을 수행할 수 있습니다 .bst
. 찾기 및 바꾸기
FUNCTION {start.entry}
{ newline$
"\bibitem{" write$
cite$ write$
"}" write$
newline$
""
initialize.prev.this.status
}
에 의해
FUNCTION {start.entry}
{ newline$
"\bibitem{" write$
cite$ write$
"}" "\faBook\ " * write$
newline$
""
initialize.prev.this.status
}
\usepackage{fontawesome}
프리앰블에 패키지를 포함하고 파일을 컴파일하십시오. 출력은 다음과 같아야 합니다.
위의 코드 대신 로드한 후 색상을 변경하여 \textcolor{blue}{\faBook}
(여기서는 파란색이며 모든 색상을 사용할 수 있음) 사용할 수 있습니다. 즉\usepackage{xcolor}
\faBook
FUNCTION {start.entry}
{ newline$
"\bibitem{" write$
cite$ write$
"}" "\textcolor{blue}{\faBook}\ " * write$
newline$
""
initialize.prev.this.status
}
여기 아이콘 목록이 있습니다패키지 에서 사용할 수 있습니다 awesome
. (내 예에서는 입니다 \faBook
. 사용할 수도 있습니다 \faNewspaperO
.) 당신은 또한 사용할 수 있습니다awesome5
이는 더 새롭고 awesome
패키지보다 더 많은 아이콘을 가지고 있습니다.
업데이트:
다음을 사용하여 이미지를 삽입할 수 있습니다 \includegraphics
. (로드하는 것을 잊지 마세요 \usepackage{graphicx}
)
FUNCTION {start.entry}
{ newline$
"\bibitem{" write$
cite$ write$
"}" "\includegraphics[width=7pt, height=10pt]{Image-root}" * write$
newline$
""
initialize.prev.this.status
}
Image-root
위에 적절한 항목을 추가한 후 출력은 다음과 같아야 합니다.
아니면 파일을 편집하지 않고도 할 수 있습니다 .bst
. 서문에 다음을 추가하면 됩니다.앤드류 스완의 답변)
\makeatletter
\def\@bibitem#1{\item\if@filesw \immediate\write\@auxout
{\string\bibcite{#1}{\value{\@listctr}}}\fi\ignorespaces}
\def\@biblabel#1{[#1] \includegraphics[width=7pt, height=10pt]{image-root}}
\makeatother