Skip to content

LATEX

Template

Elsevier

LATEX Environment

Online Editor

Overleaf

  • Overleaf


    Overleaf is a collaborative cloud-based LaTeX editor used for writing, editing and publishing scientific documents.

    Portal

    Documentation

Local Editor

VSCode

  • VSCode + Latex Workshop


    Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux, and macOS.

    Configure latex in VSCode:

    (1) Download the appropriate latex compiler on your computer: Windows / Mac / Linux.

    (2) Install VSCode and Latex Workshop extension.

    (3) The default configuration should be sufficient for most users.

    (4) Customization

    Windows

    Mac

    VSCode Set Up

Tip

Code -> PDF: Ctrl + Alt + J

PDF -> Code: Ctrl + Mouse Left Click

Tip

Plugin better bibtext can help manage references better. The citation key can be setup as [auth:lower]_[veryshorttitle:lower]_[year]. Before exporting, remember to select all papers and refresh to export the bib file.

VSCODE SETTINGS CONFIGURATION

    "latex-workshop.hover.preview.mathjax.extensions": [
        "boldsymbol"
    ],
    "latex-workshop.intellisense.package.enabled": true,
    "latex-workshop.latex.outDir": ".",
    "latex-workshop.latex.recipe.default": "lastUsed",
    "latex-workshop.mathpreviewpanel.cursor.enabled": true,
    "latex-workshop.message.error.show": false,
    "latex-workshop.message.warning.show": false,
    // "latex-workshop.view.pdf.invert": 1,
    // "latex-workshop.view.pdf.invertMode.enabled": "auto",
    "latex-workshop.latex.recipes": [
        {
            "name": "XeLaTeX",
            "tools": [
                "xelatexmk"
            ]
        },
        {
            "name": "PdfLaTeX",
            "tools": [
                "pdflatexmk"
            ]
        }
    ],
    "latex-workshop.latex.tools": [
        {
            "args": [
                "-synctex=1",
                "-pdfxe",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-outdir=%OUTDIR%",
                "%DOC%"
            ],
            "command": "latexmk",
            "env": {},
            "name": "xelatexmk"
        },
        {
            "args": [
                "-synctex=1",
                "-pdf",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-outdir=%OUTDIR%",
                "%DOC%"
            ],
            "command": "latexmk",
            "env": {},
            "name": "pdflatexmk"
        }
    ],