GNU TeXmacsUser manualReferenceAboutEnglish·Deutsch·Português
Editing sessions

Inside input fields of sessions, the cursor keys have a special meaning: when moving upwards or downwards, you will move to previous or subsequent input fields. When moving to the left or to the right, you will never leave the input field; you should rather use the mouse for this.

Some facilities for editing input, output and text fields are available in the Session\(\rightarrow\)Field menu. Keyboard shortcuts for inserting fields are ⌃↑ (insert above) and ⌃↓. Keyboard shortcuts for removing matching text/input/output fields are ⌥⌫ (remove backwards) and ⌥⌦ (remove current fields).

It is possible to create “subsessions” using Session\(\rightarrow\)Session\(\rightarrow\)Create subsession or ⌃→. In that case, the current input-output field becomes the body of an unfolded subsession. Such a subsession consists of an explanatory text together with the subsession body. Subsessions can be folded and unfolded using ⇧F10 resp. ⇧F11. Subsessions have a nice rendering on the screen when using the framed-session package in Document\(\rightarrow\)Use package\(\rightarrow\)Program.

Notice that input/output fields and subsessions are foldable: when clicking on the prompt with the mouse, you may fold or unfold the entry to hide or show the output. For laptop presentations, this folding and unfolding process is done automatically when traversing your presentation. It is also possible to fold or unfold all fields in a session using Session\(\rightarrow\)Session\(\rightarrow\)Fold all fields and Session\(\rightarrow\)Session\(\rightarrow\)Unfold all fields.

Other useful editing operations are Session\(\rightarrow\)Session\(\rightarrow\)Clear all fields, which is useful for creating a demo session which will be executed later on, and Session\(\rightarrow\)Split session, which can be used for splitting a session into parts for inclusion into a paper.

Example 1. A typical Maxima session is given below. If Maxima is present on your system, then you may put your cursor in one of the inputs, perform some edits, and try to reexecute it.

Maxima 5.25.1 http://maxima.sourceforge.net

using Lisp SBCL 1.0.51

Distributed under the GNU Public License. See the file COPYING.

Dedicated to the memory of William Schelter.

The function bug_report() provides bug reporting information.

(%i1)

diff (x^x^x, x)

\(\displaystyle \texttt{{\color{red}{(\%o1) }}} x^{x^x} (x^x \log (x) (\log (x) + 1) + x^{x - 1})\)

(%i2)

integrate (%o1, x)

\(\displaystyle \texttt{{\color{red}{(\%o2) }}} \mathrm{e}^{\mathrm{e}^{x \log (x)} \log (x)}\)

(%i3)

integrate (x^5 / (x^2 - x + 17), x)

\(\displaystyle \texttt{{\color{red}{(\%o3) }}} \frac{239 \log (x^2 - x + 17)}{2} + \frac{1361 \arctan \left( \frac{2 x - 1}{\sqrt{67}} \right)}{\sqrt{67}} + \frac{3 x^4 + 4 x^3 - 96 x^2 - 396 x}{12}\)

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".