lolletto

Risposte nei forum create

Stai visualizzando 7 risposte – dal 1 al 7 (di 7 totali)
  • Autore
    Risposte
  • in risposta a: Introduzione senza Capitolo 0 #56918
    Up
    0
    Down
    ::

    Ok il file in questione che prima (per esempio) ho chiamato {file}, si chiama {tesiinfo}:

    Evito di commentare quel codice. Da quello che posso capire non prevedono capitoli non numerati. Togli la chiamata di fancyhdr, perché vogliono uno stile loro (brutto).

    Meglio se il tuo preambolo è così:
    `\documentclass[a4paper,12pt]{file}

    %%Pacchetti
    \usepackage[T1]{fontenc}
    \usepackage[latin1]{inputenc}
    \usepackage[italian]{babel}

    \usepackage{microtype}
    \usepackage{subfig}
    \usepackage{color}
    \usepackage{listings}
    \lstset{language=PHP}
    \definecolor{darkgrays}{rgb}{0.95,0.95,0.95}
    \lstset{numbers=left, numberstyle=\tiny, stepnumber=1, numbersep=1pt,
    keywords={wait,case,else,elseif,end,for,function, class, construct,extends,
    if,assign,while}}
    \lstset{framexleftmargin=5mm, frame=single}
    \lstset{linewidth=\textwidth, showstringspaces=false}
    \lstset{keywordstyle=\bfseries\emph}
    \lstset{backgroundcolor=\color{darkgrays}}`
    Il pacchetto graphicx non serve perché lo carica già la classe; subfigure è obsoleto da anni. Meglio se carichi anche fontenc e microtype.

    Ciao
    Enrico

    Ok, grazie!Ho provato ma mi genera errore:(

    in risposta a: Introduzione senza Capitolo 0 #56916
    Up
    0
    Down
    ::

    L’unica riga che ho trovato con \chaptermark è questa:
    \def\chaptermark##1{}%

    Niente da fare. Per quanto lungo sia, non vedo altra scelta che mandarlo.

    Ciao
    Enrico

    Ok il file in questione che prima (per esempio) ho chiamato {file}, si chiama {tesiinfo}:

    \NeedsTeXFormat{LaTeX2e}[1995/12/01]
    \ProvidesClass{tesiinfo}
    \usepackage{graphicx}
    \newif\ifesterno
    \newcommand{\setesterno}{\newif\ifesterno
    \esternotrue}
    \newcommand{\unsetesterno}{\newif\ifesterno
    \esternofalse}

    \newif\ifindice
    \newcommand{\setindice}{\newif\ifindice
    \indicetrue}
    \newcommand{\unsetindice}{\newif\ifindice
    \indicefalse}

    \newif\iftesiinfoheadings
    \newif\ifhalftesiinfoheadings
    \newif\ifsmallerheadings
    \DeclareOption{latexheadings}{\tesiinfoheadingsfalse \halftesiinfoheadingsfalse}
    \DeclareOption{tesiinfoheadings}{\tesiinfoheadingstrue \halftesiinfoheadingsfalse}
    \DeclareOption{halftesiinfoheadings}{\halftesiinfoheadingstrue \tesiinfoheadingsfalse}
    \DeclareOption{normalsizeheadings}{\smallerheadingsfalse}
    \DeclareOption{smallerheadings}{\smallerheadingstrue}
    \ExecuteOptions{halftesiinfoheadings}
    \ExecuteOptions{smallerheadings}
    \DeclareOption{10pt}{%
    \iffinal%
    \OptionNotUsed%
    \ClassWarningNoLine{tesiinfo}{Font size 10pt not allowed; using 12pt}%
    \else%
    \PassOptionsToClass{10pt}{report}%
    \fi%
    }
    \DeclareOption{11pt}{%
    \iffinal%
    \OptionNotUsed%
    \ClassWarningNoLine{tesiinfo}{Font size 11pt not allowed; using 12pt}%
    \else%
    \PassOptionsToClass{11pt}{report}%
    \fi
    }
    \newcommand{\prelim@contents}[1]{}
    \DeclareOption{tocprelim}{%
    \renewcommand{\prelim@contents}[1]{\addcontentsline{toc}{section}{#1}}
    }
    \DeclareOption{draft}{%
    \let\ifdraft\iftrue%
    \let\iffinal\iffalse%
    \PassOptionsToClass{final}{report}%
    }
    \DeclareOption{final}{%
    \let\ifdraft\iffalse%
    \let\iffinal\iftrue%
    \PassOptionsToClass{final}{report}%
    }
    \DeclareOption{semifinal}{%
    \let\ifdraft\iffalse%
    \let\iffinal\iftrue%
    \PassOptionsToClass{draft}{report}%
    }
    \DeclareOption*{%
    \PassOptionsToClass{\CurrentOption}{report}%
    }
    \ExecuteOptions{final}
    \ProcessOptions
    \iffinal\LoadClass[12pt]{report}[1994/06/01]\else\LoadClass{report}[1994/06/01]\fi
    \renewcommand{\footnotesize}{\normalsize}
    \renewcommand{\@makefntext}[1]{%
    \parindent 1em%
    \noindent
    \footnotespacing
    \hbox to 1.8em{\hss\@makefnmark}#1
    \par\normalspacing
    }
    \renewcommand{\defaultscriptratio}{.75}
    \renewcommand{\defaultscriptscriptratio}{.6}
    \setlength\headsep{25\p@}
    \if@twocolumn
    \else
    \setlength\topmargin{-0.4in}
    \setlength\headheight{0.16667in}
    \setlength\headsep{0.33333in}
    \setlength\textheight{9.7in}
    \setlength\footskip{0.3in}
    \setlength\oddsidemargin{1cm}
    \setlength\evensidemargin{1cm}
    \setlength\textwidth{5.90in}
    \setlength\marginparsep{0.1in}
    \setlength\marginparwidth{0.8in}
    \fi
    \if@compatibility
    \setlength\topmargin{0\p@}
    \else
    \fi
    \newcommand{\ps@tesiinfo}{%
    \def\@oddhead{\noindent\rule[-1.5ex]{\textwidth}{0.5pt}\\[1.5ex]\hspace{-\textwidth}
    \ifindice Indice
    \else Capitolo \arabic{chapter}
    \fi
    }

    }
    \newcommand{\ps@tesiinfoc}{%
    \def\@oddhead{\hfil\thepage\hfil}%
    \def\@oddfoot{}%
    \def\@evenhead{\@oddhead}%
    \def\@evenfoot{}%
    \def\chaptermark##1{}%
    \def\sectionmark##1{}%
    }
    \raggedbottom
    \renewcommand{\contentsname}{Table of Contents}
    \renewcommand{\l@figure}{\@dottedtocline{1}{1.5em}{2.6em}}
    \let\l@table\l@figure

    \renewenvironment{thebibliography}[1]
    {\chapter*{\bibname
    \@mkboth{\uppercase{\bibname}}{\uppercase{\bibname}}}%
    \list{\@biblabel{\arabic{enumiv}}}%
    {\settowidth\labelwidth{\@biblabel{#1}}%
    \leftmargin\labelwidth
    \advance\leftmargin\labelsep
    \@openbib@code
    \usecounter{enumiv}%
    \let\p@enumiv\@empty
    \renewcommand\theenumiv{\arabic{enumiv}}}%
    \sloppy\clubpenalty4000\widowpenalty4000%
    \sfcode`\.=\@m\relax
    \addcontentsline{toc}{chapter}{\bibname}
    \singlespacing}
    {\def\@noitemerr
    {\@latex@warning{Empty `thebibliography’ environment}}%
    \normalspacing
    \endlist}

    \newcommand{\@titolo}{}
    \newcommand{\@sottotitolo}{}
    \newcommand{\@laureando}{}
    \newcommand{\@relatore}{}
    \newcommand{\@relatoreesterno}{}
    \newcommand{\@annoaccademico}{}

    \newcommand{\titolo}[1]{\renewcommand{\@titolo}{#1}}
    \newcommand{\sottotitolo}[1]{\renewcommand{\@sottotitolo}{#1}}
    \newcommand{\laureando}[1]{\renewcommand{\@laureando}{#1}}
    \newcommand{\relatore}[1]{\renewcommand{\@relatore}{#1}}
    \newcommand{\relatoreesterno}[1]{\renewcommand{\@relatoreesterno}{#1}}
    \newcommand{\annoaccademico}[1]{\renewcommand{\@annoaccademico}{#1}}

    \renewcommand{\maketitle}{%
    \begin{titlepage}%
    \newlength{\centeroffset}
    \setlength{\centeroffset}{-0.5\oddsidemargin}
    \addtolength{\centeroffset}{0.5\evensidemargin}
    \thispagestyle{empty}
    \vspace{\stretch{0.5}}
    \noindent\hspace*{\centeroffset}\makebox[0pt][l]{\begin{minipage}{\textwidth}
    \center
    \includegraphics*{logo}
    {\\
    \bfseries
    \large Universit\`a degli Studi dell’Aquila\\[1ex]}
    \end{minipage}}

    \noindent\hspace*{\centeroffset}\makebox[0pt][l]{\begin{minipage}{\textwidth}
    \center
    {\bfseries
    \large Facolt\`a di Ingegneria\\[1ex]}
    \end{minipage}}

    \noindent\rule[-1ex]{\textwidth}{1pt}\\[0.5ex]
    \noindent\hspace*{\centeroffset}\makebox[0pt][l]{\begin{minipage}{\textwidth}
    \center
    {\bfseries
    Tesi \\[1ex]}
    \end{minipage}}
    \vfill
    \noindent\hspace*{\centeroffset}\makebox[0pt][l]{\begin{minipage}{\textwidth}
    \center
    {\linespread{1.0}\Large\bfseries \@titolo \\
    }
    \doublespacing
    \emph{\large \@sottotitolo}
    \noindent\rule[-1ex]{\textwidth}{2pt}\\[2.5ex]
    \end{minipage}}
    \vfill
    \noindent\hspace*{\centeroffset}\makebox[-100pt][l]{\begin{minipage}{\textwidth}
    \flushleft
    {\bfseries
    Relatore \ifesterno Interno\fi:
    \hfill
    Laureando:\\[-1ex]}
    Prof. \@relatore
    \hfill
    \@laureando\\[4ex]
    \ifesterno
    {\bfseries
    \\[-1ex]}
    \@relatoreesterno \\[4ex]\fi\end{minipage}}
    {%\vspace{92pt}
    \vfill
    \noindent\rule[-1ex]{\textwidth}{0.5pt}
    \center
    {\bfseries Anno Accademico \@annoaccademico\\[1ex]}}
    \normalspacing
    \end{titlepage}
    }

    \renewenvironment{titlepage}{%
    \typeout{Title page}
    \pagestyle{empty}
    %\doublespacing
    }{%
    \normalspacing\clearpage
    }

    \newenvironment{copyrightpage}{%
    \typeout{Copyleft page}
    \pagestyle{empty}
    \null\vfil
    \begin{center}
    }{%
    \end{center}
    \vfil\null
    \clearpage%
    }

    \newcommand{\makecopyright}{%
    \begin{copyrightpage}
    \copyright\ \@copyrightyear{} \@copyrightholder \\
    ALL RIGHTS RESERVED \\[.5in]
    \end{copyrightpage}%
    }
    \newcommand{\@copyrightholder}{\@author}
    \newcommand{\@copyrightyear}{\@conferralyear}

    \newcommand{\copyrightholder}[1]{\renewcommand{\@copyrightholder}{#1}}
    \newcommand{\copyrightyear}[1]{\renewcommand{\@copyrightyear}{#1}}

    \newcommand{\makepublicdomain}{%
    \begin{copyrightpage}
    This document is in the public domain.
    \end{copyrightpage}%
    }

    \newlength{\@abhdskip}%
    \renewenvironment{abstract}{
    \typeout{Abstract}
    \setlength{\@abhdskip}{.6in}
    \addtolength{\@abhdskip}{-\topmargin}
    \addtolength{\@abhdskip}{-\headheight}
    \addtolength{\@abhdskip}{-\headsep}
    \addtolength{\@abhdskip}{-\baselineskip}
    \begin{center}%
    \vspace*{\@abhdskip}%
    \ifphd%
    {\def\\{\noexpand\\} \xdef\@abstracttitle{\@abstracttitle}}
    \expandafter\uppercase\expandafter{\@abstracttitle} \\[0.5\baselineskip]
    \@author,\ Ph.D. \\
    tesiinfo University\ \@conferralyear%
    \else
    \normalsize \bfseries\selectfont
    ABSTRACT
    \fi%
    \vspace{0.5\baselineskip}%
    \end{center}%
    \pagestyle{empty}
    \thispagestyle{empty}
    }{%
    \clearpage
    }

    \newcommand{\@abstracttitle}{\@title}
    \newcommand{\abstracttitle}[1]{\renewcommand{\@abstracttitle}{#1}}

    \newenvironment{biosketch}{%
    \typeout{Vita}
    \pagestyle{plain}
    \pagenumbering{roman}
    \setcounter{page}{3}
    \prelim@contents{Biographical Sketch}
    \chapter*{Biographical Sketch}
    }{%
    \clearpage
    }

    \newenvironment{dedication}{%
    \prelim@contents{Dedication}
    \null\vfil
    \begin{center}
    }{
    \end{center}
    \vfil\null
    \clearpage
    }

    \newenvironment{acknowledgements}{%
    \prelim@contents{Acknowledgements}
    \chapter*{Acknowledgements}
    }{%
    \cleardoublepage
    }

    \newcommand{\contentspage}{%
    \setindice
    % \singlespacing
    \label{toc}
    \prelim@contents{\contentsname}
    \tableofcontents
    \normalspacing
    \clearpage
    \unsetindice

    }

    \newcommand{\tablelistpage}{%
    \singlespacing
    \label{lot}
    \prelim@contents{\listtablename}
    \listoftables
    \normalspacing
    \clearpage
    }

    \newcommand{\figurelistpage}{%
    \singlespacing
    \label{lof}
    \prelim@contents{\listfigurename}
    \listoffigures
    \normalspacing
    \clearpage
    }
    \newcommand{\abbrlist}{%
    \singlespacing
    \prelim@contents{List of Abbreviations}
    \chapter*{List of Abbreviations}
    }

    \newcommand{\symlist}{%
    \singlespacing
    \prelim@contents{List of Symbols}
    \chapter*{List of Symbols}
    }

    \newcommand{\preface}{%
    \singlespacing
    \prelim@contents{Preface}
    \chapter*{Preface}
    }

    \newcommand{\singlespacing}{%
    \let\CS=\@currsize\renewcommand{\baselinestretch}{1.0}\tiny\CS}
    \newcommand{\singlespacingplus}{%
    \let\CS=\@currsize\renewcommand{\baselinestretch}{1.25}\tiny\CS}
    \newcommand{\doublespacing}{%
    \let\CS=\@currsize\renewcommand{\baselinestretch}{1.75}\tiny\CS}
    \newcommand{\realdoublespacing}{%
    \let\CS=\@currsize\renewcommand{\baselinestretch}{2}\tiny\CS}
    \newcommand{\normalspacing}{\doublespacing}
    \newcommand{\footnotespacing}{\singlespacing}
    \newcommand{\changespacing}[2]{%
    \renewcommand{#1}{%
    \let\CS=\@currsize\renewcommand{\baselinestretch}{#2}\tiny\CS}%
    }
    \ifdraft\changespacing{\normalspacing}{1}\fi
    \newcommand{\changenormalspacing}[1]{\renewcommand{\normalspacing}{#1}}
    \normalspacing

    \RequirePackage[Lenny]{fncychap}
    \pagestyle{tesiinfo}
    \endinput
    %%
    %% End of file `tesiinfo.cls’.

    in risposta a: Introduzione senza Capitolo 0 #56914
    Up
    0
    Down
    ::

    [quote][quote][quote]
    \documentclass[a4paper,12pt]{file}? Dubito di avere questa classe.

    Ciao
    Enrico

    Ti devo incollare il contenuto del file {file}?

    Siccome il problema sta lì, vedi tu. 🙂

    Ciao
    Enrico[/quote]

    E’ un file lunghissimo…te lo devo incollare veramente?Altrimenti se gentilmente puoi darmi qualche dritta di dove possa essere il problema, vedo di correggerlo io!
    Grazie ancora![/quote]
    C’è certamente una ridefinizione di \chaptermark sbagliata.

    Ciao
    Enrico[/quote]

    L’unica riga che ho trovato con \chaptermark è questa:
    \def\chaptermark##1{}%

    in risposta a: Introduzione senza Capitolo 0 #56912
    Up
    0
    Down
    ::

    [quote]
    \documentclass[a4paper,12pt]{file}? Dubito di avere questa classe.

    Ciao
    Enrico

    Ti devo incollare il contenuto del file {file}?

    Siccome il problema sta lì, vedi tu. 🙂

    Ciao
    Enrico[/quote]

    E’ un file lunghissimo…te lo devo incollare veramente?Altrimenti se gentilmente puoi darmi qualche dritta di dove possa essere il problema, vedo di correggerlo io!
    Grazie ancora!

    in risposta a: Introduzione senza Capitolo 0 #56910
    Up
    0
    Down
    ::

    \documentclass[a4paper,12pt]{file}? Dubito di avere questa classe.

    Ciao
    Enrico

    Ti devo incollare il contenuto del file {file}?

    in risposta a: Introduzione senza Capitolo 0 #56908
    Up
    0
    Down
    ::


    Ti incollo tutto il file main.tex 🙂

    \documentclass[a4paper,12pt]{file}

    %%Pacchetti
    \usepackage{fancyhdr}
    \usepackage[italian]{babel}
    \usepackage{subfigure}
    \usepackage[latin1]{inputenc}
    \usepackage{graphicx}
    \usepackage{color}
    \usepackage{listings}
    \lstset{language=PHP}
    \definecolor{darkgrays}{rgb}{0.95,0.95,0.95}
    \lstset{numbers=left, numberstyle=\tiny, stepnumber=1, numbersep=1pt, keywords={wait,case,else,elseif,end,for,function, class, construct,extends, if,assign,while}}
    \lstset{framexleftmargin=5mm, frame=single}
    \lstset{linewidth=\textwidth, showstringspaces=false}
    \lstset{keywordstyle=\bfseries\emph}
    \lstset{backgroundcolor=\color{darkgrays}}

    \begin{document}
    %———————-Prima pagina————————————-%
    \maketitle
    %———————-Indice——————————————-
    \tableofcontents
    \thispagestyle{empty}
    %———————-Capitoli——————————————-

    \chapter*{Introduzione}
    \addcontentsline{toc}{chapter}{Introduzione}
    \input {introduzione.tex}

    \end{document}

    in risposta a: Introduzione senza Capitolo 0 #56906
    Up
    0
    Down
    ::

    Ciao a tutti!
    ho un problema con latex…mi spiego meglio…quando creo l’introduzione con il seguente codice:

    \chapter*{Introduzione}
    \addcontentsline{toc}{chapter}{Introduzione}
    \input {introduzione.tex}

    All’inizio della seconda pagina (e anche delle altre), in alto a destra, mi scrive in automatico “Capitolo 0”.

    Come faccio a togliere questa fastidiosa scritta?

    Grazie a tutti 🙂

    Benvenuto!

    Senza vedere il preambolo del tuo documento è impossibile risponderti.

    Ciao
    Enrico

    Grazie per il benvenuto 😀

    Ti incollo i pacchetti inclusi nel file main.tex

    %%Pacchetti
    \usepackage{fancyhdr}
    \usepackage[italian]{babel}
    \usepackage{subfigure}
    \usepackage[latin1]{inputenc}
    \usepackage{graphicx}
    \usepackage{color}
    \usepackage{listings}
    \lstset{language=PHP}
    \definecolor{darkgrays}{rgb}{0.95,0.95,0.95}
    \lstset{numbers=left, numberstyle=\tiny, stepnumber=1, numbersep=1pt, keywords={wait,case,else,elseif,end,for,function, class, construct,extends, if,assign,while}}
    \lstset{framexleftmargin=5mm, frame=single}
    \lstset{linewidth=\textwidth, showstringspaces=false}
    \lstset{keywordstyle=\bfseries\emph}
    \lstset{backgroundcolor=\color{darkgrays}}

Stai visualizzando 7 risposte – dal 1 al 7 (di 7 totali)

Go to top