Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 26/07/2013, à 16:53

ibis_rouge

[résolu] LaTeX sous Ubuntu 12.04 LTS

Bonjour,

Je vous écris car j'ai un problème de compilation Latex (il manque des packages)

Pourtant :

  1. J'ai installé (il me semble parce que ça s'est passé via le terminal ...) texlive-full

  1. Ensuite comme j'ai réussi à comprendre qu'il me faudrait un éditeur Latex, j'ai installé via la "Boutique" Ubuntu le logiciel Texmaker

D'autre part (mais je ne devrais pas en parler car 1 problème à la fois), il m'a transformé tous les e_avec_accent en  ! (point d'interrogation dans un losange, ça doit concerner les utf-8)

Si vous voyez une quelconque amorce de solution à me proposer, thanks for ur help !

ibis_rouge

PS : Je vous envoie le début du document :

\documentclass[12]{article}

\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}
\usepackage{fancyhdr} %En-ttes et pieds de pages
\usepackage{lastpage} %Compteur de pages
\usepackage{graphicx} %Insertion d'images
\usepackage{enumerate} %Modification des numarotations
\usepackage{pstricks-add,pst-plot,pst-node,pst-eucl,pst-tree}
Il commence à crier ici : \usepackage{picins}
\usepackage{fancybox}
\usepackage{multicol,multirow}
\usepackage{lscape,ulem,cancel}
\usepackage{colortbl,longtable}
\usepackage{eurosym}
\usepackage{xcolor}
\usepackage{soul,color}
\usepackage{amsmath,amsfonts,theorem}
\usepackage[a4paper,left=3cm,right=1cm,top=2cm,bottom=2cm]{geometry}
\usepackage[colorlinks=true,bookmarks,bookmarksnumbered=true,pdfstartview=FitH,pdfpagemode=UseOutlines]{hyperref}

Dernière modification par ibis_rouge (Le 08/08/2013, à 07:30)

Hors ligne

#2 Le 26/07/2013, à 17:45

Arcans

Re : [résolu] LaTeX sous Ubuntu 12.04 LTS

Salut,

Il semblerait que pour des raisons de licence, le package picins ne soit pas disponible dans la distribution texlive (cf. http://ctan.org/pkg/picins et http://ctan.org/license/other-nonfree). Tu peux le télécharger ici : http://ctan.org/tex-archive/macros/late … rib/picins, choisi l’archive zip qui est proposée (sur la droite). Tu peux ensuite l’extraire dans /usr/share/texmf/tex/latex/. Normalement, un dossier picins y est apparu. Exécute ensuite la commande sudo mktexlsr. Et le package picins ne devrait plus poser de problème lors de la compilation.

Voilà voilà. smile

Arcans

Quelques petites remarques complémentaires :
1. La version 16.04 ne sortira qu’en avril 2016. Tu dois avoir une autre version d’Ubuntu. Ou bien alors tu as voyagé dans le temps.
2. Quand tu donnes des morceaux de fichiers, il peut être utile d’utiliser les balises code, pour des raisons de lisibilité (ce n’était pas fondamental ici, mais pour des logs par exemple, c’est mieux).
3. La solution que je te propose ici part du principe que c’est le package picins qui est manquant, c’est apparemment un problème qui a été rencontré par d’autres personnes, mais il s’agit juste d’une supposition de ma part basée sur le fait que tu signale que c’est à partir de de cette ligne précise qu’il “crie”. Cependant, le mieux pour la clarté aurait été que tu donnes directement le message d’erreur de la compilation en plus de l’en-tête de ton fichier afin d’avoir des indications complètes concernant le problème.
4. C’est effectivement un problème par fil de discussion, d’autant que pour l’affichage des lettres accentuées, ça semble être effectivement un problème de Texmaker sans rapport avec la compilation.

Dernière modification par Arcans (Le 26/07/2013, à 17:47)


« Mais je ne suis pas spécialement mécontent de ne pas être cela dit. »
     — Arcans
« Axiome de base de la théorie des ensembles : s'il existe dans un ensemble X un élément x ayant des propriétés potentiellement casse-couille, c'est de la faute d'Arcans. »
    — Le Rouge

Hors ligne

#3 Le 26/07/2013, à 17:51

gigiair

Re : [résolu] LaTeX sous Ubuntu 12.04 LTS

Essaye de composer un exemple complet minimal (ECM). Ton entête n'en est pas un.
http://www.tuteurs.ens.fr/logiciels/latex/aide.html
La commande \documentclass[12]{article} n'a pas de sens et déclenchera une erreur dans tous les cas. Si tu veux une police de base de 12 points, c'est 12pt qu'il faut.
Pour tes accents, as-tu installé lmodern ou cm-super qui ne sont pas fournis avec texlive ?

Je confirme que picins n'est pas dans texlive. wrapbig est à peu près équivalent et est dans TeXLive.

texdoc wrapfig 

pour plus de détails

Dernière modification par gigiair (Le 26/07/2013, à 17:58)


--
JJR.

Hors ligne

#4 Le 26/07/2013, à 17:53

Arcans

Re : [résolu] LaTeX sous Ubuntu 12.04 LTS

Ah bien vu pour le 12pt, je me suis focalisé sur picins, mais effectivement il n’y a pas que ça qui peut coincer. D’où l’intérêt d’avoir le message d’erreur de la compilation. smile


« Mais je ne suis pas spécialement mécontent de ne pas être cela dit. »
     — Arcans
« Axiome de base de la théorie des ensembles : s'il existe dans un ensemble X un élément x ayant des propriétés potentiellement casse-couille, c'est de la faute d'Arcans. »
    — Le Rouge

Hors ligne

#5 Le 26/07/2013, à 18:07

gigiair

Re : [résolu] LaTeX sous Ubuntu 12.04 LTS

Je pense qu'il s'agit d'une erreur de recopie. Pourtant que croyais que TeXmaker pouvait faire ça...
Le problème est que la question posée comme ça, sans ECM demande des dons de divination.
Il aurait suffit au PO de lire le log et de composer un ECM pour trouver la réponse.
Son deuxième problème est plus difficile et là, on est en pleine divination. La lecture attentive du log explique la cause, mais quand on n'est pas habitué, ce n'est pas évident.
J'ai donné une réponse possible, mais comme tout problème, la solution commence par une analyse de la situation qui est impossible sans ECM.


--
JJR.

Hors ligne

#6 Le 27/07/2013, à 11:24

ibis_rouge

Re : [résolu] LaTeX sous Ubuntu 12.04 LTS

Bonjour à tous,

Voici le document (ai rajouté pt à la 1ère ligne + remplacé picins par wrapfig).

si je compile en PS->PDF il me met ça :

Process started

Error: /undefinedfilename in (cours_thales\(1\).ps) Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push Dictionary stack: --dict:1164/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)-- Current allocation mode is local Last OS error: 2 GPL Ghostscript 9.05: Unrecoverable error, exit code 1

Process exited with error(s)

et le document PDF est vide (sauf un petit cadre) (j'ai cliqué sur Voir PDF en haut à droite)

Si je compile en Dvi->PS il me met

Process started

This is dvips(k) 5.98 Copyright 2009 Radical Eye Software ([url=http://www.radicaleye.com]www.radicaleye.com[/url])

dvips: DVI file can't be opened: cours_thales(1).dvi: No such file or directory

Process exited with error(s)

Cette fois je mets Voir PS : "Impossible d'ouvrir le document"

D'ailleurs n'ai pas compris : le document à la base, c'est du Latex non ? que vient faire Dvi là ? ne comprends pas quand je mets Dvi->Ps (suis ok que ps-tricks exige de compiler en Ps) mais pourquoi Dvi ? ça devrait être Latex->Ps non ?

PS : Et alors si je compile "Compilation rapide"

! LaTeX Error: File `config4eme' not found.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.98 \endpspicture}
I could not locate the file with any of these extensions:
.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Underfull \hbox (badness 2460) in paragraph at lines 104--104
[]$\OML/cmm/m/it/12 AM \OT1/cmr/m/n/12 = 4 \OML/cmm/m/it/12 cm \OT1/cmr/m/n/12
; \OML/cmm/m/it/12 AB \OT1/cmr/m/n/12 = 6 \OML/cmm/m/it/12 cm$ \T1/cmr/m/n/12
et
[]
Underfull \hbox (badness 10000) in paragraph at lines 104--104
[]
Underfull \hbox (badness 10000) in paragraph at lines 104--104
[]
! LaTeX Error: File `einstein' not found.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.104 \end{itemize}}
\\
I could not locate the file with any of these extensions:
.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Underfull \hbox (badness 10000) in paragraph at lines 98--105
[]
! Undefined control sequence.
<recently read> \c@lor@to@ps
l.121 ...m}{$\psframebox[linecolor=red]{AN=3~cm}$}
\parbox{10cm}{ \red C'est...
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.121 ...m}{$\psframebox[linecolor=red]{AN=3~cm}$}
\parbox{10cm}{ \red C'est...
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
<recently read> \c@lor@to@ps
l.121 ...m}{$\psframebox[linecolor=red]{AN=3~cm}$}
\parbox{10cm}{ \red C'est...
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.121 ...m}{$\psframebox[linecolor=red]{AN=3~cm}$}
\parbox{10cm}{ \red C'est...
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
<recently read> \c@lor@to@ps
l.121 ...\fg~encadrée en rouge. \warning unité!!!}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.121 ...\fg~encadrée en rouge. \warning unité!!!}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
<recently read> \c@lor@to@ps
l.121 ...\fg~encadrée en rouge. \warning unité!!!}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.121 ...\fg~encadrée en rouge. \warning unité!!!}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Underfull \hbox (badness 2158) in paragraph at lines 121--121
[]\T1/cmr/m/n/12 C'est la par-tie ^^S conclu-sion ^^T en-ca-drée en rouge.
[]
Overfull \hbox (16.83684pt too wide) in paragraph at lines 113--122
[]$ $[]$
[]
! LaTeX Error: File `configpapillon' not found.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.128 \endpspicture}
I could not locate the file with any of these extensions:
.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Underfull \hbox (badness 2460) in paragraph at lines 134--134
[]$\OML/cmm/m/it/12 AM \OT1/cmr/m/n/12 = 3 \OML/cmm/m/it/12 cm \OT1/cmr/m/n/12
; \OML/cmm/m/it/12 AB \OT1/cmr/m/n/12 = 5 \OML/cmm/m/it/12 cm$ \T1/cmr/m/n/12
et
[]
Underfull \hbox (badness 10000) in paragraph at lines 134--134
[]
Underfull \hbox (badness 10000) in paragraph at lines 134--134
[]
! LaTeX Error: File `einstein' not found.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.134 \end{itemize}}
\\
I could not locate the file with any of these extensions:
.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Underfull \hbox (badness 10000) in paragraph at lines 128--135
[]
! Undefined control sequence.
<recently read> \c@lor@to@ps
l.149 $\psframebox[linecolor=red]{BC=\ldots~cm}
$
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.149 $\psframebox[linecolor=red]{BC=\ldots~cm}
$
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
<recently read> \c@lor@to@ps
l.149 $\psframebox[linecolor=red]{BC=\ldots~cm}
$
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.149 $\psframebox[linecolor=red]{BC=\ldots~cm}
$
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Package Fancyhdr Warning: \headheight is too small (12.0pt):
Make it at least 14.49998pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.
[1
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!]
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) \kern 1.95827pt
(hyperref) removed on input line 152.
Overfull \hbox (13.38927pt too wide) in paragraph at lines 152--152
[]$[]$[][][]
[]
! LaTeX Error: File `droitespar' not found.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.162 \endpspicture}
I could not locate the file with any of these extensions:
.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Overfull \hbox (31.06322pt too wide) in paragraph at lines 158--163
[]$[]$ $[]$
[]
! LaTeX Error: File `configpapillon' not found.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.180 \endpspicture}
\\
I could not locate the file with any of these extensions:
.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! Undefined control sequence.
<recently read> \c@lor@to@ps
l.188 ... encore que les droites sont parallèles.}
\\
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.188 ... encore que les droites sont parallèles.}
\\
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
<recently read> \c@lor@to@ps
l.188 ... encore que les droites sont parallèles.}
\\
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.188 ... encore que les droites sont parallèles.}
\\
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Underfull \hbox (badness 10000) in paragraph at lines 190--192
[]
! Undefined control sequence.
<recently read> \c@lor@to@ps
l.194 ...rès la réciproque du théorème de Thalès}}
$
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.194 ...rès la réciproque du théorème de Thalès}}
$
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
<recently read> \c@lor@to@ps
l.194 ...rès la réciproque du théorème de Thalès}}
$
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
\XC@usec@lor ...\expandafter \c@lor@to@ps #1#2\@@
\else \expandafter \expand...
l.194 ...rès la réciproque du théorème de Thalès}}
$
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Overfull \hbox (109.7175pt too wide) in paragraph at lines 175--195
[]$
[]
AED: lastpage setting LastPage [2
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!] (./cours_thales(1).aux) )
Here is how much of TeX's memory you used:
10721 strings out of 493848
148850 string characters out of 1152823
320674 words of memory out of 3000000
13723 multiletter control sequences out of 15000+50000
21028 words of font info for 62 fonts, out of 3000000 for 9000
714 hyphenation exceptions out of 8191
38i,13n,43p,331b,350s stack positions out of 5000i,500n,10000p,200000b,50000s
{/usr/share/texmf/fonts/enc/
dvips/cm-super/cm-super-t1.enc}</usr/share/texmf-texlive/fonts/type1/public/ams
fonts/cm/cmmi12.pfb></usr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cm
r12.pfb></usr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmsy10.pfb></u
sr/share/texmf/fonts/type1/public/cm-super/sfbx1200.pfb></usr/share/texmf/fonts
/type1/public/cm-super/sfrm0800.pfb></usr/share/texmf/fonts/type1/public/cm-sup
er/sfrm1200.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm2488.pfb></us
r/share/texmf/fonts/type1/public/cm-super/sfsl0900.pfb></usr/share/texmf/fonts/
type1/public/cm-super/sfsl1200.pfb></usr/share/texmf/fonts/type1/public/cm-supe
r/sfsl1440.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfxc1200.pfb>
Output written on cours_thales(1).pdf (2 pages, 123069 bytes).
PDF statistics:
89 PDF objects out of 1000 (max. 8388607)
11 named destinations out of 1000 (max. 500000)
49 words of extra memory for PDF output out of 10000 (max. 10000000)

Merci pour votre aide.

Dernière modification par ibis_rouge (Le 27/07/2013, à 11:31)

Hors ligne

#7 Le 27/07/2013, à 11:28

ibis_rouge

Re : [résolu] LaTeX sous Ubuntu 12.04 LTS

Je vous envoie également le document :

\documentclass[12pt]{article}

\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}
\usepackage{fancyhdr} %En-têtes et pieds de pages
\usepackage{lastpage} %Compteur de pages
\usepackage{graphicx} %Insertion d'images
\usepackage{enumerate} %Modification des numérotations
\usepackage{pstricks-add,pst-plot,pst-node,pst-eucl,pst-tree}
\usepackage{wrapfig}
\usepackage{fancybox}
\usepackage{multicol,multirow}
\usepackage{lscape,ulem,cancel}
\usepackage{colortbl,longtable}
\usepackage{eurosym}
\usepackage{xcolor}
\usepackage{soul,color}
\usepackage{amsmath,amsfonts,theorem}
\usepackage[a4paper,left=3cm,right=1cm,top=2cm,bottom=2cm]{geometry}
\usepackage[colorlinks=true,bookmarks,bookmarksnumbered=true,pdfstartview=FitH,pdfpagemode=UseOutlines]{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\renewcommand{\thesection}{\Roman{section})}
\renewcommand{\thesubsection}{\arabic{subsection}.}
\makeatletter
\renewcommand\section{\@startsection {section}{1}{\z@}%
	{-7.5ex \@plus -1ex \@minus -.2ex}%
	{2.3ex \@plus .2ex}%
	{\reset@font\huge\rmfamily\red\underline}}
\renewcommand\subsection{\@startsection {subsection}{2}{1cm}%
	{-3.5ex \@plus -1ex \@minus -.2ex}%
	{1ex \@plus .8ex}%
	{\reset@font\large\slshape\blue}}
\makeatother
\definecolor{thm}{rgb}{0.6,0,0}
\definecolor{dfn}{rgb}{0,0.5,0}
\definecolor{epl}{gray}{0.5}
\theorembodyfont{\upshape}
\newtheorem{dfn}{\textcolor{dfn}{\underline{définition}}}
\newtheorem{exo}{{Exercice}}
\renewcommand{\theexo}{}
\newtheorem{epl}{\textcolor{magenta}{exemple(s) -}}
\renewcommand{\theepl}{}
\theorembodyfont{\gray}
\newtheorem{dem}{\underline{démonstration} :}
\renewcommand{\thedem}{}
\theoremstyle{break}
\theorembodyfont{\slshape}
\newtheorem{thm}{\textcolor{red}{\underline{propriété}}}
\newtheorem{prop}[thm]{\textcolor{rgb}{\red\underline{proposition}}}
\renewcommand{\thedfn}{\textcolor{dfn}{\arabic{dfn}}}
\renewcommand{\thethm}{\textcolor{thm}{\arabic{thm}}}
\setlength{\parindent}{0mm} 
\def \R {\mathbb{R}} % reals
\def \C {\mathbb{C}} % complexes
\def \N {\mathbb{N}} % integers
\def \D {\mathbb{D}} % decimals
\def \Q {\mathbb{Q}} % rationnels
\def \Z {\mathbb{Z}} % relatifs	
\def \warning{	\pspicture(1.2,0.5)
	\pspolygon[linewidth=0.05,linecolor=red,linearc=0.05](0,0)(0.5,0.8)(1,0)
	\uput[u](0.5,0){\red\textbf{{!}}}
	\endpspicture}
\def\oral{\includegraphics[scale=0.3]{einstein}}
\newsavebox{\fmbox}
\newenvironment{fmpage}[1]
     {\begin{lrbox}{\fmbox}\begin{minipage}{#1}}
     {\end{minipage}\end{lrbox}\fbox{\usebox{\fmbox}}}
\begin{document}

\newcommand{\repere}{
\psset{ticksize=.7pt,linewidth=.7\pslinewidth,labelsep=2.5pt}
\pcline{->}(0,0)(1,0)\rput(0.5,-0.4){$\vec i$}
\pcline{->}(0,0)(0,1)\rput(-0.5,0.5){$\vec j$}\uput[dl](0,0){O}}

\pagestyle{fancy}
\renewcommand\headrulewidth{1pt}
\fancyhead[L]{Chapitre 1}
\fancyhead[R]{3\ieme}
\fancyfoot[C]{page:~\thepage}





\centerline{\shadowbox{\textbf{\textsc{Thalès.}}}}
%\reversemarginpar\marginpar{bien}



\section{Théorème de Thalès}
		\subsection{configuration vue en 4\ieme}
\parbox{8cm}{
		\pspicture(0,-0.5)(8,4.5)
		\includegraphics[scale=0.9]{config4eme}
		\endpspicture}
\parbox{8cm}{
		\begin{itemize}
			\item [$\bullet$] $AM=4~cm~;~AB=6~cm$ et $AC=4,5~cm$ ;\\
			\item [$\bullet$]	Les droites $(MN)$ et $(BC)$ sont parallèles.\\
			\item [\oral]\textbf{Montrer} que $AN=3~cm$.
		\end{itemize}}\\

\begin{fmpage}{8cm}
\begin{itemize}
	\item [$\bullet$] $M\in[\ldots]$ ;
	\item [$\bullet$] $N\in[\ldots]$ ;
	\item [$\bullet$] $(\ldots)//(\ldots)$
\end{itemize}
Donc d'après le théorème de Thalès,
\end{fmpage}
\parbox{8cm}{ \green C'est la partie \og rédaction \fg~dans laquelle figurent les données (ce que je sais).}\\ 
\begin{fmpage}{8cm}
$$\dfrac{A\ldots}{A\ldots}=\dfrac{A\ldots}{A\ldots}=\dfrac{\ldots}{\ldots}$$
$$\dfrac{\ldots}{\ldots}=\dfrac{\ldots}{\ldots}=\dfrac{\ldots}{\ldots}$$
$$AN=\dfrac{\ldots\times\ldots}{\ldots}$$
\end{fmpage}
\parbox{8cm}{ \blue C'est la partie \og application \fg~du théorème de Thalès.}\\
\parbox{7.5cm}{$\psframebox[linecolor=red]{AN=3~cm}$} \parbox{10cm}{ \red C'est la partie \og conclusion \fg~encadrée en rouge. \warning unité!!!}


		\subsection{configuration \og papillon \fg}
\parbox{8cm}{
\pspicture(0,-0.5)(8,4)
\includegraphics[scale=0.9]{configpapillon}
\endpspicture}
\parbox{8cm}{
\begin{itemize}
	\item [$\bullet$] $AM=3~cm~;~AB=5~cm$ et $MN=1,5~cm$ ;\\
	\item [$\bullet$]	Les droites $(MN)$ et $(BC)$ sont parallèles.\\
	\item [\oral]\textbf{Calculer} $BC$.
\end{itemize}}\\

\begin{fmpage}{8cm}
\begin{itemize}
	\item [$\bullet$] $A\in[\ldots]$ ;
	\item [$\bullet$] $A\in[\ldots]$ ;
	\item [$\bullet$] $(\ldots)//(\ldots)$
\end{itemize}
Donc d'après le théorème de Thalès,
\end{fmpage}\\ 
\begin{fmpage}{8cm}
$$\dfrac{A\ldots}{A\ldots}=\dfrac{A\ldots}{A\ldots}=\dfrac{\ldots}{\ldots}$$
$$\dfrac{\ldots}{\ldots}=\dfrac{\ldots}{\ldots}=\dfrac{\ldots}{\ldots}$$
$$BC=\dfrac{\ldots\times\ldots}{\ldots}$$
\end{fmpage}\\
$\psframebox[linecolor=red]{BC=\ldots~cm}$ 


\section{\og Montrer que deux droites sont parallèles ! \fg}

		\subsection{je sais déjà}
\parbox{10cm}{
		\begin{thm}
		.\dotfill\\.\dotfill\\.\dotfill
		\end{thm}}
\parbox{8cm}{
		\pspicture(8,2.5)
		\includegraphics[scale=0.8]{droitespar}
		\endpspicture}
		
		\subsection{réciproque du théorème de Thalès}
%\begin{thm}
%Soient 
%\begin{itemize}
%	\item[$\bullet$] $(d)$ et $(d')$ deux droites sécantes en un point $A$ ;
%	\item[$\bullet$] $B$ et $M$ deux points de la droite $(d)$, distincts du point $A$ ;
%	\item[$\bullet$] $C$ et $N$ deux points de la droite $(d')$, distincts du point $A$.
%\end{itemize}
%\psframebox[linecolor=red]{Si $\dfrac{AM}{AB}=\dfrac{AN}{AC}$ et si $A,B,M$ et $A,C,N$ sont dans le même ordre alors (BC) et (MN) sont parallèles.}
%\end{thm}
\begin{epl}
Démontrer que les droites $(MN)$ et $(BC)$ sont parallèles. L'unité est le $cm$.\\
\parbox{8cm}{
\pspicture(0,-1)(6,4.5)
\includegraphics{configpapillon}
\uput[u](-3,2){2}\uput[d](-5,2){6}\uput[d](-3,1.5){3}\uput[u](-4.5,3){9}
\endpspicture}\\
\begin{fmpage}{8cm}
\begin{itemize}
	\item [$\bullet$] $\ldots\in[\ldots]$ ;
	\item [$\bullet$] $\ldots\in[\ldots]$ ;
\end{itemize}
Je \textbf{calcule} séparément :
\end{fmpage}
\parbox{8cm}{ \green\warning~je ne sais pas encore que les droites sont parallèles.}\\
\begin{fmpage}{8cm}
$\dfrac{A\ldots}{A\ldots}=$\\
$\dfrac{A\ldots}{A\ldots}=$\\

\end{fmpage}\\
$\psframebox[linecolor=red]{\mbox{Les rapports sont égaux, donc les droites} (MN) \mbox{et} (BC) \mbox{sont parallèles d'après la réciproque du théorème de Thalès}}$ 
\end{epl}
\end{document}

Hors ligne

#8 Le 27/07/2013, à 13:57

gigiair

Re : [résolu] LaTeX sous Ubuntu 12.04 LTS

Tu enlèves tout ce qui ne provoque pas d'erreur, et ça devient un Exemple complet minimal.
En plus le fichier config4eme ne fait pas encore partie d'une distribution LaTeX standard.


--
JJR.

Hors ligne