- Questo topic ha 6 risposte, 3 partecipanti ed è stato aggiornato l'ultima volta 16 anni, 4 mesi fa da .
-
Topic
-
Buona sera a tutti!
Vorrei proporvi un problema di fronte al quale sono giunto.
Io so che se voglio affiancare due tabelle, posso utilizzare il codice seguente`\begin {table} [h]
\centering
\subfloat[Prima resistenza]
{
\begin {tabular} {lcr}
\toprule
$A$ & $V$ & $R_1$ \\
\midrule
0.024 & 2.5 & 104.2 \\
0.030 & 3.0 & 100.0 \\
0.037 & 3.9 & 105.4 \\
0.045 & 4.7 & 104.4 \\
0.049 & 5.0 & 102.0 \\
0.055 & 5.7 & 103.6 \\
\bottomrule\end{tabular}
} \qquad \qquad
\subfloat[Seconda resistenza]
{
\begin {tabular} {lcr}
\toprule
$A$ & $V$ & $R_2$ \\
\midrule
0.026 & 1.4 & 53.8 \\
0.035 & 1.8 & 51.4 \\
0.041 & 2.2 & 53.7 \\
0.049 & 2.7 & 55.1 \\
0.064 & 3.4 & 53.1 \\
0.089 & 4.6 & 51.7 \\
\bottomrule\end{tabular}
}
\caption{Risultati delle resistenze singole}
\label {tab:r12}
\end{table}`che genera, per l’appunto, le due tabelle una a fianco all’altra.
Mi sono però chiesto se potessi affiancare tramite \subfloat, anziché degli ambienti di tipo tabular, degli ambienti di tipo eqnarray, e quindi ho provato a scrivere questo codice
`
\begin {table} [h]
\centering
\subfloat[Caso statico]
{
\begin{eqnarray*}
\toprule
&\text{Caso statico}&\\
\midrule
\Phi(\vec{E})_\Omega&=&\frac{1}{\epsilon}\cdot{\sum_{i=1}^n Q_i}\\
\Gamma(\vec{E})&=&0\\
\Phi(\vec{B})_\Omega &=& 0\\
\Gamma(\vec{B})&=& \mu_0\sum_{k=1}^n i_k\\
\bottomrule
\end{eqnarray*} } \qquad \qquad
\subfloat[Caso dinamico]
{
\begin{eqnarray*}
\toprule
&\text{Caso generale}&\\
\midrule
\Phi(\vec{E})_\Omega&=& \frac{1}{\epsilon}\cdot{\sum_{i=1}^n Q_i} \\
\Gamma(\vec{E})&=&-\frac{\Delta\Phi(\vec{B})}{\Delta t}\\
\Phi(\vec{B})_\Omega &=& 0 \\
\Gamma(\vec{B})&=& \mu_0 \left(i+\epsilon_0 \frac {\Delta
\Phi(\vec{E})}{\Delta
t}\right) \\
\bottomrule
\end{eqnarray*} }
\caption{Equazioni di Maxwell}
\label {eq:max}
\end{table}
`Che però mi da una marea di errori.
Mi aiutate a trovare la giusta sintassi per quello che vorrei fare? 🙂
Grazie mille a tutti!
- Devi essere connesso per rispondere a questo topic.