LyXproblem export to pdf

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
inaki13
Posts: 5
Joined: Wed Apr 07, 2010 1:57 pm

problem export to pdf

Post by inaki13 »

Hello,

i´m using lyx on a macbook. Since a few days i have problems to make a pdf from a new lyx´s document. I select export -> pdflatex, and no response. However, i open a document of example and the export go ok.

Where is the problem?

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

problem export to pdf

Post by meho_r »

Try:

Code: Select all

View > PDF (pdflatex)
Export (usually) does work, but it doesn't open created .pdf document, only create it without any visible response (check inside the folder your .lyx file is located in).
inaki13
Posts: 5
Joined: Wed Apr 07, 2010 1:57 pm

Re: problem export to pdf

Post by inaki13 »

thanks, but the result is the same...
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Re: problem export to pdf

Post by meho_r »

So, basically, you cannot produce .pdf output at all? Did you take a look at log file (Document > LaTeX Log)? Does it contain any errors?
inaki13
Posts: 5
Joined: Wed Apr 07, 2010 1:57 pm

Re: problem export to pdf

Post by inaki13 »

I can actually create pdfs from lyx sample files, but is not posible to do that from my own files. The type of document and settings are the same for both, or I think ...

On the other hand, does not generate any error log.
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

problem export to pdf

Post by meho_r »

That's really strange. Try compiling the document I send you in the attachment (it's a simple .lyx file with default settings applied).

Also, check your settings for exporting in .pdf (see screenshots provided in the attachment for reference; Tools > Preferences). I'm using Ubuntu, but I believe settings should be similar.

You may also try to remove LyX user settings (just rename the folder, no need to delete it). Check here for paths, folder names and other details.
Attachments
Settings.zip
Screenshots of settings for exporting in .pdf
(93.41 KiB) Downloaded 176 times
test.lyx.zip
.lyx file for testing.
(541 Bytes) Downloaded 173 times
inaki13
Posts: 5
Joined: Wed Apr 07, 2010 1:57 pm

Re: problem export to pdf

Post by inaki13 »

thanks for your help but I can not solve my problem.

The settings are the same, and I can make a pdf from your example. How ever is not posible to do from my files... this is my code and your code:

% Vista preliminar del código fuente

%% LyX 1.6.5 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[spanish]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\addto\shorthandsspanish{\spanishdeactivate{~<>}}

\begin{document}
my test.
\end{document}

__________________________________________



% Vista preliminar del código fuente

%% LyX 1.6.5 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}

\begin{document}
Test.
\end{document}
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

problem export to pdf

Post by meho_r »

Attach an example .lyx file which doesn't work on your machine in your next post so I can test it (you may have to put it in .zip archive because of this forum's limitation). This LaTeX code you provided compiled without problems, even when imported in LyX.

In the meantime, check your encoding settings (latin9, utf8?). Try commenting out the line:

Code: Select all

\addto\shorthandsspanish{\spanishdeactivate{~<>}}
since it is the only difference between two codes, apart from encoding.

So, basically, there are three possible problems:
1. input encoding,
2. language,
3. spanish shorthands + babel.
inaki13
Posts: 5
Joined: Wed Apr 07, 2010 1:57 pm

Re: problem export to pdf

Post by inaki13 »

Well, I'm not entirely sure, but for now it works.

Maybe it's a problem with pdflatex or another plugin, because I've changed nothing from lyx and now it works...

Thank you very much for your help!
marcin_j
Posts: 1
Joined: Sun May 09, 2010 12:08 pm

Re: problem export to pdf

Post by marcin_j »

Hi! I have the same sort of a problem that inaki13 described. When I try compiling some sample files (like tutorials) everything's fine, but when I get compiled the one I've written nothing happens that is no output is produced, no error message. I checked the folder where the *.lyx file is stored to see if pdf hadn't been created without being displayed on the screen. But no: no file was produced. I restored default settings but no result again. The funny thing is exporting to all other formats bar HTML doesn't work either. How to fix it? Thanks for your help!
Post Reply