|
23 | 23 |
|
24 | 24 | % Top position of reviewers |
25 | 25 | \DeclareOption{top}{% |
26 | | - \newcommand{\addreviewersPosition}{1} |
| 26 | + \newcommand{\addreviewersPosition}{1} |
27 | 27 | } |
28 | 28 | % Top position of reviewers |
29 | 29 | \DeclareOption{afterToEditor}{% |
|
75 | 75 | \def\ImagePath#1{\def\@ImagePath{#1}} |
76 | 76 | \newcommand{\pImagePath}{\@ImagePath} |
77 | 77 |
|
| 78 | +% Logo width, height OR scale, use default values if not specified |
| 79 | +\def\LogoWidth#1{\def\@LogoWidth{#1}} |
| 80 | +\newcommand{\pLogoWidth}{\ifcsname @LogoWidth\endcsname\@LogoWidth\else 7cm\fi} |
| 81 | +\def\LogoHeight#1{\def\@LogoHeight{#1}} |
| 82 | +\newcommand{\pLogoHeight}{\ifcsname @LogoHeight\endcsname\@LogoHeight\else 4cm\fi} |
| 83 | +\def\LogoScale#1{\def\@LogoScale{#1}} |
| 84 | +\newcommand{\pLogoScale}{\ifcsname @LogoScale\endcsname\@LogoScale\else 1.0\fi} |
| 85 | +% Command to switch which \includegraphics to use, based on set commands in .tex |
| 86 | +\newcommand{\includelogo}{% |
| 87 | + \ifcsname @LogoScale\endcsname |
| 88 | + % if Scale is set: use only scale |
| 89 | + \includegraphics[scale=\@LogoScale]{\pImagePath}% |
| 90 | + \else |
| 91 | + % if Scale is not set: check width/height |
| 92 | + \ifcsname @LogoWidth\endcsname |
| 93 | + \ifcsname @LogoHeight\endcsname |
| 94 | + % Both width and height are set |
| 95 | + \includegraphics[width=\@LogoWidth,height=\@LogoHeight,keepaspectratio]{\pImagePath}% |
| 96 | + \else |
| 97 | + % Only width is set |
| 98 | + \includegraphics[width=\@LogoWidth]{\pImagePath}% |
| 99 | + \fi |
| 100 | + \else |
| 101 | + \ifcsname @LogoHeight\endcsname |
| 102 | + % Only height is set |
| 103 | + \includegraphics[height=\@LogoHeight]{\pImagePath}% |
| 104 | + \else |
| 105 | + % if none is set: use defaults |
| 106 | + \includegraphics[width=7cm,height=4cm,keepaspectratio]{\pImagePath}% |
| 107 | + \fi |
| 108 | + \fi |
| 109 | + \fi |
| 110 | +} |
78 | 111 | %---------------------------------------------------------------------- |
79 | 112 | % new command for the information of the author |
80 | 113 | \newcommand{\aboutme}[1]{ |
|
86 | 119 | \fancyhf{} |
87 | 120 | % show logo of author's institution on the left side |
88 | 121 | \fancyhead[L]{\raisebox{\dimexpr-\height+\baselineskip}[0pt][0pt]{ |
89 | | - \includegraphics[width=7cm,height=4cm,keepaspectratio]{\pImagePath} |
| 122 | + \includelogo |
90 | 123 | }} |
91 | 124 | % show address on the rigt side |
92 | 125 | \fancyhead[R]{\leavevmode\large |
|
0 commit comments