SOLVED -- SEE AT BOTTOM
I have a work computer that is completely locked down and I can't install most software in it (including LyX). Not much of a problem, I've discovered the world of "Portable Apps", i.e. apps that don't need to be "installed installed", and they've been a life-saver.
Recently, I decide to learn LyX. So I try out various existing "Portable" versions of LyX available on the internet. And all of them give a PDF view error. I then find out that it's a real, known bug.
So I decide to "roll my own" Portable LyX using the current non-portable version of LyX and Portable MikTeX.
I do all of this on a USB flash drive stuck to my home computer (where I do have admin access to install LyX), with the intention that I will eventually be using this "Portable" LyX (on that USB flash drive) via my work computer.
Steps and Issues:
1) I download "Portable MikTeX" and install it to a
LyXPortable folder on my USB flash drive. No issues.
2) Next, I download and install
LyX Version 2.3.2-2 in the same
- When asked to point to
latex, I point to the
latex.exefile located at
LyXPortable\texmfs\install\miktex\bin. Installation proceeds fine.
3) Folders: in case it helps, I'm linking to screenshots of the folders
4) Errors: now, when I run this "Portable" LyX (by double clicking on
LyX.exe -- which I found out is the wrong way to go about it, update below), these are the errors I get.
Error when I try to save a
The only "View PDF" option I have is
Error when I try to "View PDF":
(NOTE: this error mentions
pdflatex. I googled
pplatex and was surprised at how few hits there were that referenced LyX or Portable MikTeX.)
dvipdfm is the only option I have under "View PDF", I do have many PDF format handlers listed in Preferences / File Handling / File Formats:
These are the options for
These are the options for
Even under "Export",
dvipdfm seems to be the only PDF option:
(However, when I actually export to PDF, I get the same
pplatex error I screenshotted earlier).
I tried "Export As", and
pdflatex showed up as a PDF option. However, when exporting I got an error:
Based on comment from Ulrike, below, I started LyX from within the Portable MikTeX terminal, then ran "Reconfigure", then restarted LyX from within the terminal. There were some differences, but still errors in View PDF.
New View options showed up:
Error when I try to View PDF via
(I also get the same error when I try to View PDF via
dvipdfm or try to Export via
My Question: I'm looking for your suggestions / pointers on what I can do to make this "Portable" install of LyX work with "Portable MikTeX". All suggestions / pointers will be tried out by me.
SOLVED: I was able to make this "Portable LyX" app package work: https://portableapps.com/node/38209
I had tried it before and it never worked for me. But this time I finally realized that the 4 dependencies listed there (MiKTeX, Ghostscript Portable, GSview, Strawberry Perl) are not included in the Portable LyX app, and instead have to be installed separately.
It took a while to figure out how to install the 5 apps (Portable LyX + 4 Dependencies) in such a way that they can recognize each other. It ultimately proved to be a no-brainer. I had to first install this Portable Apps platform app. Next, I installed each of the 5 apps via "the Portable Apps platform app > Apps > Install a New App (paf.exe)". Then I started LyX via "the Portable Apps platform app", tried to view a PDF, got a message to install some package (I think it was called bbplots or something like that), and then VOILA, a PDF was generated.