Re: lyx to latex

2017-08-04 Thread Patrick Dupre
Thank for the advises.

One question, 
BibTeX error: Repeated entry---line 1055 of file cavity-e.bib

How can I force latex to ignore the warning?

It is possible when I generate a pdf file, but not when I 
generate a rtf file.

Thank.

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale   | |
 Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===


> Sent: Friday, August 04, 2017 at 8:12 AM
> From: "Guenter Milde" 
> To: lyx-users@lists.lyx.org
> Subject: Re: lyx to latex
>
> On 2017-08-03, Patrick Dupre wrote:
> 
> > When I generate the pdf file from lyx, every thing is OK.
> > If I generate a tex file (plain latex), and then, if I compile it
> > with latex, I get:
> 
> > ! LaTeX Error: File `Pictures/17ubar_pub.eps.bb' not found.
> ...
> > l.1163 ...raphics[scale=0.51]{Pictures/17ubar_pub}
> 
> > The issue is with the pictures.
> 
> Yes. Different latex "flavours" accept different graphics formats:
> 
> `latex` accepts EPS but no PDF
> `pdflatex` accepts PDF, JPEG, PNG, ... but no EPS
> 
> What is the original format of the picture 17ubar_pub?
> 
> If it is PDF or PNG, then try to export to "LaTeX (pdflatex)" and compile
> with pdflatex.
> 
> 
> > What does lyx, that latex does not do?
> 
> * LyX runs latex and, if required auxiliary commands like bibtex,
>   makeindex, ... and again latex (up to three times).
> 
> * LyX converts pictures so it is accepted by the converter program
>   (latex, pdflatex, xelatex, or lualatex).
> 
> * LyX runs postprocessors like ps2pdf to get a PDF from the Postscript
>   document generated by "plain" latex.
> 
> * ...
> 
> In short, everything required to generate the output document.
> There are advanced LaTeX editors that do the same.
> 
> 
> 
> Günter
> 
>


Re: lyx to rtf

2017-08-04 Thread Paul A. Rubin

On 08/03/2017 06:04 PM, Patrick Dupre wrote:

Version 2.2.3
But the  my other concern is about the fact that I can easily get the 
pdf file

from lyx, but not from teh .tex file generated by lyx.
Does lyx use a special option of latex?

As Guenter pointed out in your other thread, it makes a difference how 
you generate the PDF within LyX. Depending on what LaTeX programs you 
have installed, you can get LyX to generate a PDF using pdflatex, 
dvipdfm, LuaTeX, XeTeX or ps2pdf (maybe other choices I don't know 
about). If viewing or exporting (as PDF) using pdflatex works from LyX, 
but you try exporting as LaTeX (plain) and then running latex against 
that file, something may go amiss. Even worse, if you export as LaTeX 
(pdflatex) and then run latex (or LuaTeX or whatever) against that file, 
a mismatch may occur.


As to special options, if you go to Tools > Preferences... > File 
Handling > Converters and pick one of the LaTeX to something converters 
(e.g., LaTeX(pdflatex) -> PDF (pdflatex)), you'll see the command being 
issued and any extra options (flags) that are set.


Paul



Re: lyx to latex

2017-08-04 Thread Guenter Milde
On 2017-08-03, Patrick Dupre wrote:

> When I generate the pdf file from lyx, every thing is OK.
> If I generate a tex file (plain latex), and then, if I compile it
> with latex, I get:

> ! LaTeX Error: File `Pictures/17ubar_pub.eps.bb' not found.
...
> l.1163 ...raphics[scale=0.51]{Pictures/17ubar_pub}

> The issue is with the pictures.

Yes. Different latex "flavours" accept different graphics formats:

`latex` accepts EPS but no PDF
`pdflatex` accepts PDF, JPEG, PNG, ... but no EPS

What is the original format of the picture 17ubar_pub?

If it is PDF or PNG, then try to export to "LaTeX (pdflatex)" and compile
with pdflatex.


> What does lyx, that latex does not do?

* LyX runs latex and, if required auxiliary commands like bibtex,
  makeindex, ... and again latex (up to three times).

* LyX converts pictures so it is accepted by the converter program
  (latex, pdflatex, xelatex, or lualatex).

* LyX runs postprocessors like ps2pdf to get a PDF from the Postscript
  document generated by "plain" latex.

* ...

In short, everything required to generate the output document.
There are advanced LaTeX editors that do the same.



Günter