Skip to content

Commit da6f2cc

Browse files
fix: correct paste image extension settings
The previous workspace settings for the Paste Image extension didn't work correctly, so have been corrected to both use the root `images/` directory and enable the pattern to be inserted onto multiple lines when added to a `.tex` document.
1 parent f24b569 commit da6f2cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"latex-workshop.latex.clean.subfolder.enabled": true,
1111
"latex-workshop.latex.outDir": "%DIR%/build",
1212
"markdown.extension.toc.levels": "2..6",
13-
"pasteImage.insertPattern": "\"\\\\begin{center}\\n\\t\\t\\\\includegraphics[width=\\\\linewidth]{${imageSyntaxPrefix}${imageFilePath}${imageSyntaxSuffix}}\\n\\t\\\\end{center}\"",
14-
"pasteImage.path": "${currentFileDir}/images",
13+
"pasteImage.insertPattern": "\\begin{center}\n \\includegraphics[width=\\linewidth]{${imageSyntaxPrefix}${imageFilePath}${imageSyntaxSuffix}}\n\\end{center}",
14+
"pasteImage.path": "${projectRoot}/images",
1515
"pasteImage.showFilePathConfirmInputBox": true,
1616
"trailing-spaces.deleteModifiedLinesOnly": true
1717
}

0 commit comments

Comments
 (0)