Hi all, I'm a Textmate newcomer. I'm using it to write my dissertation
in Latex. I ditched TexShop and I really love Textmate. I've watched
the video tutorial, read the documentation and have everything setup
and working. I have a master file and the compilation works
flawlessly.
The one thing I haven't been able to use is the \ref{} and \cite{}
completion. I have a bib file linked to the master file and my
bibliography shows fine when I compile the document. I just can't get
completion to work. Same thing with \ref{}, I added colon (:) to the
set of word characters but nothing. When I'm in a \ref{} or \cite{}
and press escape, nothing happens, I press option-escape and nothing
happens. Type the first few letters and press escape, nothing. If I'm
outside of \ref{} or \cite{} and type eq: and then escape I DO get
completion to work but not if I'm inside of the {}!!!!
If I'm anywhere outside an {} and press option-escape I get:
Label based on current word.. 1
Citation based on current work... 2
but if I choose either I get a crosshair pointer, what is this for?
I'm running Textmate version 1.5.4 (1360) and both the Lattex bundle
and support folder are the latest from SVN. Mac os X 10.4.8.
Thanks for your help,
Andres
--
Andres Gonzalez-Mancera
Biofluid Mechanics Lab
Department of Mechanical Engineering
University of Maryland, Baltimore County
andres.gonzalez(a)umbc.edu
410-455-3347
Hi!
I'm behind a proxy here, and I'd like to use the blogging bundle.
Unfortunately, there's not much of information on this in the
internet, so could someone here help me out?
My favourised solution would be that TM takes over the system proxy
out of OS X's "Location"s. But a hint on how to set the proxy via env
would help, too :-)
TIA
André
Hello
When I choose from the bundle Latex > Edit Configuration File
The in TextMate opening file is rather confusing. When I open this file
in Proprety List Editor ists clear, but in TextMate its rather cryptic ...
Is there something wring with my configuration, or is that normal. Also
I dont know, how to actually use this file.
Thanks
David
I'm trying to create a bundle command that will compile a Flex (.mxml)
file using fcsh (the flex compiler shell
http://labs.adobe.com/wiki/index.php/Flex_Compiler_Shell) unlike the
mxmlc compiler fcsh keeps things in memory so it's much much faster.
Long story short to use the fcsh compiler you would open up the Terminal
and run
$ fcsh
which launches the compiler, then you compile the mxml file as you
normally would
(fcsh) mxmlc /pathto/my.mxml
that mxml file gets assigned an ID (say '1'), from then on you use the
command
(fcsh) compile 1
I can get fcsh to run from a bundle command, but how I can I have it
wait to launch then run 'mxmlc /pathto/my.mxml' the first time but then
'compile 1' thereafter? (All within the original Terminal window). If
all three steps together are impossible, could I have it just run
'compile 1' in a Terminal window in which I've manually run steps 1 and 2?
thanks!
The macro described here has a few oddities.
http://comox.textdrive.com/pipermail/textmate/2005-October/006444.html
<quote>
1) move to beginning of line (ctrl A)
2) regexp search for: (?=\S|$)
</quote>
Lets say '#' indicates where the cursor is.
When I press Home on the following line..
@implementation App#Controller
Then the cursor is placed between '@' and 'i'.
When I press Home on the following line..
x -(IBAction)te#st:(id)sender {
Then the cursor is placed just before '-'.
Pressing home on an empty line then the cursor is
placed on the following line.
Is there a better smart-home macro?
preferable a smart-home macro that can toggle
between line-begin and text-begin.
--
Simon Strandgaard
http://opcoders.com/
Hello all.
I have been looking at Textmate and bluntly, have been blown away by the
balance it has gotten between a really narrow scope that is done really
really really well.
For example, "wrap each line" bundle command is just majic! I can't think
how many times I have had to do this by hand in Dreamweaver!
But I have a question that I am sure someone else has solved that I have not
found a solution for on the web.
That is, how do you integrate Textmate, with SVN and also manage sites?
Now, before ou just hit reply and say "SVNX" let me explain...
Dreamweaver has a nice feature, that is, it knows about all the files in the
site. if you change the location of a
file, change the name of a directory or the name of the file itself within
the site, it will run back through the entire site and update every link to
that file.
This is especially useful when you are re-coding sites and bringing them up
to the CSS age.
The problem with this, is if you do it, SVN doesn't see it and SVN then
complains about missing file X and added file Y when in fact it is a simpel
rename X to Y - the end result of this is polution orphans in the SVN
database (not a huge problem, unless you are using huge files)
Conversly, if you do the move from SVN (svn rename big_picture.jpg
little_picture.jpg) then Dreamweaver doesn't know about it and can't find
those 101 references to big_picture.jpg that just got moved (of course you
can do it with a find/replace, but this does not handle relative links).
One obvious solution is move it with SVN, then do a find / replace in
textmate.
But that doesn't handle relative links
(../../../img/myimages/little_picture.jpg being the same as
../myimages/little_picture.jpg)
So how do you do it? I think my answer lies in regex.....
Does anyone have a solution out there to this particular problem?
Regards
Mikel
Hi there,
today, I was doing the next step in my investigation of why
TextMate's Blogging Bundle doesn't really work together with
Serendipity. This time, I was after the strange effect around the
Date header: Whenever that header is present in the document, it
causes s9y to set the creation date to the beginning of the epoch.
Aside the fact that it changes the creation date in s9y which is not
visible anywhere in the tool besides in the sorting order of entries,
which is a flaw in s9y (it's impossible to change the creation date
via s9y's interface except by... well creating the entry), this looks
like a bug in MovableType actually.
Don't ask. Read on.
dateCreated is supposed to be passed around as dateTime.iso8601 which
in turn is defined as <year><month><day>T<hour>:<minute>:<second>
(time in GMT). This is what s9y uses and this is what the rest of the
world uses.
Except MT, that is.
Even though I searched, I found no clear definition of how the date
must be formated. In one piece of their sample code, I found this
though:
<member>
<name>dateCreated</name>
<value>
<dateTime.iso8601>
2005-12-05T21:38:47Z</dateTime.iso8601>
</value>
</member>
.. which is wrong (note the dashes in the date).
The blogging bundle defaults to the mt-mode and tries to recreate
this flawed format (parse_post in blogging.rb - I wonder what the
other T at the end does though) which in turn causes s9y to fail to
parse the date correctly and set the time stamp to 0 (which isn't
right thing to do, but I'll report that to their forum).
Manually setting TM_BLOG_MODE to s9y for example fixes the date
problem, but makes one lose comment-toggling-functionality (the ping
one currently isn't implemented on s9y's side, but I intend to change
that with an upcoming patch).
So I created the attached patch bb_s9ydate.diff, which adds a proper
s9y mode which basically means it makes blogging.rb use the default
date handling, but still provide the comment-toggling features.
In addition to attaching the patch, I've also uploaded it here:
http://www.lipfi.ch/bb_s9ydate.diff
Please consider merging this one too as that date-thing sucks in
particular when using TextMate to edit s9y blogs :-)
Now I'm off to bug the s9y people about the creation date-problem and
about the support for toggling pings via the RPC-Interface :p
Thanks for your patience with reading this novel here :-)
Philip
Hi,
I've been trying to reproduce the steps in the tm_dialog screencast, but failed for some reason:
If i call tm_dialog on my test nib file in the Terminal, I get this message:
tm_dialog: you have updated the Dialog plug-in to v8 but the tm_dialog tool is still at v5
I'm not quite aware of what I've updated, it's all happened automatically as far as i can tell.
Looking at the version, it seems to be "tm_dialog r6545 (Feb 12 2007) ", or possibly "tm_dialog r6021 (2006-11-16)" if I run tm_dialog or tm_dialog_v5 in Textmate (don't know whether I'm supposed to have two of these things installed?)
How can I fix this problem?
Many thanks
baptiste
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
Here's a script I hacked together last night.
If you're writing something with lots of complicated diagrams (like my
thesis, to pick an example at random) then you often have to go through
several compile-view-edit cycles before any particular diagram looks right.
This involves a lot of tedious waiting. The obvious way to speed it up is to
try and reduce the time between making an edit and seeing the results.
Hence this script. The idea is that you can 'watch' a LaTeX document, so
that whenever you save a change the display is updated as quickly as
possible to reflect the change.
The script is currently somewhat inflexible in its assumptions. It compiles
.tex -> .dvi -> ps, and uses gv as the PostScript viewer. If other people
are interested, I can certainly make it more configurable. That's why I'm
posting it here.
The reason for the aparently-perverse choice of gv as the viewer is that
ps2pdf is really, really slow, so if you want a fast cycle – and you're
using PostScript specials – you need to view the DVI or PS directly. I don't
know a DVI previewer that works with the PostScript specials I use, so that
leaves PS. I don't know of anything else for the mac that can display PS as
quickly as gv (I'd love to be enlightened here), and gv is very pleasant to
use once you get used to its idiosyncratic interface.
Anyway, that means you'll need to have X11.app and gv installed for it to
work. As I say, this can potentially be changed, but that's the current
situation. You also need to have gv in your $PATH.
Apart from avoiding PS->PDF conversion, the main trick I use to speed up the
update cycle is to build a custom TeX format file for the document. The
preamble – i.e. anything before \begin{document} – is compiled into a
special format when the file is watched. Thereafter, when the file is
updated, the preamble is merely inspected to see whether it has changed. If
it hasn't, the previously-generated format is used. Assuming you don't
change the preamble very often, this is a big win if you load a lot of large
packages. It halves the compile time of the document I'm currently working
on.
Attached are two files:
Watch document.tmcommand
A TextMate command that invokes the watcher. Copy this into your favourite
bundle. (If you try to watch a file that's already being watched, you're
given the option to stop watching it. Alternatively you can just close gv,
and it will stop watching. Note that quitting TextMate will *not* stop the
watcher.)
latex_watch.pl
A Perl script that does the real work. This should be placed in the
directory Support/bin inside the same bundle that you copied the command
into. (You probably need to create that directory.)
If something doesn't work, you _should_ get a nice error dialog telling you
what went wrong.
I'd really appreciate any feedback. I think that, with some more
flexibility, something like this could be useful to a lot of people.
Robin
Recently, every time I launch Textmate, my system plays an alert
sound. I checked the console log and it's displaying this:
2007-03-29 18:51:50.872 TextMate[284] error reading file
/Library/Application Support/TextMate/Themes/Mac Classic.tmTheme
2007-03-29 18:51:50.980 TextMate[284] loadPlugIn: Dialog plug-in with
same bundle identifier (com.macromates.dialog_plug-in) already loaded
What do I need to do to fix this?
Thanks!