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.

101 lines
1.8 KiB

  1. \NeedsTeXFormat{LaTeX2e}
  2. \ProvidesClass{miclase}
  3. [2020/11/03 Ejemplo de clase para el tutorial de IEEE-IAS student branch; Gerardo Marx]
  4. %packages
  5. \RequirePackage{blindtext}
  6. \RequirePackage{graphicx}
  7. %\RequirePackage{amsmath}
  8. \RequirePackage{booktabs}
  9. %\RequirePackage{tikz}
  10. %\RequirePackage{pgfplots}
  11. %\RequirePackage{listings}
  12. \DeclareOption{twocolumn}{
  13. \OptionNotUsed
  14. \typeout{Option not used}
  15. }
  16. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
  17. \ProcessOptions\relax
  18. \LoadClass[onecolumn]{article}
  19. \def\nombre#1{\def\@nombre{#1}}
  20. \def\titulo#1{\def\@titulo{#1}}
  21. %new commands
  22. \newcommand{\portada}{
  23. \begin{titlepage}
  24. %\includegraphics[width=6cm]{logo-tecnm}\hspace{0.5cm}
  25. %\includegraphics[width=3cm]{logo}\hspace{1.5cm}
  26. \includegraphics[width=3cm]{example-image-a}\\[2cm]
  27. %Headings
  28. \center{}
  29. \textsc{\LARGE Instituto Tecnológico de Morelia}\\[1.5cm]
  30. \textsc{\Large División de Estudios Profesionales}\\[1cm]
  31. \textsc{\Large Departamento de Ingeniería Y}\\[0.5cm]
  32. %Title
  33. \rule{\linewidth}{0.5mm}\\[0.4cm]
  34. {\huge \bfseries \@titulo}
  35. \rule{\linewidth}{0.5mm}\\[1.2cm]
  36. %author
  37. \begin{flushleft}
  38. \emph{Alumno:}\\
  39. \textsc{\@nombre}
  40. \emph{Número de Control:}\\
  41. {\bfseries D01120294}
  42. \end{flushleft}
  43. {\large \today}
  44. \vfill % fill the rest of page with blank space
  45. \end{titlepage}
  46. }
  47. %%%%%%%%%%%%
  48. \renewcommand{\normalsize}{\fontsize{12}{15}\selectfont}
  49. %%%%%
  50. %\@startsection{name}
  51. % {level}
  52. % {indent}
  53. % {beforeskip}
  54. % {afterskip}
  55. % {style}*[toctitle]{title}
  56. %%%%%
  57. \newcommand{\seccion}{%
  58. \@startsection{section}
  59. {1} %level
  60. {25pt} %indent
  61. {5.5ex} %before skip
  62. {5.5ex} %after skip
  63. {\Large\sffamily\bfseries}%
  64. }
  65. %%%%%%%%%
  66. \newcounter{example}[section]
  67. \newenvironment{example}[1][]{\refstepcounter{example}\par \medskip
  68. \textbf{Ejemplo~\theexample:\\ #1}}{\medskip}