Skip to content

Commit

Permalink
add default width to dhgefigure
Browse files Browse the repository at this point in the history
  • Loading branch information
photovoltex authored May 16, 2022
1 parent 65e1b85 commit cedd898
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .vscode/tex_snippets.code-snippets
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"DHGE Figure": {
"prefix": ["dhgefigure"], // auf welchem namen der snippet auffindbar ist
"prefix": ["figure, dhgefigure"], // auf welchem namen der snippet auffindbar ist
"scope": "latex,tex", // welche files der snippet betreffen soll
"body": "\\dhgefigure[${7:tbp}]{${1:filename}}{scale=${6:1.0}}{${2:Caption}}{fig:${3:label}}[${4:biblatex_id}][${5:Postnote}]", // der snippet
"body": "\\dhgefigure[${7:tbp}]{${1:filename}}[width=${6:\\textwidth}]{${2:Caption}}{fig:${3:label}}[${4:biblatex_id}][${5:Postnote}]", // der snippet

"description": "Insert \\dhgefigure" // beschreibung
},
Expand Down
2 changes: 1 addition & 1 deletion build/components/commands.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% dhgefigure -> ...
\DeclareDocumentCommand{\dhgefigure}{O{tbp} m m m m O{} O{}}
\DeclareDocumentCommand{\dhgefigure}{O{tbp} m O{width=\textwidth} m m O{} O{}}
{
\begin{figure}[#1]
\begin{center}
Expand Down

0 comments on commit cedd898

Please sign in to comment.