Eduardo A Nogueira | 4 Jun 03:38 2011
Picon

[TeXmacs] Shortcut for R session

Hi

I would like to know if there is a keyboard shortcut to insert a R 
session ?

Thanks

Eduardo Nogueira

Laboratorio de Cateterismo Cardiaco
Universidade de Campinas, Campinas, Sao Paulo
Brasil

Kostas Oikonomou | 4 Jun 15:56 2011
Picon

Re: [TeXmacs] changes in the maxima plugin's output?

It also seems that you can't insert a "$" at the end of the 
maxima input line any more: TeXmacs goes into math mode.
Do you see that?

			Kostas

On 05/27/11 12:41 PM, Andrey G. Grozin wrote:
> On Fri, 27 May 2011, Kostas Oikonomou wrote:
>> Now TeXmacs inserts (spurious) multiplication signs in
>> some places that make the output unusable. For example,
>> when a maxima function returns
>>
>> c11 = 0.0307894, c12 = 0.0307895,
>>
>> TeXmacs changes it to
>>
>> <with|math-font-family|rm|c*11>=.*0307894,<with|math-font-family|rm|c*12>=.*0307895
>>
>>
>> Perhaps this is connected with the new semantics for math
>> mode? Or the maxima plugin has changed?
> The maxima plugin has not changed. This must be some change
> in TeXmacs.
>
> Andrey

El.Douwen | 14 Jun 22:34 2011
Picon

[TeXmacs] session maxima; session tableur ?

salut à tous

je suis sous os X.6.7

quand je fais "insérer session maxima", la session se fait, mais il y a toujours marqué "en cours" et
aucune instruction ne donne de résultat

---

question n°2

existe-t-il des logiciels tournant en session sous texmacs et permettant de faire des petits tableurs,
avec simplement les 4 opérations et des calculs de recopie automatique ?

---

Sacha
Andrey G. Grozin | 15 Jun 09:14 2011
Picon

Re: [TeXmacs] session maxima; session tableur ?

On Tue, 14 Jun 2011, El.Douwen wrote:
> quand je fais "insérer session maxima", la session se fait, mais il y a 
> toujours marqué "en cours" et aucune instruction ne donne de résultat
I don't know French, but I guess maxima session doesn't work for you.

1. Does command-line maxima work normally? Is it in the PATH?

2. What does

maxima --list-avail

produce? For example, on my Linux box it produces

grozin <at> elrond ~ $ maxima --list-avail
Available versions:
version 5.24.0, lisp cmucl
version 5.24.0, lisp ecl
version 5.24.0, lisp clisp
version 5.24.0, lisp gcl
version 5.24.0, lisp sbcl
version 5.24.0, lisp openmcl
grozin <at> elrond ~ $

3. What does the script maxima_detect write? On my box

grozin <at> elrond ~ $ /usr/libexec/TeXmacs/bin/maxima_detect
(
"5.24.0 cmucl"
"5.24.0 ecl"
"5.24.0 clisp"
(Continue reading)

El.Douwen | 15 Jun 09:35 2011
Picon

Re: [TeXmacs] session maxima; session tableur ?

hi
sorry for the french

1. Does command-line maxima work normally? Is it in the PATH?
i am so sorry, so beginner, i dont understand the question. The Path ? the command line maxima ?
i open texmacs, and i select "insert, session, maxima" and then it writes "en cours" (i translate "running")

in the menu "insert,session" i have 5 choices
giac maxima python shell scheme
i dont know the languages of the 4 others but they seem to work properly, for example if i write 2+2 in giac or python it gives 4
only maxima seems to be bloqued, or thats the one i need

2. What does

maxima --list-avail
produce? For example, on my Linux box it produces

grozin <at> elrond ~ $ maxima --list-avail
Available versions:
version 5.24.0, lisp cmucl
version 5.24.0, lisp ecl
version 5.24.0, lisp clisp
version 5.24.0, lisp gcl
version 5.24.0, lisp sbcl
version 5.24.0, lisp openmcl
grozin <at> elrond ~ $

i presume i must type this in the mac os X terminal
i obtain
-bash: maxima: command not found

if i type 
MacBook-de-Elo-Douwen:~ elodouwen$ python --list-avail
i then obtain
Unknown option: --
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.


3. What does the script maxima_detect write? On my box

grozin <at> elrond ~ $ /usr/libexec/TeXmacs/bin/maxima_detect
(
"5.24.0 cmucl"
"5.24.0 ecl"
"5.24.0 clisp"
"5.24.0 gcl"
"5.24.0 sbcl"
"5.24.0 openmcl"
)
grozin <at> elrond ~ $

i type "maxima_detect" in the terminal it does not seem to be the right place to write this...


Andrey
thanks !

Sacha

ps the second question was alos in french, i translate it :
"does it existe a means to have a simple spreadsheet inside a texmacs document, with 4 operations, and copy/paste of the contents of cells" ?

Bernard Parisse | 15 Jun 10:09 2011
Picon
Picon

Re: [TeXmacs] session maxima; session tableur ?

On Tue, Jun 14, 2011 at 10:34:44PM +0200, El.Douwen wrote:
> salut à tous
> 
> je suis sous os X.6.7
> 
> quand je fais "insérer session maxima", la session se fait, mais il y a toujours marqué "en cours" et
aucune instruction ne donne de résultat
> 
> ---
> 
> question n°2
> 
> existe-t-il des logiciels tournant en session sous texmacs et permettant de faire des petits tableurs,
avec simplement les 4 opérations et des calculs de recopie automatique ?
> 

Oui, giac/xcas fait ca (en plus du calcul formel largement compatible avec maple),
Ouvrir une session giac dans texmacs puis utiliser la commande 
spreadsheet("nom_de_fichier_du_tableur")
De meme la commande geo2d ou geo3d permet d'avoir une figure de geometrie
interactive depuis texmacs.

Andrey G. Grozin | 15 Jun 10:18 2011
Picon

Re: [TeXmacs] session maxima; session tableur ?

On Wed, 15 Jun 2011, El.Douwen wrote:
> i presume i must type this in the mac os X terminal
> i obtain
> -bash: maxima: command not found
Are you sure you have maxima installed on your computer?

If it is installed, then typing just

maxima

in a terminal window should start command-line maxima. Only after you have 
it working, you can try to call maxima from other programs, like TeXmacs.

Andrey

Sam Liddicott | 15 Jun 16:16 2011
Face

[TeXmacs] Cleaning up texmacs file for git


This entry in .gitattributes:
*.tm    filter=texmacs

and this entry in the .gitconfig file:
[filter "texmacs"]
         clean = "sed -e '/^<[^>]*>/h;x;/references\\|auxiliary/{x;d};x'"

means that .tm files are commited to git without the references or 
auxilliary sections.
When merging from git branches I so often get conflicts in those 
sections which can easily be regenerated.

The sed command is, but has been escaped appropriately above for the 
.gitconfig file
sed -e '/^<[^>]*>/h;x;/references\|auxiliary/{x;d};x'

Sam

Sam Liddicott | 15 Jun 17:07 2011
Face

Re: [TeXmacs] Cleaning up texmacs file for git


On 15/06/11 15:16, Sam Liddicott wrote:
>
>
> This entry in .gitattributes:
> *.tm    filter=texmacs
>
> and this entry in the .gitconfig file:
> [filter "texmacs"]
>         clean = "sed -e '/^<[^>]*>/h;x;/references\\|auxiliary/{x;d};x'"
>
> means that .tm files are commited to git without the references or 
> auxilliary sections.
> When merging from git branches I so often get conflicts in those 
> sections which can easily be regenerated.
>
> The sed command is, but has been escaped appropriately above for the 
> ..gitconfig file
> sed -e '/^<[^>]*>/h;x;/references\|auxiliary/{x;d};x'
>
> Sam

Here is a better clean-up which can also remove table-of-contents (which 
can also be re-generated):

#! /bin/sed -f

/^\( *<.table-of-contents\|<.references\|<.auxiliary\)/{h;/<\\/p};x;/^ 
*<\\/{x;d};x

called git-fix-texmacs, so the clean entry in [filter "texmacs"] would 
need pointing to where-ever this +x 1 line script is saved.

Sam

Sam Liddicott | 16 Jun 15:34 2011
Face

Re: [TeXmacs] Cleaning up texmacs file for git


Trailing whitespace in texmacs gives git-whitespace warnings; and it has 
brought me trouble before when I used Lyx,

I'm looking at some git clean-filter cleanups that can find an 
alternative representation.

To demonstrate, I'll use _ to represent space.

The line:

---8<------8<---
hello__
---8<------8<---

is stored in texmacs as:
---8<------8<---
hello_\_
---8<------8<---

But it seems like this representation will do as well:

---8<------8<---
hello_\_\

---8<---

It seems like an extra \ and new-line can be suffixed onto a trailing 
space and the document still parse as normal; I applied this sed to a 
document:

sed -e 's/ $/ \\\n/'

and then loaded and re-saved the document and it was restored to it's 
original form.

So... does anyone have any comments on a git clean commit script adding 
\\\n to the end of lines ending in white space so that there are no 
longer lines ending in white space?

Sam

On 15/06/11 16:07, Sam Liddicott wrote:
>
>
> On 15/06/11 15:16, Sam Liddicott wrote:
>>
>>
>> This entry in .gitattributes:
>> *.tm    filter=texmacs
>>
>> and this entry in the .gitconfig file:
>> [filter "texmacs"]
>>         clean = "sed -e '/^<[^>]*>/h;x;/references\\|auxiliary/{x;d};x'"
>>
>> means that .tm files are commited to git without the references or 
>> auxilliary sections.
>> When merging from git branches I so often get conflicts in those 
>> sections which can easily be regenerated.
>>
>> The sed command is, but has been escaped appropriately above for the 
>> ..gitconfig file
>> sed -e '/^<[^>]*>/h;x;/references\|auxiliary/{x;d};x'
>>
>> Sam
>
> Here is a better clean-up which can also remove table-of-contents 
> (which can also be re-generated):
>
> #! /bin/sed -f
>
> /^\( *<.table-of-contents\|<.references\|<.auxiliary\)/{h;/<\\/p};x;/^ 
> *<\\/{x;d};x
>
> called git-fix-texmacs, so the clean entry in [filter "texmacs"] would 
> need pointing to where-ever this +x 1 line script is saved.
>
> Sam

--

-- 
[FSF Associate Member #2325] 
<http://www.fsf.org/register_form?referrer=2325>

<http://www.openrightsgroup.org/>


Gmane