This directory contains binaries for LyX with the Qt interface on Mac OS X. The difference to the official binaries is that I modified the modifier key bindings.
The binaries on this page are for LyX 1.6.7 and below. Starting with LyX 2.0, this page won't be necessary anymore because the official source now includes my fix for the issue described below.
The LyX sources are available at http://www.lyx.org/Download, and mirrored (e.g.) at http://gd.tuwien.ac.at/publishing/tex/lyx/. The user interface, including the modifier key functionality, is provided by Trolltech's QT libraries. The opensource tarball is found at their FTP site.
In LyX, you can customize the keyboard shortcuts in the user interface, and even customize other interface aspects such as the toolbars (the former page isn't quite up-to-date), but one thing that's hard-wired in LyX versions prior to 2.0 is that the CONTROL and COMMAND (⌘) keys are switched; you have to use the COMMAND key to do things such as emacs' C-k
(kill to end of line) etc. The rationale for this is that Apple's conventional modifier key for copy and paste is COMMAND. But for people who also use emacs, this switch is inconvenient.
For my binaries, I have un-done the Apple-specific switch of the COMMAND and CONTROL keys. Use one of these binaries if you want the CONTROL
key on the Mac keyboard to correspond to the LyX "C" modifier.
The zip
files linked here contain only the app bundle, not the installer. To use these binaries, you therefore should first download and install the official version, then replace LyX.app
with mine, making sure the version number matches. Obviously, there is no warranty of any kind for any code downloaded by anyone from my web site, and you are using said code at your own risk.
qt-4.6.2
.
Lyx 1.6.7
. You can apply this from the parent directory of lyx-1.6.7
by typing patch -p0 < lyx-167-KeyChoice.patch
Qt4
as described in the INSTALL.MacOSX
that ships with the LyX source. INSTALL.MacOSX
need to be modified as follows (assuming tcsh
syntax - for bash
, replace setenv LDFLAGS
by export LDFLAGS=
):
setenv LDFLAGS "-framework Carbon -framework OpenGL -framework AGL -framework QuickTime -framework Cocoa -arch i386" setenv CFLAGS "-arch i386" setenv CXXFLAGS "-arch i386" setenv OBJCFLAGS "-arch i386" ./configure --prefix=/PATH/TO/LyX.app --with-version-suffix=-1.6 --with-qt4-dir=/PATH/TO/qt4 --with-included-gettext --enable-optimization=-Os --host=i386-apple-darwin10 make make install-strip
Control
. But now you can simply go to the Preferences
, under Editing → Keyboard/Mouse
, and check the box "Do not swap Meta and Control keys," as shown in the screenshot on the right. The switch of the modifier keys will take effect when you restart LyX. Unlike previous workarounds, this fix also correctly re-labels the keyboard shortcuts as displayed in the menu bar.qt-4.6.2
For Snow Leopard: LyX.zip, Mac OS 10.6.3 (requires Snow Leopard and won't run on Leopard; for OS X 10.5.x, use the build below).qt-4.5.3
.
The patch linked here has been applied to the source file qt-mac-opensource-src-4.5.3/src/gui/kernel/qkeymapper_mac.cpp
.
~/Library/Application Support/LyX-1.6/bind
I replaced "break-line" by "newline-insert" - the command has changed.
Shift-left-arrow
and Shift-right-arrow
no longer work to select text, go to
LyX Preferences > Editing > Shortcuts
and search for char-forward-select
in the list of commands. You will see that the shortcut entry is empty. Just add the key combination Shift + right arrow in that field. Do the same for char-backward-select
.
qt-4.5.3
on Intel OS 10.5.8
qt-mac-opensource-src-4.5.3/src/gui/kernel/qkeymapper_mac.cpp
. The binary also runs on OS X 10.6.
qt-4.3.4
on Intel OS 10.4, also works on OS 10.5
qt-4.3.4
on Intel OS 10.4, also works on OS 10.5
Please let me know if these binaries work for you or not.
I prefer turning off instant preview of math equations in the Preferences. This is my preferred setting because it makes math insets stand out more clearly in the text, and it speeds up the editor.
LyX uses LaTeX to export printable documents (e.g. PDF). However, LyX has meanwhile become so easy to use that you can get impressive results with LyX without knowing much LaTeX. If you want to go beyond the basics and start tweaking LyX output, you will need LaTeX skills; check out my LaTeX Page to learn more.
If you find bugs that the users and developers lists don't know about: