사용할 때 \usepackage {pst-barcode}
오류가 발생합니다.
\documentclass[10pt,a4paper,twoside,openany]{book}
\usepackage[spanish]{babel}
\usepackage[dvipsnames,x11names]{pstricks}% Options for xcolor
\usepackage{pst-barcode}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{pspicture}(3.5,1.2in)
\psbarcode[linecolor=red]{1613198400316}{includetext inkspread=0.1}{ean13}
\end{pspicture}
\end{document}
답변1
xcolor
다음을 통해 옵션을 전달할 수 있습니다 pstricks
.
\documentclass{article}
\usepackage[dvipsnames,x11names]{pstricks}% Options for xcolor
\usepackage{pst-barcode}
\begin{document}
\begin{pspicture}(3.5,1.2in)
\psbarcode[linecolor=red]{1234567}{includetext inkspread=0.5}{ean8}
\end{pspicture}
\end{document}
xcolor
기본적으로 자체로드됩니다.color
그리고
\psbarcode[linecolor=red]{1613198400317}{includetext inkspread=0.5}{ean13}
답변2
Pstricks
(에 의해 로드됨 pst-barcode
)은 이미 xcolor
옵션 없이 로드되었습니다. 후자를 옵션과 함께 로드하면 '옵션 충돌'이 발생합니다. 해결책은 문서 클래스 내에서 옵션을 로드하는 것으로 구성되며, 이는 패키지 중 하나가 이를 인식할 때까지 모든 후속 패키지에 이를 제안합니다.
대안: 서문을 작성하세요 \PassOptionsToPackage{selected options}{xcolor}
.