On 04/09/07, Clover <antikraft(a)gmail.com> wrote:
> Seems like I am having problems updating my LaTeX bundle.
> I have been trying to update my bundles using the script at
> http://blog.bleything.net/2006/10/15/keeping-textmate-bundles-up-to-date-wi…
> and also the GetBundle bundle, but I don't think my bundle gets updated.
> The former script when doing the update says "* LaTeX: bundle exists,
> updating
> * updated to " without saying the version number to which it was updated
> — makes me think that there was an update failure (a similar thing
> happens to the "Text" bundle during updating.
I'm afraid I don't know what the problem is. I've never used either
that script or GetBundle. I hope somebody else will be able to help.
(You could always try
http://macromates.com/wiki/Troubleshooting/RevertToDefaultBundles then
updating again, to see if that helps.)
Robin
Here is an example of a code block that is processed correctly by markdown,
but is not correctly scoped in TextMate.
* level 1
def test():
pass
The def test() line should be scoped markup.raw.block.markdown, but instead
is meta.paragraph.list.markdown. According to Gruber: To put a code block
within a list item, the code block needs to be indented *twice* — 8 spaces
or two tabs: The spec doesn't say, but if you put a code block inside a
level 2 list then you have to indent your code 12
Brad
--
Brad Miller
Assistant Professor, Computer Science
Luther College
Hello,
When I use the "Typeset & View" command from the Latex bundle I get
the following error:
Traceback (most recent call last):
File "/Applications/TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py",
line 299, in <module>
tmPrefs = tmprefs.Preferences()
File "/Applications/TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/tmprefs.py",
line 18, in __init__
self.prefs.update(self.readTMPrefs())
File "/Applications/TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/tmprefs.py",
line 39, in readTMPrefs
plDict = plistlib.readPlist(pl)
File "/Applications/TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/newplistlib.py",
line 77, in readPlist
rootObject = p.parse(pathOrFile)
File "/Applications/TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/newplistlib.py",
line 402, in parse
parser.ParseFile(fileobj)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line
634, column 17
I Googled and found a posting with a similar problem:
http://www.nabble.com/-BUG--Latex-Bundle-t4317028.html. Brad Miller
replied with a suggestion to check out /tmp/tmltxprefs.plist - I did,
and found a line with some weird characters that are probably to
blame. Here are lines 632-641:
<dict>
<key>command</key>
<string>grep '
[Extreme newbie alert]
I have been hearing about the Latex Watch setup which sounds like a
dream. However, couldn't find any directions for setting it up.
Any pointers?
Thanks!
Raheel
Hi
asking for help
I have the next code for to eat the spaces behind the cursor (with
Shift and FwdDel). My problem is I know only how to move around the
current line but not how to go beyond and eat also new lines in order
to reach the start of the next line.
#!/usr/bin/env ruby
sel = ENV['TM_SELECTED_TEXT']
if sel != nil
sel = sel.dup
sel.gsub!(/\s/, '')
print sel
exit 0
end
left = ENV['TM_CURRENT_LINE'][0, ENV['TM_LINE_INDEX'].to_i]
right = ENV['TM_CURRENT_LINE'][ENV['TM_LINE_INDEX'].to_i .. -1]
right.gsub!(/^\s+/, '')
print left + right
I have found the env vars
TM_CURRENT_LINE'
TM_LINE_INDEX
TM_LINE_NUMBER
TM_INPUT_START_LINE
but it is not evident for me how to know the whole text before/after
the cursor.
Any idea will be welcome.
I recently had the following problem: I needed to move the contents of my
footnotes in a latex document to parentheses in the main text. I.e. search
and replace \footnote{......} capturing the contents of the footnote etc.
My problem was that \footnote could contain other latex commands, so that it
was not possible simply to search using the braces. I needed some way to
search and replace using matching braces. Is that possible?
Textmate is very good at working out which close brace goes with which open
brace, but as far as I can see that ability is not available when doing a
search and replace. Is that right?
Best wishes,
N
hi brad,
here is a serious tex-code error which apparently goes unnoticed by
the error parsing mechanism of typeset & view:
from the log file:
======
Runaway argument?
\a . \begin {treetab}[t]{ccccc} & \Node {}{NP}\\[3ex] \Node {l}{} &&
\ETC.
./kula-cheng.tex:788: Paragraph ended before \ex was complete.
<to be read again>
\par
l.788
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
======
typeset & view window:
Found 0 errors, and 2 warnings in 1 runs
wat is missing in the tex code is a closing } in this kind of tabular
environment (which produces syntax trees as used in linguistics).
because of this the entire object gets dropped.
BTW: the revised typeset & view (with the buttons in the typeset &
view window) is fabulous, thanks a lot for your work!!
christoph
I've installed the getBundle bundle and the autoupdater.
the autoupdater announces a failure and the update installed bundles
causes this to be logged:
Skipped 'CSS(plus).tmbundle'
Skipped 'CSS.tmbundle'
svn: REPORT request failed on '/svn/Bundles/!svn/vcc/default'
svn: Target path does not exist
svn: This client is too old to work with working copy '/Users/
tonycrockford/Library/Application Support/TextMate/Support'; please
get a newer Subversion client
launchd[91]: com.macromates.textmate.bundleupdate: exited with exit
code: 1
launchd[91]: com.macromates.textmate.bundleupdate: 8 more failures
without living at least 60 seconds will cause job removal
can anyone suggest where to start fixing this?
cheers
Is there a key combination for selecting a line (or lines) of code in a tag but
omitting leading and trailing spaces and tabs? I'm familiar with the Shift-Cmd-L
shortcut, but it leaves in the whitespace. This makes a mess of indented HTML
when I'm using the Ctrl-Shift-W and Ctrl-Shift-Cmd-W HTML shortcuts.
In other words, if I apply the combination Shift-Cmd-L followed by Ctrl-Shift-W
to this line:
Here's a paragraph!
I get this:
<p> Here's a paragraph!
</p>
instead of what I want, which is this:
<p>Here's a paragraph!</p>
Obviously I could use the mouse to select only the correct part, but I was
hoping there might be a keyboard shortcut.
If it's best to create my own macro using Regular Expressions, any pointers as
to how to get started would be helpful.
Many thanks!
jon
I'm trying to write a command that reformats Python triple-quoted
(""") strings. The scope of such strings is:
source.python string.quoted.double.block.python
when I create a command that has:
Input: Selected Text or Scope
and said scope as the Scope Selector, then run the command with the
cursor inside a triple-quoted string, the entire document is fed to
the command instead of just the triple-quoted string (the current
scope).
I've confirmed the scope via TM_SCOPE. Clearly I have the Scope
Selector correct else my command wouldn't be activated (I've bound it
^Q).
Any ideas?
j.