TARDÍGRADOS

Ciencia en español -ʟᴀ ʀᴀᴢóɴ ᴇsᴛá ᴀʜí ғᴜᴇʀᴀ-

Posts Tagged ‘tables’

Cómo hacer tablas en latex para wordpress

Posted by Albert Zotkin on December 2, 2012

El mejor módo de hacer tablas de datos en latex para páginas en wordpress es usar la cláusula:
\begin{tabular}{[options]} ... \end{tabular}

Ejemplo: Tabla multicolumna (posee fila de título, y 4 columnas de anchos 2.5cm, 2cm, 4.7cm y 4.5cm respectivamente.

Hace algún tiempo, después de estudiar las unidades naturales de Planck, tuve la impresión de que el puzzle no estaba completo, faltaban algunas piezas. Muchas de las magnitudes de Planck parecen ser cotas mínimas, por ejenplo, la longitud de Planck, otras en cambio parecen ser cotas máximas, por ejemplo, la energía de Planck. Teniendo en cuenta eso, elaboré la siguiente tabla, donde completo definiciones de algunas cotas máximas y mínimas naturales de nuestro universo observable.

\normalsize \begin{tabular}{ || p{2.5cm} | p{2cm} | p{4.7cm} | p{4.5cm} || } \hline \multicolumn{4}{|c|}{\textbf{COTAS NATURALES del UNIVERSO OBSERVABLE}} \\ \hline \textbf{Magnitud} & \textbf{Dimensi\'on} & \textbf{L\'imite inferior} & \textbf{L\'imite superior} \\ \hline  velocidad & LT\begin{math}^{-1}\end{math} & \textit{velocidad-punto-cero}: \newline \begin{math} v_0 =\sqrt[3]{\hbar G /R_h^2} \end{math} & \textit{(velocidad-de-la-luz)}: \newline \begin{math} c =\sqrt[3]{\hbar G /l_p^2} \end{math} \newline \textit{en-unidades-de-}\begin{math}v_0\end{math} : \newline \begin{math} c =\sqrt[3]{N^2} \end{math} \\ \hline  longitud & L & \textit{longitud-de-Planck}: \newline \begin{math} l_p =\sqrt{\hbar G /c^3} \end{math} & \textit{radio-de-Hubble}: \newline \begin{math} R_h =\sqrt{\hbar G /v_0^3} \end{math} \newline \textit{en-unidades-de-}\begin{math}l_p\end{math} : \newline \begin{math} R_h =N \end{math} \\ \hline  tiempo & T & \textit{tiempo-de-Planck}:\newline \begin{math} t_p =\sqrt{\hbar G /c^5} \end{math} & \textit{tiempo-de-Cassini}: \newline \begin{math} t_c=H_0^{-1}=\sqrt{\hbar G /v_0^5} \end{math} \newline \textit{en-unidades-de-}\begin{math}t_p\end{math} : \newline \begin{math}t_c =\sqrt[3]{N^5} \end{math} \\ \hline  aceleraci\'on & LT\begin{math}^{-2}\end{math} & \textit{aceleracion-punto-cero}: \newline \begin{math} a_0=c^2/R_h \end{math} & \textit{aceleracion-de-Cassini}: \newline \begin{math} A_c=c^2/l_p \end{math} \newline \textit{en-unidades-de-}\begin{math}a_0\end{math} : \newline \begin{math} A_c=N \end{math} \\ \hline  masa & M & \textit{masa-punto-cero}: \newline \begin{math} m_0=\sqrt{\hbar v_0 /G} \end{math} & \textit{masa-de-Planck}: \newline \begin{math} m_p=\sqrt{\hbar c /G} \end{math} \newline \textit{en-unidades-de-}\begin{math}m_0\end{math} : \newline \begin{math} m_p =\sqrt[3]{N} \end{math} \\ \hline  densidad& ML\begin{math}^{-3}\end{math} & \textit{densidad-punto-cero}: \newline \begin{math} \rho_0=v_0^5/(\hbar G^2) \end{math} & \textit{densidad-de-Planck}: \newline \begin{math} \rho_p=c^5/(\hbar G^2) \end{math} \newline \textit{en-unidades-de-}\begin{math}\rho_0\end{math} : \newline \begin{math} \rho_p =\sqrt[3]{N^{10}} \end{math} \\ \hline  energ\'ia & ML\begin{math}^{2}\end{math}T\begin{math}^{2}\end{math} & \textit{energia-punto-cero}:\newline \begin{math} E_0=\sqrt{\hbar v_0^5 /G} \end{math} & \textit{energia-de-Planck}: \newline \begin{math} E_p=\sqrt{\hbar c^5 /G} \end{math} \newline \textit{en-unidades-de-}\begin{math}E_0\end{math} : \newline \begin{math} E_p =\sqrt[3]{N^5} \end{math} \\ \hline  temperatura & (T) & \textit{temperatura-punto-cero}: \newline \begin{math} T_0=\sqrt{\hbar v_0^5 /Gk^2} \end{math} & \textit{temperatura-de-Planck}: \newline\begin{math} T_p=\sqrt{\hbar c^5 /Gk^2} \end{math} \newline \textit{en-unidades-de-}\begin{math}T_0\end{math} : \newline \begin{math} T_p =\sqrt[3]{N^5} \end{math} \\ \hline  acci\'on & ML\begin{math}^{2}\end{math}T\begin{math}^{-1}\end{math} & \textit{constante-de-Planck-reducida}: \begin{math} \hbar \end{math} & \textit{constante-de-Cassini}: \newline \begin{math} H_c=\hbar \sqrt{c^5 /v_0^5} \end{math} \newline \textit{en-unidades-de-}\begin{math}\hbar\end{math} : \newline \begin{math} H_c =\sqrt[3]{N^5} \end{math}\\ \hline  gravedad & M\begin{math}^{-1}\end{math}L\begin{math}^{3}\end{math}T\begin{math}^{-2}\end{math} & \textit{gravedad-punto-cero}: \newline \begin{math} G_0=l_p^2v_0^3/\hbar \end{math} & \textit{constante-gravitacional}: \newline \begin{math} G=l_p^2c^3/\hbar \end{math} \newline \textit{en-unidades-de-}\begin{math}G_0\end{math} : \newline \begin{math} G =N^2 \end{math} \\ \hline  carga & Q & \textit{carga-de-electron}: \newline \begin{math} e_0=\sqrt{4\pi \epsilon_0 \hbar c/\ln{N}} \end{math} & \textit{carga-de-Planck}: \newline \begin{math} q_p=\sqrt{4\pi \epsilon_0 \hbar c} \end{math} \newline \textit{en-unidades-de-}\begin{math}e_0\end{math} : \newline \begin{math} q_p =\sqrt{\ln(N)} \end{math} \\ \hline  estructura\newline computacional & sin dimension & \textit{constante-estructura-fina}: \newline \begin{math} \alpha= e_0^2 / (\hbar c 4\pi \epsilon_0) \newline \alpha= 1/\ln(N) \end{math} & \textit{capacidad-computacional-universal}: \newline \begin{math} N =\exp(1/\alpha) \end{math} \\ \hline  \end{tabular}

Este es el código latex del ejemplo anterior

$latex \begin{tabular}{ || p{2.5cm} | p{2cm} | p{4.7cm} | p{4.5cm} || } \hline \multicolumn{4}{|c|}{\textbf{COTAS NATURALES del UNIVERSO OBSERVABLE}} \\ \hline \textbf{Magnitud} & \textbf{Dimensi\'on} & \textbf{L\'imite inferior} & \textbf{L\'imite superior} \\ \hline velocidad & LT\begin{math}^{-1}\end{math} & \textit{velocidad-punto-cero}: \newline \begin{math} v_0 =\sqrt[3]{\hbar G /R_h^2} \end{math} & \textit{(velocidad-de-la-luz)}: \newline \begin{math} c =\sqrt[3]{\hbar G /l_p^2} \end{math} \newline \textit{en-unidades-de-}\begin{math}v_0\end{math} : \newline \begin{math} c =\sqrt[3]{N^2} \end{math} \\ \hline longitud & L & \textit{longitud-de-Planck}: \newline \begin{math} l_p =\sqrt{\hbar G /c^3} \end{math} & \textit{radio-de-Hubble}: \newline \begin{math} R_h =\sqrt{\hbar G /v_0^3} \end{math} \newline \textit{en-unidades-de-}\begin{math}l_p\end{math} : \newline \begin{math} R_h =N \end{math} \\ \hline tiempo & T & \textit{tiempo-de-Planck}:\newline \begin{math} t_p =\sqrt{\hbar G /c^5} \end{math} & \textit{tiempo-de-Cassini}: \newline \begin{math} t_c=H_0^{-1}=\sqrt{\hbar G /v_0^5} \end{math} \newline \textit{en-unidades-de-}\begin{math}t_p\end{math} : \newline \begin{math}t_c =\sqrt[3]{N^5} \end{math} \\ \hline aceleraci\'on & LT\begin{math}^{-2}\end{math} & \textit{aceleracion-punto-cero}: \newline \begin{math} a_0=c^2/R_h \end{math} & \textit{aceleracion-de-Cassini}: \newline \begin{math} A_c=c^2/l_p \end{math} \newline \textit{en-unidades-de-}\begin{math}a_0\end{math} : \newline \begin{math} A_c=N \end{math} \\ \hline masa & M & \textit{masa-punto-cero}: \newline \begin{math} m_0=\sqrt{\hbar v_0 /G} \end{math} & \textit{masa-de-Planck}: \newline \begin{math} m_p=\sqrt{\hbar c /G} \end{math} \newline \textit{en-unidades-de-}\begin{math}m_0\end{math} : \newline \begin{math} m_p =\sqrt[3]{N} \end{math} \\ \hline densidad& ML\begin{math}^{-3}\end{math} & \textit{densidad-punto-cero}: \newline \begin{math} \rho_0=v_0^5/(\hbar G^2) \end{math} & \textit{densidad-de-Planck}: \newline \begin{math} \rho_p=c^5/(\hbar G^2) \end{math} \newline \textit{en-unidades-de-}\begin{math}\rho_0\end{math} : \newline \begin{math} \rho_p =\sqrt[3]{N^{10}} \end{math} \\ \hline energ\'ia & ML\begin{math}^{2}\end{math}T\begin{math}^{2}\end{math} & \textit{energia-punto-cero}:\newline \begin{math} E_0=\sqrt{\hbar v_0^5 /G} \end{math} & \textit{energia-de-Planck}: \newline \begin{math} E_p=\sqrt{\hbar c^5 /G} \end{math} \newline \textit{en-unidades-de-}\begin{math}E_0\end{math} : \newline \begin{math} E_p =\sqrt[3]{N^5} \end{math} \\ \hline temperatura & (T) & \textit{temperatura-punto-cero}: \newline \begin{math} T_0=\sqrt{\hbar v_0^5 /Gk^2} \end{math} & \textit{temperatura-de-Planck}: \newline\begin{math} T_p=\sqrt{\hbar c^5 /Gk^2} \end{math} \newline \textit{en-unidades-de-}\begin{math}T_0\end{math} : \newline \begin{math} T_p =\sqrt[3]{N^5} \end{math} \\ \hline acci\'on & ML\begin{math}^{2}\end{math}T\begin{math}^{-1}\end{math} & \textit{constante-de-Planck-reducida}: \begin{math} \hbar \end{math} & \textit{constante-de-Cassini}: \newline \begin{math} H_c=\hbar \sqrt{c^5 /v_0^5} \end{math} \newline \textit{en-unidades-de-}\begin{math}\hbar\end{math} : \newline \begin{math} H_c =\sqrt[3]{N^5} \end{math}\\ \hline gravedad & M\begin{math}^{-1}\end{math}L\begin{math}^{3}\end{math}T\begin{math}^{-2}\end{math} & \textit{gravedad-punto-cero}: \newline \begin{math} G_0=l_p^2v_0^3/\hbar \end{math} & \textit{constante-gravitacional}: \newline \begin{math} G=l_p^2c^3/\hbar \end{math} \newline \textit{en-unidades-de-}\begin{math}G_0\end{math} : \newline \begin{math} G =N^2 \end{math} \\ \hline carga & Q & \textit{carga-de-electron}: \newline \begin{math} e_0=\sqrt{4\pi \epsilon_0 \hbar c/\ln{N}} \end{math} & \textit{carga-de-Planck}: \newline \begin{math} q_p=\sqrt{4\pi \epsilon_0 \hbar c} \end{math} \newline \textit{en-unidades-de-}\begin{math}e_0\end{math} : \newline \begin{math} q_p =\sqrt{\ln(N)} \end{math} \\ \hline estructura\newline computacional & sin dimension & \textit{constante-estructura-fina}: \newline \begin{math} \alpha= e_0^2 / (\hbar c 4\pi \epsilon_0) \newline \alpha= 1/\ln(N) \end{math} & \textit{capacidad-computacional-universal}: \newline \begin{math} N =\exp(1/\alpha) \end{math} \\ \hline \end{tabular} $
Sin embargo, la mejor forma de presentar tablas de datos en wordpress es mediante código HTML, y así te evitas el engorro, aunque en cada celda de la tabla en HTML puedes seguir usando latex de la forma habitual. El ejemplo anterior escrito en latex, puede traducirse a lenguaje HTML de la siguiente forma:

COTAS NATURALES del UNIVERSO OBSERVABLE
Magnitud Dimensión Límite inferior Límite superior
Velocidad LT -1 \textit{velocidad-punto-cero}: \\  v_0 =\sqrt[3]{\hbar G /R_h^2} \textit{(velocidad-de-la-luz)}: \\ c =\sqrt[3]{\hbar G /l_p^2}  \\  \\   \textit{en-unidades-de-}v_0 : \\ c =\sqrt[3]{N^2}
Longitud L \textit{longitud-de-Planck}:  \\ l_p =\sqrt{\hbar G /c^3}  \textit{radio-de-Hubble}:  \\  R_h =\sqrt{\hbar G /v_0^3}  \\ \\ \textit{en-unidades-de-} l_p  : \\     R_h =N
Tiempo T \textit{tiempo-de-Planck}:  \\ t_p =\sqrt{\hbar G /c^5}  \textit{tiempo-de-Cassini}:  \\  t_c= H_0^{-1} =\sqrt{\hbar G /v_0^5}  \\ \\ \textit{en-unidades-de-} t_p  : \\    t_c = \sqrt[3]{N^5}
Aceleración LT -2 \textit{aceleraci\'on-punto-cero}:  \\ a_0 = \cfrac{c^2}{R_h} \textit{aceleraci\'on-de-Cassini}:  \\  A_c = \cfrac{c^2}{l_p} \\ \\ \textit{en-unidades-de-} a_0  : \\    A_c = N
Masa M \textit{masa-punto-cero}:  \\ m_0 =\sqrt{\hbar v_0 /G}  \textit{masa-de-Planck}:  \\  m_p =\sqrt{\hbar c /G}  \\ \\ \textit{en-unidades-de-} m_0  : \\    m_p=\sqrt[3]{N}
Densidad ML -3 \textit{densidad-punto-cero}:  \\ \rho_0=v_0^5/(\hbar G^2)  \textit{densidad-de-Planck}:  \\  \rho_p=c^5/(\hbar G^2)   \\ \\ \textit{en-unidades-de-} \rho_0  : \\   \rho_p=\sqrt[3]{N^{10}}
Energ\´ia ML2T -2 \textit{energ\'ia-punto-cero}:  \\ E_0=\sqrt{\hbar v_0^5 /G}  \textit{energ\'ia-de-Planck}:  \\  E_p=\sqrt{\hbar c^5 /G}  \\ \\ \textit{en-unidades-de-} E_0  : \\  E_p=\sqrt[3]{N^5}
Temperatura (T) \textit{temperatura-punto-cero}: \\   T_0=\sqrt{\hbar v_0^5 /Gk^2}   \textit{temperatura-de-Planck}:  \\  T_p=\sqrt{\hbar c^5 /Gk^2}  \\ \\ \textit{en-unidades-de-} T_0  : \\  E_p=\sqrt[3]{N^5}
Acción ML 2T -1 \textit{constante-de-Planck-reducida}: \\   \hbar   \textit{constante-de-Cassini}:  \\   H_c=\hbar \sqrt{c^5 /v_0^5}  \\ \\ \textit{en-unidades-de-} \hbar  : \\ H_c =\sqrt[3]{N^5}
Gravedad ML 3T -2 \textit{gravedad-punto-cero}: \\   G_0=\cfrac{l_p^2v_0^3}{\hbar}  \textit{constante-gravitacional}: \\   G=\cfrac{l_p^2c^3}{\hbar} \\ \\ \textit{en-unidades-de-} G_0  : \\  G =N^2
Carga Q \textit{carga-de-electron}: \\  e_0=\sqrt{\cfrac{4\pi \epsilon_0 \hbar c}{\ln{N}}}  \textit{carga-de-Planck}: \\   q_p=\sqrt{4\pi \epsilon_0 \hbar c}  \\ \\ \textit{en-unidades-de-} e_0  : \\   q_p =\sqrt{\ln(N)}
Estructura computacional sin dimensión \textit{constante-de-estructura-fina}: \\   \alpha= e_0^2 / (\hbar c 4\pi \epsilon_0) \\\alpha= 1/\ln(N)  \textit{capacidad-computacional-universal}: \\   N =\exp(1/\alpha)
Este es el código html del ejemplo

<table cellpadding="10" cellspacing="2" border="1" width="600" style="background-color:#ffffff;text-align:left;color:#000000;font-size:11pt;font-family:times new roman;" > <tr > <td align=center colspan=4 > <strong >COTAS NATURALES del UNIVERSO OBSERVABLE </strong > </td > </tr > <tr > <td align=center > <strong >Magnitud </strong > </td > <td align=center > <strong >Dimensión </strong > </td > <td align=center > <strong >Límite inferior </strong > </td > <td align=center > <strong >Límite superior </strong > </td > </tr ><tr > <td align=center >Velocidad </td > <td align=center > <strong >LT <sup > -1 </sup > </strong > </td > <td align=center valign=top > $latex \textit{velocidad-punto-cero}: \\ v_0 =\sqrt[3]{\hbar G /R_h^2} $ </td > <td align=center valign=top >$latex \textit{(velocidad-de-la-luz)}: \\ c =\sqrt[3]{\hbar G /l_p^2} \\ \\ \textit{en-unidades-de-}v_0 : \\ c =\sqrt[3]{N^2} $ </td > </tr > <tr > <td align=center >Longitud </td > <td align=center > <strong >L </strong > </td > <td align=center valign=top > $latex \textit{longitud-de-Planck}: \\ l_p =\sqrt{\hbar G /c^3} $ </td > <td align=center valign=top >$latex \textit{radio-de-Hubble}: \\ R_h =\sqrt{\hbar G /v_0^3} \\ \\ \textit{en-unidades-de-} l_p : \\ R_h =N $ </td > </tr > <tr > <td align=center >Tiempo </td > <td align=center > <strong >T </strong > </td > <td align=center valign=top > $latex \textit{tiempo-de-Planck}: \\ t_p =\sqrt{\hbar G /c^5} $ </td > <td align=center valign=top >$latex \textit{tiempo-de-Cassini}: \\ t_c= H_0^{-1} =\sqrt{\hbar G /v_0^5} \\ \\ \textit{en-unidades-de-} t_p : \\ t_c = \sqrt[3]{N^5} $ </td > </tr > <tr > <td align=center >Aceleración </td > <td align=center > <strong >LT <sup >-2 </sup > </strong > </td > <td align=center valign=top > $latex \textit{aceleraci\'on-punto-cero}: \\ a_0 = \cfrac{c^2}{R_h} $ </td > <td align=center valign=top >$latex \textit{aceleraci\'on-de-Cassini}: \\ A_c = \cfrac{c^2}{l_p} \\ \\ \textit{en-unidades-de-} a_0 : \\ A_c = N $ </td > </tr > <tr > <td align=center >Masa </td > <td align=center > <strong >M </strong > </td > <td align=center valign=top > $latex \textit{masa-punto-cero}: \\ m_0 =\sqrt{\hbar v_0 /G} $ </td > <td align=center valign=top >$latex \textit{masa-de-Planck}: \\ m_p =\sqrt{\hbar c /G} \\ \\ \textit{en-unidades-de-} m_0 : \\ m_p=\sqrt[3]{N} $ </td > </tr > <tr > <td align=center >Densidad </td > <td align=center > <strong >ML <sup >-3 </sup > </strong > </td > <td align=center valign=top > $latex \textit{densidad-punto-cero}: \\ \rho_0=v_0^5/(\hbar G^2) $ </td > <td align=center valign=top >$latex \textit{densidad-de-Planck}: \\ \rho_p=c^5/(\hbar G^2) \\ \\ \textit{en-unidades-de-} \rho_0 : \\ \rho_p=\sqrt[3]{N^{10}} $ </td > </tr > <tr > <td align=center >Energ\´ia </td > <td align=center > <strong >ML <sup >2 </sup >T <sup >-2 </sup > </strong > </td > <td align=center valign=top > $latex \textit{energ\'ia-punto-cero}: \\ E_0=\sqrt{\hbar v_0^5 /G} $ </td > <td align=center valign=top >$latex \textit{energ\'ia-de-Planck}: \\ E_p=\sqrt{\hbar c^5 /G} \\ \\ \textit{en-unidades-de-} E_0 : \\ E_p=\sqrt[3]{N^5} $ </td > </tr > <tr > <td align=center >Temperatura </td > <td align=center > <strong >(T) </strong > </td > <td align=center valign=top > $latex \textit{temperatura-punto-cero}: \\ T_0=\sqrt{\hbar v_0^5 /Gk^2} $ </td > <td align=center valign=top >$latex \textit{temperatura-de-Planck}: \\ T_p=\sqrt{\hbar c^5 /Gk^2} \\ \\ \textit{en-unidades-de-} T_0 : \\ E_p=\sqrt[3]{N^5} $ </td > </tr > <tr > <td align=center >Acción </td > <td align=center > <strong >ML <sup > 2 </sup >T <sup > -1 </sup > </strong > </td > <td align=center valign=top > $latex \textit{constante-de-Planck-reducida}: \\ \hbar $ </td > <td align=center valign=top >$latex \textit{constante-de-Cassini}: \\ H_c=\hbar \sqrt{c^5 /v_0^5} \\ \\ \textit{en-unidades-de-} \hbar : \\ H_c =\sqrt[3]{N^5} $ </td > </tr > <tr > <td align=center >Gravedad </td > <td align=center > <strong >ML <sup > 3 </sup >T <sup > -2 </sup > </strong > </td > <td align=center valign=top > $latex \textit{gravedad-punto-cero}: \\ G_0=\cfrac{l_p^2v_0^3}{\hbar} $ </td > <td align=center valign=top >$latex \textit{constante-gravitacional}: \\ G=\cfrac{l_p^2c^3}{\hbar} \\ \\ \textit{en-unidades-de-} G_0 : \\ G =N^2 $ </td > </tr > <tr > <td align=center >Carga </td > <td align=center > <strong >Q </strong > </td > <td align=center valign=top > $latex \textit{carga-de-electron}: \\ e_0=\sqrt{\cfrac{4\pi \epsilon_0 \hbar c}{\ln{N}}} $ </td > <td align=center valign=top >$latex \textit{carga-de-Planck}: \\ q_p=\sqrt{4\pi \epsilon_0 \hbar c} \\ \\ \textit{en-unidades-de-} e_0 : \\ q_p =\sqrt{\ln(N)} $ </td > </tr > <tr > <td align=center >Estructura computacional </td > <td align=center > <strong >sin dimensión</strong > </td > <td align=center valign=top > $latex \textit{constante-de-estructura-fina}: \\ \alpha= e_0^2 / (\hbar c 4\pi \epsilon_0) \\\alpha= 1/\ln(N) $ </td > <td align=center valign=top >$latex \textit{capacidad-computacional-universal}: \\ N =\exp(1/\alpha) $ </td > </tr > </table >
Si tu problema es que no posees un editor de HTML adecuado, te puedo recomendar el mejor editor gratuito WYSIWYG de páginas web, según mi parecer: Es el Amaya versión 11 o superior.

Actualización: Este post ha quedado obsoleto, debido a que el latex de WordPress no admite ya expresiones largas.

Saludos

Posted in informática | Tagged: , , , , | 9 Comments »