Change font in just one tabular / section to sans-serif
up vote
1
down vote
favorite
I don't think it's difficult but I got no right answer on google, so I have to asked here:
How to change the font to sans-serif for just one section or the tabular. And I also need the right way to change it back after the tabular, I don't want to use another font, because there should be three default fonts in LaTeX?
My LaTeX code is super simple:
section{2. Section}
begin{tabular}{| c c c c c c c c c c}
...
end{tabular}
Thanks in advance!
fonts sans-serif
New contributor
add a comment |
up vote
1
down vote
favorite
I don't think it's difficult but I got no right answer on google, so I have to asked here:
How to change the font to sans-serif for just one section or the tabular. And I also need the right way to change it back after the tabular, I don't want to use another font, because there should be three default fonts in LaTeX?
My LaTeX code is super simple:
section{2. Section}
begin{tabular}{| c c c c c c c c c c}
...
end{tabular}
Thanks in advance!
fonts sans-serif
New contributor
Welcome to TeX.Stackexchange! Can you try the following code:{ sffamily begin{tabular}....end{tabular} }
? (the{ }
around everything will restrict the font change to just this group, so you don't have to worry about changing the font back afterwards)
– samcarter
yesterday
Hi, welcome to Tex.sx! Please always provide a full minimal working example (MWE) tex.meta.stackexchange.com/questions/228/… when posting a question here. This is quite a basic question. Have a look at overleaf.com/learn/latex/… for choosing a sans-serif for a part of your text. For example use:textsf{Sample Text 0123}
within your tabular or do like @samcarter said.
– JohanFit
yesterday
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I don't think it's difficult but I got no right answer on google, so I have to asked here:
How to change the font to sans-serif for just one section or the tabular. And I also need the right way to change it back after the tabular, I don't want to use another font, because there should be three default fonts in LaTeX?
My LaTeX code is super simple:
section{2. Section}
begin{tabular}{| c c c c c c c c c c}
...
end{tabular}
Thanks in advance!
fonts sans-serif
New contributor
I don't think it's difficult but I got no right answer on google, so I have to asked here:
How to change the font to sans-serif for just one section or the tabular. And I also need the right way to change it back after the tabular, I don't want to use another font, because there should be three default fonts in LaTeX?
My LaTeX code is super simple:
section{2. Section}
begin{tabular}{| c c c c c c c c c c}
...
end{tabular}
Thanks in advance!
fonts sans-serif
fonts sans-serif
New contributor
New contributor
edited yesterday
Bernard
162k767192
162k767192
New contributor
asked yesterday
Tim4497
61
61
New contributor
New contributor
Welcome to TeX.Stackexchange! Can you try the following code:{ sffamily begin{tabular}....end{tabular} }
? (the{ }
around everything will restrict the font change to just this group, so you don't have to worry about changing the font back afterwards)
– samcarter
yesterday
Hi, welcome to Tex.sx! Please always provide a full minimal working example (MWE) tex.meta.stackexchange.com/questions/228/… when posting a question here. This is quite a basic question. Have a look at overleaf.com/learn/latex/… for choosing a sans-serif for a part of your text. For example use:textsf{Sample Text 0123}
within your tabular or do like @samcarter said.
– JohanFit
yesterday
add a comment |
Welcome to TeX.Stackexchange! Can you try the following code:{ sffamily begin{tabular}....end{tabular} }
? (the{ }
around everything will restrict the font change to just this group, so you don't have to worry about changing the font back afterwards)
– samcarter
yesterday
Hi, welcome to Tex.sx! Please always provide a full minimal working example (MWE) tex.meta.stackexchange.com/questions/228/… when posting a question here. This is quite a basic question. Have a look at overleaf.com/learn/latex/… for choosing a sans-serif for a part of your text. For example use:textsf{Sample Text 0123}
within your tabular or do like @samcarter said.
– JohanFit
yesterday
Welcome to TeX.Stackexchange! Can you try the following code:
{ sffamily begin{tabular}....end{tabular} }
? (the { }
around everything will restrict the font change to just this group, so you don't have to worry about changing the font back afterwards)– samcarter
yesterday
Welcome to TeX.Stackexchange! Can you try the following code:
{ sffamily begin{tabular}....end{tabular} }
? (the { }
around everything will restrict the font change to just this group, so you don't have to worry about changing the font back afterwards)– samcarter
yesterday
Hi, welcome to Tex.sx! Please always provide a full minimal working example (MWE) tex.meta.stackexchange.com/questions/228/… when posting a question here. This is quite a basic question. Have a look at overleaf.com/learn/latex/… for choosing a sans-serif for a part of your text. For example use:
textsf{Sample Text 0123}
within your tabular or do like @samcarter said.– JohanFit
yesterday
Hi, welcome to Tex.sx! Please always provide a full minimal working example (MWE) tex.meta.stackexchange.com/questions/228/… when posting a question here. This is quite a basic question. Have a look at overleaf.com/learn/latex/… for choosing a sans-serif for a part of your text. For example use:
textsf{Sample Text 0123}
within your tabular or do like @samcarter said.– JohanFit
yesterday
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
To change the font to sans serife you can use command sffamily
.
To make sure that only your tabular uses the other font simply enclose command sffamily
and your table with {...}
. That means that after the closing }
the old font before {
is used again.
See the following MWE
documentclass{article}
begin{document}
text text text text text
{sffamily % <===========================================================
section{2. Section}
begin{tabular}{| c c c c c c c c c c}
test & test & test & test & test & test & test & test & test & test \
test & test & test & test & test & test & test & test & test & test \
end{tabular}
} % <====================================================================
end{document}
and the resulting pdf:
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
To change the font to sans serife you can use command sffamily
.
To make sure that only your tabular uses the other font simply enclose command sffamily
and your table with {...}
. That means that after the closing }
the old font before {
is used again.
See the following MWE
documentclass{article}
begin{document}
text text text text text
{sffamily % <===========================================================
section{2. Section}
begin{tabular}{| c c c c c c c c c c}
test & test & test & test & test & test & test & test & test & test \
test & test & test & test & test & test & test & test & test & test \
end{tabular}
} % <====================================================================
end{document}
and the resulting pdf:
add a comment |
up vote
1
down vote
To change the font to sans serife you can use command sffamily
.
To make sure that only your tabular uses the other font simply enclose command sffamily
and your table with {...}
. That means that after the closing }
the old font before {
is used again.
See the following MWE
documentclass{article}
begin{document}
text text text text text
{sffamily % <===========================================================
section{2. Section}
begin{tabular}{| c c c c c c c c c c}
test & test & test & test & test & test & test & test & test & test \
test & test & test & test & test & test & test & test & test & test \
end{tabular}
} % <====================================================================
end{document}
and the resulting pdf:
add a comment |
up vote
1
down vote
up vote
1
down vote
To change the font to sans serife you can use command sffamily
.
To make sure that only your tabular uses the other font simply enclose command sffamily
and your table with {...}
. That means that after the closing }
the old font before {
is used again.
See the following MWE
documentclass{article}
begin{document}
text text text text text
{sffamily % <===========================================================
section{2. Section}
begin{tabular}{| c c c c c c c c c c}
test & test & test & test & test & test & test & test & test & test \
test & test & test & test & test & test & test & test & test & test \
end{tabular}
} % <====================================================================
end{document}
and the resulting pdf:
To change the font to sans serife you can use command sffamily
.
To make sure that only your tabular uses the other font simply enclose command sffamily
and your table with {...}
. That means that after the closing }
the old font before {
is used again.
See the following MWE
documentclass{article}
begin{document}
text text text text text
{sffamily % <===========================================================
section{2. Section}
begin{tabular}{| c c c c c c c c c c}
test & test & test & test & test & test & test & test & test & test \
test & test & test & test & test & test & test & test & test & test \
end{tabular}
} % <====================================================================
end{document}
and the resulting pdf:
answered yesterday
Kurt
33.9k846156
33.9k846156
add a comment |
add a comment |
Tim4497 is a new contributor. Be nice, and check out our Code of Conduct.
Tim4497 is a new contributor. Be nice, and check out our Code of Conduct.
Tim4497 is a new contributor. Be nice, and check out our Code of Conduct.
Tim4497 is a new contributor. Be nice, and check out our Code of Conduct.
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%2f461106%2fchange-font-in-just-one-tabular-section-to-sans-serif%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
Welcome to TeX.Stackexchange! Can you try the following code:
{ sffamily begin{tabular}....end{tabular} }
? (the{ }
around everything will restrict the font change to just this group, so you don't have to worry about changing the font back afterwards)– samcarter
yesterday
Hi, welcome to Tex.sx! Please always provide a full minimal working example (MWE) tex.meta.stackexchange.com/questions/228/… when posting a question here. This is quite a basic question. Have a look at overleaf.com/learn/latex/… for choosing a sans-serif for a part of your text. For example use:
textsf{Sample Text 0123}
within your tabular or do like @samcarter said.– JohanFit
yesterday