Customisation of longtable caption
I have to change the caption style of a longtable
to obtain the same style of a normal table
;
i.e. to get:
,
instead of:
.
In addition, I'd like to reduce the size of 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}
The template toptesi is: https://it.sharelatex.com/templates/thesis/italian-thesis-template-(toptesi).
captions longtable scalebox toptesi
add a comment |
I have to change the caption style of a longtable
to obtain the same style of a normal table
;
i.e. to get:
,
instead of:
.
In addition, I'd like to reduce the size of 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}
The template toptesi is: https://it.sharelatex.com/templates/thesis/italian-thesis-template-(toptesi).
captions longtable scalebox toptesi
Please clarify what you mean by "I'd like to resize the longtable without changing the dimensions of the caption."
– Mico
Dec 28 '18 at 14:43
I have to reduce the size only of the table. I'm usingOverleaf
.
– Mi Ka El
Dec 28 '18 at 14:49
I still don't understand what you mean by "I have to reduce the size only of the table." Are you talking about the horizontal dimension, the vertical dimension, both, or neither?
– Mico
Dec 28 '18 at 14:52
I want a result similar to what you get withscalebox
as in the second table of the code (horizontal and vertical dimension).
– Mi Ka El
Dec 28 '18 at 14:55
add a comment |
I have to change the caption style of a longtable
to obtain the same style of a normal table
;
i.e. to get:
,
instead of:
.
In addition, I'd like to reduce the size of 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}
The template toptesi is: https://it.sharelatex.com/templates/thesis/italian-thesis-template-(toptesi).
captions longtable scalebox toptesi
I have to change the caption style of a longtable
to obtain the same style of a normal table
;
i.e. to get:
,
instead of:
.
In addition, I'd like to reduce the size of 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}
The template toptesi is: https://it.sharelatex.com/templates/thesis/italian-thesis-template-(toptesi).
captions longtable scalebox toptesi
captions longtable scalebox toptesi
edited Dec 28 '18 at 14:46
asked Dec 28 '18 at 14:06
Mi Ka El
317
317
Please clarify what you mean by "I'd like to resize the longtable without changing the dimensions of the caption."
– Mico
Dec 28 '18 at 14:43
I have to reduce the size only of the table. I'm usingOverleaf
.
– Mi Ka El
Dec 28 '18 at 14:49
I still don't understand what you mean by "I have to reduce the size only of the table." Are you talking about the horizontal dimension, the vertical dimension, both, or neither?
– Mico
Dec 28 '18 at 14:52
I want a result similar to what you get withscalebox
as in the second table of the code (horizontal and vertical dimension).
– Mi Ka El
Dec 28 '18 at 14:55
add a comment |
Please clarify what you mean by "I'd like to resize the longtable without changing the dimensions of the caption."
– Mico
Dec 28 '18 at 14:43
I have to reduce the size only of the table. I'm usingOverleaf
.
– Mi Ka El
Dec 28 '18 at 14:49
I still don't understand what you mean by "I have to reduce the size only of the table." Are you talking about the horizontal dimension, the vertical dimension, both, or neither?
– Mico
Dec 28 '18 at 14:52
I want a result similar to what you get withscalebox
as in the second table of the code (horizontal and vertical dimension).
– Mi Ka El
Dec 28 '18 at 14:55
Please clarify what you mean by "I'd like to resize the longtable without changing the dimensions of the caption."
– Mico
Dec 28 '18 at 14:43
Please clarify what you mean by "I'd like to resize the longtable without changing the dimensions of the caption."
– Mico
Dec 28 '18 at 14:43
I have to reduce the size only of the table. I'm using
Overleaf
.– Mi Ka El
Dec 28 '18 at 14:49
I have to reduce the size only of the table. I'm using
Overleaf
.– Mi Ka El
Dec 28 '18 at 14:49
I still don't understand what you mean by "I have to reduce the size only of the table." Are you talking about the horizontal dimension, the vertical dimension, both, or neither?
– Mico
Dec 28 '18 at 14:52
I still don't understand what you mean by "I have to reduce the size only of the table." Are you talking about the horizontal dimension, the vertical dimension, both, or neither?
– Mico
Dec 28 '18 at 14:52
I want a result similar to what you get with
scalebox
as in the second table of the code (horizontal and vertical dimension).– Mi Ka El
Dec 28 '18 at 14:55
I want a result similar to what you get with
scalebox
as in the second table of the code (horizontal and vertical dimension).– Mi Ka El
Dec 28 '18 at 14:55
add a comment |
1 Answer
1
active
oldest
votes
The toptesi
document class file and the associated file toptesi.sty
redefine the properties of the caption
command. Unfortunately, they do so in a way that fails to modify the default properties of the caption
command that's provided by the longtable
environment (and which, AFAICT, mostly replicates the properties of the caption
command provided by the "standard" LaTeX document classes, such as article
and report
).
Rather than hack the code provided by longtable.sty
, I suggest you load the caption
package and issue the following instructions in the preamble:
usepackage{caption}
DeclareCaptionLabelSeparator{toptesi}{.quad}
captionsetup{labelsep=toptesi,font=small}
This solution works but returns some warnings (i.e. Package caption Warning: Unsupported document class (or package) detected, usage of the caption package is not recommended. See the caption package documentation for explanation.)
– Mi Ka El
Dec 28 '18 at 15:07
@MiKaEl - It's a warning message, not an error message. Anyway, if you look at the code intoptesi.sty
, you'll see that the document class takes care not to interfere with thecaption
package.
– Mico
Dec 28 '18 at 15:22
You are right, thanks. Just to know, it gives also this type of warning message: Appendices/AppendixC/AppendixC.tex, line 200 Float too large for page by 0.59935pt on input line 200. . I use latex a lot, but only with easier online compilers; so I do not have a rigorous preparation. I hope these warning messages do not conflict with other parts of the document.
– Mi Ka El
Dec 28 '18 at 15:38
1
@MiKaEl - I assume that by "smaller", you mean "occupy less vertical space".scalebox
only works with objects that are confined to a single page; hence, it cannot work with alongtable
environment. Try (a) placing thelongtable
inside abegingroup
andendgroup
pair of statements, and (b) inserting the directiverenecommandarraystretch{0.99}
.
– Mico
Dec 29 '18 at 5:13
1
@MiKaEl - Sorry for the typo: The correct command name isrenewcommand
, notrenecommand
. My apologies.
– Mico
Dec 29 '18 at 10:57
|
show 7 more comments
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%2f467665%2fcustomisation-of-longtable-caption%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
The toptesi
document class file and the associated file toptesi.sty
redefine the properties of the caption
command. Unfortunately, they do so in a way that fails to modify the default properties of the caption
command that's provided by the longtable
environment (and which, AFAICT, mostly replicates the properties of the caption
command provided by the "standard" LaTeX document classes, such as article
and report
).
Rather than hack the code provided by longtable.sty
, I suggest you load the caption
package and issue the following instructions in the preamble:
usepackage{caption}
DeclareCaptionLabelSeparator{toptesi}{.quad}
captionsetup{labelsep=toptesi,font=small}
This solution works but returns some warnings (i.e. Package caption Warning: Unsupported document class (or package) detected, usage of the caption package is not recommended. See the caption package documentation for explanation.)
– Mi Ka El
Dec 28 '18 at 15:07
@MiKaEl - It's a warning message, not an error message. Anyway, if you look at the code intoptesi.sty
, you'll see that the document class takes care not to interfere with thecaption
package.
– Mico
Dec 28 '18 at 15:22
You are right, thanks. Just to know, it gives also this type of warning message: Appendices/AppendixC/AppendixC.tex, line 200 Float too large for page by 0.59935pt on input line 200. . I use latex a lot, but only with easier online compilers; so I do not have a rigorous preparation. I hope these warning messages do not conflict with other parts of the document.
– Mi Ka El
Dec 28 '18 at 15:38
1
@MiKaEl - I assume that by "smaller", you mean "occupy less vertical space".scalebox
only works with objects that are confined to a single page; hence, it cannot work with alongtable
environment. Try (a) placing thelongtable
inside abegingroup
andendgroup
pair of statements, and (b) inserting the directiverenecommandarraystretch{0.99}
.
– Mico
Dec 29 '18 at 5:13
1
@MiKaEl - Sorry for the typo: The correct command name isrenewcommand
, notrenecommand
. My apologies.
– Mico
Dec 29 '18 at 10:57
|
show 7 more comments
The toptesi
document class file and the associated file toptesi.sty
redefine the properties of the caption
command. Unfortunately, they do so in a way that fails to modify the default properties of the caption
command that's provided by the longtable
environment (and which, AFAICT, mostly replicates the properties of the caption
command provided by the "standard" LaTeX document classes, such as article
and report
).
Rather than hack the code provided by longtable.sty
, I suggest you load the caption
package and issue the following instructions in the preamble:
usepackage{caption}
DeclareCaptionLabelSeparator{toptesi}{.quad}
captionsetup{labelsep=toptesi,font=small}
This solution works but returns some warnings (i.e. Package caption Warning: Unsupported document class (or package) detected, usage of the caption package is not recommended. See the caption package documentation for explanation.)
– Mi Ka El
Dec 28 '18 at 15:07
@MiKaEl - It's a warning message, not an error message. Anyway, if you look at the code intoptesi.sty
, you'll see that the document class takes care not to interfere with thecaption
package.
– Mico
Dec 28 '18 at 15:22
You are right, thanks. Just to know, it gives also this type of warning message: Appendices/AppendixC/AppendixC.tex, line 200 Float too large for page by 0.59935pt on input line 200. . I use latex a lot, but only with easier online compilers; so I do not have a rigorous preparation. I hope these warning messages do not conflict with other parts of the document.
– Mi Ka El
Dec 28 '18 at 15:38
1
@MiKaEl - I assume that by "smaller", you mean "occupy less vertical space".scalebox
only works with objects that are confined to a single page; hence, it cannot work with alongtable
environment. Try (a) placing thelongtable
inside abegingroup
andendgroup
pair of statements, and (b) inserting the directiverenecommandarraystretch{0.99}
.
– Mico
Dec 29 '18 at 5:13
1
@MiKaEl - Sorry for the typo: The correct command name isrenewcommand
, notrenecommand
. My apologies.
– Mico
Dec 29 '18 at 10:57
|
show 7 more comments
The toptesi
document class file and the associated file toptesi.sty
redefine the properties of the caption
command. Unfortunately, they do so in a way that fails to modify the default properties of the caption
command that's provided by the longtable
environment (and which, AFAICT, mostly replicates the properties of the caption
command provided by the "standard" LaTeX document classes, such as article
and report
).
Rather than hack the code provided by longtable.sty
, I suggest you load the caption
package and issue the following instructions in the preamble:
usepackage{caption}
DeclareCaptionLabelSeparator{toptesi}{.quad}
captionsetup{labelsep=toptesi,font=small}
The toptesi
document class file and the associated file toptesi.sty
redefine the properties of the caption
command. Unfortunately, they do so in a way that fails to modify the default properties of the caption
command that's provided by the longtable
environment (and which, AFAICT, mostly replicates the properties of the caption
command provided by the "standard" LaTeX document classes, such as article
and report
).
Rather than hack the code provided by longtable.sty
, I suggest you load the caption
package and issue the following instructions in the preamble:
usepackage{caption}
DeclareCaptionLabelSeparator{toptesi}{.quad}
captionsetup{labelsep=toptesi,font=small}
answered Dec 28 '18 at 14:49
Mico
274k30371757
274k30371757
This solution works but returns some warnings (i.e. Package caption Warning: Unsupported document class (or package) detected, usage of the caption package is not recommended. See the caption package documentation for explanation.)
– Mi Ka El
Dec 28 '18 at 15:07
@MiKaEl - It's a warning message, not an error message. Anyway, if you look at the code intoptesi.sty
, you'll see that the document class takes care not to interfere with thecaption
package.
– Mico
Dec 28 '18 at 15:22
You are right, thanks. Just to know, it gives also this type of warning message: Appendices/AppendixC/AppendixC.tex, line 200 Float too large for page by 0.59935pt on input line 200. . I use latex a lot, but only with easier online compilers; so I do not have a rigorous preparation. I hope these warning messages do not conflict with other parts of the document.
– Mi Ka El
Dec 28 '18 at 15:38
1
@MiKaEl - I assume that by "smaller", you mean "occupy less vertical space".scalebox
only works with objects that are confined to a single page; hence, it cannot work with alongtable
environment. Try (a) placing thelongtable
inside abegingroup
andendgroup
pair of statements, and (b) inserting the directiverenecommandarraystretch{0.99}
.
– Mico
Dec 29 '18 at 5:13
1
@MiKaEl - Sorry for the typo: The correct command name isrenewcommand
, notrenecommand
. My apologies.
– Mico
Dec 29 '18 at 10:57
|
show 7 more comments
This solution works but returns some warnings (i.e. Package caption Warning: Unsupported document class (or package) detected, usage of the caption package is not recommended. See the caption package documentation for explanation.)
– Mi Ka El
Dec 28 '18 at 15:07
@MiKaEl - It's a warning message, not an error message. Anyway, if you look at the code intoptesi.sty
, you'll see that the document class takes care not to interfere with thecaption
package.
– Mico
Dec 28 '18 at 15:22
You are right, thanks. Just to know, it gives also this type of warning message: Appendices/AppendixC/AppendixC.tex, line 200 Float too large for page by 0.59935pt on input line 200. . I use latex a lot, but only with easier online compilers; so I do not have a rigorous preparation. I hope these warning messages do not conflict with other parts of the document.
– Mi Ka El
Dec 28 '18 at 15:38
1
@MiKaEl - I assume that by "smaller", you mean "occupy less vertical space".scalebox
only works with objects that are confined to a single page; hence, it cannot work with alongtable
environment. Try (a) placing thelongtable
inside abegingroup
andendgroup
pair of statements, and (b) inserting the directiverenecommandarraystretch{0.99}
.
– Mico
Dec 29 '18 at 5:13
1
@MiKaEl - Sorry for the typo: The correct command name isrenewcommand
, notrenecommand
. My apologies.
– Mico
Dec 29 '18 at 10:57
This solution works but returns some warnings (i.e. Package caption Warning: Unsupported document class (or package) detected, usage of the caption package is not recommended. See the caption package documentation for explanation.)
– Mi Ka El
Dec 28 '18 at 15:07
This solution works but returns some warnings (i.e. Package caption Warning: Unsupported document class (or package) detected, usage of the caption package is not recommended. See the caption package documentation for explanation.)
– Mi Ka El
Dec 28 '18 at 15:07
@MiKaEl - It's a warning message, not an error message. Anyway, if you look at the code in
toptesi.sty
, you'll see that the document class takes care not to interfere with the caption
package.– Mico
Dec 28 '18 at 15:22
@MiKaEl - It's a warning message, not an error message. Anyway, if you look at the code in
toptesi.sty
, you'll see that the document class takes care not to interfere with the caption
package.– Mico
Dec 28 '18 at 15:22
You are right, thanks. Just to know, it gives also this type of warning message: Appendices/AppendixC/AppendixC.tex, line 200 Float too large for page by 0.59935pt on input line 200. . I use latex a lot, but only with easier online compilers; so I do not have a rigorous preparation. I hope these warning messages do not conflict with other parts of the document.
– Mi Ka El
Dec 28 '18 at 15:38
You are right, thanks. Just to know, it gives also this type of warning message: Appendices/AppendixC/AppendixC.tex, line 200 Float too large for page by 0.59935pt on input line 200. . I use latex a lot, but only with easier online compilers; so I do not have a rigorous preparation. I hope these warning messages do not conflict with other parts of the document.
– Mi Ka El
Dec 28 '18 at 15:38
1
1
@MiKaEl - I assume that by "smaller", you mean "occupy less vertical space".
scalebox
only works with objects that are confined to a single page; hence, it cannot work with a longtable
environment. Try (a) placing the longtable
inside a begingroup
and endgroup
pair of statements, and (b) inserting the directive renecommandarraystretch{0.99}
.– Mico
Dec 29 '18 at 5:13
@MiKaEl - I assume that by "smaller", you mean "occupy less vertical space".
scalebox
only works with objects that are confined to a single page; hence, it cannot work with a longtable
environment. Try (a) placing the longtable
inside a begingroup
and endgroup
pair of statements, and (b) inserting the directive renecommandarraystretch{0.99}
.– Mico
Dec 29 '18 at 5:13
1
1
@MiKaEl - Sorry for the typo: The correct command name is
renewcommand
, not renecommand
. My apologies.– Mico
Dec 29 '18 at 10:57
@MiKaEl - Sorry for the typo: The correct command name is
renewcommand
, not renecommand
. My apologies.– Mico
Dec 29 '18 at 10:57
|
show 7 more comments
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.
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%2f467665%2fcustomisation-of-longtable-caption%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
Please clarify what you mean by "I'd like to resize the longtable without changing the dimensions of the caption."
– Mico
Dec 28 '18 at 14:43
I have to reduce the size only of the table. I'm using
Overleaf
.– Mi Ka El
Dec 28 '18 at 14:49
I still don't understand what you mean by "I have to reduce the size only of the table." Are you talking about the horizontal dimension, the vertical dimension, both, or neither?
– Mico
Dec 28 '18 at 14:52
I want a result similar to what you get with
scalebox
as in the second table of the code (horizontal and vertical dimension).– Mi Ka El
Dec 28 '18 at 14:55