TeX - LaTeX Asked by user223476 on March 3, 2021
I want to extend header row and summary lines of table to page width. Please someone help me with this, i don’t know how to do it.
My Code:
begin{longtable}{l@{extracolsep{fill}hspace{tabcolsep}} p{.6textwidth} l r r r r }
hline
rowcolor{black}
textcolor{white} {POS} &textcolor{white} {DESCRIPTION} & textcolor{white} {QTY} & textcolor{white} {PRICE (pounds)} & textcolor{white} {AMOUNT (pounds)} *
hlinehline
endhead
}{
& & & {MWSt taxval %} & {taxes{arabic{cost}}{taxval}}
hlinehlinehline
& & & {Summe EUR} & {addtaxes{arabic{cost}}{taxval}}
end{longtable}
To adjust the position of the table change oddsidemargin -1in
documentclass[a4paper,10pt]{article}
usepackage{geometry}
begin{document}
marginparwidth 0pt
marginparsep 0pt
oddsidemargin dimexpr .5in -1in
textwidth dimexpr pdfpagewidth oddsidemargin -1in
begin{table} %
centering
caption{Obtained marks.}
begin{tabular}{p{16cm} l l l l }
hline Name & Math & Phy & Chem & man
hline Salah & 80 & 68 & 60 & 57
hline Muhammed & 72 & 62 & 66 & 63
hline Ahmad & 75 & 70 & 71 & 69
hline
end{tabular}
end{table}
end{document}
Answered by J.R on March 3, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP