title: Latex. Pagebreak into a table
body: <p>I've made a <code>longtable</code> in Latex but it is too long to be in one page, how can I insert a pagebreak to continue the table into the next page? </p>
  
  <p>I've tried with the \pagebreak and it didn't work...</p>
  
  <p><img src="https://i.stack.imgur.com/jhLJY.jpg" alt="enter image description here"></p>
  
  <p>Here it is the code:</p>
  
  <pre><code>\begin{table} [h]
  \footnotesize 
  \setlength\LTleft{-30pt}
  \setlength\LTright{-30pt}   
  \caption{ Communicate static definition} 
  \centering 
  \begin{longtable}{@{\extracolsep{\fill}}c c c c@{}} 
  \hline\hline %inserts double horizontal lines
  Segment &amp; Meaning &amp; Usage &amp; Card.\\ [0.5ex]  
  \hline
  MSH &amp; Message Header &amp; R &amp; [1..1]\\
  [{SFT}] &amp; Software Segment &amp; X &amp; [0..0]\\
  \{ &amp; PATIENT RESULT begin &amp; &amp; \\ \relax
  [ &amp; PATIENT BEGIN &amp; &amp; \\
  PID &amp; Patient Identification &amp; R &amp; [1..1]\\ \relax
  [PID1] &amp; Aditional Demographics &amp; X &amp; [0..0]\\ \relax
  ..[\{NTE\}] &amp; Notes and Comments &amp; X &amp; [0..0]\\ \relax
  ..[\{NK1\}] &amp; Next of Kin/Associated Parties &amp; X &amp; [0..0]\\
  \{ &amp; VISIT begin &amp; &amp; \\
  PV1 &amp; Patient Visit &amp; O &amp; [0..1]\\ \relax
  [PV2] &amp; Patient Visit Additional Info &amp; X &amp; [0..0]\\ \relax
  ] &amp; VISIT end &amp; &amp; \\ \relax
  ] &amp; PATIENT end &amp; &amp; \\ \relax
  \{ &amp; ORDER OBSERVATION begin &amp; &amp; \\ \relax
  [ORC] &amp; Order Common &amp; O &amp; [0..1]\\
  OBR &amp; Observation Request &amp; R &amp; [1..1]\\ \relax
  [\{NTE\}] &amp; Notes and Comments &amp; O &amp; [0..1]\\ \relax
  [\{&amp;TIMING QTY begin &amp; &amp; \\
  TQ1 &amp; Timming/Quantity &amp; O &amp; [0..1]\\  \relax
  [\{TQ2\}] &amp; Timming/Quantity Order Sequence &amp; X &amp; \\ \relax
  \{] &amp; TIMING QTY end &amp; &amp; \\ \relax
  [CTD] &amp; Contact Data &amp; X &amp; [0..0]\\ \relax
  [\{ &amp; OBSERVATION begin &amp; &amp; \\
  OBX &amp; Observation Result &amp; R &amp; [1..1]\\ \relax
  [\{NTE\}] &amp; Notes and Comments &amp; &amp; \\ \relax
  \}] &amp; OBSERVATION end &amp; &amp; \\ \relax
  [\{FT1\}] &amp; Financial Transaction &amp; X &amp; [0..0]\\ \relax
  [\{CT1\}] &amp; Cllinical Trial Identification &amp; X &amp; [0..0]\\ \relax
  [\{ &amp; SPECIMEN begin &amp; &amp; \\ \relax
  SPM &amp; Specimen &amp; X &amp; [0..0]\\ \relax
  [\{OBX\}] &amp; Observation related to Specimen &amp; X &amp; [0..0]\\ \relax
  \}] &amp; SPECIMEN end &amp; &amp; \\ \relax
  \} &amp; ORDER OBSERVATION end &amp; &amp; \\ \relax
  \} &amp; PATIENT RESULT end &amp; &amp; \\ \relax
  [DSC] &amp; Continuation Pointer &amp; X &amp; [0..0]\\
  [1ex] % [1ex] adds vertical space
  \hline %inserts single line
  \end{longtable}
  \label{table:nonlin} % is used to refer this table in the text
  \end{table}
  </code></pre>