Categories: Tag me, Windows, Tip, TrueType Fonts, Bibliography<< | Page list | >>
Tweaking LyX on Windows
Create a Bibliography
To edit the reference list used by LyX you need a separate program.
If you want other citation styles, you will find some in your LaTeX tree under
It is quite easy to create BibTeX entries for books available at Amazon: Amatex. You search the book you are looking for, copy the BIB entry (BIB Daten), open BibEdit and select Record->Paste. Many scientific databases (like CiteSeer or RepEc) offer similar possibilities.
Using True-Type Fonts in LyX documents
Works with earlier MiKTeX versions, but not with MiKTeX 2.5. Maybe someone can figure out how to adapt this to MiKTeX 2.5?
Try providing all paths without spaces i.e. using the old DOS 8.3 style names so that "C:\Program Files\MikTeX 2.8\" becomes "C:\PROGRA~1\MIKTEX~2.8" and "C:\Documents and Settings\Administrator\Local Settings\Application Data\MiKTeX\2.8\" becomes "C:\DOCUME~1\ADMINI~1\LOCALS~1\APPLIC~1\MiKTeX\2.8\".
You might want to be able to the TTF fonts on your system in your LyX documents. The following procedure works fine with MiKTeX and pdflatex. For other combinations, you need to make adjustments.
The installation program MTFI ver. 0.6 needs some tweaking which is done by the batch wrapper
Do this only once:
as the last line; if it does not exist, create
@echo off call mtfi.exe if not exist %miktexdir%\texmf\pdftex\config\pdftex.cfg.mtfi_backup goto :go del %miktexdir%\texmf\pdftex\config\pdftex.cfg ren %miktexdir%\texmf\pdftex\config\pdftex.cfg.mtfi_backup pdftex.cfg initexmf -u initexmf --mkmaps goto :finish :go echo . echo . echo ********************************************* echo * * echo * no pdftex.cfg.mtfi_backup file found. * echo * * echo * run importttf.bat first! * echo * * echo ********************************************* echo . pause :finish
in the MTFI directory.
Do this every time you install a new font (Verdana as an example):
Now write some text. If you insert an ERT (TeX insert) [
in the praeamble.
The font name for verdana (ecverdana) generated by MTFI and used in the
As Verdana has the ligatures fi and fl, LyX will produce them, although Microsoft Word doesn't!
Making LyX files portable
To want to work with your LyX file on different computers (office and laptop), always use "relative" paths. This is done by keeping all the necessary files in the same folder or some subfolders of that folder. If your paper
Restoring last view location when opening PDF
Users of Windows Vista and Windows 7 have reported that Adobe Acrobat does not remember the location in the PDF document. Every time you let LyX build a new PDF, Acrobat resets to the start of the document. There are two ways to fix this:
Alternate icon set for Windows
If you aren't happy with the included document icons, another set is available that is a more consistent with the Windows look and feel. It includes all common sizes up to 48x48 and multiple color depths, all in a single multipart ico file. To change the icon associated with a .lyx file, open an Explorer window, go to Folder Options -> Tools -> File Types, find LYX on the list, click Advanced and then Change Icon.
Download the icon set here http://www.smallfiles.org/download/210/lyx_icons_for_windows_1.0.zip.html(approve sites)
Some further toolbar icons can be found at UserInterface.
You can grab a dock icon here.
Easier printing from within LyX
Windows users are accustomed to a print dialog from which a printer can be selected. If you have Ghostscript installed, you can use its gsprint utility to achieve this with LyX with a small wrapper program. Download this zip archive lp.zip and put lp.exe somewhere in the PATH (a very good choice is to put it in the same folder where you have the LyX executable). Then start LyX and reconfigure it (Tools->Reconfigure). Restart LyX open a document and choose "File->Print". You don't need to specify a printer in LyX's Print dialog (if you do, it is ignored); simply hit the Print button and wait for the gsprint printer dialog to appear, then select the desired printer and hit the OK button.
Default language for spellchecker
To change the language or dialect used for all new documents (e.g. instead of using American-English you would prefer the spellchecker to use British-English) the "default language" must be changed. Go to Tools -> Preferences -> Language Settings -> Languages and from the drop down menu labelled "Default Language" change to the language you wish (i.e from "English" to British). The spellchecker will use the dictionary list for the default language when checking new documents.
To change the language or dialect used for an existing document, go to Document -> Settings -> Language -> Language from the drop down menu choose the language or dialect you wish the spellchecker to use for that specific document.
Note: The "English" default language in LyX is General American, not the standard English (Present day English) used in Britain and the European Union.
Trouble Configuring LyX (missing classes) with MikTeX
MiKTeX can cause problems with the configure script in LyX if the "Install missing packages on-the-fly" option is checked. If you find that only a few classes are available in LyX under Windows, try disabling this option in the MiKTeX general options (mo.exe) and re-configuring LyX.