📄 manual.html
字号:
<tt>'&', '<', '>'</tt> replaced by <tt>&amp;, &lt;,&gt;</tt>. Whitespace and linefeeds are preserved (in particular,no extraneous whitespace should be inserted between the enclosing tagsand the text itself).</p><hr /><a name="installation"></a><h2 class="subtitle">Installation issues</h2><h3 class="subsub">Dependencies</h3><p>The following libraries are required to run Xournal (they are standard onmodern Linux distributions such as Fedora Core 3 or later, or RHEL 4 orlater):<ul> <li> the <b>gtk+</b> libraries, version <b>2.4</b> or later (2.6 recommended) (package gtk2 and dependencies)</li> <li> <b>libgnomecanvas</b> version <b>2.4</b> or later (package libgnomecanvas and dependencies)</li> <li> <b>libgnomeprint</b> and <b>libgnomeprintui</b> version <b>2.2</b> or later (packages libgnomeprint22, libgnomeprintui22, and dependencies) </li></ul></p><p> Additionally:<ul> <li> <b>xpdf</b> (more precisely, <b>pdftoppm</b>) is required for PDF fileannotation</li> <li> <b>ghostscript</b> (optional: used to import PS/PDF files as bitmap backgrounds)</li></ul><p>To compile Xournal, you also need the <b>development packages</b> for the abovelibraries (packages gtk2-devel, libgnomecanvas-devel, libgnomeprint22-devel,libgnomeprintui22-devel, and dependencies), as well as <b>autoconf</b> and<b>automake</b>.</p><h3 class="subsub">Compilation and installation procedure</h3><p>Download the Xournal distribution tar.gz file, and any needed dependencies.</p><p><b>Binary installation in /usr/local:</b><br />Run (as root) the installer script<pre>./install-binary</pre> (and upgrade GTK+ and the other libraries if needed).</p><p><b>Binary installation in home directory:</b><br />Run (as any user) the installer script<pre>./install-binary</pre> (and hope that the required libraries areinstalled on your system).</p><p><b>Compilation and installation in /usr/local:</b><pre>./autogen.shmake(as root) make install</pre></p><p><b>Compilation and installation in $HOME:</b><pre>./autogen.sh./configure --prefix=$HOMEmakemake install</pre></p><p><b>Configure error message:</b> <br />If autogen.sh generates the error message <tt><i>configure: error: Library requirements (gtk+-2.0 >= 2.4.0 libgnomecanvas-2.0 >= 2.4.0 libgnomeprintui-2.2 >= 2.0.0) not met</i></tt> even though you have sufficiently recent versions of these libraries on yoursystem, then you need to install some missing development packages.</p><hr /><a name="calibration"></a><h2 class="subtitle">Tablet calibration issues</h2><p>Configuring the tablet devices properly is unfortunately not as simple as itought to be. This is a subject worthy of a detailed how-to document;meanwhile, here are some hints about how to configure your tablet.</p><h3 class="subsub">Basics</h3><p>Xournal uses the XInput extension to obtain high-resolution coordinates forstrokes drawn using the stylus. If you decide that getting just the rightXInput configuration isn't worth the effort, you can disable XInput featuresby unsetting the "Use XInput" option in the Options menu. The price to payis a lower graphics quality, as the resolution of all strokes then drops to1 pixel (instead of the native resolution of the tablet device, which canbe higher by several orders of magnitude).</p><p>The configuration of tablet devices is controlled in the X server'sconfiguration file (usually <b>XF86Config</b> or <b>xorg.conf</b> depending on yourdistribution). The ServerLayout section should contain lines like:<pre>Section "ServerLayout" ... InputDevice "cursor" "SendCoreEvents" InputDevice "stylus" "SendCoreEvents" InputDevice "eraser" "SendCoreEvents"EndSection</pre>(the last one only if your stylus has an eraser tip), and your configurationfile should include sections such as<pre>Section "InputDevice" Identifier "cursor" Driver "wacom" Option "Device" "/dev/ttyS0" Option "Type" "cursor" Option "ForceDevice" "ISDV4" Option "BottomX" "28800" Option "BottomY" "21760" Option "Mode" "absolute"EndSectionSection "InputDevice" Identifier "stylus" Driver "wacom" Option "Device" "/dev/ttyS0" Option "Type" "stylus" Option "ForceDevice" "ISDV4" Option "BottomX" "28800" Option "BottomY" "21760" Option "Mode" "absolute"EndSectionSection "InputDevice" Identifier "eraser" Driver "wacom" Option "Device" "/dev/ttyS0" Option "Type" "eraser" Option "ForceDevice" "ISDV4" Option "BottomX" "28800" Option "BottomY" "21760" Option "Mode" "absolute"EndSection</pre>The actual settings will depend on your hardware; look on the web for Linuxinstallation instructions specific to your model: for example, the"Device" settings above correspond to a serial port protocol, many tabletsuse USB instead; the BottomX and BottomY values correspond to the physicalresolution of the tablet and will vary from one model to another.</p><p>For historical reasons, most X servers do not allow the input devicedesignated as the "core pointer" in the X server's configuration fileto be used as an XInput extension device. Thus, your tablet input devicesshould <b>not</b> be designated as the core pointer device. Instead, theyshould be configured with the "SendCoreEvents" option, which enables themto simultaneously generate XInput extension events and move the cursor onthe screen. Since high-resolution coordinates cannot be obtained for thecore pointer device, it is disabled in Xournal by default. Starting with version 0.3.3,it is possible to have core events processed alongside with extensionevents (uncheck "Discard Core Events" in the Options menu); however, insome rare cases this may lead to a loss of resolution on all devices.</p><h3 class="subsub">The cursor doesn't appear in the right place...</h3><p>If the mouse pointer does not follow accurately the position of the stylus,this is an indication that your tablet is not properly calibrated. If youhave the linuxwacom package, you can try modifying the tablet calibrationusing <b>xsetwacom</b>. The relevant parameters are named TopX, BottomX,TopY, BottomY, and need to be set separately for the stylus and for theeraser. For example:<pre> xsetwacom set stylus TopX 270 xsetwacom set stylus BottomX 28510 ...</pre>(the TopX and TopY parameters default to 0 if you haven't set them in yourX server's configuration file). Experiment with these parameters until youfind the right calibration settings for your tablet (i.e., the mouse pointerappears right under the tip of the stylus).</p><p>Once you have found the perfect settings for your tablet, update your Xserver's configuration file (due to issues with some versions of thelinuxwacom driver, the tablet calibration information is often not updatedproperly when using xsetwacom).</p><p><b>Important:</b> due to issues with the linuxwacom driver, it is importantto either upgrade your driver to a <a href="manual.html#wacompatch">patchedversion</a>, or restrict your choice of settings as follows:<ul><li> your calibration settings should not be changed at runtime (i.e.,insert your settings directly into your X server configuration file.Do not add a list of xsetwacom commands to your startup files).</li><li> TopX and TopY values should always be 0.</li></ul></p><h3 class="subsub">Strokes aren't drawn under the cursor...</h3><p>This is due to misfeatures in the linuxwacom driver in versions priorto 0.7.6. Typically, this will happen in all of the following cases:<ul><li> the calibration settings have been changed after the X server wasstarted (using xsetwacom) </li><li> the calibration TopX or TopY values are not 0 </li><li> the display has been rotated </li></ul>Most of these issues should have been fixed in version 0.7.6 of thewacom driver. Otherwise, you caneither disable XInput support in Xournal (in the Options menu), at aprice of a severe loss of resolution (and the eraser tip won't be detectedanymore), or apply this <a href="manual.html#wacompatch">patch</a>to version 0.7.0 of the wacom driver.</p><p>I have also had a report that one of the workarounds used by Xournal tobypass a calibration bug in GTK+ can actually entirely prevent strokesfrom being drawn. If you are being unsuccessful at drawing in Xournalwith XInput enabled, try recompiling after changing the first line of<tt>src/main.c</tt> to<pre>#define ENABLE_XINPUT_BUGFIX 0</pre>If this modification does improve things for you, and if you have a bitof spare time to help investigate the causes of this problem, pleasecontact me.</p><h3 class="subsub">On-the-fly display rotation</h3><p> You need an X server that supports the RANDR extension, and arecent (0.7.6 or later) or <a href="manual.html#wacompatch">patched</a> version of the linuxwacom driver to support on-the-fly rotation.</p><p>To set the tablet in portrait mode:<pre> xrandr -o 3 xsetwacom set stylus Rotate cw</pre>To return to landscape mode:<pre> xrandr -o 0 xsetwacom set stylus Rotate none</pre><b>Note:</b> you should not rotate the display while Xournal is running,otherwise the tablet calibration in Xournal may (and most likely will)become incorrect.Exit Xournal and restart it after the display has been rotated.</p><a name="wacompatch"></a><h3 class="subsub">Linuxwacom patch for calibration and rotation</h3><p>This patch fixes rotation and calibration issues with the linuxwacom driverversion 0.7.0.<ul><li>The <a href="http://xournal.sourceforge.net/linuxwacom-0.7.0-rotate-patch">patchfile</a> for the linuxwacom source code (also included with the Xournaldistribution).</li><li>The <a href="http://xournal.sourceforge.net/linuxwacom-rotate-patch.tar.gz">patchedbinaries</a> for the X.org X server.</li></ul>This patch has been included in version 0.7.6 of the linuxwacom driver,and should now be obsolete.</p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -