Skip to content

Commit

Permalink
修正字重设置
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxuan-yu committed Mar 24, 2021
1 parent 4f96756 commit 8a08db4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 73 deletions.
90 changes: 18 additions & 72 deletions Rapport2.sty
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\RequirePackage{indentfirst}
\RequirePackage[fontset=sourcesans]{ctex}
\RequirePackage[fontset=none]{ctex}
\RequirePackage[bottom=3.5cm,footskip=1.5cm]{geometry}
\RequirePackage{fix-cm}
\RequirePackage{babel}
Expand Down Expand Up @@ -43,7 +43,7 @@
\RequirePackage{bm} % Vecteurs en gras
\RequirePackage{physics} % Macros pour physiciens
\RequirePackage{caption} % Légendes
\RequirePackage{subcaption} % Légendes
%\RequirePackage{subcaption} % Légendes
\RequirePackage{mathtools}
\RequirePackage{stmaryrd}
\RequirePackage{float} % Figures [H]-forçage ~ floating
Expand Down Expand Up @@ -84,7 +84,7 @@

%%
\makeatletter
\g@addto@macro\bfseries{\boldmath}
\g@addto@macro\sffamily{\boldmath}
\makeatother


Expand All @@ -95,6 +95,7 @@
\newcommand{\N}{\mathds{N}}
\newcommand{\Z}{\mathds{Z}}
\newcommand{\CC}{\mathds{C}}
\newcommand{\ii}{\mathrm{i}}

% Url
\urlstyle{same}
Expand All @@ -103,17 +104,17 @@

% Modification des sections, etc.

\makeatletter
\renewcommand{\l@section}{\@dottedtocline{1}{1.5em}{2.6em}}
\renewcommand{\l@subsection}{\@dottedtocline{2}{4.0em}{3.6em}}
\renewcommand{\l@subsubsection}{\@dottedtocline{3}{7.4em}{4.5em}}
\makeatother
%\makeatletter
%\renewcommand{\l@section}{\@dottedtocline{1}{1.5em}{2.6em}}
%\renewcommand{\l@subsection}{\@dottedtocline{2}{4.0em}{3.6em}}
%\renewcommand{\l@subsubsection}{\@dottedtocline{3}{7.4em}{4.5em}}
%\makeatother

%%
%\frenchbsetup{} % Typographie française
%\onehalfspacing % Espace interligne
\RequirePackage{tocloft} %% Pour controler le design typographique de la table des matières
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} % Points dans la table des matières
%\RequirePackage{tocloft} %% Pour controler le design typographique de la table des matières
%\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} % Points dans la table des matières
\newcommand{\horrule}[1]{\rule{\linewidth}{#1}} % Définition de la ligne


Expand Down Expand Up @@ -148,13 +149,12 @@
\setkomafont{pagehead}{\normalfont}
\setkomafont{headsepline}{\color{darkblue}}
\setkomafont{footsepline}{\color{darkblue}}
\setkomafont{disposition}{\color{schrift}\bfseries}
\setkomafont{disposition}{\color{schrift}\sffamily}
\setkomafont{section}{\Large\color{schrift}\sffamily\bfseries}
\setkomafont{subsection}{\large\color{schrift}\sffamily\bfseries}
\setkomafont{subsubsection}{\normalfont\color{schrift}\sffamily\bfseries}
\endinput

linkcolor=darkblue,
urlcolor=darkblue
}


\tolerance 1414
\hbadness 1414
Expand All @@ -165,37 +165,16 @@
\raggedbottom


%\RequirePackage[noabbrev, french]{cleveref}
%\RequirePackage{lastpage} % Pour référencer la dernière page dynamiquement.
\RequirePackage{multicol} % Multicolonnes dans les tableaux
\RequirePackage{multirow} % Multilignes dans les tableaux
\RequirePackage{pstricks} % Créer des graphiques
\RequirePackage{siunitx} % Unité
\RequirePackage{dsfont} % pour les blackboard letters
\RequirePackage[normalem]{ulem}





\makeatletter
\g@addto@macro\bfseries{\bm} % Titre avec les maths en gras
\g@addto@macro\sffamily{\bm} % Titre avec les maths en gras
\makeatother



% Redéfinition des ensembles usuels + d'autres macros

\newcommand{\R}{\mathds{R}}
\newcommand{\N}{\mathds{N}}
\newcommand{\Z}{\mathds{Z}}
\newcommand{\e}{\mathrm{e}}
\newcommand{\ii}{\mathrm{i}}
\newcommand{\d}{\mathrm{d}}
\newcommand{\CC}{\mathds{C}}

% Url
\urlstyle{same}



Expand All @@ -210,42 +189,9 @@
%%
%\frenchbsetup{} % Typographie française
%\onehalfspacing % Espace interligne
\RequirePackage{tocloft} %% Pour controler le design typographique de la table des matières
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} % Points dans la table des matières
%\RequirePackage{tocloft} %% Pour controler le design typographique de la table des matières
%\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} % Points dans la table des matières
\newcommand{\horrule}[1]{\rule{\linewidth}{#1}} % Définition de la ligne


% Définition des couleurs
%\definecolor{darkblue}{rgb}{0.0,0.0,0.3}
%\definecolor{rahmen}{RGB}{0,73,114}
%\definecolor{grund}{RGB}{238,241,251}
%\definecolor{schrift}{RGB}{0,73,114}
\definecolor{rahmen}{cmyk}{0,1,1,0.50}
\definecolor{darkblue}{rgb}{0,0,0}
\definecolor{schrift}{cmyk}{0,1,1,0.50}
\definecolor{lightgray}{gray}{.95}




% Définition du style de la première page

\newpairofpagestyles{firstpage}{
\KOMAoptions{headsepline = false, footsepline = false}
\ohead{}
\chead{}
\ihead{}
\rofoot{}
\lofoot{}
}
\renewcommand*\titlepagestyle{firstpage}

% Headers & footers

\setkomafont{pageheadfoot}{\upshape}
\setkomafont{pagehead}{\normalfont}
\setkomafont{headsepline}{\color{darkblue}}
\setkomafont{footsepline}{\color{darkblue}}
\setkomafont{disposition}{\color{schrift}\bfseries}
\endinput

2 changes: 1 addition & 1 deletion ctex-fontset-sourcesans.def
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
\ctex_set_upfamily:nnn { zhkai } { upzhserifit } {}
}
{
\setCJKmainfont { Source~Han~Serif~CN }
\setCJKmainfont [ItalicFont = FZNewKai-Z03]{ Source~Han~Serif~CN }
\setCJKsansfont { Source~Han~Sans~SC }
\setCJKmonofont [ Extension = .otf ] { FandolFang-Regular }
\setCJKfamilyfont { zhsong }{ Source~Han~Serif~CN }
Expand Down

0 comments on commit 8a08db4

Please sign in to comment.