Consider, with Input = Selected text or Line,
#!/usr/bin/env ruby
require ENV["TM_SUPPORT_PATH"] + "/lib/exit_codes.rb"
TextMate.exit_insert_snippet ENV["TM_CURRENT_LINE"]
This changes
asd $ \\
into
asd \
and I am not surprised. But what is the cleanest way
to get back the original line unchanged? I can manage
the slashes but not the dollar. And e_sh is not
a solution since it adds spurious slashes which I have
to take care of.
Thanks,
Piero
PS what I need is a way to pass to TextMate.exit_insert_snippet
a string containing dollars slashes etc in such a way that the
strings is inserted without any change. I know someone can do
this
Ok
this post from October did help me:
------------------------------
Message: 6
Date: Mon, 13 Oct 2008 20:06:33 +0200
From: Alex Ross <tm-alex(a)rosiba.com>
Subject: [TxMt] Re: Latex Bundle Stop to work on MacTex 2008 installed
To: TextMate users <textmate(a)lists.macromates.com>
Message-ID: <601AFE08-73AB-402B-98F9-BD4DABC66805(a)rosiba.com>
Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;
delsp=yes
On Oct 13, 2008, at 7:07 PM, Jose Lobato wrote:
>
> Hi,
>
> I completely removed the MacTex 2007 and install 2008. Once this is
> done it
> stops working when I try to build (cmd+R) Get a big red mesage:
>
> Error: Could not open to check for packages
> This is most likely a problem with TM_LATEX_MASTER
>
> The text is over a small message that says something like (I have
> hardly
> read it):/bin/sh: kpsewich: cdmmarck not open
>
> ( please do not trust this last sentece because as I say I can not
> see it
> well)
>
> So, on: echo $PATH I have:
> /usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/
> usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin
TextMate no longer sources the shell profile so you need to set PATH
in TextMate's preferences. Just copy the above PATH to TextMate's
Shell Variables preference pane and all should be working again.
?Alex
I did copy the results from PATH into the TM Shell Variables PrefPane
and it seems to work ok now.
Sorry for this little flury of emails...
Cheers!
Claus
On 16-Oct-08, at 2:00 PM, textmate-request(a)lists.macromates.com wrote:
> Message: 4
> Date: Wed, 15 Oct 2008 22:00:09 +0200
> From: Alex Ross <tm-alex(a)rosiba.com>
> Subject: [TxMt] Re: problem running latex after svn up
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <FDE0695F-B385-4188-A09C-341AC2CD0B2B(a)rosiba.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> On Oct 15, 2008, at 9:43 PM, Claus wrote:
>
>> Hi,
>> after svn updating all my *.tmbundle, including the latex bundle,
>> after running a previously working latex-project, I got after cmd-R:
>>
>> /tmp/temp_textmate.hXj0XQ:3:in `require': no such file to load -- /
>> Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
>> process (LoadError) from /tmp/temp_textmate.hXj0XQ:3
>>
>> I looked around, and found that likely I have to also svn up the
>> "Support Folder":
>> cd /Library/Application\ Support/TextMate
>> svn co http://macromates.com/svn/Bundles/trunk/Support
>>
>> so I did, however, when I run
>> echo "$TM_SUPPORT_PATH"
>> I get
>> /Users/clausman/Library/Application Support/TextMate/Support
> What have you got in this directory? You can just delete /Users/
> clausman/Library/Application Support/TextMate/Support and I bet things
> will start working.
Hi again,
so, it turns out that some things work again, for example a python
script from the templates runs fine (which didn't work before the
checkout).
My key issue is still with compiling latex. Even with a file from the
templates, without a project it gives the error shown in the attached
screenshot.
Cheers,
Claus
On 17-Oct-08, at 6:40 AM, textmate-request(a)lists.macromates.com wrote:
> Message: 2
> Date: Thu, 16 Oct 2008 16:13:16 +0200
> From: Alex Ross <tm-alex(a)rosiba.com>
> Subject: [TxMt] Re: textmate Digest, Vol 5, Issue 25
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <C95F684D-7D16-4914-BE2C-85ED5D71A67D(a)rosiba.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes
>
> On Oct 16, 2008, at 3:53 PM, Claus wrote:
>
>> Hm,
>> when I delete that folder (move it to a different place), I get the
>> original error:
>> /tmp/temp_textmate.78au0T:3:in `require': no such file to load -- /
>> Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
>> process (LoadError) from /tmp/temp_textmate.78au0T:3
>>
>> when I move the folder back, I still get the
>> Error: Could not open to check for packages
>>
>> This is most likely a problem with TM_LATEX_MASTER
>>
>> /bin/sh: kpsewhich: command not found
>>
>> Note: I didn't see the third line last night, cause it was printed
>> white on white in the latex/textmate output window.
>>
>> Inside /Users/clausman/Library/Application Support/TextMate/Support
>> there are 5 folders:
>> Bundles
>> PlugIns
>> Pristine Copy
>> Support
>> Themes
>
> So you have a checkout of the entire textmate repository in your
> Support folder.
>
> Erase the folder /Users/clausman/Library/Application Support/TextMate/
> and do a clean svn checkout with:
>
> cd ~/Application\ Support/
> svn co http://macromates.com/svn/Bundles/trunk TextMate
>
> ?Alex
On 17-Oct-08, at 6:40 AM, textmate-request(a)lists.macromates.com wrote:
> Message: 2
> Date: Thu, 16 Oct 2008 16:13:16 +0200
> From: Alex Ross <tm-alex(a)rosiba.com>
> Subject: [TxMt] Re: textmate Digest, Vol 5, Issue 25
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <C95F684D-7D16-4914-BE2C-85ED5D71A67D(a)rosiba.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes
>
> On Oct 16, 2008, at 3:53 PM, Claus wrote:
>
>> Hm,
>> when I delete that folder (move it to a different place), I get the
>> original error:
>> /tmp/temp_textmate.78au0T:3:in `require': no such file to load -- /
>> Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
>> process (LoadError) from /tmp/temp_textmate.78au0T:3
>>
>> when I move the folder back, I still get the
>> Error: Could not open to check for packages
>>
>> This is most likely a problem with TM_LATEX_MASTER
>>
>> /bin/sh: kpsewhich: command not found
>>
>> Note: I didn't see the third line last night, cause it was printed
>> white on white in the latex/textmate output window.
>>
>> Inside /Users/clausman/Library/Application Support/TextMate/Support
>> there are 5 folders:
>> Bundles
>> PlugIns
>> Pristine Copy
>> Support
>> Themes
>
> So you have a checkout of the entire textmate repository in your
> Support folder.
>
> Erase the folder /Users/clausman/Library/Application Support/TextMate/
> and do a clean svn checkout with:
>
> cd ~
> svn co http://macromates.com/svn/Bundles/trunk TextMate
>
> ?Alex
Alex,
I did what you said, assuming you meant I should check out textmate into
~/Library/Application\ Support/
unfortunately, the same problem is still there, even if I compile a
very minimalistic latex test file.
>> Error: Could not open to check for packages
>>
>> This is most likely a problem with TM_LATEX_MASTER
>>
>> /bin/sh: kpsewhich: command not found
Does anybody have any more ideas?
Thanks,
Claus
I work thoroughly in Mathematica and in LaTeX and would enjoy the
following capability:
select some tex-math. Use a macro on it to do the following:
--expand out any short-hand I use as specified in an arbitrary style
file.
--call MathKernel on the TeX line.
--Convert from the TeX to Mathematica standard form using
Mathematica's ToExpression.
--Evaluate the math
--use Mathematica's TeXForm to convert the math output into LaTeX
--insert the result into the file or into the clipboard.
my Mathematica installation came with a command-line MathKernel
program which I've been trying to call with
MathKernel -noprompt <<EOF
TeX expression that I want evaluated
EOF
However, when I tried this in bash, the escaping of the TeX
backslashes on the way in and then again on the way out of the
MathKernel program was causing major headaches.
Has anyone ever interfaced the two programs in this way? Anyone have
any advice as to how to approach this problem? I can't seem to find
any Mathematica interaction bundle for TM.
Thanks very much,
Evan Berkowitz
--------------------------------------------------
Physics is like sex. Sure, it may give some practical results, but
that's not why we do it.
Richard Feynman
Hm,
when I delete that folder (move it to a different place), I get the
original error:
/tmp/temp_textmate.78au0T:3:in `require': no such file to load -- /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
process (LoadError) from /tmp/temp_textmate.78au0T:3
when I move the folder back, I still get the
Error: Could not open to check for packages
This is most likely a problem with TM_LATEX_MASTER
/bin/sh: kpsewhich: command not found
Note: I didn't see the third line last night, cause it was printed
white on white in the latex/textmate output window.
Inside /Users/clausman/Library/Application Support/TextMate/Support
there are 5 folders:
Bundles
PlugIns
Pristine Copy
Support
Themes
inside Support there are quite a few more folders:
bin
css
images
lib
nibs
script
Sound
themes
and a file called version which contains the number 9280... anyways,
in bin there are a few files which I guess are related to latex:
LatexCitekeys.rb
LateXCommandCompletions.rb
LatexLabelCompletions.rb
Hm, so textmate can still not compile latex. I also have tried python,
and that doesn't work either. Trying to run the default script from
the templates, I get:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Python.tmbundle/Support/PyMate/pymate.rb:68:in `initialize': wrong
number of arguments (2 for 1) (ArgumentError) from /Applications/
TextMate.app/Contents/SharedSupport/Bundles/Python.tmbundle/Support/
PyMate/pymate.rb:68:in `new' from /Applications/TextMate.app/Contents/
SharedSupport/Bundles/Python.tmbundle/Support/PyMate/pymate.rb:68
Hm, does this mean that things are too messed up... and a clean
install is necessary? What files would I have to delete? And which
ones should I backup?
Or are there any other options?
Thanks for your help,
Claus
On 16-Oct-08, at 2:00 PM, textmate-request(a)lists.macromates.com wrote:
> Message: 4
> Date: Wed, 15 Oct 2008 22:00:09 +0200
> From: Alex Ross <tm-alex(a)rosiba.com>
> Subject: [TxMt] Re: problem running latex after svn up
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <FDE0695F-B385-4188-A09C-341AC2CD0B2B(a)rosiba.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> On Oct 15, 2008, at 9:43 PM, Claus wrote:
>
>> Hi,
>> after svn updating all my *.tmbundle, including the latex bundle,
>> after running a previously working latex-project, I got after cmd-R:
>>
>> /tmp/temp_textmate.hXj0XQ:3:in `require': no such file to load -- /
>> Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
>> process (LoadError) from /tmp/temp_textmate.hXj0XQ:3
>>
>> I looked around, and found that likely I have to also svn up the
>> "Support Folder":
>> cd /Library/Application\ Support/TextMate
>> svn co http://macromates.com/svn/Bundles/trunk/Support
>>
>> so I did, however, when I run
>> echo "$TM_SUPPORT_PATH"
>> I get
>> /Users/clausman/Library/Application Support/TextMate/Support
> What have you got in this directory? You can just delete /Users/
> clausman/Library/Application Support/TextMate/Support and I bet things
> will start working.
Hi,
after svn updating all my *.tmbundle, including the latex bundle,
after running a previously working latex-project, I got after cmd-R:
/tmp/temp_textmate.hXj0XQ:3:in `require': no such file to load -- /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/
process (LoadError) from /tmp/temp_textmate.hXj0XQ:3
I looked around, and found that likely I have to also svn up the
"Support Folder":
cd /Library/Application\ Support/TextMate
svn co http://macromates.com/svn/Bundles/trunk/Support
so I did, however, when I run
echo "$TM_SUPPORT_PATH"
I get
/Users/clausman/Library/Application Support/TextMate/Support
and not
/Library/Application Support/TextMate/Support
as I should according to
http://manual.macromates.com/en/bundles
Now, at first this didn't bother me too much,
but when I tried to cmd-R on my latex project, I got
Error: Could not open to check for packages
This is most likely a problem with TM_LATEX_MASTER
(I have TM_LATEX_MASTER set under cmd-I)
interestingly, this error even occurs when I try to compile a single,
basic latex file like the following four lines (and I thought
TM_LATEX_MASTER is only necessary when using projects?)
\documentclass[article]
\begin{document}
Hello World
\end{document}
Can anybody help me how to get latex running again?
Is the "$TM_SUPPORT_PATH" the problem?
Or is there anything major different in the latex bundle recently
(last half year or so)?
Thanks for your help,
Claus
the version of PyMate in the svn repository doesn't work with Python
3.0rc1, as there have been major changes both to the language and to
the standard library.
the diff file attached to this message describes the changes needed to
make PyMate compatible with Python 3.0; it also migrates from the %
string formatting operator to the new str.format function, as
recommended by the Python 3.0 documentation.
sadly the changes are not backwards compatible (valid Python 2.x code
is not necessarily valid Python 3.x code and vice versa), so some
sorts of version check should be put in place -- I'll leave that to
the senior mantainers of the bundle.
cheers,
domenico
Hi there,
I hope this is the right place for this.
The MIPS bundle incorrectly indents after every return. It looks like
a simple typo. I've pasted the patch below.
Thank you!
Jason
Index: MIPS.tmbundle/Preferences/Miscellaneous.tmPreferences
===================================================================
--- MIPS.tmbundle/Preferences/Miscellaneous.tmPreferences (revision 10713)
+++ MIPS.tmbundle/Preferences/Miscellaneous.tmPreferences (working copy)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
@@ -16,7 +16,7 @@
</array>
</array>
<key>increaseIndentPattern</key>
- <string>^\s*[A-Za-z9-0_]+:\s*$</string>
+ <string>^\s*[A-Za-z0-9_]+:\s*$</string>
<key>smartTypingPairs</key>
<array>
<array>
On running the typesetting I had an error (see last line):
Warning: pdflatex supports synctex but you have included pdfsync. You can
safely remove \usepackage{pdfsync}
Processing: ./jalpac.tex
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
Including: images/uoc_logo_01.png
Processing: ./question_01/question_01.tex
Underfull \hbox (badness 10000) in paragraph at lines 39--44
Output written on jalpac.pdf (3 pages, 202757 bytes).
Complete transcript is in
jalpac.log
Telling Skim to Refresh "/Users/jal/Documents/UOC/M2008 - Desenvolupament
d'aplicacions web/PACs/PAC1/jalpac.pdf"...
sh: -c: line 0: unexpected EOF while looking for matching `"' sh: -c: line
1: syntax error: unexpected end of file
What can be causing this error?
--
View this message in context: http://www.nabble.com/Error-on-typesetting-request.-tp19968021p19968021.html
Sent from the textmate users mailing list archive at Nabble.com.
Folks;
Whenever I try to create a new HTML blog post in TextMate, I get the SPOD
and TM just sits there forever unless I Quit.
Is this a known issue?
Thanks,
-Chris
--
Chris Patti --- Y!: feoh -- AIM: chrisfeohpatti --- E-Mail:
cpatti(a)gmail.com
"We won't talk about spirituality and religion - although I will tell you I
have experienced a death bed conversion - I just bought a Macintosh!" -
Randy Pausch, _The Last Lecture_
Hi,
I completely removed the MacTex 2007 and install 2008. Once this is done it
stops working when I try to build (cmd+R) Get a big red mesage:
Error: Could not open to check for packages
This is most likely a problem with TM_LATEX_MASTER
The text is over a small message that says something like (I have hardly
read it):/bin/sh: kpsewich: cdmmarck not open
( please do not trust this last sentece because as I say I can not see it
well)
So, on: echo $PATH I have:
/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin
on which kpsewich:
/usr/texbin/kpsewhich
On ls /usr I see the symbolic link :
...
lrwxr-xr-x 1 root wheel 63 Oct 13 10:06 texbin ->
../Library/TeX/Distributions/.DefaultTeX/Contents/Programs/i386
On ls : /Library/TeX/Distributions/.DefaultTeX/Contents/Programs
...
lrwxr-xr-x 1 root admin 64 Oct 13 10:07 i386 ->
../../../../../../../usr/local/texlive/2008/bin/universal-darwin
If I open Textmate from the terminal using "open -a textmate" the
typesetting works but on trying to reference a bibtex reference TM hangs and
a ruby script keeps using 100 of my CPU.
All this was with the latest version of the Latex bundle. When I move
backwards to the old version of the bundle (the one that ships with textmate
on August) The Typesetting works but the ruby still hungs on try to use a
reference to bibtex using 100 of my CPU.
Please can anyone help?
--
View this message in context: http://www.nabble.com/Latex-Bundle-Stop-to-work-on-MacTex-2008-installed-tp…
Sent from the textmate users mailing list archive at Nabble.com.
When I enter a label refenrece I get:
/Users/swtest/Applications/TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/lib/LaTeXUtils.rb:262:
command not found: kpsewhich -show-path=tex
\ref{sec:bibliography}
As I explain on a message 2 hours ago everything seems OK (paths).
NOTES: MacText 2008
Please help!
Regards
--
View this message in context: http://www.nabble.com/command-not-found%3A-kpsewhich--show-path%3Dtex-tp199…
Sent from the textmate users mailing list archive at Nabble.com.
Hi, all,
I'v been a Vim user for a long time. There's a shortcut 'dd' in vim
command mode to cut a line, then use 'yy' to paste it. I haven't found
any corresponding way to make this done in textmate, could anybody
here give some advise? Thanks in advance.
Regards,
--
Steve Chu
http://stvchu.org
Hi,
I'm unable to create any templates whatsoever. Any item I choose from
the New From Template menu does nothing. I don't see any errors in
Console. I quit TextMate, renamed the Application Support directory
and preferences directory (which effectively reverts to factory
settings), and restarted TextMate, but that had no effect on the
problem. Any suggestions on how to fix this? Thanks,
Trevor
TextMate 1.5.7
Mac OS 10.5.5
Well, what to say... from one day to the other my LaTeX bundle starts giving
me
"There was a problem reading the preferences file, continuing with defaults"
message which is a hell of a complication as my latex files do not work with
pdflatex :( I'm not aware of installing anything on my Mac in the last
days..... I even reinstalled TextMate & Latex bundle but the message is
still there :(
and by the way I have Leopard 10.5.4 & TextMate 1.5.7 (1436) so probably the
old posts about python problems with Tiger do not apply...
Is there an easy fix or should I really get to writting my own less fancy
but a working script for running latex & all the stuff instead of Typeset &
View??
--
View this message in context: http://www.nabble.com/problem-reading-preferences-file-for-LaTeX-bundle-tp1…
Sent from the textmate users mailing list archive at Nabble.com.
Is there a command that I could use to select a block of text and
convert all the special characters to the HTML equivalent (right and
left smart quotes, ampersands, em-dashes, etc...)
I find that I am often pasting in blocks of text from word and
selecting it and running one command would make my workflow a bit
easier.
Cheers,
Eric
----- Original Message ----
From: Alex Ross <tm-alex(a)rosiba.com>
To: feldesmanm(a)gmail.com; TextMate users <textmate(a)lists.macromates.com>
Sent: Wednesday, October 8, 2008 3:44:19 PM
Subject: Re: [TxMt] Re: Compiling C/C++ using Textmate
On Oct 9, 2008, at 12:36 AM, Marc Feldesman wrote:
> It returns an empty line.
Sorry that should have been:
ruby -e 'puts File.exists?(ENV["TM_SUPPORT_PATH"] + "/lib/tm/
executor.rb")'
If TM_SUPPORT_PATH is pointing correctly to your svn checkout of the
Support directory, and that checkout is also up to date, this will
return true.
> I've got 30 years of programming experience. If I'm having this
> much trouble after following the directions in 5.7 and especially
> 5.7.4 to the letter, how do less experienced people deal with these
> problems?
>
> Why doesn't Textmate simply set these preferences out of the box and
> run without this much fiddling. AquaEmacs works without anything
> special. SlickEdit works without anything special. XCode works out
> of the box. Why is TextMate so fiddly?
TextMate also works out of the box, but you've elected to install
prerelease code via svn. Most people do not encounter these problems
because they just use the bundles that are shipped with TextMate.
—Alex
I might not have bought it if it didn't compile C or C++ code out of the box. It is advertised as a programmer's editor. I haven't found many programmer's editor that don't do the basic things a programmer's editor do, such as compile code with basic tools. The instructions made it appear pretty easy to update and adding the new C bundle was trivial. Only after pouring through the list here did I discover that the Support directory needed to be updated, and even after following the directions exactly, you now tell me that an essential subfolder isn't there. How would I know that? I mean, I'm grateful for your help, but this shouldn't really be so difficult to track down the source of an install error and a path/directory error.
Hello,
Is there a way to make the LaTeX bundle treat warning as errors (and
provide for example links to underfull or overfull lines before
jumping to the document preview).
Thanks beforehand for any help,
Jean-Pierre
Upon updating my bundle to the latest svn source of the latex bundle I
got a similar html output window. Reverting to revision 10669
returned the expected output.
Thanks again for all the effort that goes into improving the Latex
bundle, your efforts are greatly appreciated!
Peter
On Sun, Oct 5, 2008 at 4:43 AM, Niels Kobschaetzki
<n.kobschaetzki(a)googlemail.com> wrote:
> Hi!
>
> In addition to my TeX-typesetting-problem I noticed that the
> HTML-output-window suddenly looks just plain wrong. I attached a
> screenshot. Some of the text is huge, other parts are very small and
> behind the huge stuff.
>
> Niels
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
>
There is something fundamentally wrong with Textmate's handling of the
Apple-R command. I have cutting edge build 1466 of Textmate, and the latest
versions of the C bundle and the Support bundle. Whenever I press Apple-R,
the result is:
/tmp/temp_textmate.bPPsQU:3:in `require': no such file to load --
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/executor
(LoadError) from /tmp/temp_textmate.bPPsQU:3
I have checked the path in bash, I've tested echo $PATH ^R and the search
path is correct. I really like Textmate, but if I can't get this issue
resolved I'll be forced to go back to AquaEmacs, which is awfully
cumbersome.
Either I'm missing something fundamentally obvious, or there is something
profoundly wrong. What command am I missing here?
--
View this message in context: http://www.nabble.com/Compiling-C-C%2B%2B-using-Textmate-tp19886007p1988600…
Sent from the textmate users mailing list archive at Nabble.com.
The conversion to LaTeX replaces any occurrences of '...' to /ldots.
That causes problems if the dots are followed by text, such as
...and then there were three.
as we and up with '\ldotsand'. Not knowing much of TeX, what is the
proper way to shield a variable from surrounding text?
Thanks
Gerd
Hi all,
How can you add options to the call to the pdflatex engine used by the
watch functionality of the LaTeX bundle?
Particularly, I'd like to be able to add the shell-escape option
(apparently it currently runs with that option disabled).
Thanks,
enas
I'm evaluating TextMate, trying to figure out if I can make the switch
from BBEdit. It looks very much like Linux -- very powerful, but
having a devil of a time getting work done as I make the switch. So
please forgive me as I pepper you with questions. I'm going to try to
put them in separate emails to split them up into threads.
OK, I'm making a new template for my SHTML files. My first question:
how do I make the tab stops work properly?
When I use the following template, the cursor (er, caret in TM
parlance) is at the *start* of the document, and tabbing doesn't move
me to the other positions. I find this odd b/c I thought that the
caret position was supposed to default to the end. Anyway, the tab
stops aren't working at all, so I must be making some mistake. I just
can't find it.
The variables for selected text and date *do* work.
help, please?
CC
<!--#set var="pagetitle" value=""${2:Untitled}"" -->
<!--#set var="page_type" value="class=\"page_article\"" -->
<!--#include virtual="/inc/wrappers/news_releases_top.inc"-->
<!-- BEGIN CONTENT -->
<h3></h3>
${1}${TM_SELECTED_TEXT}
<p class="article_data pub_date">${TM_DATE}</p>
<!-- END CONTENT -->
<!--#include virtual="/inc/wrappers/news_releases_btm.inc"-->
OK, this is explained pretty well, if briefly, in the Help document,
but it doesn't work. Probably I'm making a stupid mistake, but I've
been trying to tackle this for days.
I've made a template and am editing its associated template file.
This works, wrapping the selected text in a div:
<div>
${TM_SELECTED_TEXT}
</div>
However, this doesn't work. It should recognize three words separated
by spaces and wrap them in paragraphs. The find pattern *does* work in
the Find command, but not in the template.
The result of htis pattern is emptiness; I get just the div tags
around a blank line.
<div>
${TM_SELECTED_TEXT/^(\S+?)\s(\S+?)\s(\S+?)$/<p>$1</p>\r<p>$3</p>\r<p>$3</p>/g/}
</div>
The above code looks like it follows the regex patterns described in
Help's regex section. So I'm unsure what's wrong. Help, please!
-- CC
Hi!
I've installed MacTex 2008 some days ago and switched finally from
pdftex to xelatex. On friday I still compiled files successfully,
today I get only a
Error: xelatex is not found, you need to install LaTeX or be sure that
your PATH is setup properly.
sh: line 0: type: xelatex: not found
When I run from TextMate "which xelatex" it gives me: /usr/texbin/xelatex
In Terminal the same, command completion in Terminal works fine as
well. Compiling the file in Terminal works as well.
I'm working with TM 1.5.7 (1464) and a recent SVN-checkout.
Does anyone have an idea what the problem could be and how to fix it?
Niels
Hi Ian,
When editing Eiffel code in TextMate, the digits in variables or
parameters like i1 i2 get colored with the color for literal numbers
instead of the color of the alphabetic part of the name.
--
Damien Pollet
type less, do more [ | ] http://people.untyped.org/damien.pollet
Hello all
I have unable to use SVN commit for the last couple of days, receiving
the
following message when I attempt to:
'No files modified; nothing to commit.'
I am using TextMate 1.5.7 (1464) and Subversion 1.5.1. The message
pops up
regardless of whether I am trying to commit a single file or an entire
directory.
I have backtracked to try and see what I have installed that may be
causing
this, but without much luck. Does anyone have any suggestions as to
what is
causing it, or how to fix it?
Many thanks
Spen
Hi,
the last posting shows that very often this mailing list has already
answered to common questions. But how can an user find it?
Here my 'brutal' approach to provide a tmCommand which does the job.
The attached tmCommand searches for given words using www.nabble.com,
gathers ALL found pages in one HTML page, and opens that HTML page in
the default browser.
Maybe this could help a bit.
Comments?
Cheers,
--Hans
PS Of course, the used strategy could be improved ;)
I am having trouble using some of my installed bundles, for example, PHP
Cake. There are a number of tab triggers I am trying to use, but when I type
the sequence and press tab, nothing happens. This behavior seems indicative
of TextMate not knowing which bundle to use on the file being edited, though
the language association of "HTML (PHP Cake)" in the bottom toolbar is
correct.
What am I missing? Thanks!
--
View this message in context: http://www.nabble.com/Bundle-usage-tp19771933p19771933.html
Sent from the textmate users mailing list archive at Nabble.com.
I keep updated with the "bleeding edge" releases of all the bundles,
and I just noticed today that the Java bundle now picks out whole
classes from the source code. Unfortunately, my favorite color scheme,
Brilliance Black, chooses to give this area a bright red background,
making anything inside a Java class unreadable.
Not sure whose fault it is (maybe I messed something up?), but I
thought somebody should know.
William
I'm running the latest cutting edge build (1467), which seems to have been
posted about 5 months ago. I've read through the forum and there have been
mentions of a new cutting edge build due to appear, by my estimate, about
now. Does anyone here have a better ETA for this next build? I'm really
hoping to sort out all the C-bundle problems that prevent compiling except
to a single tool.
--
View this message in context: http://www.nabble.com/New-Cutting-Edge-Build-tp19841157p19841157.html
Sent from the textmate users mailing list archive at Nabble.com.
My wife is about to finish the first draft of her first book. It's
written more or less in markdown, nothing complex, just chapters, some
italics and some dividers.
Is there an easy workflow to produce a halfway decent looking book
from this? I suspect it would involve Latex, which I know nothing about.
Thanks
Gerd
I am the maintainer of the Python bundle. During the last couple of
years, I have not had the opportunity to use Python very regularly and
I feel that I have let the Python bundle languish. Today I saw that
Python 2.6 has been released. Are there any avid Python users on the
list who would be interested in adding Python 2.6 features to the
TextMate grammar? Is there anyone who would take over maintainership
of the bundle?
—Alex Ross
I have the same need. I have done the following to accomplish this.
Generally speaking, you need to combine the command with a macro:
1. modify the command in 'normal' R bundle to additionally active
Textmate after it sends the R statements
2. record a macro to move the cursor: You first active the above R
command, which sends the R statement to the R GUI's R console window,
and let it return back to Textmate; Then move the cursor one line
down and finish the macro.
3. save the macro and give it a good keystroke.
Optionally, you can use the power of the search (^F) in Textmate to
move the cursor. By using the proper regular expression in the search,
you can move the cursor to the next non-comment R statement.
The above steps work generally for both a line and a selection.
Yaomin
On Sun, Oct 5, 2008 at 7:43 AM, <textmate-request(a)lists.macromates.com> wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
>
>
> Today's Topics:
>
> 1. Re: Simple markdown to book workflow? (jiho)
> 2. Re: Python 2.6? (Pedro Borges)
> 3. How do I tell TextMate to move the cursor one line down?
> (Tobias Pyndt Steinmann)
> 4. Re: How do I tell TextMate to move the cursor one line down?
> (Hans-J?rg Bibiko)
> 5. Re: How do I tell TextMate to move the cursor one line down?
> (Hans-J?rg Bibiko)
> 6. Suddenly xelatex is not found anymore (Niels Kobschaetzki)
> 7. HTML-output-window just looks plain wrong (Niels Kobschaetzki)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 4 Oct 2008 09:34:39 -0400
> From: jiho <jo.irisson(a)gmail.com>
> Subject: [TxMt] Re: Simple markdown to book workflow?
> To: gerti-textmate(a)bitart.com, TextMate users
> <textmate(a)lists.macromates.com>
> Message-ID: <6646DC23-E892-47E0-B77A-C6936351061D(a)gmail.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> On 2008-October-04 , at 02:16 , Gerd Knops wrote:
>> Thanks everybody for the help, it is much appreciated!
>>
>> Using markdown to Latex (memoir) conversion gets me most of the way.
>>
>> One problem I have that I can't seem to figure out is that when I set
>> \geometry{a5paper} the book is formatted for A5, but the physical
>> paper size still seems to be Letter. How can I fix that?
>
>
> This is actually a feature of the memoir class. The thinking behind it
> is that, whatever your page size is, you will probably print it on a
> stock paper, which has a standard size (A4, letter etc.) and them cut
> (trim) it (if you add the options showtrims to the document class, you
> should see those trim marks). This is why the stock size and the page
> size are separated in memoir. You can set them easily without
> resorting to the geometry package, with commands that are specific to
> the memoir class. Check the chapter "Laying out the page" (section II,
> p 49) of the memoir manual (meman.pdf) for the commands. It also gives
> more details on the dimensions of the page and how to make them
> harmonious (A5 is probably not the best idea because the height to
> width ratio might make the text look awkward). My advice: take a book
> with a similar purpose that you find enjoyable to read and well laid
> out and copy the dimensions.
>
> This is for example what I used in a recent document, based on several
> published books with margin notes:
>
> \usepackage{calc} % easy calculations
>
> % Page size
> \settrimmedsize{246mm}{172mm}{*} % size of final page : h w ratio
>
> % Stock paper size = A4
> \setstocksize{297mm}{210mm} % size of paper sheet : h w
>
> % Trims (i.e. cuts) = set interior edge of the page to be the actual
> edge of the stock and center vertically
> \settrims{0.5\stockheight-0.5\paperheight}{\stockwidth-
> \paperwidth} % portions to trim from : top edge
>
> % Set margins and compute size of text block
> % NB: \textheight is set to an integer number of lines by
> \checkandfixthelayout below
> \settypeblocksize{197mm}{100mm}{*} % block: height width ratio
> \setlrmargins{32mm}{*}{*} % horiz margins : spine edge ratio
> \setulmargins{69pt}{*}{*} % vertical margins : upper lower
> ratio
>
> % Margin notes
> \setmarginnotes{3.8mm}{31mm}{5mm} % margin notes: separation width
> push
> % separation: horiz space between text and note
> % width: max width of note
> % push: min space between notes
>
> \checkandfixthelayout[nearest]
> % nearest = chose the integral number of lines nearest to the
> specified textheight and use this as the textheight
>
> I hope that helps.
>
> JiHO
> ---
> http://jo.irisson.free.fr/
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 4 Oct 2008 17:03:34 +0100
> From: "Pedro Borges" <pedro.dhb(a)gmail.com>
> Subject: [TxMt] Re: Python 2.6?
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Message-ID:
> <d82a1ed0810040903q34795f72qc3d82e8bac77b423(a)mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Is there a list of requested features for the bundle?
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 4 Oct 2008 18:12:13 +0200
> From: Tobias Pyndt Steinmann <tobii(a)tobii.dk>
> Subject: [TxMt] How do I tell TextMate to move the cursor one line
> down?
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <A63860BE-556B-49BF-881D-255872FEC11D(a)tobii.dk>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
> I am trying add a command to the R bundle that will send the current
> line to the R GUI, in the same way the ESS for Emacs "Eval line &
> step" command works.
> It is quite easy to send the line to R GUI, but I cannot find a good
> way to move to the cursor to the next line in TextMate.
> Currently I am using this Applescript to do the job:
> # move the cursor
> osascript -e 'tell application "System Events"' \
> -e 'tell application "TextMate" to activate' \
> -e 'tell process "TextMate"' \
> -e 'keystroke (ASCII character 31)' \
> -e 'end tell' \
> -e 'end tell'
>
> But the problem is that when you call the command using a keyboard
> shortcut ie. cmd+shift + R and keep holding cmd+shift for some time (I
> have this of a habit unfortunately :) ) the keystroke will be cmd
> +shift + (ASCII character 31) causing the text from the cursor to the
> end of the document to be selected.
>
> Is there a smarter way to advance the cursor one line? -- maybe an
> internal TextMate command?
>
> Thanks in advance.
> with best regards,
> Tobias Pyndt Steinmann
>
>
Hi,
I am trying add a command to the R bundle that will send the current
line to the R GUI, in the same way the ESS for Emacs "Eval line &
step" command works.
It is quite easy to send the line to R GUI, but I cannot find a good
way to move to the cursor to the next line in TextMate.
Currently I am using this Applescript to do the job:
# move the cursor
osascript -e 'tell application "System Events"' \
-e 'tell application "TextMate" to activate' \
-e 'tell process "TextMate"' \
-e 'keystroke (ASCII character 31)' \
-e 'end tell' \
-e 'end tell'
But the problem is that when you call the command using a keyboard
shortcut ie. cmd+shift + R and keep holding cmd+shift for some time (I
have this of a habit unfortunately :) ) the keystroke will be cmd
+shift + (ASCII character 31) causing the text from the cursor to the
end of the document to be selected.
Is there a smarter way to advance the cursor one line? -- maybe an
internal TextMate command?
Thanks in advance.
with best regards,
Tobias Pyndt Steinmann
Hi!
In addition to my TeX-typesetting-problem I noticed that the
HTML-output-window suddenly looks just plain wrong. I attached a
screenshot. Some of the text is huge, other parts are very small and
behind the huge stuff.
Niels
I've recently switched to 1.5, mostly because of sparse checkouts. I
just spotted every-time I commit something Subversion bundle shows
"unknown revision committed" in the title, which is obviously because
now "svn" command has Polish (my native language) locale and doesn't
output "Commited revision XX." but the text in Polish.
I'd suggest to set "LANG=en_US" environment variable before launching
any command that matches the output text in English or when running
command line directly use "LANG=en_US svn" instead of just "svn".
This suggestion should go also to all other bundle creators that use
similar methods.
Best regards,
--
Adam Strzelecki
Hello
I'm a newbie with Ruby but it seems that there is a problem with
"fileExt".
I try this (I add fileExt=[] )
#!/usr/bin/env ruby
#
#####################
# Helper function
#####################
def recursiveFileSearch(initialList)
extraPathList = []
fileExt=[]
and now I can use alt+esc in all the cases.
Is it a good solution?
Alain
Hi,
I made a command for the ruby texmate bundle that might be interesting.
What it does (on command-option-R):
- It takes the selected text or the current line (= STDIN)
- It finds a running IRB session in the Terminal.app. If you don't have one,
it starts a new one.
- It pastes your code in IRB and switches to the terminal.app.
It saves you from manually selecting, copying, switching and pasting to try
out some code in irb. A poor man's SLIME if you will.
The command is a basic ruby script that uses the scripting bridge to drive
Terminal.app. It can also be adopted to use other interactive consoles
(python, clojure, ..) by changing the REPL_ constants at the top of the
script.
- REPL_CMD is the command to start the interactive console
- REPL_PROCESS is the active process that ends up running in the terminal.
- REPL_PROMPT is the prompt you get when you start the interactive console
See attachment for the command.
Greetings,
Jan Sabbe
On Oct 3, 2008, at 7:00 AM, textmate-request(a)lists.macromates.com wrote:
> On Oct 3, 2008, at 1:03 PM, Ricki Gregersen wrote:
>
>> Hi
>>
>> I have been looking for a way to print my recent project which is
>> around 50+ actionscript classes to
>> a single pdf for some time.
>>
>> I tried Automater but it refuses to recognize .as files as
>> text files.
>>
>> Is there som way to obtain this in textMate?
>>
>> Thanks in advance:)
>>
>> Regards Ricki
>
> The best thing is to generate HTML from your source code and print
> that. In the TextMate bundle, there is a command to ?Create HTML From
> Current Document?. Run that command and save the resulting file.
> Open in Safari and print to PDF!
>
> ?Alex
I would also consider using the command line tool "textutil" to
concatenate the files and then format the catted files as RTF or HTML
-- or even plain old text -- and then printing the compiled document.
(You could make this an Automator script -- I know that Apple script
allows you to call shell apps, or you could make it a bash script, or
you could make it a Textmate command.
So many options ...
Hi
I have been looking for a way to print my recent project which is
around 50+ actionscript classes to
a single pdf for some time.
I tried Automater but it refuses to recognize .as files as
text files.
Is there som way to obtain this in textMate?
Thanks in advance:)
Regards Ricki
Hi all,
I've been using TextMate for a while but I have recently started
looking at some matlab scripts that I am porting over to C(Obj-C).
The only problem is TextMate keeps coloring the .m matlab files using
the C/Obj-C syntax coloring rather than the coloring provided by a
Matlab bundle I have installed. Since I am editing files in both at
the same time, Matlab and C, what would you recommend is the easiest
way to get my .m matlab files to use the Matlab bundle coloring and
my .m Obj-C files to use the C syntax coloring?
Thanks
I've been struggling against TextMate's clipboard manager for some
time. I use PTHPasteboard, which works against all applications, and
serves the purpose of having multiple copy buffers.
It appears to fight against TextMate's clipboard manager, however.
When I copy things using TextMate, sometimes (randomly) it will place
the copied item straight into the second item in PTHPasteboards, so I
always have to guess where my copied item is. It's very, very annoying.
Is there any way to disable TextMate's clipboard manager? I would
prefer to use PTHPasteboard for clipboard management instead as it
works in any application.
Thanks!
Tim
Hi,
I'm just rewriting the GetBundles bundle to support the new syntax of
DIALOG2. In principal it works fine if I take the eventInfo Dict. But
I came up with a "problem".
I have a NIB containing a NSSegmentedControl for filtering the repos
Bundles, Review, GitHub, All.
I bound it via Segment Selection > Selected Label to
Paramters.selcetion.bundleSelection and connected the entire
NSSegmentedControl to File's Owner 'performButtonClick'. Each Segment
has its own tag number.
With DIALOG1 I get e.g.:
<dict>
<key>bundleSelection</key>
<string>Review</string>
<key>cancelBtn</key>
<string>cancelButtonIsPressed</string>
<key>dataarray</key>
<array>
<dict>
....
then I can check whether there's a returnArgument, if not is there a
key 'bundleSelection'...
BUT with DIALOG2 the eventInfo Dict gives me:
<key>eventInfo</key>
<dict>
<key>tag</key>
<integer>0</integer>
<key>type</key>
<string>buttonClick</string>
</dict>
<key>model</key>
<dict>
<key>bundleSelection</key>
<string>Review</string>
<key>cancelBtn</key>
<string>cancelButtonIsPressed</string>
<key>dataarray</key>
<array>
<dict>
This would me that I have to deal with both the eventInfo Dict AND the
model Dict in order to find which button was pressed.
If I have a 'normal' button bound to performButtonClick DIALOG2
response is:
<key>eventInfo</key>
<dict>
<key>tag</key>
<integer>4</integer>
<key>title</key>
<string>Rescan Bundle List</string>
<key>type</key>
<string>buttonClick</string>
</dict>
Is there a way to put into the eventInfo Dict the title of the chosen
Segment of a Segment Control à la the 'normal' button event?
My very first idea was to include into TMDNibController.mm
- (IBAction)performButtonClick:(id)sender
...
if([sender respondsToSelector:@selector(selectedSegment)] & [sender
respondsToSelector:@selector(cell)])
[res setObject:[NSNumber numberWithInt:[[sender cell] tagForSegment:
[sender selectedSegment]]] forKey:@"selected_tag"];
Then you can deal with unique tag numbers and you only need the
eventInfo Dict.
Many thanks in advance
--Hans
I've recently upgraded to a shinny new iMac from my 3 year old powerbook.
This has required the re-installation and setup of all my software. I.e.
Latex and TextMate, which previously worked seamlessly.
Specifically, i downloaded and installed MacTeX. Latex (pdflatex) works
fine from the command line. However "Typeset & View" in TextMate returns
the following:
Error: Could not open to check for packages
This is most likely a problem with TM_LATEX_MASTER
I'm fully up-to-date (cutting edge) and i have confirmed that all the
appropriate paths exist (i.e. to /usr/texbin in /etc/profiles). "pdflatex"
is selected in the TextMate latex preferences.
An extensive search of the web provides a lot of solutions (usually related
to making sure the path is set correctly), but none work for me.
Any ideas? I'm slightly baffled and have run out of things to try.
Thanks in advance.
Sorry for the delay here. I seem to have lost contact with my own thread.
I sent this a few weeks ago in response to your suggestion:
Strange ...
turning on debug
%!TEX Directives: {}
Typesetting Directory = /Users/dcroton/work/documents/current/antonio_agnfrac
master file = agn_fraction_v12.tex
Typesetting Directory = /Users/dcroton/work/documents/current/antonio_agnfrac
Error: Could not open to check for packages
This is most likely a problem with TM_LATEX_MASTER
Thanks,
Darren
I was told by textmate to report this:
"svn" status /Applications/MAMP/Documents/Remwes/mcfr/app/webroot/js/
ajax.js
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/svn_revision_chooser.rb:27:in `svn_cmd'
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/svn_revision_chooser.rb:83:in
`choose_revision'
-:7