Eliminare riga

  • Creatore
    Topic
  • #115831
    Up
    0
    Down
    ::


    Salve a tutti,

    mi trovo a scrivere la tesi in Latex per la prima volta, dopo varie letture nei forum e sull’Arte ho deciso di utilizzare come base una tesi di dottorato che ho trovato, ma non trovando il modo di modificare quello che mi interessa.

    Il mio problema stà nel cancellare la riga di intestazione in alto nelle pagine di inizio capitolo.

    Allego .sty in cui non riesco a capire dove modificare quello che mi serve.

    `\NeedsTeXFormat{LaTeX2e}[1994/06/01]
    \ProvidesPackage{phdthesis}[2007/09/11 v1.0 PhD Thesis Style]

    %% Set the font packages and options
    %% for better typesetting
    \RequirePackage{times}
    %\renewcommand{\familydefault}{\sfdefault}

    %% Set the options for the captions of figures,
    %% tables, etc.
    \RequirePackage{caption}
    \captionsetup{format=plain,indention=.5cm,singlelinecheck=false,labelfont=bf,textfont=it}

    %% change the equation number appearance
    %% load up the AMS math package
    \RequirePackage{amsmath}

    %% Definition of the definition environment
    \RequirePackage{amsthm}
    \newtheorem{defn}{Definition}[chapter]

    %% load up the fancy box making package
    \RequirePackage{fancybox}

    %% make the equation numbers have little ovals around them
    % \def\tagform@#1{\maketag@@@{\cornersize{0.8}\ovalbox{\ignorespaces\sffamily{#1}\unskip\@@italiccorr}}}

    %% Load up PS insertion package
    %\RequirePackage{psboxit}
    %\PScommands

    %% Load up fancy headers and footers package
    \RequirePackage{fancyhdr}

    %% now reset the headers and footers
    \fancyhead{}
    \fancyfoot{}
    %% make the odd pages have the section name on the top right
    \fancyhead[RO]{\sffamily\bfseries\nouppercase{\rightmark}}
    %% make the even pages have the chapter name on the top left
    \fancyhead[LE]{\sffamily\bfseries\nouppercase{\leftmark}}

    %% Add author name and institution to the bottom of the page
    %\fancyfoot[RE,LO]{\textit{\@author}}
    %\fancyfoot[CE,CO]{\small{Universit\'a di Pisa}}
    \fancyfoot[CE,CO]{\thepage}

    %% put the page numbers on the bottom in a nice box
    %% even side pages
    %\fancyfoot[LE]{\psboxit{box 0.8 setgray fill}
    %{\framebox[10mm][c]{\rule{0cm}{4mm}\color{black}{\bfseries \thepage}}}}
    %% odd side pages
    %\fancyfoot[RO]{\psboxit{box 1 setgray fill}
    %{\hspace{\textwidth}\psboxit{box 0.8 setgray fill}
    %{\framebox[10mm][c]{\rule{0cm}{4mm}\color{black}{\bfseries \thepage}}}}}

    %% make the bottom line above the page number box
    %\renewcommand{\footrulewidth}{0.4pt}
    %\renewcommand{\footruleskip}{-0.1mm}

    %% bring the style into effect
    \pagestyle{fancy}

    %% now redefine the plain style pages (chapter pages, contents pages)
    %% to have the same page number stuff on the bottom
    \fancypagestyle{plain}{
    \fancyhf{}
    \fancyfoot[CE,CO]{\thepage}
    %\fancyfoot[RE,LO]{\textit{\@author}}
    %\fancyfoot[CE,CO]{\small{Universit\'a di Pisa}}
    %\fancyfoot[RO]{\psboxit{box 1 setgray fill}
    %{\hspace{\textwidth}\psboxit{box 0.8 setgray fill}
    %{\framebox[10mm][c]{\rule{0cm}{4mm}\color{black}{\bfseries \thepage}}}}}
    %\renewcommand{\headrulewidth}{0pt}
    %\renewcommand{\footrulewidth}{0.4pt}
    %\renewcommand{\footruleskip}{-0.1mm}
    }

    %% this next section (till \makeatother) makes sure that blank pages
    %% are actually completely blank, cause they're not usually
    \makeatletter
    \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
    \hbox{}
    \vspace*{\fill}
    \thispagestyle{empty}
    \newpage
    \if@twocolumn\hbox{}\newpage\fi\fi\fi}
    \makeatother

    %%% now change the chapter style
    %%% load up the quotchap package
    %\RequirePackage[avantgarde]{quotchap}
    %
    %%% make the quotation appear next to the chapter number
    %\renewcommand\chapterheadstartvskip{\vspace*{-5\baselineskip}}

    %% Alternative Chapter Style
    \RequirePackage[Sonny]{fncychap} % Sonny was Bjornstrup
    \ChNumVar{\fontsize{28}{80}\usefont{OT1}{OT1}{m}{n}\selectfont}
    \ChTitleVar{\raggedleft\Large\sffamily\bfseries}

    %% now change the section heading to have a line beneath it
    %% load up the fancy title-style package
    \RequirePackage[calcwidth]{titlesec}
    \titleformat{\section}[hang]{\sffamily\bfseries}
    {\Large\thesection}{12pt}{\large}[{\titlerule[0.5pt]}]

    %% Used to have big letters at the beginning of each Chapter
    \RequirePackage{type1cm}
    \RequirePackage{lettrine}
    \renewcommand{\LettrineFontHook}{\color[gray]{0.3}}
    \setcounter{DefaultLines}{3}
    \renewcommand{\DefaultLoversize}{0.25}
    \renewcommand{\DefaultLhang}{0.25}

    %% Now Lets customize the TOC
    \RequirePackage[subfigure,titles]{tocloft}
    %\setlength{\cftbeforechapskip}{2ex}
    %\setlength{\cftbeforesecskip}{0.5ex}
    \renewcommand{\cftchapfont}{%
    \usefont{OT1}{phv}{bc}{n}\selectfont
    }
    \makeatletter
    \renewcommand{\@pnumwidth}{1.75em}
    \renewcommand{\@tocrmarg}{2.75em}
    \makeatother

    %% Finally here are the settings for the
    %% glossary
    \RequirePackage[toc,acronym]{glossaries}
    \newglossarystyle{thesisglossary}{%
    \setglossarystyle{long}% base this style on the long style
    \setacronymstyle{long-short}
    \renewcommand*{\glsgroupheading}[1]{%
    \textbf{\glsgetgrouptitle{##1}}\\}
    }
    \setglossarystyle{thesisglossary}

    %%
    %% End of file `phdthesis.sty“

    Ringrazio per l’aiuto!

    Attachments:
    You must be logged in to view attached files.
Visualizzazione 2 filoni di risposte
  • Autore
    Risposte
    • #115832
      OldClaudio
      Partecipante
        Up
        0
        Down
        ::


        Benvenuto nel forum.

        Il primo “errore” che hai fatto è stato quello di scegliere un pacchetto per creare uno stile per la tua tesi che non è distribuito dal sistema TeX, quindi in teoria nessuno dei frequentatori dei questo forum riuscirebbe a darti una mano.

        Fortunatamente hai accluso il file; ma non dici con quale classe e con quali opzioni lo usi; così su due piedi direi che potrebbe bastare togliere il segno di commento dalla riga che specifica lo spessore dell’headrule nella ridefinizione dello stile di pagina plain.

        Ma non ti posso dire che sia davvero la soluzione, perché mi mancano le informazioni sulla classe e sulle sue opzioni, così da crearmi un semplice esempio minimo compilabile per testare la cosa.

        Non ti sto dicendo che l’ “errore” sia davvero un errore; la foto che hai accluso racconta abbastanza sul fatto che lo stile ha una sua originalità, quindi vai pure avanti con questo stile. Tuttavia, in futuro cerca di fornire più dettagli epr altre tue future richieste; per ora basterebbe che mostrassi il codice da \documentclass a \begin{document} eliminando i tuoi dati personali sostituendoli con nomi fasulli, titoli fasulli, nomi di università fasulle, in modo da non divulgare dati sensibili.

      • #115833
        Up
        0
        Down
        ::


        Buongiorno e grazie mille per la pronta ed esauriente risposta.
        Non ho ben capito dove poter correggere quello che mi serve, comunque controllerò sui manuali con le indicazione che mi hai fornito.

        Allego comunque il codice.
        `\documentclass[a4,12pt,twoside,openright,italian,english]{book}

        \usepackage[twoside=true]{geometry}

        \geometry{a4paper,
        margin=3cm,
        top=3.8cm,
        bindingoffset=0.4cm
        }

        \usepackage[cam,center,a4,pdflatex,axes]{crop}

        \usepackage{phdthesis}

        \usepackage{fancyhdr}
        \usepackage{color}
        \usepackage{array}
        \usepackage{mdwmath}
        \usepackage{mdwtab}
        \usepackage{amsmath,amssymb}
        \usepackage{cite}
        \usepackage{graphicx}
        \usepackage{listings}
        \usepackage{subfig}
        \usepackage{booktabs}
        \usepackage{latexsym}
        \usepackage{color}
        \usepackage{url}
        \usepackage{bnf}
        \usepackage{rotating}
        \usepackage{multirow}
        \usepackage{phdtitle}
        \usepackage{paralist}
        \usepackage{bibentry}
        \usepackage[bookmarks=true,
        bookmarksopen=true,hidelinks]{hyperref}
        \usepackage[toc,acronym]{glossaries}
        \usepackage{lscape}
        \usepackage{algorithmic}
        \usepackage{algorithm}
        \usepackage{longtable}
        \usepackage[T1]{fontenc}
        %\usepackage[latin1]{inputenc}
        \usepackage[utf8]{inputenc}
        \hyphenation{}

        \newtheorem{Definition}{Definition}[section]

        \lstset{tabsize=2,basicstyle=\footnotesize,breaklines=true}

        \usepackage[english,italian]{babel}
        \usepackage{ulem}
        \normalem

        \hypersetup{pdftitle={Thesis A. LUDO}, pdfauthor={A. LUDO}}

        \nobibliography*

        \include{chapters/Notation}
        \include{chapters/Acronyms}
        \makeglossaries`

        Grazie.

      • #115834
        OldClaudio
        Partecipante
          Up
          0
          Down
          ::


          Come pensavo, basta decommentare una riga nel file phdthesis.sty in questa parte di codice:`\fancypagestyle{plain}{
          \fancyhf{}
          \fancyfoot[CE,CO]{\thepage}
          %\fancyfoot[RE,LO]{\textit{\@author}}
          %\fancyfoot[CE,CO]{\small{Universit\'a di Pisa}}
          %\fancyfoot[RO]{\psboxit{box 1 setgray fill}
          %{\hspace{\textwidth}\psboxit{box 0.8 setgray fill}
          %{\framebox[10mm][c]{\rule{0cm}{4mm}\color{black}{\bfseries \thepage}}}}}
          \renewcommand{\headrulewidth}{0pt} %%%%%%%%%%%%%%%%%%%%%%%% decommentare
          %\renewcommand{\footrulewidth}{0.4pt}
          %\renewcommand{\footruleskip}{-0.1mm}
          }`

          Non commento su quello che hai caricato e definito nel tuo preambolo e degli errori che vi hai introdotto; alcuni sono strutturali, altri probabilmente sono saltati fuori quando hai cercato di confezionare l’esempio minimo compilabile.

          Comunque togliendo il segno di commento alla riga evidenziata sopra, la riga sparisce, non perché non ci sia, ma perché ha spessore nullo, quindi è invisibile.

      Visualizzazione 2 filoni di risposte
      • Devi essere connesso per rispondere a questo topic.

      Go to top