Diferencia entre revisiones de «Tutorial:Sobre LaTeX -medidas de fuentes - cajas de color y matemática -»
Línea 20: | Línea 20: | ||
{{Example| 1= <code><nowiki>\text{{\Enorme GeoGebra}, the most powerful, {\small since}}\oldstylenums{ 2001-2012}</nowiki></code> [[File:LTX2.PNG]]}} | {{Example| 1= <code><nowiki>\text{{\Enorme GeoGebra}, the most powerful, {\small since}}\oldstylenums{ 2001-2012}</nowiki></code> [[File:LTX2.PNG]]}} | ||
También puede emplearse el comando en modo texto/matemático: <code>\scalebox{h_scale}[v_scale]{...}</code> donde '''{h_scale}''' es un número positivo(negativo) (obligatorio) y '''[v_scale]''' es uno opcional, positivo, los números pueden ser deslizadores. | También puede emplearse el comando en modo texto/matemático: <code>\scalebox{h_scale}[v_scale]{...}</code> donde '''{h_scale}''' es un número positivo(negativo) (obligatorio) y '''[v_scale]''' es uno opcional, positivo, los números pueden ser deslizadores. | ||
− | {{Example| 1= <code><nowiki>\scalebox{2}{\text{{\Enorme GeoGebra}, | + | {{Example| 1= <code><nowiki>\scalebox{2}{\text{{\Enorme GeoGebra}, the most powerful, {\small since }}\oldstylenums{ 2001-2012}}</nowiki></code>[[File:LTX3.PNG]]}} |
===Familias de Fuentes=== | ===Familias de Fuentes=== | ||
En el '''modo texto''', se cuenta con las siguientes familias de texto que se pueden emplear globalmente o mediante el uso de llaves {...}: <code>\rm o {\rm } | En el '''modo texto''', se cuenta con las siguientes familias de texto que se pueden emplear globalmente o mediante el uso de llaves {...}: <code>\rm o {\rm } | ||
Línea 49: | Línea 49: | ||
[ editar ] Las comillas | [ editar ] Las comillas | ||
− | == | + | ==Marcas de Puntuación== |
Straight quotes "..." is a special character for GeoGebra, should never be used directly in LaTeX. | Straight quotes "..." is a special character for GeoGebra, should never be used directly in LaTeX. | ||
For a single quotation marks in '''text mode''' use: | For a single quotation marks in '''text mode''' use: | ||
Línea 56: | Línea 56: | ||
For more info see http://www.geogebra.org/forum/viewtopic.php?f=8&t=20512&p=77283&hilit=quotes#p77283 | For more info see http://www.geogebra.org/forum/viewtopic.php?f=8&t=20512&p=77283&hilit=quotes#p77283 | ||
− | ==Horizontal | + | ==Espaciado Horizontal.== |
For a single spaced in '''text mode''' use the space bar for other spaces we have the following commands:<code>\quad | For a single spaced in '''text mode''' use the space bar for other spaces we have the following commands:<code>\quad | ||
\qquad | \qquad | ||
Línea 82: | Línea 82: | ||
==Boxes and Color (In both modes)== | ==Boxes and Color (In both modes)== | ||
− | === | + | ===Texto y Escritura Matemático en Color === |
The colors supported directly by ''JLaTeXMath'' can be found in http://en.wikibooks.org/wiki/LaTeX/Colors#The_68_standard_colors_known_to_dvips | The colors supported directly by ''JLaTeXMath'' can be found in http://en.wikibooks.org/wiki/LaTeX/Colors#The_68_standard_colors_known_to_dvips | ||
Línea 99: | Línea 99: | ||
For simple frame boxes (no colors) use :<code>\boxed{2012\text{ is now!}</code> or<code>\fbox{2012\text{ is now!}</code> | For simple frame boxes (no colors) use :<code>\boxed{2012\text{ is now!}</code> or<code>\fbox{2012\text{ is now!}</code> | ||
− | === Color | + | === Cajas de Color=== |
A. For a color box (same color in border and background) use:<code>\colorbox{red}{2012\text{ is now!}</code> | A. For a color box (same color in border and background) use:<code>\colorbox{red}{2012\text{ is now!}</code> | ||
B. For a color box (diferent color in border and background) use:<code>\fcolorbox{blue}{red}{2012\text{ is now!}</code> | B. For a color box (diferent color in border and background) use:<code>\fcolorbox{blue}{red}{2012\text{ is now!}</code> | ||
− | === | + | === Rotación de Cajas=== |
If you need to rotate a box (or whatever) use:<code>\rotatebox{angle}{...}</code> | If you need to rotate a box (or whatever) use:<code>\rotatebox{angle}{...}</code> | ||
{{Example| 1= <code><nowiki>\rotatebox{45}{\fcolorbox{blue}{red}{2012\text{ is now!}}</nowiki></code><br/>[[File:LTX8.PNG]]}} | {{Example| 1= <code><nowiki>\rotatebox{45}{\fcolorbox{blue}{red}{2012\text{ is now!}}</nowiki></code><br/>[[File:LTX8.PNG]]}} | ||
− | === | + | === Refleción de Cajas=== |
If you need to reflect a box (or whatever) use:<code>\reflectbox{...}</code> | If you need to reflect a box (or whatever) use:<code>\reflectbox{...}</code> | ||
{{Example| 1= <code><nowiki>\reflectbox{\fcolorbox{blue}{red}{2012\text{ is now!}}</nowiki></code><br/>[[File:LTX9.PNG]]}} | {{Example| 1= <code><nowiki>\reflectbox{\fcolorbox{blue}{red}{2012\text{ is now!}}</nowiki></code><br/>[[File:LTX9.PNG]]}} | ||
− | === | + | ===Espectro de Cajas=== |
Sometimes it is necessary to have these phantom boxes,for systems, control the height under a root, alignment on a formula, etc. | Sometimes it is necessary to have these phantom boxes,for systems, control the height under a root, alignment on a formula, etc. | ||
It has these three commands: | It has these three commands: | ||
Línea 139: | Línea 139: | ||
|} | |} | ||
</center> | </center> | ||
− | === | + | ===Tabulación y Ordenamientos === |
The '''tabular''' and '''array''' environment found in similar way, can be used to typeset material with optional horizontal and vertical lines. The options are: | The '''tabular''' and '''array''' environment found in similar way, can be used to typeset material with optional horizontal and vertical lines. The options are: | ||
{| class="pretty" | {| class="pretty" | ||
Línea 171: | Línea 171: | ||
<code><nowiki>\end{Vmatrix}$</nowiki></code><br/>[[File:LTEX4.PNG]]}} | <code><nowiki>\end{Vmatrix}$</nowiki></code><br/>[[File:LTEX4.PNG]]}} | ||
− | ==== | + | ==== Matriz Pequeña==== |
Sometimes you need to write a matrix within text, for this environment have smallmatrix, this works the same way the matrix environment, for example: | Sometimes you need to write a matrix within text, for this environment have smallmatrix, this works the same way the matrix environment, for example: | ||
Revisión del 21:50 12 mar 2012
GeoGebra emplea JLaTeXMath como poderoso aliado para mostrar fórmulas matemáticas (texto y símbolos) vía LaTeX. Lo primero a recordar es que LaTeX opera en dos modos: el de texto y el matemático de modo de ingresar texto en el modo correspondiente y la escritura matemática en en el modo matemático respectivamente .
Por omisión, cuando se tilda la casilla "fórmula LaTeX" se da entrada al modo matemático (tipografía itálica - cursiva-). Si se prefiere ingresar texto (tipografía roman - romana-), es preciso pasar a ese modo de texto , anotando: \text{text text text}
o \mbox{text text text}
Fuentes
Tamaño de la Fuente
El tamaño de las fuentes se puede cambiar a nivel global, con los siguientes comandos:
\tiny | \scriptsize | \footnotesize | \small | \normalsize |
\large | \Large | \LARGE | \huge | \Huge |
El comando \normalsize permite retornar a la medida original de la fuente. Para combinar diferentes medidas es preciso añadir los comandos entre llaves {...}. Este es un ejemplo de combinación de tamaños en el modo matemático:
{\scriptsize A}{\footnotesize B}{\small C}{\normalsize D}{\large E}{\Large F}{\LARGE G}{\huge H}{\Huge I}
Este es un ejemplo de combinación de tamaños en el modo texto/matemático usando el comando \oldstylenums{ ...} (únicamente modo matemático):
También puede emplearse el comando en modo texto/matemático: \scalebox{h_scale}[v_scale]{...}
donde {h_scale} es un número positivo(negativo) (obligatorio) y [v_scale] es uno opcional, positivo, los números pueden ser deslizadores.
\scalebox{2}{\text{{\Enorme GeoGebra}, the most powerful, {\small since }}\oldstylenums{ 2001-2012}}
Familias de Fuentes
En el modo texto, se cuenta con las siguientes familias de texto que se pueden emplear globalmente o mediante el uso de llaves {...}: \rm o {\rm }
\sf o {\sf }
\tt o {\tt }
En el modo matemático se cuenta con las siguientes familias (mathrm por omisión):
\mathcal{ABC} | \mathrm{abc} | \mathbf{abc} | \mathsf{abc} | \mathit{abc} |
\mathtt{abc} | \mathfrak{abc} | \mathbb{ABC} | \mathscr{ABC} |
Series de Fuente
Para el empleo en modo texto' se puede usar \bf o {\bf ...} y para modo matemático, \mathbf{...},
Font Shapes
For Small Caps in text mode use:\text{{\sc GeoGebra} or \textsc{GeoGebra}
Ejemplo: \ texto {\ bf GeoGebra} \ vec {\ sqrt {2012 ^ {2}}}
[ editar ] Formas de fuente Para Small Caps en modo de texto de uso: \ texto {{\ sc GeoGebra} o \ textsc {} GeoGebra
[ editar ] Las comillas
Marcas de Puntuación
Straight quotes "..." is a special character for GeoGebra, should never be used directly in LaTeX.
For a single quotation marks in text mode use:
\text{'Simple'}
and for double quotation marks use:\text{''Doble''}
For more info see http://www.geogebra.org/forum/viewtopic.php?f=8&t=20512&p=77283&hilit=quotes#p77283
Espaciado Horizontal.
For a single spaced in text mode use the space bar for other spaces we have the following commands:\quad
\qquad
\hspace{...}
The command \hspace{...} (and \quad, \qquad also available in math mode) supports the following units of measurement (positive and negative) :
pt | point | (1 in = 72.27 pt) | pc | pica | (1 pc = 12 pt) |
in | inch | (1 in = 25.4 mm) | bp | big point | (1 in = 72 bp) |
cm | centimetre | (1 cm = 10 mm) | mm | millimetre | |
dd | didot point | (1157 dd = 1238 pt) | sp | scaled point | (65536 sp = 1 pt) |
In math mode we have the following commands:
\, | a small space | \: | a medium space | \; | a large space | \! | a negative space (moves things back to the left) |
Boxes and Color (In both modes)
Texto y Escritura Matemático en Color
The colors supported directly by JLaTeXMath can be found in http://en.wikibooks.org/wiki/LaTeX/Colors#The_68_standard_colors_known_to_dvips
you can use the command:\textcolor{color}{...}
\text{\textcolor{WildStrawberry}{Geo}\textcolor{blue}{G}\textcolor{red}{ebra}}\,\textcolor{green}{\oldstylenums{4.2}
Añadiendo Colores
If you need to create new color, you can use the command:
\definecolor{mycolour}{rgb}{a,b,c}
the numbers a, b and c must be between 0 and 1, can be a slider, for example:
\definecolor{a}{rgb}{0.63,0.39,0.17}
\definecolor{b}{rgb}{0.63,0.17,0.39}
\definecolor{c}{rgb}{0.39,0.63,0.17}
\definecolor{d}{rgb}{0.39,0.17,0.63}
\definecolor{e}{rgb}{0.17,0.63,0.39}
\definecolor{f}{rgb}{0.17,0.39,0.63}
\text{\textcolor{a}C\textcolor{b}O\textcolor{c}L\textcolor{d}O\textcolor{e}U\textcolor{f}R}
Frame Boxes
For simple frame boxes (no colors) use :\boxed{2012\text{ is now!}
or\fbox{2012\text{ is now!}
Cajas de Color
A. For a color box (same color in border and background) use:\colorbox{red}{2012\text{ is now!}
B. For a color box (diferent color in border and background) use:\fcolorbox{blue}{red}{2012\text{ is now!}
Rotación de Cajas
If you need to rotate a box (or whatever) use:\rotatebox{angle}{...}
Refleción de Cajas
If you need to reflect a box (or whatever) use:\reflectbox{...}
Espectro de Cajas
Sometimes it is necessary to have these phantom boxes,for systems, control the height under a root, alignment on a formula, etc. It has these three commands:
\phantom{XXX} | space as wide and high as three X’s |
\hphantom{XXX} | space as wide as three X’s; height 0 |
\vphantom{X} | space of width 0, height = height of X |
Más adelante, se podrá consultar una síntesis sobre tablas y matrices.
JLaTeXMath supports many mathematical environments (whitout *) I recommend reading ftp://ftp.ams.org/ams/doc/amsmath/short-math-guide.pdf Serán bienvenidos todos los aportes que desde los diferentes foros puedan hacer llegar participantes que deseen contribuir con ejemplos (de ambientes matemáticos).
LATEX environment
JLaTeXMath provides a number of different environments work. Each environment begins and ends in the same manner.
\begin{environment}[options]<br/>
...<br/>
\end{environment}
The following environments are supported:
• tabular | • array | • matrix (and variants) | • eqnarray |
• align | • cases | • split | • multline |
Tabulación y Ordenamientos
The tabular and array environment found in similar way, can be used to typeset material with optional horizontal and vertical lines. The options are:
l | left-justified column | c | centered column | r | right-justified column |
| |
vertical line | || |
double vertical line | & |
column separator |
\\ |
start new row | \hline|| horizontal line
|
\begin{tabular}{| l |c ||r |}
\hline
1 & 2 & 3 \\ \hline
4 & 5 & 6 \\ \hline
7 & 8 & 9 \\
\hline
\end{tabular}
Other example , using \multicolumn and array:
\begin{array}{|c|c|}
\hline
\multicolumn{2}{|c|}{\text{Title}} \\
\hline
x & y\\ \hline
a & b\\
c & c\\
d & e\\ \hline
\end{array}
If you need add column separator (dot for example) and space (1cm), use @{.\hspace{1cm}:
Matrix
A basic matrix may be created using the matrix environment, the structures is similar to table-array , entries are specified by row, with columns separated using &
and a new rows separated with \\
. Matrices are usually enclosed in delimiters (default none) of some kind, and while it is possible to use the \left
and \right
commands. The predefined environments which automatically include delimiters:
pmatrix | ( ) |
bmatrix | [ ] |
Bmatrix | { }
|
vmatrix | | | |
Vmatrix | || ||
|
$\mathsf{A}_{m,n} =
\begin{Vmatrix}
a_{1,1} &a_{1,2} &\cdots &a_{1,n} \\
a_{2,1} &a_{2,2} &\cdots &a_{2,n} \\
\vdots & \vdots & \ddots &\vdots \\
a_{m,1} &a_{m,2} &\cdots &a_{m,n}
\end{Vmatrix}$
Matriz Pequeña
Sometimes you need to write a matrix within text, for this environment have smallmatrix, this works the same way the matrix environment, for example:
Eqnarray
This environment is designed to write multiline equations or equations that exceed the width of line, it behaves like an array of three columns where the Vrst aligned right, center second and third left. The equations we want to present in this way must be enclosed between \begin{eqnarray}
and \end{eqnarray}
, an example:
Align
Like eqnarray, but more powerful, you can insert text between lines with the command \intertext{...}
, for example:
Casos
For piece wise function or definitions use cases environment:
\left\vert x\right\vert =
\begin{cases}
\hphantom{-}x &,\, \text{if }x\geq 0 ,\\
-x&,\, \text{if }x<0
\end{cases}
Split
For split long math block
Multline
For multiple lines of math