Tabular shifts when on a new page
I'm trying to implement a list of symbols in my document. The first page of the list of symbols looks fine. However, on the second page (and subsequent pages), the tabular is indented for an unknown reason, as can be seen in the figure below (watch the red line). I would like both pages to line up. I'm not able to achieve this.
I don't care whether I have to change the first page for the text to appear as in the second page, or vice-versa, as long as they line up. Does someone know why this behavior happens and how I can achieve what I would like?
The code I used:
chapter*{List of Symbols} label{list}
addcontentsline{toc}{chapter}{List of Symbols}
begin{tabular}{cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
clearpage
thispagestyle{plain}
begin{tabular}{cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
Edit: Here, I describe the new problem where the header of the earlier page is displayed in the pages after List of Symbols. This happens when using a tabular spanning over multiple pages. When I manually split the tabular of List of Symbols into multiple pages, the header doesn't appear in the List of Symbols.
documentclass[english,12pt,a4paper,pdftex,twoside]{report}
usepackage[english]{babel}
usepackage{array}
usepackage{lmodern}
usepackage{graphicx}
usepackage{amsfonts,amssymb,amsbsy}
usepackage{fancyhdr}
usepackage[utf8]{inputenc}
usepackage{tabularx}
usepackage{xltabular}
usepackage{hyperref}
usepackage{setspace}
usepackage{amsmath}
usepackage{relsize}
usepackage{calc}
usepackage{gensymb}
usepackage{caption}
usepackage{textcomp}
usepackage{epstopdf}
usepackage{subcaption}
usepackage{color}
usepackage{enumerate}
usepackage{enumitem}
usepackage[a4paper,margin=3.5cm,footskip=0.5cm,top=1.8in,bottom=4.5cm]{geometry}
usepackage[font={small}]{caption}
usepackage{titlesec}
usepackage{hyperref}
usepackage{cite}
usepackage{tocbibind}
usepackage{appendix}
usepackage{xcolor}
usepackage{amsthm}
usepackage{chngpage}
usepackage{mathtools}
usepackage[figuresright]{rotating}
setlengthparindent{24pt}
titleclass{subsubsubsection}{straight}[subsection]
newcounter{subsubsubsection}[subsubsection]
renewcommandthesubsubsubsection{thesubsubsection.arabic{subsubsubsection}}
renewcommandtheparagraph{thesubsubsubsection.arabic{paragraph}} % optional; useful if paragraphs are to be numbered
titleformat{subsubsubsection}
{normalfontnormalsizebfseries}{thesubsubsubsection}{1em}{}
titlespacing*{subsubsubsection}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
makeatletter
renewcommandparagraph{@startsection{paragraph}{5}{z@}%
{3.25ex @plus1ex @minus.2ex}%
{-1em}%
{normalfontnormalsizebfseries}}
renewcommandsubparagraph{@startsection{subparagraph}{6}{parindent}%
{3.25ex @plus1ex @minus .2ex}%
{-1em}%
{normalfontnormalsizebfseries}}
deftoclevel@subsubsubsection{4}
deftoclevel@paragraph{5}
deftoclevel@paragraph{6}
defl@subsubsubsection{@dottedtocline{4}{7em}{4em}}
defl@paragraph{@dottedtocline{5}{10em}{5em}}
defl@subparagraph{@dottedtocline{6}{14em}{6em}}
makeatother
setcounter{secnumdepth}{4}
setcounter{tocdepth}{4}
captionsetup[table]{skip = 12 pt}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
newcommand{nsum}[1][1.4]{
mathop{
raisebox
{-#1depthofsumsign+1depthofsumsign}
{scalebox
{#1}
{$displaystylesum$}%
}
}
}
newcommand{resum}[1]{
defs{#1}
mathop{
mathpaletteresumaux{#1}
}
}
newcommand{resumaux}[2]{
sbox0{$#1#2$}
sbox1{$#1sum$}
setlength{heightanddepthofargument}{wd0+dp0}
setlength{totalheightofsumsign}{wd1+dp1}
defquot{DivideLengths{heightanddepthofargument}{totalheightofsumsign}}
nsum[quot]
}
% http://tex.stackexchange.com/a/6424/16595
makeatletter
newcommand*{DivideLengths}[2]{
strip@ptdimexprnumbernumexprnumberdimexpr#1relax*65536/numberdimexpr#2relaxrelax sprelax
}
makeatother
newcommandvarpm{mathbin{vcenter{hbox{%
oalign{hfil$scriptstyle+$hfilcr
noalign{kern-.3ex}
$scriptscriptstyle({-})$cr}%
}}}}
newcommandvarmp{mathbin{vcenter{hbox{%
oalign{hfil$scriptstyle-$hfilcr
noalign{kern-.3ex}
$scriptscriptstyle({+})$cr}%
}}}}
setlength{tabcolsep}{8pt}
renewcommand{arraystretch}{1.5}
pagestyle{fancy}
fancyfoot{}
renewcommand{footrulewidth}{0pt}
newcommand{HRule}{rule{linewidth}{0.5mm}}
hypersetup{pdfpagemode=UseNone, pdfstartview=FitH,
colorlinks=true,urlcolor=red,linkcolor=black,citecolor=black,
pdftitle={Default Title, Modify},pdfauthor={Your Name},
pdfkeywords={Modify keywords}}
renewcommand*rmdefault{lmr}
newcommand{bb}{textbf}
newcommand{ita}{textit}
newcommand{tx}{textrm}
newcommand{todo}{textbf{TODO: }}
newcommand*xbar[1]{%
hbox{%
vbox{%
hrule height 0.5pt % The actual bar
kern0.5ex% % Distance between bar and symbol
hbox{%
kern-0.1em% % Shortening on the left side
ensuremath{#1}%
kern-0.1em% % Shortening on the right side
}%
}%
}%
}
renewcommand{headrulewidth}{0 pt}
begin{document}
% -----------------------------------------------------
begin{titlepage}
selectlanguage{english}
setlength{headheight}{3 cm}
thispagestyle{fancy}
fancyhead[L]{Header1\ Header1 Header1 Header1\ Header1 Header1 Header1 Header1 Header1}
setcounter{page}{0}
pagenumbering{roman}
mbox{}\[2.5cm]
noindent
Name Lastname\
noindent
{Large bfseries Title title title \title}
mbox{}\[90 mm]
noindent
Document type\
Place, today \
noindent
Supervisor:,,,,,,,, Supervisor\
Advisor:,,,,,,,,,,,,,,, Advisor \
selectlanguage{english}
end{titlepage}
% --------------------------------------------------
clearpage
setlength{headheight}{16pt}
thispagestyle{fancy}
fancyhead[R]{DOCUMENT \ TYPE}
fancyhead[L]{Header2 \ Header2 Header2\Header2 Header2 Header2 \Header2}
selectlanguage{english}
mbox{}\[0mm]
enlargethispage{20mm}
begin{center}
begin{tabular}{ |l l| }
hline
bb{Author:} & Name Lastname\
hline
bb{Title:} & Title title title\
hline
bb{Date:} & today ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, bb{Pages:},,, $n+m$\
hline
bb{Major:} & Major major major major\
bb{Code:} & 1234\
hline
bb{Supervisor:} & Supervisor\
bb{Advisor:} & Supervisor\
hline
multicolumn{2}{|l|}{
parbox{13.2cm}{
mbox{}\[0mm]
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem\
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
}} \
hline
parbox[t][11 mm][t]{2.7cm}{bb{Keywords:}} & parbox[t][16mm][t]{10.0cm}{keyword1, keyword2, keyword3} \
hline
bb{Language:} & English \
hline
end{tabular}
end{center}
%---------------------------------------------------
clearpage
setlength{headheight}{16pt}
thispagestyle{fancy}
fancyhead[R]{DOCUMENT\ TYPE}
fancyhead[L]{Header2 \ Header2 Header2\Header2 Header2 Header2 \Header2}
selectlanguage{english}
mbox{}\[0mm]
enlargethispage{20mm}
begin{center}
begin{tabular}{ |l l| }
hline
bb{Author:} & Name Lastname\
hline
bb{Title:} & Title title title\
hline
bb{Date:} & today ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, bb{Pages:},,, $n+m$\
hline
bb{Major:} & Major major major major\
bb{Code:} & 1234\
hline
bb{Supervisor:} & Supervisor\
bb{Advisor:} & Supervisor\
hline
multicolumn{2}{|l|}{
parbox{13.2cm}{
mbox{}\[0mm]
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum
}} \
hline
parbox[t][11 mm][t]{2.7cm}{bb{Keywords:}} & parbox[t][16mm][t]{10.0cm}{keyword1, keyword2, keyword3} \
hline
bb{Language:} & language2\
hline
end{tabular}
end{center}
selectlanguage{english}
%---------------------------------------------------
clearpage
thispagestyle{plain}
chapter*{Acknowledgements} label{ch:ackno}
Thanks for all to be thanked.mbox{}\[2.5cm]
ita{Place, Time time}\\\\
Author
vspace*{-38.5mm}
setlength{footskip}{40pt}
addcontentsline{toc}{chapter}{nameref{ch:ackno}}
thispagestyle{plain}
%----------------------------------------------------
clearpage
thispagestyle{plain}
chapter*{Abbreviations} label{abbr}
addcontentsline{toc}{chapter}{Abbreviations}
begin{tabular}{cp{0.6textwidth}}
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
end{tabular}
%----------------------------------------------------
clearpage
thispagestyle{plain}
chapter*{List of Symbols}
label{list}
begin{xltabular}{linewidth}{@{}>{$}r<{$} X @{}}
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
vdots & other symbols with long explanation other symbols with long explanation other symbols with long explanation \
sigma^2 & standard deviation\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
end{xltabular}
end{document}
tables
|
show 5 more comments
I'm trying to implement a list of symbols in my document. The first page of the list of symbols looks fine. However, on the second page (and subsequent pages), the tabular is indented for an unknown reason, as can be seen in the figure below (watch the red line). I would like both pages to line up. I'm not able to achieve this.
I don't care whether I have to change the first page for the text to appear as in the second page, or vice-versa, as long as they line up. Does someone know why this behavior happens and how I can achieve what I would like?
The code I used:
chapter*{List of Symbols} label{list}
addcontentsline{toc}{chapter}{List of Symbols}
begin{tabular}{cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
clearpage
thispagestyle{plain}
begin{tabular}{cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
Edit: Here, I describe the new problem where the header of the earlier page is displayed in the pages after List of Symbols. This happens when using a tabular spanning over multiple pages. When I manually split the tabular of List of Symbols into multiple pages, the header doesn't appear in the List of Symbols.
documentclass[english,12pt,a4paper,pdftex,twoside]{report}
usepackage[english]{babel}
usepackage{array}
usepackage{lmodern}
usepackage{graphicx}
usepackage{amsfonts,amssymb,amsbsy}
usepackage{fancyhdr}
usepackage[utf8]{inputenc}
usepackage{tabularx}
usepackage{xltabular}
usepackage{hyperref}
usepackage{setspace}
usepackage{amsmath}
usepackage{relsize}
usepackage{calc}
usepackage{gensymb}
usepackage{caption}
usepackage{textcomp}
usepackage{epstopdf}
usepackage{subcaption}
usepackage{color}
usepackage{enumerate}
usepackage{enumitem}
usepackage[a4paper,margin=3.5cm,footskip=0.5cm,top=1.8in,bottom=4.5cm]{geometry}
usepackage[font={small}]{caption}
usepackage{titlesec}
usepackage{hyperref}
usepackage{cite}
usepackage{tocbibind}
usepackage{appendix}
usepackage{xcolor}
usepackage{amsthm}
usepackage{chngpage}
usepackage{mathtools}
usepackage[figuresright]{rotating}
setlengthparindent{24pt}
titleclass{subsubsubsection}{straight}[subsection]
newcounter{subsubsubsection}[subsubsection]
renewcommandthesubsubsubsection{thesubsubsection.arabic{subsubsubsection}}
renewcommandtheparagraph{thesubsubsubsection.arabic{paragraph}} % optional; useful if paragraphs are to be numbered
titleformat{subsubsubsection}
{normalfontnormalsizebfseries}{thesubsubsubsection}{1em}{}
titlespacing*{subsubsubsection}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
makeatletter
renewcommandparagraph{@startsection{paragraph}{5}{z@}%
{3.25ex @plus1ex @minus.2ex}%
{-1em}%
{normalfontnormalsizebfseries}}
renewcommandsubparagraph{@startsection{subparagraph}{6}{parindent}%
{3.25ex @plus1ex @minus .2ex}%
{-1em}%
{normalfontnormalsizebfseries}}
deftoclevel@subsubsubsection{4}
deftoclevel@paragraph{5}
deftoclevel@paragraph{6}
defl@subsubsubsection{@dottedtocline{4}{7em}{4em}}
defl@paragraph{@dottedtocline{5}{10em}{5em}}
defl@subparagraph{@dottedtocline{6}{14em}{6em}}
makeatother
setcounter{secnumdepth}{4}
setcounter{tocdepth}{4}
captionsetup[table]{skip = 12 pt}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
newcommand{nsum}[1][1.4]{
mathop{
raisebox
{-#1depthofsumsign+1depthofsumsign}
{scalebox
{#1}
{$displaystylesum$}%
}
}
}
newcommand{resum}[1]{
defs{#1}
mathop{
mathpaletteresumaux{#1}
}
}
newcommand{resumaux}[2]{
sbox0{$#1#2$}
sbox1{$#1sum$}
setlength{heightanddepthofargument}{wd0+dp0}
setlength{totalheightofsumsign}{wd1+dp1}
defquot{DivideLengths{heightanddepthofargument}{totalheightofsumsign}}
nsum[quot]
}
% http://tex.stackexchange.com/a/6424/16595
makeatletter
newcommand*{DivideLengths}[2]{
strip@ptdimexprnumbernumexprnumberdimexpr#1relax*65536/numberdimexpr#2relaxrelax sprelax
}
makeatother
newcommandvarpm{mathbin{vcenter{hbox{%
oalign{hfil$scriptstyle+$hfilcr
noalign{kern-.3ex}
$scriptscriptstyle({-})$cr}%
}}}}
newcommandvarmp{mathbin{vcenter{hbox{%
oalign{hfil$scriptstyle-$hfilcr
noalign{kern-.3ex}
$scriptscriptstyle({+})$cr}%
}}}}
setlength{tabcolsep}{8pt}
renewcommand{arraystretch}{1.5}
pagestyle{fancy}
fancyfoot{}
renewcommand{footrulewidth}{0pt}
newcommand{HRule}{rule{linewidth}{0.5mm}}
hypersetup{pdfpagemode=UseNone, pdfstartview=FitH,
colorlinks=true,urlcolor=red,linkcolor=black,citecolor=black,
pdftitle={Default Title, Modify},pdfauthor={Your Name},
pdfkeywords={Modify keywords}}
renewcommand*rmdefault{lmr}
newcommand{bb}{textbf}
newcommand{ita}{textit}
newcommand{tx}{textrm}
newcommand{todo}{textbf{TODO: }}
newcommand*xbar[1]{%
hbox{%
vbox{%
hrule height 0.5pt % The actual bar
kern0.5ex% % Distance between bar and symbol
hbox{%
kern-0.1em% % Shortening on the left side
ensuremath{#1}%
kern-0.1em% % Shortening on the right side
}%
}%
}%
}
renewcommand{headrulewidth}{0 pt}
begin{document}
% -----------------------------------------------------
begin{titlepage}
selectlanguage{english}
setlength{headheight}{3 cm}
thispagestyle{fancy}
fancyhead[L]{Header1\ Header1 Header1 Header1\ Header1 Header1 Header1 Header1 Header1}
setcounter{page}{0}
pagenumbering{roman}
mbox{}\[2.5cm]
noindent
Name Lastname\
noindent
{Large bfseries Title title title \title}
mbox{}\[90 mm]
noindent
Document type\
Place, today \
noindent
Supervisor:,,,,,,,, Supervisor\
Advisor:,,,,,,,,,,,,,,, Advisor \
selectlanguage{english}
end{titlepage}
% --------------------------------------------------
clearpage
setlength{headheight}{16pt}
thispagestyle{fancy}
fancyhead[R]{DOCUMENT \ TYPE}
fancyhead[L]{Header2 \ Header2 Header2\Header2 Header2 Header2 \Header2}
selectlanguage{english}
mbox{}\[0mm]
enlargethispage{20mm}
begin{center}
begin{tabular}{ |l l| }
hline
bb{Author:} & Name Lastname\
hline
bb{Title:} & Title title title\
hline
bb{Date:} & today ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, bb{Pages:},,, $n+m$\
hline
bb{Major:} & Major major major major\
bb{Code:} & 1234\
hline
bb{Supervisor:} & Supervisor\
bb{Advisor:} & Supervisor\
hline
multicolumn{2}{|l|}{
parbox{13.2cm}{
mbox{}\[0mm]
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem\
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
}} \
hline
parbox[t][11 mm][t]{2.7cm}{bb{Keywords:}} & parbox[t][16mm][t]{10.0cm}{keyword1, keyword2, keyword3} \
hline
bb{Language:} & English \
hline
end{tabular}
end{center}
%---------------------------------------------------
clearpage
setlength{headheight}{16pt}
thispagestyle{fancy}
fancyhead[R]{DOCUMENT\ TYPE}
fancyhead[L]{Header2 \ Header2 Header2\Header2 Header2 Header2 \Header2}
selectlanguage{english}
mbox{}\[0mm]
enlargethispage{20mm}
begin{center}
begin{tabular}{ |l l| }
hline
bb{Author:} & Name Lastname\
hline
bb{Title:} & Title title title\
hline
bb{Date:} & today ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, bb{Pages:},,, $n+m$\
hline
bb{Major:} & Major major major major\
bb{Code:} & 1234\
hline
bb{Supervisor:} & Supervisor\
bb{Advisor:} & Supervisor\
hline
multicolumn{2}{|l|}{
parbox{13.2cm}{
mbox{}\[0mm]
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum
}} \
hline
parbox[t][11 mm][t]{2.7cm}{bb{Keywords:}} & parbox[t][16mm][t]{10.0cm}{keyword1, keyword2, keyword3} \
hline
bb{Language:} & language2\
hline
end{tabular}
end{center}
selectlanguage{english}
%---------------------------------------------------
clearpage
thispagestyle{plain}
chapter*{Acknowledgements} label{ch:ackno}
Thanks for all to be thanked.mbox{}\[2.5cm]
ita{Place, Time time}\\\\
Author
vspace*{-38.5mm}
setlength{footskip}{40pt}
addcontentsline{toc}{chapter}{nameref{ch:ackno}}
thispagestyle{plain}
%----------------------------------------------------
clearpage
thispagestyle{plain}
chapter*{Abbreviations} label{abbr}
addcontentsline{toc}{chapter}{Abbreviations}
begin{tabular}{cp{0.6textwidth}}
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
end{tabular}
%----------------------------------------------------
clearpage
thispagestyle{plain}
chapter*{List of Symbols}
label{list}
begin{xltabular}{linewidth}{@{}>{$}r<{$} X @{}}
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
vdots & other symbols with long explanation other symbols with long explanation other symbols with long explanation \
sigma^2 & standard deviation\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
end{xltabular}
end{document}
tables
Supposing that you do not have a two side document, putnoindent
. Before the second tabular. And, of course, atabularx
would make more sense here.
– Red-Cloud
May 13 at 11:06
Thank you. Seriously. I wish I asked sooner instead of wasting over half an hour on the matter.
– OppositeSnail
May 13 at 11:08
Actually, there are still pages where it does not line up. But it's an improvement. @MadyYuvi the @{} does not help either, I will try tabularx next.
– OppositeSnail
May 13 at 11:23
i suggest to use long table, for examplexltabular
. than you no need manually split your table.
– Zarko
May 13 at 11:28
1
you not provide any information about your document layout. usingtabularx
orxltabular
should not influence on your settings of page headers or footers. show us complete small document, which gives what you describe (for example add you page layout and used document class to my answer)
– Zarko
May 13 at 11:44
|
show 5 more comments
I'm trying to implement a list of symbols in my document. The first page of the list of symbols looks fine. However, on the second page (and subsequent pages), the tabular is indented for an unknown reason, as can be seen in the figure below (watch the red line). I would like both pages to line up. I'm not able to achieve this.
I don't care whether I have to change the first page for the text to appear as in the second page, or vice-versa, as long as they line up. Does someone know why this behavior happens and how I can achieve what I would like?
The code I used:
chapter*{List of Symbols} label{list}
addcontentsline{toc}{chapter}{List of Symbols}
begin{tabular}{cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
clearpage
thispagestyle{plain}
begin{tabular}{cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
Edit: Here, I describe the new problem where the header of the earlier page is displayed in the pages after List of Symbols. This happens when using a tabular spanning over multiple pages. When I manually split the tabular of List of Symbols into multiple pages, the header doesn't appear in the List of Symbols.
documentclass[english,12pt,a4paper,pdftex,twoside]{report}
usepackage[english]{babel}
usepackage{array}
usepackage{lmodern}
usepackage{graphicx}
usepackage{amsfonts,amssymb,amsbsy}
usepackage{fancyhdr}
usepackage[utf8]{inputenc}
usepackage{tabularx}
usepackage{xltabular}
usepackage{hyperref}
usepackage{setspace}
usepackage{amsmath}
usepackage{relsize}
usepackage{calc}
usepackage{gensymb}
usepackage{caption}
usepackage{textcomp}
usepackage{epstopdf}
usepackage{subcaption}
usepackage{color}
usepackage{enumerate}
usepackage{enumitem}
usepackage[a4paper,margin=3.5cm,footskip=0.5cm,top=1.8in,bottom=4.5cm]{geometry}
usepackage[font={small}]{caption}
usepackage{titlesec}
usepackage{hyperref}
usepackage{cite}
usepackage{tocbibind}
usepackage{appendix}
usepackage{xcolor}
usepackage{amsthm}
usepackage{chngpage}
usepackage{mathtools}
usepackage[figuresright]{rotating}
setlengthparindent{24pt}
titleclass{subsubsubsection}{straight}[subsection]
newcounter{subsubsubsection}[subsubsection]
renewcommandthesubsubsubsection{thesubsubsection.arabic{subsubsubsection}}
renewcommandtheparagraph{thesubsubsubsection.arabic{paragraph}} % optional; useful if paragraphs are to be numbered
titleformat{subsubsubsection}
{normalfontnormalsizebfseries}{thesubsubsubsection}{1em}{}
titlespacing*{subsubsubsection}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
makeatletter
renewcommandparagraph{@startsection{paragraph}{5}{z@}%
{3.25ex @plus1ex @minus.2ex}%
{-1em}%
{normalfontnormalsizebfseries}}
renewcommandsubparagraph{@startsection{subparagraph}{6}{parindent}%
{3.25ex @plus1ex @minus .2ex}%
{-1em}%
{normalfontnormalsizebfseries}}
deftoclevel@subsubsubsection{4}
deftoclevel@paragraph{5}
deftoclevel@paragraph{6}
defl@subsubsubsection{@dottedtocline{4}{7em}{4em}}
defl@paragraph{@dottedtocline{5}{10em}{5em}}
defl@subparagraph{@dottedtocline{6}{14em}{6em}}
makeatother
setcounter{secnumdepth}{4}
setcounter{tocdepth}{4}
captionsetup[table]{skip = 12 pt}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
newcommand{nsum}[1][1.4]{
mathop{
raisebox
{-#1depthofsumsign+1depthofsumsign}
{scalebox
{#1}
{$displaystylesum$}%
}
}
}
newcommand{resum}[1]{
defs{#1}
mathop{
mathpaletteresumaux{#1}
}
}
newcommand{resumaux}[2]{
sbox0{$#1#2$}
sbox1{$#1sum$}
setlength{heightanddepthofargument}{wd0+dp0}
setlength{totalheightofsumsign}{wd1+dp1}
defquot{DivideLengths{heightanddepthofargument}{totalheightofsumsign}}
nsum[quot]
}
% http://tex.stackexchange.com/a/6424/16595
makeatletter
newcommand*{DivideLengths}[2]{
strip@ptdimexprnumbernumexprnumberdimexpr#1relax*65536/numberdimexpr#2relaxrelax sprelax
}
makeatother
newcommandvarpm{mathbin{vcenter{hbox{%
oalign{hfil$scriptstyle+$hfilcr
noalign{kern-.3ex}
$scriptscriptstyle({-})$cr}%
}}}}
newcommandvarmp{mathbin{vcenter{hbox{%
oalign{hfil$scriptstyle-$hfilcr
noalign{kern-.3ex}
$scriptscriptstyle({+})$cr}%
}}}}
setlength{tabcolsep}{8pt}
renewcommand{arraystretch}{1.5}
pagestyle{fancy}
fancyfoot{}
renewcommand{footrulewidth}{0pt}
newcommand{HRule}{rule{linewidth}{0.5mm}}
hypersetup{pdfpagemode=UseNone, pdfstartview=FitH,
colorlinks=true,urlcolor=red,linkcolor=black,citecolor=black,
pdftitle={Default Title, Modify},pdfauthor={Your Name},
pdfkeywords={Modify keywords}}
renewcommand*rmdefault{lmr}
newcommand{bb}{textbf}
newcommand{ita}{textit}
newcommand{tx}{textrm}
newcommand{todo}{textbf{TODO: }}
newcommand*xbar[1]{%
hbox{%
vbox{%
hrule height 0.5pt % The actual bar
kern0.5ex% % Distance between bar and symbol
hbox{%
kern-0.1em% % Shortening on the left side
ensuremath{#1}%
kern-0.1em% % Shortening on the right side
}%
}%
}%
}
renewcommand{headrulewidth}{0 pt}
begin{document}
% -----------------------------------------------------
begin{titlepage}
selectlanguage{english}
setlength{headheight}{3 cm}
thispagestyle{fancy}
fancyhead[L]{Header1\ Header1 Header1 Header1\ Header1 Header1 Header1 Header1 Header1}
setcounter{page}{0}
pagenumbering{roman}
mbox{}\[2.5cm]
noindent
Name Lastname\
noindent
{Large bfseries Title title title \title}
mbox{}\[90 mm]
noindent
Document type\
Place, today \
noindent
Supervisor:,,,,,,,, Supervisor\
Advisor:,,,,,,,,,,,,,,, Advisor \
selectlanguage{english}
end{titlepage}
% --------------------------------------------------
clearpage
setlength{headheight}{16pt}
thispagestyle{fancy}
fancyhead[R]{DOCUMENT \ TYPE}
fancyhead[L]{Header2 \ Header2 Header2\Header2 Header2 Header2 \Header2}
selectlanguage{english}
mbox{}\[0mm]
enlargethispage{20mm}
begin{center}
begin{tabular}{ |l l| }
hline
bb{Author:} & Name Lastname\
hline
bb{Title:} & Title title title\
hline
bb{Date:} & today ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, bb{Pages:},,, $n+m$\
hline
bb{Major:} & Major major major major\
bb{Code:} & 1234\
hline
bb{Supervisor:} & Supervisor\
bb{Advisor:} & Supervisor\
hline
multicolumn{2}{|l|}{
parbox{13.2cm}{
mbox{}\[0mm]
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem\
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
}} \
hline
parbox[t][11 mm][t]{2.7cm}{bb{Keywords:}} & parbox[t][16mm][t]{10.0cm}{keyword1, keyword2, keyword3} \
hline
bb{Language:} & English \
hline
end{tabular}
end{center}
%---------------------------------------------------
clearpage
setlength{headheight}{16pt}
thispagestyle{fancy}
fancyhead[R]{DOCUMENT\ TYPE}
fancyhead[L]{Header2 \ Header2 Header2\Header2 Header2 Header2 \Header2}
selectlanguage{english}
mbox{}\[0mm]
enlargethispage{20mm}
begin{center}
begin{tabular}{ |l l| }
hline
bb{Author:} & Name Lastname\
hline
bb{Title:} & Title title title\
hline
bb{Date:} & today ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, bb{Pages:},,, $n+m$\
hline
bb{Major:} & Major major major major\
bb{Code:} & 1234\
hline
bb{Supervisor:} & Supervisor\
bb{Advisor:} & Supervisor\
hline
multicolumn{2}{|l|}{
parbox{13.2cm}{
mbox{}\[0mm]
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum
}} \
hline
parbox[t][11 mm][t]{2.7cm}{bb{Keywords:}} & parbox[t][16mm][t]{10.0cm}{keyword1, keyword2, keyword3} \
hline
bb{Language:} & language2\
hline
end{tabular}
end{center}
selectlanguage{english}
%---------------------------------------------------
clearpage
thispagestyle{plain}
chapter*{Acknowledgements} label{ch:ackno}
Thanks for all to be thanked.mbox{}\[2.5cm]
ita{Place, Time time}\\\\
Author
vspace*{-38.5mm}
setlength{footskip}{40pt}
addcontentsline{toc}{chapter}{nameref{ch:ackno}}
thispagestyle{plain}
%----------------------------------------------------
clearpage
thispagestyle{plain}
chapter*{Abbreviations} label{abbr}
addcontentsline{toc}{chapter}{Abbreviations}
begin{tabular}{cp{0.6textwidth}}
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
end{tabular}
%----------------------------------------------------
clearpage
thispagestyle{plain}
chapter*{List of Symbols}
label{list}
begin{xltabular}{linewidth}{@{}>{$}r<{$} X @{}}
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
vdots & other symbols with long explanation other symbols with long explanation other symbols with long explanation \
sigma^2 & standard deviation\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
end{xltabular}
end{document}
tables
I'm trying to implement a list of symbols in my document. The first page of the list of symbols looks fine. However, on the second page (and subsequent pages), the tabular is indented for an unknown reason, as can be seen in the figure below (watch the red line). I would like both pages to line up. I'm not able to achieve this.
I don't care whether I have to change the first page for the text to appear as in the second page, or vice-versa, as long as they line up. Does someone know why this behavior happens and how I can achieve what I would like?
The code I used:
chapter*{List of Symbols} label{list}
addcontentsline{toc}{chapter}{List of Symbols}
begin{tabular}{cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
clearpage
thispagestyle{plain}
begin{tabular}{cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
Edit: Here, I describe the new problem where the header of the earlier page is displayed in the pages after List of Symbols. This happens when using a tabular spanning over multiple pages. When I manually split the tabular of List of Symbols into multiple pages, the header doesn't appear in the List of Symbols.
documentclass[english,12pt,a4paper,pdftex,twoside]{report}
usepackage[english]{babel}
usepackage{array}
usepackage{lmodern}
usepackage{graphicx}
usepackage{amsfonts,amssymb,amsbsy}
usepackage{fancyhdr}
usepackage[utf8]{inputenc}
usepackage{tabularx}
usepackage{xltabular}
usepackage{hyperref}
usepackage{setspace}
usepackage{amsmath}
usepackage{relsize}
usepackage{calc}
usepackage{gensymb}
usepackage{caption}
usepackage{textcomp}
usepackage{epstopdf}
usepackage{subcaption}
usepackage{color}
usepackage{enumerate}
usepackage{enumitem}
usepackage[a4paper,margin=3.5cm,footskip=0.5cm,top=1.8in,bottom=4.5cm]{geometry}
usepackage[font={small}]{caption}
usepackage{titlesec}
usepackage{hyperref}
usepackage{cite}
usepackage{tocbibind}
usepackage{appendix}
usepackage{xcolor}
usepackage{amsthm}
usepackage{chngpage}
usepackage{mathtools}
usepackage[figuresright]{rotating}
setlengthparindent{24pt}
titleclass{subsubsubsection}{straight}[subsection]
newcounter{subsubsubsection}[subsubsection]
renewcommandthesubsubsubsection{thesubsubsection.arabic{subsubsubsection}}
renewcommandtheparagraph{thesubsubsubsection.arabic{paragraph}} % optional; useful if paragraphs are to be numbered
titleformat{subsubsubsection}
{normalfontnormalsizebfseries}{thesubsubsubsection}{1em}{}
titlespacing*{subsubsubsection}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
makeatletter
renewcommandparagraph{@startsection{paragraph}{5}{z@}%
{3.25ex @plus1ex @minus.2ex}%
{-1em}%
{normalfontnormalsizebfseries}}
renewcommandsubparagraph{@startsection{subparagraph}{6}{parindent}%
{3.25ex @plus1ex @minus .2ex}%
{-1em}%
{normalfontnormalsizebfseries}}
deftoclevel@subsubsubsection{4}
deftoclevel@paragraph{5}
deftoclevel@paragraph{6}
defl@subsubsubsection{@dottedtocline{4}{7em}{4em}}
defl@paragraph{@dottedtocline{5}{10em}{5em}}
defl@subparagraph{@dottedtocline{6}{14em}{6em}}
makeatother
setcounter{secnumdepth}{4}
setcounter{tocdepth}{4}
captionsetup[table]{skip = 12 pt}
newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}
newcommand{nsum}[1][1.4]{
mathop{
raisebox
{-#1depthofsumsign+1depthofsumsign}
{scalebox
{#1}
{$displaystylesum$}%
}
}
}
newcommand{resum}[1]{
defs{#1}
mathop{
mathpaletteresumaux{#1}
}
}
newcommand{resumaux}[2]{
sbox0{$#1#2$}
sbox1{$#1sum$}
setlength{heightanddepthofargument}{wd0+dp0}
setlength{totalheightofsumsign}{wd1+dp1}
defquot{DivideLengths{heightanddepthofargument}{totalheightofsumsign}}
nsum[quot]
}
% http://tex.stackexchange.com/a/6424/16595
makeatletter
newcommand*{DivideLengths}[2]{
strip@ptdimexprnumbernumexprnumberdimexpr#1relax*65536/numberdimexpr#2relaxrelax sprelax
}
makeatother
newcommandvarpm{mathbin{vcenter{hbox{%
oalign{hfil$scriptstyle+$hfilcr
noalign{kern-.3ex}
$scriptscriptstyle({-})$cr}%
}}}}
newcommandvarmp{mathbin{vcenter{hbox{%
oalign{hfil$scriptstyle-$hfilcr
noalign{kern-.3ex}
$scriptscriptstyle({+})$cr}%
}}}}
setlength{tabcolsep}{8pt}
renewcommand{arraystretch}{1.5}
pagestyle{fancy}
fancyfoot{}
renewcommand{footrulewidth}{0pt}
newcommand{HRule}{rule{linewidth}{0.5mm}}
hypersetup{pdfpagemode=UseNone, pdfstartview=FitH,
colorlinks=true,urlcolor=red,linkcolor=black,citecolor=black,
pdftitle={Default Title, Modify},pdfauthor={Your Name},
pdfkeywords={Modify keywords}}
renewcommand*rmdefault{lmr}
newcommand{bb}{textbf}
newcommand{ita}{textit}
newcommand{tx}{textrm}
newcommand{todo}{textbf{TODO: }}
newcommand*xbar[1]{%
hbox{%
vbox{%
hrule height 0.5pt % The actual bar
kern0.5ex% % Distance between bar and symbol
hbox{%
kern-0.1em% % Shortening on the left side
ensuremath{#1}%
kern-0.1em% % Shortening on the right side
}%
}%
}%
}
renewcommand{headrulewidth}{0 pt}
begin{document}
% -----------------------------------------------------
begin{titlepage}
selectlanguage{english}
setlength{headheight}{3 cm}
thispagestyle{fancy}
fancyhead[L]{Header1\ Header1 Header1 Header1\ Header1 Header1 Header1 Header1 Header1}
setcounter{page}{0}
pagenumbering{roman}
mbox{}\[2.5cm]
noindent
Name Lastname\
noindent
{Large bfseries Title title title \title}
mbox{}\[90 mm]
noindent
Document type\
Place, today \
noindent
Supervisor:,,,,,,,, Supervisor\
Advisor:,,,,,,,,,,,,,,, Advisor \
selectlanguage{english}
end{titlepage}
% --------------------------------------------------
clearpage
setlength{headheight}{16pt}
thispagestyle{fancy}
fancyhead[R]{DOCUMENT \ TYPE}
fancyhead[L]{Header2 \ Header2 Header2\Header2 Header2 Header2 \Header2}
selectlanguage{english}
mbox{}\[0mm]
enlargethispage{20mm}
begin{center}
begin{tabular}{ |l l| }
hline
bb{Author:} & Name Lastname\
hline
bb{Title:} & Title title title\
hline
bb{Date:} & today ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, bb{Pages:},,, $n+m$\
hline
bb{Major:} & Major major major major\
bb{Code:} & 1234\
hline
bb{Supervisor:} & Supervisor\
bb{Advisor:} & Supervisor\
hline
multicolumn{2}{|l|}{
parbox{13.2cm}{
mbox{}\[0mm]
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem\
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
}} \
hline
parbox[t][11 mm][t]{2.7cm}{bb{Keywords:}} & parbox[t][16mm][t]{10.0cm}{keyword1, keyword2, keyword3} \
hline
bb{Language:} & English \
hline
end{tabular}
end{center}
%---------------------------------------------------
clearpage
setlength{headheight}{16pt}
thispagestyle{fancy}
fancyhead[R]{DOCUMENT\ TYPE}
fancyhead[L]{Header2 \ Header2 Header2\Header2 Header2 Header2 \Header2}
selectlanguage{english}
mbox{}\[0mm]
enlargethispage{20mm}
begin{center}
begin{tabular}{ |l l| }
hline
bb{Author:} & Name Lastname\
hline
bb{Title:} & Title title title\
hline
bb{Date:} & today ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, bb{Pages:},,, $n+m$\
hline
bb{Major:} & Major major major major\
bb{Code:} & 1234\
hline
bb{Supervisor:} & Supervisor\
bb{Advisor:} & Supervisor\
hline
multicolumn{2}{|l|}{
parbox{13.2cm}{
mbox{}\[0mm]
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum \
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum
}} \
hline
parbox[t][11 mm][t]{2.7cm}{bb{Keywords:}} & parbox[t][16mm][t]{10.0cm}{keyword1, keyword2, keyword3} \
hline
bb{Language:} & language2\
hline
end{tabular}
end{center}
selectlanguage{english}
%---------------------------------------------------
clearpage
thispagestyle{plain}
chapter*{Acknowledgements} label{ch:ackno}
Thanks for all to be thanked.mbox{}\[2.5cm]
ita{Place, Time time}\\\\
Author
vspace*{-38.5mm}
setlength{footskip}{40pt}
addcontentsline{toc}{chapter}{nameref{ch:ackno}}
thispagestyle{plain}
%----------------------------------------------------
clearpage
thispagestyle{plain}
chapter*{Abbreviations} label{abbr}
addcontentsline{toc}{chapter}{Abbreviations}
begin{tabular}{cp{0.6textwidth}}
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
ABBR & Abbreviation explanation\
end{tabular}
%----------------------------------------------------
clearpage
thispagestyle{plain}
chapter*{List of Symbols}
label{list}
begin{xltabular}{linewidth}{@{}>{$}r<{$} X @{}}
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
vdots & other symbols with long explanation other symbols with long explanation other symbols with long explanation \
sigma^2 & standard deviation\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
end{xltabular}
end{document}
tables
tables
edited May 14 at 5:52
OppositeSnail
asked May 13 at 11:01
OppositeSnailOppositeSnail
134
134
Supposing that you do not have a two side document, putnoindent
. Before the second tabular. And, of course, atabularx
would make more sense here.
– Red-Cloud
May 13 at 11:06
Thank you. Seriously. I wish I asked sooner instead of wasting over half an hour on the matter.
– OppositeSnail
May 13 at 11:08
Actually, there are still pages where it does not line up. But it's an improvement. @MadyYuvi the @{} does not help either, I will try tabularx next.
– OppositeSnail
May 13 at 11:23
i suggest to use long table, for examplexltabular
. than you no need manually split your table.
– Zarko
May 13 at 11:28
1
you not provide any information about your document layout. usingtabularx
orxltabular
should not influence on your settings of page headers or footers. show us complete small document, which gives what you describe (for example add you page layout and used document class to my answer)
– Zarko
May 13 at 11:44
|
show 5 more comments
Supposing that you do not have a two side document, putnoindent
. Before the second tabular. And, of course, atabularx
would make more sense here.
– Red-Cloud
May 13 at 11:06
Thank you. Seriously. I wish I asked sooner instead of wasting over half an hour on the matter.
– OppositeSnail
May 13 at 11:08
Actually, there are still pages where it does not line up. But it's an improvement. @MadyYuvi the @{} does not help either, I will try tabularx next.
– OppositeSnail
May 13 at 11:23
i suggest to use long table, for examplexltabular
. than you no need manually split your table.
– Zarko
May 13 at 11:28
1
you not provide any information about your document layout. usingtabularx
orxltabular
should not influence on your settings of page headers or footers. show us complete small document, which gives what you describe (for example add you page layout and used document class to my answer)
– Zarko
May 13 at 11:44
Supposing that you do not have a two side document, put
noindent
. Before the second tabular. And, of course, a tabularx
would make more sense here.– Red-Cloud
May 13 at 11:06
Supposing that you do not have a two side document, put
noindent
. Before the second tabular. And, of course, a tabularx
would make more sense here.– Red-Cloud
May 13 at 11:06
Thank you. Seriously. I wish I asked sooner instead of wasting over half an hour on the matter.
– OppositeSnail
May 13 at 11:08
Thank you. Seriously. I wish I asked sooner instead of wasting over half an hour on the matter.
– OppositeSnail
May 13 at 11:08
Actually, there are still pages where it does not line up. But it's an improvement. @MadyYuvi the @{} does not help either, I will try tabularx next.
– OppositeSnail
May 13 at 11:23
Actually, there are still pages where it does not line up. But it's an improvement. @MadyYuvi the @{} does not help either, I will try tabularx next.
– OppositeSnail
May 13 at 11:23
i suggest to use long table, for example
xltabular
. than you no need manually split your table.– Zarko
May 13 at 11:28
i suggest to use long table, for example
xltabular
. than you no need manually split your table.– Zarko
May 13 at 11:28
1
1
you not provide any information about your document layout. using
tabularx
or xltabular
should not influence on your settings of page headers or footers. show us complete small document, which gives what you describe (for example add you page layout and used document class to my answer)– Zarko
May 13 at 11:44
you not provide any information about your document layout. using
tabularx
or xltabular
should not influence on your settings of page headers or footers. show us complete small document, which gives what you describe (for example add you page layout and used document class to my answer)– Zarko
May 13 at 11:44
|
show 5 more comments
3 Answers
3
active
oldest
votes
use
usepackage{tabularx}
...
chapter*{List of Symbols} label{list}
addcontentsline{toc}{chapter}{List of Symbols}
noindent
begin{tabularx}{linewidth}{@{}cX}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabularx}
clearpage
thispagestyle{plain}
noindent
begin{tabularx}{linewidth}{@{}cX}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabularx}
if you need a page break then use package xltabular
with the environment of the same name.
With tabularx, the first and second page line up perfectly, but then the tabular shifts to the left on page 3 and again more to the left on page 4, maybe because of different symbol width?
– OppositeSnail
May 13 at 11:28
Yes, bit you can use one tabular, then you'll get the same column width.
– Red-Cloud
May 13 at 11:58
add a comment |
as i mentioned in my comment:
documentclass{book}
usepackage{array,xltabular}
begin{document}
chapter*{List of Symbols}
label{list}
begin{xltabular}{linewidth}{@{}>{$}r<{$} X @{}}
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
vdots & other symbols with long explanation other symbols with long explanation other symbols with long explanation \
sigma^2 & standard deviation\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
end{xltabular}
end{document}
add a comment |
noindent
and @{}
will helps you to achieve your needs:
chapter*{List of Symbols} label{list}
addcontentsline{toc}{chapter}{List of Symbols}
begin{tabular}{@{}cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
clearpage
thispagestyle{plain}
noindentbegin{tabular}{@{}cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
Also, note that there are few packages are available to make the tabular into auto page break mode, e.g., supertabular
and longtable
package...
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f490619%2ftabular-shifts-when-on-a-new-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
use
usepackage{tabularx}
...
chapter*{List of Symbols} label{list}
addcontentsline{toc}{chapter}{List of Symbols}
noindent
begin{tabularx}{linewidth}{@{}cX}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabularx}
clearpage
thispagestyle{plain}
noindent
begin{tabularx}{linewidth}{@{}cX}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabularx}
if you need a page break then use package xltabular
with the environment of the same name.
With tabularx, the first and second page line up perfectly, but then the tabular shifts to the left on page 3 and again more to the left on page 4, maybe because of different symbol width?
– OppositeSnail
May 13 at 11:28
Yes, bit you can use one tabular, then you'll get the same column width.
– Red-Cloud
May 13 at 11:58
add a comment |
use
usepackage{tabularx}
...
chapter*{List of Symbols} label{list}
addcontentsline{toc}{chapter}{List of Symbols}
noindent
begin{tabularx}{linewidth}{@{}cX}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabularx}
clearpage
thispagestyle{plain}
noindent
begin{tabularx}{linewidth}{@{}cX}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabularx}
if you need a page break then use package xltabular
with the environment of the same name.
With tabularx, the first and second page line up perfectly, but then the tabular shifts to the left on page 3 and again more to the left on page 4, maybe because of different symbol width?
– OppositeSnail
May 13 at 11:28
Yes, bit you can use one tabular, then you'll get the same column width.
– Red-Cloud
May 13 at 11:58
add a comment |
use
usepackage{tabularx}
...
chapter*{List of Symbols} label{list}
addcontentsline{toc}{chapter}{List of Symbols}
noindent
begin{tabularx}{linewidth}{@{}cX}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabularx}
clearpage
thispagestyle{plain}
noindent
begin{tabularx}{linewidth}{@{}cX}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabularx}
if you need a page break then use package xltabular
with the environment of the same name.
use
usepackage{tabularx}
...
chapter*{List of Symbols} label{list}
addcontentsline{toc}{chapter}{List of Symbols}
noindent
begin{tabularx}{linewidth}{@{}cX}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabularx}
clearpage
thispagestyle{plain}
noindent
begin{tabularx}{linewidth}{@{}cX}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabularx}
if you need a page break then use package xltabular
with the environment of the same name.
edited May 13 at 11:26
answered May 13 at 11:16
Red-CloudRed-Cloud
3,128114
3,128114
With tabularx, the first and second page line up perfectly, but then the tabular shifts to the left on page 3 and again more to the left on page 4, maybe because of different symbol width?
– OppositeSnail
May 13 at 11:28
Yes, bit you can use one tabular, then you'll get the same column width.
– Red-Cloud
May 13 at 11:58
add a comment |
With tabularx, the first and second page line up perfectly, but then the tabular shifts to the left on page 3 and again more to the left on page 4, maybe because of different symbol width?
– OppositeSnail
May 13 at 11:28
Yes, bit you can use one tabular, then you'll get the same column width.
– Red-Cloud
May 13 at 11:58
With tabularx, the first and second page line up perfectly, but then the tabular shifts to the left on page 3 and again more to the left on page 4, maybe because of different symbol width?
– OppositeSnail
May 13 at 11:28
With tabularx, the first and second page line up perfectly, but then the tabular shifts to the left on page 3 and again more to the left on page 4, maybe because of different symbol width?
– OppositeSnail
May 13 at 11:28
Yes, bit you can use one tabular, then you'll get the same column width.
– Red-Cloud
May 13 at 11:58
Yes, bit you can use one tabular, then you'll get the same column width.
– Red-Cloud
May 13 at 11:58
add a comment |
as i mentioned in my comment:
documentclass{book}
usepackage{array,xltabular}
begin{document}
chapter*{List of Symbols}
label{list}
begin{xltabular}{linewidth}{@{}>{$}r<{$} X @{}}
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
vdots & other symbols with long explanation other symbols with long explanation other symbols with long explanation \
sigma^2 & standard deviation\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
end{xltabular}
end{document}
add a comment |
as i mentioned in my comment:
documentclass{book}
usepackage{array,xltabular}
begin{document}
chapter*{List of Symbols}
label{list}
begin{xltabular}{linewidth}{@{}>{$}r<{$} X @{}}
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
vdots & other symbols with long explanation other symbols with long explanation other symbols with long explanation \
sigma^2 & standard deviation\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
end{xltabular}
end{document}
add a comment |
as i mentioned in my comment:
documentclass{book}
usepackage{array,xltabular}
begin{document}
chapter*{List of Symbols}
label{list}
begin{xltabular}{linewidth}{@{}>{$}r<{$} X @{}}
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
vdots & other symbols with long explanation other symbols with long explanation other symbols with long explanation \
sigma^2 & standard deviation\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
end{xltabular}
end{document}
as i mentioned in my comment:
documentclass{book}
usepackage{array,xltabular}
begin{document}
chapter*{List of Symbols}
label{list}
begin{xltabular}{linewidth}{@{}>{$}r<{$} X @{}}
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
vdots & other symbols with long explanation other symbols with long explanation other symbols with long explanation \
sigma^2 & standard deviation\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
alpha & Explanation of the symbol\
beta & Explanation of the symbol\
gamma & Explanation of the symbol\
end{xltabular}
end{document}
answered May 13 at 11:40
ZarkoZarko
136k872180
136k872180
add a comment |
add a comment |
noindent
and @{}
will helps you to achieve your needs:
chapter*{List of Symbols} label{list}
addcontentsline{toc}{chapter}{List of Symbols}
begin{tabular}{@{}cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
clearpage
thispagestyle{plain}
noindentbegin{tabular}{@{}cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
Also, note that there are few packages are available to make the tabular into auto page break mode, e.g., supertabular
and longtable
package...
add a comment |
noindent
and @{}
will helps you to achieve your needs:
chapter*{List of Symbols} label{list}
addcontentsline{toc}{chapter}{List of Symbols}
begin{tabular}{@{}cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
clearpage
thispagestyle{plain}
noindentbegin{tabular}{@{}cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
Also, note that there are few packages are available to make the tabular into auto page break mode, e.g., supertabular
and longtable
package...
add a comment |
noindent
and @{}
will helps you to achieve your needs:
chapter*{List of Symbols} label{list}
addcontentsline{toc}{chapter}{List of Symbols}
begin{tabular}{@{}cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
clearpage
thispagestyle{plain}
noindentbegin{tabular}{@{}cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
Also, note that there are few packages are available to make the tabular into auto page break mode, e.g., supertabular
and longtable
package...
noindent
and @{}
will helps you to achieve your needs:
chapter*{List of Symbols} label{list}
addcontentsline{toc}{chapter}{List of Symbols}
begin{tabular}{@{}cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
clearpage
thispagestyle{plain}
noindentbegin{tabular}{@{}cp{1.0textwidth}}
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
$symbol$ & Explanation of the symbol\
...
end{tabular}
Also, note that there are few packages are available to make the tabular into auto page break mode, e.g., supertabular
and longtable
package...
answered May 13 at 11:13
MadyYuviMadyYuvi
2,757312
2,757312
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f490619%2ftabular-shifts-when-on-a-new-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Supposing that you do not have a two side document, put
noindent
. Before the second tabular. And, of course, atabularx
would make more sense here.– Red-Cloud
May 13 at 11:06
Thank you. Seriously. I wish I asked sooner instead of wasting over half an hour on the matter.
– OppositeSnail
May 13 at 11:08
Actually, there are still pages where it does not line up. But it's an improvement. @MadyYuvi the @{} does not help either, I will try tabularx next.
– OppositeSnail
May 13 at 11:23
i suggest to use long table, for example
xltabular
. than you no need manually split your table.– Zarko
May 13 at 11:28
1
you not provide any information about your document layout. using
tabularx
orxltabular
should not influence on your settings of page headers or footers. show us complete small document, which gives what you describe (for example add you page layout and used document class to my answer)– Zarko
May 13 at 11:44