Strange formatting after starting second page












1















I got some tables in a documents. If the content inside the table fits inside one page, the spacing between lines and table arrangement are usual. However, if the content is longer, the two table will swap positions and the spacing between other lines widen.



Please check the code here https://github.com/kychanbp/HSF-Forms-Generation



Under template --> form b.



A normal one page document
A normal one page document



Two page document: table order changed. Sometimes, spacing changed too



The table order is wrong



How can I fix it?










share|improve this question




















  • 1





    Hello, and welcome to tex.sx! Please add a Minimal Working Example (MWE) the illustrates your problem. That is, a piece of code that can be compiled by anyone with a standard TeX distribution, so that we can check what you problem is and try to solve it.

    – Phelype Oleinik
    Dec 26 '17 at 15:05











  • Is this the output you expect: imgur.com/V5uQ3hF ?

    – Phelype Oleinik
    Dec 27 '17 at 0:26











  • @PhelypeOleinik That's the template. If I add more content inside the table (e.g. 2 pages document), the spacing and the table arrangement will change.

    – JOHN
    Dec 27 '17 at 1:53
















1















I got some tables in a documents. If the content inside the table fits inside one page, the spacing between lines and table arrangement are usual. However, if the content is longer, the two table will swap positions and the spacing between other lines widen.



Please check the code here https://github.com/kychanbp/HSF-Forms-Generation



Under template --> form b.



A normal one page document
A normal one page document



Two page document: table order changed. Sometimes, spacing changed too



The table order is wrong



How can I fix it?










share|improve this question




















  • 1





    Hello, and welcome to tex.sx! Please add a Minimal Working Example (MWE) the illustrates your problem. That is, a piece of code that can be compiled by anyone with a standard TeX distribution, so that we can check what you problem is and try to solve it.

    – Phelype Oleinik
    Dec 26 '17 at 15:05











  • Is this the output you expect: imgur.com/V5uQ3hF ?

    – Phelype Oleinik
    Dec 27 '17 at 0:26











  • @PhelypeOleinik That's the template. If I add more content inside the table (e.g. 2 pages document), the spacing and the table arrangement will change.

    – JOHN
    Dec 27 '17 at 1:53














1












1








1








I got some tables in a documents. If the content inside the table fits inside one page, the spacing between lines and table arrangement are usual. However, if the content is longer, the two table will swap positions and the spacing between other lines widen.



Please check the code here https://github.com/kychanbp/HSF-Forms-Generation



Under template --> form b.



A normal one page document
A normal one page document



Two page document: table order changed. Sometimes, spacing changed too



The table order is wrong



How can I fix it?










share|improve this question
















I got some tables in a documents. If the content inside the table fits inside one page, the spacing between lines and table arrangement are usual. However, if the content is longer, the two table will swap positions and the spacing between other lines widen.



Please check the code here https://github.com/kychanbp/HSF-Forms-Generation



Under template --> form b.



A normal one page document
A normal one page document



Two page document: table order changed. Sometimes, spacing changed too



The table order is wrong



How can I fix it?







tables formatting






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 27 '17 at 1:57







JOHN

















asked Dec 26 '17 at 15:03









JOHN JOHN

1204




1204








  • 1





    Hello, and welcome to tex.sx! Please add a Minimal Working Example (MWE) the illustrates your problem. That is, a piece of code that can be compiled by anyone with a standard TeX distribution, so that we can check what you problem is and try to solve it.

    – Phelype Oleinik
    Dec 26 '17 at 15:05











  • Is this the output you expect: imgur.com/V5uQ3hF ?

    – Phelype Oleinik
    Dec 27 '17 at 0:26











  • @PhelypeOleinik That's the template. If I add more content inside the table (e.g. 2 pages document), the spacing and the table arrangement will change.

    – JOHN
    Dec 27 '17 at 1:53














  • 1





    Hello, and welcome to tex.sx! Please add a Minimal Working Example (MWE) the illustrates your problem. That is, a piece of code that can be compiled by anyone with a standard TeX distribution, so that we can check what you problem is and try to solve it.

    – Phelype Oleinik
    Dec 26 '17 at 15:05











  • Is this the output you expect: imgur.com/V5uQ3hF ?

    – Phelype Oleinik
    Dec 27 '17 at 0:26











  • @PhelypeOleinik That's the template. If I add more content inside the table (e.g. 2 pages document), the spacing and the table arrangement will change.

    – JOHN
    Dec 27 '17 at 1:53








1




1





Hello, and welcome to tex.sx! Please add a Minimal Working Example (MWE) the illustrates your problem. That is, a piece of code that can be compiled by anyone with a standard TeX distribution, so that we can check what you problem is and try to solve it.

– Phelype Oleinik
Dec 26 '17 at 15:05





Hello, and welcome to tex.sx! Please add a Minimal Working Example (MWE) the illustrates your problem. That is, a piece of code that can be compiled by anyone with a standard TeX distribution, so that we can check what you problem is and try to solve it.

– Phelype Oleinik
Dec 26 '17 at 15:05













Is this the output you expect: imgur.com/V5uQ3hF ?

– Phelype Oleinik
Dec 27 '17 at 0:26





Is this the output you expect: imgur.com/V5uQ3hF ?

– Phelype Oleinik
Dec 27 '17 at 0:26













@PhelypeOleinik That's the template. If I add more content inside the table (e.g. 2 pages document), the spacing and the table arrangement will change.

– JOHN
Dec 27 '17 at 1:53





@PhelypeOleinik That's the template. If I add more content inside the table (e.g. 2 pages document), the spacing and the table arrangement will change.

– JOHN
Dec 27 '17 at 1:53










1 Answer
1






active

oldest

votes


















0














You are using environment table which has the ability to float. If the table fits not on the rest of the free page it simply floats to the next page.



To avoid this simply do not use table.



Remember to break manually the table into two parts if it gets longer than one page ...



To get no different spacing between the lines of your document please add command raggedbottom to the preamble.



So with the following complete MWE (see marking <====== for important code changings):



documentclass[11pt]{book}

usepackage[%
a4paper,
top=25mm,
bottom=10mm,
left=32mm,
right=32mm,
marginparwidth=1.75cm,
showframe % <============================ to visualize the typing area and margins
]{geometry}

usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{helvet}
renewcommand{familydefault}{sfdefault}
usepackage[english]{babel}
usepackage{soul}
%usepackage{epsfig} % <=======================================================
usepackage{epstopdf}
epstopdfsetup{update}
usepackage[demo]{graphicx}
usepackage{float}
usepackage{array}
newcolumntype{L}[1]{>{raggedrightarraybackslash}m{#1}}

usepackage{amsmath,amssymb,amstext}

usepackage{titlesec}
setcounter{secnumdepth}{0}
titleformat{section}
{normalfontfontsize{11pt}{12pt}selectfont
bfseriesfilright}{}{0em}{}
%
titlespacing{section}
{0pc}{*3.2}{*1.0}[0pc]

titleformat{subsection}
{normalfontfontsize{11pt}{12pt}selectfont
bfseriesfilright}{}{0.5em}{}
%
titlespacing{subsection}
{0pc}{*3.2}{*0.2}[0pc]

usepackage{pifont}
newcommand{cmark}{ding{51}}%
newcommand{xmark}{ding{55}}
usepackage{makecell}
usepackage{arydshln}
usepackage{enumitem}
setlist[itemize]{%
labelindent=*,
leftmargin=*,
itemsep=-3pt,
label={makebox[0pt][l]{$square$}raisebox{.15ex}{hspace{0.1em}$checkmark$}}%
}

newcommand{nocheck}{mbox{makebox[0pt][l]{$square$}raisebox{.15ex}{hspace{0.1em}{$phantom{checkmark}$}}}}
parindent=0mm
pagestyle{empty}

raggedbottom % <=======================================================
%flushbottom


begin{document}

Form B

section{Expansion of Hong Kong International Airport into a Three-Runway System}

Marine Travel Routes and Management Plan for High Speed Ferries of SkyPier

subsection{ul{Case Audit and Checking Record}}

{renewcommand{arraystretch}{1.4}
%begin{table}[htb] % <=======================================================
fontsize{11pt}{15pt}selectfont
begin{tabular}{|>{raggedright}p{38mm}|
p{99mm}<{raggedright}|}hline
%%%
Reference Plan: & Marine Travel Routes and Management Plan for High Speed Ferries of SkyPier (The Plan) (EP Condition 2.10)
\ hline
Monitoring Data: & Ferry movement data collected in the period between
newline
ul{4 October 2017 to 5 October 2017}
\[1.0mm]hline
Information and Data Checked: &
begin{minipage}[t]{110mm}
begin{itemize}
item Automatic Identification System (AIS)
item Data Daily SkyPier HSF movements
item Record of potential deviations
item Response provided by the ferry operators
end{itemize}vspace*{-1.5ex}
end{minipage}
\hline
Case No: & textit{SPNC-874}
\ hline
Date: & textit{4 October 2017}
\ hline
Ferry Details: & Ferry Number: 3A167
newline Average Speed: 13.5 knotsnewline Range of Instantaneous Speed: 13 -- 14 knotsnewline Duration of Instantaneous Speeding: 2
\ hline
Comments and Observations newline From ET: & Insufficient AIS data was recorded. The AIS signals could not be received which might due to interference effect. Based on available AIS data, the speed and route of vessel could not be analyzed whether it had any deviation within the Speed Control Zone (SCZ). Vessel captain has provided the AIS plots which indicated the vessel entered the SCZ though the gate access point and no speeding in the SCZ was observed. Ferry operator should investigate the reason for the AIS failure and check the AIS system to ensure that sufficient data points can be received. \ hline
Comments and Observationsnewline From IEC Marine Advisor: & FUXk
\ hline
Reason(s) valid\ according to \ The Plan? &
begin{minipage}[t]{95mm}
begin{itemize}
item Yes (case closed)
item[nocheck] No (The ET to confirm with AA MCDD on the required follow up actions)
end{itemize}vspace*{-1.5ex}
end{minipage}
\hline
end{tabular}
%end{table} % <=======================================================
}


{fontsize{10pt}{12pt}selectfont
begin{tabular}{:L{23mm}:L{35mm}:L{35mm}:L{35mm}:}
hdashline
Gape[14pt]{}& makecell[l]{ET Leader /\[2mm]
ET's Representative} &
makecell[l]{IEC/ \[2mm]
IEC's Representative} &
makecell[l]{PM /\[2mm]
PM's Representative} \ hline
Signature &includegraphics[scale=1.0]{sig1.pdf}
& & \ hdashline
Name & Terence Kong & &
Gape[10pt]{}
\hdashline
end{tabular}
}


end{document}


you get:



first page



and:



second page






share|improve this answer


























  • Yes. It works. but how can I remove the lines around the table?

    – JOHN
    Dec 30 '17 at 12:48











  • Comment or delete option showframe for geometry. It is for visualizing the typing area and margins ...

    – Kurt
    Dec 30 '17 at 15:44











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f407659%2fstrange-formatting-after-starting-second-page%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You are using environment table which has the ability to float. If the table fits not on the rest of the free page it simply floats to the next page.



To avoid this simply do not use table.



Remember to break manually the table into two parts if it gets longer than one page ...



To get no different spacing between the lines of your document please add command raggedbottom to the preamble.



So with the following complete MWE (see marking <====== for important code changings):



documentclass[11pt]{book}

usepackage[%
a4paper,
top=25mm,
bottom=10mm,
left=32mm,
right=32mm,
marginparwidth=1.75cm,
showframe % <============================ to visualize the typing area and margins
]{geometry}

usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{helvet}
renewcommand{familydefault}{sfdefault}
usepackage[english]{babel}
usepackage{soul}
%usepackage{epsfig} % <=======================================================
usepackage{epstopdf}
epstopdfsetup{update}
usepackage[demo]{graphicx}
usepackage{float}
usepackage{array}
newcolumntype{L}[1]{>{raggedrightarraybackslash}m{#1}}

usepackage{amsmath,amssymb,amstext}

usepackage{titlesec}
setcounter{secnumdepth}{0}
titleformat{section}
{normalfontfontsize{11pt}{12pt}selectfont
bfseriesfilright}{}{0em}{}
%
titlespacing{section}
{0pc}{*3.2}{*1.0}[0pc]

titleformat{subsection}
{normalfontfontsize{11pt}{12pt}selectfont
bfseriesfilright}{}{0.5em}{}
%
titlespacing{subsection}
{0pc}{*3.2}{*0.2}[0pc]

usepackage{pifont}
newcommand{cmark}{ding{51}}%
newcommand{xmark}{ding{55}}
usepackage{makecell}
usepackage{arydshln}
usepackage{enumitem}
setlist[itemize]{%
labelindent=*,
leftmargin=*,
itemsep=-3pt,
label={makebox[0pt][l]{$square$}raisebox{.15ex}{hspace{0.1em}$checkmark$}}%
}

newcommand{nocheck}{mbox{makebox[0pt][l]{$square$}raisebox{.15ex}{hspace{0.1em}{$phantom{checkmark}$}}}}
parindent=0mm
pagestyle{empty}

raggedbottom % <=======================================================
%flushbottom


begin{document}

Form B

section{Expansion of Hong Kong International Airport into a Three-Runway System}

Marine Travel Routes and Management Plan for High Speed Ferries of SkyPier

subsection{ul{Case Audit and Checking Record}}

{renewcommand{arraystretch}{1.4}
%begin{table}[htb] % <=======================================================
fontsize{11pt}{15pt}selectfont
begin{tabular}{|>{raggedright}p{38mm}|
p{99mm}<{raggedright}|}hline
%%%
Reference Plan: & Marine Travel Routes and Management Plan for High Speed Ferries of SkyPier (The Plan) (EP Condition 2.10)
\ hline
Monitoring Data: & Ferry movement data collected in the period between
newline
ul{4 October 2017 to 5 October 2017}
\[1.0mm]hline
Information and Data Checked: &
begin{minipage}[t]{110mm}
begin{itemize}
item Automatic Identification System (AIS)
item Data Daily SkyPier HSF movements
item Record of potential deviations
item Response provided by the ferry operators
end{itemize}vspace*{-1.5ex}
end{minipage}
\hline
Case No: & textit{SPNC-874}
\ hline
Date: & textit{4 October 2017}
\ hline
Ferry Details: & Ferry Number: 3A167
newline Average Speed: 13.5 knotsnewline Range of Instantaneous Speed: 13 -- 14 knotsnewline Duration of Instantaneous Speeding: 2
\ hline
Comments and Observations newline From ET: & Insufficient AIS data was recorded. The AIS signals could not be received which might due to interference effect. Based on available AIS data, the speed and route of vessel could not be analyzed whether it had any deviation within the Speed Control Zone (SCZ). Vessel captain has provided the AIS plots which indicated the vessel entered the SCZ though the gate access point and no speeding in the SCZ was observed. Ferry operator should investigate the reason for the AIS failure and check the AIS system to ensure that sufficient data points can be received. \ hline
Comments and Observationsnewline From IEC Marine Advisor: & FUXk
\ hline
Reason(s) valid\ according to \ The Plan? &
begin{minipage}[t]{95mm}
begin{itemize}
item Yes (case closed)
item[nocheck] No (The ET to confirm with AA MCDD on the required follow up actions)
end{itemize}vspace*{-1.5ex}
end{minipage}
\hline
end{tabular}
%end{table} % <=======================================================
}


{fontsize{10pt}{12pt}selectfont
begin{tabular}{:L{23mm}:L{35mm}:L{35mm}:L{35mm}:}
hdashline
Gape[14pt]{}& makecell[l]{ET Leader /\[2mm]
ET's Representative} &
makecell[l]{IEC/ \[2mm]
IEC's Representative} &
makecell[l]{PM /\[2mm]
PM's Representative} \ hline
Signature &includegraphics[scale=1.0]{sig1.pdf}
& & \ hdashline
Name & Terence Kong & &
Gape[10pt]{}
\hdashline
end{tabular}
}


end{document}


you get:



first page



and:



second page






share|improve this answer


























  • Yes. It works. but how can I remove the lines around the table?

    – JOHN
    Dec 30 '17 at 12:48











  • Comment or delete option showframe for geometry. It is for visualizing the typing area and margins ...

    – Kurt
    Dec 30 '17 at 15:44
















0














You are using environment table which has the ability to float. If the table fits not on the rest of the free page it simply floats to the next page.



To avoid this simply do not use table.



Remember to break manually the table into two parts if it gets longer than one page ...



To get no different spacing between the lines of your document please add command raggedbottom to the preamble.



So with the following complete MWE (see marking <====== for important code changings):



documentclass[11pt]{book}

usepackage[%
a4paper,
top=25mm,
bottom=10mm,
left=32mm,
right=32mm,
marginparwidth=1.75cm,
showframe % <============================ to visualize the typing area and margins
]{geometry}

usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{helvet}
renewcommand{familydefault}{sfdefault}
usepackage[english]{babel}
usepackage{soul}
%usepackage{epsfig} % <=======================================================
usepackage{epstopdf}
epstopdfsetup{update}
usepackage[demo]{graphicx}
usepackage{float}
usepackage{array}
newcolumntype{L}[1]{>{raggedrightarraybackslash}m{#1}}

usepackage{amsmath,amssymb,amstext}

usepackage{titlesec}
setcounter{secnumdepth}{0}
titleformat{section}
{normalfontfontsize{11pt}{12pt}selectfont
bfseriesfilright}{}{0em}{}
%
titlespacing{section}
{0pc}{*3.2}{*1.0}[0pc]

titleformat{subsection}
{normalfontfontsize{11pt}{12pt}selectfont
bfseriesfilright}{}{0.5em}{}
%
titlespacing{subsection}
{0pc}{*3.2}{*0.2}[0pc]

usepackage{pifont}
newcommand{cmark}{ding{51}}%
newcommand{xmark}{ding{55}}
usepackage{makecell}
usepackage{arydshln}
usepackage{enumitem}
setlist[itemize]{%
labelindent=*,
leftmargin=*,
itemsep=-3pt,
label={makebox[0pt][l]{$square$}raisebox{.15ex}{hspace{0.1em}$checkmark$}}%
}

newcommand{nocheck}{mbox{makebox[0pt][l]{$square$}raisebox{.15ex}{hspace{0.1em}{$phantom{checkmark}$}}}}
parindent=0mm
pagestyle{empty}

raggedbottom % <=======================================================
%flushbottom


begin{document}

Form B

section{Expansion of Hong Kong International Airport into a Three-Runway System}

Marine Travel Routes and Management Plan for High Speed Ferries of SkyPier

subsection{ul{Case Audit and Checking Record}}

{renewcommand{arraystretch}{1.4}
%begin{table}[htb] % <=======================================================
fontsize{11pt}{15pt}selectfont
begin{tabular}{|>{raggedright}p{38mm}|
p{99mm}<{raggedright}|}hline
%%%
Reference Plan: & Marine Travel Routes and Management Plan for High Speed Ferries of SkyPier (The Plan) (EP Condition 2.10)
\ hline
Monitoring Data: & Ferry movement data collected in the period between
newline
ul{4 October 2017 to 5 October 2017}
\[1.0mm]hline
Information and Data Checked: &
begin{minipage}[t]{110mm}
begin{itemize}
item Automatic Identification System (AIS)
item Data Daily SkyPier HSF movements
item Record of potential deviations
item Response provided by the ferry operators
end{itemize}vspace*{-1.5ex}
end{minipage}
\hline
Case No: & textit{SPNC-874}
\ hline
Date: & textit{4 October 2017}
\ hline
Ferry Details: & Ferry Number: 3A167
newline Average Speed: 13.5 knotsnewline Range of Instantaneous Speed: 13 -- 14 knotsnewline Duration of Instantaneous Speeding: 2
\ hline
Comments and Observations newline From ET: & Insufficient AIS data was recorded. The AIS signals could not be received which might due to interference effect. Based on available AIS data, the speed and route of vessel could not be analyzed whether it had any deviation within the Speed Control Zone (SCZ). Vessel captain has provided the AIS plots which indicated the vessel entered the SCZ though the gate access point and no speeding in the SCZ was observed. Ferry operator should investigate the reason for the AIS failure and check the AIS system to ensure that sufficient data points can be received. \ hline
Comments and Observationsnewline From IEC Marine Advisor: & FUXk
\ hline
Reason(s) valid\ according to \ The Plan? &
begin{minipage}[t]{95mm}
begin{itemize}
item Yes (case closed)
item[nocheck] No (The ET to confirm with AA MCDD on the required follow up actions)
end{itemize}vspace*{-1.5ex}
end{minipage}
\hline
end{tabular}
%end{table} % <=======================================================
}


{fontsize{10pt}{12pt}selectfont
begin{tabular}{:L{23mm}:L{35mm}:L{35mm}:L{35mm}:}
hdashline
Gape[14pt]{}& makecell[l]{ET Leader /\[2mm]
ET's Representative} &
makecell[l]{IEC/ \[2mm]
IEC's Representative} &
makecell[l]{PM /\[2mm]
PM's Representative} \ hline
Signature &includegraphics[scale=1.0]{sig1.pdf}
& & \ hdashline
Name & Terence Kong & &
Gape[10pt]{}
\hdashline
end{tabular}
}


end{document}


you get:



first page



and:



second page






share|improve this answer


























  • Yes. It works. but how can I remove the lines around the table?

    – JOHN
    Dec 30 '17 at 12:48











  • Comment or delete option showframe for geometry. It is for visualizing the typing area and margins ...

    – Kurt
    Dec 30 '17 at 15:44














0












0








0







You are using environment table which has the ability to float. If the table fits not on the rest of the free page it simply floats to the next page.



To avoid this simply do not use table.



Remember to break manually the table into two parts if it gets longer than one page ...



To get no different spacing between the lines of your document please add command raggedbottom to the preamble.



So with the following complete MWE (see marking <====== for important code changings):



documentclass[11pt]{book}

usepackage[%
a4paper,
top=25mm,
bottom=10mm,
left=32mm,
right=32mm,
marginparwidth=1.75cm,
showframe % <============================ to visualize the typing area and margins
]{geometry}

usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{helvet}
renewcommand{familydefault}{sfdefault}
usepackage[english]{babel}
usepackage{soul}
%usepackage{epsfig} % <=======================================================
usepackage{epstopdf}
epstopdfsetup{update}
usepackage[demo]{graphicx}
usepackage{float}
usepackage{array}
newcolumntype{L}[1]{>{raggedrightarraybackslash}m{#1}}

usepackage{amsmath,amssymb,amstext}

usepackage{titlesec}
setcounter{secnumdepth}{0}
titleformat{section}
{normalfontfontsize{11pt}{12pt}selectfont
bfseriesfilright}{}{0em}{}
%
titlespacing{section}
{0pc}{*3.2}{*1.0}[0pc]

titleformat{subsection}
{normalfontfontsize{11pt}{12pt}selectfont
bfseriesfilright}{}{0.5em}{}
%
titlespacing{subsection}
{0pc}{*3.2}{*0.2}[0pc]

usepackage{pifont}
newcommand{cmark}{ding{51}}%
newcommand{xmark}{ding{55}}
usepackage{makecell}
usepackage{arydshln}
usepackage{enumitem}
setlist[itemize]{%
labelindent=*,
leftmargin=*,
itemsep=-3pt,
label={makebox[0pt][l]{$square$}raisebox{.15ex}{hspace{0.1em}$checkmark$}}%
}

newcommand{nocheck}{mbox{makebox[0pt][l]{$square$}raisebox{.15ex}{hspace{0.1em}{$phantom{checkmark}$}}}}
parindent=0mm
pagestyle{empty}

raggedbottom % <=======================================================
%flushbottom


begin{document}

Form B

section{Expansion of Hong Kong International Airport into a Three-Runway System}

Marine Travel Routes and Management Plan for High Speed Ferries of SkyPier

subsection{ul{Case Audit and Checking Record}}

{renewcommand{arraystretch}{1.4}
%begin{table}[htb] % <=======================================================
fontsize{11pt}{15pt}selectfont
begin{tabular}{|>{raggedright}p{38mm}|
p{99mm}<{raggedright}|}hline
%%%
Reference Plan: & Marine Travel Routes and Management Plan for High Speed Ferries of SkyPier (The Plan) (EP Condition 2.10)
\ hline
Monitoring Data: & Ferry movement data collected in the period between
newline
ul{4 October 2017 to 5 October 2017}
\[1.0mm]hline
Information and Data Checked: &
begin{minipage}[t]{110mm}
begin{itemize}
item Automatic Identification System (AIS)
item Data Daily SkyPier HSF movements
item Record of potential deviations
item Response provided by the ferry operators
end{itemize}vspace*{-1.5ex}
end{minipage}
\hline
Case No: & textit{SPNC-874}
\ hline
Date: & textit{4 October 2017}
\ hline
Ferry Details: & Ferry Number: 3A167
newline Average Speed: 13.5 knotsnewline Range of Instantaneous Speed: 13 -- 14 knotsnewline Duration of Instantaneous Speeding: 2
\ hline
Comments and Observations newline From ET: & Insufficient AIS data was recorded. The AIS signals could not be received which might due to interference effect. Based on available AIS data, the speed and route of vessel could not be analyzed whether it had any deviation within the Speed Control Zone (SCZ). Vessel captain has provided the AIS plots which indicated the vessel entered the SCZ though the gate access point and no speeding in the SCZ was observed. Ferry operator should investigate the reason for the AIS failure and check the AIS system to ensure that sufficient data points can be received. \ hline
Comments and Observationsnewline From IEC Marine Advisor: & FUXk
\ hline
Reason(s) valid\ according to \ The Plan? &
begin{minipage}[t]{95mm}
begin{itemize}
item Yes (case closed)
item[nocheck] No (The ET to confirm with AA MCDD on the required follow up actions)
end{itemize}vspace*{-1.5ex}
end{minipage}
\hline
end{tabular}
%end{table} % <=======================================================
}


{fontsize{10pt}{12pt}selectfont
begin{tabular}{:L{23mm}:L{35mm}:L{35mm}:L{35mm}:}
hdashline
Gape[14pt]{}& makecell[l]{ET Leader /\[2mm]
ET's Representative} &
makecell[l]{IEC/ \[2mm]
IEC's Representative} &
makecell[l]{PM /\[2mm]
PM's Representative} \ hline
Signature &includegraphics[scale=1.0]{sig1.pdf}
& & \ hdashline
Name & Terence Kong & &
Gape[10pt]{}
\hdashline
end{tabular}
}


end{document}


you get:



first page



and:



second page






share|improve this answer















You are using environment table which has the ability to float. If the table fits not on the rest of the free page it simply floats to the next page.



To avoid this simply do not use table.



Remember to break manually the table into two parts if it gets longer than one page ...



To get no different spacing between the lines of your document please add command raggedbottom to the preamble.



So with the following complete MWE (see marking <====== for important code changings):



documentclass[11pt]{book}

usepackage[%
a4paper,
top=25mm,
bottom=10mm,
left=32mm,
right=32mm,
marginparwidth=1.75cm,
showframe % <============================ to visualize the typing area and margins
]{geometry}

usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{helvet}
renewcommand{familydefault}{sfdefault}
usepackage[english]{babel}
usepackage{soul}
%usepackage{epsfig} % <=======================================================
usepackage{epstopdf}
epstopdfsetup{update}
usepackage[demo]{graphicx}
usepackage{float}
usepackage{array}
newcolumntype{L}[1]{>{raggedrightarraybackslash}m{#1}}

usepackage{amsmath,amssymb,amstext}

usepackage{titlesec}
setcounter{secnumdepth}{0}
titleformat{section}
{normalfontfontsize{11pt}{12pt}selectfont
bfseriesfilright}{}{0em}{}
%
titlespacing{section}
{0pc}{*3.2}{*1.0}[0pc]

titleformat{subsection}
{normalfontfontsize{11pt}{12pt}selectfont
bfseriesfilright}{}{0.5em}{}
%
titlespacing{subsection}
{0pc}{*3.2}{*0.2}[0pc]

usepackage{pifont}
newcommand{cmark}{ding{51}}%
newcommand{xmark}{ding{55}}
usepackage{makecell}
usepackage{arydshln}
usepackage{enumitem}
setlist[itemize]{%
labelindent=*,
leftmargin=*,
itemsep=-3pt,
label={makebox[0pt][l]{$square$}raisebox{.15ex}{hspace{0.1em}$checkmark$}}%
}

newcommand{nocheck}{mbox{makebox[0pt][l]{$square$}raisebox{.15ex}{hspace{0.1em}{$phantom{checkmark}$}}}}
parindent=0mm
pagestyle{empty}

raggedbottom % <=======================================================
%flushbottom


begin{document}

Form B

section{Expansion of Hong Kong International Airport into a Three-Runway System}

Marine Travel Routes and Management Plan for High Speed Ferries of SkyPier

subsection{ul{Case Audit and Checking Record}}

{renewcommand{arraystretch}{1.4}
%begin{table}[htb] % <=======================================================
fontsize{11pt}{15pt}selectfont
begin{tabular}{|>{raggedright}p{38mm}|
p{99mm}<{raggedright}|}hline
%%%
Reference Plan: & Marine Travel Routes and Management Plan for High Speed Ferries of SkyPier (The Plan) (EP Condition 2.10)
\ hline
Monitoring Data: & Ferry movement data collected in the period between
newline
ul{4 October 2017 to 5 October 2017}
\[1.0mm]hline
Information and Data Checked: &
begin{minipage}[t]{110mm}
begin{itemize}
item Automatic Identification System (AIS)
item Data Daily SkyPier HSF movements
item Record of potential deviations
item Response provided by the ferry operators
end{itemize}vspace*{-1.5ex}
end{minipage}
\hline
Case No: & textit{SPNC-874}
\ hline
Date: & textit{4 October 2017}
\ hline
Ferry Details: & Ferry Number: 3A167
newline Average Speed: 13.5 knotsnewline Range of Instantaneous Speed: 13 -- 14 knotsnewline Duration of Instantaneous Speeding: 2
\ hline
Comments and Observations newline From ET: & Insufficient AIS data was recorded. The AIS signals could not be received which might due to interference effect. Based on available AIS data, the speed and route of vessel could not be analyzed whether it had any deviation within the Speed Control Zone (SCZ). Vessel captain has provided the AIS plots which indicated the vessel entered the SCZ though the gate access point and no speeding in the SCZ was observed. Ferry operator should investigate the reason for the AIS failure and check the AIS system to ensure that sufficient data points can be received. \ hline
Comments and Observationsnewline From IEC Marine Advisor: & FUXk
\ hline
Reason(s) valid\ according to \ The Plan? &
begin{minipage}[t]{95mm}
begin{itemize}
item Yes (case closed)
item[nocheck] No (The ET to confirm with AA MCDD on the required follow up actions)
end{itemize}vspace*{-1.5ex}
end{minipage}
\hline
end{tabular}
%end{table} % <=======================================================
}


{fontsize{10pt}{12pt}selectfont
begin{tabular}{:L{23mm}:L{35mm}:L{35mm}:L{35mm}:}
hdashline
Gape[14pt]{}& makecell[l]{ET Leader /\[2mm]
ET's Representative} &
makecell[l]{IEC/ \[2mm]
IEC's Representative} &
makecell[l]{PM /\[2mm]
PM's Representative} \ hline
Signature &includegraphics[scale=1.0]{sig1.pdf}
& & \ hdashline
Name & Terence Kong & &
Gape[10pt]{}
\hdashline
end{tabular}
}


end{document}


you get:



first page



and:



second page







share|improve this answer














share|improve this answer



share|improve this answer








edited 5 mins ago

























answered Dec 27 '17 at 9:13









KurtKurt

38.2k848162




38.2k848162













  • Yes. It works. but how can I remove the lines around the table?

    – JOHN
    Dec 30 '17 at 12:48











  • Comment or delete option showframe for geometry. It is for visualizing the typing area and margins ...

    – Kurt
    Dec 30 '17 at 15:44



















  • Yes. It works. but how can I remove the lines around the table?

    – JOHN
    Dec 30 '17 at 12:48











  • Comment or delete option showframe for geometry. It is for visualizing the typing area and margins ...

    – Kurt
    Dec 30 '17 at 15:44

















Yes. It works. but how can I remove the lines around the table?

– JOHN
Dec 30 '17 at 12:48





Yes. It works. but how can I remove the lines around the table?

– JOHN
Dec 30 '17 at 12:48













Comment or delete option showframe for geometry. It is for visualizing the typing area and margins ...

– Kurt
Dec 30 '17 at 15:44





Comment or delete option showframe for geometry. It is for visualizing the typing area and margins ...

– Kurt
Dec 30 '17 at 15:44


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f407659%2fstrange-formatting-after-starting-second-page%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt