Re: [RISOLTO]: warning

#82694
Up
0
Down
::


Scusami Claudio la riga `\chapterfont{\color{chaptercolor}}` non la trovo 😎 ; io come impostazioni ho:
`
% Impostazioni

% colore
%=====================================================================
\definecolor{chaptercolor}{named}{MidnightBlue}
\definecolor{frontcolor}{named}{Yellow}
\definecolor{frontcolorbkg}{named}{MidnightBlue}
\definecolor{pagequadrocolor}{rgb}{0.8,0.85,1}
\definecolor{pagequadroframe}{named}{Black}
%=====================================================================
% definisce comando colorchapter per avere chapter e appendix a colori
%=====================================================================
\newcommand{\colorchapter}[1]{\chapter{\textcolor{chaptercolor}{#1}}}
\newcommand{\colorchapterx}[1]{\chapter*{\textcolor{chaptercolor}{#1}}}
%=====================================================================
% Formattazione documento
%=====================================================================
\pagestyle{fancyplain} \addtolength{\headwidth}{\marginparsep}
\setlength{\headheight}{15pt}
\renewcommand{\headrulewidth}{1pt} % modificare questo per spessore linea header
\renewcommand{\chaptermark}[1]%
{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]%
{\markright{\thesection\ #1}}
\lhead[\fancyplain{}{\sf\bfseries\thepage}]%
{\fancyplain{}{\sf\bfseries\rightmark}}%
\rhead[\fancyplain{}{\sf\bfseries\leftmark}]%
{\fancyplain{}{\sf\bfseries\thepage}}%
\cfoot{}

%titolo
\titleformat{\chapter}[display]
{\Huge\sf\bfseries\color{MidnightBlue}}
{\filleft{\LARGE\chaptertitlename}\LARGE\thechapter}
{4ex}
{\filleft\titlerule
\vspace{2ex}%
}
[\vspace{2ex}%
\titlerule]
%=====================================================================
% codice
\lstnewenvironment{java}{\lstset{language=Java,basicstyle=\small\ttfamily\color{black}, showstringspaces=false,stringstyle=\color{MidnightBlue}\bfseries,
keywordstyle=\color{DarkOrchid}\bfseries,breaklines=true,commentstyle=\color{Emerald}}}{}

\lstnewenvironment{xml}{\lstset{language=XML,basicstyle=\small\ttfamily
\color{MidnightBlue},keywordstyle=\color{DarkOrchid},stringstyle=\color{blue},
morekeywords={encoding,name,Riccardo},showstringspaces=false,breaklines=true}}{}

%=====================================================================

\newcommand*\mygraybox [1]{\colorbox{lightgray}{#1}}
`

Riccardo

Go to top