yatex
diff docs/yatexe.tex @ 28:0f8b77d22c8a
Add docs on intelligent-newline.
author | yuuji |
---|---|
date | Mon, 11 Jul 1994 14:56:13 +0000 |
parents | b6127058e365 |
children | 56f7676ed8ca |
line diff
1.1 --- a/docs/yatexe.tex Thu Jul 07 16:37:05 1994 +0000 1.2 +++ b/docs/yatexe.tex Mon Jul 11 14:56:13 1994 +0000 1.3 @@ -37,6 +37,7 @@ 1.4 * Local dictionaries:: 1.5 * Updation of @code{\includeonly}:: 1.6 * What column?:: 1.7 +* Intelligent newline:: 1.8 * Online help:: 1.9 * Cooperation with other packages:: 1.10 * Customizations:: 1.11 @@ -232,7 +233,7 @@ 1.12 * Editing %# notation:: 1.13 @end menu 1.14 1.15 -@node Changing typesetter, Static region for typesetting, %# notation, %# notation 1.16 +@node Changing typesetter, Static region for typesetting, , %# notation 1.17 @comment node-name, next, previous, up 1.18 @section To change the `latex' command or to split a source text. 1.19 @cindex typesetter 1.20 @@ -409,7 +410,7 @@ 1.21 * Greek letters completion:: 1.22 @end menu 1.23 1.24 -@node Begin-type completion, Section-type completion, Completion, Completion 1.25 +@node Begin-type completion, Section-type completion, , Completion 1.26 @comment node-name, next, previous, up 1.27 @section Begin-type completion 1.28 @cindex begin-type completion 1.29 @@ -621,7 +622,7 @@ 1.30 * view-sectioning:: 1.31 @end menu 1.32 1.33 -@node view-sectioning, , Section-type completion, Section-type completion 1.34 +@node view-sectioning, , , Section-type completion 1.35 @comment node-name, next, previous, up 1.36 @subsection view-sectioning 1.37 @cindex view sectioning 1.38 @@ -1078,7 +1079,7 @@ 1.39 by the current file, and type @kbd{%} to comment out the 1.40 @code{\includeonly} line. 1.41 1.42 -@node What column?, Online help, Updation of @code{\includeonly}, Top 1.43 +@node What column?, Intelligent newline, Updation of @code{\includeonly}, Top 1.44 @comment node-name, next, previous, up 1.45 @chapter What column? 1.46 @cindex what column 1.47 @@ -1116,7 +1117,56 @@ 1.48 virtual column headers by putting them in the first line and 1.49 commenting that line with @code{%}. 1.50 1.51 -@node Online help, Cooperation with other packages, What column?, Top 1.52 +@node Intelligent newline, Online help, What column?, Top 1.53 +@comment node-name, next, previous, up 1.54 +@chapter Intelligent newline 1.55 +@cindex Intelligent newline 1.56 +@cindex ESC RET 1.57 +@cindex M-C-m 1.58 + 1.59 + In tabular[*], array, itemize, enumerate or tabbing environment, 1.60 + 1.61 +@table @kbd 1.62 +@item ESC RET 1.63 + @dots{} Intelligent newline 1.64 +@end table 1.65 + 1.66 +@noindent 1.67 +inserts the contents corresponding to the current environment in the next 1.68 +line. In @code{tabular} environment, for example, @kbd{ESC RET} inserts 1.69 +the certain number of @code{&} and trailing @code{\\}, and @code{\hline} 1.70 +if other @code{\hline} is found in backward. Here are the list of 1.71 +contents v.s. environments. 1.72 + 1.73 +@itemize 1.74 +@item @code{tabular}, @code{tabular*}, @code{array} 1.75 + 1.76 + Corresponding number of @code{&} and @code{\\}. 1.77 + And @code{\hline} if needed. 1.78 + 1.79 +@item @code{tabbing} 1.80 + 1.81 + The same number of @code{\>} as @code{\=} in the first line. 1.82 + 1.83 +@item @code{itemize}, @code{enumerate}, @code{description}, @code{list} 1.84 + 1.85 + @code{\item} or @code{item[]}. 1.86 +@end itemize 1.87 + 1.88 + Note that since this function works seeing the contents of the first 1.89 +line, please call this after the second line if possible. 1.90 + 1.91 + If you want to apply these trick to other environments, @code{foo} 1.92 +environment for example, define the function named 1.93 +@code{YaTeX-intelligent-newline-foo} to insert corresponding contents. 1.94 +That function will be called at the beginning of the next line after the 1.95 +newline is inserted to the current line. Since the function 1.96 +@code{YaTeX-indent-line} is designed to indent the current line properly, 1.97 +calling this function before your code to insert certain contents must be 1.98 +useful. See the definition of the function 1.99 +@code{YaTeX-intelligent-newline-itemize} as an example. 1.100 + 1.101 +@node Online help, Cooperation with other packages, Intelligent newline, Top 1.102 @comment node-name, next, previous, up 1.103 @chapter Online help 1.104 @cindex online help 1.105 @@ -1203,7 +1253,7 @@ 1.106 * Add-in functions:: 1.107 @end menu 1.108 1.109 -@node Lisp variables, Add-in functions, Customizations, Customizations 1.110 +@node Lisp variables, Add-in functions, , Customizations 1.111 @comment node-name, next, previous, up 1.112 @section Lisp variables 1.113 @cindex customizable variables 1.114 @@ -1229,7 +1279,7 @@ 1.115 * Hook file:: 1.116 @end menu 1.117 1.118 -@node All customizable variables, Sample definitions, Lisp variables, Lisp variables 1.119 +@node All customizable variables, Sample definitions, , Lisp variables 1.120 @comment node-name, next, previous, up 1.121 @subsection All customizable variables 1.122 @cindex all customizable variables