pdfoutputlyx

I found a file in raw lyx output, how do I create a readable pdf or txt file from this mess?


I found a file in raw lyx output, how do I create a readable pdf or txt file from this mess?

https://raw.githubusercontent.com/jarcane/bedroom-wall-press/master/hulks-and-horrors/HnHCompanionI.lyx

I have installed LyX and tried pasting, I have tried pasting in OpenOffice and then exporting as plain text, then importing plain text into LyX, it always includes the format coding when I try to export the file as pdf or text.

I just want the human readable portion of the document.

Any help would be appreciated, thank you.


Solution

  • The LyX file you link to is indeed a valid .lyx file. To use it, do the following:

    1. Download the file. The easiest way to do this is to just run

    wget "https://raw.githubusercontent.com/jarcane/bedroom-wall-press/master/hulks-and-horrors/HnHCompanionI.lyx"

    1. Open the file in LyX.

    2. Compile to PDF by clicking on the "eyes" icon, or by going to File > Export > PDF (pdflatex) in which case a .pdf file will be created in the same directory as the .lyx file.

    Note that you the .lyx file depends on other files. For example, there is an image included in the .lyx file with a path "C:/Users/BearBear/Google Drive/Hulks and Horrors B&W Logo for Print.png".

    It is possible that you won't be able to compile the document because of the missing .png or because you do not have a complete TeX installation. In this case, you can simply read the document in LyX. It is not as pretty as in the PDF but it is certainly readable in my opinion.