Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % !TeX TS-encoding = utf8
- % !TeX TS-spellcheck = fr_FR
- % !TeX TS-program = lualatex
- documentclass[markcolor=black,coverwidth=210mm,coverheight=297mm,spinewidth=64.53082pt, bleedwidth=2.5mm]{bookcover}
- usepackage{fontspec}
- defaultfontfeatures{Ligatures=TeX}%,Numbers=OldStyle}% ,Scale=MatchLowercase} bug in current Biolinum
- setmainfont{Linux Libertine O}
- setsansfont{Linux Biolinum O}
- usepackage{polyglossia}
- setmainlanguage{french}
- usepackage{xparse}
- usepackage{microtype}
- usepackage{impnattypo}
- usepackage{graphicx}
- usepackage{xcolor}
- usepackage{pgfplots}
- usetikzlibrary{calc, positioning,}
- makeatletter
- NewDocumentCommandpgfextractlength{mO{1}mO{center}mO{center}}{%
- pgfpointdiff{pgfpointanchor{#3}{#4}}
- {pgfpointanchor{#5}{#6}}
- pgf@xa=pgf@x % no need to use a new dimen
- pgf@ya=pgf@y
- pgfmathparse{#2*veclen(pgf@xa,pgf@ya)/28.45274} % to convert from pt to cm
- globallet#1pgfmathresult % we need a global macro
- }
- makeatother
- defannee{}
- newcommand{Annee}[1]{defannee{#1}}
- definecolor{bleu045}{rgb}{0, .17, .45}
- definecolor{estia}{RGB}{0,158,225}
- Annee{2017}
- defgram{80}
- defmain{1.8}
- defplat{0}
- begin{document}
- pgfmathsetmacro{longueur}{coverwidth+bleedwidth}
- pgfmathsetmacro{Ltitre}{.6*coverwidth}
- pgfmathsetmacro{Htitre}{.4*spinewidth}
- begin{bookcover}
- bookcovercomponent{center}{above front}{
- color{red}Paramètres: largeur=thecoverwidth, hauteur=thecoverheight, fond perdu=thebleedwidth, dos=thespinewidth, grammage=gram, main=main, plat carton=plat pt}
- bookcovercomponent{tikz}{spine}{
- node at (part.center) [rotate=90, anchor=center] {resizebox{Ltitre pt}{!}{bfseriesscshape Publications scientifiques — annee}};
- % node at (part.center) [rotate=90, anchor=center] {resizebox{!}{Htitre pt}{bfseriesscshape Publications scientifiques — annee}};
- node at ($(part.south)+(0,bleedwidth)$) [rotate=90, anchor=west] {Logo};
- }
- bookcovercomponent{tikz}{bg front}{
- node (batiment) at (part.north) [inner sep=0pt, outer sep=0pt, anchor=north] {image};
- node (lisere) [below=0pt of batiment, inner sep=0pt, outer sep=0pt, minimum width=longueur pt, minimum height=1cm, fill=estia, fill opacity=.4]{};
- coordinate (ctitre) at (part.center);
- pgfextractlength{lAB}{lisere}[south]{ctitre}
- node (titre) at (ctitre) [minimum width=longueur pt, minimum height=lAB * 2cm, align=center, font={bfseries}, preaction={fill=bleu045, fill opacity=.4}]{scalebox{2}{Publications scientifiques}\[1em] scalebox{2}{annee}\[1.5em]{Large Rapport interne}};
- pgfextractlength{lBC}[.25]{titre}[south]{current page}[south]
- node at($(titre.south)!.5!(part.south)$) {includegraphics[height=lBC cm]{Logo}};
- }
- end{bookcover}
- end{document}
Add Comment
Please, Sign In to add comment