Pàgines

dimarts, 4 de febrer del 2014

Sublime Text builds per LaTeX

Si sou afeccionats a l'editor Sublime Text i voleu utilitzar-lo per editar i processar els vostres fitxers LaTeX i amics, vet aquí uns quants Build Systems:

PDFLaTeX

Per processar amb pdflatex creeu un fitxer pdflatex.sublime-build amb aquest contingut:
{
  "shell_cmd": "pdflatex -interaction=nonstopmode $file"
}

ConTeXt

Per processar un fitxer ConTeXt i obtenir-ne un PDF creeu un fitxer context.sublime-build amb aquest contingut:

{
   "shell_cmd": "texexec --pdf --nonstopmode $file"
}

XeLaTeX

Si voleu aprofitar els tipus de lletra OpenType i TrueType precesseu els vostres fitxers LaTeX amb aquest xelatex.sublime-build :
{
   "shell_cmd": "xelatex -interaction=nonstopmode $file"
}

Ah! i Posats a modificar podeu personalitzar les vostres preferències a Preferences.sublime-settings:

// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by file type specific settings.
{
    // Show folders in the side bar in bold
    "bold_folder_labels": true,
    // If enabled, will highlight any line with a caret
    "highlight_line": true,
    // Makes tabs with modified files more visible
    "highlight_modified_tabs": true,
    // Set to true to automatically save files when switching to a different file
    // or application
    "save_on_focus_lost": true,
}