0

I am having a strange problem with the "Document class" option in Lyx. Up until now, all document classes showed as "unavailable". Nonetheless, when I viewed documents as PDFs, they appeared as the standard article class. I wanted to try more document classes, so I read this thread, and followed these steps:

  • Copy the files in C:/Program Files (x86)//Resources/layouts/
  • Paste the files into C:/Users//AppData/Roaming//layouts/
  • In command prompt, run texhash
  • Then, in LyX click Tools > Reconfigure; when finished restart LyX.

The document classes now show as available, but something has gone seriously wrong! I have attached a screenshot of how my PDF appears when using the standard article class. The text appears wobbly and nothing like the standard article class that I am used to.

I am using all default settings. Things I have already tried:

  • Uninstalling and reinstalling Lyx
  • Updating all packages in MikTex console and reconfiguring Lyx
  • Changing to many different document classes

None of these made any difference to the problem. Any advice would be much appreciated! enter image description here

  • Although I cannot answer the question, I see the "all wobbly" text in the image. In general, that is caused when the font outlines do not correspond to some font metrics, or there are bad font hints, or the font (if OpenType) has a bad internal private dictionary. Can you clear the font cache, however that is done for your system, and try again? What engine are you using, and what kind of fonts? – rallg Oct 16 '23 at 17:41
  • Thanks for your reply. I just tried clearing the font cache, and I reconfigured Lyx after (not sure if that is necessary). However the problem persists. Re the type of fonts I am using, I'm not too sure. I just have all default options selected for the standard article class. p.s. It was font related after all, so thanks for pointing me in the right direction! – Isaac Basil Oct 17 '23 at 08:10
  • 4
    I’m voting to close this question because reading the OPs own answer it was solved by a change in the Lyx-specific settings. – MS-SPO Oct 17 '23 at 08:25
  • Maybe you are missing the cm-super package. – Udi Fogiel Oct 17 '23 at 10:02
  • @MS-SPO, this is probably not related to a LyX-specific setting, it is just that this checkbox switch the compiler, and thus the default fonts. The problem is probably with the 8-bit fonts he has on his system. – Udi Fogiel Oct 17 '23 at 10:05
  • @MS-SPO and even if the problem is solved by such setting, I don't see the reason for closing. This site has plenty of questions about LaTeX related software and tools. – Udi Fogiel Oct 17 '23 at 10:16
  • Isaac, can you upload the .log file? you can find it under Document->LaTeX Log->Open Containing Directory – Udi Fogiel Oct 17 '23 at 10:20
  • @UdiFogiel, well, I wonder what can be added or done differently to solve the problem? If the answer is "next to nothing", why leaving it open. It still can be found and used. // I stop discussing here. – MS-SPO Oct 17 '23 at 10:50
  • @MS-SPO By that argument, any question which is satisfactorily answered or which admits of no satisfactory answer ought to be closed. – cfr Oct 18 '23 at 03:22
  • @UdiFogiel is explaining that there is more to be done to resolve the problem and that the current 'fix' is only a workaround. Changing a setting in LyX won't fix the font setup. – cfr Oct 18 '23 at 03:23
  • @UdiFogiel thanks for your interest. Here is a link to the log file: https://filesender.renater.fr/?s=download&token=b471b5ee-478b-4cf7-ade4-b432e633236c – Isaac Basil Oct 18 '23 at 09:14
  • The log file shows you compiled with XeTeX. Is this the log file of the problematic file or the one that renders properly? – Udi Fogiel Oct 20 '23 at 03:44
  • @UdiFogiel that was the log file for the one that renders properly (after I changed the document settings that I detailed before). Here is the log file for the problematic file, with the original document settings. https://filesender.renater.fr/?s=download&token=8596aa12-4490-4ed2-a1a8-b1772d526e9f – Isaac Basil Oct 24 '23 at 14:07

1 Answers1

1

Going to the Document tab -> settings -> fonts, and checking the box "Use non-TeX fonts" seemed to solve the problem. Not sure why this is. I suppose I am using non-TeX fonts without meaning to :)