Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4fba9cb

Browse files
committed
french model
1 parent f7b73da commit 4fba9cb

File tree

7 files changed

+30
-20
lines changed

7 files changed

+30
-20
lines changed

‎book-ar/copyright.tex‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ \chapter*{\textarab{حقوق النشر}}
4242
Under the following terms:\\
4343
\begin{tabular}{m{.1\textwidth}m{.8\textwidth}}
4444
%
45-
& %\includegraphics[width=1cm]{img/by.png} &
45+
\includegraphics[width=1cm]{../img/by.png} &
4646
\textbf{Attribution —} You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. \\
4747
%
48-
& %\includegraphics[width=1cm]{img/sa.png} &
48+
\includegraphics[width=1cm]{../img/sa.png} &
4949
\textbf{ShareAlike —} If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.\\
5050
%
5151
&

‎book-fr/KodeBook.cls‎ renamed to ‎book-fr/KodeBookFR.cls‎

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
%
44

55
\NeedsTeXFormat{LaTeX2e} %[2009年09月24日]
6-
\ProvidesClass{KodeBook}[2017年08月17日 Create a book with codes]
6+
\ProvidesClass{KodeBookFR}[2018年12月29日 Create a book with codes]
77
\LoadClass[12pt, a4paper]{book}
88

99
\raggedbottom
@@ -49,6 +49,18 @@
4949

5050
\RequirePackage{etoolbox}
5151

52+
%Quotes, introduction
53+
\RequirePackage[many]{tcolorbox}
54+
55+
\RequirePackage{listings}
56+
\RequirePackage{lstlangKB}
57+
\RequirePackage{textcomp} %for textasciitilde
58+
59+
\RequirePackage{tocloft}
60+
61+
\usepackage{polyglossia}
62+
\setmainlanguage{french}
63+
5264
%\makeatletter
5365
\patchcmd{\@makechapterhead}{\vspace*{50\p@}}{\vspace*{-40\p@}}{}{}
5466
\patchcmd{\@makeschapterhead}{\vspace*{50\p@}}{\vspace*{-40\p@}}{}{}
@@ -60,8 +72,6 @@
6072
\patchcmd{\DOTI}{\mghrulefill}{\color{black}\mghrulefill}{}{}
6173
%\makeatother
6274

63-
%Quotes, introduction
64-
\RequirePackage[many]{tcolorbox}
6575

6676

6777
\def\thesection{\arabic{section}}
@@ -84,7 +94,7 @@
8494
\defaultfontfeatures{Mapping=tex-text}
8595

8696
\setmainfont
87-
[Path = fonts/CrimsonText/,
97+
[Path = ../book/fonts/CrimsonText/,
8898
Extension = .ttf,
8999
Ligatures=TeX,
90100
UprightFont=*-Regular,
@@ -94,7 +104,7 @@ BoldItalicFont=*-BoldItalic
94104
]{CrimsonText} %
95105

96106
\newfontfamily\merienda
97-
[Path = fonts/Merienda/,
107+
[Path = ../book/fonts/Merienda/,
98108
Extension = .ttf,
99109
Ligatures=TeX,
100110
UprightFont=*-Regular,
@@ -104,7 +114,7 @@ Scale=1
104114

105115

106116
\newfontface\quotefont
107-
[Path = fonts/Handlee/,
117+
[Path = ../book/fonts/Handlee/,
108118
Extension = .ttf,
109119
Ligatures=TeX,
110120
Scale=1.
@@ -113,7 +123,7 @@ Scale=1.
113123

114124

115125
\newfontface\codefont
116-
[Path = fonts/SourceCodePro/,
126+
[Path = ../book/fonts/SourceCodePro/,
117127
Extension = .ttf,
118128
Ligatures=TeX
119129
%Scale=1.5
@@ -123,7 +133,7 @@ Ligatures=TeX
123133
%Decorated Roman Initials by Dieter Steffmann
124134
%First seen on DaFont: before 2005
125135
\newfontface\lettrinefont
126-
[Path = fonts/decoratedRomanIni/,
136+
[Path = ../book/fonts/decoratedRomanIni/,
127137
Extension = .ttf,
128138
Ligatures=TeX
129139
%Scale=1.5
@@ -177,10 +187,6 @@ title={#1}
177187
\setlength{\parskip}{\baselineskip}%
178188

179189

180-
\RequirePackage{listings}
181-
\RequirePackage{lstlangKB}
182-
\RequirePackage{textcomp} %for textasciitilde
183-
184190
\def\@codeStyle@background{\color{indigo!10!white}}
185191

186192
\lstdefinestyle{codeStyle}{
@@ -409,7 +415,6 @@ title={#1}
409415
}
410416

411417

412-
\RequirePackage{tocloft}
413418

414419
\renewcommand{\contentsname}{}
415420
\renewcommand{\listfigurename}{}

‎book-fr/copyright.tex‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ \chapter*{Copyright}
4242
Under the following terms:\\
4343
\begin{tabular}{m{.1\textwidth}m{.8\textwidth}}
4444
%
45-
\includegraphics[width=1cm]{img/by.png} &
45+
\includegraphics[width=1cm]{../img/by.png} &
4646
\textbf{Attribution —} You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. \\
4747
%
48-
\includegraphics[width=1cm]{img/sa.png} &
48+
\includegraphics[width=1cm]{../img/sa.png} &
4949
\textbf{ShareAlike —} If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.\\
5050
%
5151
&

‎book-fr/oop4coders.tex‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
\documentclass{KodeBook}
1+
% !TEX TS-program = xelatex
2+
% !TeX program = xelatex
3+
% !TEX encoding = UTF-8 Unicode
4+
% !TEX spellcheck = fr
5+
6+
\documentclass{KodeBookFR}
27

38
%To prevent other chapters from creating a new document
49
\let\wholebook=\relax
@@ -9,9 +14,9 @@
914

1015
%opening
1116
%\title{Object-Oriented Programming \\ \hspace{1cm} for \\ \hspace{2cm} Coders}
12-
\title{Object-Oriented Programming for Coders}
17+
\title{La programmation orientée-objet pour les programmeurs}
1318

14-
\author{Abdelkrime Aries}
19+
\author{ARIES Abdelkrime}
1520
\cover{../img/cover.jpg}
1621
\license{../img/cc-by-sa.png}
1722

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /