I want to make a longtable. I make it online at here http://ift.tt/KXoRkH This is mycode
\documentclass[12pt,a4paper]{article}
\usepackage{fourier}
\usepackage[utf8]{vietnam}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{multirow}
\begin{document}
\begin{table}[h]
\begin{tabular}{|c|l|c|}
\hline
\multicolumn{1}{|l|}{\textit{\textbf{Câu}}} & \textit{\textbf{Đáp án}} & \multicolumn{1}{l|}{\textit{\textbf{Điểm}}} \\ \hline
\textbf{\begin{tabular}[c]{@{}c@{}}1\\ (2 điểm)\end{tabular}} & \multicolumn{2}{l|}{\textbf{a) 1 điểm}} \\ \hline
\multicolumn{1}{|l|}{\multirow{5}{*}{\textbf{}}} & Bảng biến thiên & 0.5 \\ \cline{2-3}
\multicolumn{1}{|l|}{} & Đồ thị & 0.5 \\ \cline{2-3}
\multicolumn{1}{|l|}{} & \multicolumn{2}{l|}{\textbf{b) 1 điểm}} \\ \cline{2-3}
\multicolumn{1}{|l|}{} & Đưa phương trình hoành độ giao điểm về dạng & 0.5 \\ \cline{2-3}
\multicolumn{1}{|l|}{} & Tìm đúng giá trị của $m$ & 0.5 \\ \hline
\multirow{7}{*}{\textbf{\begin{tabular}[c]{@{}c@{}}2\\ (3.5 điểm)\end{tabular}}} & \multicolumn{2}{l|}{\textbf{a) 1 điểm}} \\ \cline{2-3}
& Điều kiện phương trình có nghĩa & 0.25 \\ \cline{2-3}
& Đưa phương trình về dạng
$x^2 + mx + 3=0$ & 0.5 \\ \cline{2-3}
& \multicolumn{2}{l|}{\textbf{b) 1 điểm}} \\ \cline{2-3}
& Điều kiện phương trình có nghĩa & 0.25 \\ \cline{2-3}
& Bình phương hai vế phương trình ta được & 0.5 \\ \cline{2-3}
& Dẫn tới hai nghiệm của phương trình là & 0.5 \\ \hline
\end{tabular}
\end{table}
\end{document}
This is only a table. Now I want to change it into a longtable. How can I do it. Another quetion, I can not use mathmode in table. For example, in the above code, if I change $x^2 + mx + 2 = 0$ into [x^2 + mx + 2 = 0], I can not compile.
Aucun commentaire:
Enregistrer un commentaire