File: configuration.docbook

package info (click to toggle)
ktikz 0.13.1%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,136 kB
  • sloc: cpp: 10,491; xml: 701; sh: 131; makefile: 19
file content (262 lines) | stat: -rw-r--r-- 10,925 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<chapter id="chap-configuration">
<title>Configure &kappname;</title>

<sect1 id="sect1-configuration-index">
	<title>General Configuration</title>
	<para>
		In order to configure &ktikz; the user needs to access the &ktikz; Configuration dialog.  This can be accessed via the menu bar, by selecting <menuchoice><guimenu>Settings</guimenu><guimenuitem>Configure &ktikz;...</guimenuitem></menuchoice>.
	</para>
	<para>
		The &ktikz; Configuration dialog consists of three sections; <guilabel>General</guilabel>, <guilabel>Editor</guilabel> and <guilabel>Highlighting</guilabel>.  Clicking one of these sections in the vertical list on the left side of the dialog will make those options available accordingly.  The options available are displayed to the right of the dialog.
	</para>
	<para>
		By means of buttons along the bottom of the box the user can control the configuration process.  You may invoke the <guilabel>Help</guilabel> system, accept the current settings and close the dialog by means of the <guibutton>OK</guibutton> button, or <guibutton>Cancel</guibutton> the process.
	</para>
	<para>
		The categories <guilabel>General</guilabel>, <guilabel>Editor</guilabel> and <guilabel>Highlighting</guilabel> are detailed in the following sections.
	</para>
	<itemizedlist>
		<listitem>
			<para><link linkend="sect1-configuration-general">General</link></para>
		</listitem>
		<listitem>
			<para><link linkend="sect1-configuration-editor">Editor</link></para>
		</listitem>
		<listitem>
			<para><link linkend="sect1-configuration-highlighting">Highlighting</link></para>
		</listitem>
	</itemizedlist>
</sect1>

<sect1 id="sect1-configuration-general">
	<title>General</title>

	<para>This section of the dialog lets you configure the interface and set the paths to the necessary executables and the documentation.</para>

	<para>
		<screenshot>
			<screeninfo>&ktikz; configuration dialog - General</screeninfo>
			<mediaobject>
				<imageobject><imagedata fileref="configuration-general.png" format="PNG"/></imageobject>
				<textobject><phrase>&ktikz; Configuration Window Showing The General Options</phrase></textobject>
			</mediaobject>
		</screenshot>
	</para>

	<variablelist>
	<varlistentry>
		<term><guilabel>Interface</guilabel></term>
		<listitem>
			<variablelist>
			<varlistentry>
				<term><guilabel>Show TikZ commands in dock instead of menu</guilabel></term>
				<listitem><para>If this option is checked, a dock widget is available with a list of TikZ commands which you can insert in your code by clicking on them.  If this option is not checked, the TikZ commands will be available in a menu instead.  You have to restart &ktikz; for this change to take effect.</para></listitem>
			</varlistentry>
			</variablelist>
		</listitem>
	</varlistentry>

	<varlistentry>
		<term><guilabel>Preview</guilabel></term>
		<listitem>
			<variablelist>
			<varlistentry>
				<term><guilabel>Preview generation</guilabel></term>
				<listitem><para>Specify whether the preview should be generated automatically or manually.</para>
					<variablelist>
					<varlistentry>
						<term><guilabel>Automatically</guilabel></term>
						<listitem><para>If this option is checked, the TikZ code in the editor is compiled while editing.</para></listitem>
					</varlistentry>
					<varlistentry>
						<term><guilabel>Manually</guilabel></term>
						<listitem><para>If this option is checked, a <guilabel>Build</guilabel> button is available and the TikZ code is only compiled when you press that button.</para></listitem>
					</varlistentry>
					</variablelist>
				</listitem>
			</varlistentry>
			<varlistentry>
				<term><guilabel>Show mouse coordinates</guilabel></term>
				<listitem><para>If this option is checked, the coordinates of the mouse cursor in the preview are shown.</para>
					<variablelist>
					<varlistentry>
						<term><guilabel>Use best precision</guilabel></term>
						<listitem><para>If this option is checked, the mouse coordinates are shown with enough precision but without redundant decimals.</para></listitem>
					</varlistentry>
					<varlistentry>
						<term><guilabel>Specify precision</guilabel></term>
						<listitem><para>If this option is checked, the mouse coordinates are shown with the specified number of decimals.</para></listitem>
					</varlistentry>
					</variablelist>
				</listitem>
			</varlistentry>
			</variablelist>
		</listitem>
	</varlistentry>

	<varlistentry>
		<term><guilabel>Commands</guilabel></term>
		<listitem>
			<variablelist>
			<varlistentry>
				<term><guilabel>PDFLaTeX command</guilabel></term>
				<listitem><para>Enter the path of the PDFLaTeX executable here.  This executable is used to typeset a LaTeX file containing the TikZ code in order to generate the preview.</para></listitem>
			</varlistentry>
			<varlistentry>
				<term><guilabel>Pdftops command</guilabel></term>
				<listitem><para>Enter the path to the pdftops executable (part of poppler) here.  This executable is used to export the image to EPS (Encapsulated PostScript).</para></listitem>
			</varlistentry>
			</variablelist>
		</listitem>
	</varlistentry>

	<varlistentry>
		<term><guilabel>Templates</guilabel></term>
		<listitem>
			<variablelist>
			<varlistentry>
				<term><guilabel>Replace text</guilabel></term>
				<listitem><para>Enter the text which will be replaced by the TikZ code in the <link linkend="sect1-using-ktikz-templates">template</link> here.</para></listitem>
			</varlistentry>
			<varlistentry>
				<term><guilabel>Editor command</guilabel></term>
				<listitem><para>Enter the path to the executable of the text editor for the <link linkend="sect1-using-ktikz-templates">template</link> here.</para></listitem>
			</varlistentry>
			</variablelist>
		</listitem>
	</varlistentry>

	<varlistentry>
		<term><guilabel>Help</guilabel></term>
		<listitem>
			<variablelist>
			<varlistentry>
				<term><guilabel>TikZ documentation</guilabel></term>
				<listitem><para>Enter the path to the file containing the TikZ documentation here.  An URL to online documentation may also be given.</para>
					<variablelist>
					<varlistentry>
						<term><guilabel>Search</guilabel></term>
						<listitem><para>Press this button to search the file containing the TikZ documentation in the TeX directory structure using kpsewhich.</para></listitem>
					</varlistentry>
					</variablelist>
				</listitem>
			</varlistentry>
			</variablelist>
		</listitem>
	</varlistentry>
	</variablelist>
</sect1>

<sect1 id="sect1-configuration-editor">
	<title>Editor</title>

	<para>This section of the dialog lets you configure the look and feel of the text editor.</para>

	<para>
		<screenshot>
			<screeninfo>&ktikz; configuration dialog - Editor</screeninfo>
			<mediaobject>
				<imageobject><imagedata fileref="configuration-editor.png" format="PNG"/></imageobject>
				<textobject><phrase>&ktikz; Configuration Window Showing The Editor Options</phrase></textobject>
			</mediaobject>
		</screenshot>
	</para>

	<variablelist>
	<varlistentry>
		<term><guilabel>Editor</guilabel></term>
		<listitem>
			<variablelist>
			<varlistentry>
				<term><guilabel>Text font</guilabel></term>
				<listitem><para>Select the font of the unhighlighted main text.</para></listitem>
			</varlistentry>
			<varlistentry>
				<term><guilabel>Show white spaces</guilabel></term>
				<listitem><para>Show white spaces in the text by replacing them with special symbols.  These symbols will not be saved on disk.</para>
					<variablelist>
					<varlistentry>
						<term><guilabel>Use color</guilabel></term>
						<listitem><para>Select the color in which the spaces will be shown.</para></listitem>
					</varlistentry>
					</variablelist>
				</listitem>
			</varlistentry>
			<varlistentry>
				<term><guilabel>Show tabulators</guilabel></term>
				<listitem><para>Show tabulators in the text by replacing them with special symbols.  These symbols will not be saved on disk.</para>
					<variablelist>
					<varlistentry>
						<term><guilabel>Use color</guilabel></term>
						<listitem><para>Select the color in which the tabulators will be shown.</para></listitem>
					</varlistentry>
					</variablelist>
				</listitem>
			</varlistentry>
			<varlistentry>
				<term><guilabel>Show matching brackets</guilabel></term>
				<listitem><para>If the cursor is on a bracket ({[]}), then the corresponding opening/closing bracket will be highlighted.</para>
					<variablelist>
					<varlistentry>
						<term><guilabel>Use color</guilabel></term>
						<listitem><para>Select the color in which the highlighted brackets will be shown.</para></listitem>
					</varlistentry>
					</variablelist>
				</listitem>
			</varlistentry>
			<varlistentry>
				<term><guilabel>Use command completion</guilabel></term>
				<listitem><para>When the first letters of a TikZ command are typed in the text, a list of possible completions will be shown.</para></listitem>
			</varlistentry>
			</variablelist>
		</listitem>
	</varlistentry>
	</variablelist>
</sect1>

<sect1 id="sect1-configuration-highlighting">
	<title>Highlighting</title>

	<para>This section of the dialog lets you configure the fonts and colors for the highlighted code in the text editor.</para>

	<para>
		<screenshot>
			<screeninfo>&ktikz; configuration dialog - Highlighting</screeninfo>
			<mediaobject>
				<imageobject><imagedata fileref="configuration-highlighting.png" format="PNG"/></imageobject>
				<textobject><phrase>&ktikz; Configuration Window Showing The Highlighting Options</phrase></textobject>
			</mediaobject>
		</screenshot>
	</para>

	<variablelist>
	<varlistentry>
		<term><guilabel>Highlighting</guilabel></term>
		<listitem>
			<variablelist>
			<varlistentry>
				<term><guilabel>Standard</guilabel></term>
				<listitem><para>When this option is checked, the default fonts and colors are used in the output.</para></listitem>
			</varlistentry>
			<varlistentry>
				<term><guilabel>Custom</guilabel></term>
				<listitem><para>When this option is checked, the fonts and colors defined below will be used in the output instead of the default ones.</para></listitem>
			</varlistentry>
			<varlistentry>
				<term><guilabel>Change style for</guilabel></term>
				<listitem><para>Select in the table the structure appearing in the TikZ code for which you want to change the fonts and colors.</para></listitem>
			</varlistentry>
			<varlistentry>
				<term><guilabel>Change font</guilabel></term>
				<listitem><para>Select the font in which the structure that you selected in the table above should be displayed.</para></listitem>
			</varlistentry>
			<varlistentry>
				<term><guilabel>Change color</guilabel></term>
				<listitem><para>Select the text color in which the structure that you selected in the table above should be displayed.</para></listitem>
			</varlistentry>
			</variablelist>
		</listitem>
	</varlistentry>
	</variablelist>
</sect1>
</chapter>