Ubuntu에 tcolorbox 패키지를 설치하는 방법을 알아내는 데 문제가 있습니다. CTAN 저장소 에서 .tds.zip 파일을 다운로드 했지만이 아카이브에는 스크립트 make
도 없습니다 install
...
README 파일에서 저자는 다음과 같이 제안합니다.
tcolorbox.tds.zip
CTAN 의 내용을 로컬 TeX 파일 트리로 복사합니다 .
그래서 나는 터미널에서 cp 명령을 생각한 올바른 위치에 파일을 복사하는 쉬운 방법이 있다고 생각했지만 실제로는 알 수 없었습니다.
좀 더 정확하게 말씀 드리겠습니다. 아카이브는 두 개의 긴 브랜치로 구성된 디렉토리 구조를 가지고 있으며 각 브랜치의 끝에는 다음과 같은 파일 묶음이 있습니다.
tcolotbox.tds.zip
-----> doc / latex / tcolorbox / (첫 번째 파일 묶음) *
-----> tex / latex / tcolorbox / (두 번째 파일 묶음) *
다음 그림에서 볼 수 있습니다 (내 아카이브 관리자 창의 스크린 샷). 첫 번째 분기의 끝에있는 파일은 내 TeX 파일 트리의 한 폴더로 이동하고 두 번째는 다른 폴더로 이동해야합니다.
(이 시점에서 명확하지 않다면 CTAN에서 아카이브를 다운로드하여 살펴 보시겠습니까? : D)
그래서 제 질문은 :
Is there a way to copy these files to the right places in my system, following their directory structure?
(Since it seems they are organized to guide the program that will copy them, with the folders inside the archive having the names of the folders that should be somewhere in my system, right?)
Thank you all so much!
In my system (Ubuntu 14.04 + texlive), this package is under the main directories of texlive
in
/usr/share/doc/texlive-doc/latex/tcolorbox
/usr/share/texlive/texmf-dist/tex/latex/tcolorbox
Usually the packages styles are under /usr/share/texlive/texmf-dist/tex/latex/PACKAGEDIR
and the doc below /usr/share/doc/texlive-doc/latex/PACKAGEDIR
.
If you have a different Latex/Linux distribution the directory may be different, but not its structure.
unzip it unzip tcolorbox.tds.zip
in a temporary directory
.
├── doc
│ └── latex
│ └── tcolorbox
└── tex
└── latex
└── tcolorbox
Then copy the 2 directories in the relative paths
sudo cp -rpi ./doc/latex/tcolorbox /usr/share/doc/texlive-doc/latex/tcolorbox
sudo cp -rpi ./tex/latex/tcolorbox /usr/share/texlive/texmf-dist/tex/latex/tcolorbox
Notes:
./sty
) you can set an environment variable TEXINPUTS=".:./sty:"
[1] then run pdflatex.sudo apt-get install ...
or with tlmgr package_name
or with tlmgr --gui
... )You should know your latex version and search for the path in which it is installed on your system in the man or in the documentation. BTW to find the main directory where the packages are installed you can play a little with Linux ...
locate *.sty| awk '{print "dirname $(dirname "$1")"}'| sh | sort | uniq -c|sort -n
높은 확률로 더 높은 번호를 가진 항목이 경로입니다. | grep doc
문서 하나를 증거로 사용하려면 ...
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다