---
+ Post New Thread
Results 1 to 13 of 13
  1. #1
    Member level 3
    Points: 1,493, Level: 8

    Join Date
    Mar 2006
    Posts
    55
    Helped
    0 / 0
    Points
    1,493
    Level
    8

    latex insert figure

    Hi.. Can someone tell me how to insert a picture in a Latex file ?

    I have a figure in .jpg format and .emf format..

    Thanks.

    •   Alt26th December 2006, 10:53

      advertising

        
       

  2. #2
    Full Member level 3
    Points: 2,500, Level: 11

    Join Date
    Dec 2005
    Posts
    174
    Helped
    6 / 6
    Points
    2,500
    Level
    11

    insert figure latex

    I think if you have some editor like Winedit and TexNicenter, they might be able to insert a figure for you.

    This is what I do

    \begin{figure}[h]
    \centering
    \includegraphics[width=13cm,height=7cm]{G:/mywork/pix/xxxx.jpg}
    \caption{Result for the day}
    \label{fig:151106b_measure}
    \end{figure}

    A useful link to learn basic latex
    http://en.wikibooks.org/wiki/LaTeX
    http://www.ctan.org/tex-archive/help...e/bytopic.html


    1 members found this post helpful.

  3. #3
    Full Member level 3
    Points: 2,199, Level: 10

    Join Date
    Dec 2006
    Posts
    165
    Helped
    16 / 16
    Points
    2,199
    Level
    10

    insert picture in latex

    Also dont forget to include the latex graphicx libraray!


    1 members found this post helpful.

  4. #4
    Full Member level 1
    Points: 1,999, Level: 10
    amir_rastegar2003's Avatar
    Join Date
    Aug 2006
    Location
    Iran(my love)
    Posts
    103
    Helped
    56 / 56
    Points
    1,999
    Level
    10

    insert figure in latex

    hi

    thanks for your help. But quality of the loaded figure in PDF format (created by Latex) is not good. How can I load a picture in Latex with a good guality ?

    thanks.



    •   Alt6th August 2007, 08:01

      advertising

        
       

  5. #5
    Full Member level 1
    Points: 1,724, Level: 9

    Join Date
    Dec 2006
    Posts
    106
    Helped
    6 / 6
    Points
    1,724
    Level
    9

    insert jpg latex

    Quote Originally Posted by amir_rastegar2003
    hi

    thanks for your help. But quality of the loaded figure in PDF format (created by Latex) is not good. How can I load a picture in Latex with a good guality ?

    thanks.
    I don't think so, the quality of the pic is very good I'm sure of this.
    In the code was wirtten above you can change " [h] " to " [H] " to allow you put the pic as you want exactly.



    •   Alt6th August 2007, 10:13

      advertising

        
       

  6. #6
    Full Member level 1
    Points: 1,999, Level: 10
    amir_rastegar2003's Avatar
    Join Date
    Aug 2006
    Location
    Iran(my love)
    Posts
    103
    Helped
    56 / 56
    Points
    1,999
    Level
    10

    how to insert figure in latex

    hi

    I mean the pic is not so clear in PDF (created by Latex) also thae have their original resolotion.

    thanks.



  7. #7
    Full Member level 1
    Points: 1,724, Level: 9

    Join Date
    Dec 2006
    Posts
    106
    Helped
    6 / 6
    Points
    1,724
    Level
    9

    latex figure

    ِAre you want to improve the original resolution of the pic?



  8. #8
    Full Member level 1
    Points: 1,999, Level: 10
    amir_rastegar2003's Avatar
    Join Date
    Aug 2006
    Location
    Iran(my love)
    Posts
    103
    Helped
    56 / 56
    Points
    1,999
    Level
    10

    latex insert jpg

    No dear,

    AsI said, the loaded pic has resolutios as the main pic, but it is not so clear, you should zoom on in to see the pic with more clearity.

    ok?

    Consider the following situatioin: I'm to load a simulation result from MATLAB to LATEX. what should I do to obtain a good latex file with a high quality pic??
    thanks a lot.



  9. #9
    Full Member level 1
    Points: 1,724, Level: 9

    Join Date
    Dec 2006
    Posts
    106
    Helped
    6 / 6
    Points
    1,724
    Level
    9

    insert picture latex

    ٍِSA,
    Oh I get it, thanx for you, I'll give you the comment that allow you to resize the pic as you want.

    \begin{figure}[htbp]
    \centering
    \resizebox{0.75\textwidth}{!}{\includegraphics{b2} }
    \caption{your cation}
    \label{fig:pic}
    \end{figure}

    This is the explanation for the above code.
    THe "resize" command is to allow you to resize your pic in any size refer to the text width, so I wrote 0.75\textwidth , and the "!" sign is put to save the aspect ratio between the width and hight of the pic, you can also make the pic size 1\textwidth, this mean the pic will take the all space allowed for the text, so you can write any size you want.
    Another important note you can see in the same command I didn't write the path of the pic, because when you write the path it appear in the pdf, so you put the pic in the same path of the LATEX file you run and remove the path when you put the pic as I wrote.
    Hope to help you.
    Salam.



  10. #10
    Advanced Member level 1
    Points: 6,315, Level: 18

    Join Date
    Jul 2004
    Posts
    428
    Helped
    76 / 76
    Points
    6,315
    Level
    18

    insert figure

    Hi

    In Latex you will get the best result, if you use a graphis which is in vector format. JPEG is not, but PNG, EPS is vector graphics format and will be very clear and sharp.
    So if you want a good result you have to export to EPS or something similar. Matlab can do this.

    Regards



  11. #11
    Full Member level 1
    Points: 1,999, Level: 10
    amir_rastegar2003's Avatar
    Join Date
    Aug 2006
    Location
    Iran(my love)
    Posts
    103
    Helped
    56 / 56
    Points
    1,999
    Level
    10

    insert jpg in latex

    hi

    thanks for your comments. I have an other idea.

    when you do your simulation in MATLAN, resize your pic (simulation result) and the save it in the same path that your latex file is there. then use rhe above commands (with a resize factor of .9 or .8 or ....bepend on your pic size). and then build the latex file. see the result. it's perfect.
    thanks!

    plz test it and tell me about your results. thanks



  12. #12
    Full Member level 1
    Points: 1,724, Level: 9

    Join Date
    Dec 2006
    Posts
    106
    Helped
    6 / 6
    Points
    1,724
    Level
    9

    insert a figure in latex

    I didn't try it, but I think it will very good.



  13. #13
    Full Member level 1
    Points: 1,999, Level: 10
    amir_rastegar2003's Avatar
    Join Date
    Aug 2006
    Location
    Iran(my love)
    Posts
    103
    Helped
    56 / 56
    Points
    1,999
    Level
    10

    insert emf into latex

    i test it. the result is perfect!!!!!!



+ Post New Thread
Please login