New answers tagged

0

Combining ideas from some of the other answers, this is what works best for me: \usepackage[caption=false,listofformat=subsimple,labelformat=simple]{subfig} \renewcommand\thesubfigure{(\alph{subfigure})} The line with \renewcommand now makes \ref work as I want, namely 1(a), so there is no need to use \subref* as in other solutions above. This has now ...


0

Use this: \newcommand\citeP[1]{(\cite{#1})}


1

You need to put the \label into the title of the section, using the title option. If you don't want to change the title, you can use \refname to get the default. \documentclass{article} \usepackage{biblatex} \usepackage{hyperref} \begin{document} \section{Indroduction} The bibliography is in section~\ref{sec:bibliography} and called \nameref{sec:...


3

There are packages for writing chemical formulas, but if you just need to raise that text you can do like this: ... vegetable oils with \textsuperscript{1}H and \textsuperscript{13}C NMR}, which with \documentclass{article} \usepackage{biblatex} \addbibresource{sup.bib} \begin{document} \nocite{schripsema2019similarity} \printbibliography \end{...


1

One method is to use a ghost space to raise, or lower, a position holder. For example ${}^{13}F_{2}$. Another is ${}_{x}^{y}F_{u}^{v}$.


0

MWE \documentclass{article} \begin{filecontents}{\jobname.bib} @misc{john-73, author = {John, S.}, year = {1973}, title = {The best book ever}, } \end{filecontents} %== use color in citations ==% \usepackage[ colorlinks=true, allcolors = black, citecolor=blue, ...


0

The following redefinition of \thethm should meet your requirements. If you want definitions to be numbered in a similar way, and if you have defined for example \newtheorem{definition}{Definition}, then a similar redefinition of \thedefinition should work. \documentclass{book} \usepackage{amsmath,amsthm} \newtheorem{thm}{Theorem} \renewcommand{\thethm}{% ...


0

I wrote a script for this when stapling papers together into my dissertation, err I mean writing my dissertation. The sed strategy would not work easily in my case since I was using cleveref to reference multiple labels in the same command, e.g. \Cref{sec:experiments,sec:results}. Example usage: python add_ref_suffix.py --suffix chp1 --files *.tex Effect: ...


1

You can detokenize the label/anchor argument: \documentclass{article} \usepackage[french]{babel} \usepackage[T1]{fontenc} \usepackage{hyperref} \bibliographystyle{unsrt} \newenvironment{articlereview}[2][]{% \expandafter\hypertarget\expandafter{\detokenize{review:#2}}{\texttt{#2:}}\cite{#2} (#1) }{ \medskip } \newcommand\linktoreview[1]{\expandafter\...


3

You can make prettyref compatible with babel-french (but the fix will only work with it). \documentclass{article} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{prettyref} % fix \prettyref to first detokenize its argument % kudos to daleif for proposing the simplification \makeatletter \def\prettyref#1{\expandafter\@prettyref\detokenize{#1:...


4

\newcounter{<cntr>}[<within>] will reset <cntr> whenever <within> is stepped. In your case the prnum counter will be reset with every section. However, the representation doesn't include the section counter itself. To include it (similar to what the theorem counter includes), you should change \theprnum: \documentclass{article} \...


2

You need to provide the instructions \captionsetup[subfigure]{labelformat=simple} % default label format is 'parens' \renewcommand\thesubfigure{(\alph{subfigure})} after loading the subcaption package. See also How to change subcaption numbering? A full MWE and associated screenshot: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{...


3

Here's my (partial) attempt. I've used the memoir class which supports both sidebars and side footnotes. I found the sidebar slightly easier to set up to do this kind of thing, so I used it, rather than the more obvious side footnote. The heavy lifting is done by some expl3 code which keeps track of verse numbers and cross reference numbers and adds things ...


Top 50 recent answers are included