Edit Links |
Windows /
LyXWinTipsCategories: TrueType Fonts, Bibliography << Importing graphics from Windows applications | Page list | How to set up LyX on Windows for Arabic >>Tweaking LyX on WindowsNavigating in PDF documentsIf you have a large document, it will be easier to find the section you are interested in by adding \usepackage{color}
\usepackage[%
colorlinks=true,linkcolor=black,citecolor=black,urlcolor=black,%
pdfstartview=FitH,%
bookmarksopen=true,bookmarksopenlevel=0,%
plainpages=false,pdfpagelabels,%
pagebackref=true,%
pdftoolbar=false]{hyperref}
as the last command in your preamble (Document -> Settings... -> LaTeX Preamble). With Create a BibliographyTo 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 documentsWorks with earlier MiKTeX versions, but not with MiKTeX 2.5. Maybe someone can figure out how to adapt this to MiKTeX 2.5? 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:
map winfonts.map as the last line; if it does not exist, create updmap.cfg containing this single line.
@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 Microsft Word doesn't! Making LyX files portableTo want to work with your LyX file on different computers (office and laptop), use always "relative" paths. This is done by keeping all the necessary files in the same folder or some subfolders of that folder. If your paper Alternate icon set for WindowsIf 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 (no longer available). Some further toolbar icons can be found at UserInterface. You can grab a dock icon here. Printing from within LyXFrom a technical point of view, printing from within LyX is not more difficult on Windows than it is on Unix if you have Cygwin. Indeed the cygutils package contains an lpr command which can spool files to a Windows printer. The only tricky part is how to specify the printer in the LyX "Print Document" dialog. This should be the same argument as the -d switch of lpr. However, on Windows people are accustomed to using a print dialog from which a printer can be selected (and I must say that it is very convenient). If you have ghostscript and gsview installed, this dream can become reality, as gsview includes a utility (gsprint) which brings a print dialog allowing you to select the desired printer. I have written a small program which uses gsprint for this purpose. 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). If you do it from the command line, you should see that lp.exe is spotted (this works even if you have Cygwin, as lp is looked for before lpr). Now quit and restart LyX, open a document and choose "File->Print". You don't need to specify a printer in the LyX "Print Document" dialog (it does not harm if you do, it is simply 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. Happy printing with LyX! Default language for spellcheckerTo 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 not similar to the language used by the English people; it should probably read "English International" or "English American". Trouble Configuring LyX (missing classes) with MikTeXMiKTeX 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. |