В случаях как CentOS фактическая версия обычно помещается в /etc/*elease
.
cat /etc/*elease
предоставленный этот файл обычно содержит версию всей ОС минус ядро (так как можно выбрать, чтобы загрузиться). Этот файл будет иметь ту же информацию как/etc/issue, но с CentOS вместо Redhat
Это взято полностью от @Herbert, отвечающего на очень похожий вопрос на TeX StackExchange:
Добавление Оглавления к существующему PDF
используйте пакет pdfpages
и затем:
\documentclass{article}
\usepackage{pdfpages}
\usepackage{hyperref}
\begin{document}
\tableofcontents
\clearpage\phantomsection
\addcontentsline{toc}{section}{The first section name}% or chapter
\includepdf[pages={1-10},linktodoc,linktodocfit=/Fit]{texte/dtk/dtk11-1/komoedie.pdf}
\clearpage\phantomsection
\addcontentsline{toc}{section}{The second section name}% or chapter
\includepdf[pages={11-19},linktodoc,linktodocfit=/Fit]{texte/dtk/dtk11-1/komoedie.pdf}
\clearpage\phantomsection
\addcontentsline{toc}{section}{The third section name}% or chapter
\includepdf[pages={20-29},linktodoc,linktodocfit=/Fit]{texte/dtk/dtk11-1/komoedie.pdf}
\clearpage\phantomsection
\addcontentsline{toc}{section}{The forth section name}% or chapter
\includepdf[pages={21-39},linktodoc,linktodocfit=/Fit]{texte/dtk/dtk11-1/komoedie.pdf}
\end{document}