In a nutshell, the new XML Catalog features allow you to easily
configure TeXMLMate to substitute local resources (like DTDs and
other schemas) for remote resources referenced by URLs. This allows,
for example, convenient validation of XHTML documents against a local
(possibly customized) copy of an XHTML DTD without having to change
the URLs used in the XHTML doctype to local file paths. Parsing/
validation with local schemas is much faster and allows offline
validation.
To download:
http://www.ditchnet.org/texmlmate/
For more complete details see the description here:
http://www.ditchnet.org/wp/2007/01/03/texmlmate-13-released/
Todd Ditchendorf
Scandalous Software - Cocoa Developer Tools
http://scan.dalo.us
Hi!
I have here a problem with the Blogging-bundle and free blogs at
wordpress.com
If I try to fetch a posting I get the following error:
Received Exception: Wrong Size. Was 3732, should be <unknown>
No posts are available!
Posts are available.
I can post though but after posting it, the posting has an error in
the first line (and the date looks strange:
Received exception:Wrong size. Was 1275, should be <unknown>
Type: Blog Post (Markdown)
Blog: a Shortcut a Day
Post: 5
Title: testpost3
Date: -4712-01-01 01:00:00 +0100
Pings: Off
Comments: Off
testpost
The posting looks right in the dashboard of wordpress and date and
everything else looks right as well.
I am quite sure that I set up things right because it worked with my
blogs which weren't on wordpress.com - here's the content of the
setup-file:
# List of Blogs
#
# Enter a blog name followed by the endpoint URL
#
# Blog Name URL
a Shortcut a Day http://nielsk@macshortcut.wordpress.com/xmlrpc.php
Any help appreciated
Niels
Hi,
I just found a very tiny bug within the R function getSig.r of that
bundle.
If you type 'plot.lm' and invoke that command to get the template it
gives you a weird output because within the formals you find an item
'caption', and within this item there is a '\n'. The ruby pop down
menu, of course, interprets a '\n' as a new line.
To avoid this I would include within the getSig.r at line 12 this:
10: if (is.symbol(f[[arg]]) && f[[arg]] == "") arg else list(arg, f
[[arg]])
11: ),
12: function (arg, escape=function(x) ifelse(snippet, {gsub("([\\
$`}])", "\\\\\\1", x);gsub("\n", "", x)}, x))
13: if (is.list(arg))
i.e. I add a gsub in the 'escape' function to delete each '\n'
I don't know whether this will be good. The case is very rarely.
Comments?
Best,
-Hans
HI,
sorry for the, maybe stupid, question, but I didn't find something in
the internet.
How can I make a copy of an existing bundle? To duplicate commands or
snippets, that's simple, but for an entire bundle?
If I simply create a new folder.tmbundle and copy&paste things in it,
then I also have duplicated uuid's.
Thanks in advance
-Hans
Hi there
I am very new to programming and ive used to make programm in Flash.
Its just a little project and i do programming in my freetime as a
hobby.
My 30 days of using Flash for free are over (since a half year now ;)
and i wanted to re-wake this project and do it without Flash using
TextMate and the ActionScript Bundle.
I had a look at the Bundle Developer Site and followed the
instructions mentioned there. But i still have absolutely NO CLUE
what to do.
My first intention, just to see how things are working i wanted to
make a trace output - which says "Hello World".
What am i doing wrong? Ive tried to use the ActionScript template and
i did a script which just says
trace ("Hello World");
I did use the "Install MTASC Support Files" and i did a try
without...nothing happens.
Can anybody help or does know where i get some information?
Thanks for your help
==================================
Zettt
azeitler(a)zettt.de
==================================
I've been trying to set the foldingStartMarker and foldingStopMarker
for a simplified variant of Markdown but have had no success. The
file would look something like this
# First heading #
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse
vel nunc.
Suspendisse egestas erat vitae pede. Phasellus quis libero et tortor
commodo
auctor. Sed et erat. Aliquam sed lectus. Fusce semper elit nec ipsum.
Morbi
sem nisl, tristique id, venenatis quis, gravida sed, neque. Etiam ut
felis. Curabitur leo magna, molestie vitae, blandit et, fringilla
vitae, purus.
# Second heading #
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse
vel nunc.
Suspendisse egestas erat vitae pede. Phasellus quis libero et tortor
commodo
auctor. Sed et erat.
Aliquam sed lectus. Fusce semper elit nec ipsum. Morbi
sem nisl, tristique id, venenatis quis, gravida sed, neque. Etiam ut
felis. Curabitur leo magna, molestie vitae, blandit et, fringilla
vitae, purus.
# Third heading #
etc
I'd like to fold so that only the heading lines show.
The foldingStartMarker is easy:
foldingStartMarker = '^# +';
But I can't get a foldingStopMarker that works. What I'd like to use
is a blank line followed by a positive lookahead to a line that
starts with a hash and a space, but
foldingStopMarker = '^$\n(?=^# +)';
doesn't work, even though that regex works in the Find dialog box.
Are the start and stop markers restricted to single line patterns?
The manual suggests that, but it isn't explicit. Does anyone have any
ideas?
--
Dr. Drang
Hi,
Running Octave scripts from Textmate using Matlab bundle works fine, but I'm not sure what sort of output I should use. I have set it to 'Show as HTML', since I don't want to create a new file for each run and the tooltip option is too volatile. The only problem is the text comes out without any line breaks, which is very painful to read especially when it comes to vectors and matrices.
Any tip?
thanks,
baptiste
__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités
http://mail.yahoo.fr Yahoo! Mail
> Sounds quite interesting. ;)
>
> How do i do this?
Google is your friend :)
Take a look at the documentation on the MTASC website, and take a
look at Ralf Bokel's hacked version (HAMTASC) for more fun with
command-line options.
The howto I pointed to on my blog has a ZIP that you can download for
the walkthrough. Good luck!
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
Not a lot of explanation needed. These are all XHTML compliant, some
include self closing tags and do not offer the option to avoid this,
so some work may be necessary. In fact, there will probably be a lot
of disagreement over how to handle a few things, and my feelings
won't be hurt. Take this as a suggestion, and perhaps overkill. I
actually prefer to just use the generic "insert open/close tag" these
days, but agree that there are times that typing a tag and hitting
tab would be convenient.
Brett
Hi,
I have to work remotely on one website and can only test if the files
are on the server. I would like to integrate an ftp client with
textmate. I have been using CyberDuck but perhaps Panic's Transmit
would be better, I'm not sure.
If I could get the work flow down to just the following I would be happy.
cmd-s to save the file
cmd-u to upload the file (or changed files)
cmd-tab to switch to firefox
cmd-r to refresh the page
I don't know how the textmate integration would work. If I am working
on a variety of files from a variety of directories on the server,
should I have these files in one textmate project or should I have
them open individually. If I want to have all the files in a project
can I have just the file I'm working on or would i need to have the
complete directories on the server in which these files exist?
Thank you,
Peter
--
Fork JavaScript: http://forkjavascript.org
Hi there,
I have an Antville Blog running, and was just asking myself if i
could use TextMate (with the Blogging Bundle) to make a post to it.
Does anyone know if this is possible?
This has been taken from the FAQ on their site:
Auf der folgenden Seite wählen Sie bitte aus:
als System: Andere (API auswählen)
als API: Blogger (eventuell auch: XML-RPC)
als Zugangspunkt: http://blogs.macnews.de:8081
Thanks in Advance
PS: You can reach the blog at zBlog.zettt.de
==================================
Zeitler Andreas
azeitler(a)zettt.de
==================================
I assume the guy responsible for TeXMLMate is here, right?
You really should start converting your disk image to r/o compressed
before distributing it. The disk image for TeXMLMate 1.2 gets 91.8%
savings when converted this way - 212kB, down from 2.5MB.
--
Kevin Ballard
http://kevin.sb.org
kevin(a)sb.org
http://www.tildesoft.com
I apologize for the simple question but is there a way to turn on tag
completion? For instance, when I close a paragraph tag i would like
textmate to automatically create a closing tag for me. Thanks so much.
I've just released another TextMate plug-in:
TeXMLMate
http://www.ditchnet.org/texmlmate/
TeXMLMate is a floating palette designed for checking XML and XHTML
documents for Well-Formedness and Validity while editing them in
TextMate. Includes support for DTD, W3C XML Schema, RELAX NG and
XInclude.
Todd Ditchendorf
Scandalous Software - Cocoa Developer Tools
http://scan.dalo.us
Hey guys,
I know that you're trying to create a code completion library for
Ruby (however, I wasn't a member of this list when those messages
were posted, so I'm unable to reply to them). I wondered if you are
aware of the existence of rct-complete, part of the rcodetools[1]? I
believe the current implementation in the Experimental bundle only
does static completion. rct-complete, however, can do a lot more:
http://frim.frim.nl/ss/Picture%20239.png
It actually knows the class get_new() returns, and thus won't suggest
test_3.
Well, good luck with your efforts, I hope to see a stable completion
library in the Ruby bundle soon!
- Pieter
[1] http://eigenclass.org/hiki.rb?rcodetools
The first release of the Wordpress bundle I'm working on is available
on my blog[1] and on Ale's SVN server[2].
The bundle is designed to aid in creating templates for Wordpress.
It includes snippets for inserting skeletal structures for common
template pieces (header, footer, sidebar, loop, headline, etc.) as
well as some very detailed plist based commands that serve as
references for everything from bloginfo commands to database tables
for queries. Most of the commands are snippetized with sample data
(ala the Codex) inserted rather than the fairly nondescript
definitions that the documentation uses.
If I can get a helping hand, I’ll add a few basic templates and a
help file, but I’m concentrating on the coding end of things for now.
I know there wasn’t much response on the list, but I’ve been getting
a lot of requests for this from the masses of new TextMate users via
MacHeist and related buzz that’s picking up around the Internets.
[1]http://blog.circlesixdesign.com/2006/12/30/wordpress-theme-bundle-
for-textmate/
[2]svn co http://svn.sofanaranja.com/projects/brettbundles/trunk/
Bundles/Wordpress\ Theme.tmbundle Wordpress\ Theme.tmbundle
When I do cmd-R using the Ruby bundle and RubyMate executes, is there
a way using the keyboard to get back to the file I was editing? I
hate having to move my hand to grab the mouse to click on the TM
window where I'm working.
Happy Holidays.
Bob
Hello,
Starting this morning, I have noticed that when I "archive completed"
in my GTDAlt file, it becomes completely empty. The action is
archived in the log file, but the rest of the contents of the gtd
file disappears. I also noticed that when I process my inbox, the
window that tells me the result of the processing was also empty (but
the processing worked correctly).
I'm using the current SVN version of the bundle (as well as the
current version of the dialog plugin and support folder).
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
Love the recent improvements to the Xcode bundle, thanks!
Using the Xcode bundle build&Run command, if the applications output
is wider than the "Build With Xcode" window, horizontal scrolling
will display black text on dark blue background (default theme) in
the scrolled portions. Not the most readable...
Thanks
Gerd
To further crowd a field amply covered by the GTD, GTD2, and GTDAlt
bundles, I've written my own bundle, called LGTD (Little GTD). It
uses Markdown syntax for your Next Action lists, coordinates lists
between project-oriented views and context-oriented views, and has a
command for printing lists to index cards for Hipster PDA users. I've
written a few posts about it on my blog, starting with this one
http://www.leancrew.com/all-this/2006/12/
a_little_more_gtd_with_textmat.html
which has links to the later posts.
LGTD does very little, but it does what I want. It may do what you want.
--
Dr. Drang
I'm a TM noob so bear with me.
I have installed textmate and rails and all that, everything works but TM
wont auto complete anything.... if I'm in a migration for instance, and type
mcc[tab] all I end up with is mcc.
Tab completion wont work in any of my files.
I dont know if it makes a diff or not, but I'm using the bluetooth
keyboard...
So, any advice?
Thanks,
Dallas
--
---------------------------------------
The Code Ninja is swift with his tool, precise in his delivery, and deadly
accurate in his execution.
Hey all,
usually i'm using "SpaceCadet" as syntax highlighter theme within TextMate, is
it possible to export any given file (javascript, java ruby html php...) into
html with the same colors as in the theme in use ?
Yvon
Hello,
I have just started using Textmate as my primary editor. I would very
much like to make use of some of the howto's offered in the wiki, but I
am a bit confused on how to implement them. I am assuming they are
bundles, and are implemented via the bundle editor. At the moment I am
specifically interested in this one:
- Before: Do Nothing
- Command: grep -n
'^[[:space:]]*\(public\|private\|protected\)\?\([[:space:]]\+static\|
[[:space:]]\+abstract\)\?[[:space:]]\+function'
- Std In: Entire Document
- Std out: Show in separate win
- Pattern: ^(\d+):\s(public|private|protected)?(\s+static|\s+abstract)?
\s+function\s+([_A-Za-z][_A-Za-z0-9]*)\s*[(](.*)[)]
- Format: $2$3 $4\( $5 \)
- Line: 1
which supposedly creates a clickable list of functions for php 4 and 5.
Looking at the bundle editor, would I set this up as a php command, or
something else entirely? And what would be the actual code placed into
the Command(s) box?
Any advice is appreciated.
I am working on a Wordpress Theme Bundle for TM, and would like some
input.
First of all, if this has already been done or someone already has a
head start on me, let me know.
I am planning to include:
Templates for index, archive, page and single
Snippets for loop, navigation, queries with all parameters tab-stopped
Snippets for all loop-internal hooks (i.e. the_title, the_excerpt,
the_content)
A command for turning a block into a loop
A help file with all of the template hooks linked to the Wordpress Codex
Let me know what feedback you have, what you’d like to see, or if
there’s an alternate way to go about this (code completion plist?)
Thanks,
Brett
As a FYI, all Powerbook G4 owners should check your system to see what
your system reports as the RAM quantity. Many of the motherboards have
a serious defect. Here is a link describing the PowerBook Lower Memory
Slot failure. http://lowermemoryslot.editkid.com/
BTW, I got hit with this problem and my serial number was not
recognized by Apple as in the affected set.
Please forward this PSA to Mac audiences.
Cheers,
AZ
The current Scheme (and Lisp) plugins don't seem to format
according to the normal usage for these languages.
With the following text in TextMate in Scheme mode you get:
-----
(define (x y)
(let ((a 1)
(b 2))
(+ (* a b) y)))
-----
This is hard to see in mail unless you have plain text w/fixed
pitch on... but paste it into TextMate and align it with Scheme
selected.
Normally, the 'a' and 'b' in the 'let' form would align and the
'(' before the '+' and the '(' after 'let' would align.
TextMate makes a mess of this, though. I've looked over the
language definitions, but it would seem there is a pretty steep
learning cliff and I'd expect that this really should be working
already, so I thought I'd check if this is supposed to work or if
this is a known deficiency.
I can make the formatting at least look properly structured if I
drop closing parens onto their own lines, but this results in tons of
wasted space:
----
(define (x y)
(let
(
(a 1)
(b 2)
)
(+ (* a b) y)
)
)
----
Any hints? Thanks!
-tim
Hi!
As Harris is currently working on the latex bundle, I have a suggestion:
I sometimes change the header of a section, and so also the label. Even
for figures I sometimes change the label. Then I have to search for all
references for these labels. So I would be glad if there would be a
Rename refactoring for labels and references.
Helge
I'm working on a couple of TextMate plugins, and I would like to
force text selection and possibly scrolling in TextMate's main window
([NSApp mainWindow]).
I see that TextMate uses a custom text view class called OakTextView.
1. Is the OakTextView api (header file?) available to the public?
2. Does anyone have any advice to share on how to accomplish text
selection in an OakTextView?
I can get a reference to the main window's oaktextview in cocoa
easily enough. i just don't know how to make it select text. I'd
prefer to do this via objc/cocoa. However, if there are applescript
hooks to this, those would be of interest too (especially if the
oaktextview api is not available).
Thanks!!!!
I head in a webcast that you can copy selected text in firefox and
with a keyboard shortcut have textmate create a new file and paste
the selection.
How is this done?
Can it post directly to a new blog post markdown file? Thanks
Hi Haris,
Revision 6390. Label completion is ok, citation completion fails
silently. No problem with the same files I have used when I remove /
Library/Application\ Support/TextMate, and put the environment.plist
back in charge.
> So, what happens when you type, in the terminal, "/usr/texbin/
> kpsewhich"?
/usr/texbin/kpsewhich
gives
Missing argument. Try `kpsewhich --help' for more information.
Özgür
--
Özgür Gökmen | og(a)pyromedia.org
Hi Haris and everybody else,
I split up my different questions into different emails.
>> So, for example, let's say I have a custom command for including
>> scheme and figures, and I would like to have that command colored
>> in a specific way; what would be the best and most forward-
>> compatible way of doing it? If I understand things correctly,
>> then, if I change the LaTeX language file directly, future updates
>> to the bundle are going to be ignored (overwritten by my changed
>> file). I guess, it would be better to put those personal additions
>> into an extra file. But what is the correct/optimal way to call/
>> include it in the LaTeX language file?
>
> I don't know what you mean about including scheme. Do you mean
> scheme code via the lstlistings environment or something like that?
> Then we should add those to the official bundle. As for figure
> environments, they should be already targeted by the scope
> mechanism, so you should be able to assign them colors as is, I
> think. Unless I misunderstand what you want to do. Both of these
> two you should also be able to do by creating your own bundle and
> including the latex grammar. However there is one tricky bit: The
> rules that match environments match the spaces before the \begin,
> so that they match from the beginning of the line (for coloring the
> background more nicely). So if your rule matches only from the
> \begin part, it does not matter whether it appears first or not,
> since the built-in rule matches EARLIER. So you would need to be
> matching those spaces as well. (I've been bitten by this myself ;) ).
Sorry for choosing a potentially confusing example. What I meant to
say is that I have a custom command for including schemes and
figures: \includescheme{scale}{name}{caption} which inserts a
centered figure environment, inserts file <name> at scale <scale>,
creates a label <name>, and inserts the caption <caption>. So, it is
not targeted by the scope mechanism ... But this just served as a
specific example.
My question was more general. In case I have a custom LaTeX command
(any command) that I want to have a syntax colored, i.e., or in case
I want to change an existing syntax color behavior, *what is the best
way to do it*?
I just don't understand yet how to do it so that it does not break
forward compatibility. I assume, it would be best to put my own
private additions/changes to the syntax coloring into a separate
language file, e.g. "LaTeX HF", instead of just writing them into the
"LaTeX" language file itself. Is that correct? But, then, how do I
either call/include it from the LaTeX file or vice versa? How do I
set up such a separate file for my private additions?
Thanks.
Holger
__
Eidgenössische Technische Hochschule Zürich (ETH Zürich)
Department of Materials
Wolfgang-Pauli-Str. 10, HCI H515
CH-8093 Zürich
Switzerland
Phone: (+41) 1 633 6474
Fax: (+41) 1 633 1390
Email: frauenrath(a)mat.ethz.ch
Web: http://www.polychem.mat.ethz.ch/frauenrath/
Harris: I got rid of ~/.MacOSX/environment.plist, rebooted. My path
is /usr/texbin as assigned by /etc/profile. Binaries actually do live
in /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0/. Label completion
seems to be working. However, the citation completion command cannot
locate the binaries.
\footcite{The tex binaries cannot be located!}.
On a side note, you might also consider to deal with the Documention
for Package command. See the path in the error note below. teTeX is
not the only distro available. ;)
Traceback (most recent call last): File "/Library/Application Support/
TextMate/Bundles/Latex.tmbundle/Support/bin/PyTeXdoc.py", line 31,
in ? docIndexFile = open(docIndex,'r') IOError: [Errno 2] No such
file or directory: '/usr/local/teTeX/share/texmf.tetex/texdoctk/
texdoctk.dat'
Özgür
Charilaos Skiadas <skiadas@...> writes:
> among you and with no paper deadlines, please remove any special PATH
> specifications that you had made just for LaTeX TM (likely based on
> previous recommendations by me), and let me know if the commands
> still work for you, and if not then also where, to the best of your
> knowledge, your tex binaries are.
> Haris
--
Özgür Gökmen | og(a)pyromedia.org
After I run and typesetting a document with command+R, TM shows me an
overview of the appeard errors. At the bottom left of this window,
there is a link for previewing the document. Now I have 2 question:
1. How could I achieve that the document is automatically displayed
for preview?
2. I instaled the file pdfsync.sty in the following directory: ~/
Library/texmf/tex/latex/pdfsync.sty. In the document I called the
packaged with \usepackage{pdfsync}.
How do I use pdfsync now?
Thanks
Christian
Hello,
I installed Latex with the i-installer and then used textmade to work
with it.
Wherefrom does Textmate know the install location of latex?
Thanks
Christian
Harris: Checked out revision 6378 -- the bundle, support, and
plugins. I get the following for citation completion (opt-esc). The
info you will see at the bottom is from the first entry in the bib
file. I can post the preamble of the tex file if that would help.
Özgür
/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
82:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filemap'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
53:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filecite_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
168:in /bin/bash: -c: line
1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of
filerecursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
139:in /bin/bash: -c: line
1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of
filerecursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
138:in /bin/bash: -c: line
1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 4: syntax error: unexpected end of
filerecursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
173:in /bin/bash: -c: line
1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of
fileget_citations'
from /tmp/temp_textmate.7uvsfX:7
Found citekey: Adanir2001aa
Found key: Address
Found contents: Boulder
Found key: Author
Found contents: Fikret Adanır
Found key: Booktitle
Found contents: Fascism Outside Europe
Found key: Date-Modified
Found contents: 2006-11-11 01:33:36 +0100
Found key: Editor
Found contents: Stein Ulgevik Larsen
Found key: Juratitle
Found contents: Kemalist Authoritarianism and Fascist Trends in
Turkey during the Interwar Period
Found key: Pages
Found contents: 313--61
Found key: Publisher
Found contents: Social Science Monographs
Found key: Title
Found contents: Kemalist Authoritarianism and Fascist Trends in
Turkey during the Interwar Period
Found key: Year
Found contents: 2001
--
Özgür Gökmen | og(a)pyromedia.org
Harris: The bib file lives in the same working directory, so within
the brackets was just the bib filename,
not the path. Checked out Revision 6386. Quite strangely, I couldn't
get the completion commads work at
all -- on the very same tex and bib files. Neither via the key
combo, nor via the menu. Basic completion
via the esc key failed as well. Pointing to another bib file, I got
the citation based on current word
command working. Label based on current word command prints the word
"exit" within the brackets.
Özgür
Charilaos Skiadas <skiadas@...> writes:
> Özgür, Helge,
> this should be fixed now. The problem in Helge's case is that I was
> not expecting full paths in the bib file. Özgür if you still have
> problems let me know how the \bibliography{...} line says in your
> case. In any case, the error message should now be a bit clearer.
> Haris
--
Özgür Gökmen | og(a)pyromedia.org
>> And, finally, I have a probably stupid question: I would like to
>> change the menu structure (the commands) in the LaTeX bundle menu.
>> How can I do that? To be more specific, I am sure (well ...) that
>> I had done it before, and it used to work by simply dragging
>> commands from the list in the bundle editor into the menu
>> structure window of the LaTeX bundle. But it does not work
>> (anymore). I can shuffle around commands, and I can move them to
>> "excluded items", but I cannot add a new one.
>
> In the bundle editor, select the LaTeX bundle, and you should see
> the menu structure on the right. Then you should be able to
> rearrange those. If you want to add another command, it must first
> be moved into the LaTeX bundle.
Well, this is precisely what I tried to do (and I think it had worked
that way until a couple of days ago): I clicked on the LaTeX bundle
so that the LaTeX bundle menu structure appeared on the right. I
could shuffle around commands and separators in the menu structure,
and I could remove commands by dragging them to the "Excluded Items"
list.
But when I tried to add a new command by dragging a command from the
LaTeX bundle command list on the left side into the LaTeX menu
structure on the right side (that is the way it is supposed to work,
isn't it?), that field (the menu structure) did not accept any input.
It just did not work.
Any suggestions?
Holger
Hello everybody,
I noticed that the results of typesetting LaTeX files in Textmate
gives different results as compared to other TeX programs (TeXShop,
iTeXMac). In this particular case, a PDF graphic file was missing, in
which case, the TeX typesetting stops with a fatal error (at least, I
think that is what should happen), and no output is produced.
Accordingly, TeXing in TeXShop gives (as console output):
> LaTeX Warning: File `../Figures/polymerization_triamides.pdf' not
> found on input line 133.
>
> Error: /usr/local/teTeX/bin/i386-apple-darwin-current/pdflatex
> (file ../Figures
> /polymerization_triamides.pdf): cannot find image file
> ==> Fatal error occurred, the output PDF file is not finished!
... and no new PDF file. However, TeXing in Textmate gives:
> LaTeX Warning: File `../Figures/polymerization_triamides.pdf' not
> found on inpu
>
> Found 0 errors, and 60 warnings in 0 runs
... and a new PDF file with 0 pages which prompts PDFView to crash
upon trying to update. In other words, Textmate behaves as if there
was no error. What I find strange is that I thought that the console
output was entirely the responsibility of the TeX engine ... and I
have for sure only one TeX distribution installed. Are any parameters
passed to the TeX engine from Textmate that control this behavior? If
so, is there a reason for the current settings? Or what else could be
the reason?
On a side note, as you see in the example above all warnings are
truncated (no matter what size the console window is). Is there away
to avoid this?
Holger
>>> If the current TM_LATEX_ERRLVL settings are not sufficient, let
>>> us know.
>>
>> Thanks for the hint. I played around with the values. In my eyes
>> it would be useful to have one additional option where the console
>> window would not open at all *except* for when there is an error,
>> in which case it should open and remain open. The reason is that I
>> would like it to be closed after typesetting and, as a matter of
>> fact, the typesetting of a short file on the MacBook only takes a
>> fraction of a second anyways, so that the brief opening and
>> closing of the console window is not useful (in this particular
>> case).
>
> Well it sort of opens because this is the default output of the
> command, an HTML window. So the window opens before the command
> even starts running. Theoretically it would be possible to not open
> it until later, but it would make the code of that command even
> more complicated. It's already a pretty long shell script, that I
> try not to mess with lest my inferior shell skills brake it. If
> someone else wants to take a stab at it, then we can talk about it.
> But given that it works, and it really a minor nuisance, I'm loath
> to mess with it.
Well, that is fine with me. You are right, it is a minor nuisance. If
it can be fixed easily, fine. If not, it is not essential.
Holger
__
Eidgenössische Technische Hochschule Zürich (ETH Zürich)
Department of Materials
Wolfgang-Pauli-Str. 10, HCI H515
CH-8093 Zürich
Switzerland
Phone: (+41) 1 633 6474
Fax: (+41) 1 633 1390
Email: frauenrath(a)mat.ethz.ch
Web: http://www.polychem.mat.ethz.ch/frauenrath/
Ahoy TextMateys!
Prototype'd Javascript now has better escape code completion
and option-escape menu code completion.
Also,
I updated my TextMateCodeCompletion thing again to support basic
snippetization of completions.
Prototype completions contain a bunch of method arguments. Like this:
Thing.method(one,two)
Now, when you select a completion from the menu, it'll convert each
of the method arguments into snippet placeholders.
This is, of course, just a milestone in the road toward full snippet
completion support.
The eventual goal is that the completions list is just a list of the
names, then when you select one, a unique snippet is inserted for
that name.
The only problem is that we'll either have to duplicate all of the
completions in the escape completions list and the menu completions
list or else extend the completions list format to work with both
escape completion and menu completion.
I think the only way to extend the format is to get Allan to hack
textmate to support the new version. And I loathe the thought of
wasting my time implementing it one way and then having to
reimplement it the right way once Allan gets back.
I also reorganized the codecompletion library so that it can more
easily be used by other stuff. New methods:
to_snippet converts the choice you make into a basic snippet and
returns a string. (formerly to_s)
choice returns the choice that was chosen as a string
index returns the index of the array of the item that was chosen
thomas Aylott — design42 — subtleGradient — CrazyEgg
Hello everybody,
I have a number of relatively basic questions concerning the LaTeX
bundle, the "bundle mechanism" in general, as well as Textmate's
interaction with PDFView. I am a newbie to Textmate in the sense that
I bought a license about 8 months ago but I have not regularly/
seriously used it until now, and I am sure that I have not fully
understood some of the basics yet. So, please, excuse me if some of
the questions are "stupid" or have been answered on this list or in
Textmate's documentation. It would be helpful to just point me to the
relevant parts of the documentation in this case.
I should say, though, that I followed the discussions on this list in
the last 8 months, and I have also used Textmate on and off, I
tinkered around in order to fit it to my needs, tried (and partially
succeeded) to wrap my mind around the scope selector mechanism etc.
I must say that I am really excited about Textmate's potential, in
particular, its flexibility in regard of syntax coloring. If I
interpret the recent emails to the TeX on MacOS X mailing list
correctly, there is quite a need and a desire for a TeX frontend that
has some decent capabilities as a text editor but keeps TeXShop's
simplicity. This is why I hope that I am not alone with the following
questions (because I feel that this email will be relatively long)!
There seems to be a place for Textmate among the folks who use TeX on
MacOS X. The point is, I *want* to love Textmate, but some of the
following issues/questions keep me from using it on a regular basis.
So, here we go.
1. What is (strategically) the best way to include my own additions,
e.g., to the syntax coloring? The first thing I tried was to change
the original LaTeX language file itself, but I soon understood that
was not a good idea. The second thing I tried was create my own LaTeX
addition file (which would claimall .tex files and at the end include
the original LaTeX language file) but that also seemed to break
certain things. In relation to this first question, I think I need to
understand the following related questions:
2. Do I understand correctly that the "LaTeX bundle" is somehow
officially maintained in the sense that certain improvements and
additions are included in the official release from time to time?
3. Is there a "version system" for the bundles? I mean, is there a
way to tell that I have the latest version of the bundle (or which
one I have installed)?
4. Is a new version of a bundle automatically installed with the
Textmate updates?
5. What happens to my own additions when a bundle is upgraded? As far
as I understand, my additions are stored as "differences" to the
original file. But what exactly happens, for example, when I added/
changed a behavior that is later added/modified/deleted in an updated
bundle?
Furthermore, I have some questions concerning the typesetting
process. Let me start with two observations. The first time I
installed Textmate, the TeX console window would pop up when I hit
"Typeset", and the results would appear in relatively large chunks as
HTML output which seemed rather "slow" compared to TeXShop. The
window stayed on the screen when the typesetting was finished. The
second time I installed Textmate a couple of months later, (on my
MacBook Pro, only in case this matters), the large console window
would pop up in the middle of the screen briefly during typesetting,
and immediately disappear again when typesetting was finished (which
is relatively fast on a Macbook Pro!), not leaving me any chance to
at least adjust its size and position.
6. Can anybody give me a clue why there is this difference in
behaviors? Has the bundle changed in this respect? Does it matter
which type of processor it is run on?
7. Can one bring up the TeX console window without typesetting (e.g.
in order to change its size/position)?
8. Is there a way to switch its behavior between one of the following
options: Appear upon typesetting (i) always; (ii) upon error; (iii)
never; (iv) and close when typesetting is finished?
9. In case there is no way to switch the behavior, would it not be a
desirable feature? Would it be possible to include in the LaTeX
bundle by default?
10. Are there any advantages to display the results formatted as
HTML? Would it not be more appropriate (faster) to make it plain text?
And, finally, I have a few questions concerning the interaction with
PDFView. Let me start with a few comments again. First of all, I find
PDFView a really nice tool! Thanks to the developers! It just feels
right. Simple, with a clean interface. The only "complaint" that I
have (which is not really one) is that having two applications
interact still feels more clunky than TeXShop's integrated
solution ... I wonder whether there is any chance to see a PDF
Previewer with some basic LaTeX specific functionality (pdfsync,
click-to-magnify etc.) included in Textmate?
In any case ...
11. How am I supposed to view the current selection/cursor position
in Textmate in PDFView? Sometimes (and really not always), selecting
a word and hitting Ctrl-Opt-Cmd-O seems to work. Is there a better
way? For example, one without previously selecting something, or a
simple Cmd-click?
12. Why does it sometimes fail to take me to the correct paragraph
(showing the page PDFView had previously shown)? Is this a
shortcoming of pdfsync?
Again, excuse me for this laundry list of questions.
Thank you in advance for your answers, a big Thank You to the
Textmate/Bundle/PDFView developers for providing such great tools,
and I wish you all a Happy New Year.
Holger
__
ETH Zürich
Department of Materials
Wolfgang-Pauli-Str. 10, HCI H515
8093 Zürich, Switzerland
Phone: (+41) 1 633 6474
Fax: (+41) 1 633 1390
Email: frauenrath(a)mat.ethz.ch
Web: http://www.polychem.mat.ethz.ch/frauenrath/
I just made some structural changes to the completion commands in the
LaTeX bundle, both bibliography and label. It might be a bit slower,
and more importantly I might have broken some stuff. So those of you
brave enough to try it out, and without a paper deadline in 3 days,
please update via svn (both the bundle and the global support
directory) and let me know if you encounter any problems.
The reason for this change was to remove the large amount of code
duplication that existed in these commands.
Haris
Has anyone made a language grammar for editing TWiki in TextMate? It
would be quite cool to edit my entires in Textmate rather than using
the edit field in the web browser.
--
James Milne
Hi fellow TextMaters,
Every time I post to my WordPress blog I get this error[1] on the
first line of my .blog.markdown file. The post is ok on WP, so no big
deal but still annoying.
[1]: /Library/Application Support/TextMate/Support/lib/plist.bundle:
warning: already initialized constant EPOCH
Any idea about his?
Thanks for your time.
--
FredB
Hello everybody,
one more thing: Did anybody else observe the following strange behavior:
When I hit Ctrl-Opt-Cmd-O to view the file in PDFView, and then I
choose to just close the PDF file in PDF view, the corresponding
Textmate window is blank! The text is gone, the cursor in the first
line, no scroll bar! Re-opening the file brings back the text.
Holger
__
ETH Zürich
Department of Materials
Wolfgang-Pauli-Str. 10, HCI H515
CH-8093 Zürich, Switzerland
Phone: (+41) 1 633 6474
Fax: (+41) 1 633 1390
Email: frauenrath(a)mat.ethz.ch
Web: http://www.polychem.mat.ethz.ch/frauenrath/
Haris: you mentioned that a command using a mouse
is unacceptable. I do not understand this and I
am intrigued, would you elaborate?
I also hate the mouse and love the keyboard, as
any other respectable geek. But this is only because
keyboard is much faster and much more accurate.
But I have no ideological stance against the mouse.
If at some point I find that using a mouse is much
more convenient for some purpose, I use it
immediately. E.g., I would not draw a
picture using the keyboard (neither would you
I guess).
So the point with the interface for labels is exactly that
I feel the keyboard is not the faster tool for the task;
clicking in a nice list is indeed faster. I should also
mention that I proposed to the PDFView's brilliant
developer (Andrea Bergia) to implement a click-on-
the-formula feature (you click on the formula in pdf
and the \ref is inserted in the tex file...)
Piero
Hi Textmate gurus,
I have only been messing around with Textmate for a few days now, but
I am incredibly impressed, and I can see why it is called "the" text
editor for Mac.
I had been using TeXshop for LaTeX (which is still a great program,
but not nearly as powerful as Textmate), R.app for stats and
numerical programming in R, and the X11-based idlde for IDL
programming, and now I am glad to be switching to Textmate for all
those needs.
One thing I am having trouble with, however, is getting the html R
help to appear. When I select a valid R command (one for which help
(command) in R would bring up the html help page for that command),
no help file opens, and the returned tool tip says:
/tmp/temp_textmate.eOPTfa:8:in `require': No such file to load -- /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/
current_word (LoadError)
from /tmp/temp_textmate.eOPTfa:8
I am no scripter, but I looked in the bundle editor at this command,
and it is a pretty serious looking ruby script. Will I have to learn
ruby to figure out what is going on here? or is it possibly
something much more simple that I am overlooking?
The first few lines of the ruby script (after the shebang and a
comment) are as follows:
require "#{ENV["TM_SUPPORT_PATH"]}/lib/exit_codes"
require "#{ENV["TM_SUPPORT_PATH"]}/lib/escape"
require "#{ENV["TM_SUPPORT_PATH"]}/lib/web_preview"
require File.join(ENV["TM_SUPPORT_PATH"], "lib/current_word")
require 'base64'
now, I don't know anything about ruby, but I am guessing that these
are perhaps some environment variables that I need to set in the
Textmate preferences? If so, what is the proper way to assign more
than one location to the TM_SUPPORT_PATH variable? do I simply put a
colon between each absolute path name? If so, that takes care of the
first three lines, but the last two are still a mystery to me.
If anyone could get me going in the right direction here, I would me
most appreciative. Like I said before, I am no sctipter, other than
the occasional shell script, but one of the really appealing aspects
of Textmate is that it seems like a good way to learn about scripting
through useful examples. If the solution to my problem is to learn
enough ruby to understand what the script does so I can troubleshoot
it, so be it, but in the meantime I wonder if there is a simpler
solution?
Thanks,
Paul