From 671345c0f9665e5c3947d20efd04330dc4831119 Mon Sep 17 00:00:00 2001 From: Niko Strijbol Date: Tue, 5 Mar 2024 14:50:39 +0100 Subject: [PATCH] Add support for \Vref --- .../typesetting/spacing/LatexNonBreakingSpaceInspection.kt | 2 +- .../texifyidea/lang/commands/LatexGenericRegularCommand.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nl/hannahsten/texifyidea/inspections/latex/typesetting/spacing/LatexNonBreakingSpaceInspection.kt b/src/nl/hannahsten/texifyidea/inspections/latex/typesetting/spacing/LatexNonBreakingSpaceInspection.kt index 6e9b69305..c31d1cc59 100644 --- a/src/nl/hannahsten/texifyidea/inspections/latex/typesetting/spacing/LatexNonBreakingSpaceInspection.kt +++ b/src/nl/hannahsten/texifyidea/inspections/latex/typesetting/spacing/LatexNonBreakingSpaceInspection.kt @@ -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 diff --git a/src/nl/hannahsten/texifyidea/lang/commands/LatexGenericRegularCommand.kt b/src/nl/hannahsten/texifyidea/lang/commands/LatexGenericRegularCommand.kt index 4ad72fe03..6adaaffeb 100644 --- a/src/nl/hannahsten/texifyidea/lang/commands/LatexGenericRegularCommand.kt +++ b/src/nl/hannahsten/texifyidea/lang/commands/LatexGenericRegularCommand.kt @@ -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()),