LaTeX forum ⇒ Fonts & Character Sets\section header

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

\section header

Postby layuval » Tue Oct 03, 2017 12:51 pm

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!
  1. %% start of file `template.tex'.
  2. %% Copyright 2006-2013 Xavier Danaux (xdanaux@gmail.com).
  3. %
  4. % This work may be distributed and/or modified under the
  5. % conditions of the LaTeX Project Public License version 1.3c,
  6. % available at <!-- m --><a class="postlink" href="http://www.latex-project.org/lppl/">http://www.latex-project.org/lppl/</a><!-- m -->.
  7.  
  8.  
  9. \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')
  10. \usepackage[utf8]{inputenc}
  11. \usepackage{lipsum}%% a garbage package you don't need except to create examples.
  12. \usepackage{fancyhdr}
  13.  
  14.  
  15. \pagestyle{fancy}
  16. \lhead{My Name}
  17. %\rhead{this is page \thepage}
  18. %\cfoot{center of the footer!}
  19. \renewcommand{\headrulewidth}{0.4pt}
  20. \renewcommand{\footrulewidth}{0.4pt}
  21. \thispagestyle{empty}
  22.  
  23. % moderncv themes
  24. \moderncvstyle{banking} % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
  25. \moderncvcolor{red} % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey'
  26. \nopagenumbers{} % uncomment to suppress automatic page numbering for CVs longer than one page
  27.  
  28. % character encoding
  29. \usepackage[utf8]{inputenc} % if you are not using xelatex ou lualatex, replace by the encoding
  30. \usepackage[scale=0.75]{geometry}
  31.  
  32.  
  33. % personal data
  34.  
  35. \name{My}{Name}
  36. \title{Curriculum Vitae} % optional, remove / comment the line if not wanted
  37. \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
  38. \phone[mobile]{~()~} % optional, remove / comment the line if not wanted
  39. \renewcommand*{\maketitlesymbol}{~~~~~~~~}
  40. \phone[fixed]{~()~~} % optional, remove / comment the line if not wanted
  41.  
  42.  
  43. \quote{"quote,\\
  44. " (some). } % optional, remove / comment the line if not wanted
  45. \usepackage{xpatch}
  46. \xpatchcmd{\maketitle}
  47. {\\[2.5em]}
  48. {\\[10pt]} % or whatever: space above the quote
  49. {}{}
  50.  
  51. \begin{document}
  52. %\begin{CJK*}{UTF8}{gbsn} % to typeset your resume in Chinese using CJK
  53. %----- resume ---------------------------------------------------------
  54. \makecvtitle
  55.  
  56. \section{EDUCATION}
  57. \cventry{year--year}{\textbf{M.Sc, Master}}{Some University}{\normalfont{Some, Some}}{}
  58. {\begin{itemize}
  59. \item[\textbullet] some
  60. \end{itemize}}
  61.  
  62. \end{document}
  63.  
  64.  
  65. %% end of file `template.tex'.
Attachments
Untitled.tex
(4.61 KiB) Downloaded 6 times

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8451
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Mon Oct 30, 2017 4:38 am

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
Site admin


Return to “Fonts & Character Sets”

Who is online

Users browsing this forum: No registered users and 2 guests