Hi LaTeX users,
I'm working some more on the Typeset and View command, we are going to replace the default command that currently ships with TextMate. But I need some information. What process are TextMate's LaTeX users following for building their documents? I'm sure most of you are using bibtex, but what about other things like makeindex? Has everyone moved to a pure pdf-based process, or are some of you still using dvi/postscript? What are you using for pictures? Anything you can tell me will help.
I would also *love* example documents along with the expected output. This will aid in testing, and ensure that your particular process will be supported!
Thanks,
—Alex
Hi!
I had the same problem as described in a post from Sebastian on
2007-11-11 (http://thread.gmane.org/gmane.editors.textmate.general/
23160).
Here is my error output:
Running bibtex on Exjobb (ny).tex
Traceback (most recent call last): File "/Users/peeter/Peeterprogram/
TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/
texMate.py", line 457, in texStatus, isFatal, numErrs, numWarns =
run_bibtex(texfile=fileName) File "/Users/peeter/Peeterprogram/
TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/
texMate.py", line 71, in run_bibtex return stat,fatal,err,warn
UnboundLocalError: local variable 'stat' referenced before assignment
It seems that it had to do with the parentheses in my filename messing
up the regexes.
My solution was to change lines 71 and 72 in Textmate.app/Contents/
SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py as follows:
# auxfiles = [f for f in os.listdir('.') if re.search('.aux
$',f) > 0]
# auxfiles = [f for f in auxfiles if re.match(r'('+ basename +
r'\.aux|bu\d+\.aux)',f)]
auxfiles = [f for f in os.listdir('.') if re.search('.aux$',f)
> 0 and (f.startswith(basename) or re.match(r'bu\d+\.aux', f))]
This works, at least for me.
Or have I messed something else up in the process?
/Peeter
Hi folks,
I work on several open-source projects (VTK, ParaView, CMake...) that
follow a somewhat unusual indentation style. Instead of
if (foo)
{
bar();
}
bar();
they require
if (foo)
{
bar;
}
bar()
Getting the first curly indent right was trivial but I can't figure
out how to reduce the indentation _after_ the closing curly. When the
pattern matches decreaseIndentPattern, the current line's indentation
is reduced. What I need is for the following line to be unindented. Is
there any way to do this?
Thanks,
-berk
I am pretty sure I just pinned this down to TM. If I work in TM,
save, then command-tab to a browser, there is significant lag from the
time it will switch to the browser, or, at times, even bring up the
application tab switcher.
If I do not save, the toggle is fast, so it seems to be something to
do with leaving TM, where it is not letting me leave as fast as other
apps do.
I have tried toggling back and forth between other apps, and the
behavior is speedy. Any idea what is going on, and how to solve it?
These are simple files, single files, that have a hundred lines or so
in them, nothing complicated at all.
--
Scott * If you contact me off list replace talklists@ with scott@ *
Is the latest (cutting edge) version of textmate intended to run on a
PPC? After updating it today, textmate gives me a "You cannot open the
application "TextMate" because it is not supported on this
architecture" message on my PowerPC G5 (3.1) when I try to open it.
Kyle Johnson
Dear TextMate users,
I work with textmate 1.5.8 (1505) under Mac OS X 10.6.2. I installed the latest version of latexmk (version 4.11) and tested it in the terminal, works like a charm. I then tried to compile a .tex document with latexmk via TextMate. If I click the button "Show Latexmk.pl Messages" I can see which version of latexmk is used. It turns out that some old version is used (version 3.21j of 2 December 2007). After that I changed the variable "TM_LATEX_COMPILER" explicitly from "latexmk.pl" to "/usr/local/texlive/2009/texmf-dist/scripts/latexmk/latexmk.pl" --- still the old version is used. I have no idea where this old version is located and how I can force TextMate to use the new one. The new one is correctly installed, I can use "latexmk foo.tex" from everywhere on my system.
How can I tell TextMate to use the correct version of latexmk?
Cheers,
Marius
Hi
TM with LaTeX fails to launch skim or preview. TM works only
with "view in Texmate".
I have the same problem with a macbook and an imac intel 10.6.2
Alain Matthes
I don't have a bundle for Makefiles in my version of Textmate (1.5.8).
Makefiles are treated as plain text files.
I haven't found one listed via the GetBundles bundle. (I installed CMake,
but that doesn't appear to be it.) I've also looked through the
bundle list<http://svn.textmate.org/trunk/Bundles/>and don't see one.
Where is the Makefile bundle.
Thanks.
The following two valid PHP snippets trip up the PHP grammar in TextMate.
Mostly because of unusually nested quotes and braces:
Snippet #1:
<?php
$str = array("Foo", "Bar");
echo "Name: {$str[($str[1]) ? 1 : 0]}"; // Should echo "Name: Bar"
?>
The text "($str[1" appears highlighted as a syntax error
Snippet #2
<?php
$insert = mysql_query("INSERT INTO `catalogue` SET
`model`='{$_POST["page_row{$count}_model"]}',
`type`='{$_POST["page_row{$count}_type"]}',
`updated`=UNIX_TIMESTAMP()
;");
?>
Everything in the document after this snippet is treated as a string.
Hopefully these are simple grammar file fixes :)
Cheers,
Brian
--
View this message in context: http://old.nabble.com/PHP-Grammar---Syntax-Highlight-Bug-tp27280995p2728099…
Sent from the textmate users mailing list archive at Nabble.com.
> Allan Odgaard wrote:
>
> On 10 Jan 2010, at 14:04, Claus wrote:
>> I removed the tm_interactive_input.dylib, however TM (python bundle
>> -- run script) is still keeps running for a long time until I "stop
>> task", no error message.
>>
>> Does anybody have other ideas?
>
>
> Run ps/pstree to see if Python is running.
>
> Use ‘sample «pid»’ to sample the python process, that might give an
> idea of why it is stalling.
>
> Try minimize your script to the smallest possible that can reproduce
> the problem.
I'm having the same problem as Claus; removing tm_interactive_input.dylib did not help on my system either.
This problem can be reproduced with the following 2 lines:
import matplotlib.pyplot as plt
plt.plot([0,1])
Unfortunately, the script doesn't appear in the list of processes displayed by "ps", but it shows up as a Python process that's "not responding" in the Quit Applications menu (Command-Option-Escape) and Activity Monitor.
Claus; to answer your earlier question (off list): I'm relatively certain this issue is not related to your particular install of matplotlib. I've tried older revisions of Matplotlib (where previously, I did not observe this issue) and they now exhibit this issue.
I noticed this issue shortly after updating to TextMate r1589 (automatic "cutting-edge" update) and OS X 10.6.2 (minor version update): both around the same time. Is there a way to revert to an older revision of TextMate to see if this issue was caused by something in the update?
Also of note: A friend of mine has the same issue, but, only on his machine running 10.6---another machine runs 10.5 and does not have this issue.
-Tony