Partage
  • Partager sur Facebook
  • Partager sur Twitter

[Latex} Soucis d'affichage avec Latex

    21 septembre 2018 à 14:33:19

    Bonjour je viens ici car j'ai un soucis avec mon doc Latex.

    J'ai fait un doc note pour mes cours de maths sauf qu'il ne montre que les instruction entouré de \begin{math}\end{math}

    J'aimerais donc savoir d'ou viens ce problème qui m'handicape sérieusement. 

    \documentclass{article}
    \usepackage[latin1]{inputenc}
    \usepackage[T1]{fontenc}
    \usepackage{amssymb}
    
    
    \begin{document}
    \Huge{Chapitre 1. Les nombres rels}
    \section{Differents ensembles}
    \Large{\sl \begin{math}\mathbb{N}\end{math} = ensemble des entiers naturels = \{0,1,2,...\}}
    \newline
    \Large{\sl\begin{math}\mathbb{Z}\end{math} = ensemble des entiers relatifs = \{...,-2,-1,0,1,2,...\}}
    \newline
    \Large{\sl\begin{math}\mathbb{Q}\end{math} = ensemble des nombres rationnels = \{...,-1,-\[\frac{1}{2}\],0,\[\frac{1}{2}\],1,...\}}
    \newline
    \Large{\sl\begin{math} \mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q}\end{math}}
    \newline
    \Large{\sl L'ensemble des nombres rationnels est defaillant car il ne rend pas compte de certaines quantite mesurable tel\begin{math} \pi ou \sqrt{2}\end{math}}
    \newline
    \Large{\sl- $a²$ + $b²$= $c²$ $\Leftrightarrow$ $c²$ = 2 Il n'existe aucun c  $\in$ $\mathbb{Q}$tel que $c²$ = 2}
    \newline
    \huge{\sl L'ensemble \begin{math}\mathbb{R}\end{math} est corps commutatif, totalement ordonne et complet}
    \section{Operation elementaires}
    \Large{\sl\begin{math}\mathbb{R}\end{math} est un corps commutatif car il est muni de 2 opération l'addition et la multiplication, satisfaisant les proprietes fondamentales suivantes :}
    \newline
    \Large{\sl C1 - \begin{math}\forall\end{math} a et b \begin{math} \in \mathbb{R}\end{math}, a + b \begin{math} \in \mathbb{R}\end{math}}
    \newline
    \Large{\sl C2 - \begin{math}\forall\end{math} a et b \begin{math} \in \mathbb{R}\end{math}, a + b = b + a}
    \newline
    \Large{\sl C3 - \begin{math}\forall\end{math} a,b et c \begin{math} \in \mathbb{R}\end{math}, (a + b) + c = a + (b + c)
    \newline
    \Large{\sl C4 - Il existe un element de \begin{math}\mathbb{R}\end{math}, note 0 tel que : a + 0 = a }
    \newpage
    \Large{\sl C5 - \begin{math}\forall\end{math} a\begin{math} \in \mathbb{R}\end{math}, il existe un reel note -a tel que a+(-a) = 0}
    \newline
    \Large{\sl C6 - \begin{math}\forall\end{math} a et b \begin{math} \in \mathbb{R}\end{math}, a.b \begin{math} \in \mathbb{R} \end{math}}
    \newline
    \Large{\sl C7 - \begin{math}\forall\end{math} a et b \begin{math} \in \mathbb{R}\end{math}, a.b = b.a}
    \newline
    \Large{\sl C8 - \begin{math}\forall\end{math} a,b et c \begin{math} \in \mathbb{R}\end{math}, (a.b).c = a.(b.c)}
    \newline
    \Large{\sl C9 - Il existe un element de \begin{math} \mathbb{R} \end{math}, noté 1 tel que a.1 = a}
    \newline
    \Large{\sl C10 - \begin{math}\forall\end{math} a et b \begin{math} \in \mathbb{R}\end{math}, a \begin{math}\neq\end{math} 0, il existe un reel note \begin{math}\frac{1}{a}\end{math} tel que \begin{math}\frac{1}{a}\end{math}.a = 1}
    \newline
    \Large{\sl C11 - \begin{math}\forall\end{math} a,b et c \begin{math} \in \mathbb{R}\end{math}, a.(b + c) = ab + ac}
    \newline
    \Large{\sl Il existe un unique element neutre pour l'addition et la multiplication, et un unique oppose et inverse }
    \section{Relation d'ordre}
    \Large{\sl O1 - \begin{math}\forall\end{math} a \begin{math} \in \mathbb{R}\end{math}, a \begin{math}\leq\end{math} a
    \newline
    \Large{\sl O2 - \begin{math}\forall\end{math} a et b \begin{math} \in \mathbb{R}\end{math},a\begin{math}\leq\end{math} b et b \begin{math}\leq\end{math} a $\Rightarrow$ a = b} 
    \newline
    \Large{\sl O3 - \begin{math}\forall\end{math} a,b et c\begin{math} \in \mathbb{R}\end{math}, a \begin{math}\leq\end{math} b et b \begin{math}\leq\end{math} c , alors a \begin{math}\leq\end{math}c}
    \newline
    \Large{\sl O4 - \begin{math}\forall\end{math} a et b \begin{math} \in \mathbb{R}\end{math}, a \begin{math}\leq\end{math} b ou b \begin{math}\leq\end{math} a }
    \section{Operation et ordre}
    \Large{\sl CO1 - \begin{math}\forall\end{math} a,b et c  $\in$\begin{math} \mathbb{R}\end{math}, a \begin{math}\leq\end{math} b $\Rightarrow$ a + c \begin{math}\leq\end{math} b + c}
    \newline
    \Large{\sl CO2 - \begin{math}\forall\end{math} a,b et c \begin{math} \in \mathbb{R}\end{math}, a \begin{math}\leq\end{math} b et c \begin{math}\geq\end{math} 0 $\Rightarrow$ a.c \begin{math}\geq\end{math} a.b}
    \newline
    \Large{\sl Si a et b sont deux nombres reels tels que : a \begin{math}\leq\end{math} b et a \begin{math}\neq\end{math} b alors on dira que a < b }
    \section{Autres consequences des proprietes fondamentales}
    \Large{\sl \begin{math}\forall\end{math} a,b,c et d \begin{math} \in \mathbb{R}\end{math}, a \begin{math}\leq\end{math} b et c \begin{math}\leq\end{math} d, \begin{math}\Rightarrow\end{math} a + c \begin{math}\leq\end{math} b + d}
    \newline
    \Large{\sl \begin{math}\forall\end{math} a et b  $\in$ \begin{math}\mathbb{R}\end{math}, $a²$ \begin{math}\geq\end{math} 0}
    \newline
    \Large{\sl \begin{math}\forall\end{math} a et b \begin{math} \in \mathbb{R}\end{math}, si a \begin{math}\geq\end{math} 0 alors \begin{math}\frac{1}{a}\geq\end{math} 0, et inversement} 
    \newline
    \Large{\sl \begin{math}\forall\end{math} a et b \begin{math} \in \mathbb{R}\end{math}, et  c \begin{math}\in \mathbb{R+}\end{math},a \begin{math}\leq\end{math} b \begin{math}\Leftrightarrow\end{math} a.c \begin{math}\leq\end{math} b.c}
    \newline
    \Large{\sl \begin{math}\forall\end{math} a et b \begin{math} \in \mathbb{R}\end{math}, 0 \begin{math}\leq\end{math} a \begin{math}\leq\end{math} b alors 0 \begin{math}\leq \frac{1}{b} \leq \frac{1}{a}\end{math}}
    \end{document}
    



    • Partager sur Facebook
    • Partager sur Twitter
      21 septembre 2018 à 16:20:22

      Il y a beaucoup de choses à redire sur le code qui est difficilement lisible, mais entre autres :

      • si tu veux écrire un exposant en mode math, tu dois utiliser : 'a^2' et pas mettre l'exposant directement
      • n'utilise pas \begin{math}\end{math}, tu as un raccourci bien utile : '$ ... $' pour des maths inline
      • latex fournit des commandes pour séparer en chapitres, etc. Utilise-les !

      Pour ma part, corriger le point un a suffit pour faire compiler ton document sans erreurs.

      Edit : il fallait évidemment lire le 'point un' pour faire compiler le document !

      -
      Edité par Nozio 22 septembre 2018 à 10:22:21

      • Partager sur Facebook
      • Partager sur Twitter

      Avez-vous entendu parler de Julia ? Laissez-vous tenter ...

        22 septembre 2018 à 1:55:45

        Remarque : il ne faut pas faire :

        \begin{math}\forall\end{math} a,b et c \begin{math} \in \mathbb{R}\end{math}, (a.b).c = a.(b.c)}


        mais

        \begin{math}\forall a,b et c \in \mathbb{R}, (a.b).c = a.(b.c)\end{math}}
        

        Ça va mettre a, b et c en italique, et c'est justement l'usage dans une équation ou une formule. (Et c'est en effet très pratique d'utiliser les $.)

        • Partager sur Facebook
        • Partager sur Twitter
          22 septembre 2018 à 12:57:04

          Ok merci de vos réponse je vais essayer de suite

          • Partager sur Facebook
          • Partager sur Twitter
            22 septembre 2018 à 14:39:39

            Salut,

            Le mieux reste quand même de suivre un tutoriel sur LaTeX et sur l'utilisation des maths. Par exemple, tu pourrais avoir quelque chose du genre.

            \documentclass[12pt]{book}
            \usepackage[utf8]{inputenc}
            \usepackage[T1]{fontenc}
            \usepackage{amsmath, amssymb}
             
            \let\ensembleNombre\mathbb
            \newcommand*\N{\ensembleNombre{N}}
            \newcommand*\Z{\ensembleNombre{Z}}
            \newcommand*\Q{\ensembleNombre{Q}}
            \newcommand*\R{\ensembleNombre{R}}
            \newcommand*\C{\ensembleNombre{C}}
             
            \newcommand*\ens[1]{\left\{ #1 \right\}} 
             
            \begin{document}
            \chapter{Les nombres réels}
            
            \section{Différents ensembles}
               \begin{itemize}
                  \item $\N =$ ensemble des entiers naturels = $\ens{0, 1, 2, \ldots}$
                  \item $\Z =$ ensemble desebl entiers relatifs = 
                        $\ens{\ldots, -2, -1, 0, 1, 2, \ldots}$
                  \item $\Q = $ ensemble des nombres rationnels = 
                        $\ens{\ldots, -1, -\frac{1}{2}, 0, \frac{1}{2}, 1, \ldots}$
               \end{itemize}
            
               On a
               \[
                  \N \subset \Z \subset \Q.
               \]
            
               \begin{itemize}
                  \item L'ensemble des nombres rationnels est défaillant car il ne rend pas 
                        compte de certaines quantités mesurables tel $\pi$ ou $\sqrt{2}$.
                  \item $a^2 + b^2 = c^2 \iff c^2 = 2$ Il n'existe aucun $c \in \Q$ tel que 
                        $c^2 = 2$.
                  \item $\R$ est un corps commutatif, totalement ordonné et complet.
               \end{itemize}
            
            \section{Opérations élémentaires}
               $\R$ est un corps commutatif car il est muni de deux opérations, l'addition 
               et la multiplications satisfaisant les propriétés fondamentales suivantes.
               \begin{description}
                  \item[C1] $\forall (a, b) \in \R^2, a + b \in \R$.
                  \item[C2] $\forall (a, b) \in \R^2, a + b = b + a$.
                  \item[C3] $\forall (a, b, c) \in \R^3, (a + b) + c = a + (b + c)$.
                  \item[C4] Il existe un élément de $\R$ noté $0$ tel que $a + 0 = a$.
                  \item[C5] $\forall a \in \R$, il existe un réel noté $-a$ tel que $a + (-a) = 0$.
                  \item[C6] $\forall (a, b) \in \R^2, a \cdot b \in \R$.
                  \item[C7] $\forall (a, b) \in \R^2, a \cdot b = b \cdot a$.
                  \item[C8] $\forall (a, b, c) \in \R^3, (a \cdot b) \cdot c = a \cdot (b \cdot c)$.
                  \item[C9] Il existe un élément de $\R$ noté $1$ tel que $a \cdot 1 = a$.
                  \item[C10] $\forall a \in \R, a \neq 0$, il existe un réel noté $\frac{1}{a}$
                             tel que $\frac{1}{a} \cdot a = 1$.
                  \item[C11] $\forall (a, b, c) \in R^3, a \cdot (b + c) = ab + ac$. 
               \end{description}
               Il existe un unique élément neutre pour l'addition et la multiplication et un unique
               opposé et inverse.
            
               ...
            \end{document}
            

            -
            Edité par yo@n97one 22 septembre 2018 à 14:40:16

            • Partager sur Facebook
            • Partager sur Twitter
            Tutoriel Ruby - Bon tutoriel C - Tutoriel SDL 2 - Python avancé - Faîtes un zeste, devenez des zesteurs
              22 septembre 2018 à 15:14:15

              Donc j'ai essayer tous vos conseils et j'ai toujours mon soucis voici le code ( je sais pas très bien présenté mais il devait me servir qu'a moi )

              \documentclass{article}
              \usepackage[latin1]{inputenc}
              \usepackage[T1]{fontenc}
              \usepackage{amssymb}
              
              
              \begin{document}
              \Huge{Chapitre 1. Les nombres rels}
              \section{Differents ensembles}
              \Large{\sl $\mathbb{N}$ = ensemble des entiers naturels = \{0,1,2,...\}}
              \newline
              \Large{\sl$\mathbb{Z}$ = ensemble des entiers relatifs = \{...,-2,-1,0,1,2,...\}}
              \newline
              \Large{\sl$\mathbb{Q}$ = ensemble des nombres rationnels = \{...,-1,-\[\frac{1}{2}\],0,\[\frac{1}{2}\],1,...\}}
              \newline
              \Large{\sl$\mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q}$}
              \newline
              \Large{\sl L'ensemble des nombres rationnels est defaillant car il ne rend pas compte de certaines quantite mesurable tel\begin{math} \pi ou \sqrt{2}\end{math}}
              \newline
              \Large{\sl- $a^2$ + $b^2$= $c^2$ $\Leftrightarrow$ $c^2$ = 2 Il n'existe aucun c  $\in \mathbb{Q}$tel que $c^2$ = 2}
              \newline
              \huge{\sl L'ensemble $\mathbb{R}$ est corps commutatif, totalement ordonne et complet}
              \section{Operation elementaires}
              \Large{\sl $\mathbb{R}$ est un corps commutatif car il est muni de 2 opération l'addition et la multiplication, satisfaisant les proprietes fondamentales suivantes :}
              \newline
              \Large{\sl C1 - $\forall a et b  \in \mathbb{R}, a + b  \in \mathbb{R}$}
              \newline
              \Large{\sl C2 - $\forall a et b  \in \mathbb{R}, a + b = b + a$}
              \newline
              \Large{\sl C3 - $\forall a,b et c  \in \mathbb{R}, (a + b) + c = a + (b + c)$}
              \newline
              \Large{\sl C4 - Il existe un element de $\mathbb{R}$, note 0 tel que : a + 0 = a }
              \newpage
              \Large{\sl C5 - $\forall a \in \mathbb{R}$, il existe un reel note -a tel que a+(-a) = 0}
              \newline
              \Large{\sl C6 - $\forall a et b  \in \mathbb{R}$, a.b \begin{math} \in \mathbb{R} \end{math}}
              \newline
              \Large{\sl C7 - \begin{math}\forall\end{math} a et b \begin{math} \in \mathbb{R}\end{math}, a.b = b.a}
              \newline
              \Large{\sl C8 - \begin{math}\forall\end{math} a,b et c \begin{math} \in \mathbb{R}\end{math}, (a.b).c = a.(b.c)}
              \newline
              \Large{\sl C9 - Il existe un element de \begin{math} \mathbb{R} \end{math}, noté 1 tel que a.1 = a}
              \newline
              \Large{\sl C10 - $\forall a et b \in \mathbb{R}$, a $\neq$ 0, il existe un reel note $\frac{1}{a}$ tel que $\frac{1}{a}$.a = 1}
              \newline
              \Large{\sl C11 - $\forall a,b et c \in \mathbb{R}$, a.(b + c) = ab + ac}
              \newline
              \Large{\sl Il existe un unique element neutre pour l'addition et la multiplication, et un unique oppose et inverse }
              \section{Relation d'ordre}
              \Large{\sl O1 - $\forall a  \in \mathbb{R}, a \leq$ a}
              \newline
              \Large{\sl O2 - \begin{math}\forall\end{math} a et b \begin{math} \in \mathbb{R}\end{math},a\begin{math}\leq\end{math} b et b \begin{math}\leq\end{math} a $\Rightarrow$ a = b} 
              \newline
              \Large{\sl O3 - $\forall a,b et c \in \mathbb{R}$, a $\leq$ b et b$\leq$ c , alors a $\leq$c}
              \newline
              \Large{\sl O4 - $\forall a et b \in \mathbb{R}$, a $\leq$ b ou b $\leq$ a }
              \section{Operation et ordre}
              \Large{\sl CO1 - $\forall a,b et c  \in \mathbb{R}$, a $\leq$ b $\Rightarrow$ a + c $\leq$ b + c}
              \newline
              \Large{\sl CO2 - $\forall a,b et c  \in \mathbb{R}$, a $\leq$ b et c $\geq$ 0 $\Rightarrow$ a.c $\geq$ a.b}
              \newline
              \Large{\sl Si a et b sont deux nombres reels tels que : a $\leq$ b et a $\neq$ b alors on dira que a < b }
              \section{Autres consequences des proprietes fondamentales}
              \Large{\sl $\forall a,b,c et d \in \mathbb{R}$, a $\leq$ b et c $\leq$ d, $\Rightarrow$ a + c $\leq$ b + d}
              \newline
              \Large{\sl $\forall a et b  \in \mathbb{R}$, $a^2=\geq$  0}
              \newline
              \Large{\sl $\forall a et b  \in \mathbb{R}$, si a$ \geq $ 0 alors $\frac{1}{a}\geq $0, et inversement} 
              \newline
              \Large{\sl $\forall a et b \in \mathbb{R}, et  c \in \mathbb{R+}$,a $\leq$ b $\Leftrightarrow$ a.c $\leq$ b.c}
              \newline
              \Large{\sl$\forall a et b \in \mathbb{R}$, 0 $\leq$ a $\leq$ b alors 0 $\leq \frac{1}{b} \leq \frac{1}{a}$}
              \end{document}
              

              Edit : j'ai vu apres qu'il restait des \begin{math}\end{math}

              Edit2 : Ca marche effectivement mais que en DVI

              et j'ai essayer ton code @yo@n97one mais cela ne me montre qu'une seul page et me marque :

              -
              Edité par FlorianGaudissard 22 septembre 2018 à 15:29:22

              • Partager sur Facebook
              • Partager sur Twitter
                22 septembre 2018 à 23:56:38

                Tu n'as pas tout corrigé.

                $a^2$ + $b^2$= $c^2$ $\Leftrightarrow$ $c^2$ = 2 

                doit s'écrire :

                $a^2 + b^2= c^2 \Leftrightarrow c^2 = 2 $

                À mon avis tu aurais intérêt à faire une pause dans ce projet et suivre un petit tutoriel basique sur LaTeX (pas besoin d'un cours complet), ne serait-ce que pour en comprendre l'esprit.

                D'ailleurs je crois que la façon compliquée dont tu utilises LaTeX suggère que tu n'as pas compris l'esprit : avec LaTeX, on travaille sur le fond, et c'est lui qui s'occupe de la forme. Tu ne dois donc pas utiliser tous ces \Large, \huge, sans parler de ces horribles \newline...

                (Si tu trouves que ça écrit trop petit, il y a une commande à mettre en préambule pour choisir la taille de la police. Au pire tu mets un \ Large au tout début et tu fermes l'accolade tout à la fin, mais ne le fais pas à chaque ligne ! Et pour passer à la ligne, il suffit de sauter une ligne.)

                -
                Edité par robun il y a moins de 5s



                -
                Edité par robun 23 septembre 2018 à 0:02:08

                • Partager sur Facebook
                • Partager sur Twitter

                [Latex} Soucis d'affichage avec Latex

                × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
                × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
                • Editeur
                • Markdown