I just discovered the "Edit each line in selection" feature. It works
great... for adding something to the end of the line. But how do I add text
to the beginning of the line?
Thanks!
Justin
Hi
A Friend of mine hast a big problem with typesetting in TextMate.
When he uses TeXShop for EXACT the same document everything is fine.
But from within TextMate he gets the following error message with an
"Open"-Dialog popping up:
Typesetting: ./unitlted.tex)
(/usr/local/gwTeX/texmf.texlive/tex/context/base/supp-pdf.tex
Output written on untitled.pdf
Viewing the PDF file with "Preview" works but not the preview in TextMate
:-O
What shall we do?
Thanks for your help!
--
View this message in context: http://www.nabble.com/LaTeX-Typesetting-Problem-tf3281363.html#a9127219
Sent from the textmate users mailing list archive at Nabble.com.
>> [...] Is there a keybinding or some other default I can set to
>> make PageUp/Down actually move one page up/down based solely on
>> the visible lines, not the location of the caret? (Move PageUp/
>> Down would then, either re-center the caret on the new page or
>> place it at the same relative location.)
>>
>
> The default behavior is to move exactly one page up/down without
> moving the caret (look at the scrollbar for the exact distance moved).
>
> You can change it e.g. to move the caret as well [1]. Could it be,
> that you already changed this, but moved the movePageUp:/
> movePageDown: selectors? If so, you get a third behavior, where
> caret will first move to the screen boundaries, and then move a page.
>
>
> [1] http://macromates.com/blog/archives/2005/07/05/key-bindings-for-
> switchers/
>
I just verified my key bindings and they're at the defaults (e.g.,
PageUp binds to pageUp:). I tried binding to movePageUp: just to
verify. What I'm seeing is different than what you've described.
Perhaps I've altered some other binding, but heck if I can find it.
As long as the caret is on the center line, I get the behavior you
describe. If the caret is not on the center line then I get other
behavior. For example, if display is showing lines 283-364 (so, 82
lines per page), if the caret is on line 323 (the center) and I page
up, the windows displays lines 201-282 (that is, it's move backward
by 82 lines. However, if the caret is on line 360 (below center) and
I page up, the window displays (roughly) lines 237-319 and the caret
is on line 278. It's moving backward one page as measured from the
caret location (360 - 82 = 278) and then making that line the center.
The visual effect is a movement of more/less than a whole page
depending on how far from center you are.
It seems that Xcode and TextMate do the same, while BBEdit moves a
strict page up/down (perhaps leaving the caret outside of the visible
window). If I could request something, what I would prefer is to
always move exactly one page up/down based on the window size alone,
regardless of where the caret is. If that leaves the caret outside
the window, well, Ok. It'd be cool if the caret would land on the
same relative position on the newly displayed page (e.g., if
displaying 100-200 with caret on 175, a page down would display
200-300 with caret on 275).
Is this making sense? Are there defaults or bindings I can change to
obtain this effect?
Brendan Dixon
brendandixon(a)mac.com
425.922.8798
On Feb 22, 2007, at 8:52 AM, Nathan Paxton wrote:
> All bundles are in as they should be.
>
> Here's a screenshot. As you can see, the spellcheck is alerting
> for words in the preamble. It seems to occur with any dictionary I
> use.
>
I just committed a fix that should take care of the preamble issue
for the most part. We now match \usepackage and \documentclass
explicitly.
> Best,
> -Nathan
Haris Skiadas
Department of Mathematics and Computer Science
Hanover College
Yes, I think the problem is encoding. Textmate uses UTF8 and perhaps Final
Draft uses ASC II? Is there any way to work in TM in ASC II or perhaps there
is some way to convert the file before I import it into Final Draft. Thanks.
First, I really like TextMate. It's clean and extensible (in a nice,
well-behaved way). It has numerous features quickly becoming part of
my muscle memory.
Though, there's one aspect I can't get my intuitive head around:
PageUp/Down. Often times I feel as if I've landed somewhere quite
different from what I expected - TextMate seems to like to re-center
things or treat the current line (that with the caret) as if it were
the center line (it's often not) and move things accordingly. Is
there a keybinding or some other default I can set to make PageUp/
Down actually move one page up/down based solely on the visible
lines, not the location of the caret? (Move PageUp/Down would then,
either re-center the caret on the new page or place it at the same
relative location.)
Thanks!
Brendan Dixon
brendandixon(a)mac.com
425.922.8798
On Feb 21, 2007, at 10:13 PM, Nathan Paxton wrote:
> I don't think so.
Perhaps I wasn't very clear, either the Source bundle shows up in the
list of bundles in the Bundle editor, or it doesn't. If it doesn't
then you need to click on the Filter List... button at the bottom of
the bundle editor and enable it.
I take it you mean that you checked there and it does indeed appear,
in which case it is mysterious that you have problems. Do the
problems persist if you disable CocoAspell and use the built in spell
checker? I don't personally use CocoAspell, never found the need for
it, but perhaps it's useful. In any case, it would be helpful to know
if the problem appears only with CocoAspell, or with any spell checker.
Can you send us a screenshot showing the bad highlighting?
> I haven't done anything to those bundles except perhaps update them
> from the svn when I have updated the bundles in general.
>
> -N
Haris
Hi all,
I have TM 1.5.4 and Cocoaspell on OX 10.4.8. When I write a LaTeX
document, the spelling unit marks all my LaTeX syntax as incorrect
spelling. I've set the spelling to use the English aspell dictionary,
and everything works nicely in TeXShop, for example, but I can't
figure out what to do to get this to work in TM. Any suggestions?
Thanks.
Best,
-N
--
----------
Nathan A. Paxton
Ph.D. Candidate
Dept. of Government, Harvard University
Resident Tutor
John Winthrop House, Harvard University
napaxton(a)fas.harvard.edu
http://www.fas.harvard.edu/~napaxton
=======================================================================================================
When you have to stay eight years away from California, you live in a
perpetual state of homesickness.
- Ronald Reagan
The most courageous act is still to think for yourself. Aloud.
-Coco Chanel
=======================================================================================================
Hi!
I've got here some code with very long lines thus vertical scrolling
is necessary, while I scroll the line-numbers and folding-markers are
disappearing. Imho it would be better if those aren't disappearing
meaning that the vertical scroll-bar is only for the text-area while
the horizantal one is for line-numbers etc and text-area.
Do other ppl think the same?
Niels
We're working on a new system for tagging/searching/browsing bundles.
But, should we allow specific bundle items to be tagged too?
One purpose would be to mark something that is Mac or xNIX only.
Or something that requires some application or tool to be installed.
That way we could write a single system for dealing with requirements .
If a user tries to run a command that requires Python 2.4 or
whatever, there will be a single system for dealing with it.
Currently, every bundle item that has a prerequisite either breaks or
handles the requirements system itself.
Since bundles are becoming more and more cross-platform and being
used in more than just TextMate on a Mac, this seems like a good idea.
I know of at least two editors on Windows that are supposed to
support the TextMate Bundle formats.
Personally, I'm all for making the formats as cross-platform friendly
as possible.
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
Just a quick update: I finally got around to updating the reftex-
style citation completion command. The command should now work with
the recent updates to the latex bundle, and has been added to the
repository as Build Citation.
Cheers-
-Alan
I write my plays in Textmate and then copy and paste them into Final Draft.
What's happening is that apostraphes, quotation marks, and em-dashes (—)
become garbled, weird combination of characters.
Anyone know why this might be happening? I notice it sometimes happens when
I take text out of TM and put it into TextEdit as well.
Thanks.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Hi Dr. Drang,
Thanks, I hadn't considered using a Snippet for this.
(Ignoring some edge cases that you already mentioned), it seems to
work for normal selections, but unfortunately not for column selections.
I'm not sure how much room there is in an external program/Command to
do anything about this, but if you have some suggestions for making
it work with column selections I'd appreciate hearing them.
Strangely enough replacing each non-CR/LF character with a single
character like 'x' works for column selections, but replacing with
"$1" doesn't - that is, it seems to insert unwanted line breaks when
doing this.
Thanks,
Chris
In a PHP file, embedded code followed by punctuation or digit fails
to close scope.
For example:
<h1><?php echo $title ?><h1>
Control-Shift-P just before ?>< produces:
text.html.basic
source.php.embedded.line.html
Control-Shift-P between ? and >< or between ?> and < produces:
text.html.basic
source.php.embedded.line.html
keyword.operator.comparison.php
...and scope continues to be 'source.php.embedded.line.html' until it
hits a ?> not followed by punctuation/digit somewhere in the file.
If I put whitespace or A-Za-z after the ?> (which I can't do in some
cases, like in a filepath), the source scope closes, but its still
says 'keyword.operator.comparison.php'. Same thing happens in a multi-
line embed immediately followed by punctuation.
The HTML language bundle has a comment about "match only multi-line
PHP with leading whitespace", but even when I make the embedded php
multi-line with leading whitespace, it still fails to close without
trailing whitespace, et al.
Very annoying for me since I use different syntax highlighting for
source and text in the same document. Tried googling mailing list
archives, couldn't find another mention of this.
Ashley
Hi all,
I'm new to TM and trying to implement a Command that fills the
current selection with a character. Right now I have a simple program
that replaces every character in the current selection with a space
character (but skips CR/LF), so far so good.
main()
{
char *x=getenv("TM_SELECTED_TEXT");
char c=32; /* Space character - this is what I'd like to be able to
replace at invokation time */
for ( ;x && *x;x++) putchar((*x==10 || *x==13) ? *x:c);
}
Now I'd like it to fill the selection not just with a space, but with
a user-entered character...
Ideally I'd like to:
1) select an area of text
2) press ^F (or whatever)
3) get a character from the keyboard
4) use that character to fill the selection
How do I accomplish #3 above?
Thanks for any pointers,
Chris
I am using the latest version, and have been using it for a month or two
now.
"Latest beta build of TextMate is 1324.
You are using build 1324."
On 18. Feb 2007, at 17:05, Ulai Beekam wrote:
>To be more precise, I just found out it doesn't just happen when I press
>Cmd-R twice on a short interval. It seems to just happen now and then. But
>when it happens, if I press Cmd-R it just works fine. :S
What version of TextMate? Try upgrade to cutting edge (preferences ?
software update), there previously was a problem with comparing the
date stamp of the resulting PDF to the source file.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Hi,
Using textmate SVN I can't really see how to easily perform a project wide
commit that including picking up any new files which were created (e.g. from
generator) so they are (a) included as files to be versioned and (b) then
committed as they'll be in the commit list?
Any suggestions? (don't want to have to manually work out which files
aren't in scope for versioning and add them one-by-one).
Thanks
Greg
Hi there
I didn't use LaTeX for some time with TM and started to use it again
today. I noticed the bibliography completion stopped working. I
remember some message by Haris on the list about removing an
environment.plist file which was necessary once. So I removed the
file but didn't use LaTeX until today. Now when using escape in a
cite scope, I get a spinning beach ball and I have to kill the
command via Command-. . If I use Alt+Esc I also get the spinning
beach ball and after killing the command I get this error message:
/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:84:in
`parse_bibfile': Interrupt
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
71:in `map'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
71:in `parse_bibfile'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
193:in `cite_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
191:in `call'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
163:in `recursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
162:in `each'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
162:in `recursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
161:in `each_pair'
... 6 levels...
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
153:in `recursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
196:in `cite_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
23:in `get_citations'
from /tmp/temp_textmate.vAzA1V:8
}
Another thing, which stopped working, is the template insertion
command. When I write 'temp' and hit tab I get the following error:
sh: line 1: ls: command not found
/tmp/temp_textmate.NvRU8j:14: undefined method
So could someone please update me on the current way of making the
Bib-completion and template insertion work (variables, plist-files,
or similar) and/or maybe add it to the LaTeX help-file? I'm updating
my bundles via svn so I should have the most recent commands etc. I'm
also using the latest cutting edge build of TM.
Big Thanks in advance!
Best. Oliver
The blogging bundle image_upload method creates a tag that doesn't
validate. It is missing a slash before the closing bracket.
The diff with http://macromates.com/svn/Bundles/trunk/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb is:
--- - 2007-02-18 18:45:49.000000000 -0500
+++ /dev/fd/63 2007-02-18 18:45:49.000000000 -0500
@@ -719,7 +719,7 @@
height_width = %Q{ height="#{height}" width="#
{width}"}
end
end
- print %Q{<img src="#{url}" alt="${1:#{CGI::escapeHTML
alt}}"#{height_width}#{ENV['TM_XHTML']}>}
+ print %Q{<img src="#{url}" alt="${1:#{CGI::escapeHTML
alt}}"#{height_width}#{ENV['TM_XHTML']}/>}
end
else
TextMate.exit_show_tool_tip("Error uploading image.")
To be more precise, I just found out it doesn't just happen when I press
Cmd-R twice on a short interval. It seems to just happen now and then. But
when it happens, if I press Cmd-R it just works fine. :S
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
You should have a look at the paste service that the cakephp group built
http://bin.cakephp.org/
with this you can mark pastes to save (if you don't they last for 24
hours) then people can edit with suggestions and changes. It's
actually pretty useful. And at one point I had it hooked up to
textmate
Sam D
Hi,
I am using TextMate with TeXniscope to do my LaTeX document as was described
in the LaTeX screencasts, or at least, I'm trying to.
Whenever I do two times Cmd-R quickly in a row, I get this error:
Error: PDF file not written to disk
Why is this? It looks like I cannot do two Cmd-R too quickly because it
seems that when I press it the second time it is still reading or writing in
that PDF file or something. How can I fix this behaviour? This behaviour
does not appear in TeXShop, where I can hit Typeset as many times and as
quickly as I want.
But I still don't really want to use TeXShop anymore because TextMate offers
much quicker editing, so moving back to TeXShop is not really a real
solution.
Thanks in advance,
ulai
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/