torpedo.org 4.5 KB

#+title: Ejemplo del modo Org #+author: dlmayhem #+language: es * Enumeración y listado ** Listas 1 - Esto es un ítem. - Esto es otro ítem. - Cada ítem se genera con M-ret. ** Listas 2 + Esto es un ítem. + Esto es otro ítem. + Cada ítem se genera con M-ret. ** Listas ordenadas 1 1. Esto es un ítem numerado. 2. Esto también. 3. Cada ítem se genera con M-ret. ** Listas ordenadas 2 1) Esto es un ítem numerado. 2) Esto también. 3) Cada ítem se genera con M-ret. ** Definiciones - Def1 :: Blablabla blabla bla. - Def2 :: Blablabla blabla bla. - Def3 :: Blablabla blabla bla. * Formato de texto - *negrita* - El texto entre * aparece resaltado. - /cursiva/ - El texto entre / aparece enfatizado. - _subrayado_ - El texto entre _ aparece subrayado. - +tachado+ - El texto entre + aparece tachado. - =código= - El texto entre = aparece como código. - ~verbatim~ - El texto entre ~ es similar al anterior. * Notas al pie - Las notas a pie de página se insertan con el comando C-c C-x f.[fn:1] * Citas y versos ** Citas Las citas deben escribirse entre etiquetas de la siguiente manera: #+BEGIN_QUOTE De Aristóteles podría decirse que ha sido uno de los grandes infortunios de la raza humana. Aun en este momento la enseñanza de la lógica, en la mayoría de las universidades, está llena de tonterías, de las que Aristóteles es responsable. ---Bertrand Russell #+END_QUOTE ** Versos También es posible agregar versos: #+BEGIN_VERSE *The Tyger* Tyger Tyger, burning bright, In the forests of the night; What immortal hand or eye, Could frame thy fearful symmetry? In what distant deeps or skies. Burnt the fire of thine eyes? On what wings dare he aspire? What the hand, dare seize the fire? And what shoulder, & what art, Could twist the sinews of thy heart? And when thy heart began to beat, What dread hand? & what dread feet? What the hammer? what the chain, In what furnace was thy brain? What the anvil? what dread grasp, Dare its deadly terrors clasp! When the stars threw down their spears And water'd heaven with their tears: Did he smile his work to see? Did he who made the Lamb make thee? Tyger Tyger burning bright, In the forests of the night: What immortal hand or eye, Dare frame thy fearful symmetry? ---William Blake #+END_VERSE ** Centrar texto #+BEGIN_CENTER *VEXILLA REGIS PRODEVNT INFERNI* #+END_CENTER * Tablas - El modo Org soporta la creación de tablas, y permite cálculos matemáticos. - Para crear una tabla se debe comenzar con el caracter "|". - Ejemplo de tabla: | Nombre | Teléfono | Rut | |---------+----------+--------------| | Ozzy | 666666 | 12.345.678-9 | | Ronnie | 999999 | 98.765.432-1 | - Al presionar TAB la tabla se alínea de forma automática. - El separador horizontal se comienza con |- y luego se presiona TAB. - Se pueden mover columnas hacia la izquierda o la derecha con M-der/izq. - Se pueden mover filas hacia arriba o abajo con M-arriba/abajo. * Enlaces - Los enlaces en el modo Org llevan la siguiente sintáxis [[][]], colocando primero la URL y luego la descripción: [[http://gnu.org][Proyecto GNU]]. - Para editar el enlace se utiliza el comando C-c C-l sobre el link. - También se pueden utilizar enlaces internos para referir alguna parte del documento: [[Tablas]]. - Para dirigirse al lugar enlazado hay que posicionarse sobre el enlace y utilizar el comando C-c C-o. - Se puede insertar un enlace automáticamente con el comando C-c C-l. * Código fuente - Se puede insertar código fuente en diversos lenguajes utilizando etiquetas: ** Java #+HEADERS: :classname PineraCuliao #+BEGIN_SRC java :results output class PineraCuliao { public static void main(String[] args) { System.out.println("Piñera culiao"); } } #+END_SRC ** LaTeX #+PROPERTY: header-args:latex-as-png :results raw value replace #+begin_src latex-as-png \input GoudyIn.fd \def\fncy#1{\fontsize{50}{60}\selectfont{\usefont{U}{GoudyIn}{xl}{n} #1}} \hspace{0.15\textwidth}\fncy{TALLER} \newline \fncy{EMACS}\raisebox{0.5em}{$\sim$}\fncy{ORG} #+end_src ** Python #+BEGIN_SRC python :results output print "Pinera culiao" #+END_SRC * Listas TODO y checkboxes ** TODO Sección por completar DEADLINE: <2020-07-31 vie> SCHEDULED: <2020-07-09 jue> - [ ] S-izq/der cambia el estado de la sección. - [X] C-c C-c cambia el estado del checkbox. - [ ] C-c C-s establece una fecha de inicio. - [X] C-c C-d establece una fecha de término. - [ ] Mostrar ejemplo * Footnotes [fn:1] Con el comando C-c C-c se pasa de la referencia a la nota y viceversa.