LyX\includegraphics does not work the same from 1.3.3 to 2.0.2

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
ziaziung
Posts: 3
Joined: Thu Nov 08, 2012 4:45 pm

\includegraphics does not work the same from 1.3.3 to 2.0.2

Post by ziaziung »

Hi.

I've been using lyx 1.3.3 on linux and now I'm using lyx 2.0.2 on Ubuntu 10.4.
The trouble is that the same file is compiled on Lyx 1.3.3 and makes an error on Lyx 2.0.2 (can't be compiled). It seems that it is in the \includegraphics command. (Lyx 2.0.2 compiles the file when I take off this command).

Do you know what I can do?


Thank you.
Last edited by ziaziung on Thu Nov 08, 2012 7:15 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: \includegraphics does not work the same from 1.3.3 to 2.

Post by scottkosty »

Hi ziaziung and welcome to the forum!

If you post the same message in multiple places, please reference those other places. You sent an email to lyx-users. Mentioning that can save people who are trying to help you a lot of time and can also give them more information and in the end get you better help.

As to your question, if you are able to post the MWE, that would help a lot. If so, please send it to lyx-users. Otherwise, I don't have any ideas.

Good luck!

Scott
ziaziung
Posts: 3
Joined: Thu Nov 08, 2012 4:45 pm

\includegraphics does not work the same from 1.3.3 to 2.0.2

Post by ziaziung »

Here is a example : in an insert with an existing /home/zia folder and an existing essai.pas in /home/zia folder.


packages used :

Code: Select all

\usepackage{multirow}
\usepackage{graphicx}
the code (in an insert)

Code: Select all

\renewcommand\multirowsetup{\centering}
\hline \hline
\begin{tabular}{|c|l|c|c|c|} 
\multirow{4}{22 mm}{\bf{Appel n°1} \includegraphics[width=11mm]{/home/zia/essai.ps}} &  picto &  & /0,5 &  \\ \cline{2-5}
\hline \hline
\end{tabular} 
If I don't put the "°" in Appel n°1 and if I don't put

Code: Select all

\includegraphics[width=11mm]{/home/zia/essai.ps} 


I have an pdf output but with this error :
Can't find Latex command for '°' (point 0xb0 of the code)
but in French.

Thank you for your help.
Last edited by Stefan Kottwitz on Thu Nov 08, 2012 6:05 pm, edited 1 time in total.
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: \includegraphics does not work the same from 1.3.3 to 2.

Post by scottkosty »

Hi ziaziung,

Thank you for posting an example. Richard responded to your email on lyx-users. Please send him the .lyx file. Note that it is important to send the .lyx file and not post the latex because they are different things. Many people do not have access to 1.3.3 anymore (might rely on really old libraries) so they cannot recreate the .lyx file to try to import into 2.0.2.

Scott
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

\includegraphics does not work the same from 1.3.3 to 2.0.2

Post by CrazyHorse »

ziaziung wrote:Here is a example : in an insert with an existing /home/zia folder and an existing essai.pas in /home/zia folder.

the code (in an insert)

Code: Select all

\renewcommand\multirowsetup{\centering}
\hline \hline
\begin{tabular}{|c|l|c|c|c|} 
\multirow{4}{22 mm}{\bf{Appel n°1} \includegraphics[width=11mm]{/home/zia/essai.ps}} &  picto &  & /0,5 &  \\ \cline{2-5}
\hline \hline
\end{tabular} 
the code is wrong. You cannot have a \hline before the tabular
ziaziung
Posts: 3
Joined: Thu Nov 08, 2012 4:45 pm

Re: \includegraphics does not work the same from 1.3.3 to 2.

Post by ziaziung »

Yes your right.

Actually I can't use the symbol "number" (tle little circle on top right) -----> ° in an insert!!!

Who knows what I can use in place?


Thank you for your help.
Post Reply