LyX ⇒ Installing a new font package
-
- Posts: 4
- Joined: Wed Oct 29, 2014 4:08 pm
Installing a new font package
I'm a fairly new Lyx/Latex user, and this is my first time attempting to install a Latex package. I'm trying to install the feyn package for incorporating Feynman diagrams inline. I have the standard Lyx bundle package installed with MikeTex.
I've performed the following steps:
1) downloaded and unzipped the package
2) activated the ".ins" file using the cmd window in windows
3) Placed the "feyn" folder containing the ".sty" file in the tex\latex folder in the MikeTex folder in program files.
4) Placed all ".mf" files contained in the package in a "feyn" folder in the fonts\source folder of the MikeTek folder.
5) Ran MikeTex Settings (admin) and pressed the "Refresh FNDB" button
6) Performed Tools->Reconfigure in Lyx which seemed to finish successfully.
I still can't use the font - what have I done wrong?
I realize this must be stupid but it's my first time and updating a LateX package is surprisingly cumbersome.
Thanks for the help!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Installing a new font package
i am by far no font expert, but installing a package manually is a constant cause of problems. With MikTeX came the MikTeX package manager. Installing packages (including fonts) is possible with the click on one button and everything should work.
-
- Posts: 4
- Joined: Wed Oct 29, 2014 4:08 pm
Re: Installing a new font package
I've tried that as well and it doesn't seem to do the job either. What are the steps required there besides adding the package?
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Installing a new font package
Going to a more basic level: Please copy the following into texworks (installed with MikTeX), save and compile using pdflatex. What do you get?
Code: Select all
\documentclass{article}
\usepackage{feyn}
\begin{document}
\[\feyn{fA+gV}\]
\end{document}
-
- Posts: 4
- Joined: Wed Oct 29, 2014 4:08 pm
Re: Installing a new font package
that did in fact work in Texworks. So I guess the problem is with Lyx?
What should be my next step?
Thanks for the help!
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Installing a new font package
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Installing a new font package
welcome to the forum!
You need
\usepackage{feyn}
in the document preamble, did you configure that in LyX?Stefan
-
- Posts: 4
- Joined: Wed Oct 29, 2014 4:08 pm
Installing a new font package
I didn't, it works now. I think this did the trick, thank you!Stefan_K wrote:Hi Drew,
welcome to the forum!
You need\usepackage{feyn}
in the document preamble, did you configure that in LyX?
Stefan