I'm aware of the cleveref package \cref
which adds the correct reference name (see:
Automatically inserting "Section", "Subsection", etc). I have a few references which refer to the very next section and some find it odd to give the number in this case rather than just say "in the next section". Sometimes I've moved sections around and these references suddenly become quite broken. To have the best of both worlds, is there a way to automate this change?
E.g.: replace "this is discussed further in section 1.4" with "this is discussed further in the next section"
Best Answer
Here is a solution based on
cleveref
package. If thehyperref
package is loaded, the word "section" (or chapter/subsection/...) is a clickable hyperlink.The result looks approximately like this (compiled with a previous version of the code):