Latex course for IAS IEEE branch
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

4 years ago
  1. \NeedsTeXFormat{LaTeX2e}
  2. \ProvidesClass{myclass}[2020/10/30 Example LaTeX class for IEEE-IAS course]
  3. %commands and packages
  4. \newcommand{\headlinecolor}{\normalcolor}
  5. \RequirePackage{xcolor}
  6. \definecolor{slcolor}{HTML}{882B21}
  7. % options:
  8. \DeclareOption{twocolumn}{\typeout{Error option not available}}
  9. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
  10. \ProcessOptions\relax
  11. \LoadClass[onecolumn]{article}
  12. % my commands:
  13. \def\nombre#1{\def\@nombre{#1}}
  14. \newcommand{\portada}{
  15. \begin{titlepage}
  16. \center
  17. \textsc{\LARGE Instituto Tecnologico de Morelia}\\[2.5cm]
  18. \@title
  19. \begin{flushleft}
  20. Alumno:
  21. \emph{\@nombre}
  22. \end{flushleft}
  23. \vfill
  24. \end{titlepage}
  25. }
  26. \newcommand{\seccion}{%
  27. \@startsection
  28. {section}{1}{0pt}{-1.5ex plus -1ex minus -.2ex}%
  29. {1ex plus .2ex}{ \Large\sffamily\slshape}%
  30. }
  31. \renewcommand{\normalsize}{\fontsize{9}{10}\selectfont}
  32. \setlength{\textwidth}{17.5cm}
  33. \setlength{\textheight}{22cm}
  34. % \setcounter{secnumdepth}{1}
  35. \newcounter{example}[section] %every new section the counter will be reset
  36. \newenvironment{example}[1][]{\refstepcounter{example}\par\medskip
  37. \textbf{Ejemplo~\theexample: #1.} \rmfamily}{\medskip}