Hi everyone,
This is a minor bug, mostly cosmetic in the LaTeX bundle. Please have a look at this screenshot :
http://img213.imageshack.us/img213/5403/image1fd3.jpg
Notice that the accented characters in the name of the section do not appear in italic in the label whereas they are OK in the last line. It probably has to do with the RegExp which is involved in the definition of this command.
guerom00 wrote:
Notice that the accented characters in the name of the section do not appear in italic in the label whereas they are OK in the last line. It probably has to do with the RegExp which is involved in the definition of this command.
You're absolutely right. It was restricted to letters, digits and punctuation characters as you would naively think it would be (that is a-zA-Z). I've modified it to allow for any kind of character now.
Updating from the repository should fix your problem.
Jeroen.
Jeroen van der Ham <jeroen@...> writes:
guerom00 wrote:
Notice that the accented characters in the name of the section do not appear in italic in the label whereas they are OK in the last line. It probably has to do with the RegExp which is involved in the definition of this command.
You're absolutely right. It was restricted to letters, digits and punctuation characters as you would naively think it would be (that is a-zA-Z). I've modified it to allow for any kind of character now.
Updating from the repository should fix your problem.
Jeroen.
Thanks. In fact, that's not only cosmetic : the compilation fails if the label name contains accented characters… That might be a limitation of LaTeX… I don't know…
On 19-dec-2006, at 9:45, guerom00 wrote:
Jeroen van der Ham <jeroen@...> writes:
You're absolutely right. It was restricted to letters, digits and punctuation characters as you would naively think it would be (that is a-zA-Z). I've modified it to allow for any kind of character now.
Updating from the repository should fix your problem.
Thanks. In fact, that's not only cosmetic : the compilation fails if the label name contains accented characters… That might be a limitation of LaTeX… I don't know…
That is a limitation of the current TeX, afaik. You'll be a lot happier if you can manage to restrict your labels to [a-zA-Z0-9.,:/*! ^_-]
Maarten
Maarten Sneep <maarten.sneep@...> writes:
On 19-dec-2006, at 9:45, guerom00 wrote:
Thanks. In fact, that's not only cosmetic : the compilation fails if the label name contains accented characters… That might be a limitation of LaTeX… I don't know…
That is a limitation of the current TeX, afaik. You'll be a lot happier if you can manage to restrict your labels to [a-zA-Z0-9.,:/*! ^_-]
Maarten
I see… :) What would be great is if for the LaTeX bundle to automagically replace accented characters in the label name ! :D
Just to drop a line… The last version of the LaTeX bundle seems to have broken the bibliography completion. An Alt-Esc inside a \cite{} gives me :
\cite{/tmp/temp_textmate.vdVuvE:15: undefined method }
Thanks in advance :-)
On Dec 19, 2006, at 2:21 PM, guerom00 wrote:
Just to drop a line… The last version of the LaTeX bundle seems to have broken the bibliography completion. An Alt-Esc inside a \cite{} gives me :
\cite{/tmp/temp_textmate.vdVuvE:15: undefined method }
Seems to work fine over here. Can you create a minimal self-contained example? Also, change the output to "create new document" and paste the result, it should be a more complete error message. What about label completion? Does that still work?
Thanks in advance :-)
Haris
Charilaos Skiadas <skiadas@...> writes:
Seems to work fine over here. Can you create a minimal self-contained example? Also, change the output to "create new document" and paste the result, it should be a more complete error message. What about label completion? Does that still work?
Haris
Here is a more complete error message
/tmp/temp_textmate.32NIRp:15: undefined method `slice' for nil:NilClass (NoMethodError)
Just tried the label completion : it tells me to update the Dialog plugins… I don't remember the svn command to do that :/
Am I the only one, but this svn thing to update about everything related to TextMate is really user-UNfriendly… I hope something will be done in this direction in the future :-)
Thanks.
On Dec 19, 2006, at 5:34 PM, guerom00 wrote:
Here is a more complete error message
/tmp/temp_textmate.32NIRp:15: undefined method `slice' for nil:NilClass (NoMethodError)
Ah interesting. I can sort of fix this, but only by just exiting more gracefully. It means it did not find any appropriate citations. So if you really expected a citation, then there is something else wrong with your setup. Is this a single file, project or what?
Just tried the label completion : it tells me to update the Dialog plugins… I don't remember the svn command to do that :/
Assuming you have your svn checkout at /Library/Application Support/ TextMate. Go to the terminal:
First of all, let's see what you have: cd /Library/Application Support/TextMate ls
You should see at least the directories: Bundles, PlugIns and Support. If PlugIns or Support are not there, then you need to get them from the repository via (for example if PlugIns is the one missing): svn co http://macromates.com/svn/Bundles/trunk/PlugIns
Then to update all these you can do: svn up Support PlugIns Bundles/*
Am I the only one, but this svn thing to update about everything related to TextMate is really user-UNfriendly… I hope something will be done in this direction in the future :-)
It is a extremely user-unfriendly. Typically, just having the regular TM download is all you would have to do. This is true in this case as well: If you remove all the bundles and things you've gotten through svn, then this should just work out of the box. That's what the official TM releases are for. However, the bundles are updated almost daily, and if you want to keep up with that instead of waiting for the next release, then there are some problems associated with it. It's ugly, but that's how it is. It is typically not too hard to update, but the problem is with the new tm_dialog plugin, that requires changes in 15 different places. Once we stop updating that, things should become easier.
Thanks.
Haris
Charilaos Skiadas <skiadas@...> writes:
On Dec 19, 2006, at 5:34 PM, guerom00 wrote:
Here is a more complete error message
/tmp/temp_textmate.32NIRp:15: undefined method `slice' for nil:NilClass (NoMethodError)
Ah interesting. I can sort of fix this, but only by just exiting more gracefully. It means it did not find any appropriate citations. So if you really expected a citation, then there is something else wrong with your setup. Is this a single file, project or what?
This is part of a project actually. I should add that it was working fine until a few days ago, when I updated the LaTeX bundle regarding the initial topic of this thread (accented characters in label name…)
I should also add that, rather than a bibtex file, I'm using the \begin{thebibliography}…\end{thebibliography} environnement. You implemented it in the bundle last time I mentioned it to you (thanks again :-) ) I will double check whether it is not a stupid mistake from me…
Also, thanks for the svn commands. The label completion works fine now.
On Dec 19, 2006, at 7:23 PM, guerom00 wrote:
I should also add that, rather than a bibtex file, I'm using the \begin{thebibliography}…\end{thebibliography} environnement. You implemented it in the bundle last time I mentioned it to you (thanks again :-) ) I will double check whether it is not a stupid mistake from me…
Ah, indeed this seems to be broken atm, and I can't see at first glance what's wrong. I am currently rewriting all these completion commands to make them much simpler, so I will keep this in mind when testing the new commands. Hopefully they should be up within a day or two.
Haris
On 12/19/06, guerom00 romain.guerout@stud.unibas.ch wrote:
Am I the only one, but this svn thing to update about everything related to TextMate is really user-UNfriendly… I hope something will be done in this direction in the future :-)
I would agree that it's user-unfriendly for people who don't know how to use Subversion, but it seems to me that a lot of TextMate's audience is programmers (who should damn well be using source control!), and Subversion is only required for staying on the cutting edge...
Anyway, I personally think that Subversion is a really good solution, and was happy to hear that bundles could be managed in that manner. It's nice to be able to use all of its features for managing bundles, like selectively choosing updates and reverting to older revisions for only specfic bundles in the case of bugs. Also, being able to easily generate patches if you fix something.