LyXLyX "LaTeX Error: File `subscript.sty' not found."

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
ndorloff
Posts: 3
Joined: Tue May 17, 2011 7:06 pm

LyX "LaTeX Error: File `subscript.sty' not found."

Post by ndorloff »

Hi All,

I have seen several bug reports about this for LyX. I have searched for a while but I have not actually found a clear solution.

When I try to make subscripts in my windows XP version of LyX I get the following error "LaTeX Error: File `subscript.sty' not found.". In description, it says "*** (cannot \read from terminal in nonstop modes)". It works fine on my mac, but it is driving me crazy on my PC.

I have uninstalled both MiKTeX and LyX multiple times, and still it does not work.

Please 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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

LyX "LaTeX Error: File `subscript.sty' not found."

Post by Stefan Kottwitz »

Hi,

you can install the subscript package from CTAN.

For information regarding the installation have a look at: How can I manually install a package on MiKTeX (Windows).

Stefan
LaTeX.org admin
ndorloff
Posts: 3
Joined: Tue May 17, 2011 7:06 pm

Re: LyX "LaTeX Error: File `subscript.sty' not found."

Post by ndorloff »

Hi Stefan,

Thanks for replying. I am not sure I can follow your instructions. Forgive me for my ignorance, but it is not clear how I download anything from the link you attached.

Thanks. I appreciate your patience.

Nate
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

LyX "LaTeX Error: File `subscript.sty' not found."

Post by Stefan Kottwitz »

Hi Nate,

no problem, the direct download link from that page is this: http://ctan.org/tex-archive/macros/late ... /fragments. There's subscript.sty. If you would like to do it quickly or for testing, download subscript.sty there and put it into the same folder like your main document.

Stefan
LaTeX.org admin
ndorloff
Posts: 3
Joined: Tue May 17, 2011 7:06 pm

Re: LyX "LaTeX Error: File `subscript.sty' not found."

Post by ndorloff »

This is a good solution. Thanks.
nickiswright
Posts: 1
Joined: Tue Aug 16, 2011 12:25 pm

Re: LyX "LaTeX Error: File `subscript.sty' not found."

Post by nickiswright »

Please help. I have a similar problem. I get the subscript.sty file not found and the description say \onehalflinepacing.

I recently started using the lyx 2.0 and have just done my first preview and getting this error. The problem is I have no idea how to enter that code to solve this. I am pretty new on lyx and just using it to write my thesis, which is basically finished and due in on Monday! I just need to get to a printable format
alleyoopster
Posts: 1
Joined: Wed Oct 26, 2011 8:33 am

Re: LyX "LaTeX Error: File `subscript.sty' not found."

Post by alleyoopster »

This post is a little old, but for anyone that comes across this I found the answer was to install the texlive-latexextra package in my distribution (Arch linux). After this installed I had not further problems.
MaryamJaved539
Posts: 1
Joined: Fri Jun 29, 2018 11:13 am

LyX "LaTeX Error: File `subscript.sty' not found."

Post by MaryamJaved539 »

Hello!! I know this is an old post, I was also getting subscript.sty not found error. I am going to write how i fixed it,
1) You can download the file subscript.sty from https://ctan.org/tex-archive/macros/lat ... /fragments.
2)Go to the folder C:\Users\USERNAME\AppData\Local\Programs\MiKTeX 2.9\tex\latex, create a folder named Subscript , add the file subscript.sty in that folder.
3) Next, you have to refresh the file taxhash.exe , you can simply run it by double clicking on it. After that you have to restart lyx and run the file that was having this error, SEE!! The error is gone.
Pointers: There might be another folder MikeTex 2.9 in your C:\Program Files , dont go to that folder.
Thank You!
Regards
Maryam Javed
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

LyX "LaTeX Error: File `subscript.sty' not found."

Post by Johannes_B »

You shouldn't need that package. Subscripts are defined in the kernel for years.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply