[SVN] Re: r10135 (R Console (Rdaemon))
Hans-Joerg Bibiko
bibiko at eva.mpg.de
Fri Jul 4 14:20:59 UTC 2008
On 4 Jul 2008, at 16:11, Hans-Jörg Bibiko wrote:
>
>
> Changed:
> A trunk/Review/Bundles/R Console (Rdaemon).tmbundle/Macros/Remove
> Rdaemon's Prompt.tmMacro
> A trunk/Review/Bundles/R Console (Rdaemon).tmbundle/Snippets/
> A trunk/Review/Bundles/R Console (Rdaemon).tmbundle/Snippets/
> \begin{Rdaemon}…\end{Rdaemon}.tmSnippet
> A trunk/Review/Bundles/R Console (Rdaemon).tmbundle/Snippets/
> \newenvironment{Rdaemon}.tmSnippet
> A trunk/Review/Bundles/R Console (Rdaemon).tmbundle/Syntaxes/LaTeX
> Rdaemon.tmLanguage
> U trunk/Review/Bundles/R Console (Rdaemon).tmbundle/info.plist
>
> _______________________________________________
> textmate-dev mailing list
> textmate-dev at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate-dev
Sorry, the message wasn't sent(?)
The first trial to integrate the Rdaemon in LaTeX.
- snippet "rdenv" to declare a new LaTeX environment called "Rdaemon"
based on "verbatimtab"
- snippet "rd" to insert \begin{Rdaemon}
- snippet "> " to remove that line and jump behind \end{Rdaemon}
- new language "LaTeX Rdaemon"
-- based on the standard LaTeX syntax
-- defined new pattern:
{ name = 'meta.function.verbatim.latex.rdaemon.embedded';
contentName = 'markup.raw.verbatim.latex';
begin = '(?:\s*)((\\)begin)(\{)(Rdaemon)(\})';
end = '((\\)end)(\{)(\4)(\})';
captures = {
1 = { name = 'support.function.be.latex.rdaemon.embedded'; };
2 = { name =
'punctuation.definition.function.latex.rdaemon.embedded'; };
3 = { name =
'punctuation.definition.arguments.begin.latex.rdaemon.embedded'; };
4 = { name =
'variable.parameter.function.latex.rdaemon.embedded'; };
5 = { name =
'punctuation.definition.arguments.end.latex.rdaemon.embedded'; };
};
patterns = ( { include = 'source.rd.console'; } );
},
The final goal is to provide a mechanism to communicate with the
Rdaemon inside of a LaTeX document. If one is inside of the Rdaemon
environment, a line starts with the prompt "> " will send to the
Rdaemon after pressing RETURN. The result will be written into the tex
document.
More information about the textmate-dev
mailing list