Aligner les flèches

Barjovrille
Modifié (October 2022) dans LaTeX
Bonjour, je ne suis pas très fort en latex est ce que vous connaissez une bonne façon pour aligner mes deux flèches ?
$F=\left(\begin{array}{ll} L^p([0,T])^n~~ \longrightarrow ~~\mathbb{R} \\ f \longrightarrow \int_{0}^{T}C(t).f(t)dt \end{array} \right)$
Voici mon code 
F=\left(
    \begin{array}{ll}
        
            L^p([0,T])^n~~ \longrightarrow ~~\mathbb{R}\\
            f \longrightarrow \int_{0}^{T}C(t).f(t)dt
        
    \end{array}
    \right)
J'essaye d'utiliser l'environnement align mais ça me génère plein d'erreur.

Réponses

  • Calli
    Modifié (October 2022)
    Bonjour,
    F=\left(
        \begin{array}{rcl} 
                L^p([0,T])^n& \longrightarrow & \mathbb{R}\\
                f & \longmapsto& \int_{0}^{T}C(t).f(t)dt
        \end{array}
        \right)
    $F=\left(\begin{array}{rcl}     L^p([0,T])^n& \longrightarrow & \mathbb{R}\\   f & \longmapsto& \int_{0}^{T}C(t).f(t)dt \end{array} \right)$
  • AD
    AD
    Modifié (October 2022)
    Ou bien en cours de texte $\begin{array}[t]{cccl} f:&A&\to&B\\& x&\mapsto &f(x)\end{array}$
    $\begin{array}[t]{cccl} f: & A & \to & B \\ & x & \mapsto & f(x)\end{array}$
    
    Le [t] après {array} veut dire top pour le cadrage de l'array sur la ligne. En mettant [b] (bottom) ou [c] (center) on cadre en conséquence l'array par rapport à la ligne.
    Par exemple avec [b] $\begin{array}[b]{cccl} f:&A&\to&B\\& x&\mapsto& f(x)\end{array}$ et avec [c] $\begin{array}[c]{cccl} f:&A&\to&B\\& x&\mapsto &f(x)\end{array}$.
    Alain
  • GaBuZoMeu
    Modifié (October 2022)
    À l'économie :
    $$F=\left(   \begin{aligned} L^p([0,T])^n& \longrightarrow\mathbb{R}\\ f &\longmapsto \int_{0}^{T}C(t)\cdot f(t)\,dt    \end{aligned}  \right)$$

    (clic droit : show math as TeX commands)
  • dp
    dp
    Modifié (October 2022)
    \setupmathematics[symbolset=blackboard-to-bold,
                      differentiald=upright]
    
    \definemathmatrix[mapmatrix][left={\left(},
                                 right={\right)},
                                 align={1:right,2:middle,3:left}]
    
    \starttext
      \startformula
        F=
        \startmapmatrix
          \NC \mathrm{L}^p([0,T])^n \NC \longrightarrow \NC \reals                          \NR
          \NC                     f \NC   \longmapsto   \NC \int_{0}^{T}C(t)\cdot f(t)\dd t \NR
        \stopmapmatrix
      \stopformula
    \stoptext
    
Connectez-vous ou Inscrivez-vous pour répondre.