~xdanaux/moderncv/trunk

« back to all changes in this revision

Viewing changes to moderncv.cls

  • Committer: Xavier Danaux
  • Date: 2014-02-01 14:49:02 UTC
  • Revision ID: xdanaux@gmail.com-20140201144902-jjlarc60oyek16d0
Added fake small caps \fakesc code (commented)

Show diffs side-by-side

added added

removed removed

Lines of Context:
352
352
\newcommand*{\subsectionfont}{}
353
353
\newcommand*{\hintfont}{}
354
354
\newcommand*{\pagenumberfont}{\addressfont\itshape}
 
355
% fake small caps - cfr http://tex.stackexchange.com/questions/55664/fake-small-caps-with-xetex-fontspec
 
356
%\def\fakesc{\bgroup\obeyspaces\fakescaux}
 
357
%\def\fakescaux#1{\fakescauxii #1\relax\relax\egroup}
 
358
%\def\fakescauxii#1{%
 
359
%\ifx\relax#1\else \ifcat#1\@sptoken{} \expandafter\expandafter\expandafter\fakescauxii\else
 
360
%\ifnum`#1=\uccode`#1 {\normalsize #1}\else {\footnotesize \uppercase{#1}}\fi \expandafter\expandafter\expandafter\fakescauxii\expandafter\fi\fi}
355
361
 
356
362
% styles
357
363
\newcommand*{\namestyle}[1]{{\namefont#1}}