Re: sezione con frame colorato

#75969
Up
0
Down
::


Certo! Ecco il preambolo per intero ed un estratto.

`
% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode

%%%%%%%%%%%%%%%%

\documentclass[10pt]{article}
\pagestyle{plain}

\usepackage[a4paper]{geometry}
\geometry{height=230mm,width=160mm}
\parindent=0pt

\setcounter{secnumdepth}{1}

%— Testo
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX,
SmallCapsFont={* Caps}]
{Latin Modern Roman}
\newfontfamily{\titolo}
[Color=DarkBlue]
{Latin Modern Roman}
\newfontfamily{\tabfont}
[Ligatures=TeX]
{Arial Narrow}
\newfontfamily{\sezionefont}
[Color=DarkBlue]
{Latin Modern Sans}
\newfontfamily{\firmafont}
{Zapfino}
\newfontfamily{\emailfont}
[Scale=0.95,Color=blue]
{Courier New}

\usepackage{polyglossia}
\setmainlanguage{italian}
\setotherlanguage{german}
\setotherlanguage[variant=polytonic]{greek}

\newcommand\textbfit[1]{\textbf{\itshape#1}}
\newcommand\germanem[1]{{%
\addfontfeature{LetterSpace=20.0,
Ligatures=NoCommon} #1}}

%— Pacchetti utili
\usepackage{tikz}
\usepackage{metalogo}
\usepackage{ragged2e}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{enumitem}
\usepackage[hang]{footmisc}
\renewcommand{\footnotemargin}{10pt}
\renewcommand{\hangfootparindent}{\footnotemargin}

%— Personalizzazione paragrafo
\usepackage{titlesec}

\titleformat{\section}[frame]
{}
{}{4pt}{
\sectionfont\bfseries\filcenter}[]
\titlespacing{\section}{0pt}
{1.5pc plus 2pt minus 2pt}
{1.5pc plus 2pt minus 2pt}

\titleformat{\subsection}[display]
{\normalfont\filcenter}
{}{}{\sezionefont\bfseries\filcenter}
\titlespacing{\subsection}{0pt}
{1.25pc plus 2pt minus 2pt}
{1pc plus 2pt minus 2pt}

% Inform. personali
%%% Nelle informazioni usa:
%%% \info{Etichetta}{Informazione desiderata}
\newenvironment{informazioni}
{\begin{description}[itemsep=2pt]}
{\end{description}}
\newcommand{\info}[2]{%
\item{\textsc{#1:}}
\begin{minipage}[t]{10cm}
\RaggedRight #2
\end{minipage}}

% Esper. professionale
%%% Nelle tabelle usa:
%%% \entry{Etichetta}{Descrizione}
%%% Chiudi ogni esperienza di lavoro con:
%%% \emptyline
\newcolumntype{A}{>{\scshape\raggedleft}p{38mm}|}
\newcolumntype{Y}{p{111mm}}
\newcommand{\entry}[2]
{#1 & \RaggedRight #2 \\}
\newcommand{\emptyline}{\null &\null \\}
% Colori
\newcommand{\rosso}{\addfontfeatures{Color=Red}}
\newcommand{\blue}{\addfontfeatures{Color=DarkBlue}}

% Utilità
\newcommand{\ap}{\textsuperscript}

%%%%%%%%
%%%%%%%%
%%%%%%%%

%— Inizio del documento:

%%%%%%%%
%%%%%%%%
%%%%%%%%
\begin{document}
\begin{center}
\titolo\bfseries\huge
CURRICULUM VITAE
\end{center}

\section{INFORMAZIONI PERSONALI}

\end{document}
`

Ciao,

Andrea

Go to top