Mercurial > hgrepos > hgweb.cgi > yatex
annotate docs/yatexref.eng @ 515:b6853d450b0a dev
Add a function to examine the point is in %#BEGIN/%#END or not.
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 04 Jan 2018 23:58:07 +0900 |
parents | 09a2b5a3b3d8 |
children |
rev | line source |
---|---|
54 | 1 ---------------------------------------------------------------------------- |
2 YaTeX | |
3 Quick Reference | |
4 ---------------------------------------------------------------------------- | |
5 | |
6 | |
7 [Caution] | |
8 | |
9 You can customize the prefix key (C-c by default) so this will be | |
10 written as [prefix] in this document. If you have not customized | |
11 [prefix] a will stand for C-c a. | |
12 | |
13 Begin-type commands are those like \begin-\end, Section-type | |
14 commands are those that take arguments as \section{NAME}, | |
15 Large-type commands are font/size definition commands that are put | |
16 in parenthesis as {\tt}, Maketitle-type commands are commands that | |
17 don't take arguments as \maketitle. | |
18 | |
19 [Completion] | |
20 | |
21 *Accent completion [prefix] a | |
22 *Begin-type completion [prefix] b SPC | |
23 *Begin-type completion (region) [prefix] B SPC | |
24 *Begin-type completion (immediate) [prefix] b initial_of_environment | |
25 *Begin-type completion (immediate on region) | |
26 [prefix] B initial_of_environment | |
27 *End completion [prefix] e | |
28 *Large-type completion [prefix] l | |
29 *Large-type completion (region) [prefix] L | |
30 *Maketitle-type completion [prefix] m | |
31 *Section-type completion [prefix] s | |
32 *Section-type completion (region) [prefix] S | |
33 *General completion [prefix] SPC | |
34 | |
35 For the initials used in immediate Begin-type completions, see the | |
36 Info manual. In the (region)-mode, region between the mark and | |
37 the present point will be put within a \begin{foo}...\end{foo} or | |
38 {\large } and such. | |
39 | |
40 *Math sign image completion ; | |
41 *Greek letter image completion : | |
42 | |
43 Above two commands may be used only in the math environment. If | |
44 you want to use the completion in other environments, do C-u and | |
45 then ; or :. | |
46 | |
47 | |
48 [Process invoking] | |
49 | |
379
09a2b5a3b3d8
Describe about [prefix] t d and [prefix] t e and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
70
diff
changeset
|
50 *invoke latex [prefix] tj |
09a2b5a3b3d8
Describe about [prefix] t d and [prefix] t e and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
70
diff
changeset
|
51 *invoke latex (on region) [prefix] tr |
09a2b5a3b3d8
Describe about [prefix] t d and [prefix] t e and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
70
diff
changeset
|
52 *on-the-fly preview environment [prefix] te |
54 | 53 *invoke bibtex [prefix] tb |
54 *invoke makeindex [prefix] ti | |
55 *kill current typesetting process [prefix] tk ** | |
56 *lpr dvi-file [prefix] tl | |
57 *lpr dvi-file (all pages) C-u [prefix] tl | |
58 *invoke previewer [prefix] tp | |
59 *invoke lpq [prefix] tq | |
60 | |
61 Hitting [prefix] t will get you the menu, so there is no need to | |
62 remember the key after [prefix] t. | |
63 | |
64 **Unavailable on MS-DOS | |
65 | |
66 The region used in [prefix] tr are the lines between %#BEGIN and | |
67 %#END. If %#END is not found then from %#BEGIN and the end of | |
68 the text. If both are missing then from the mark to the | |
69 present point. | |
70 | |
71 [Cursor Jump] | |
72 *To the typeset error [prefix] ' | |
73 | |
74 Will jump to the position where the typeset error occurred from the | |
379
09a2b5a3b3d8
Describe about [prefix] t d and [prefix] t e and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
70
diff
changeset
|
75 end. Only effective when there was a error returned from typesetter. |
54 | 76 |
77 *Jump to corresponding object [prefix] g | |
78 *Jump to corresponding object (in another her window) [prefix] 4g | |
79 | |
80 Where to jump will be decided by what's on the line [prefix] g was | |
81 hit. | |
82 | |
83 -on a \begin{} or \end{} to a matching \end{} or \begin{} | |
84 -on a %#BEGIN or %#END to a matching %#END or %#BEGIN | |
85 -on a \include(only) or \input to the matching file | |
86 -on a \ref or \label to the matching \label or \ref | |
87 -on a \cite or \bibitem to the matching \bibitem or \cite | |
379
09a2b5a3b3d8
Describe about [prefix] t d and [prefix] t e and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
70
diff
changeset
|
88 -other to the matching line in previewer |
54 | 89 |
90 *Jump to the main file [prefix] ^ | |
91 *Jump to the main file in another window [prefix] 4^ | |
92 | |
93 To tell YaTeX which the main file is, write | |
94 %#jlatex MAIN_FILE_NAME | |
95 somewhere in the file you are creating. | |
96 | |
97 *Jump to beginning of environment ESC C-a | |
98 *Jump to end of environment ESC C-e | |
99 *Mark whole environment ESC C-h | |
100 | |
101 [Commenting out by %] | |
102 | |
103 *Comment out the region/environment [prefix] > | |
104 *Uncomment the region/environment [prefix] < | |
105 | |
106 If the point is on a line with \begin{} or \end{}, everything | |
107 within the environment will be (un)commented. Otherwise, | |
108 everything between the mark and point will be (un)commented. | |
109 | |
110 *Comment out a paragraph or environment declaration [prefix] . | |
111 *Uncomment out a paragraph or environment declaration [prefix] , | |
112 | |
113 If the point is on a line with \begin{} or \end, the two lines | |
114 with it will be (un)commented. Otherwise the paragraph that the | |
115 point is in will be (un)commented. | |
116 | |
117 [ETC] | |
118 | |
119 *Align and fill item [prefix] i | |
120 | |
121 Available only in an environment. Will do a hanging indent on the | |
122 \item. | |
123 | |
124 *Change LaTeX command [prefix] c | |
125 | |
126 On a line with \begin{} or \end{}, will change the name of the | |
127 environment. On a section-type command, will change the command | |
128 name, and also change arguments if invoked on the argument. For | |
129 large-type command, will change font/size definitions. On a math | |
130 mode command entered using image-type completion, will return to | |
131 the completion operation. | |
132 | |
133 *Kill commands [prefix] k | |
134 | |
135 For \begin{}/\end{}, %#BEGIN/%#END, and parenthesis, will delete | |
136 them in pairs. For section-type commands, font/size definition, | |
137 will delete the command ant parenthesis surrounding them. | |
138 | |
139 *Enclose region with () [prefix] ) | |
140 *Enclose region with {} [prefix] } | |
141 *Enclose region with [] [prefix] ] | |
142 *Enclose region with $$ [prefix] $ | |
143 | |
144 *Toggle modes [prefix] w | |
145 | |
146 Will toggle between modify mode and math mode. | |
147 | |
148 *%# editing [prefix] % | |
149 *Show columns in tabular/array [prefix] & | |
150 *Online help [prefix] h | |
151 *Online apropos [prefix] / | |
152 *Intelligent return ESC RET | |
153 | |
154 Intelligent return can be used in tabular, array, itemize, | |
155 enumerate, list and description environments. | |
156 | |
157 *Browse included structure [prefix] d | |
379
09a2b5a3b3d8
Describe about [prefix] t d and [prefix] t e and so on.
HIROSE Yuuji <yuuji@gentei.org>
parents:
70
diff
changeset
|
158 *Force re-highlight font-lock [prefix] u |
54 | 159 |
69 | 160 HIROSE Yuuji |
70 | 161 yuuji@yatex.org |
54 | 162 |
163 Local variables: | |
164 mode: text | |
165 fill-prefix: " " | |
166 End: |