Как я могу связаться с локальным файлом в ЛАТЕКСНОМ документе, набранном с PDFlatex на Mac OS X?

Когда я пытаюсь встроить ссылку на локальный файл в ЛАТЕКСНОМ документе через \href{file://./path-to-file}{filename} это набирается как удаленный канал, таким образом, http:// предварительно ожидается. Как я могу связаться с локальным файлом с путем относительно местоположения произведенного PDF?

1
задан 20.02.2011, 01:40

1 ответ

Вы попробовали \include{}команда? Как \include{chapters/filename} можно включать .tex файл. Но не пишите .tex в команде. В сети StackExchange существует страница, которая является только о Техасе.

Мой основной проект TEX похож на это:

Мой projectname.tex

\input{header}
\begin{document}
\hyphenation{}          % Words where LaTex-hyphenation fails 
\maketitle          % Creates a page with the title
\newpage
%  \onehalfspacing              % This uses the package setspace
\tableofcontents        % This creates the table of contents
\include{chapter/acronym}   % Acronyms i use
\include{chapter/chapter_1}
% ...
\include{chapter/chapter_n}

\include{chapter/glossary}  % My glossary
\bibliography{bibliography/bibliography}  % Literature database
\end{document}

chapter_x.tex похож на это:

\section[section short title]{section title}

И мой header.tex похож на это:

%
% Document preamble
%
  \documentclass[  %
    12pt,          % default font size
    a4paper,       % papersize
    twoside,       % printout will be two sided
%    txt,           % 
    ]{article}

  \usepackage{ulem}          % all words have the underline at the same height \uline statt \underline

  \usepackage[     %
    T1             % T1 font has european sigs
    ]{fontenc}

  \usepackage[     %
    utf8           % Depends on the operating system
    ]{inputenc}    %

  \usepackage[     %
    dvips,         %
    usenames       % allows to use blue yellow etc for font colors
    ]{color}

  \usepackage{hyperref} % allows hyperlings in the table of contents

  \usepackage{amsmath} % math stuff
  \usepackage{amssymb}  % even more math stuff
  \usepackage{extpfeil}
  \usepackage[     % 
    style=long,   % 
%    toc=true,      % Boolean; if true the glossary will be shown in the table of contents
    hypertoc=true, % Hyperlinks in the glossary
    hyper=true,    % 
    number=none,   % 
    acronym=true   % 
    ]{glossary}
  \setacronymnamefmt{\gloshort}

  \usepackage{makeidx}
%  \usepackage{xymtexps}
%  \usepackage{cite} % Used for citing
  \usepackage{bibgerm}
  \usepackage[numbers,square]{natbib}
  \bibliographystyle{dinat}
  \usepackage{textcomp} % Allows to set a ° for example
  \usepackage[     % 
    german         % You may not need this *g*
    ]{babel}

  \usepackage{setspace} % allows to easily change the space between lines
  \usepackage{pstricks} % Used to create graphs
  \usepackage{pst-plot} % Used to create graphs

  \renewcommand{\acronymname}{Abkürzungsverzeichnis} % Sets the name for acronymepage (I'm from germany)
  \makeindex
  \makeacronym
  \makeglossary


  \author{Autor name}
  \title{Document title}
  \date{\copyright\ \today}

Эта установка работы, хорошие для меня.

Извините за опечатки в комментариях файлов. Я просто перевел свои комментарии из немецкого языка, и я слишком ленив для фиксации их g

0
ответ дан 12.12.2019, 08:36

Теги

Похожие вопросы