所以我有一个有很多列的表格。因此,表格左侧有很多空间(即\parindent
),而右侧的空间却很少:
相关代码如下:
{\scriptsize\begin{tabular}{ | l | l | l | c | c | c | c | c | c | }
\hline
\textbf{Term} & \textbf{Subject} & \textbf{Subject Name} & \textbf{Max} & \textbf{Min} & \textbf{Marks} & \textbf{Credits} & \textbf{Passed in} & \textbf{Remark} \\
~ & \textbf{Code} & ~ & \textbf{Marks} & \textbf{Marks} & \textbf{Obtained} & ~ & \textbf{Exam} & ~ \\ \hline
I. & IT-41 & Mathematics-I & 100 & 40 & 69 & 4 & Dec, 2009 & ~ \\ \hline
I. & IT-2 & Communication Skill & 100 & 40 & 62 & 3 & Dec, 2009 & ~ \\ \hline
\multirow{2}{*}{I.} & \multirow{2}{*}{IT-4} & Electronic Devices and & \multirow{2}{*}{200} & \multirow{2}{*}{80} & \multirow{2}{*}{136} & \multirow{2}{*}{6} & \multirow{2}{*}{Dec, 2009} & ~ \\
~ & ~ & Circuit-I & ~ & ~ & ~ & ~ & ~ & ~ \\ \hline
\multirow{2}{*}{I.} & \multirow{2}{*}{IT-35} & Fundamentals of Computer & \multirow{2}{*}{120} & \multirow{2}{*}{48} & \multirow{2}{*}{105} & \multirow{2}{*}{6} & \multirow{2}{*}{Dec, 2009} & ~ \\
~ & ~ & \& Networking System & ~ & ~ & ~ & ~ & ~ & ~ \\ \hline
I. & IT-37 & Engineering Graphics & 150 & 60 & 121 & 6 & Dec, 2009 & ~ \\ \hline
II. & IT-42 & Mathematics-II & 100 & 40 & 73 & 4 & May, 2010 & ~ \\ \hline
\multirow{2}{*}{II.} & \multirow{2}{*}{IT-7} & Electronic Devices and & \multirow{2}{*}{200} & \multirow{2}{*}{80} & \multirow{2}{*}{148} & \multirow{2}{*}{6} & \multirow{2}{*}{May, 2010} & ~ \\
~ & ~ & Circuit-II & ~ & ~ & ~ & ~ & ~ & ~ \\ \hline
II. & IT-8 & Programming in C++ & 200 & 80 & 178 & 6 & May, 2010 & ~ \\ \hline
II. & IT-9 & Physics & 200 & 80 & 149 & 8 & May, 2010 & ~ \\ \hline
\multirow{2}{*}{II.} & \multirow{2}{*}{IT-10} & Development of Generic & \multirow{2}{*}{100} & \multirow{2}{*}{40} & \multirow{2}{*}{59} & \multirow{2}{*}{3} & \multirow{2}{*}{May, 2010} & ~ \\
~ & ~ & Skill & ~ & ~ & ~ & ~ & ~ & ~ \\ \hline
III. & IT-11 & Digital Electronics & 200 & 80 & 165 & 6 & Dec, 2010 & ~ \\ \hline
III. & IT-12 & System Programming & 175 & 70 & 138 & 6 & Dec, 2010 & ~ \\ \hline
\multirow{2}{*}{III.} & \multirow{2}{*}{IT-13} & Database Management & \multirow{2}{*}{200} & \multirow{2}{*}{80} & \multirow{2}{*}{124} & \multirow{2}{*}{6} & \multirow{2}{*}{Dec, 2010} & ~ \\
~ & ~ & System (DBMS) & ~ & ~ & ~ & ~ & ~ & ~ \\ \hline
\multirow{2}{*}{III.} & \multirow{2}{*}{IT-15} & Elements of Computer & \multirow{2}{*}{175} & \multirow{2}{*}{70} & \multirow{2}{*}{123} & \multirow{2}{*}{6} & \multirow{2}{*}{Dec, 2010} & ~ \\
~ & ~ & Engineering & ~ & ~ & ~ & ~ & ~ & ~ \\ \hline
III. & IT-16 & Software Engineering & 175 & 70 & 132 & 6 & Dec, 2010 & ~ \\ \hline
IV. & IT-17 & Data Structure & 200 & 80 & 168 & 6 & May, 2011 & ~ \\ \hline
\multirow{2}{*}{IV.} & \multirow{2}{*}{IT-18} & Computer Peripheral \& & \multirow{2}{*}{175} & \multirow{2}{*}{70} & \multirow{2}{*}{121} & \multirow{2}{*}{6} & \multirow{2}{*}{May, 2011} & ~ \\
~ & ~ & Devices & ~ & ~ & ~ & ~ & ~ & ~ \\ \hline
IV. & IT-19 & Communication System & 200 & 80 & 103 & 7 & Dec, 2011 & ~ \\ \hline
\multirow{2}{*}{IV.} & \multirow{2}{*}{IT-36} & Fundamentals of Operating & \multirow{2}{*}{175} & \multirow{2}{*}{70} & \multirow{2}{*}{127} & \multirow{2}{*}{6} & \multirow{2}{*}{May, 2011} & ~ \\
~ & ~ & Systems & ~ & ~ & ~ & ~ & ~ & ~ \\ \hline
IV. & IT-21 & Visual Basic & 175 & 70 & 118 & 6 & May, 2011 & ~ \\ \hline
IV. & IT-43 & Open Source Technology & 95 & 38 & 50 & 4 & May, 2011 & ~ \\ \hline
V. & IT-23 & Fiber Optic Communication & 150 & 60 & 112 & 6 & Dec, 2011 & ~ \\ \hline
V. & IT-24 & Network \& Security & 175 & 70 & 117 & 6 & Dec, 2011 & \# \\ \hline
V. & IT-25 & Computer Graphics & 175 & 70 & 130 & 6 & Dec, 2011 & \# \\ \hline
V. & IT-26 & TCP/IP Internet & 120 & 48 & 99 & 6 & Dec, 2011 & \# \\ \hline
V. & IT-38 & Multimedia \& Animation & 200 & 80 & 154 & 7 & Dec, 2011 & ~ \\ \hline
VI. & IT-30 & Project & 200 & 80 & 151 & 9 & May, 2012 & \# \\ \hline
VI. & IT-31 & Web Technology & 150 & 60 & 126 & 6 & May, 2012 & \# \\ \hline
VI. & IT-32 & E-Commerce & 150 & 60 & 113 & 6 & May, 2012 & \# \\ \hline
VI. & IT-34 & Information Technology & 200 & 80 & 156 & 6 & May, 2012 & \# \\ \hline
\multirow{2}{*}{VI.} & \multirow{2}{*}{IT-39} & Object Oriented Modeling & \multirow{2}{*}{200} & \multirow{2}{*}{80} & \multirow{2}{*}{157} & \multirow{2}{*}{6} & \multirow{2}{*}{May, 2012} & \multirow{2}{*}{\#} \\
~ & ~ & \& Design & ~ & ~ & ~ & ~ & ~ & ~ \\ \hline
\end{tabular}}
如何使表格对齐,使得左侧和右侧有相等的空间?
答案1
我通过使用以下包解决了该\resizebox
问题graphicx
:
\resizebox{\textwidth}{!}{
\begin{tabular}{...}
...
\end{tabular}
}
结果如下:
正是我想要的。