PDF export fails with pdflatex and LuaTeX
Martin Weise
M at rtinWeise.de
Tue Feb 11 10:21:11 UTC 2020
On 11.02.20 11:04, Kornel Benko wrote:
> Am Tue, 11 Feb 2020 10:47:45 +0100
> schrieb Martin Weise <M at rtinWeise.de>:
>
>> On 11.02.20 01:49, Scott Kostyshak wrote:
>>> On Mon, Feb 10, 2020 at 05:38:08PM -0500, Paul A. Rubin wrote:
>>>> On 2/10/20 4:03 PM, Martin Weise wrote:
>>>>> On 10.02.20 21:52, Scott Kostyshak wrote:
>>>>>> On Mon, Feb 10, 2020 at 09:10:51PM +0100, Martin Weise wrote:
>>>>>>> On 10.02.20 17:34, Kornel Benko wrote:
>>>>>>>> Am Mon, 10 Feb 2020 16:54:27 +0100
>>>>>>>> schrieb Martin Weise <M at rtinWeise.de>:
>>>>>>>>
>>>>>>>>>> I'm wondering whether LyX successfully compiles the PDF file in the
>>>>>>>>>> temp directory but then fails to copy or move it to the target directory.
>>>>>>>>>>
>>>>>>>>>> Paul
>>>>>>>>> No, Document -> View (pdflatex) produces nothing either. Nor does the
>>>>>>>>> LuaTeX way. LyX leaves no pdf file in the temp dir. It just leaves .aux,
>>>>>>>>> .dvi,. log, .tex and .dep-pdf files.
>>>>>>>>>
>>>>>>>>> Martin
>>>>>>>> That (.dvi) is the clue probably. Select different output in
>>>>>>>> Document->Settings...->Formats->Default output format: -> PDF (pdflatex)
>>>>>>>>
>>>>>>>> Kornel
>>>>>>>>
>>>>>>> No, I'm afraid that's not it. pdflatex keeps throwing the assertion
>>>>>>> error message, when run through LyX, regardless of what I choose as the
>>>>>>> default output format.
>>>>>> Still I think Kornel picked up on an important clue: we need to figure
>>>>>> out why there's a .dvi file in the temporary directory. If you exit LyX
>>>>>> and start LyX again (which should use a fresh temp dir), and compile a
>>>>>> simple .lyx file, can you confirm that there's a .dvi in the temporary
>>>>>> directory?
>>>>>>
>>>>>> Scott
>>>>>>
>>>>> Positive. There's a .dvi file in the (new) temporary directory after I
>>>>> choose File->Export->PDF (pdflatex).
>>>>>
>>>> Do you have an entry for "LaTeX (pdflatex) -> PDF (pdflatex)" in Tools >
>>>> Preferences... > File Handling > Converters and, if so, what do the
>>>> "Converter:" and "Extra flag:" boxes say?
>>> In addition to Paul's question, can you send us your preferences file?
>>> It is a text file and you can find its location by going to Help > About
>>> and looking in the "User directory" path that is listed there.
>>>
>>> Best,
>>>
>>> Scott
>>>
>> My lyx user dir is ".lyx". But there is no preferences file.
>>
>> I just noticed another strange phenomenon. When I try to include an
>> image in my .lyx document, I just get a LaTeX error ("Cannot determine
>> size of graphic in..." when exporting to pdflatex. This is new as well.
>> The issues might be related.
>>
>> Martin
>>
> Yes, it looks related. Apparently the 'pdflatex' called from lyx does not create
> the required pdf file to be used to display the image.
> Maybe the environment used by lyx is different from the one if you compile
> manually.
>
> 1.) Could you start lyx from the terminal?
> 2.) does the '.lyx' directory contain *.lst files (11 files) and configure.log
> 3.) Are the dates of these files newer compared to the install date of lyx?
> 4.) Does removing .lyx dir and restarting lyx create this dir again?
>
> Kornel
>
>
1. Yes.
2. Here's a list of the files in the .lyx dir:
-rw-rw-r-- 1 martin martin 4061 Feb 11 10:33 bibFiles.lst
drwxrwxr-x 2 martin martin 4096 Feb 11 10:33 bind
-rw-rw-r-- 1 martin martin 23214 Feb 11 10:33 bstFiles.lst
drwx------ 2 martin martin 4096 Feb 11 10:39 cache
drwxrwxr-x 2 martin martin 4096 Feb 11 10:33 clipart
-rw-rw-r-- 1 martin martin 31483 Feb 11 10:33 clsFiles.lst
-rw-rw-r-- 1 martin martin 66314 Feb 11 10:33 configure.log
drwxrwxr-x 2 martin martin 4096 Feb 11 10:33 doc
drwxrwxr-x 2 martin martin 4096 Feb 11 10:33 examples
drwxrwxr-x 2 martin martin 4096 Feb 11 10:33 images
drwxrwxr-x 2 martin martin 4096 Feb 11 10:33 kbd
drwxrwxr-x 2 martin martin 4096 Feb 11 10:33 layouts
-rw-rw-r-- 1 martin martin 0 Feb 11 10:44 .lyx_configure_lock
-rw-rw-r-- 1 martin martin 16117 Feb 11 10:33 lyxmodules.lst
-rw-rw-r-- 1 martin martin 25959 Feb 11 10:33 lyxrc.defaults
-rw-rw-r-- 1 martin martin 1784 Feb 11 10:33 packages.lst
drwxrwxr-x 2 martin martin 4096 Feb 11 10:33 scripts
-rw-rw-r-- 1 martin martin 387 Feb 11 11:14 session
-rw-rw-r-- 1 martin martin 310031 Feb 11 10:33 styFiles.lst
drwxrwxr-x 2 martin martin 4096 Feb 11 10:33 templates
-rw-rw-r-- 1 martin martin 9013 Feb 11 10:33 textclass.lst
drwxrwxr-x 2 martin martin 4096 Feb 11 10:33 ui
(Note that I reinstalled lyx at 10:30 today and deleted the .lyx
directory before I did so)
3. As you can see, some of them are more recent, like the session file.
4. Yes.
Martin
More information about the lyx-users
mailing list