Articles of cross referencing

algorithmic, arbitrary names for algorithms

The question is advanced version of my previous one. I need to name algorithms (package algorithmic) with arbitrary names so it appears like: Algorithm MyAlgo and \ref{…} will appear like MyAlgo. Next code is (by cmhughes) puts A in front of a number: \documentclass{article} \usepackage{algorithm} \usepackage{algpseudocode} \renewcommand{\thealgorithm}{A\arabic{algorithm}} \begin{document} \begin{algorithm} \caption{Euclid’s algorithm} \label{alg:euclid} \begin{algorithmic}[1] \Procedure{Euclid}{$a,b$}\Comment{The g.c.d. […]

Modifying \autoref to behave (somewhat) like \vref

I would like to modify the \autoref command in the following way: if the \autoref command and the label are on the same page, it behaves like \autoref* (i.e., no hyperlink). Else, it behaves usually. Thanks, Vishnu

Numbering of subsections and paragraphs

I have a document style for a report which I’m having to copy to LaTeX format. I’m using pdfLaTeX, for information. In essence, the system is that paragraphs are on the same level as subsections, until the first subsection in a section, wherafter paragraphs are on the level below subsections. It should look like this: […]

How do I keep cross-references across several documents accurate?

This is a follow-up to my question about quality system documentation management. That question evolved to a different question and Charles suggested to ask a new one, so I’ll just quote it here. I am looking into something more like a document management system integrated with LaTeX. What aspect of document management am I looking […]

Decide whether a label occurs in the current chapter

I want to decide if some label occurs in the same chapter as the current one. I use the zref package as suggested in Chapter ref with LaTeX to find out in which chapter a label occurs, and compare this to the current one. I tried to do this with both the counter’s display and […]

Trouble with cross referencing in the appendices

I’m trying to get the figures and labels in my appendices to have the same format as the rest of the document. In my main thesis.tex file I use: \backmatter % book mode only \appendix \include{Appendix1/appendix1} and then in the appendix1.tex file I have: \chapter{Appendix A – Data} \label{ch:App1} This produces my appendices as I […]

How to use \csname … \endcsname with \ref?

I have to get value of a dynamical macro where the index is given by \ref{mymarker}. Is it possible to do? I define a set of macros with a predefined counter ‘mycounter’ as \expandafter\newcommand\csname mymacro\the\value{mycounter} \endcsname{mytext} where ‘mytext’ depends on the value of counter. After that I define a new command \newcommand{\anotherref}[1]{\csname mymacro\ref{#1} \endcsname} the […]

Nomencl Reference Section Number

I’m writing a PhD thesis that includes many similar symbols. Therefore, I’d like to list in the nomenclature the section number at which each symbol is initially using (and therefore defined in the text). I’m aware you can list the page number, but I’d prefer the section number. Is there a way to do this? […]

Cleveref range format for gb4e “(1a-c)”

I managed to get cross-referencing with cleveref to examples in the format “examples (1a-1c)” using \crefrangeformat{xnumi}{examples~(#3#1#4–#5#2#6)} but how can I get “examples (1a-c)”? I found this question, but I’m afraid the solution is dependent to the package in use, in this case gb4e, so I decided to post my answer anyway. Here’s my MWE: \documentclass[a4paper]{article} […]

Best practices in labeling (giving labels to equations, theorems, items, etc..)

Are there some Latex style guides with part dedicating to labeling? I want to use some persistent labeling scheme, but don’t know any (except for uncertain one in my mind). What labeling scheme should I use and why? Some (but not all) of questions I want to find answer to: Should it be : to […]