
我希望我的名字不完全是大寫的。
這是我的 .tex 檔。
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass{resume} % Use the custom resume.cls style
\usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry} % Document margins
\name{Aston Martin} % Your name
這是我的 .cls 檔案。
\ProvidesClass{resume}[]
\LoadClass[11pt,letterpaper]{article} % Font size and paper type
\usepackage[parfill]{parskip} % Remove paragraph indentation
\usepackage{array} % Required for boldface (\bf and \bfseries) tabular columns
\usepackage{ifthen} % Required for ifthenelse statements
\pagestyle{empty} % Suppress page numbers
%----------------------------------------------------------------------------------------
% HEADINGS COMMANDS: Commands for printing name and address
%----------------------------------------------------------------------------------------
\def \name#1{\def\@name{#1}} % Defines the \name command to set name
\def \@name {} % Sets \@name to empty by default
該名稱目前為:「ASTON MARTIN」。
但是,我希望它的格式如下:「阿斯頓馬丁」。
答案1
看來您正在使用resume.cls
找到的這裡。將以下內容加入序言中:
\makeatletter
\def \printname {
\begingroup
\hfil{\namesize\bfseries \@name}\hfil
\nameskip\break
\endgroup
}
\makeatother