Learning Objectives: Wrap the text in the Latex table column.
1. Type this following latex code in latex editor:
% !TEX TS-program = pdflatex
%% File Name: tableFitPage1.tex
%% File Description:
%% Fit the table to page
%% Wrap the text in the Latex Table Column.
\documentclass[a4paper,12pt]{book} % Loading the package %--------------------------- \usepackage{fouriernc} %\usepackage{helvet} \usepackage{array} %--------------------------- \begin{document}
%% Table 1
\begin{table}[!t]
\caption{Top Scorers}
\label{tab:topscorer}
\begin{tabular*}{\textwidth}{ l p{0.8\textwidth} } \hline%% Table Header %---------------------------
\bf Goals & \bf Players\\
\hline
%--------------------------- 4 & First Last, First Last, First Last, First Last\\ 3 & First Last\\ 2 & First Last\\ 1 & First Last, First Last, First Last, First Last, First Last, First Last, First Last, First Last, First Last, First Last, First Last, First Last, First Last\\ \hline \end{tabular*} \caption{Caption} \label{tab:my_label} \end{table}
\end{document}
2. Save file as tableFitPage1.tex3. Then build or typeset the Latex code.Output
To learn Tables in preview environment, click Tables In Latex 2 Standalone >
tabular, latex table sample, table in latex, latex table in latex page, latex document
Bibliography
University of Illinois
https://latex-tutorial.com/
https://en.wikibooks.org/
Related Post
Learn About Latex List 1
Tidak ada komentar:
Posting Komentar