|
163 | 163 | \def\ucas@value@ch@advisor{}
|
164 | 164 | \newcommand{\advisor}[1]{\def\ucas@value@ch@advisor{#1}}
|
165 | 165 | \def\ucas@value@ch@advisors{}
|
166 |
| -\newcommand{\advisors}[1]{\def\ucas@value@ch@advisors{#1}} |
| 166 | +\newcommand{\advisors}[1]{\long\def\ucas@value@ch@advisors{#1}} |
167 | 167 | \def\ucas@value@ch@degree{}
|
168 | 168 | \newcommand{\degree}[1]{\def\ucas@value@ch@degree{#1}}
|
169 | 169 | \def\ucas@value@ch@degreetype{}
|
|
173 | 173 | \def\ucas@value@ch@major{}
|
174 | 174 | \newcommand{\major}[1]{\def\ucas@value@ch@major{#1}}
|
175 | 175 | \def\ucas@value@ch@institute{}
|
176 |
| -\newcommand{\institute}[1]{\def\ucas@value@ch@institute{#1}} |
| 176 | +\newcommand{\institute}[1]{\long\def\ucas@value@ch@institute{#1}} |
177 | 177 | \def\ucas@value@ch@school{}
|
178 | 178 | \newcommand{\school}[1]{\def\ucas@value@ch@school{#1}}
|
179 | 179 | \def\ucas@value@ch@orginization{}
|
|
261 | 261 | %-
|
262 | 262 | %-> Define Chinese style
|
263 | 263 | %-
|
| 264 | +\ExplSyntaxOn |
| 265 | +\newcommand\ucas@titlepage@formatter[1]{ |
| 266 | + \seq_set_split:NnV \l_tmpa_seq {\\} {#1} |
| 267 | + \clist_set_from_seq:NN \l_tmpa_clist \l_tmpa_seq |
| 268 | + \clist_clear:N \l_tmpb_clist |
| 269 | + \clist_map_inline:Nn \l_tmpa_clist |
| 270 | + { |
| 271 | + \clist_put_right:Nn \l_tmpb_clist |
| 272 | + { \ulenhance[1.2pt]{\ulextend{##1}} } |
| 273 | + } |
| 274 | + \clist_show:N\l_tmpb_clist |
| 275 | + \clist_use:Nn \l_tmpb_clist { \\ & } |
| 276 | + \PackageWarning{test}{ xxx } |
| 277 | +} |
| 278 | +\ExplSyntaxOff |
| 279 | + |
264 | 280 | \newcommand{\maketitle@xpdc}{%
|
265 | 281 | \cleardoublepage
|
266 | 282 | \thispagestyle{empty}
|
|
289 | 305 | \begin{tabular}{lc}
|
290 | 306 | \ucas@label@ch@author & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@author}}\\
|
291 | 307 | \ucas@label@ch@advisor & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@advisor}}\\
|
292 |
| - & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@advisors}}\\ |
| 308 | + & \ucas@titlepage@formatter{\ucas@value@ch@advisors}\\ |
293 | 309 | \ucas@label@ch@degree & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@degreetype\ucas@value@ch@degree}}\\
|
294 | 310 | \ucas@label@ch@major & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@major}}\\
|
295 |
| - \ucas@label@ch@institute & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@institute}}\\ |
| 311 | + \ucas@label@ch@institute & \ucas@titlepage@formatter{\ucas@value@ch@institute}\\ |
296 | 312 | \end{tabular}
|
297 | 313 |
|
298 | 314 | \vspace*{\stretch{4}}
|
|
0 commit comments