I think you need to unzip the file. The gzip application unzip the file directory's tree as you see it in the preview. Then you can copy paste from nautilus (ubuntu file manager) or use the terminal. Oh and check if you have write access to the directory you are writting to.
Как скопировать файлы из архива в мою систему, следуя структуре каталогов?
У меня проблемы с выяснением того, как установить пакет tcolorbox в мою Ubuntu. Я скачал файл .tds.zip из его репозитория CTAN, но в этом архиве нет make
ни install
скрипта ...
В файле README авторы делают предложение:
Скопируйте содержимое
tcolorbox.tds.zip
из CTAN в локальное дерево файлов TeX.
Поэтому я подумал, что есть простой способ скопировать файлы в нужные места, думал команда cp из терминала, но я просто не мог понять это ...
Позвольте мне быть более точным. Архив имеет структуру каталогов, состоящую из двух длинных веток, с кучей файлов, висящих в конце каждой ветви, примерно так:
tcolotbox.tds.zip
-----> doc / latex / tcolorbox / (первая группа файлов) *
-----> tex / latex / tcolorbox / (вторая группа файлов) *
который вы можете увидеть на следующем рисунке (это скриншот из моего окна Archive Manager). Файлы в конце первой ветви должны идти в одну папку где-то в моем дереве файлов TeX, а вторая группа - в другую папку где-то еще.
(Если я не совсем уверен в этом вопросе, не могли бы вы скачать архив с CTAN и посмотреть на него?: D)
Итак, мой вопрос:
Есть ли способ скопировать эти файлы в нужные места в моей системе, следуя их структуре каталогов?
(Кажется, они организованы так, чтобы руководить программой, которая будет их копировать, а папки внутри архива имеют имена папок, которые должны быть где-то в моей системе, верно?)
Большое спасибо всем вам!
2 ответа на вопрос
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.
- Download the package
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:
- If you put the style in the directory of your file it should work (only for that directory, it can be cosy if you work on many environment and you cannot set all, if you give the file to someone in this conditions, if you need to use a specific version different from the installed one).
- If you put in a different directory (e.g.
./sty
) you can set an environment variableTEXINPUTS=".:./sty:"
[1] then run pdflatex. - Usually you can add packages (or bunch of packages) from the system (e.g. in Ubuntu with
sudo apt-get install ...
or withtlmgr package_name
or withtlmgr --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 ''| sh | sort | uniq -c|sort -n
With high probability the entry with the higher number is your path. Use a
| grep doc
to put in evidence the doc one...
Похожие вопросы
-
9
В чем разница между командами "su -s" и "sudo -s"?
-
4
Требуется хороший бесплатный образ Ubuntu Server VMWare
-
4
Каковы различия между основными дистрибутивами Linux? Я замечу?
-
-
2
Ограничить использование процессора для Flash в Firefox?
-
2
Как мне заставить мой микрофон работать под Debian GNOME?
-
2
Конки установки - образцы / идеи?
-
3
Каковы различия между оконными менеджерами Linux?
-
2
ThunderBird / Синхронизация освещения с SE k770i
-
4
Файловая система Linux
-
6
Полноэкранная медленная вспышка в KDE 4