[OS X TeX] citep and citet did not work in MacOSX-TeXShop

Danny Baillie dbaillie at physics.otago.ac.nz
Fri Feb 27 06:36:03 CET 2009


Thank you very much for your replies.

On 27/02/2009, at 4:44 AM, Herbert Schulz wrote:

      "Could you send me a small tex source file and processing  
instructions (if done manually) so I can test?"

Yes. I almost gave up, because the problem went away when I got below  
2000 lines of latex, but after all day I finally found the following  
small example. I'll email the three files directly to your email  
address in case you don't use matlab:

In matlab:
     x=linspace(0,1,10^5);
     plot(x,x,'x',x,x,'xr')
     laprint(1,'lmkt')

laprint (v 3.16) creates two files lmkt.eps and lmkt.tex. laprint is a  
free download from http://www.mathworks.de/matlabcentral/fileexchange/4638

Then in latex:

%%!TEX TS-program = latexmk
\documentclass[12pt]{report}
\usepackage{pstricks}
\usepackage{psfrag}
\usepackage{graphicx}

\begin{document}
   \begin{figure}  \input{lmkt.tex}  \caption{}  \end{figure}   
\clearpage
   \begin{figure}  \input{lmkt.tex}  \caption{}  \end{figure}   
\clearpage
   \begin{figure}  \input{lmkt.tex}  \caption{}  \end{figure}   
\clearpage
   \begin{figure}  \input{lmkt.tex}  \caption{}  \end{figure}   
\clearpage
   \begin{figure}  \input{lmkt.tex}  \caption{}  \end{figure}   
\clearpage
\end{document}

It doesn't get into it's loop if:
*  there are less than five \inputs
*  the \inputs aren't in floats
*  there are no captions
*  the number of x points in the linspace is 1000
*  there is only one line in the plot

      "What are the processing steps you use to go from pfg->eps? I'll  
then be able to tell you the lines to add to the latexmkrc."

I just \input the .tex file that laprint made which has an  
\includegraphics to bring in a .eps in it, a \psfragscanon and a bunch  
of \psfrag. The automatically generated lmkt.tex is:

\begin{psfrags}
\psfragscanon
\psfrag{x01}[t][t]{0}
\psfrag{x02}[t][t]{0.2}
\psfrag{x03}[t][t]{0.4}
\psfrag{x04}[t][t]{0.6}
\psfrag{x05}[t][t]{0.8}
\psfrag{x06}[t][t]{1}
\psfrag{v01}[r][r]{0}
\psfrag{v02}[r][r]{0.1}
\psfrag{v03}[r][r]{0.2}
\psfrag{v04}[r][r]{0.3}
\psfrag{v05}[r][r]{0.4}
\psfrag{v06}[r][r]{0.5}
\psfrag{v07}[r][r]{0.6}
\psfrag{v08}[r][r]{0.7}
\psfrag{v09}[r][r]{0.8}
\psfrag{v10}[r][r]{0.9}
\psfrag{v11}[r][r]{1}
\resizebox{12cm}{!}{\includegraphics{lmkt.eps}}
\end{psfrags}

I process by just doing typeset by typing Cmd-T within TexShop which  
calls latexmk due to the first line in my file above.

      "Are you sure its the .pfg file that is causing the problem?"

No, I'm not sure. In fact I think it is unlikely since it seems to be  
always zero kb, and I'm not sure why it's even checked by latexmk (not  
one of the generated_exts in the perl script and not pushed). I only  
suggest that because of the following output:

   Latexmk: File "./lmktest.aux" has not changed, so it is valid
   Latexmk: File './lmktest.pfg' changed during run.  I must rerun latex
   Latexmk: Absolute maximum runs of latex reached without finding  
stable source files

I'm using TeXShop Version 2.25 and latexmk version 3.08n.

Thanks,
Danny.




More information about the macostex-archives mailing list