Specifying font size for the text passed as an argument in a newcommand [closed]
I'm using the awesome-cv template and I'm trying to change the following code within the templates .cls file:
% Defines writer's mobile (optional)
% Usage: mobile{<mobile number>}
newcommand*{mobile}[1]{def@mobile{#1}}
I'd like to add a fontsize command to the mobile command. Here is a newcommand that does precisely that, also in the .cls file of the template.
newcommand*{headerfirstnamestyle}[1]{{fontsize{30pt}{1em}headerfontlightcolor{graytext} #1}}
I've tried with the same syntax on the mobile command but it has no effect on the document.
The purpose of this is to make the font larger of the section marked in red which is defined by the commands mobile email homepage etc:

Thanks
macros fontsize awesome-cv
closed as unclear what you're asking by egreg, Kurt, siracusa, Troy, Stefan Pinnow Dec 8 at 6:35
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I'm using the awesome-cv template and I'm trying to change the following code within the templates .cls file:
% Defines writer's mobile (optional)
% Usage: mobile{<mobile number>}
newcommand*{mobile}[1]{def@mobile{#1}}
I'd like to add a fontsize command to the mobile command. Here is a newcommand that does precisely that, also in the .cls file of the template.
newcommand*{headerfirstnamestyle}[1]{{fontsize{30pt}{1em}headerfontlightcolor{graytext} #1}}
I've tried with the same syntax on the mobile command but it has no effect on the document.
The purpose of this is to make the font larger of the section marked in red which is defined by the commands mobile email homepage etc:

Thanks
macros fontsize awesome-cv
closed as unclear what you're asking by egreg, Kurt, siracusa, Troy, Stefan Pinnow Dec 8 at 6:35
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
You may need to addselectfontafter concluding thefontsizecommand.
– Steven B. Segletes
Aug 9 at 13:06
Welcome to TeX.SX! You could trymakeatletterrenewcommand*mobile[1]{def@mobile{begingroupfontsize{30pt}{1em}selectfont #1endgroup}}makeatother
– Skillmon
Aug 9 at 13:18
add a comment |
I'm using the awesome-cv template and I'm trying to change the following code within the templates .cls file:
% Defines writer's mobile (optional)
% Usage: mobile{<mobile number>}
newcommand*{mobile}[1]{def@mobile{#1}}
I'd like to add a fontsize command to the mobile command. Here is a newcommand that does precisely that, also in the .cls file of the template.
newcommand*{headerfirstnamestyle}[1]{{fontsize{30pt}{1em}headerfontlightcolor{graytext} #1}}
I've tried with the same syntax on the mobile command but it has no effect on the document.
The purpose of this is to make the font larger of the section marked in red which is defined by the commands mobile email homepage etc:

Thanks
macros fontsize awesome-cv
I'm using the awesome-cv template and I'm trying to change the following code within the templates .cls file:
% Defines writer's mobile (optional)
% Usage: mobile{<mobile number>}
newcommand*{mobile}[1]{def@mobile{#1}}
I'd like to add a fontsize command to the mobile command. Here is a newcommand that does precisely that, also in the .cls file of the template.
newcommand*{headerfirstnamestyle}[1]{{fontsize{30pt}{1em}headerfontlightcolor{graytext} #1}}
I've tried with the same syntax on the mobile command but it has no effect on the document.
The purpose of this is to make the font larger of the section marked in red which is defined by the commands mobile email homepage etc:

Thanks
macros fontsize awesome-cv
macros fontsize awesome-cv
asked Aug 9 at 13:05
Latesch
61
61
closed as unclear what you're asking by egreg, Kurt, siracusa, Troy, Stefan Pinnow Dec 8 at 6:35
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as unclear what you're asking by egreg, Kurt, siracusa, Troy, Stefan Pinnow Dec 8 at 6:35
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
You may need to addselectfontafter concluding thefontsizecommand.
– Steven B. Segletes
Aug 9 at 13:06
Welcome to TeX.SX! You could trymakeatletterrenewcommand*mobile[1]{def@mobile{begingroupfontsize{30pt}{1em}selectfont #1endgroup}}makeatother
– Skillmon
Aug 9 at 13:18
add a comment |
1
You may need to addselectfontafter concluding thefontsizecommand.
– Steven B. Segletes
Aug 9 at 13:06
Welcome to TeX.SX! You could trymakeatletterrenewcommand*mobile[1]{def@mobile{begingroupfontsize{30pt}{1em}selectfont #1endgroup}}makeatother
– Skillmon
Aug 9 at 13:18
1
1
You may need to add
selectfont after concluding the fontsize command.– Steven B. Segletes
Aug 9 at 13:06
You may need to add
selectfont after concluding the fontsize command.– Steven B. Segletes
Aug 9 at 13:06
Welcome to TeX.SX! You could try
makeatletterrenewcommand*mobile[1]{def@mobile{begingroupfontsize{30pt}{1em}selectfont #1endgroup}}makeatother– Skillmon
Aug 9 at 13:18
Welcome to TeX.SX! You could try
makeatletterrenewcommand*mobile[1]{def@mobile{begingroupfontsize{30pt}{1em}selectfont #1endgroup}}makeatother– Skillmon
Aug 9 at 13:18
add a comment |
1 Answer
1
active
oldest
votes
The syntax for changing the whole section marked in red is the following:
newcommand*{mobile}[1]{def@mobile{fontsize{12pt}{}selectfont #1}}
Credit to Steven B. Segletes
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The syntax for changing the whole section marked in red is the following:
newcommand*{mobile}[1]{def@mobile{fontsize{12pt}{}selectfont #1}}
Credit to Steven B. Segletes
add a comment |
The syntax for changing the whole section marked in red is the following:
newcommand*{mobile}[1]{def@mobile{fontsize{12pt}{}selectfont #1}}
Credit to Steven B. Segletes
add a comment |
The syntax for changing the whole section marked in red is the following:
newcommand*{mobile}[1]{def@mobile{fontsize{12pt}{}selectfont #1}}
Credit to Steven B. Segletes
The syntax for changing the whole section marked in red is the following:
newcommand*{mobile}[1]{def@mobile{fontsize{12pt}{}selectfont #1}}
Credit to Steven B. Segletes
answered Aug 9 at 13:23
Latesch
61
61
add a comment |
add a comment |
1
You may need to add
selectfontafter concluding thefontsizecommand.– Steven B. Segletes
Aug 9 at 13:06
Welcome to TeX.SX! You could try
makeatletterrenewcommand*mobile[1]{def@mobile{begingroupfontsize{30pt}{1em}selectfont #1endgroup}}makeatother– Skillmon
Aug 9 at 13:18