Is there a reason TextMate copies mate into the user's $PATH instead of
just making a symlink to the command inside the Application's resources?
What dangers do I run if I do decide to symlink it? (As part of a system
configuration bootstrap script. I could copy it, but it would be a little
more work.)
Thanks,
Neil.
Hi LaTeX users,
I'm working some more on the Typeset and View command, we are going to replace the default command that currently ships with TextMate. But I need some information. What process are TextMate's LaTeX users following for building their documents? I'm sure most of you are using bibtex, but what about other things like makeindex? Has everyone moved to a pure pdf-based process, or are some of you still using dvi/postscript? What are you using for pictures? Anything you can tell me will help.
I would also *love* example documents along with the expected output. This will aid in testing, and ensure that your particular process will be supported!
Thanks,
—Alex
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