Hi!
When I use the section and similar snippets to create a section and
have a title with an Umlaut then it looks like this:
\section{this is an Umlaut-test: äöüß} % (fold)
\label{sec:this_is_an_umlaut_test_äöüß}
% section this_is_an_umlaut_test_äöüß (end)
The problem with this is that LaTeX seems not to handle umlauts and
other special characters in labels and therefore I always have to
change them to something else like
\section{this is an Umlaut-test: äöüß} % (fold)
\label{sec:this_is_an_umlaut_test_aeoeuess}
% section this_is_an_umlaut_test_aeoeuess (end)
by hand. Isn't there a possibility to do this automatically?
Ä -> Ae
Ö -> Oe
Ü -> Ue
ß -> ss
ä -> ae
ö -> oe
ü -> ue
I think similar stuff would be useful for anyone using languages with
accents or whatever with the LaTeX-bundle and it works already with
":" and other special characters which become an underscore.
Would be really appreciated by me if this small addition could be
made :)
Niels
I'm bouncing between Homesite at work (well, ColdFusion Studio actually,
I'm that much of a stick-in-the-mud), and TextMate at home, and I'm
looking for the TM equivalent of "select full tag" -- a keyboard
shortcut that selects the whole tag block whether your cursor is in the
start or end tag.
Can TextMate do that?
Thanks,
Owen
I'm trying to create a bundle for RealBasic. I've made some
progress, but I keep getting stumped in trying to create a single
line comment, (which in RealBasic is either // or '
The double-forward slash works fine, but the single quote doesn't.
This is the code:
{ name = 'comment.line.single-quote.myRB';
match = "(\').*$\n?";
captures = { 1 = { name =
'punctuation.definition.comment.myRB'; }; };
},
Thanks,
mvreade
Hello,
I'm wondering if anyone here can help with two 'slightly-related to
TextMate' problems I've encountered. I've been given a couple of
hundred documents in different formats (.doc, .pdf, .rtf) that need to
be put into one big document (which will be about 200pp long).
I used 'textutil' to convert most of the documents to txt (ps2ascii
for the pdfs), and then gave them all a filename with a number. Using
TM, I created a macro that would add the filename at the top of each
individual file, and then converted this into "##number ##". I then
used 'textutil -cat' to merge them into one file. So now each
'section' has a filename, title, and block of text. I will then turn
this into a file format which will allow formatting (LaTeX or maybe
RTF, all I need is one big PDF at the end).
I have come across two issues:
1. There are some strange characters (most likely from different
character sets?) that have appeared in the text. I am assuming that
these are accented characters, smart quotes, and so forth, and was
wondering: *How I can automatically convert these characters?* I
started doing this using find and replace for the ones I know, but I
was wondering if there was some easier way to do it.
some examples follow:
actor –meaning
Prüm
Integration :
« new regionalism » i
EU’s energy
2. the numbering system I used for the files was based on a primary
key from our database, but I've been asked to renumber all the files
starting from 1 (for a silly reason, the database started with a
primary key of 67, and manually-entered records start at 400.). *Is
there any way that I can use TM to convert "##number ##" into "##
incremental number ##"?* e.g. in find and replace, use:
find: ##(\d*)\w? ## (the \w? is there as a couple of documents are
labelled like: 137a)
replace: ##(x+1) ##
It's the (x+1) that's bothering me.
Sorry if this is not in the realm of this list (any recommendations?),
but any pointers would be really appreciated!
Many thanks,
Jamal
--
Vrije Universiteit Brussel
Hi everyone,
I use a lot Mathematica and I am so used to the way to type greek letters…
Here is how it works, it's very simple :
– First press Esc
– Then press, e.g., the letter “p”
– press once again Esc and the “p” you just typed is replaced by Pi
Of course, you see the generalization to the other Greek letters. The thing
is that,
writing a LaTeX document, I often find myself reaching to the Esc key just
to realize
that nothing happens and that I'm NOT in Mathematica :-D
So, what do you think ? Would it be possible to implement this way of
entering
greek letters in TextMate ?
Thanks in advance :-)
--
View this message in context: http://www.nabble.com/-LaTeX--Entering-greek-letters-%E2%80%9C%C3%A0-la-Mat…
Sent from the textmate users mailing list archive at Nabble.com.
Hello,
I love textmate, but I feel like I'm missing out on one of its major
features...
I can't use any bundle keyboard shortcuts. The menu shortcuts work fine, but
not the bundle shortcuts. I feel like I am missing something obvious, but I
can't figure it out.
Thanks for your help!
-Ryan
Hey guys,
I want to suggest to change the "left...right" snippet, which wraps
"(something)" into "\left(something\right)". Right now the snippet
catches any trailing caracter, but commonly it will only be used with
brackets. I wanted to wrap "\{something\}" into
"\left\{something\right\}". So I changed the snippet to
${TM_SELECTED_TEXT/(.*)(\\}|\)|\])/\\left$1\\right$2/}
Maybe this is interesting for others and could be integrated into the bundle.
regards,
Ruben
Hello. It looks like `SmartyPants.pl` is still hard-coded in these
commands.
Markdown.tmbundle/Commands/Markdown preview.plist
Markdown.tmbundle/Commands/MultiMarkdown Preview.tmCommand
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
HTML.plist
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
LaTeX (Memoir).plist
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
LaTeX.plist
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
PDF.plist
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
RTF.plist
Markdown.tmbundle/Commands/↓↓ Generate Output and open in
Browser.plist
If someone gets a chance, can they be updated to use "$
{TM_SMARTYPANTS:-SmartyPants.pl}" instead? Thanks.
---
Rob
<http://www.skurfer.com/>
Hi!
Fortunately the blogging-bundle is working for me again (fetching and
posting), only the category-snippet is not working. When I use it I
get the following error:
/tmp/temp_textmate.XHi7MM:4:in `require': No such file to load -- /
Users/nik/Library/Application Support/TextMate/Support/lib/dialog.rb
(LoadError)
from /tmp/temp_textmate.XHi7MM:4
I'm using the actual svn-co and the support-folder and so on is up to
date as well.
Any ideas?
Niels
Hello,
I have found very limited XML editing applications that are
affordable for the Mac.
I am wondering if there is a good XML (.xsd, .xml, xhtml, ect) bundle
or even a really nice Theme for reading said XML files?
Thank you!
Having upped my PHP version to 5.2.4 I realized that the Validate
syntax command in the Textmate PHP bundle gets text from both stdout
and stderr. Don't know if it was like that with previous PHP version,
but the fix is simple.
change result = `#{ENV['TM_PHP'] || 'php'} -d display_errors=on -l`
to result = `#{ENV['TM_PHP'] || 'php'} -d display_errors=on -l 2> /dev/null`
in the Validate syntax command
I also found it useful to add a similar command for ZendCodeAnalyzer.
Create a new command with Save: Current document, Input: Entire
document, and Output: Show as tool tip containing this code:
#!/usr/bin/env ruby
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'
result = `#{ENV['TM_ZCA'] || 'ZendCodeAnalyzer'} #{ENV['TM_FILEPATH']} 2>&1`
puts result.gsub(/^.*\(line (\d+)\)/, 'line \1')
TextMate.go_to :line => $1 if result =~ /line (\d+)/
In this case we do want both stderr and stdout, but they are in the
wrong order, so 2>&1 fixes that.
Perhaps this is useful for someone.
--
Sven Axelsson
Hi,
I have a first generation Intel Mac, and I never managed to get
pdfsync to work with Textmate and PDFView. I've now updated to Skim
and the latest Textmate, and the situation has got worse! Now if I re-
TeX a document, I'm taken to Skim, but I don't see the latest version
of the document; the only way for me to see this is to close the
window in Skim, and then click "View in Skim" in the Typeset & View
window. pdfsync takes to me Skim, but not to the current position,
and pdfsync from Skim does nothing. Any ideas?
Thanks,
Toby
Howdy;
I found this great HTML to Markdown converter online
http://milianw.de/projects/html2text/
any one have the chops to turn that into a TextMate Command?
I know that's I'd love it, and I'm sure I'm not the only one.
tia
s.i. rosenbaum
Hi,
Is there a way to find or colorize double-byte space that in the
document? I've been using a double-byle language, called Japanese
with TextMate. The problem I encounter every now and then is to
mistakenly type double-byte spaces where they, as they are treated as
strings, are now allowed.
At this time, there's no way to distinguish double-byte spaces and
single-byte spaces in the document window.
I guess there would be a way to find the space by grep and highlight
it adding scope in language grammars. Right? Anybody?
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi ,
I encounter problems in installing the R bundle. I followed the steps
in the textmate doc. However, when running :
svn co http://macromates.com/svn/Bundles/trunk/Bundles/R.tmbundle
I obtain the following error message:
svn: Can't convert string from 'UTF-8' to native encoding:
svn: R.tmbundle/Commands/Plots?\226?\128?\166.tmCommand
and when double clicking on the R bundle (in Application Support/
TextMate/Bundles), this error message appears:
The bundle “R.tmbundle” does not contain the required
“info.plist” file (or that file is corrupt) and can therefore not
be installed.
I nevertheless able to install other bundles ...
Any help would be appreciated.
Regards,
Matthieu
Matthieu Dubois
Ph.D. Student
Cognition and Development Lab
Catholic University of Louvain
10, Place Cardinal Mercier
B-1348 Louvain-la-Neuve - Belgium
E-mail: Matthieu.Dubois(a)psp.ucl.ac.be
Web: http://www.code.ucl.ac.be/MatthieuDubois/
On Sep 27, 2007, at 7:00 AM, textmate-request(a)lists.macromates.com
wrote:
>> If I have a C comment such as:
>>
>> /
>> **-------------------------------------------------------------------
>> --------
>> * xxxx
>> *--------------------------------------------------------------------
>> --------
>> */
>>
>> And I paste/type in some code right after this, textmate indents one
>> character. I cant use cmd+{ to correct it because then all the
>> indenting in
>> the block I paste is incorrect.
>
> It does? I tried that in C++ mode, and I don’t seem to get
> additional indent.
It does indeed - and the mode is C++. In the code you pasted you
removed the leading spaces. Try
/**--------
(space)*
(space)*/
Then you will see what I mean.
I posted a file and window captures to my site:
http:://www.uner.com/sample.cpp
http:://www.uner.com/beforepaste.tiff
http:://www.uner.com/afterpaste.tiff
>> On a related note (loosely) the top of the block has a folding
>> symbol next
>> to it in the gutter, but no corresponding symbol at the end of the
>> block.
>> Comment folding would be great, but clicking on the symbol at the
>> start
>> of the block has no effect.
>
> The default grammar is set to fold on /** and stop on **/. So you
> would need to add another * for the stop marker of your comment,
> then it should fold.
>
> E.g.:
>
> /**
> * This comment folds
> **/
>
That does not fold for me either. The problem is the leading space.
So in the file I uploaded, sample.cc, if you take out the leading
space on line 13 then the comment folds.
I created this a while back, but I had forgotten about it until a
recent discussion of Drag Commands.
If you're using the pre-insalled Apache under Mac OS X, the
DocumentRoot is set to `/Library/WebServer/Documents/`. I try to
avoid attachments as much as possible, so I'll usually put a file in
that location and just send people a URL that leads them to it. To
make this easier, I created a Drag Command that applies to any file
in that directory. For example, if I drop /Library/WebServer/
Documents/some.zip in a document, it inserts http://
kendra.oit.gatech.edu/some.zip instead.
It's currently scoped to "text.mail,text.html" and I usually only use
it for e-mail, but perhaps it should be scoped for all "text"?
Anyway, I thought this might be a useful addition to the Mail or Text
bundle.
On a related note, what's the preferred way to say "I thought this
might be a useful addition to the XYZ bundle"? :)
FYI - If you're looking at the command and wondering why all the
gymnastics to get the Fully Qualified Domain Name for the local
machine, it is intended to work in either of these situations:
1. `hostname` returns something appropriate, like "kendra" and
`domainname` returns something appropriate like "oit.gatech.edu".
2. `hostname` erroneously returns the FQDN (like
"kendra.oit.gatech.edu") and `domainname` returns nothing at all.
(For reasons unknown, I think most systems are misconfigured like
this by default.)
---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.
Hi, this is a patch including a command to generate a graph using the
dot command so you don't need the Graphviz gui program in OS X. You
will need to have the dot command in your system. To do so, compile
graphviz or get it from macports like so :
sudo port install graphviz
see http://en.wikipedia.org/wiki/Graphviz for more information
I've already submitted a similar patch to the maintainer "Torsten
Becker" but I got no response so far so I'd like if you guys could
take care of it.
Thanks
Guillaume Carbonneau
Hi,
First of all thanks for the great product, i love TextMate and the
blogging bundle is really awesome.
I have been playing a bit with the blogging bundle in combination
with my blog and the strictness of the Ruby library forced me to
follow the specs as strict as well. So in some sense that is a good
thing.
However, the XML-RPC API itself kinda sucks and i really have to do
some magic with post id's in order for them both to understand each
other. Luckily the MetaWeblog (and blogger) API allow the post-id's
to be a string.
But, since the blogging bundle is casting the post-id to an INT it is
causing problems when i try to edit a post with a post id that
contains anything besides digits.
I glanced over the code and i do not see any reason for the post_id
to be an INT, i modified line 238 in blogging.rb (self.post_id =
@headers['post'].to_i if @headers['post']) by removing '.to_i' and
now everything is working as expected.
I hope this adjustment will find its way to all happy cutting-edge
TextMate users worldwide ;)
Cheers,
Nicholas Piël
Hello,
I searched extensively, but my problem seems so basic that I didn't find
anything...
No key bindings for any bundles work at all. This is very frustrating,
because bundles are supposedly one of the best parts of TextMate. The menu
key bindings work, but not bundles. For instance, the "Documentation for
Tag" command in the html bundle: ^H. When I press this key combination while
editing an html document, the previous character is deleted and nothing else
happens. I followed the advice here
(http://macromates.com/wiki/Troubleshooting/KeyBindings) and decided to try
the Key Codes application. Here is the result:
Characters:
Unicode: 8 / 0x8
Keys: ^H
Key Code: 4 / 0x4
Modifiers: 2359553 / 0x240101
I don't have any special custom key bindings set up anywhere.
Any advice? What am I doing wrong?
Thanks!
--
View this message in context: http://www.nabble.com/No-Bundle-Key-Bindings-Working-tf4523602.html#a129052…
Sent from the textmate users mailing list archive at Nabble.com.
If I have a C comment such as:
/
**----------------------------------------------------------------------
-----
* xxxx
*-----------------------------------------------------------------------
-----
*/
And I paste/type in some code right after this, textmate indents one
character. I cant use cmd+{ to correct it because then all the
indenting in
the block I paste is incorrect.
The only workaround I have found is to go to the beginning of the line
after the comment block, type some garbage (e.g. qqqq) then paste the
block after that.
Any better suggestions?
On a related note (loosely) the top of the block has a folding symbol
next
to it in the gutter, but no corresponding symbol at the end of the
block.
Comment folding would be great, but clicking on the symbol at the start
of the block has no effect.
Doc
Hello,
after updating my LaTeX bundle with GetBundle the "Include Image"
Drag command no longer works for me.
Instead of giving me
\begin{figure}
(all the normal stuff in here)
\end{figure
when I drag an image from the drawer to the text, all I get is
/tmp/temp_textmate.n4yQVj:3:in
or
/tmp/temp_textmate.Rd7QkI:3:in
I have alreay tried jpg as well as png images (both worked well
before), tried different LaTeX files and different folders for the
images.
Before updating everything worked fine!
Any help appreciated!
Bye,
Carsten
Hello to All
This is a revised version of Texari Reborn. As you might know, not all
Themes have support for more exotic Languages like Textile for Instance.
It was first created to cater the proper Textpattern Styles.
I have revised the Theme since then a couple of Times. It now has also
good support for Textile, php and HTML of course.
I even modified Brad Choate's Textile Language Grammar yesterday, to add
support for Acronyms, codeblocks and a couple of other things that
are only available in Dean Allan's version of Textile 2.
Unfortunately I lost my changes, due to the fact, that I had to force
quit TextMate.
However the Theme is there.
One useful addition, that I made, is to add support for zem_template,
which is used to create the Textpattern plugins, that are running from
cache. It helps to avoid Errors, styles comment blocks and special
comment blocks as distinguishable lines and so forth.
It has a very resting effect on the eyes.
Give at a go, if you wish.
regards, marios
Hi!
I am using wordpress 2.2 with utw and utw-rpc, toghether with
textmate's blogging bundle and circlesix' autotag bundle. That's a
really nice combination and I love working with it.
Now, today Wordpress released version 2.3, with tag support. Any
ideas on how to use this tag support with textmate?
Thanks in advance!
André