-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Latex language support with the \includesvg command
It works like this, but I am not sure if other things need to be changed too
langs.ts, line 55:
// https://hyperpolyglot.org/lightweight-markup
switch (editor.document.languageId) {
...
case 'latex':
return `
\\begin{figure}[htbp]
\\centering
\\includesvg[width=0.8\\textwidth]{${filename.replace(/\\/g, '/').replace(/^\.\.\//, '')}}
\\end{figure}`;
(there are probably better options to replace the leading ../ of the path )
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels