Notas diarias y plantillas
Una nota diaria es el archivo YYYY-MM-DD.md de hoy: el mismo atajo la crea la primera vez y la abre las siguientes, así que no hace falta acordarse de si ya escribiste algo hoy.
Abrir o crear la nota de hoy
Ctrl+Shift+D resuelve la ruta de la nota de hoy (2026-08-06.md, por ejemplo) y:
- Si no existe, la crea con la plantilla configurada y la abre.
- Si ya existe, la abre directamente.
Con la carpeta configurada, la nota vive en <carpeta>/2026-08-06.md; sin carpeta, en la raíz del vault.
Configuración
En Configuración → Notas diarias:
| Campo | Qué hace |
|---|---|
| Habilitar notas diarias | Activa el atajo y el flujo |
| Carpeta | Subcarpeta del vault donde viven (por ejemplo daily); se crea sola si no existe |
| Plantilla | El contenido con el que arranca la nota nueva |
Si no defines una plantilla propia, la nota arranca con # {{date:YYYY-MM-DD}} y una línea en blanco.
El selector de plantillas
Al crear un archivo desde Nuevo desde plantilla… se abre el mismo selector que usan las notas diarias y las reglas de carpeta. Trae plantillas de fábrica pensadas para trabajo académico:
| Plantilla | Para qué sirve |
|---|---|
| Vacío | Archivo en blanco |
| Artículo | Documento con abstract y secciones numeradas |
| Apuntes de clase | Bloques :::definition, :::theorem, :::proof, :::example |
| Tarea / Problem set | Hoja de ejercicios numerados (:::exercise) |
| Hoja de teoremas | Referencia rápida: :::theorem, :::lemma, :::corollary |
| Nota de investigación | Con ecuación numerada y sección de referencias BibTeX |
| Paper Overleaf-ready | Labels, figuras, tablas y estructura exportable a LaTeX |
| Tesis / documento largo | Documento principal con transclusiones por capítulo |
| Libro de apuntes | Capítulo con definiciones, teoremas, ejercicios y backlinks matemáticos |
Un grupo aparte, Journals, reúne las plantillas que exportan con la clase LaTeX real de una revista o conferencia: Paper IEEE, Paper ACM, Paper Elsevier y Manuscrito APA. Cada una lleva comdtex.texclass en el frontmatter, así que Exportar como .tex genera el documento con el bloque de título y las convenciones de esa clase, listo para Overleaf.
Variables de plantilla
Cualquier plantilla, de fábrica o propia, puede usar estas variables; se sustituyen al crear el archivo:
| Variable | Resultado |
|---|---|
{{title}} | El nombre del archivo, sin extensión |
{{filename}} | Igual que {{title}} |
{{date}} | Fecha de hoy en YYYY-MM-DD |
{{date:FORMATO}} | Fecha con formato propio; tokens YYYY, MM, DD, HH, mm, ss |
{{year}} | Año actual, cuatro dígitos |
{{time}} | Hora actual (15:42) |
{{author}} | Vacío por defecto: la plantilla la deja lista para completar a mano |
Por ejemplo, {{date:YYYY-MM-DD}}-{{title}} con el título derivadas produce 2026-08-06-derivadas.
Guardar un archivo existente como plantilla
Clic derecho sobre un archivo → Guardar como plantilla…. Toma el contenido tal cual está y sustituye por variables solo lo que identifica a esa nota en concreto:
- el
title:del frontmatter →{{title}} - las fechas en formato ISO dentro del frontmatter →
{{date}} - el
# H1, solo si repite el título del frontmatter o el nombre del archivo →{{title}}
El cuerpo del documento no se toca nunca. Una fecha mencionada dentro de un párrafo es contenido, no un campo de metadato, y reescribirla convertiría la plantilla en algo corrupto sin que lo notaras. Por la misma razón, un # H1 que sea un título de sección real (no una repetición del nombre del archivo) se deja intacto.
Plantillas personalizadas
La plantilla guardada queda disponible junto a las de fábrica: en el selector de Nuevo desde plantilla… y en la lista de plantilla por defecto de las reglas de carpeta. Se guardan en el propio navegador (no en el vault), así que viajan con la instalación de ComdTeX, no con los archivos.
Daily notes and templates
A daily note is today’s YYYY-MM-DD.md file: the same shortcut creates it the first time and opens it on every later trip, so you never have to remember whether you already wrote something today.
Open or create today’s note
Ctrl+Shift+D resolves the path for today’s note (2026-08-06.md, for instance) and:
- If it does not exist yet, creates it with the configured template and opens it.
- If it already exists, opens it directly.
With a folder configured, the note lives at <folder>/2026-08-06.md; without one, at the vault root.
Settings
Under Settings → Daily notes:
| Field | What it does |
|---|---|
| Enable daily notes | Turns on the shortcut and the flow |
| Folder | Subfolder of the vault where notes live (for example daily); created automatically if missing |
| Template | The content the new note starts with |
If you leave the template empty, the note starts with # {{date:YYYY-MM-DD}} and a blank line.
The template picker
Creating a file from New from template… opens the same picker used by daily notes and folder rules. It ships with built-in templates aimed at academic work:
| Template | What it is for |
|---|---|
| Blank | Empty file |
| Article | Document with an abstract and numbered sections |
| Class notes | :::definition, :::theorem, :::proof, :::example blocks |
| Problem set | Numbered exercise sheet (:::exercise) |
| Theorem sheet | Quick reference: :::theorem, :::lemma, :::corollary |
| Research note | With a numbered equation and a BibTeX references section |
| Overleaf-ready paper | Labels, figures, tables and export-ready structure |
| Thesis / long document | Main document with per-chapter transclusions |
| Lecture notes book | Chapter with definitions, theorems, exercises and math backlinks |
A separate group, Journals, collects the templates that export with the real LaTeX class of a journal or conference: IEEE paper, ACM paper, Elsevier paper and APA manuscript. Each one carries comdtex.texclass in its frontmatter, so Export as .tex produces the document with that class’s title block and conventions, ready for Overleaf.
Template variables
Any template, built-in or custom, can use these variables; they are substituted when the file is created:
| Variable | Result |
|---|---|
{{title}} | The filename, without its extension |
{{filename}} | Same as {{title}} |
{{date}} | Today’s date as YYYY-MM-DD |
{{date:FORMAT}} | Date with a custom format; tokens YYYY, MM, DD, HH, mm, ss |
{{year}} | Current year, four digits |
{{time}} | Current time (15:42) |
{{author}} | Empty by default: the template leaves it ready to fill in by hand |
For example, {{date:YYYY-MM-DD}}-{{title}} with the title derivadas produces 2026-08-06-derivadas.
Saving an existing document as a template
Right-click a file → Save as template…. It takes the content as it stands and replaces only what identifies that particular note with variables:
- the frontmatter
title:→{{title}} - ISO-format dates inside the frontmatter →
{{date}} - the
# H1, only when it repeats the frontmatter title or the filename →{{title}}
Body prose is never touched. A date mentioned inside a paragraph is content, not a metadata field, and rewriting it would silently corrupt the template. For the same reason, an # H1 that is a real section title, rather than a restatement of the filename, is left as it is.
Custom templates
The saved template shows up alongside the built-in ones: in the New from template… picker and in the default-template list of folder rules. They are stored in the browser itself (not in the vault), so they travel with the ComdTeX install, not with the files.