I'm trying to understand a piece of a legacy code of a style file that I should use on my document. But I'm getting the error You can't use `\spacefactor' in vertical mode \section. Since it should be working, I believe that is some stupid thing that I'm missing.
Does anyone had this problem? I believe that is a very quickly fix, but I have no clue of how to solve it...
Thanks!
Code: Select all
Code, edit and compile here:
\renewcommand{\section}{\@startsection {section}{1}{\z@}%{-3.5ex \@plus -1ex \@minus -.2ex}%{2.3ex \@plus.2ex}%{\fontsize{15}{12}\fontfamily{phv}\fontseries{bc}\selectfont}}
Code: Select all
Code, edit and compile here:
\let\footruleskip\undefined\usepackage{fancyhdr}\usepackage{lipsum}\usepackage[brazil]{babel}\usepackage{color}\usepackage{fancybox, epic, ifthen}\usepackage[authoryear]{natbib}\usepackage[font=small,format=hang,singlelinecheck=false,skip=12pt,labelsep=quad,labelfont=bf]{caption}\usepackage{concrete}\usepackage{helvet}\renewcommand{\familydefault}{\sfdefault}\usepackage[letterpaper]{geometry}\addto\captionsbrazil{\renewcommand\indexname{Índice Remissivo}}\addto\captionsbrazil{\renewcommand\chaptername{UNIDADE}}\definecolor{cinzauab}{gray}{0.73}\newcommand{\tracocima}{{\color{cinzauab}\rule[1cm]{\paperwidth}{1.5cm}}}\newcommand{\tracobaixo}{{\color{cinzauab}\rule[-2cm]{\paperwidth}{1.5cm}}}\def\@makechapterhead#1{%\thispagestyle{empty}%\vspace*{5.55cm}%\hspace*{-2.9cm}\tracocima\vspace*{0.5cm}\hspace*{0.4cm}{\fontsize{38}{12}\fontfamily{phv}\fontseries{bc}\selectfont \chaptername \space \thechapter}\par\vspace*{2.4cm}\noindent\hspace*{0.3cm}{\huge #1}\par\vspace*{1in}\hspace{-2.9cm}\tracobaixo\pagebreak\newpage \thispagestyle{empty}\null \newpage}\makeatletter\fancyput(0cm,0cm){\ifthenelse{\c@section<1}%% \ifthenelse{2<1}%{}%{\ifthenelse{\isodd{\thepage}}%{{\dottedline{2}(383,70)(383,-691)(550,-691)}}%{{\dottedline{2}(87,70)(87,-691)(-70,-691)}}
Code: Select all
Code, edit and compile here:
\documentclass[twoside, openright]{article}\usepackage{tavares}\author{NAME OF AUTHOR}\author{NAME OF AUTHOR}\title{TITLE OF BOOK}\date{}\begin{document}\let\cleardoublepage\clearpage\maketitle%\chapter{teste}fgfgdfg\chapter{test}\section{aaaa}\lipsum%\input{Capitulo_1.tex\end{document}\end{document}