…gives me the following on Konsole:
2006-06-19 07:56:01.918 TextMate[13929] removeBundleItem: delete /
Users/dekay/Library/Application Support/TextMate/Bundles/
daniel.latex.tmbundle/Snippets/\subsubsection .. (ssub).plist (Sub
Sub Section (ssub)), success YES
2006-06-19 07:56:01.919 TextMate[13929] removeBundleItem: delete /
Users/dekay/Library/Application Support/TextMate/Bundles/
daniel.latex.tmbundle/Snippets/\subsubsection .. (ssub).plist (Sub
Sub Section (ssub)), success NO
Is it normal that a delete action creates two lines of output like this?
Dan
Hello. I'm interested in modifying the LaTeX Article template. The
Article template (from Edit Templates) uses a perl one-liner to
import a file called "article_in.tex," where, I assume, most of the
interesting stuff lives. I can't for the life of me find
"article_in.tex." Where is it? (And the metaquestion, I guess, is
"if I want to make substantive changes to the latex article template,
is editing article_in.tex in fact the right thing to do?)
this is the default latex article template code, BTW:
if test \! -e "$TM_NEW_FILE"; then
TM_YEAR=`date +%Y` \
TM_DATE=`date +%Y-%m-%d` \
TM_USERNAME=`niutil -readprop / /users/\$USER realname` \
AUTHOR_ADDR=$(RA="defaults read AddressBookMe"; cat <<EOA
`$RA FirstName` `$RA LastName`
\\\\ `$RA StreetAddr1`
\\\\ `$RA StreetAddr2`
\\\\ `$RA ZipPostal` `$RA City`
\\\\ `$RA Email`
\\\\ http://www.xxx.yyy/mysite.html
EOA) \
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
< article_in.tex > "$TM_NEW_FILE"
fi
thanks for your help.
--andreas
I just uploaded a new GTD sort command as part of the GTD bundle.
The code may not be pretty, but I think it works. To use it, you
need to create a contexts.gtd file in your GTD project. This file
holds the contexts that the sort function uses to sort a file. There
are several items in the file that don't do anything yet, but I'm
hoping to keep the file stable as I add functionaility. As always,
feedback is encouraged!
Alaskamike
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am working on a command to sort my GTD list by context. The
problem I have is that if I have not saved the file, the command
sorts the saved version of the file instead of what's currently in
TextMate. How do I select the current file instead of the saved
file? Thanks.
Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFElJFT4oDM7Rgs0h0RAonEAJ4pIraMScWW5vqOBL9izTSY9oY0JwCguPB1
Pe6tfT9vMkfEpKBFKbQQ4IA=
=czuY
-----END PGP SIGNATURE-----
Dear All,
I get the following error when running Convert Document / Selection
to LaTeX on a MultiMarkdown document:
/Library/Application%20Support/TextMate/Bundles/Markdown.tmbundle/
Support/xhtml2latex.xslt:829: parser error : StartTag: invalid
element name
<<<<<<< .mine
^
/Library/Application%20Support/TextMate/Bundles/Markdown.tmbundle/
Support/xhtml2latex.xslt:829: parser error : StartTag: invalid
element name
<<<<<<< .mine
^
/Library/Application%20Support/TextMate/Bundles/Markdown.tmbundle/
Support/xhtml2latex.xslt:829: parser error : StartTag: invalid
element name
<<<<<<< .mine
^
/Library/Application%20Support/TextMate/Bundles/Markdown.tmbundle/
Support/xhtml2latex.xslt:829: parser error : StartTag: invalid
element name
<<<<<<< .mine
^
/Library/Application%20Support/TextMate/Bundles/Markdown.tmbundle/
Support/xhtml2latex.xslt:829: parser error : StartTag: invalid
element name
<<<<<<< .mine
^
/Library/Application%20Support/TextMate/Bundles/Markdown.tmbundle/
Support/xhtml2latex.xslt:829: parser error : StartTag: invalid
element name
<<<<<<< .mine
^
/Library/Application%20Support/TextMate/Bundles/Markdown.tmbundle/
Support/xhtml2latex.xslt:829: parser error : StartTag: invalid
element name
<<<<<<< .mine
^
compilation error: file /Library/Application%20Support/TextMate/
Bundles/Markdown.tmbundle/Support/xhtml2article.xslt line 38 element
import
xsl:import : unable to load /Library/Application%20Support/TextMate/
Bundles/Markdown.tmbundle/Support/xhtml2latex.xslt
Any ideas? Thanks.
All the best, Mark
I've been wanting to try my hand at bundle writing for a few weeks,
and this morning I began tinkering with what could possibly grow into
a reStructuredText bundle.
The first thing I attempted to figure out was how to recognize the
section titles in reStructuredText. From the language specification
(http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.htm):
Sections are identified through their titles, which are marked
up with adornment: "underlines" below the title text, or
underlines and matching "overlines" above the title. An
underline/overline is a single repeated punctuation character
that begins in column 1 and forms a line extending at least as
far as the right edge of the title text.
For example:
A Title
-------
=============
Another Title
=============
Not a title
-----
==================================
Don't think this is a title either
==================================
It isn't clear to me how to capture these patterns with the language
grammar match rules, or indeed if it is even possible with the
current TextMate toolset. It doesn't seem like 'match' can work for
a multi-line pattern such as any of the above, and I haven't figured
out how one can use 'begin/end' to match a 2 or 3 line rule
(underline or overline/underline) but exclude things which don't match.
Is it possible? I freely admit that it's been quite a few years
since I've taken a compilers class (or tried to do a language-parsing
type thing), so I apologize if I'm missing something obvious.
The Markdown language (which I've never personally used) has a
similar underline mechanism for specifying headings, but it looks
like the Markdown TextMate bundle heading rule only captures the
underline and not the heading text. For example, a Markdown heading
and scopes:
A heading <= meta.paragraph.markdown, text.html.markdown
========= <= markup.heading.1.markdown, text.html.markdown
Thanks for any insight!
--
Matt Anderson
Is it possible to add entries to or edit the menu that appears when
one right clicks or control clicks in the text editing area of the
TextMate window?
I'd like to see a "Look [highlighted word] Up in Dictionary" command
like that found in Safari / TextEdit / Mail / etc under Tiger. I
know that there is a TextMate (applescript) command mentioned on the
wiki which can do something similar with a key equivalent, but I'm
used to the consistent interface to do this across these other
programs, and I'd love to have the same interface in TextMate.
Thanks!
--
Matt Anderson
e.g. for enum inserts the following:
\begin{enumerate}{:\label{enu:\}}
\item
\end{enumerate}
please note the ":" which are not very useful and make LaTeX go angry
at you.
Please change this line in the snippet:
zeroLineToPrint = "\\begin{#{name}}{$1:\\label{#{labPrefix}:$2\\}}"
to:
zeroLineToPrint = "\\begin{#{name}}{${1:}\\label{#{labPrefix}:$2\}}"
Dan
hiya (aka, howdy)
The CSS language syntax it for full css, with the tags and classes
and stuff.
CSS embedded into html tags with the style="" business isn't scoped
all fancy at all.
You can't just import the normal CSS language into there because it
expects all of the tags and curly brackets craziness.
My plan is to split out the part of CSS that could be imported into
HTML, the actual rules part. Then, import that into the CSS language
and the HTML language.
Is there a better way to do this?
I think it'd be silly to not DRY it up properly, and i'm sick of not
having all fancy CSS stuff in my style="" attributes.
thomas Aylott—subtleGradient