[TxMt] PSTricks problem with LaTeX bundle

Alain Matthes alain.matthes at mac.com
Sat Dec 9 09:41:49 UTC 2006


Le 9 déc. 06 à 10:03, Aaron Jacobs a écrit :

>> I know anything about `latexmk.pl`, but the real problem it's the
>> command
>>   Typset and VieW, we have the only options : xetex and pdflatex  
>> perhaps
>>   latex it's important for some users.
>
> I'm sorry, I don't really understand what you are saying here.  If
> it's that `latex` isn't an option then that's not the case, because it
> *is* appropriately used if `\usepackage{pstricks}` is found in the
> document.  The problem is that this is broken by using `latexmk.pl` as
> your compiler, which I want to do so that I don't have to run BibTeX
> by hand.
>
> My patch fixes this; I'm just trying to find someone who will commit
> it (or another modification that fixes the same problem).
>


In Typset & view script :

# Set up TeX compiler, fallback to xelatex if document indicates it
if grep -Esq '\\usepackage{.*(xunicode|fontspec)|program=xelatex' "$M"
	then DEF_TEX=xelatex
	else DEF_TEX=pdflatex
fi
TEX=${TM_LATEX_COMPILER:-$DEF_TEX}

also if need to work latex , i prefer to make a new script but you  
can use
perhaps shell variable !

look at this old mail


"I don't know much about postscript drawing, but is it possible that it
wouldn't work because of TextMate using pdflatex instead of plain latex?

In that case you might want to play around with the Shell variable TEX
in TextMate. You should try setting it to "latexmk.pl"[1] or "latex".
This will cause TextMate to use that command as the latex command
(latexmk.pl is included in the distribution of TextMate).

To set that variable, go to TextMate's preferences, select the Advanced
tab and then click on the Shell Variables button. Changes take effect
immediately."


Alain


More information about the textmate mailing list