From a7d022b928c599b5961ff2620cf7502c16872689 Mon Sep 17 00:00:00 2001 From: Phani Pavan K Date: Wed, 17 Dec 2025 11:56:53 +0530 Subject: [PATCH] add bold and italic text block --- extension.toml | 2 +- snippets/latex.json | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/extension.toml b/extension.toml index 1b22f89..5823f20 100644 --- a/extension.toml +++ b/extension.toml @@ -1,6 +1,6 @@ id = "latexnips" name = "Latex Snippets" -version = "0.1.3" +version = "0.1.4" schema_version = 1 authors = ["Phani Pavan K "] description = "Common Latex Snippets, common action from overleaf toolbar." diff --git a/snippets/latex.json b/snippets/latex.json index a40162e..e106729 100644 --- a/snippets/latex.json +++ b/snippets/latex.json @@ -47,7 +47,17 @@ }, "Reference": { "prefix": "ref", - "body": "${2:delSpace}~\\ref{${1:citation}} ${3:continue}", + "body": "${2:delSpace}~\\ref{${1:refr}} ${3:continue}", "description": "Adds the Ref command" }, + "Italic Text":{ + "prefix": "itl", + "body": "{\\it ${1:text}} ${2:continue}", + "description": "Adds Italic text block" + }, + "Bold Text":{ + "prefix": "bol", + "body": "{\\bf ${1:text}} ${2:continue}", + "description": "Adds Bold text block" + } }