Help Latex insertion figure (windows)
Répondre à la discussion
Affichage des résultats 1 à 11 sur 11

Help Latex insertion figure (windows)



  1. #1
    invite9da1fee8

    Help Latex insertion figure (windows)


    ------

    Bonjour!
    Je travaille sous windows, j'ai un suite miXtex avec l'éditeur texniccenter.

    Je précise que je suis débutante (svp, me parlez pas de trucs d'informaticiens), mais que jusqu'ici tout se passait bien. Jusqu'à ce que j'essaie d'insérer une figure.
    J'utilise une commande classique (\usepackage{graphicx} dans le préambule; \begin{figure} \includegraphics{fichier.pdf} \end{figure}) au début y'avait toute une foule de raffinements (centrer le bazar, taille, légende,...), mais j'ai taillé dans la masse pour éviter les fautes de frappe.
    Toites ces commandes ont été vérifiées et copiées de site surs; et je les ai même trouvés dan mon éditeur.

    J'utilise pdflatex pour compiler mon truc, mon graphique est en pdf (j'ai essayé jpg et png, aussi), dans le même dossier que le dossier de mon document latex.
    Quand je compile, aucune erreur, mais à l'affichage, aucune trace de mon graphique.

    J'ai même eu des trucs absolument loufoques comme le nom de mon fichier qui apparait, centré et là ou je lui ai demandé d'aller, mais sans trace de l'image

    Si l'un de vous a une idée, je lui en serais éternellement reconnaissante!
    Merci!

    -----

  2. #2
    Calvert

    Re : Help Latex insertion figure (windows)

    Salut !

    Si l'un de vous a une idée, je lui en serais éternellement reconnaissante!
    Commencer par nous donner le rapport de compilation (le fichier .log généré pendant la compilation), histoire de voir ce qui se passe !

    Ca va déjà être un début !

  3. #3
    invite9da1fee8

    Re : Help Latex insertion figure (windows)

    Euh d'accord.

    Je vous fais un simple copié-collé du fichier...
    Vous pourriez m'expliquer ce que ca dit d'important?...

    Merci!

    This is pdfTeX, Version 3.1415926-1.40.11 (MiKTeX 2.9) (preloaded format=pdflatex 2011.2.28) 9 MAR 2011 15:30
    entering extended mode
    **C:/Documents*and*Settings/Justine/Mes*documents/essai*latex/rapport2.tex
    ("C:/Documents and Settings/Justine/Mes documents/essai latex/rapport2.tex"
    LaTeX2e <2009/09/24>
    Babel <v3.8l> and hyphenation patterns for english, afrikaans, ancientgreek, ar
    abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
    croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
    lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
    ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
    vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
    an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,
    romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
    sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
    senglishmax, welsh, loaded.
    ("C:\Program Files\MiKTeX 2.9\tex\latex\base\report.cls"
    Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
    ("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"
    File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
    )
    \c@part=\count79
    \c@chapter=\count80
    \c@section=\count81
    \c@subsection=\count82
    \c@subsubsection=\count83
    \c@paragraph=\count84
    \c@subparagraph=\count85
    \c@figure=\count86
    \c@table=\count87
    \abovecaptionskip=\skip41
    \belowcaptionskip=\skip42
    \bibindent=\dimen102
    )
    ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphic x.sty"
    Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

    ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval. sty"
    Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
    \KV@toks@=\toks14
    )
    ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphic s.sty"
    Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)

    ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.st y"
    Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
    )
    ("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\graphic s.cfg"
    File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
    )
    Package graphics Info: Driver file: pdftex.def on input line 91.

    ("C:\Program Files\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
    File: pdftex.def 2010/09/14 v0.05b Graphics/color for pdfTeX
    \Gread@gobject=\count88
    ))
    \Gin@req@height=\dimen103
    \Gin@req@width=\dimen104
    )
    ("C:\Program Files\MiKTeX 2.9\tex\generic\babel\babel.st y"
    Package: babel 2008/07/06 v3.8l The Babel package

    ****************************** *******
    * Local config file bblopts.cfg used
    *
    ("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\bblopts .cfg"
    File: bblopts.cfg 2006/07/31 v1.0 MiKTeX 'babel' configuration
    )
    ("C:\Program Files\MiKTeX 2.9\tex\generic\babel\frenchb. ldf"
    Language: frenchb 2009/03/16 v2.3d French support from the babel system

    ("C:\Program Files\MiKTeX 2.9\tex\generic\babel\babel.de f"
    File: babel.def 2008/07/06 v3.8l Babel common definitions
    \babel@savecnt=\count89
    \U@D=\dimen105
    )
    Package babel Info: Making : an active character on input line 120.
    Package babel Info: Making ; an active character on input line 121.
    Package babel Info: Making ! an active character on input line 122.
    Package babel Info: Making ? an active character on input line 123.
    \FB@Mht=\dimen106
    \std@mcc=\count90
    \dec@mcc=\count91
    \parindentFFN=\dimen107

    ****************************** *******
    * Local config file frenchb.cfg used
    *
    ("C:\Program Files\MiKTeX 2.9\tex\generic\babel\frenchb. cfg")))
    ("C:\Program Files\MiKTeX 2.9\tex\latex\carlisle\scalefn t.sty")
    ("C:\Program Files\MiKTeX 2.9\tex\latex\base\fontenc.sty "
    Package: fontenc 2005/09/27 v1.99g Standard LaTeX package

    ("C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.def"
    File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
    LaTeX Font Info: Redeclaring font encoding T1 on input line 43.
    ))
    ("C:\Documents and Settings\Justine\Mes documents\essai latex\rapport2.aux")
    LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 7.
    LaTeX Font Info: ... okay on input line 7.
    LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 7.
    LaTeX Font Info: ... okay on input line 7.
    LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 7.
    LaTeX Font Info: ... okay on input line 7.
    LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 7.
    LaTeX Font Info: ... okay on input line 7.
    LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 7.
    LaTeX Font Info: ... okay on input line 7.
    LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 7.
    LaTeX Font Info: ... okay on input line 7.

  4. #4
    Calvert

    Re : Help Latex insertion figure (windows)

    Il y a tout, là ? Ca se termine de manière un peu étrange !

  5. A voir en vidéo sur Futura
  6. #5
    invite9da1fee8

    Re : Help Latex insertion figure (windows)

    Pour voir un peu, j'ai refait un essai beaucoup plus simple

    \documentclass{report}
    \usepackage[french]{babel}
    \usepackage{graphicx}
    \usepackage[T1]{fontenc}
    \begin{document}
    \includegraphics{spectro}
    \end{document}

    compilation sans erreur; mais quand s'ouvre ma fenêtre pdf il affiche "une erreur est survenue lors d el'ouverture de ce document. fichier introuvable" et il m'affiche rien.

    Ce qui est incroyable c'ets que j'ai bien un pdf qui s'affiche pour mon fichier de base, sans image, mais il s'ouvre.

    je vous mets le rapport de compilationd e celui là aussi?

  7. #6
    invite9da1fee8

    Re : Help Latex insertion figure (windows)

    Oui, il y a tout...

  8. #7
    invite9da1fee8

    Re : Help Latex insertion figure (windows)

    Ouille!
    Tout nouveau fichier que je crée subit le même sort. compilation sans problème mais pas d'affichage du pdf.

    Et tout modification que j'apporte à un fichier tex pré-existant n'apprait pas au pdf, comme si simplement il ouvrait le "vieux" fichier.
    j'ai lancé un fichier minimaliste- le meme que plus haut sans le package graphique ni le graphique. Voici le log.

    This is pdfTeX, Version 3.1415926-1.40.11 (MiKTeX 2.9) (preloaded format=pdflatex 2011.2.28) 9 MAR 2011 16:15
    entering extended mode
    **C:/Documents*and*Settings/Justine/Mes*documents/encoreunessai/LaTeX1.tex
    ("C:/Documents and Settings/Justine/Mes documents/encoreunessai/LaTeX1.tex"
    LaTeX2e <2009/09/24>
    Babel <v3.8l> and hyphenation patterns for english, afrikaans, ancientgreek, ar
    abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
    croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
    lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
    ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
    vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
    an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,
    romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
    sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
    senglishmax, welsh, loaded.
    ("C:\Program Files\MiKTeX 2.9\tex\latex\base\report.cls"
    Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
    ("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"
    File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
    )
    \c@part=\count79
    \c@chapter=\count80
    \c@section=\count81
    \c@subsection=\count82
    \c@subsubsection=\count83
    \c@paragraph=\count84
    \c@subparagraph=\count85
    \c@figure=\count86
    \c@table=\count87
    \abovecaptionskip=\skip41
    \belowcaptionskip=\skip42
    \bibindent=\dimen102
    )
    ("C:\Program Files\MiKTeX 2.9\tex\generic\babel\babel.st y"
    Package: babel 2008/07/06 v3.8l The Babel package

    ****************************** *******
    * Local config file bblopts.cfg used
    *
    ("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\bblopts .cfg"
    File: bblopts.cfg 2006/07/31 v1.0 MiKTeX 'babel' configuration
    )
    ("C:\Program Files\MiKTeX 2.9\tex\generic\babel\frenchb. ldf"
    Language: frenchb 2009/03/16 v2.3d French support from the babel system

    ("C:\Program Files\MiKTeX 2.9\tex\generic\babel\babel.de f"
    File: babel.def 2008/07/06 v3.8l Babel common definitions
    \babel@savecnt=\count88
    \U@D=\dimen103
    )
    Package babel Info: Making : an active character on input line 120.
    Package babel Info: Making ; an active character on input line 121.
    Package babel Info: Making ! an active character on input line 122.
    Package babel Info: Making ? an active character on input line 123.
    \FB@Mht=\dimen104
    \std@mcc=\count89
    \dec@mcc=\count90
    \parindentFFN=\dimen105

    ****************************** *******
    * Local config file frenchb.cfg used
    *
    ("C:\Program Files\MiKTeX 2.9\tex\generic\babel\frenchb. cfg")))
    ("C:\Program Files\MiKTeX 2.9\tex\latex\carlisle\scalefn t.sty")
    ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval. sty"
    Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
    \KV@toks@=\toks14
    )
    ("C:\Program Files\MiKTeX 2.9\tex\latex\base\fontenc.sty "
    Package: fontenc 2005/09/27 v1.99g Standard LaTeX package

    ("C:\Program Files\MiKTeX 2.9\tex\latex\base\t1enc.def"
    File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
    LaTeX Font Info: Redeclaring font encoding T1 on input line 43.
    ))
    No file LaTeX1.aux.
    LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.
    LaTeX Font Info: ... okay on input line 4.
    LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
    LaTeX Font Info: ... okay on input line 4.
    LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
    LaTeX Font Info: ... okay on input line 4.
    LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.
    LaTeX Font Info: ... okay on input line 4.
    LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.
    LaTeX Font Info: ... okay on input line 4.
    LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
    LaTeX Font Info: ... okay on input line 4.
    LaTeX Info: Redefining \degres on input line 4.
    LaTeX Info: Redefining \dots on input line 4.
    LaTeX Info: Redefining \up on input line 4.
    ("C:\Documents and Settings\Justine\Mes documents\encoreunessai\LaTeX1 .aux") )
    Here is how much of TeX's memory you used:
    1128 strings out of 494019
    13754 string characters out of 3146438
    67068 words of memory out of 3000000
    4477 multiletter control sequences out of 15000+200000
    4403 words of font info for 15 fonts, out of 3000000 for 9000
    714 hyphenation exceptions out of 8191
    24i,1n,24p,235b,37s stack positions out of 5000i,500n,10000p,200000b,5000 0s

    No pages of output.
    PDF statistics:
    0 PDF objects out of 1000 (max. 8388607)
    0 named destinations out of 1000 (max. 500000)
    1 words of extra memory for PDF output out of 10000 (max. 10000000)

  9. #8
    Calvert

    Re : Help Latex insertion figure (windows)

    Chez moi, ça marche... Essaye avec seulement le package graphicx, enlève tout le reste, et reposte le rapport... En tout cas, c'est normal que tu ne voies rien, il n'y a pas de pdf de généré.

  10. #9
    invite9da1fee8

    Re : Help Latex insertion figure (windows)

    Entre-temps je suis devenue dingue (ré-ouvrir un fichier écrit la veille, un tout petit texte tout simple, le modifier et voir qu'aucune des modifications n'apparait...), j'ai créé plusieurs tout petits documents en supprimant à chaque fois de spackages.

    Ca semblait pas lié à un en particulier, puisque j'ai à chaque fois eu un message d'erreur, et quand mon document contenait quelque chose, il ne me générait pas le pdf.
    J'ai essayé en dvi aussi; pareil.

    j'ai deux-trois log de mes essais si ça vous intéresse en tant que casse-tête.

    Mais bon, j'en ai conclus que miktex (c'ets pas texniccenter parce que j'avais pareil avec l'éditeur texworks inclus dans la suite) avait un sérieux souci. Je l'ai supprimé et réinstallé, et il me prend mon tex, le compile et construit le pdf sans souci (bon, il reconnait pas mes accents, mais je lui en veux pas)


    Merci Calvert en tout cas, pour ton intéret pour mon problème!

  11. #10
    invite9da1fee8

    Re : Help Latex insertion figure (windows)

    Bon, j'ai parlé trop vite.

    je suis sur texworks comme éditeur, maintenant, et j'ai encore de sproblèmes à insérer un ^pdf.
    si je l'insère sans rien lui demander ca va, mais si j'essaie de changer sa taille, ca foire...

    dans mon préambule:
    \usepackage{graphics}

    puis dans le doc
    \begin{figure}
    \centering
    \includegraphics[width=13cm,height=7cm]{spectro}
    \end{figure}

    et il m'affiche "missing number, treated as zero"
    et pas d'image
    (je sais pas sil vous faut tout le log, il est vmt long, et j'ai l'impression que c'ets juste moi qui ai oublié un truc trop con, mais pas moyen de trouver...

  12. #11
    Calvert

    Re : Help Latex insertion figure (windows)

    Les options "width=" et "height=" sont disponibles avec le pacakage graphicx, et pas graphics !

    Note que mettre les deux options simultanément risque de déformer ton image. Si tu ne mets qu'une des deux, elle conservera ses proportions.

    Note aussi que, pour automatiquement adapter la largeur de ta figure à la largeur de ta page, tu peux utiliser des choses comme

    Code:
    [width=\textwidth]
    que tu peux multiplier par des facteurs "0.9\textwidth", ...

Discussions similaires

  1. Inserer une figure avec LaTeX... sans l'environnement figure!!
    Par invite60e37dfb dans le forum Mathématiques du supérieur
    Réponses: 2
    Dernier message: 24/09/2012, 17h33
  2. Numerotation figure latex
    Par inviteb371ab49 dans le forum Logiciel - Software - Open Source
    Réponses: 5
    Dernier message: 02/05/2009, 19h09
  3. figure dans Latex
    Par invite166fe24d dans le forum Logiciel - Software - Open Source
    Réponses: 2
    Dernier message: 11/09/2005, 16h47
  4. Cadre figure Latex
    Par invitecf4fc664 dans le forum Logiciel - Software - Open Source
    Réponses: 2
    Dernier message: 10/06/2005, 16h36
Dans la rubrique Tech de Futura, découvrez nos comparatifs produits sur l'informatique et les technologies : imprimantes laser couleur, casques audio, chaises gamer...