From 1c1f8d1beea88b5488374433f48f38b2251a1186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerardo=20Marx=20Ch=C3=A1vez-Campos?= Date: Thu, 29 Oct 2020 16:05:43 +0000 Subject: [PATCH 1/2] Update 'Readme.md' --- Readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index 8a8f52e..7d58d59 100644 --- a/Readme.md +++ b/Readme.md @@ -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}` From f76777213107ef4f0858d0a7a2b102d79b71cf6e Mon Sep 17 00:00:00 2001 From: Gerardo Marx Date: Tue, 3 Nov 2020 17:59:52 -0600 Subject: [PATCH 2/2] class example --- day-examples/class/main.tex | 31 ++++++++++++++++++++++ day-examples/class/myclass.cls | 48 ++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 day-examples/class/main.tex create mode 100644 day-examples/class/myclass.cls diff --git a/day-examples/class/main.tex b/day-examples/class/main.tex new file mode 100644 index 0000000..2c4357f --- /dev/null +++ b/day-examples/class/main.tex @@ -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: diff --git a/day-examples/class/myclass.cls b/day-examples/class/myclass.cls new file mode 100644 index 0000000..2051f1e --- /dev/null +++ b/day-examples/class/myclass.cls @@ -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} \ No newline at end of file