Specifying font size for the text passed as an argument in a newcommand [closed]












1














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:
enter image description here



Thanks










share|improve this 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 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
















1














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:
enter image description here



Thanks










share|improve this 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 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














1












1








1







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:
enter image description here



Thanks










share|improve this question













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:
enter image description here



Thanks







macros fontsize awesome-cv






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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 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














  • 1




    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








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










1 Answer
1






active

oldest

votes


















0














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






share|improve this answer




























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    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






    share|improve this answer


























      0














      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






      share|improve this answer
























        0












        0








        0






        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






        share|improve this answer












        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







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 9 at 13:23









        Latesch

        61




        61















            Popular posts from this blog

            How to send String Array data to Server using php in android

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Is anime1.com a legal site for watching anime?