Estoy intentando hacer mi tarea de matemáticas y mi profesor nos proporcionó el código de la plantilla.
He hecho todos los deberes en el pasado copiándolos y pegándolos en un documento nuevo y luego comencé a agregar mi código, sin problemas.
Sin embargo, esta vez, cuando intento compilar después de pegar el código de la plantilla, aparece un error que dice "Opciones globales no utilizadas". ¿Cómo puedo solucionar esto?
Aquí está el código de la plantilla:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Do not alter the next line
\documentclass[12pt,reqno,onesided]{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Fill in the appropriate information below
\newcommand{\DueDate}{10/31/19} %change every time
\newcommand{\Pin}{100} %change first time
\newcommand{\Name}{Engergizer Bunny} %change first time
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%Do not alter this block of commands.
%If you're proficient at LaTeX, you may include additional packages,
%create macros (newcommands), etc.
%immediately below this block of commands, but make sure to
%NOT alter the header, margin, and comment settings here.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsmath,amsthm,amssymb,amsfonts,enumitem,color,comment,graphicx,environ}
\usepackage{wasysym} %\smiley
\usepackage[dayofweek]{datetime}
%%%%%%%%%%%%%%%%%%%%%
\setlength{\textwidth}{500pt}
\setlength{\hoffset}{-68.4pt}
\setlength{\textheight}{650pt} %700
\setlength{\voffset}{5pt}
\setlength{\topmargin}{-57.6pt}
\setlength{\footskip}{32pt}
%\setlength{\parindent}{0pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr,lastpage}
\pagestyle{fancyplain}
\lhead{Math 300}
\chead{}
\rhead{Pin: \Pin\\ \Name\\ {\tiny Due Date:} \DueDate}
\lfoot{\footnotesize Last Modified: \today~at \currenttime}
\cfoot{}
\rfoot{\footnotesize Page \thepage\ of \pageref{LastPage}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\setlength{\headheight}{23pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{exercise}[1]
{\baselineskip 14 pt\vskip 10 pt\noindent\textbf{Exercise~#1.}}
{\vsp{0}\hsp{100}\makebox[200pt]{\dotfill}\vsp{5}}
\newenvironment{lemma}[1]
{\baselineskip 14 pt\vskip 10 pt\noindent\textbf{Lemma~#1.}}
{\vsp{0}\hsp{100}\makebox[200pt]{\dotfill}\vsp{5}}
\newcommand{\soln}{\noindent\textsc{Solution}. }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\N}{\mathbb N} % how to make the Natural Numbers symbol.
\newcommand{\R}{\mathbb R}
\newcommand{\Q}{\mathbb Q}
\newcommand{\Z}{\mathbb Z}
\newcommand{\lp}{\left(} % left parentheses
\newcommand{\rp}{\right)} % right parentheses
\newcommand{\lc}{\left\{} % left curly
\newcommand{\rc}{\right\}} % right curly
\newcommand{\lb}{\left[} % left bracket
\newcommand{\rb}{\right]} % right bracke
\newcommand{\lav}{\left\vert} % left absolute value
\newcommand{\rav}{\right\vert} % right absolute value
\newcommand{\lv}{\left\langle\,} % left vector sign <
\newcommand{\rv}{\,\right\rangle} % right vector sign >
\newcommand{\hsp}[1]{\hskip #1 pt}
\newcommand{\vsp}[1]{\vskip #1 pt}
\newcommand{\tn}[1]{\textnormal{{#1}}}
\newcommand{\mycomment}[1]{\textrm{\scriptsize $\left\langle\right.$\textrm{#1}$\left.\right\rangle$}} % comment to yourself
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% You can start adding your own newcommand (i.e., alias/macros)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Do not alter this block.
\begin{document}
\baselineskip 22 pt % 22 pt is double spaced.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Start your homework here
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Do not alter anything below this line.
\vfill\eject
\end{document}
Respuesta1
Lo que estás obteniendo no es unerrormensaje. En cambio, es solo lo siguienteadvertenciamensaje:
LaTeX Warning: Unused global option(s):
[onesided].
Tienes dos opciones (juego de palabras):
Ignora la inofensiva advertencia.
Elimine la opción global no utilizada, es decir, cambie la instrucción.
\documentclass[12pt,reqno,onesided]{article}
a
\documentclass[12pt,reqno]{article}
Un comentario final: el código de la plantilla de su instructor es bastante ineficiente e incluye instrucciones inútiles, como las \vfill\eject
inmediatamente anteriores \end{document}
. No me sorprendería que encontrara varios mensajes de advertencia de apariencia aleatoria.
Respuesta2
Agregando una tercera solución a @Mico: podrías reemplazar el error tipográfico. En realidad, la opción de clase correcta sería oneside
(no onesided
como dijo tu profesor). oneside
resulta ser el valor predeterminado para las clases article
y report
. Como las opciones predeterminadas se pueden omitir de forma segura, mi consejo también se puede reducir y rastrear de forma segura hasta la segunda solución de Mico.
Pero, como hoy en día estamos desperdiciando muchos recursos, incluido el papel, le sugiero que ignore las órdenes de su profesor y cambie la primera línea de su documento a
\documentclass[12pt,twoside]{article}
EDITAR: intenté aclarar el punto del diseño
Esto cambiaría el diseño de su documento para que sea de dos caras, es decir, prepararía su documento para imprimir dos páginas lógicas en una hoja de papel, ahorrándole a usted (y a nuestro entorno) aproximadamente el 50 % del papel utilizado. Obviamente, su impresora también debe admitir la impresión a doble cara.