Fonts & Character Sets\section header

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
layuval
Posts: 19
Joined: Thu Aug 18, 2016 11:37 pm

\section header

Post by layuval »

Hello everyone,

I'm working in moderncv environment in \moderncvstyle{banking} and I'm looking to have a \section{Education} with the first letter as Large capital and the rest as small capitals.
I read many of the previous question but nothing work for \moderncvstyle{banking}.

I have copied the code.

Thank you!

Code: Select all

%% start of file `template.tex'.
%% Copyright 2006-2013 Xavier Danaux (xdanaux@gmail.com).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.


\documentclass[11pt,a4paper,sans]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')
\usepackage[utf8]{inputenc}
\usepackage{lipsum}%% a garbage package you don't need except to create examples.
\usepackage{fancyhdr}


\pagestyle{fancy}
\lhead{My Name}
%\rhead{this is page \thepage}
%\cfoot{center of the footer!}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\thispagestyle{empty}

% moderncv themes
\moderncvstyle{banking}                            % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{red}                                % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' 
\nopagenumbers{}                                  % uncomment to suppress automatic page numbering for CVs longer than one page

% character encoding
\usepackage[utf8]{inputenc}                       % if you are not using xelatex ou lualatex, replace by the encoding 
\usepackage[scale=0.75]{geometry}


% personal data

\name{My}{Name}
\title{Curriculum Vitae}                               % optional, remove / comment the line if not wanted
\address{street and number}{postcode city}{}% optional, remove / comment the line if not wanted; the "postcode city" and and "country" arguments can be omitted or provided empty
\phone[mobile]{~()~}                   % optional, remove / comment the line if not wanted
\renewcommand*{\maketitlesymbol}{~~~~~~~~}
\phone[fixed]{~()~~}                    % optional, remove / comment the line if not wanted


\quote{"quote,\\
" (some). }                                 % optional, remove / comment the line if not wanted
\usepackage{xpatch}
\xpatchcmd{\maketitle}
  {\\[2.5em]}
  {\\[10pt]} % or whatever: space above the quote
  {}{}

\begin{document}
%\begin{CJK*}{UTF8}{gbsn}                          % to typeset your resume in Chinese using CJK
%-----       resume       ---------------------------------------------------------
\makecvtitle

\section{EDUCATION}
\cventry{year--year}{\textbf{M.Sc, Master}}{Some University}{\normalfont{Some, Some}}{}
{\begin{itemize} 
\item[\textbullet] some
\end{itemize}}

\end{document}


%% end of file `template.tex'.
Attachments
Untitled.tex
(4.61 KiB) Downloaded 381 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

\section header

Post by Stefan Kottwitz »

Hi,

sorry that there was no answer. Perhaps not everybody has that class installed or fixed the first small error of the example to let it run.

It's actually not hard:

\renewcommand*{\sectionfont}{\LARGE\scshape}

But then it's necessary to write \section{Education} instead of \section{EDUCATION}.

Stefan
LaTeX.org admin
Post Reply