Risposte nei forum create
-
AutoreRisposte
-
::
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
::
Questo è il preambolo
`
%================================================================
%
% (C) 2013
%
% Preambolo
%
%================================================================\documentclass[12pt,a4paper,twoside,openany,fleqn]{book}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage[english,italian]{babel}
\usepackage[top=3.5cm,right=3.5cm,bottom=3cm,left=3cm]{geometry}
\usepackage{mathptmx}
\usepackage[scaled=0.90]{helvet}
\usepackage{indentfirst}
\usepackage{courier}
\usepackage{siunitx}
\usepackage{amsmath}
\usepackage{amsbsy}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{euscript}
\usepackage{psfrag}
\usepackage{fancybox}
\usepackage{ifthen}
\usepackage{fancyhdr}
\usepackage[font=small,labelfont=bf,labelsep=period]{caption}
\usepackage{enumerate}
\usepackage{emptypage}
\usepackage[section]{placeins}
\usepackage{afterpage}
\usepackage{theorem}
\usepackage{wrapfig}
\usepackage{booktabs}
\usepackage{lettrine}
\usepackage{enumitem}
\usepackage{tabularx}
\usepackage[nocomment,nochange]{optional}
\usepackage[dvipsnames]{xcolor}
\usepackage[sf,bf]{titlesec}
\usepackage{empheq}
\usepackage[backref=page]{hyperref}
\hypersetup{colorlinks, urlcolor=MidnightBlue, linktocpage, citecolor=MidnightBlue, linkcolor=MidnightBlue}
\usepackage{listings}
\usepackage{frontespizio}
\usepackage{setspace}
\usepackage{url}
\usepackage{verbatim}
\usepackage[italian]{varioref}
%\usepackage[autostyle,italian=guillemets,]{csquotes}
%\usepackage{biblatex}
\usepackage[nottoc]{tocbibind}
\usepackage{xparse}
\usepackage{sectsty}
\chapterfont{\color{chaptercolor}}
\usepackage{subfigure}
\usepackage{imakeidx}
\makeindex[intoc]
`per quanto riguarda l’indice ho:
`
\thispagestyle{empty}
\pagecolor{white}
\tableofcontents
\cleardoublepage
\phantomsection
`la bibliografia
`
%*******************************************************
% Bibliografia
%*******************************************************
\cleardoublepage
\phantomsection
%\addcontentsline{toc}{chapter}{\bibname}
\begin{thebibliography}{99}
\bibitem{skin:colour}
Son Lam Phung, Douglas K . Chai, Ab desselam Bouzerdoum, {\em Skin colour based face detection}, Edith Cowan University Research.\bibitem{viola:jones}
Paul A. Viola, Micheal Jones, {\em Robust Real-Time Face Detection}, International Journal of Computer Vision.\bibitem{papageorgiou:poggio}
Constantine Papageorgiou, Tomaso Poggio, {\em A general framework for Object Detection}, International Journal of Computer Vision.\bibitem{papageorgiou:tomaso}
Constantine Papageorgiou, Tomaso Poggio, {\em A Trainable System for Object Detection}, International Conference.\bibitem{yoav:schapire}
Freund, Yoav; Schapire, Robert E., {\em A Decision-Theoretic Generalization of on-Line Learning and an Application to Boosting}.\bibitem{lienhart:maydt}
Lienhart R., Maydt J., {\em An extended set of Haar-like features for rapid object detection}, International Conferance.\bibitem{eckel:java}
Bruce Eckel, {\em Thinking in Java}, Apogeo, Milano.\bibitem{documentation:android}
Android Documentation, \url{http://developer.android.com/tools/index.html}\bibitem{documentation:opencv}
OpenCV Documentation, \url{http://docs.opencv.org}\bibitem{dicarlo:tesi}
Ing. Emiliano Di Carlo, Tesi di Laurea: {\em Controllo di sistemi domotici mediante l'analisi del movimento della Testa}.\end{thebibliography}
`Scusa Claudio per trovare l’errore ti devo inviare altro?
Riccardo
::
Grazie mille Claudio ! Adesso non ricevo nessun segnale di warning, ma il numero accanto alla voce dell’indice non è più cliccabile. Ho il seguente codice:`
\documentclass[12pt,a4paper,twoside,openany,fleqn]{book}
…
…
\usepackage{imakeidx}
\makeindex[intoc]\begin{document}
…. bla bla \index{OpenCV}
\cleardoublepage
\printindex
\end{document}
`P.S. per raggruppare l’indice con le lettere A, B, C, come devo fare?
-
AutoreRisposte