hello,
I am new here. I have noticed a problem in the folding mechanism of code when using the LaTeX-bundle in textmate (version: TextMate version 2.0-beta.7.1 ). I use textmate only for writing LaTeX documents. so, I have now idea if this is caused by textmate or specifically by the latex-bundle.
most section{} or subsection{} commands are "foldable", i.e. the little triangle symbol appears next to the line number. however, the triangle disappears when I include another command in the same line. this happens for example, when the section heading contains italics.
section{heading of this section} --> this will produce foldable code. section{heading of textit{this} section} --> this will fail to produce foldable code.
I would like to ask if this is a known problem and if anyone has a solution to this?
thank you in advance, christian
Hi Christian,
On 29 Mar 2015, at 16:10 , chrd chrd@posteo.de wrote:
hello,
I am new here. I have noticed a problem in the folding mechanism of code when using the LaTeX-bundle in textmate (version: TextMate version 2.0-beta.7.1 ). I use textmate only for writing LaTeX documents. so, I have now idea if this is caused by textmate or specifically by the latex-bundle.
most \section{} or \subsection{} commands are "foldable", i.e. the little triangle symbol appears next to the line number. however, the triangle disappears when I include another command in the same line. this happens for example, when the section heading contains italics.
\section{heading of this section} --> this will produce foldable code. \section{heading of \textit{this} section} --> this will fail to produce foldable code.
I would like to ask if this is a known problem and if anyone has a solution to this?
it is now :). Commit e9bdf04e should fix this bug [1].
[1]: https://github.com/textmate/latex.tmbundle/commit/e9bdf04e
thank you in advance, christian
Thanks for the bug report,
René
hello rené,
thank you for taking care of this!! your quick response is most appreciated. maybe, a short follow-up question/comment. I dont have much of an IT background, so my questions might be naïve.
anyhow: A commit is basically a change that will be "taken over" into my LaTeX bundle with some kind of update that runs in the background? It dont know how to trigger that update manually.
I was curious to find out if/how it works. so, I did the following: I opened the latex.tm.preferences file in a text editor and manually changed what I could see on the github site [1]. I am aware that this is not the proper procedure, but like I said, I was curious. I saved the file and reopened textmate. The problem now is that all folding markers are gone. :-/ so, that didnt fix it for me. I don't whether that is due to your changes or my manual editing of the pref file. I undid my changes again and saved the file. so everything is back to "normal", i.e.: no folding markers for sections which contain another latex command.
cheers, christian
Am 29.03.2015 17:16 schrieb René Schwaiger:
Hi Christian,
On 29 Mar 2015, at 16:10 , chrd chrd@posteo.de wrote: hello, I am new here. I have noticed a problem in the folding mechanism of code when using the LaTeX-bundle in textmate (version: TextMate version 2.0-beta.7.1 ). I use textmate only for writing LaTeX documents. so, I have now idea if this is caused by textmate or specifically by the latex-bundle. most section{} or subsection{} commands are "foldable", i.e. the little triangle symbol appears next to the line number. however, the triangle disappears when I include another command in the same line. this happens for example, when the section heading contains italics. section{heading of this section} --> this will produce foldable code. section{heading of textit{this} section} --> this will fail to produce foldable code. I would like to ask if this is a known problem and if anyone has a solution to this?
it is now :). Commit e9bdf04e should fix this bug [1 [1]].
[1]: https://github.com/textmate/latex.tmbundle/commit/e9bdf04e [1]
thank you in advance, christian
Thanks for the bug report,
René
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate [2]
Links: ------ [1] https://github.com/textmate/latex.tmbundle/commit/e9bdf04e [2] http://lists.macromates.com/listinfo/textmate
Hi Christian,
On 29 Mar 2015, at 18:46 , chrd chrd@posteo.de wrote:
hello rené,
thank you for taking care of this!! your quick response is most appreciated. maybe, a short follow-up question/comment. I dont have much of an IT background, so my questions might be naïve.
anyhow: A commit is basically a change that will be "taken over" into my LaTeX bundle with some kind of update that runs in the background?
more or less. In the context of a version control systems [1] a “commit” is basically a set of (file) changes.
[1]: https://en.wikipedia.org/wiki/Revision_control
The LaTeX bundle on GitHub is a more up to date version of the one you installed inside Preferences. The update of bundles is done semi- automatically. Before an automatic update of a bundle can take place, either Michael (Sheets) — the bundle maintainer — or Allan (Odgaard) — the main author of TextMate — runs a script that deploys the newest changes onto the server. After that your copy of the bundle should automatically update sometimes in the next 24 hours.
It dont know how to trigger that update manually.
You can manually update the bundle using the following steps. I would advise against that tough.
1. Uninstall the bundle inside “Preferences” 2. Open Terminal 3. Clone the bundle into the folder `~/Library/Application\ Support/TextMate/Managed/Bundles/`:
cd ~/Library/Application\ Support/TextMate/Managed/Bundles/ git clone https://github.com/textmate/latex.tmbundle.git
cheers, christian
Kind regards, René
okay, my mistake!! I replaced the whole pref file with yours from github without doctoring around. works now!! thank you!
Hi Christian,
On 29 Mar 2015, at 16:10 , chrd chrd@posteo.de wrote: hello, I am new here. I have noticed a problem in the folding mechanism of code when using the LaTeX-bundle in textmate (version: TextMate version 2.0-beta.7.1 ). I use textmate only for writing LaTeX documents. so, I have now idea if this is caused by textmate or specifically by the latex-bundle. most section{} or subsection{} commands are "foldable", i.e. the little triangle symbol appears next to the line number. however, the triangle disappears when I include another command in the same line. this happens for example, when the section heading contains italics. section{heading of this section} --> this will produce foldable code. section{heading of textit{this} section} --> this will fail to produce foldable code. I would like to ask if this is a known problem and if anyone has a solution to this?
it is now :). Commit e9bdf04e should fix this bug [1 [1]].
[1]: https://github.com/textmate/latex.tmbundle/commit/e9bdf04e [1]
thank you in advance, christian
Thanks for the bug report,
René
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate [2]
Links: ------ [1] https://github.com/textmate/latex.tmbundle/commit/e9bdf04e [2] http://lists.macromates.com/listinfo/textmate