parent
commit
582fede3e6
3 changed files with 82 additions and 3 deletions
  1. +3
    -3
      Readme.md
  2. +31
    -0
      day-examples/class/main.tex
  3. +48
    -0
      day-examples/class/myclass.cls

+ 3
- 3
Readme.md View File

@ -115,8 +115,8 @@ En \eqref{recta} se muestra la formula para ....
As per the TeXworks manual, the procedure to install spell checking dictionaries in TeXworks is as follows.
1. Download the dictionary corresponding to your desired language from the OpenOffice.org extensions site or [here](es_MX.oxt) in the repository.
2. Change the file extension of the downloaded file from .oxt to .zip and extract the files with your archive utility of choice.
1. Download the dictionary corresponding to your desired language from the OpenOffice.org extensions site or [here](./es_MX.oxt.zip) in the repository.
2. Change the file extension of the downloaded file from .oxt.zip to .zip and extract the files with your archive utility of choice.
3. Open TeXworks and select Settings and Resources from the Help menu. A dialog window will open with a link to the TeXworks resources folder.
4. Click the link to open the resources folder. If there is no dictionaries subfolder there yet, then create it now. Open the (possibly newly created) dictionaries subfolder.
5. Copy the .dic and .aff files from the downloaded .zip file to the dictionaries subfolder.
@ -124,4 +124,4 @@ As per the TeXworks manual, the procedure to install spell checking dictionaries
## Autocompletado ##
`btikz:=\begin{tikzfigure}#RET##RET##INS##RET##RET#\end{tikzfigure}`
`btikz:=\begin{tikzpicture}#RET##RET##INS##RET##RET#\end{tikzpicture}`

+ 31
- 0
day-examples/class/main.tex View File

@ -0,0 +1,31 @@
\documentclass{myclass}
\title{Practica 5}
\nombre{Gerardo Marx}
\begin{document}
\portada
\seccion{Primera seccion}
Algo de texto para la presente seccion de ejemplo. Y mas texto, perdon por no poner acentos.
\begin{example}
Es el primer ejemplo. Prueba
\end{example}
\begin{example}
Es el segundo ejemplo. Prueba
\end{example}
\seccion{Test}
\begin{example}
Es el primer ejemplo. Prueba
\end{example}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:

+ 48
- 0
day-examples/class/myclass.cls View File

@ -0,0 +1,48 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{myclass}[2020/10/30 Example LaTeX class for IEEE-IAS course]
%commands and packages
\newcommand{\headlinecolor}{\normalcolor}
\RequirePackage{xcolor}
\definecolor{slcolor}{HTML}{882B21}
% options:
\DeclareOption{twocolumn}{\typeout{Error option not available}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions\relax
\LoadClass[onecolumn]{article}
% my commands:
\def\nombre#1{\def\@nombre{#1}}
\newcommand{\portada}{
\begin{titlepage}
\center
\textsc{\LARGE Instituto Tecnologico de Morelia}\\[2.5cm]
\@title
\begin{flushleft}
Alumno:
\emph{\@nombre}
\end{flushleft}
\vfill
\end{titlepage}
}
\newcommand{\seccion}{%
\@startsection
{section}{1}{0pt}{-1.5ex plus -1ex minus -.2ex}%
{1ex plus .2ex}{ \Large\sffamily\slshape}%
}
\renewcommand{\normalsize}{\fontsize{9}{10}\selectfont}
\setlength{\textwidth}{17.5cm}
\setlength{\textheight}{22cm}
% \setcounter{secnumdepth}{1}
\newcounter{example}[section] %every new section the counter will be reset
\newenvironment{example}[1][]{\refstepcounter{example}\par\medskip
\textbf{Ejemplo~\theexample: #1.} \rmfamily}{\medskip}

Loading…
Cancel
Save