.ins 파일에서 내 개인 트리에 패키지 설치

.ins 파일에서 내 개인 트리에 패키지 설치

최근에 문서 클래스를 만들었고 아직 DTX 파일로 마무리하지 못했습니다. 다음과 같은 설치 파일이 있습니다.

%% 
%% Licence info
%% 

\input docstrip.tex
\keepsilent

\usedir{tex/latex/bil-CV}

\preamble

This is a generated file licenced under the MIT License:
The MIT License (MIT)…blah blah blah...

\endpreamble

\generate{\file{bil-CV.cls}{\from{bil-CV.dtx}{class}}}


\obeyspaces
\Msg{*********************************************************}
\Msg{*}
\Msg{* To finish the installation you have to move the}
\Msg{* following file into a directory searched by TeX:}
\Msg{*}
\Msg{* \space\space bil-CV.cls}
\Msg{*}
\Msg{* To produce the documentation run the file bil-CV.dtx} 
\Msg{* through LaTeX.}
\Msg{*}
\Msg{* Happy TeXing!} 
\Msg{*********************************************************}

\endbatchfile

을 수행하여 이를 실행 latex bil-CV.ins하고 다음과 같은 출력을 얻습니다.

This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
(./bil-CV.ins
LaTeX2e <2014/05/01>
Babel <3.9k> and hyphenation patterns for 78 languages loaded.
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/docstrip.tex
Utility: `docstrip' 2.5d <2005/07/29>
English documentation    <2014/04/19>

**********************************************************
* This program converts documented macro-files into fast *
* loadable files by stripping off (nearly) all comments! *
**********************************************************

********************************************************
* No Configuration file found, using default settings. *
********************************************************

)

Generating file(s) ./bil-CV.cls 

Processing file bil-CV.dtx (class) -> bil-CV.cls
Lines  processed: 407
Comments removed: 262
Comments  passed: 9
Codelines passed: 130

*********************************************************
*
* To finish the installation you have to move the
* following file into a directory searched by TeX:
*
*    bil-CV.cls
*
* To produce the documentation run the file bil-CV.dtx
* through LaTeX.
*
* Happy TeXing!
*********************************************************
 )
No pages of output.
Transcript written on bil-CV.log.

을 지정했는데 \usedir{tex/latex/bil-CV}클래스 파일이 CWD에 생성되고 ins 파일 ~/Library/texmf/tex/latex/bil-CV에 지정된 것과 다른 이유는 무엇입니까?/usr/local/texlive/2014/texmf.cnf

답변1

에 자세히 설명된 대로DocStrip 매뉴얼, DocStrip의 디자인은 \BaseDirectory(TeX는 어디에 설치하려는지 알 수 없기 때문에) 설정하고 ( 접근 TDS 구조에 대한 라인 \UseTDS매핑을 활성화하기 위해 ) 예상되는 것과 같습니다. 이러한 줄은 파일 자체 보다는 파일에 \usedir들어갈 가능성이 가장 높습니다 .docstrip.cfg.ins

주석에서 언급했듯이 최신 TeX 시스템은 보안상의 이유로 현재 디렉토리 위의 디렉토리에 쓰기를 허용하지 않습니다. (이것은 변경될 수 있지만 전혀 권장되지 않습니다.) TeX 및 DocStrip은 디렉토리를 만들 수 없으므로 구조도 기존에 있어야 합니다. 따라서 DocStrip의 'TDS로 추출' 기능은 오늘날에는 사용되지 않는 역사적인 아이디어로 가장 잘 간주됩니다. DocStrip을 사용하여 로컬 트리를 채우는 것보다 더 유용한 접근 방식은 TDS 스타일 zip을 만들고 이를 사용하는 것입니다. 이 프로세스에 도움이 되는 다양한 스크립트가 있습니다.

관련 정보