Text FormattingHow to change my name from uppercase to lowercase?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
yaozhao
Posts: 57
Joined: Sat Oct 27, 2018 10:38 pm

How to change my name from uppercase to lowercase?

Post by yaozhao »

Hello, I downloaded a resume sample. But I find this resume can only allow my name to be shown up with all uppercase letters. I don't like that. (Correct me if you think all uppercase letters is okay). How to change from the current defaulted uppercase letters to the normal way? For example, change from DEHAO LIU to Dehao Liu.

Code: Select all

\documentclass{resume} % Use the custom resume.cls style

\usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry} % Document margins
\newcommand{\tab}[1]{\hspace{.2667\textwidth}\rlap{#1}}
\newcommand{\itab}[1]{\hspace{0em}\rlap{#1}}
\name{Dehao Liu} % Your name

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Bartman
Posts: 366
Joined: Fri Jan 03, 2020 2:39 pm

How to change my name from uppercase to lowercase?

Post by Bartman »

Please link the source of your template.

If the template I found using your information is the one you used, then you should remove the \MakeUppercase command in the definition of the \printname command.

Original from resume.cls file:

Code: Select all

% \printname is used to print the name as a page header
\def \printname {
  \begingroup
    \hfil{\MakeUppercase{\namesize\bf \@name}}\hfil
    \nameskip\break
  \endgroup
}
The modified command that should be added to your preamble:

Code: Select all

\makeatletter
\def \printname {
  \begingroup
    \hfil{\namesize\bf \@name}\hfil
    \nameskip\break
  \endgroup
}
\makeatother
A note on the title: Printing the words as they were entered is not the same as lower case.
yaozhao
Posts: 57
Joined: Sat Oct 27, 2018 10:38 pm

How to change my name from uppercase to lowercase?

Post by yaozhao »

I tried your two solutions. But neither of them does work. The source of my template is written as follows:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Medium Length Professional CV
% LaTeX Template
% Version 2.0 (8/5/13)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Rishi Shah
%
% Important note:
% This template requires the resume.cls file to be in the same directory as the
% .tex file. The resume.cls file provides the resume style used for structuring the
% document.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Bartman
Posts: 366
Joined: Fri Jan 03, 2020 2:39 pm

How to change my name from uppercase to lowercase?

Post by Bartman »

You can copy the command into the preamble as shown above and then modify it, or make the change in the class file. If that's what you mean when you talk about two solutions.

This is the template that I also found and with which both solutions achieved the desired output.
Post Reply