How can I change the font size of my table?












0















For my thesis I am trying to adjust the font size of my tables in LaTeX. However, I struggle to have a scriptize font size for my caption and for the entries in my table.



Here's my code. I hope anyone can help!



%begin table
begin{scriptsize}
begin{table}[h]
centering
captionsetup{skip=0.5baselineskip,size=footnotesize}
caption{Test table}
label{table:7}
begin{tabular}{ l | l }
textbf{Entry 1} & textbf{Entry 2} \ cline{1-2}
Entry 3 & Entry 4 \
end{tabular}
end{table}
end{scriptsize}









share|improve this question




















  • 3





    I'd probably just add a font size command such as scriptsize inside the table environment. The redefinition will be local and so only the table will be scriptsize.

    – moewe
    Mar 8 at 13:00








  • 1





    scriptsize is not an environment. correct use is to add scriptsize after begin{document}.

    – Zarko
    Mar 8 at 13:04













  • @moewe Arg, I did forget about the group around it. Thanks a lot for your comment!

    – samcarter
    Mar 8 at 13:15











  • Technically begin{scriptsize} foo end{scriptsize} usually works fine for text because of the way environments are implemented in LaTeX, but I would usually suggest to go with {scriptsize foo} instead. See also tex.stackexchange.com/q/7312/35864.

    – moewe
    Mar 8 at 13:16


















0















For my thesis I am trying to adjust the font size of my tables in LaTeX. However, I struggle to have a scriptize font size for my caption and for the entries in my table.



Here's my code. I hope anyone can help!



%begin table
begin{scriptsize}
begin{table}[h]
centering
captionsetup{skip=0.5baselineskip,size=footnotesize}
caption{Test table}
label{table:7}
begin{tabular}{ l | l }
textbf{Entry 1} & textbf{Entry 2} \ cline{1-2}
Entry 3 & Entry 4 \
end{tabular}
end{table}
end{scriptsize}









share|improve this question




















  • 3





    I'd probably just add a font size command such as scriptsize inside the table environment. The redefinition will be local and so only the table will be scriptsize.

    – moewe
    Mar 8 at 13:00








  • 1





    scriptsize is not an environment. correct use is to add scriptsize after begin{document}.

    – Zarko
    Mar 8 at 13:04













  • @moewe Arg, I did forget about the group around it. Thanks a lot for your comment!

    – samcarter
    Mar 8 at 13:15











  • Technically begin{scriptsize} foo end{scriptsize} usually works fine for text because of the way environments are implemented in LaTeX, but I would usually suggest to go with {scriptsize foo} instead. See also tex.stackexchange.com/q/7312/35864.

    – moewe
    Mar 8 at 13:16
















0












0








0








For my thesis I am trying to adjust the font size of my tables in LaTeX. However, I struggle to have a scriptize font size for my caption and for the entries in my table.



Here's my code. I hope anyone can help!



%begin table
begin{scriptsize}
begin{table}[h]
centering
captionsetup{skip=0.5baselineskip,size=footnotesize}
caption{Test table}
label{table:7}
begin{tabular}{ l | l }
textbf{Entry 1} & textbf{Entry 2} \ cline{1-2}
Entry 3 & Entry 4 \
end{tabular}
end{table}
end{scriptsize}









share|improve this question
















For my thesis I am trying to adjust the font size of my tables in LaTeX. However, I struggle to have a scriptize font size for my caption and for the entries in my table.



Here's my code. I hope anyone can help!



%begin table
begin{scriptsize}
begin{table}[h]
centering
captionsetup{skip=0.5baselineskip,size=footnotesize}
caption{Test table}
label{table:7}
begin{tabular}{ l | l }
textbf{Entry 1} & textbf{Entry 2} \ cline{1-2}
Entry 3 & Entry 4 \
end{tabular}
end{table}
end{scriptsize}






tables fonts size






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 12:57









JouleV

5,99821549




5,99821549










asked Mar 8 at 12:54









ChristiaanChristiaan

32




32








  • 3





    I'd probably just add a font size command such as scriptsize inside the table environment. The redefinition will be local and so only the table will be scriptsize.

    – moewe
    Mar 8 at 13:00








  • 1





    scriptsize is not an environment. correct use is to add scriptsize after begin{document}.

    – Zarko
    Mar 8 at 13:04













  • @moewe Arg, I did forget about the group around it. Thanks a lot for your comment!

    – samcarter
    Mar 8 at 13:15











  • Technically begin{scriptsize} foo end{scriptsize} usually works fine for text because of the way environments are implemented in LaTeX, but I would usually suggest to go with {scriptsize foo} instead. See also tex.stackexchange.com/q/7312/35864.

    – moewe
    Mar 8 at 13:16
















  • 3





    I'd probably just add a font size command such as scriptsize inside the table environment. The redefinition will be local and so only the table will be scriptsize.

    – moewe
    Mar 8 at 13:00








  • 1





    scriptsize is not an environment. correct use is to add scriptsize after begin{document}.

    – Zarko
    Mar 8 at 13:04













  • @moewe Arg, I did forget about the group around it. Thanks a lot for your comment!

    – samcarter
    Mar 8 at 13:15











  • Technically begin{scriptsize} foo end{scriptsize} usually works fine for text because of the way environments are implemented in LaTeX, but I would usually suggest to go with {scriptsize foo} instead. See also tex.stackexchange.com/q/7312/35864.

    – moewe
    Mar 8 at 13:16










3




3





I'd probably just add a font size command such as scriptsize inside the table environment. The redefinition will be local and so only the table will be scriptsize.

– moewe
Mar 8 at 13:00







I'd probably just add a font size command such as scriptsize inside the table environment. The redefinition will be local and so only the table will be scriptsize.

– moewe
Mar 8 at 13:00






1




1





scriptsize is not an environment. correct use is to add scriptsize after begin{document}.

– Zarko
Mar 8 at 13:04







scriptsize is not an environment. correct use is to add scriptsize after begin{document}.

– Zarko
Mar 8 at 13:04















@moewe Arg, I did forget about the group around it. Thanks a lot for your comment!

– samcarter
Mar 8 at 13:15





@moewe Arg, I did forget about the group around it. Thanks a lot for your comment!

– samcarter
Mar 8 at 13:15













Technically begin{scriptsize} foo end{scriptsize} usually works fine for text because of the way environments are implemented in LaTeX, but I would usually suggest to go with {scriptsize foo} instead. See also tex.stackexchange.com/q/7312/35864.

– moewe
Mar 8 at 13:16







Technically begin{scriptsize} foo end{scriptsize} usually works fine for text because of the way environments are implemented in LaTeX, but I would usually suggest to go with {scriptsize foo} instead. See also tex.stackexchange.com/q/7312/35864.

– moewe
Mar 8 at 13:16












1 Answer
1






active

oldest

votes


















0














This code works:



documentclass{article}
usepackage{caption, array}

begin{document}

begin{table}[!htb]
centering
scriptsize
setlength{extrarowheight}{2pt}
captionsetup{skip=0.5baselineskip,size=scriptsize}
caption{Test table}
label{table:7}
begin{tabular}{ l | l }
textbf{Entry 1} & textbf{Entry 2} \ cline{1-2}
Entry 3 & Entry 4 \
end{tabular}
end{table}

end{document}


enter image description here






share|improve this answer
























  • Great this codes works indeed, thanks a lot!

    – Christiaan
    Mar 8 at 13:11











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%2f478412%2fhow-can-i-change-the-font-size-of-my-table%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














This code works:



documentclass{article}
usepackage{caption, array}

begin{document}

begin{table}[!htb]
centering
scriptsize
setlength{extrarowheight}{2pt}
captionsetup{skip=0.5baselineskip,size=scriptsize}
caption{Test table}
label{table:7}
begin{tabular}{ l | l }
textbf{Entry 1} & textbf{Entry 2} \ cline{1-2}
Entry 3 & Entry 4 \
end{tabular}
end{table}

end{document}


enter image description here






share|improve this answer
























  • Great this codes works indeed, thanks a lot!

    – Christiaan
    Mar 8 at 13:11
















0














This code works:



documentclass{article}
usepackage{caption, array}

begin{document}

begin{table}[!htb]
centering
scriptsize
setlength{extrarowheight}{2pt}
captionsetup{skip=0.5baselineskip,size=scriptsize}
caption{Test table}
label{table:7}
begin{tabular}{ l | l }
textbf{Entry 1} & textbf{Entry 2} \ cline{1-2}
Entry 3 & Entry 4 \
end{tabular}
end{table}

end{document}


enter image description here






share|improve this answer
























  • Great this codes works indeed, thanks a lot!

    – Christiaan
    Mar 8 at 13:11














0












0








0







This code works:



documentclass{article}
usepackage{caption, array}

begin{document}

begin{table}[!htb]
centering
scriptsize
setlength{extrarowheight}{2pt}
captionsetup{skip=0.5baselineskip,size=scriptsize}
caption{Test table}
label{table:7}
begin{tabular}{ l | l }
textbf{Entry 1} & textbf{Entry 2} \ cline{1-2}
Entry 3 & Entry 4 \
end{tabular}
end{table}

end{document}


enter image description here






share|improve this answer













This code works:



documentclass{article}
usepackage{caption, array}

begin{document}

begin{table}[!htb]
centering
scriptsize
setlength{extrarowheight}{2pt}
captionsetup{skip=0.5baselineskip,size=scriptsize}
caption{Test table}
label{table:7}
begin{tabular}{ l | l }
textbf{Entry 1} & textbf{Entry 2} \ cline{1-2}
Entry 3 & Entry 4 \
end{tabular}
end{table}

end{document}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 8 at 13:04









BernardBernard

173k776204




173k776204













  • Great this codes works indeed, thanks a lot!

    – Christiaan
    Mar 8 at 13:11



















  • Great this codes works indeed, thanks a lot!

    – Christiaan
    Mar 8 at 13:11

















Great this codes works indeed, thanks a lot!

– Christiaan
Mar 8 at 13:11





Great this codes works indeed, thanks a lot!

– Christiaan
Mar 8 at 13:11


















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%2f478412%2fhow-can-i-change-the-font-size-of-my-table%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

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?