Customisation of longtable caption












1














I have to change the caption style of a longtable to obtain the same style of a normal table;



i.e. to get:



enter image description here,



instead of:



enter image description here.



In addition, I'd like to resize the longtable without changing the dimensions of the caption. I found some solutions that in the case of my document give me errors.



Any idea? Thanks.



Example:



documentclass[12pt,twoside,cucitura,oldstyle,autoretitolo,classica,greek]{toptesi}
usepackage[or]{teubner}
usepackage[utf8]{inputenc}
usepackage{array}
usepackage{wrapfig}
usepackage{multirow}
usepackage{tabu}
usepackage[flushleft]{threeparttable}
usepackage{fixltx2e}
usepackage{import}
usepackage{booktabs}
usepackage{multirow}
usepackage{makecell}
usepackage[table,xcdraw]{xcolor}
usepackage[toc,page]{appendix}
usepackage{notoccite}
usepackage{amssymb}
usepackage{siunitx}
usepackage{enumerate}
usepackage{rotating}
usepackage{listings}
usepackage{longtable}
begin{document}errorcontextlines=9
english

begin{longtable}{c|c|c|c|c|c|c}
caption{Test.}
label{t:test}\
hlinehline
& & & & & & \
hlinehline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hlinehline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hlinehline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hlinehline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hlinehline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hlinehline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hlinehline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hline
& & & & & & \
hlinehline
end{longtable}

begin{table}[ht] centering
caption{Test.}
label{t:RP}
scalebox{0.7}{
begin{tabular}{c|c}
toprule
textbf{...} & textbf{...} \ hline
.& \ hline
& \ hline
& multirow{6}{*}{...} \ cline{1-1}
& \ cline{1-1}
& \ cline{1-1}
& \ cline{1-1}
& \ cline{1-1}
& \ hline
. & ... \ bottomrule
end{tabular}}
end{table}

end{document}









share|improve this question





























    1














    I have to change the caption style of a longtable to obtain the same style of a normal table;



    i.e. to get:



    enter image description here,



    instead of:



    enter image description here.



    In addition, I'd like to resize the longtable without changing the dimensions of the caption. I found some solutions that in the case of my document give me errors.



    Any idea? Thanks.



    Example:



    documentclass[12pt,twoside,cucitura,oldstyle,autoretitolo,classica,greek]{toptesi}
    usepackage[or]{teubner}
    usepackage[utf8]{inputenc}
    usepackage{array}
    usepackage{wrapfig}
    usepackage{multirow}
    usepackage{tabu}
    usepackage[flushleft]{threeparttable}
    usepackage{fixltx2e}
    usepackage{import}
    usepackage{booktabs}
    usepackage{multirow}
    usepackage{makecell}
    usepackage[table,xcdraw]{xcolor}
    usepackage[toc,page]{appendix}
    usepackage{notoccite}
    usepackage{amssymb}
    usepackage{siunitx}
    usepackage{enumerate}
    usepackage{rotating}
    usepackage{listings}
    usepackage{longtable}
    begin{document}errorcontextlines=9
    english

    begin{longtable}{c|c|c|c|c|c|c}
    caption{Test.}
    label{t:test}\
    hlinehline
    & & & & & & \
    hlinehline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hlinehline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hlinehline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hlinehline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hlinehline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hlinehline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hlinehline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hline
    & & & & & & \
    hlinehline
    end{longtable}

    begin{table}[ht] centering
    caption{Test.}
    label{t:RP}
    scalebox{0.7}{
    begin{tabular}{c|c}
    toprule
    textbf{...} & textbf{...} \ hline
    .& \ hline
    & \ hline
    & multirow{6}{*}{...} \ cline{1-1}
    & \ cline{1-1}
    & \ cline{1-1}
    & \ cline{1-1}
    & \ cline{1-1}
    & \ hline
    . & ... \ bottomrule
    end{tabular}}
    end{table}

    end{document}









    share|improve this question



























      1












      1








      1


      1





      I have to change the caption style of a longtable to obtain the same style of a normal table;



      i.e. to get:



      enter image description here,



      instead of:



      enter image description here.



      In addition, I'd like to resize the longtable without changing the dimensions of the caption. I found some solutions that in the case of my document give me errors.



      Any idea? Thanks.



      Example:



      documentclass[12pt,twoside,cucitura,oldstyle,autoretitolo,classica,greek]{toptesi}
      usepackage[or]{teubner}
      usepackage[utf8]{inputenc}
      usepackage{array}
      usepackage{wrapfig}
      usepackage{multirow}
      usepackage{tabu}
      usepackage[flushleft]{threeparttable}
      usepackage{fixltx2e}
      usepackage{import}
      usepackage{booktabs}
      usepackage{multirow}
      usepackage{makecell}
      usepackage[table,xcdraw]{xcolor}
      usepackage[toc,page]{appendix}
      usepackage{notoccite}
      usepackage{amssymb}
      usepackage{siunitx}
      usepackage{enumerate}
      usepackage{rotating}
      usepackage{listings}
      usepackage{longtable}
      begin{document}errorcontextlines=9
      english

      begin{longtable}{c|c|c|c|c|c|c}
      caption{Test.}
      label{t:test}\
      hlinehline
      & & & & & & \
      hlinehline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hlinehline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hlinehline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hlinehline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hlinehline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hlinehline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hlinehline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hlinehline
      end{longtable}

      begin{table}[ht] centering
      caption{Test.}
      label{t:RP}
      scalebox{0.7}{
      begin{tabular}{c|c}
      toprule
      textbf{...} & textbf{...} \ hline
      .& \ hline
      & \ hline
      & multirow{6}{*}{...} \ cline{1-1}
      & \ cline{1-1}
      & \ cline{1-1}
      & \ cline{1-1}
      & \ cline{1-1}
      & \ hline
      . & ... \ bottomrule
      end{tabular}}
      end{table}

      end{document}









      share|improve this question















      I have to change the caption style of a longtable to obtain the same style of a normal table;



      i.e. to get:



      enter image description here,



      instead of:



      enter image description here.



      In addition, I'd like to resize the longtable without changing the dimensions of the caption. I found some solutions that in the case of my document give me errors.



      Any idea? Thanks.



      Example:



      documentclass[12pt,twoside,cucitura,oldstyle,autoretitolo,classica,greek]{toptesi}
      usepackage[or]{teubner}
      usepackage[utf8]{inputenc}
      usepackage{array}
      usepackage{wrapfig}
      usepackage{multirow}
      usepackage{tabu}
      usepackage[flushleft]{threeparttable}
      usepackage{fixltx2e}
      usepackage{import}
      usepackage{booktabs}
      usepackage{multirow}
      usepackage{makecell}
      usepackage[table,xcdraw]{xcolor}
      usepackage[toc,page]{appendix}
      usepackage{notoccite}
      usepackage{amssymb}
      usepackage{siunitx}
      usepackage{enumerate}
      usepackage{rotating}
      usepackage{listings}
      usepackage{longtable}
      begin{document}errorcontextlines=9
      english

      begin{longtable}{c|c|c|c|c|c|c}
      caption{Test.}
      label{t:test}\
      hlinehline
      & & & & & & \
      hlinehline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hlinehline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hlinehline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hlinehline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hlinehline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hlinehline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hlinehline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hline
      & & & & & & \
      hlinehline
      end{longtable}

      begin{table}[ht] centering
      caption{Test.}
      label{t:RP}
      scalebox{0.7}{
      begin{tabular}{c|c}
      toprule
      textbf{...} & textbf{...} \ hline
      .& \ hline
      & \ hline
      & multirow{6}{*}{...} \ cline{1-1}
      & \ cline{1-1}
      & \ cline{1-1}
      & \ cline{1-1}
      & \ cline{1-1}
      & \ hline
      . & ... \ bottomrule
      end{tabular}}
      end{table}

      end{document}






      captions longtable scalebox toptesi






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 19 mins ago









      Mico

      273k30369756




      273k30369756










      asked 31 mins ago









      Mi Ka El

      216




      216



























          active

          oldest

          votes











          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%2f467665%2fcustomisation-of-longtable-caption%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f467665%2fcustomisation-of-longtable-caption%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