comparison man/calc.texi @ 90128:13796b0653c7

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-29 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 192-205) - Update from CVS - Use gdb-ui breakpoint faces on ttys too - Tweak gdb-ui breakpoint faces - Tweak info/.arch-inventory to identify info/.cvsignore as source - Clean up gdb-ui breakpoint faces
author Miles Bader <miles@gnu.org>
date Thu, 24 Mar 2005 18:41:26 +0000
parents e4694597cbf4 e837dbaed2bf
children 4da4a09e8b1b
comparison
equal deleted inserted replaced
90127:30ad2795fdab 90128:13796b0653c7
29879 formula in any buffer and press @kbd{M-# e} (@code{calc-embedded}). 29879 formula in any buffer and press @kbd{M-# e} (@code{calc-embedded}).
29880 Note that @kbd{M-# e} is not to be used in the Calc stack buffer 29880 Note that @kbd{M-# e} is not to be used in the Calc stack buffer
29881 like most Calc commands, but rather in regular editing buffers that 29881 like most Calc commands, but rather in regular editing buffers that
29882 are visiting your own files. 29882 are visiting your own files.
29883 29883
29884 Calc will try to guess an appropriate language based on the major mode
29885 of the editing buffer. (@xref{Language Modes}.) If the current buffer is
29886 in @code{latex-mode}, for example, Calc will set its language to La@TeX{}.
29887 Similarly, Calc will use @TeX{} language for @code{tex-mode},
29888 @code{plain-tex-mode} and @code{context-mode}, C language for
29889 @code{c-mode} and @code{c++-mode}, FORTRAN language for
29890 @code{fortran-mode} and @code{f90-mode}, Pascal for @code{pascal-mode},
29891 and eqn for @code{nroff-mode}. These can be overridden with Calc's mode
29892 changing commands (@pxref{Mode Settings in Embedded Mode}). If no
29893 suitable language is available, Calc will continue with its current language.
29894
29884 Calc normally scans backward and forward in the buffer for the 29895 Calc normally scans backward and forward in the buffer for the
29885 nearest opening and closing @dfn{formula delimiters}. The simplest 29896 nearest opening and closing @dfn{formula delimiters}. The simplest
29886 delimiters are blank lines. Other delimiters that Embedded mode 29897 delimiters are blank lines. Other delimiters that Embedded mode
29887 understands are: 29898 understands are:
29888 29899
29920 forward and backward to delimit the formula. @kbd{M-# w} 29931 forward and backward to delimit the formula. @kbd{M-# w}
29921 (@code{calc-embedded-word}) is equivalent to @kbd{C-u M-# e}. 29932 (@code{calc-embedded-word}) is equivalent to @kbd{C-u M-# e}.
29922 29933
29923 When you enable Embedded mode for a formula, Calc reads the text 29934 When you enable Embedded mode for a formula, Calc reads the text
29924 between the delimiters and tries to interpret it as a Calc formula. 29935 between the delimiters and tries to interpret it as a Calc formula.
29925 It's best if the current Calc language mode is correct for the 29936 Calc can generally identify @TeX{} formulas and
29926 formula, but Calc can generally identify @TeX{} formulas and
29927 Big-style formulas even if the language mode is wrong. If Calc 29937 Big-style formulas even if the language mode is wrong. If Calc
29928 can't make sense of the formula, it beeps and refuses to enter 29938 can't make sense of the formula, it beeps and refuses to enter
29929 Embedded mode. But if the current language is wrong, Calc can 29939 Embedded mode. But if the current language is wrong, Calc can
29930 sometimes parse the formula successfully (but incorrectly); 29940 sometimes parse the formula successfully (but incorrectly);
29931 for example, the C expression @samp{atan(a[1])} can be parsed 29941 for example, the C expression @samp{atan(a[1])} can be parsed
30032 it is parsed (i.e., read) in La@TeX{} mode. If the formula appears to 30042 it is parsed (i.e., read) in La@TeX{} mode. If the formula appears to
30033 be written in multi-line Big mode, it is parsed in Big mode. Otherwise, 30043 be written in multi-line Big mode, it is parsed in Big mode. Otherwise,
30034 it is parsed according to the current language mode. 30044 it is parsed according to the current language mode.
30035 30045
30036 Note that Calc does not change the current language mode according 30046 Note that Calc does not change the current language mode according
30037 to what it finds. Even though it can read a La@TeX{} formula when 30047 the formula it reads in. Even though it can read a La@TeX{} formula when
30038 not in La@TeX{} mode, it will immediately rewrite this formula using 30048 not in La@TeX{} mode, it will immediately rewrite this formula using
30039 whatever language mode is in effect. You must then type @kbd{d L} 30049 whatever language mode is in effect.
30040 to switch Calc permanently into La@TeX{} mode if that is what you
30041 desire.
30042 30050
30043 @tex 30051 @tex
30044 \bigskip 30052 \bigskip
30045 @end tex 30053 @end tex
30046 30054
30439 30447
30440 @node Mode Settings in Embedded Mode, Customizing Embedded Mode, Assignments in Embedded Mode, Embedded Mode 30448 @node Mode Settings in Embedded Mode, Customizing Embedded Mode, Assignments in Embedded Mode, Embedded Mode
30441 @section Mode Settings in Embedded Mode 30449 @section Mode Settings in Embedded Mode
30442 30450
30443 @noindent 30451 @noindent
30452 The mode settings can be changed while Calc is in embedded mode, but
30453 will revert to their original values when embedded mode is ended
30454 (except for the modes changed while the mode-setting mode was
30455 @code{Save}).
30456
30444 Embedded mode has a rather complicated mechanism for handling mode 30457 Embedded mode has a rather complicated mechanism for handling mode
30445 settings in Embedded formulas. It is possible to put annotations 30458 settings in Embedded formulas. It is possible to put annotations
30446 in the file that specify mode settings either global to the entire 30459 in the file that specify mode settings either global to the entire
30447 file or local to a particular formula or formulas. In the latter 30460 file or local to a particular formula or formulas. In the latter
30448 case, different modes can be specified for use when a formula 30461 case, different modes can be specified for use when a formula