Skip to content

Commit

Permalink
Add support for \Vref
Browse files Browse the repository at this point in the history
  • Loading branch information
niknetniko committed Mar 5, 2024
1 parent 280d6ae commit 671345c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ open class LatexNonBreakingSpaceInspection : TexifyInspectionBase() {
/**
* Commands redefined by cleveref, such that no non-breaking space is needed anymore.
*/
private val cleverefRedefinitions = setOf(THREF, VREF, VREFRANGE, FULLREF).map { it.commandWithSlash }
private val cleverefRedefinitions = setOf(THREF, VREF, VREF_CAPITAL, VREFRANGE, FULLREF).map { it.commandWithSlash }

override val inspectionGroup = InsightGroup.LATEX

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ enum class LatexGenericRegularCommand(
VDOTS("vdots", display = ""),
VLINE("vline"),
VREF("vref", "key".asRequired(Argument.Type.LABEL), dependency = VARIOREF),
VREF_CAPITAL("Vref", "key".asRequired(Argument.Type.LABEL), dependency = VARIOREF),
VREFRANGE("vrefrange", "start".asRequired(), "end".asRequired(), "text".asOptional(), dependency = VARIOREF),
VSPACE("vspace", "length".asRequired()),
VSPACE_STAR("vspace*", "length".asRequired()),
Expand Down

0 comments on commit 671345c

Please sign in to comment.