Hi,
I'm sure this will sound like a very simple question, but I am trying to
save a macro using Textmate2. I can record it, I can run it immediately,
but there is no macro submenu with saving options. As I say, I guess I am
being stupid, but where can I go to save it?
Thanks
Dom Guinness
How about add a 'Go to bookmark' popup window just like the 'Go to Symbol'
window, and can navigate bookmarks of current window and current project.
--
Yuan Jiang
http://blog.vetcafe.nethttp://twitter.com/sleetdrop
Hi,
I was wondering whether it would be possible to include some more info when
latex complains about errors. The main point is that the line number that
latex gives you (and what is displayed in the Textmate error window) can
sometimes be way off, especially when you have a lot of code and the error
is many lines above this line.
For example, if I compile the following beamer document
-----
\documentclass{beamer}
\begin{document}
\begin{frame}
a
b
c
\unknown
d
e
\end{frame}
\end{document}
-----
then Textmate tells me
-----
Latex Error: ./test.tex:17 Undefined control sequence.
-----
which corresponds to "\end{frame} ". The error is obviously in line 12
because of the unkown command \unknown.
It is not hard to see that when you have a lot of complicated math,
tracking down a single typo can sometimes be very painful...
I realize that getting the exact line number for such an error is
difficult, but since the latex log already indicates that \unknown is
unknown,
-----
...
./test.tex:17: Undefined control sequence.
\beamer@doifinframe ...par b \par c \par \unknown
\par d \par e \end
{beamer...
l.17 \end{frame}
-----
it would make life a lot easier if this is visible in the log window of
Textmate too.
So, would it be possible to include, for example, these last two lines in
the Textmate error window too?
Hi All,
Just a quick report in hopes of helping someone else facing this problem:
Textmate binds Cmd-Opt-Ctrl DownArrow to scrollLineDown. I use this keystroke and it's counterpart for scrollLineUp frequently.
After upgrading from Snow Leopard to Mountain Lion I started getting a system alert sound (beep, pop, funk, as set in System Prefs) when using this keystroke and no scrollLineDown action in TextMate.
Long story short is that Xcode 4 eats that keystroke even when it's not running.
Fix is to open XCode, open Preferences > Key Bindings, and set the key binding for 'Jump to Previous Counterpart' to something other than Ctrl-Cmd DownArrow. This causes the inferred key binding for 'Jump to Previous Counterpart in Assistant Editor' to change from Cmd-Opt-Ctrl DownArrow to Opt NewKeystroke.
For example, setting 'Jump to Previous Counterpart' to 'F19' causes 'Jump to Previous Counterpart in Assistant Editor' to change from Cmd-Opt-Ctrl DownArrow to Opt F19.
I needed to reboot before it took effect, but that ended up doing the trick :)
Might also work in Lion, I'm not sure what version of Xcode that shipped with.
Hope that's a help to someone in future :)
Best,
Steve
In brief, does anyone know the font that's used for the Markdown Bundle's Preview window?
And the different (serif'd) font used to print the preview? Can it be changed?
tia, DW
Hi,
The MediaWiki bundle in TextMate 2 has a feature that when I type:
Line1
Line2
It automatically reindents to:
Line1
Line2
Despite that I explicitly typed the two spaces.
I find this rather annoying. I'm trying to turn this feature off.
The only thing about indentation I can find is in the bundle, Settings:
Folding:
foldingIndentedBlockStart = '^=+\s+';
foldingIndentedBlockIgnore = '^(?!=+\s+)';
But even when I remove these lines, the feature is still there. Anyone
has an idea what may cause this behaviour and turn it off?
I'm also fine with any option that turns off auto-indenting off
globally, like there was in the Preferences for TextMate 1 (I usually
find it more annoying than useful).
Thanks,
Freek
First I created a plain-text doc with some Markdown "markup"; my default font is Monaco. Then I used Bundles > Markdown > Preview, and got a very nice window created with some unkown (to me) sans-serif font. I used cmd-P to print this, and was surprised to find the printout used some strange (to me) serif'd font. Same of course if I opted to print to pdf.
So as an experiment I tried adding my own <style> ... </style> containing Verdana to the doc. Unsurprisingly the html was ignored by Markdown > Preview, still had the nice ss font in that window, and print still used the strange serif'd font. No surprises there really.
Next, I could get the html handled by using Bundles > HTML > Open Doc in Running Browser(s). No surprises there.
Finally I tried altering Preferences > Fonts & Colors. This affected the source doc of course, but again made no difference to Markdown Preview or to Print.
So what are the mysterious fonts used by Markdown Preview and Print? I'd like to know what the "nice" sans-serif font used by Preview is, the only clue I can offer is that a capital M has sloping sides.
But above all, what is this mysterious serif'd font used when I print the Preview window, and can I replace it?
David Whitford
On 05.11.2012, at 21:00, textmate-request(a)lists.macromates.com wrote:
> Bottom line: I enjoy much faster TeXing when adding the apparently superfluous extra-line at the beginning. For principal reasons I would like to get rid of this extra line, and understand what is going on.
This is a bundle problem, if I pdflatex your example (the TeXLive 2011 version), it compiles correctly.
I usually separate my documentclass from the packages I frequently load as they are usually the same while the documentclass depends on the specific document. E. g. I would sometimes use scrbook instead of scrartcl or the cls file from the journal I intend to publish in. Furthermore, I am loading my standard packages as a package (change the file extension from .tex to .sty and load your standard packages via \usepackage{file}). The advantage is that you can modularize your standard includes file further, e. g. you can load hyphenations.tex via that .sty file while this is not possible if you use \input (\input does not allow nested uses of \input).
> A final remark: Is there a way to adjust some preferences of the speedier LaTeX bundle? For instance: I would like to have the typesetting window not to be kept open (very annoying); I would like not to have activated the reading bar in Skim.
What do you mean by »reading bar« in Skim?
Max
Dear Hans,
I have a hard time following your explanation, especially of the word »bundle«, because I'm not certain whether that refers to LaTeX packages or one of TextMate's LaTeX bundles. The initial problem you describe has *nothing* to do with TextMate: it appears your file was saved in the wrong encoding (not applemac), so latex cannot decipher non-ASCII characters such as umlaute or accented characters. By default, TextMate and pretty much all other editors use UTF8, hence my advice to *change* the argument for when you load the inputenc LaTeX package to UTF8:
\usepackage[utf8]{inputenc}
If you comment out this usepackage command, pdflatex will not be able to correctly render non-ASCII characters (e. g. ä, ö and ü).
Unfortunately the problem with the example code you've included is that it cannot be used to detect problems with file encodings. But the mail you've sent indicates that it's just a file encoding problem that's easy to solve (e. g. the umlaut for »für« was not copied correctly from your text editor). I think what you've been missing is Step 2 below.
I recommend you the following:
(0) Open the problematic .tex file in TextMate
(1) Change \usepackage[applemac]{inputenc} to \usepackage[utf8]{inputenc}.
(2) Select Save As from the File menu and make sure that UTF8 as file encoding is selected. Then proceed to save the file as text.tex someplace else. This way any experiment with LaTeX will not destroy work.
(3) Try to compile the document.
Note that if you load other LaTeX files via \include{filename.tex} or \input{filename.tex}, check that the other files are also all saved in the correct encoding, UTF8!
If it doesn't work out, please include the content of test.log (in general: [document name].log) in your next post.
Max
On 28.10.2012, at 21:00, textmate-request(a)lists.macromates.com wrote:
> When trying to typeset a letter, where my preamble looks different and has the following line in it:
>
> \usepackage[applemac]{inputenc}
>
> the typesetting window will claim a problem with respect to this line:
>
> "inputenc.sty:40: [...]"
>
> When I comment out the \usepackage-line in the source, typesetting proceeds successfully (and VERY fast), though all special characters get omitted (to be able to use German umlaute like ?, etc is what the inputenc package should provide for).
I suspect your file has been saved as UTF8 (which you should use if at all possible anyway). So change the inputenc argument to
\usepackage[utf8]{inputenc}
and recompile. In my experience, UTF8 works best, but if you have cross-platform collaborators, you may need to work in latin1. I would strongly discourage you from using applemac encoding this day and age.
Max
Hi,
I will appreciate tremendously if you help me with my problem.
I built Textmate 2 in my Mac (OSX 10.8.2). I have TeX Distribution
TeXLive-2012 installed. When I try to compile a LaTeX file I get the
following error:
Failure running “Typeset & View (PDF)”.
Typeset & View (PDF):4: undefined method `+' for nil:NilClass
(NoMethodError)
Do you have any suggestions?
Best,
Bogac
--
View this message in context: http://textmate.1073791.n5.nabble.com/Textmate-2-LaTeX-tp25947.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
This is probably an easy question. I'm using Mads Hartmann Jensen
whitespace bundle (git clone
https://github.com/mads379/Whitespace.tmbundle.git) that "adds the
scopes invalid.illegal.whitespace.trailing to all trailing whitespace
and invalid.illegal.whitespace.mixed to all occurrences of mixed
spaces/tabs". This shows up fine in some themes (all the core themes
work) but not some other themes, specifically solarized (light). How
would I add a background colour to solarized to reflect that? I tried a
couple of things but not got it to work. Any pointers gratefully
received.
Thanks
Alex
--
-------------------------
http://zero-dev.co.uk
alex(a)zero-design.info
mob. +44 (0) 785 216 7005
Hi,
as you sure now there a couple of (forked) LaTeX bundles providing speedier TeXing than TM’s standard (bundled?) LaTeX bundle.
Alex Ross (lasersox)’ bundle was first, now there are Adam Strzelecki (nanoant)’s, as well as Paul Hagstrom’s. You can find them, respectively, here:
https://github.com/lasersox/latex.tmbundlehttps://github.com/nanoant/LaTeX.tmbundlehttps://github.com/paulhagstrom/LaTeX.tmbundle
Now, while they seem indeed to be significantly faster than the standard LaTeX bundle, with all three of them I run into the following (presumably very same) problems:
When there is a line with an \input command in the tex-file, like:
"\input{praewide_TM}"
there shows up in the typesetting window an (apparently) error. The error message is not very verbose, just a line noting:
"praewide_TM.tex:1: \documentclass[a4paper]{".
("praewide_TM.tex" is the name of my preamble-file, which is supposed to get linked in; praewide_TM.tex contains, among other things, the line "\documentclass[a4paper]...". This works with TM’s LaTeX standard bundle as expected. It also works with TeXShop, for instance.)
I take it to be an error message (it nowhere says "error", or something to that effect), but if some such line shows up in the typesetting window, then there is no pdf output produced. If I manage to get rid of any of these lines noting some input, then tex’ing succeeds and a pdf output is indeed produced.
When trying to typeset a letter, where my preamble looks different and has the following line in it:
\usepackage[applemac]{inputenc}
the typesetting window will claim a problem with respect to this line:
"inputenc.sty:40: [...]"
When I comment out the \usepackage-line in the source, typesetting proceeds successfully (and VERY fast), though all special characters get omitted (to be able to use German umlaute like ä, etc is what the inputenc package should provide for).
So, is there a problem with the speedier LaTeX bundles as regards the preamble’s structure or content of the files to be tex’ed?
Sorry, I cannot really analyze or actually make sense of this behaviour, so I was hoping for some enlightment through the mailing-list.
Thanks for any hints about how to tackle this. I really would love to use the speedier bundles.
Best,
--Hans
Hi!
I had the same problem as described in a post from Sebastian on
2007-11-11 (http://thread.gmane.org/gmane.editors.textmate.general/
23160).
Here is my error output:
Running bibtex on Exjobb (ny).tex
Traceback (most recent call last): File "/Users/peeter/Peeterprogram/
TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/
texMate.py", line 457, in texStatus, isFatal, numErrs, numWarns =
run_bibtex(texfile=fileName) File "/Users/peeter/Peeterprogram/
TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/
texMate.py", line 71, in run_bibtex return stat,fatal,err,warn
UnboundLocalError: local variable 'stat' referenced before assignment
It seems that it had to do with the parentheses in my filename messing
up the regexes.
My solution was to change lines 71 and 72 in Textmate.app/Contents/
SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py as follows:
# auxfiles = [f for f in os.listdir('.') if re.search('.aux
$',f) > 0]
# auxfiles = [f for f in auxfiles if re.match(r'('+ basename +
r'\.aux|bu\d+\.aux)',f)]
auxfiles = [f for f in os.listdir('.') if re.search('.aux$',f)
> 0 and (f.startswith(basename) or re.match(r'bu\d+\.aux', f))]
This works, at least for me.
Or have I messed something else up in the process?
/Peeter
I installed TextMate2 from a binary package (TextMate_r9294_10.6.tbz) and when I try to add a theme or bundle, or update runs, I get the following error(s)
Anybody knows how to fix that?
10/25/2012 25 Oct 17:21:08 [0x0-0xa74a74].com.macromates.TextMate.preview[35330] *** error downloading ‘http://updates.textmate.org/Bundles/Bundle%20Development.tbz’: Unknown signee: ‘org.textmate.msheets’.
10/25/2012 25 Oct 17:21:10 [0x0-0xa74a74].com.macromates.TextMate.preview[35330] *** error reading key
10/25/2012 25 Oct 17:21:10 [0x0-0xa74a74].com.macromates.TextMate.preview[35330] *** error downloading ‘http://updates.textmate.org/Bundles/Bundle%20Support.tbz’: Unknown signee: ‘org.textmate.msheets’.
10/25/2012 25 Oct 17:21:11 [0x0-0xa74a74].com.macromates.TextMate.preview[35330] *** error reading key
10/25/2012 25 Oct 17:21:11 [0x0-0xa74a74].com.macromates.TextMate.preview[35330] *** error downloading ‘http://updates.textmate.org/Bundles/Hyperlink%20Helper.tbz’: Unknown signee: ‘org.textmate.msheets’.
--
Jan Hendrik Mangold
"idle hands are the developers workshop"
Bug: Doesn't work as documented.
Feature: Works as expected but not documented to do so.
Miracle: Works as documented.
This will be a very stupid question, sorry, but what key combination is
the one that for the source package 'continues the line comment'? I
have never seen it anywhere else, so I don't know what to press. ;)
It looks a bit like the symbol for pressing the Control key, but with a
dash as a roof.
Thanks for your help,
Michael
Have used the JewelryBox ruby gem to set up rvm and download, manage Ruby
1.9.3
Then went into TextMate prefs to set up shell variable and path to Ruby
1.9.3 at /usr/local/rvm/bin/textmate_ruby then added "puts RUBY_VERSION" at
top of file.
But when I run the file, the output is 1.8.7, which is the system version
of Ruby.
Any idea how to fix this situation?
Thank you.
Hello,
I have a latex file that uses mint and pygments and I wish to textmate to
build it with the -shell-escape flag.
Is that straightforward? I've looked at editing the latex bundle, but it
doesn't seem as straightforward as running a command?
Thanks,
Ian
sure, this is the common behaviour but then this statement does not make
any sense,
or more there seems to be a special handling for this case..
TM_LATEX_MASTER = '${CWD}/document.tex'
or am i missing something ?
best
david
Hello,
recently I've been trying different things with project-related
tm_properties files. To help me better understand what I'm doing, could
anybody please explain the background behind different kinds of quotation
marks like " or ' ?
For example it took me some time to figure out that while
projectDirectory = "$CWD"
uses " marks, setting of a variable afterwards
TM_LATEX_MASTER = '${CWD}/document.tex'
will only work properly if ' is used (at least it didn't work for me with "
when doing the LaTeX run from subdirectories).
What is the technical difference between those " and ' ?
Thanks,
d'Alembert
--
View this message in context: http://textmate.1073791.n5.nabble.com/tm-properties-Question-tp25916.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
When coding in Ruby in TM1, if I typed @string somewhere, when I
needed string or :string somewhere else, I could type str and use Esc
to complete the word. In TM2 I cannot, and to me this is a big
regression.
Can I revert this behavior? If so, how? Also, if it is standard for
other languages, can I revert the behavior globally?
Thanks in advance.
--
:: dip
--