Thank you Rich,
Unfortunately, this does not seem to be the source of the problem and it is
becoming stranger and stranger. I must do something really stupid in Lyx.
Here is the test I have done:
1. I have created a new document with the same class, with all the other
default options ;
2. I have integrated a Figure float containing one PDF graphic belonging
to my original document;
3. I have compiled this new document, and I can give it any scaling
option without any problem, it just works.
4. Then I have tried to copy cat specific options, modules and the
preamble of the old document to see if I can locate the source of the
problem, but the test document has been able to compile correctly without
any problem.
5. Then I have cleaned the test document, and copied just the content of
the problematic lax chapter in this document, and I get exactly the
original problem: any option I give to \includegraphics is just printed in
the pdf (instead of the graphic), instead of being interpreted. :-( Grrrr!
So it must be something in my Lyx file that must be the source of the
problem. When I export the Lyx to Latex and I compile.
*OK, I think I have located the source of the problem, but I do not know
how to solve it in LyX: *I have pasted a citation in English coming from an
article I have written in Turkish, and then, Lyx automatically puts the
option turkish in the \documentclass instruction
\documentclass[english,turkish,french]{extreport}
If I delete turkish in the exported latex file, the document compiles and
the options are correctly interpreted, and the graphic correctly scaled.
Two questions then:
Why this babel option kills the \includegraphics options? (I could need
turkish again)
How can I tell to not include this option (I do not have any text in
Turkish in my document)?
All help would be very much appreciated.
Murat
Le sam. 28 juil. 2018 à 16:30, Rich Shepard <[email protected]> a
écrit :
> On Sat, 28 Jul 2018, Murat Yildizoglu wrote:
>
> > I am working on a new book and suddenly I have started to meet a problem
> > with the graphics that are included in the document : when I pdflatex the
> > doc, I get a lot of error messages all concerning the options set in the
> > \includegraphics instructions. If I fo not scale the graph, it prints
> > (with the original size of course), and if I set a scale option, I get
> > scale=0.8 instead of the pdf graphic. (see the capture of the output
> > window). I also include some other captures about the options of the
> > document and the figure. I do not remember having changes anything, but I
> > probably have, and I cannot locate my stupid error.
>
> Murat,
>
> This looks a lot like a problem I had a year or so ago. Paul Rubin
> helped
> find the reason for this. As I recall, my issue was caused by checking the
> 'clip to bounding box' checkbox on the settings -> clipping tab. That was a
> lyx issue that was fixed, and it may not be your issue. However, it's worth
> a try.
>
> HTH,
>
> Rich
>
--
Prof. Murat Yildizoglu
Note: Please use the following address as such
UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)
MURAT YILDIZOGLU
16 AVENUE LEON DUGUIT
CS 50057
33608 PESSAC CEDEX
FRANCE
Bureau : E-331
mail: murat.yildizoglu at u-bordeaux.fr
web: http://yildizoglu.fr