\providecommand{\DIFdel}[1]{} % Don't show deleted text
\providecommand{\DIFadd}[1]{{\color{red}\uline{#1}}}
latexdiff --append-context2cmd="abstract" old.tex new.tex > diff.tex
{\color{red}\begin{tabular}{cc}
a&b\\
1&2
\end{tabular}}
\setlength{\tabcolsep}{20pt}
\renewcommand{\arraystretch}{1.5}
\listfiles
%\usepackage{multicolumn}
\multicolumn{number cols}{align}{text} % align: l,c,r
%\usepackage{multirow}
\multirow{number rows}{width}{text}
\usepackage{stfloats}
\usepackage{rotating}
\usepackage[left]{showlabels}
\renewcommand{\showlabelsetlabel}[1]
{\begin{turn}{90}\showlabelfont #1\end{turn}}
\renewcommand{\showlabelfont}{\small\slshape\color{blue}}
\resizebox{\linewidth}{!}{
\renewcommand*\thetable{1}
\newcommand{\algorithmautorefname}{Algorithm} %% for using \autoref with algorithm
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=blue,
urlcolor=blue,
allcolors=blue,
}
\urlstyle{same}
\documentclass[Royal,sageh,times]{sagej}
% \documentclass[Afour,sageapa,times]{sagej}
\bibliographystyle{SageV}
\begin{adjustwidth}{-\extralength}{0cm}
\end{adjustwidth}
A good tutorial is given here.
The Springer class has a problem using the \resizebox command. Alternative techniques to avoid using this command are given here.
Simply \nameref{} can be used; that will show the label section title. However, if the section number is removed in that case, the following procedure needs to be followed.
\section*{Literature Review}\setcurrentname{Literature Review}\label{sec:2}
\documentclass{article}
\usepackage{nameref}% Only if hyperref isn't loaded % \usepackage{hyperref}
\begin{document}
\section{foo}\label{test}
Some text.
\section{bar}
Some text.
Also see section \nameref{test}.
\end{document}
Details of the discussion about using cleveref and nameref with the class are available here.
Split your figure into two figures, and then to the second one immediately after \begin{figure} add the command \ContinuedFloat. With this, both figures will have the same caption number; however, the subcaptions numbering is continued from the previous figure. An example illustration is available here.
A nice source of LaTex tutorial book is available here. The file was collected from a YouTube channel named 'SAYPhysics.'
Change subfigure number style from 1a to 1(a)
\usepackage[labelformat=simple]{subcaption}
\renewcommand\thesubfigure{(\alph{subfigure})}
\RequirePackage{shellesc}
\ShellEscape{latexdiff old.tex new.tex > main-d.tex}
\input{main-d}
\documentclass{dummy}
\title{Demonstrating latexdiff}
\usepackage{algorithm,algpseudocode}
\newcounter{algsubstate}
\renewcommand{\thealgsubstate}{\alph{algsubstate}}
\newenvironment{algsubstates} {\setcounter{algsubstate}{0}%
\renewcommand{\State}{%
\stepcounter{algsubstate}%
\Statex {\footnotesize\thealgsubstate:}\space}}
{}
\documentclass{article}
\usepackage[paperheight=6\baselineskip]{geometry}% just for the example
\usepackage{algorithm}
\usepackage{algcompatible}
\begin{document}
\begin{algorithm}[H]
\caption{My algo}
\begin{algorithmic}[1]
\STATE instruction 1
\STATE instruction 2
\algstore{testcont}
\end{algorithmic}
\end{algorithm}
\begin{algorithm}[H]
\caption{My algo - Part 2}
\begin{algorithmic}[1]
\algrestore{testcont}
\STATE instruction 3
\STATE instruction 4
\end{algorithmic}
\end{algorithm}
\end{document}
Related questions https://tex.stackexchange.com/questions/linked/29816?sort=hot
\setcitestyle{numbers}