[OS X TeX] Where does TeX look for files?

Alain Schremmer schremmer.alain at gmail.com
Mon Apr 19 03:49:12 CEST 2010


On Apr 18, 2010, at 9:12 PM, Herbert Schulz wrote:

> Just for my information... why not just put the sty files in the  
> texmf tree rather than scatter them around who knows where?

I bet you are going to regret having asked the question before you  
are done with this cockamamy stuff.

Gleeful regards
--schremmer

I use style files for a lot of things and I need to change them very  
often and I need to back them up along with the rest in the folder  
RAFv4 where they all are in a folder called ... StyleSheets.

Here is an example:

I am use arrayjob to keep a list of "checkable items" for each  
chapter. Here is how it works

First, say for Chapter VIII, in the folder RAFv4- 
CheckableItemsListsV1-1, I have 381.sty:

%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
\newarray\CCCLXXXI%381
\readarray{CCCLXXXI}%Affine Functions: Local Analysis
{%begin array
%381-1
Gvn Glob I-O Rule, LocRule nr $\infty$--->
&%381-2
Gvn Glob I-O Rule, LocGraph nr $\infty$
.....
-
&%381-50
-
}%end array
%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Then, in the folder CheckableItems-contents, I have file 381:

%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
%!TEX root = ../CheckableItems-controls/\jobname.tex
%================================================
	%Row			Chapter VIII
			\textbf{8}
		&	
		&	\textbf{Affine Functions: Loc Analysis}
		&	
		&	
		&	
		&	
		&	
		\\
\hhline{--------}%====================================
	%Row			Chapter VIII
			\finkbase
		&	1
		&	\CCCLXXXI(1)
		&	\checkmark
		&	\checkmark
		&	
		&	
		&	
		\\
%\hhline{~~~------}
	%Row			Chapter VIII
			\finkbase
		&	2
		&	\CCCLXXXI(2)
		&	\checkmark
		&	\checkmark
		&	
		&	
		&	
		\\
.....
	%Row			Chapter VIII
			\finkbase
		&	50
		&	\CCCLXXXI(50)
		&	
		&	
		&	
		&	
		&	
		\\
		\midrule
%================================================
%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

which, together with file 381 in folder CheckableItems-controls:

%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
\documentclass[11pt]{book}
	\usepackage{RAFv4-PreambleV1-1}
	\usepackage{arrayjob}%	calc
	\usepackage{RAFv4-CheckableItemsListsV1-1/\jobname}
% ssssssssss
\begin{document}
	\setlength\LTleft{-20mm}
	\begin{longtable}{|c|c|l|c|c|c|c|c|}
		\toprule
	%Row0
			Ch
		&	File
		&	Description
		&	Qz
		&	Hw
		&	Rt
		&	Rs
		&	Ex
		\\
		\midrule
\endfirsthead
		\midrule
	%Row0
			Ch
		&	File
		&	Description
		&	Qz
		&	Hw
		&	Rt
		&	Rs
		&	Ex
		\\
		\midrule
\endhead
		\midrule
		\multicolumn{8}{r}{\emph{Continued on next page}}
\endfoot
		\bottomrule
\endlastfoot
%================================================
\input{../CheckableItems-contents/\jobname}
%================================================
	\end{longtable}
\end{document}
%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

gives

%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 381forSchulz.pdf
Type: application/pdf
Size: 18749 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20100418/1cbbb474/attachment.pdf>
-------------- next part --------------


%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

By the way, the reason arrayjob.sty has to be in each control file  
instead of together with the other packages is that it is  
incompatible with

%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
	\documentclass[11pt]{book}
	\usepackage{amsmath}
	\usepackage{arrayjob}
		\begin{document}
			$
				x
					\begin{cases}
						y
						\\
						z
					\end{cases}
			$

		\end{document}
%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

so that the rest of the magnum opus should not see it.




















More information about the macostex-archives mailing list