yatex
diff docs/yatexe.tex @ 265:0b10d1fea265
Fix many misuse of braces and so on.
Suggested by lurdan@.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Wed, 29 Feb 2012 10:43:24 +0900 |
parents | cb4449ecb9f3 |
children | 032d4c4bf7ac |
line diff
1.1 --- a/docs/yatexe.tex Sun Jan 29 23:01:57 2012 +0900 1.2 +++ b/docs/yatexe.tex Wed Feb 29 10:43:24 2012 +0900 1.3 @@ -5,7 +5,7 @@ 1.4 1.5 @iftex 1.6 @c @syncodeindex fn cp 1.7 -@c Last modified Sun Jan 29 22:55:53 2012 on firestorm 1.8 +@c Last modified Wed Feb 29 10:38:42 2012 on firestorm 1.9 @syncodeindex vr cp 1.10 @end iftex 1.11 1.12 @@ -48,6 +48,7 @@ 1.13 * Etcetera:: YaTeX is acquisitive. 1.14 * Copying:: Redistribution 1.15 1.16 +@end menu 1.17 1.18 @node What is YaTeX?, Main features, Top, Top 1.19 @comment node-name, next, previous, up 1.20 @@ -90,8 +91,8 @@ 1.21 @item Document files hierarchy browser (@kbd{C-c d}) 1.22 @item Adding automatically \usepackage corresponding to inputting LaTeX 1.23 macro with completion 1.24 -@item Allow you to forget creating \label{}s, \ref or \cite completion 1.25 - automatically generate labels. 1.26 +@item Allow you to forget creating \label@{@}s, \ref@{@} or \cite@{@} 1.27 + completion automatically generate labels. 1.28 @end itemize 1.29 1.30 @node Installation, Typesetting, Main features, Top 1.31 @@ -202,7 +203,7 @@ 1.32 by @code{%#BEGIN} and @code{%#END} marks. Selected region will be 1.33 copied to the temporary file @file{texput.tex} with the same preamble 1.34 as the main file of current editing sources. Be sure to put 1.35 -all local macro settings in preamble, not after @code{\begin{document}}. 1.36 +all local macro settings in preamble, not after @code{\begin@{document@}}. 1.37 The method of specification of the region is shown in the 1.38 section @xref{%#notation}. 1.39 1.40 @@ -941,7 +942,7 @@ 1.41 `foo' is not in table. Register into: U)serDic L)ocalDic N)one D)iscard 1.42 @end example 1.43 1.44 -@noindent 1.45 +@noindent 1.46 In this menu, typing @kbd{u} updates your `user dictionary', @kbd{l} 1.47 updates your local dictionary, @kbd{n} updates only on-memory dictionary 1.48 which go through only current Emacs session, and @kbd{d} updates no 1.49 @@ -1389,7 +1390,7 @@ 1.50 @dots{} Intelligent newline 1.51 @end table 1.52 1.53 -@noindent 1.54 +@noindent 1.55 in these environments inserts the contents corresponding to the current 1.56 environment in the next line. (At the begin-type completion, this 1.57 contents can be removed by `undo'.) In @code{tabular} environment, for 1.58 @@ -1848,7 +1849,7 @@ 1.59 1.60 @defvar YaTeX-singlecmd-suffix 1.61 Suffix which is always inserted after maketitle-type macros. 1.62 -@code{"{}"} is recommended. 1.63 +@code{"@{@}"} is recommended. 1.64 @end defvar 1.65 1.66 @defvar YaTeX-package-alist-private 1.67 @@ -1894,7 +1895,7 @@ 1.68 @end defvar 1.69 1.70 @defvar YaTeX-ref-generate-label-function 1.71 -Function to generate default label string for unnamed \\label{}s. 1.72 +Function to generate default label string for unnamed \\label@{@}s. 1.73 The function pointed to this value should take two arguments. 1.74 First argument is LaTeX macro's name, second is macro's argument. 1.75 Here is an example for using this value. 1.76 @@ -1902,7 +1903,7 @@ 1.77 (setq YaTeX-ref-generate-label-function 'my-yatex-generate-label) 1.78 (defun my-yatex-generate-label (command value) 1.79 (and (string= command "caption") 1.80 - (re-search-backward "\\\\begin{\\(figure\\|table\\)}" nil t) 1.81 + (re-search-backward "\\\\begin@{\\(figure\\|table\\)@}" nil t) 1.82 (setq command (match-string 1))) 1.83 (let ((alist '(("chapter" . "chap") 1.84 ("section" . "sec") 1.85 @@ -2051,7 +2052,7 @@ 1.86 will be enclosed by section-type commands via @kbd{[prefix] S}. An 1.87 enclosing add-in function will be called with two arguments, beginning of 1.88 the enclosed region and end of the region. Suppose you want to enclose 1.89 -the existing text @code{(a+b)/c} by @code{\frac{}}. 1.90 +the existing text @code{(a+b)/c} by @code{\frac@{@}}. 1.91 1.92 @display 1.93 a/c 1.94 @@ -2063,7 +2064,7 @@ 1.95 @kbd{[prefix] S} and input @code{frac} enclose the region like this; 1.96 1.97 @display 1.98 -\frac{a/c} 1.99 +\frac@{a/c@} 1.100 @end display 1.101 1.102 Normally, the expression @code{a/c} is translated to