Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 763735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T16:36:40+00:00 2026-05-14T16:36:40+00:00

Why is this not working: \documentclass[a4paper,10pt]{article} \usepackage{a4wide} \usepackage[T1]{fontenc} \usepackage[portuguese]{babel} \usepackage[latin1]{inputenc} \usepackage{indentfirst} \usepackage{listings} \usepackage{fancyhdr} \usepackage{url}

  • 0

Why is this not working:

\documentclass[a4paper,10pt]{article}
\usepackage{a4wide}
\usepackage[T1]{fontenc}
\usepackage[portuguese]{babel}
\usepackage[latin1]{inputenc}
\usepackage{indentfirst}
\usepackage{listings}
\usepackage{fancyhdr}
\usepackage{url}
\usepackage[compat2,a4paper,left=25mm,right=25mm,bottom=15mm,top=20mm]{geometry}
\usepackage{color}
\usepackage[colorlinks]{hyperref}
\usepackage[pdftex]{graphicx}

\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}

\pagestyle{fancy}

\fancyhead[L]{\small Laboratórios de Informática III}
\fancyhead[R]{\small Projecto 1 (Linguagem \textsf{C})}

\lstset{
    basicstyle=\ttfamily\footnotesize,
    showstringspaces=false,
    frame=single,
    tabsize=4,
    breaklines=true,

}

\definecolor{Section1}{rgb}{0.09,0.21,0.36}
\definecolor{Section2}{rgb}{0.21,0.37,0.56}
\definecolor{Section3}{rgb}{0.30,0.50,0.74}

\hypersetup{
    bookmarks=false,
    linkcolor=red,
    urlcolor=cyan,
}

\renewcommand{\section}[1]{\texorpdfstring{\color{green}#1}{#1}}

\parskip=6pt

\begin{document}

\begin{titlepage}

\begin{center}

\includegraphics[width=5cm]{./logo.jpg}\\[1cm]

\textsc{\LARGE Universidade do Minho}\\[1cm]

\textsc{\large Licenciatura em Engenharia Informática\\Laboratórios de Informática III}\\[1.5cm]

\rule{\linewidth}{0.5mm}\\[0.4cm]

\huge{\textbf{\textsc{Relatório do Projecto 1 (Linguagem C)}}}

\rule{\linewidth}{0.5mm}

\vfill

\begin{tabular}{c c}

    \includegraphics[width=3.5cm]{./nuno.jpg} & \includegraphics[width=3.5cm]{./ricardo.jpg} \\

    \textsc{\large{Nuno Mendes (51161)}} & \textsc{\large{Ricardo Amaral (48404)}} \\

\end{tabular}

\vfill

\large{\today}

\end{center}

\end{titlepage}

\tableofcontents

\newpage

\section{Introdução}

Lorem ipsum...

\newpage

\appendix

\section{\color{Section1}Diagrama das Estruturas de Dados}

\begin{center}
\includegraphics[width=16cm]{./Diagrama.pdf}
\end{center}

\end{document}

! LaTeX Error: Something’s
wrong–perhaps a missing \item.

See the LaTeX manual or LaTeX
Companion for explanation. Type H
for immediate help. …

                                               l.2 ...rline {1}\color

{green}Teste}{3}{section.1}

How can I make it work properly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T16:36:40+00:00Added an answer on May 14, 2026 at 4:36 pm

    This was for a project report already delivered and I’m not going to bother with it anymore, at least for now cause I have more important things to deal with at the moment.

    I “fixed” it by using \newcommand instead and created my own commands to replace \section, \subsection and it was basically a case of find/replace. It’s not the best solution as I like to use whatever is there already and configure it accordingly, but it will do for now…

    I’ll revisit this problem in the future if I need too. I appreciate everyone’s input.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't know if my mind is not working today or if this is
I thought this would be simple, but its not working .. in both the
I've been trying this a couple of different ways, but it's not working for
Why is this not working for me? What is wrong with my code below?
So why is this not working? I'm creating a regex that will match a
Could anyone explain to my why this is not working? In the database we
Can somebody explain me why is this not working? I'm executing XmlNode xmlNode =
Can anybody tell me why is this not working? <input name =txtChat id =txtChat
I am trying the strtok in visual c++, but it seems not working. This
Why is this not working ? StreamReader m = new StreamReader(../folder1/email.html, System.Text.Encoding.UTF8); code file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.