Kile has no special "build project" tool for building LaTeX master files (which irritates former TeXnicCenter users like me).
To handle LaTeX master files, e.g. a thesis with chapter input from \include{file} statements, define a Kile project and add all .tex files irrespective of master and child status.
Check the master file in the project options, usually the auto-detect option works (I assume Kile searches all files for \begin{document}/\end{document}). All normal build tools shold now apply only to the master file, no matter which document you are just editing.
Another issue: Using BibTeX in a Kile project. For this you need the QuickBuild tool. PDFLaTeX+BibTeX isn't preconfigured (at least with my Kile version) and has to be added by hand in Settings->Configure Kile…->Tools->Build:
PDFLaTeX
BibTeX
PDFLaTeX
PDFLaTeX
After that, you can run everything from inside Kile with the QuickBuild button.
If you are using a Kile project with a master document, you have to specify the appropriate QuickBuild configuration in the Project->Project Options dialog. (Actually, if you include a BibTeX bibliography in a .tex file, Kile seems to run BibTeX and 3 times LaTeX automatically. Still, it's good to have the QuickBuild handy). Also, there was a bug removing duplicate entries like "PDFLaTeX PDFLaTeX" in the Quickbuild configuration of Kile/KDE4 (fixed by now).
26/08/2008
25/08/2008
Blank Java windows with compiz
Java apps (e.g. my favourite BibTeX editor, JabRef) have a habit of coming up as persistently blank windows with compiz and several recent Java versions. According to this thread this is due to Java expecting your window manager to re-parent the window which compiz doesn't (I'm so not a WM expert...). The following workaround did OK for me. Override the Java VM's default AWT Toolkit, e. g. calling JabRef:
export AWT_TOOLKIT=MToolkit
java -jar JabRef-2.3.1.jar
If you use Java apps a lot, it might be a good idea to add the export statement to your ~/.bashrc - or write the two lines above in a shell script in /usr/bin or similar.
UPDATE (2010): My days of compiz are long past, but I didn't change my ~/.bashrc despite several new SuSE installations. Running Jabref 2.5 with Sun's Java 1.6.0_17 on SuSE 11.2 (KDE 4.4β) produced a segfault citing a problematic frame in libc.so.6. Unsetting the AWT_TOOLKIT variable solved it.
export AWT_TOOLKIT=MToolkit
java -jar JabRef-2.3.1.jar
If you use Java apps a lot, it might be a good idea to add the export statement to your ~/.bashrc - or write the two lines above in a shell script in /usr/bin or similar.
UPDATE (2010): My days of compiz are long past, but I didn't change my ~/.bashrc despite several new SuSE installations. Running Jabref 2.5 with Sun's Java 1.6.0_17 on SuSE 11.2 (KDE 4.4β) produced a segfault citing a problematic frame in libc.so.6. Unsetting the AWT_TOOLKIT variable solved it.
16/08/2008
Samsung P35: openSuSE 11 and Compiz
After I had completely f**ked up my X-Server by trying different fglrx drivers in order to get a reasonable compiz 3d-Acceleration, I finally decided to throw away my openSuSE 10.3 and install openSuSE 11 on my Samsung P35 XVM 1600 II, graphics card ATI Mobility Radeon 9700 series. Installation went smooth, apart from the interesting suggestion of the setup program not to just mount my home partition, but format it (yes, you should be careful about that as well - I don't want to lose all my settings just because openSuSE thinks that might be a good idea).
After the reboot, I was more than impressed... Compiz was running out of the box, without even the need to use the ati fglrx driver. This is the proof, with the radeon driver included in the XServer version of openSuSE 11 the card definitely runs AIGLX - by the way also without the well known "freeze after ending an x-session" error. Video playback of embedded flash movies in firefox unfortunately flickers a little bit. But if you use fusion-icon, you can switch back to Kwin as window manager temporarily for viewing (add the openSuSE Build: Xgl/Xorg repo to Yast in order to find fusion-icon). On the other hand, playing movies with Kaffeine doesn't show flicker at all.
The hotkeys don't work out of the box, but it is sufficient to look for acerhk in Yast after adding the standard repos and choose the appropriate rpm for your kernel flavor (which you can also get by opening Konqueror and typing sysinfo:/ into the adress bar). After the necessary reboot all the (important) hotkeys work.
After the reboot, I was more than impressed... Compiz was running out of the box, without even the need to use the ati fglrx driver. This is the proof, with the radeon driver included in the XServer version of openSuSE 11 the card definitely runs AIGLX - by the way also without the well known "freeze after ending an x-session" error. Video playback of embedded flash movies in firefox unfortunately flickers a little bit. But if you use fusion-icon, you can switch back to Kwin as window manager temporarily for viewing (add the openSuSE Build: Xgl/Xorg repo to Yast in order to find fusion-icon). On the other hand, playing movies with Kaffeine doesn't show flicker at all.
The hotkeys don't work out of the box, but it is sufficient to look for acerhk in Yast after adding the standard repos and choose the appropriate rpm for your kernel flavor (which you can also get by opening Konqueror and typing sysinfo:/ into the adress bar). After the necessary reboot all the (important) hotkeys work.
01/08/2008
miktex-tools don't compile on openSuSE 11...
...because they included a newer gcc version (4.3.1 rc1). Typical make error: "expected ‘;’ before ‘<’ token". This is a known bug (see this discussion), and there is a patch - there are just some include statements missing.
Download the patch file mpm-2.7.3107-gcc-4.3.patch and run
patch -p0 < mpm-2.7.3107-gcc-4.3.patch
in the directory where you untarred the sources.
If your patch fails, try patching manually (read the patch file), it's just one or two lines each in less than 10 files. Mpm should compile OK now (HowTo).
A nice diff and patch intro can be found at linuxforums.org.
Considering the easy fix, I suppose they'll dispose of this bug soon ;-)
Download the patch file mpm-2.7.3107-gcc-4.3.patch and run
patch -p0 < mpm-2.7.3107-gcc-4.3.patch
in the directory where you untarred the sources.
If your patch fails, try patching manually (read the patch file), it's just one or two lines each in less than 10 files. Mpm should compile OK now (HowTo).
A nice diff and patch intro can be found at linuxforums.org.
Considering the easy fix, I suppose they'll dispose of this bug soon ;-)
29/07/2008
Linux programs on Windows? Yes! The magic word: andLinux
Again a post which is not really related to OpenSuSE at all, but for people still living in the Windoze world...
Maybe you stumbled upon really nice programs while trying out some Linux distribution, but you can't get away from Windows (yet) and still want to use some of those nice programs? Here is the solution:
andLinux offers you a complete Ubuntu Linux within Windows. The nice thing is: it is not a virtual machine (i.e. a second "PC" starting in your main machine) but rather a running service in Windows which speeds up the whole thing quite a bit.
I've installed the andLinux kde version on my office Windows Machine. I didn't want to have it started automatically so I chose "run as service manually" in the install options. (Just a note: you'll need 4.5 GB of free harddisk space for the KDE version!)
You can exchange data with it most recommendetly via "Samba" - for all newbies: this is the part in Linux which can communicate with the Windows File Share System. To use this feature, you need to create a Share for the folder you want to exchange date with linux (most likely: your private data folder). Create a user with username and password and share the folder for this user (don't use blanks in the share name) - these data will be asked for during the install routine of andLinux and enable it to communicate with Windows
First impression: after having clicked the "Start andLinux" startup button in the associated Start-Menu entry, nothing happened.
The reason was my firewall: andLinux installes a virtual network device called TAP-Colinux and all the communication with windows runs over the TCP/IP-protocol. So tell your firewall to accept any traffic on that network device and from and to the IPs: 192.168.11.150 (linux host) and 192.168.11.1 (windows host). There is also the sound server called pulseaudio and the X-Server called Xming which need entire network address to the addresses mentioned before. You will also have to enable network access to "menu.exe" which communicates with the embedded linux via TCP/IP.
Now you can open any program in this nice little kde-launcher-menu installed by andlinux and running in the task bar, or if you prefer, open a console (see the andLinux start menu folder) and launch stuff from there. By using Synaptic you can install whatever package you like from the ubuntu
All that being very nice, I was still unhappy that e.g. the kde-menu and the Xserver Xming started on system boot up and not only when I wanted to use andLinux, so I edited the startup script "start andLinux" (i.e. C:\Programme\andLinux\srvstart.bat) to the following content and removed Xming and the kde-menu from the startup by using msconfig.exe (you should be familiar with that, otherwise don't fiddle with it!)
Note: the first lines beginning with "start" until "Xming.log" are actually ONE line.
Just to let you know, in case you see strange characters e.g. by using Kate or Kile in Windows: the standard code page used for the German Windows is ISO 8859-15 (which you can set being the default for the programs mentioned).
BE CAREFUL: there is a security issue: every program is in standard run as the root user in andLInux, which means, you (or somebody else having access to your machine) can quite heavily damage the installed andLinux system by accident). There is in principle a way to change that in the wiki of andLinux, but it seems rather complicated and I didn't want to fiddle around with it so far.
Maybe you stumbled upon really nice programs while trying out some Linux distribution, but you can't get away from Windows (yet) and still want to use some of those nice programs? Here is the solution:
andLinux offers you a complete Ubuntu Linux within Windows. The nice thing is: it is not a virtual machine (i.e. a second "PC" starting in your main machine) but rather a running service in Windows which speeds up the whole thing quite a bit.
I've installed the andLinux kde version on my office Windows Machine. I didn't want to have it started automatically so I chose "run as service manually" in the install options. (Just a note: you'll need 4.5 GB of free harddisk space for the KDE version!)
You can exchange data with it most recommendetly via "Samba" - for all newbies: this is the part in Linux which can communicate with the Windows File Share System. To use this feature, you need to create a Share for the folder you want to exchange date with linux (most likely: your private data folder). Create a user with username and password and share the folder for this user (don't use blanks in the share name) - these data will be asked for during the install routine of andLinux and enable it to communicate with Windows
First impression: after having clicked the "Start andLinux" startup button in the associated Start-Menu entry, nothing happened.
The reason was my firewall: andLinux installes a virtual network device called TAP-Colinux and all the communication with windows runs over the TCP/IP-protocol. So tell your firewall to accept any traffic on that network device and from and to the IPs: 192.168.11.150 (linux host) and 192.168.11.1 (windows host). There is also the sound server called pulseaudio and the X-Server called Xming which need entire network address to the addresses mentioned before. You will also have to enable network access to "menu.exe" which communicates with the embedded linux via TCP/IP.
Now you can open any program in this nice little kde-launcher-menu installed by andlinux and running in the task bar, or if you prefer, open a console (see the andLinux start menu folder) and launch stuff from there. By using Synaptic you can install whatever package you like from the ubuntu
All that being very nice, I was still unhappy that e.g. the kde-menu and the Xserver Xming started on system boot up and not only when I wanted to use andLinux, so I edited the startup script "start andLinux" (i.e. C:\Programme\andLinux\srvstart.bat) to the following content and removed Xming and the kde-menu from the startup by using msconfig.exe (you should be familiar with that, otherwise don't fiddle with it!)
start C:\Programme\andLinux\Xming\Xming.exe :0 -dpi 85 -clipboard -notrayicon -c -multiwindow -reset -terminate -unixkill -logfile Xming.log
net start andLinux
cd C:\Programme\andLinux\Launcher\
start C:\Programme\andLinux\Launcher\menu.exe
net start andLinux
cd C:\Programme\andLinux\Launcher\
start C:\Programme\andLinux\Launcher\menu.exe
Note: the first lines beginning with "start" until "Xming.log" are actually ONE line.
Just to let you know, in case you see strange characters e.g. by using Kate or Kile in Windows: the standard code page used for the German Windows is ISO 8859-15 (which you can set being the default for the programs mentioned).
BE CAREFUL: there is a security issue: every program is in standard run as the root user in andLInux, which means, you (or somebody else having access to your machine) can quite heavily damage the installed andLinux system by accident). There is in principle a way to change that in the wiki of andLinux, but it seems rather complicated and I didn't want to fiddle around with it so far.
python-matplotlib and wxmpl
wxmpl is a nice library for implementing matplotlib-plots in wxpython-GUIs.

However, it is not always synchronised with the latest matplotlib. So, a rather careless system update to matplotlib 0.98 (major makeover somewhere) from the packman repo quite efficiently disables wxmpl 1.2.9:
"ImportError: cannot import name Point" (from matplotlib.transforms)... and so on...
0.91 works - there is a SuSE package in the Education repository, add
ftp5.gwdg.de/pub/opensuse/repositories/Education/desktop/openSUSE_10.3/ in YaST (or openSUSE_11.0, note that the URL dropped a ":" since I last edited this post) - and while you're at it, protect your python packages against updates ;-)
On the matplotlib Sourceforge mailing list, someone has posted an inofficial updated version, which should be OK with matplotlib-0.98. However, they dropped 3d plotting support from matplotlib > 0.91, so maybe it's still advisable to stick to older versions. Update: 3d plotting is going to be back in in 0.99 (see here). Yay!
Note that there seems to be some bug with numpy's histogram function: if you set the normed keyword, you might get a
TypeError: 'NoneType' object is not iterable error.
Note: I've been experiencing segmentation faults at calling pylab.show() from a wxpython application. In my case this was due to the matplotlib using the wrong backend:
If there is no file ~/.matplotlib/matplotlibrc, copy it from /usr/lib/python2.5/site-packages/matplotlib/mpl-data/matplotlibrc.
Edit the "backend"-line to WxAgg:
Alternative: import the packages in exactly this order:
$ import matplotlib
$ matplotlib.use('WXAgg')
$ import pylab
On the other hand, calling pylab.show() repeatedly with the 'WXAgg' backend from a non wx-environment (e.g. a shell) can result in blank or crashing figure windows starting from the second call. Use some other backend, for example 'GTKAgg', following the example above.

However, it is not always synchronised with the latest matplotlib. So, a rather careless system update to matplotlib 0.98 (major makeover somewhere) from the packman repo quite efficiently disables wxmpl 1.2.9:
"ImportError: cannot import name Point" (from matplotlib.transforms)... and so on...
0.91 works - there is a SuSE package in the Education repository, add
ftp5.gwdg.de/pub/opensuse/repositories/Education/desktop/openSUSE_10.3/ in YaST (or openSUSE_11.0, note that the URL dropped a ":" since I last edited this post) - and while you're at it, protect your python packages against updates ;-)
On the matplotlib Sourceforge mailing list, someone has posted an inofficial updated version, which should be OK with matplotlib-0.98. However, they dropped 3d plotting support from matplotlib > 0.91, so maybe it's still advisable to stick to older versions. Update: 3d plotting is going to be back in in 0.99 (see here). Yay!
Note that there seems to be some bug with numpy's histogram function: if you set the normed keyword, you might get a
TypeError: 'NoneType' object is not iterable error.
Note: I've been experiencing segmentation faults at calling pylab.show() from a wxpython application. In my case this was due to the matplotlib using the wrong backend:
If there is no file ~/.matplotlib/matplotlibrc, copy it from /usr/lib/python2.5/site-packages/matplotlib/mpl-data/matplotlibrc.
Edit the "backend"-line to WxAgg:
#### CONFIGURATION BEGINS HERE
# the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
# WX WXAgg Agg Cairo GD GDK Paint PS PDF SVG Template
backend: WXAgg
# the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
# WX WXAgg Agg Cairo GD GDK Paint PS PDF SVG Template
backend: WXAgg
Alternative: import the packages in exactly this order:
$ import matplotlib
$ matplotlib.use('WXAgg')
$ import pylab
On the other hand, calling pylab.show() repeatedly with the 'WXAgg' backend from a non wx-environment (e.g. a shell) can result in blank or crashing figure windows starting from the second call. Use some other backend, for example 'GTKAgg', following the example above.
27/07/2008
Amarok - composer vs. artist tag
It is always a bit frustrating for classical music lovers when audio players don't distinguish properly between artist and composer or insist on sorting by artist, so that one tends to specify the composer as the artist.
Amarok is quite good there. The tag editor (right click on file or album, ->Edit track information) distinguishes between artist and composer. The collection can be browsed by any criterion by clicking on "Group by" in the top toolbar. On-screen display ("%composer" placeholder) and the track list (edit columns) can also display composer info. Only the Wikipedia context browser still has only the "Artist" option. Someone wrote a wishlist entry (Bug 147552) on bugs.kde.org - so vote for it ;-)
Note (amarok2 on KDE4.2): check the output of qdbus org.kde.amarok /Player GetMetadata. And I wondered why my Karamba edits had no effect…
Moreover, they dropped the OSD text configuration option - so no composer there either.
Amarok is quite good there. The tag editor (right click on file or album, ->Edit track information) distinguishes between artist and composer. The collection can be browsed by any criterion by clicking on "Group by" in the top toolbar. On-screen display ("%composer" placeholder) and the track list (edit columns) can also display composer info. Only the Wikipedia context browser still has only the "Artist" option. Someone wrote a wishlist entry (Bug 147552) on bugs.kde.org - so vote for it ;-)
Note (amarok2 on KDE4.2): check the output of qdbus org.kde.amarok /Player GetMetadata. And I wondered why my Karamba edits had no effect…
Moreover, they dropped the OSD text configuration option - so no composer there either.
Automating the pdf movie workaround
These ought to make the PDF-embedded movie workaround a bit less cumbersome.
Subscribe to:
Posts (Atom)