LyXInstalling a new font package

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
drew_carey
Posts: 4
Joined: Wed Oct 29, 2014 4:08 pm

Installing a new font package

Post by drew_carey »

Hi all,
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!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by Johannes_B »

Hi and welcome,

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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
drew_carey
Posts: 4
Joined: Wed Oct 29, 2014 4:08 pm

Re: Installing a new font package

Post by drew_carey »

Thanks!
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?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Installing a new font package

Post by Johannes_B »

Clicking on install should do the whole trick. How are you using the font right now? You didn't mention any error messages.

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}
Hint: You can compare the output by clicking on »Open in Writelatex«.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
drew_carey
Posts: 4
Joined: Wed Oct 29, 2014 4:08 pm

Re: Installing a new font package

Post by drew_carey »

Thanks again!
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!
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Installing a new font package

Post by Johannes_B »

I am not a LyX user and can't be of much help here. But my first step would be to import the basic document and let it run with LyX.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Installing a new font package

Post by Stefan Kottwitz »

Hi Drew,

welcome to the forum!

You need \usepackage{feyn} in the document preamble, did you configure that in LyX?

Stefan
LaTeX.org admin
drew_carey
Posts: 4
Joined: Wed Oct 29, 2014 4:08 pm

Installing a new font package

Post by drew_carey »

Stefan_K wrote:Hi Drew,

welcome to the forum!

You need \usepackage{feyn} in the document preamble, did you configure that in LyX?

Stefan
I didn't, it works now. I think this did the trick, thank you!
Post Reply