LyXFile in Layouts Directory, but not found by LyX

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
juliette
Posts: 75
Joined: Thu Nov 20, 2008 10:15 pm

File in Layouts Directory, but not found by LyX

Post by juliette »

Hi!
I just started using LyX 2.0

I put revtex4-1.lyx in C:\Program Files (x86)\LyX20\Resources\layouts

And it appears there clearly, but still when I go into LyX and click new template, the only revtex's that show up are revtex and revtex4.

I also went to Document->Settings->Document Class and can only find article(REVTex4) but not 4.1.

This page says nothing about needing to update LyX to inform it that there's a new .layout file in the appropriate directory:

http://wiki.lyx.org/Layouts/Revtex4-1

Is there a way to do that ?

Thanks,
Juliette

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

juliette
Posts: 75
Joined: Thu Nov 20, 2008 10:15 pm

Re: File in Layouts Directory, but not found by LyX

Post by juliette »

Absolutely no replies ? Am I the only one getting this problem ?
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

File in Layouts Directory, but not found by LyX

Post by meho_r »

You'll notice that revtex is a layout file (extension: .layout), not a template. So, if you place it in system layout dir or in your user dir, it should be available in LyX, but not as a template, rather as a new document class. So, what to do?
  1. After placing .layout file into one of above-mentioned places, first you have to do is to reconfigure LyX: Tools > Reconfigure, and then restart it.
  2. Now simply start a new document, then in Document > Settings > Document Class choose article (REVTeX 4.1).
And if you want to create a template based on REVTeX 4.1, just create a file with article (REVTeX 4.1) document class, set everything you like, and then save the file into templates directory in C:\Program Files (x86)\LyX20\Resources\templates directory (I'm guessing this is the path on Windows).
juliette
Posts: 75
Joined: Thu Nov 20, 2008 10:15 pm

Re: File in Layouts Directory, but not found by LyX

Post by juliette »

Thank you so much Meho_r !!!
It seems everything is working now !
I'm a LyX newbie so that was very helpful for me.
Post Reply