Mostrando entradas con la etiqueta markdown. Mostrar todas las entradas
Mostrando entradas con la etiqueta markdown. Mostrar todas las entradas

[HowTo] Instalación de Typora en Linux Mint

Posted: domingo, 1 de diciembre de 2019 by Termita in Etiquetas: , , , , , , , , , , , , , , , ,
0

Typora es un editor de texto markdown. Para gustos, colores... pero va mejor que Remarkable.



Typora es uno de esos programas "prescindibles". No funciona desde línea de comandos -evidentemente- y lo que hace se puede llevar a cabo con las herramientas que por defecto vienen en la mayoría de distribuciones GNU Linux.
No obstante es una aplicación útil, tiene su momento y su espacio, sobre todo si uno -como es mi caso- no se ha metido aún de lleno en ese universo que son los editores de texto veteranos de GNU Linux.

Porque una alternativa digna de tener en cuenta es emplear un editor de texto convencional -Gedit, Pluma, etc- y agregarle un addon para poder previsualizar los "resultados" del lenguaje markdown. Esto me consta que se puede hacer, mas aun no lo probé. Cuando lo haga hablaré de ello.
Otra opción es instalar Pandoc y convertir lo escrito mediante el editor de texto convencional a pdf, html, etc... para visualizar los resultados.

Al turrón, como diría Atareao. Vamos a instalar Typora en Linux Mint y le vamos a agregar unos temas para que sea más agradable trabajar.


INSTALACIÓN DE TYPORA EN LINUX MINT

La instalación de Typora en Linux Mint es ligeramente diferente que en Linux Ubuntu.

El procedimiento es el siguiente:

wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -

echo -e "\ndeb https://typora.io/linux ./" | sudo tee -a /etc/apt/sources.list
 

sudo apt-get update

sudo apt install typora



ADICIÓN DE TEMAS A TYPORA

Dependiendo del Tema (claro, oscuro, con un determinado tipo de letra, etc...) trabajaremos más a gusto con Typora y podremos exportar los resultados a pdf, html y demás con un aspecto concreto.

Los temas se pueden descargar de la sección de "Temas" de la página oficial de Typora.

Los menús de Typora que se ocupan de los temas son estos:
Archivo -> Apariencia -> Get Themes
Archivo -> Apariencia -> Abrir la carpeta de temas

Cada uno de los temas descargados ha de descomprimirse en la carpeta /home/tuusuario/.config/Typora/themes/ de forma correcta:
Cuando descomprimimos/exploramos el archivo que contiene un tema, vemos que existe una estructura de directorios por la que deberemos subir hasta llegar al directorio que contiene el tema en sí. Ese es el directorio que debemos descomprimir en la carpeta que menciono más arriba.

Por ejemplo:
El archivo "theme.zip" contiene la carpeta "theme" y dentro de ella la carpeta "xydark", que es la que deberemos extraer a la carpeta /home/tuusuario/.config/Typora/themes/




Particularmente me han gustado estos temas:
* Xydark
* Ash
* Solarized
* Monospace





---------------------
Fuentes:

StackEdit: escribir en markdown para Blogger

Posted: sábado, 2 de noviembre de 2019 by Termita in Etiquetas: , , , , , ,
0

StackEdit es un editor MarkDown basado en el navegador que permite publicar documentos (MarkDown o html convertido) en diferentes sitios, entre los cuales está Blogger.
Está desarrollado por un señor llamado Benweet.

Para comenzar a escribir basta con entrar en el editor en: https://stackedit.io/app#

Una vez cargado por primera vez permite su uso offline, tal como señala el autor:

««««««««««««««««««««««««««««


StackEdit stores your documents in your browser, which means all your documents are automatically saved locally and are accessible **offline!**

> **Note:**

> - StackEdit is accessible offline after the application has been loaded for the first time.
> - Your local documents are not shared between different browsers or computers.
> - Clearing your browser's data may **delete all your local documents!** Make sure your documents are synchronized with **Google Drive** or **Dropbox** (check out the [<i class="icon-refresh"></i> Synchronization](#synchronization) section).

#### <i class="icon-file"></i> Create a document

The document panel is accessible using the <i class="icon-folder-open"></i> button in the navigation bar. You can create a new document by clicking <i class="icon-file"></i> **New document** in the document panel.

#### <i class="icon-folder-open"></i> Switch to another document

All your local documents are listed in the document panel. You can switch from one to another by clicking a document in the list or you can toggle documents using <kbd>Ctrl+[</kbd> and <kbd>Ctrl+]</kbd>.

#### <i class="icon-pencil"></i> Rename a document

You can rename the current document by clicking the document title in the navigation bar.

#### <i class="icon-trash"></i> Delete a document

You can delete the current document by clicking <i class="icon-trash"></i> **Delete document** in the document panel.

#### <i class="icon-hdd"></i> Export a document

You can save the current document to a file by clicking <i class="icon-hdd"></i> **Export to disk** from the <i class="icon-provider-stackedit"></i> menu panel.

> **Tip:** Check out the [<i class="icon-upload"></i> Publish a document](#publish-a-document) section for a description of the different output formats.


----------


Synchronization
-------------------

StackEdit can be combined with <i class="icon-provider-gdrive"></i> **Google Drive** and <i class="icon-provider-dropbox"></i> **Dropbox** to have your documents saved in the *Cloud*. The synchronization mechanism takes care of uploading your modifications or downloading the latest version of your documents.

> **Note:**

> - Full access to **Google Drive** or **Dropbox** is required to be able to import any document in StackEdit. Permission restrictions can be configured in the settings.
> - Imported documents are downloaded in your browser and are not transmitted to a server.
> - If you experience problems saving your documents on Google Drive, check and optionally disable browser extensions, such as Disconnect.

#### <i class="icon-refresh"></i> Open a document

You can open a document from <i class="icon-provider-gdrive"></i> **Google Drive** or the <i class="icon-provider-dropbox"></i> **Dropbox** by opening the <i class="icon-refresh"></i> **Synchronize** sub-menu and by clicking **Open from...**. Once opened, any modification in your document will be automatically synchronized with the file in your **Google Drive** / **Dropbox** account.

#### <i class="icon-refresh"></i> Save a document

You can save any document by opening the <i class="icon-refresh"></i> **Synchronize** sub-menu and by clicking **Save on...**. Even if your document is already synchronized with **Google Drive** or **Dropbox**, you can export it to a another location. StackEdit can synchronize one document with multiple locations and accounts.

#### <i class="icon-refresh"></i> Synchronize a document

Once your document is linked to a <i class="icon-provider-gdrive"></i> **Google Drive** or a <i class="icon-provider-dropbox"></i> **Dropbox** file, StackEdit will periodically (every 3 minutes) synchronize it by downloading/uploading any modification. A merge will be performed if necessary and conflicts will be detected.

If you just have modified your document and you want to force the synchronization, click the <i class="icon-refresh"></i> button in the navigation bar.

> **Note:** The <i class="icon-refresh"></i> button is disabled when you have no document to synchronize.

#### <i class="icon-refresh"></i> Manage document synchronization

Since one document can be synchronized with multiple locations, you can list and manage synchronized locations by clicking <i class="icon-refresh"></i> **Manage synchronization** in the <i class="icon-refresh"></i> **Synchronize** sub-menu. This will let you remove synchronization locations that are associated to your document.

> **Note:** If you delete the file from **Google Drive** or from **Dropbox**, the document will no longer be synchronized with that location.

----------


Publication
-------------

Once you are happy with your document, you can publish it on different websites directly from StackEdit. As for now, StackEdit can publish on **Blogger**, **Dropbox**, **Gist**, **GitHub**, **Google Drive**, **Tumblr**, **WordPress** and on any SSH server.

#### <i class="icon-upload"></i> Publish a document

You can publish your document by opening the <i class="icon-upload"></i> **Publish** sub-menu and by choosing a website. In the dialog box, you can choose the publication format:

- Markdown, to publish the Markdown text on a website that can interpret it (**GitHub** for instance),
- HTML, to publish the document converted into HTML (on a blog for example),
- Template, to have a full control of the output.

> **Note:** The default template is a simple webpage wrapping your document in HTML format. You can customize it in the **Advanced** tab of the <i class="icon-cog"></i> **Settings** dialog.

#### <i class="icon-upload"></i> Update a publication

After publishing, StackEdit will keep your document linked to that publication which makes it easy for you to update it. Once you have modified your document and you want to update your publication, click on the <i class="icon-upload"></i> button in the navigation bar.

> **Note:** The <i class="icon-upload"></i> button is disabled when your document has not been published yet.

#### <i class="icon-upload"></i> Manage document publication

Since one document can be published on multiple locations, you can list and manage publish locations by clicking <i class="icon-upload"></i> **Manage publication** in the <i class="icon-provider-stackedit"></i> menu panel. This will let you remove publication locations that are associated to your document.

> **Note:** If the file has been removed from the website or the blog, the document will no longer be published on that location.

----------


Markdown Extra
--------------------

StackEdit supports **Markdown Extra**, which extends **Markdown** syntax with some nice features.

> **Tip:** You can disable any **Markdown Extra** feature in the **Extensions** tab of the <i class="icon-cog"></i> **Settings** dialog.

> **Note:** You can find more information about **Markdown** syntax [here][2] and **Markdown Extra** extension [here][3].


### Tables

**Markdown Extra** has a special syntax for tables:

Item     | Value
-------- | ---
Computer | $1600
Phone    | $12
Pipe     | $1

You can specify column alignment with one or two colons:

| Item     | Value | Qty   |
| :------- | ----: | :---: |
| Computer | $1600 |  5    |
| Phone    | $12   |  12   |
| Pipe     | $1    |  234  |


### Definition Lists

**Markdown Extra** has a special syntax for definition lists too:

Term 1
Term 2
:   Definition A
:   Definition B

Term 3

:   Definition C

:   Definition D

> part of definition D


### Fenced code blocks

GitHub's fenced code blocks are also supported with **Highlight.js** syntax highlighting:

```
// Foo
var bar = 0;
```

> **Tip:** To use **Prettify** instead of **Highlight.js**, just configure the **Markdown Extra** extension in the <i class="icon-cog"></i> **Settings** dialog.

> **Note:** You can find more information:

> - about **Prettify** syntax highlighting [here][5],
> - about **Highlight.js** syntax highlighting [here][6].


### Footnotes

You can create footnotes like this[^footnote].

  [^footnote]: Here is the *text* of the **footnote**.


### SmartyPants

SmartyPants converts ASCII punctuation characters into "smart" typographic punctuation HTML entities. For example:

|                  | ASCII                        | HTML              |
 ----------------- | ---------------------------- | ------------------
| Single backticks | `'Isn't this fun?'`            | 'Isn't this fun?' |
| Quotes           | `"Isn't this fun?"`            | "Isn't this fun?" |
| Dashes           | `-- is en-dash, --- is em-dash` | -- is en-dash, --- is em-dash |


### Table of contents

You can insert a table of contents using the marker `[TOC]`:



»»»»»»»»»»»»»»»»»»»»»»»»»»»»

0

sudo apt install libgtksourceview-3.0-common

(*) Instalamos este paquete porque -aunque todas las versiones de ubuntu ya traen incorporado el archivo markdown.lang en sus repositorios como parte de libgtksourceview-3.0-common- en Ubuntu 16.04 Pluma utiliza libgtksourceview2.0-0 como una dependencia.

A continuación basta con copiar el archivo markdown.lang (y otros archivos de sintaxis si se desea) desde /usr/share/gtksourceview-3.0/language-specs/ a la carpeta language-specs que crearemos en /home/tuusuario/.local/share/gtksourceview-2.0/
Así:
mkdir -p ~/.local/share/gtksourceview-2.0/language-specs/
cd ~/.local/share/gtksourceview-2.0/language-specs/
cp /usr/share/gtksourceview-3.0/language-specs/markdown.lang .


Y, como ya señalé anteriormente, lo mismo se puede hacer con otros resaltados de sintaxis que están en la carpeta /usr/share/gtksourceview-3.0/language-specs/

-rw-r--r-- 1 root root  8932 ene 15  2016 actionscript.lang
-rw-r--r-- 1 root root  7295 ene 15  2016 ada.lang
-rw-r--r-- 1 root root 23227 ene 15  2016 ansforth94.lang
-rw-r--r-- 1 root root 41936 ene 15  2016 asp.lang
-rw-r--r-- 1 root root 11493 ene 15  2016 automake.lang
-rw-r--r-- 1 root root  4330 ene 15  2016 awk.lang
-rw-r--r-- 1 root root  9102 ene 15  2016 bennugd.lang
-rw-r--r-- 1 root root  3008 ene 15  2016 bibtex.lang
-rw-r--r-- 1 root root  6003 ene 15  2016 bluespec.lang
-rw-r--r-- 1 root root  8702 ene 15  2016 boo.lang
-rw-r--r-- 1 root root 10487 ene 15  2016 cg.lang
-rw-r--r-- 1 root root  3630 ene 15  2016 changelog.lang
-rw-r--r-- 1 root root  1886 ene 15  2016 chdr.lang
-rw-r--r-- 1 root root 12065 ene 15  2016 c.lang
-rw-r--r-- 1 root root 22335 ene 15  2016 cmake.lang
-rw-r--r-- 1 root root 21376 ene 15  2016 cobol.lang
-rw-r--r-- 1 root root  1512 ene 15  2016 cpphdr.lang
-rw-r--r-- 1 root root  4961 ene 15  2016 cpp.lang
-rw-r--r-- 1 root root  9720 ene 15  2016 csharp.lang
-rw-r--r-- 1 root root 19667 ene 15  2016 css.lang
-rw-r--r-- 1 root root  2491 ene 15  2016 csv.lang
-rw-r--r-- 1 root root 10571 ene 15  2016 cuda.lang
-rw-r--r-- 1 root root 11024 ene 15  2016 def.lang
-rw-r--r-- 1 root root 11172 ene 15  2016 desktop.lang
-rw-r--r-- 1 root root  3132 ene 15  2016 diff.lang
-rw-r--r-- 1 root root 10142 ene 15  2016 d.lang
-rw-r--r-- 1 root root 16439 ene 15  2016 docbook.lang
-rw-r--r-- 1 root root  5272 ene 15  2016 dosbatch.lang
-rw-r--r-- 1 root root  4602 ene 15  2016 dot.lang
-rw-r--r-- 1 root root  1594 ene 15  2016 dpatch.lang
-rw-r--r-- 1 root root  4698 ene 15  2016 dtd.lang
-rw-r--r-- 1 root root  7387 ene 15  2016 eiffel.lang
-rw-r--r-- 1 root root  8380 ene 15  2016 erlang.lang
-rw-r--r-- 1 root root  3847 ene 15  2016 fcl.lang
-rw-r--r-- 1 root root  9644 ene 15  2016 forth.lang
-rw-r--r-- 1 root root 19243 ene 15  2016 fortran.lang
-rw-r--r-- 1 root root 11289 ene 15  2016 fsharp.lang
-rw-r--r-- 1 root root  2864 ene 15  2016 gap.lang
-rw-r--r-- 1 root root  7047 ene 15  2016 gdb-log.lang
-rw-r--r-- 1 root root  7880 ene 15  2016 genie.lang
-rw-r--r-- 1 root root 17736 ene 15  2016 glsl.lang
-rw-r--r-- 1 root root  9241 ene 15  2016 go.lang
-rw-r--r-- 1 root root  3830 ene 15  2016 gtk-doc.lang
-rw-r--r-- 1 root root  4294 ene 15  2016 gtkrc.lang
-rw-r--r-- 1 root root  6138 ene 15  2016 haddock.lang
-rw-r--r-- 1 root root  7964 ene 15  2016 haskell.lang
-rw-r--r-- 1 root root  1837 ene 15  2016 haskell-literate.lang
-rw-r--r-- 1 root root 11462 ene 15  2016 html.lang
-rw-r--r-- 1 root root 21193 ene 15  2016 idl-exelis.lang
-rw-r--r-- 1 root root  5259 ene 15  2016 idl.lang
-rw-r--r-- 1 root root 30206 ene 15  2016 imagej.lang
-rw-r--r-- 1 root root  3623 ene 15  2016 ini.lang
-rw-r--r-- 1 root root  6781 ene 15  2016 jade.lang
-rw-r--r-- 1 root root  6937 ene 15  2016 java.lang
-rw-r--r-- 1 root root 11990 ene 15  2016 javascript.lang
-rw-r--r-- 1 root root  7728 ene 15  2016 j.lang
-rw-r--r-- 1 root root  4366 ene 15  2016 json.lang
-rw-r--r-- 1 root root 13861 ene 15  2016 julia.lang
-rw-r--r-- 1 root root 13307 ene 15  2016 language2.rng
-rw-r--r-- 1 root root  2411 ene 15  2016 language.dtd
-rw-r--r-- 1 root root 11104 ene 15  2016 language.rng
-rw-r--r-- 1 root root 23618 ene 15  2016 latex.lang
-rw-r--r-- 1 root root  6361 ene 15  2016 lex.lang
-rw-r--r-- 1 root root  1946 ene 15  2016 libtool.lang
-rw-r--r-- 1 root root 10368 ene 15  2016 llvm.lang
-rw-r--r-- 1 root root 10523 ene 15  2016 lua.lang
-rw-r--r-- 1 root root 46181 ene 15  2016 m4.lang
-rw-r--r-- 1 root root  6365 ene 15  2016 makefile.lang
-rw-r--r-- 1 root root  3853 ene 15  2016 mallard.lang
-rw-r--r-- 1 root root 15232 ene 15  2016 markdown.lang
-rw-r--r-- 1 root root  5059 ene 15  2016 matlab.lang
-rw-r--r-- 1 root root 10982 ene 15  2016 mediawiki.lang
-rw-r--r-- 1 root root  3552 ene 15  2016 meson.lang
-rw-r--r-- 1 root root  9560 ene 15  2016 modelica.lang
-rw-r--r-- 1 root root  2279 ene 15  2016 mxml.lang
-rw-r--r-- 1 root root  8486 ene 15  2016 nemerle.lang
-rw-r--r-- 1 root root 10692 ene 15  2016 netrexx.lang
-rw-r--r-- 1 root root  2788 ene 15  2016 nsis.lang
-rw-r--r-- 1 root root  4164 ene 15  2016 objc.lang
-rw-r--r-- 1 root root  4425 ene 15  2016 objj.lang
-rw-r--r-- 1 root root 10038 ene 15  2016 ocaml.lang
-rw-r--r-- 1 root root  5438 ene 15  2016 ocl.lang
-rw-r--r-- 1 root root 60532 ene 15  2016 octave.lang
-rw-r--r-- 1 root root  8819 ene 15  2016 ooc.lang
-rw-r--r-- 1 root root 11324 ene 15  2016 opal.lang
-rw-r--r-- 1 root root 20922 ene 15  2016 opencl.lang
-rw-r--r-- 1 root root  8556 ene 15  2016 pascal.lang
-rw-r--r-- 1 root root 37033 ene 15  2016 perl.lang
-rw-r--r-- 1 root root 12417 ene 15  2016 php.lang
-rw-r--r-- 1 root root  9649 ene 15  2016 pig.lang
-rw-r--r-- 1 root root  2047 ene 15  2016 pkgconfig.lang
-rw-r--r-- 1 root root  3488 ene 15  2016 po.lang
-rw-r--r-- 1 root root  8490 ene 15  2016 prolog.lang
-rw-r--r-- 1 root root  4483 ene 15  2016 protobuf.lang
-rw-r--r-- 1 root root 24314 ene 15  2016 puppet.lang
-rw-r--r-- 1 root root  7617 ene 15  2016 python3.lang
-rw-r--r-- 1 root root 17209 ene 15  2016 python.lang
-rw-r--r-- 1 root root 79473 ene 15  2016 R.lang
-rw-r--r-- 1 root root  7635 ene 15  2016 rpmspec.lang
-rw-r--r-- 1 root root  4647 ene 15  2016 rst.lang
-rw-r--r-- 1 root root 26472 ene 15  2016 ruby.lang
-rw-r--r-- 1 root root  8905 ene 15  2016 rust.lang
-rw-r--r-- 1 root root 13029 ene 15  2016 scala.lang
-rw-r--r-- 1 root root 10483 ene 15  2016 scheme.lang
-rw-r--r-- 1 root root  7106 ene 15  2016 scilab.lang
-rw-r--r-- 1 root root 16964 ene 15  2016 sh.lang
-rw-r--r-- 1 root root  6661 ene 15  2016 sml.lang
-rw-r--r-- 1 root root 16722 ene 15  2016 sparql.lang
-rw-r--r-- 1 root root 23409 ene 15  2016 sql.lang
-rw-r--r-- 1 root root  2300 ene 15  2016 sweave.lang
-rw-r--r-- 1 root root  8875 ene 15  2016 systemverilog.lang
-rw-r--r-- 1 root root  5255 ene 15  2016 t2t.lang
-rw-r--r-- 1 root root  4642 ene 15  2016 tcl.lang
-rw-r--r-- 1 root root 15672 ene 15  2016 texinfo.lang
-rw-r--r-- 1 root root  8727 ene 15  2016 thrift.lang
-rw-r--r-- 1 root root 11886 ene 15  2016 vala.lang
-rw-r--r-- 1 root root  8040 ene 15  2016 vbnet.lang
-rw-r--r-- 1 root root 15995 ene 15  2016 verilog.lang
-rw-r--r-- 1 root root  7942 ene 15  2016 vhdl.lang
-rw-r--r-- 1 root root  9473 ene 15  2016 xml.lang
-rw-r--r-- 1 root root  3995 ene 15  2016 xslt.lang
-rw-r--r-- 1 root root  5858 ene 15  2016 yacc.lang
-rw-r--r-- 1 root root  7575 ene 15  2016 yaml.lang





-------------------------------------
Fuente:

0

Este blog se está transportando a un sitio "más libre" y menos intrusivo.
Puede consultarse este artículo en su nueva ubicación:
>>>>>>>>>>>>>>>>>>>>>>

 

0

Este blog se está transportando a un sitio "más libre" y menos intrusivo.
Puede consultarse este artículo en su nueva ubicación:
>>>>>>>>>>>>>>>>>>>>>>

 

0

Este blog se está transportando a un sitio "más libre".
Puede consultarse este artículo en su nueva ubicación:
>>>>>>>>>>>>>>>>>>>>>>

0

Este blog se está transportando a un sitio "más libre" y menos intrusivo.
Puede consultarse este artículo en su nueva ubicación:
>>>>>>>>>>>>>>>>>>>>>>

 

0

Este blog se está transportando a un sitio "más libre".
Puede consultarse este artículo en su nueva ubicación:
>>>>>>>>>>>>>>>>>>>>>>

0

Para instalar LaTeX completamente:
sudo apt install texlive-full

Para instalar sólo la base de LaTeX
sudo apt install texlive-base

Para instalar los extras de LaTeX
sudo apt install texlive-latex-extras




--------------------------------------------------

Más información: