Graphics, Figures & Tables ⇒ Table with 56 columns
-
- Posts: 97
- Joined: Fri Sep 04, 2009 4:56 pm
Table with 56 columns
I am totally confused how to insert to the below attached table to my latex code.
I am using book class, with LED editor. My text area is 8in x 6in.. I thought of doing it in landscape, but the column width overcomes the size..
I am confused.. Please help me with your suggestions..
Regards,
Muthu
- Attachments
-
- table.pdf
- (35.76 KiB) Downloaded 215 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Table with 56 columns
By now you should be fairly familiar with the setup of a tabular environment. Use the \multicolumn command and the features provided by the multirow package. You can decrease the font size with appropriate switches right before your table. Start with a basic structure on your own. The caption package provides features for continued floats. In case of upcoming problems, feel free to ask further questions.dmuthu_cse wrote:[...] I am confused.. Please help me with your suggestions.. [...]
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 97
- Joined: Fri Sep 04, 2009 4:56 pm
Table with 56 columns
thanks for your reply..
I have tried according to your advice. But,I could not get exactly what I want. The table is lasting over the page, and I couldn't see the remaining content.
however, I can reduce the fontsize, I am not able to reduce the individual column width..
I am therewith attaching the code for a single row.. Please go through and guide me.
Code: Select all
\documentclass[11pt,a4paper]{book}
\usepackage{pdflscape}
\usepackage[ centering,
headheight=14pt,
headsep=10pt,
includehead,
papersize={7in,9.5in},
text={6in,8in},
dvips=false,
pdftex=false,
vtex=false]{geometry}
\usepackage[cam,a4,center,dvips]{crop}
\begin{document}
\begin{landscape}
\begin{table}
\caption{Heloo}
\centering
\tiny
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c||c|c|c|c|c|c|c|} \hline
1.2&42&40&38&36&34&32&30&29&27&25&33&32&30&28&27&25&23&22&21&19&25&23&22&20&19&17&17&16&14&12&17&15&14&13&12&11&10&9&7&6&10&8&7&6&5&4&3&2&1&0\\ \hline
\end{tabular}
\end{table}
\end{landscape}
\end{document}
With regards,
Muthu
- Attachments
-
- table.pdf
- (31.27 KiB) Downloaded 205 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Table with 56 columns
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 97
- Joined: Fri Sep 04, 2009 4:56 pm
Re: Table with 56 columns
Thank you very much... Successfully, I've got the idea from your previous reply.
I am working on it.. I will get to you back, if I held up with some other thing.
Regards,
Muthu
-
- Posts: 97
- Joined: Fri Sep 04, 2009 4:56 pm
Re: Table with 56 columns
Can you please suggest me if, how can I change the font of a particular table alone in my chapter.
Thanks in advance..
Regards,
Muthu
Re: Table with 56 columns
can you please specify which attribute(s) of the font should be changed (size, family, shape,...)?
-
- Posts: 97
- Joined: Fri Sep 04, 2009 4:56 pm
Table with 56 columns
i need to change both the family and size..
and i would like to introduce \arraystretch command for that particular table.
Next.. can i specify, the column width for specific column and make alignments like (left, right, center} in it. I've just tried the below code, to do insist specific width, but i cannot align the columns.. It is automatically justified as i have given p{width}.. let me know the other options...
Code: Select all
begin{center}
\small
\begin{longtable}{|p{2.0in}@{}|p{0.6in}@{}|p{0.8in}@{}|p{0.6in}@{}|p{0.8in}@{}|}
\caption{Different types of MCB distribution boards}\\
\hline \textbf{Type description}& \textbf{No. of phases} & \textbf{Protection class} & \textbf{Number of ways} & \textbf{No of MCB modules} \\ \hline
Regards,
Muthu
Table with 56 columns
to change the font size, you could use one of the standard switches: \tiny, \scriptsize, \footnotesize, \small, \large, \Large, \LARGE, \huge or \Huge. Another option could be to use the \fontsize command (in this case you might need to load some other package, as fix-cm).
To change the font family, you could use the \fontfamily command. The psnfss2e document (that should be in your system somewhere in a directory of the form doc/latex/) can be used to learn some of the standard font families available in every standard LaTeX installation.
Take a look at the following example (I enclosed the relevant commands using braces to keep the changes local):
Code: Select all
\documentclass{article}
\usepackage{lipsum}% just to generate some text automatically
\begin{document}
\lipsum[1]
\noindent\begin{table}[!ht]
\centering
{\fontfamily{ptm}\fontsize{5}{9}\selectfont
\begin{tabular}{p{.4\linewidth}p{.4\linewidth}}
\lipsum[1] & \lipsum[1]
\end{tabular}}
\caption{a test table}
\label{tab:test}
\end{table}
\lipsum[1]
\end{document}
-
- Posts: 97
- Joined: Fri Sep 04, 2009 4:56 pm
Table with 56 columns
Thank you very much...
It helped me a lot.. I am happy about the result now..
can i specify, the column width for specific column and make alignments like (left, right, center} in it. I've just tried the below code, to do insist specific width, but i cannot align the columns.. It is automatically justified as i have given p{width}.. let me know the other options...
Code: Select all
begin{center}
\small
\begin{longtable}{|p{2.0in}@{}|p{0.6in}@{}|p{0.8in}@{}|p{0.6in}@{}|p{0.8in}@{}|}
\caption{Different types of MCB distribution boards}\\
\hline \textbf{Type description}& \textbf{No. of phases} & \textbf{Protection class} & \textbf{Number of ways} & \textbf{No of MCB modules} \\ \hline
Regards,
Muthu