How to remove automatic numbering of figure in LaTex? - latex

I would like the caption of my figure to be "Figure A". Is there a way to remove the automatic numbering of the figures?
\documentclass[jou]{apa7}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\renewcommand{\figurename}{Figure A}
\centering
\caption{Title}
\includegraphics[width=0.5\textwidth]{test.png}
\end{figure}
\end{document}
With the code above, the caption is "Figure A 1".
Thank you in advance!

Two quick hacks, either you can temporarily remove the number or you can latex do the numbering with capital letters:
\documentclass[jou]{apa7}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\renewcommand{\figurename}{Figure A}
\renewcommand{\thefigure}{}
\centering
\caption{Title}
\includegraphics[width=0.5\textwidth]{example-image-duck}
\end{figure}
\begin{figure}
\renewcommand{\thefigure}{\Alph{figure}}
\centering
\caption{Title}
\includegraphics[width=0.5\textwidth]{example-image-duck}
\end{figure}
\end{document}

Related

LaTex - Extra space between words of footnotes in figure environment

there is extra space between the words of the footnotes in the figure below. How can I fix this issue?
\documentclass[jou]{apa7}
\begin{document}
\begin{figure*}
\centering
\caption{Title}
\vspace{0.3cm}
\includegraphics[width=\textwidth]{example.png}
\vspace{4pt}
\begin{tablenotes}[para,flushleft]
{\small \textit{Note.} Figure notes here }
\end{tablenotes}
\end{figure*}
\end{document}
Your table note tries to fill the whole line. To avoid the extra space you can add \hfill at the end to fill the line.
\documentclass[jou]{apa7}
\shorttitle{subtitle}
\begin{document}
\begin{figure*}
\centering
\caption{Title}
\vspace{0.3cm}
\includegraphics[width=\textwidth]{example-image-duck}
\vspace{4pt}
\begin{tablenotes}[para,flushleft]
{\small \textit{Note.} Figure notes here\hfill }
\end{tablenotes}
\end{figure*}
\end{document}

Latex: Left alignment for an equation

I have these two definitions:
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{flalign*}
&\boldsymbol{R*^\sigma} & \sigma_{superset}(F)&=\sigma_{superset}(F')&\\
&\boldsymbol{R*_{weak}^\sigma} & \sigma_{superset}(F)&=\sigma_{superset}(F')\cap\mathcal{P}(A)&
\end{flalign*}
\end{document}
Compiled, it looks like this:
I want the equations to be aligned by "=" as they are; but also that they are not centered but quite next to the bold symbols. Like, also aligned left.
It should look like this (done with MS Paint):
If you don't mind that all equations will be left aligned, you could use the fleqn option of amsmath:
\documentclass[12pt]{article}
\usepackage[fleqn]{amsmath}
\setlength{\mathindent}{0pt}
\begin{document}
\noindent text
\begin{alignat*}{3}
&\boldsymbol{R*^\sigma} & \sigma_{superset}(F)&=\sigma_{superset}(F')\\
&\boldsymbol{R*_{weak}^\sigma} \quad& \sigma_{superset}(F)&=\sigma_{superset}(F')\cap\mathcal{P}(A)
\end{alignat*}
\end{document}
If you like to keep other equations centred, you could also switch temporarily:
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\[
a
\]
{
\makeatletter
\#fleqntrue
\makeatother
\begin{alignat*}{4}
&\boldsymbol{R*^\sigma} & \sigma_{superset}(F)&=\sigma_{superset}(F')\\
&\boldsymbol{R*_{weak}^\sigma} \quad& \sigma_{superset}(F)&=\sigma_{superset}(F')\cap\mathcal{P}(A)
\end{alignat*}
}
\[
a
\]
\end{document}

subfig - not plotting figures

I would like to refresh this thread: Subfigs of a figure on multiple pages.
I am struggling with reproduction. I have used suggestions on this post and I have used subfig docs. Unfortunately, neither works.
%Packages which I am using:
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subfig}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{figure}
\centering
\subfloat[]{figures/fig1.pdf}
\qquad
\subfloat[]{figures/fig2.pdf}
\caption{Caption nr 1.}
\label{fig:figure1_2}
\end{figure}
\begin{figure}
\ContinuedFloat
\centering
\subfloat[]{figures/fig3.pdf}%
\qquad
\subfloat[]{figures/fig4.pdf}
\caption[]{Caption nr 2}
\label{fig:fig3_4}
\end{figure}
\end{document}
The output of it is a page with directories of figures displays accordingly without a figure itself.
Please let me know if something I missed.
You need to include the images with \includegraphics:
\documentclass{article}
%Packages which I am using:
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subfig}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{figure}
\centering
\subfloat[]{\includegraphics[width=5cm]{example-image-duck}}
\qquad
\subfloat[]{\includegraphics[width=5cm]{example-image-duck}}
\caption{Caption nr 1.}
\label{fig:figure1_2}
\end{figure}
\begin{figure}
\ContinuedFloat
\centering
\subfloat[]{\includegraphics[width=5cm]{example-image-duck}}%
\qquad
\subfloat[]{\includegraphics[width=5cm]{example-image-duck}}
\caption[]{Caption nr 2}
\label{fig:fig3_4}
\end{figure}
\end{document}

LaTex: How to change caption on figures from "Figure 1:" to "Figure 1 |"

I have the following LaTex code below which generates a figure of a histogram:
\documentclass[review,12pt]{elsarticle}
\usepackage{lineno,hyperref}
\usepackage[utf8]{inputenc}
\usepackage[dvipsnames]{xcolor}
\usepackage{amssymb, lipsum, color}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{comment}
\usepackage{smartdiagram}
\usetikzlibrary{shapes.geometric}
\usepackage{float}
\begin{document}
\begin{figure}[H]
\centering
\includegraphics[scale=0.8]{Histogram A.jpg}
\caption{Histogram Title}\label{Histogram A}
\end{figure}
\end{document}
I have attached a picture of the histogram here:
The caption on the histogram figure will start with Figure 1: Histogram Title. How do I change this to Figure 1 | Histogram Title? Ie. how do I replace the colon sign to a pipe sign?
Many thanks in advance!
Using the caption package:
\documentclass[review,12pt]{elsarticle}
\usepackage{lineno,hyperref}
\usepackage[utf8]{inputenc}
\usepackage[dvipsnames]{xcolor}
\usepackage{amssymb, lipsum, color}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{comment}
\usepackage{smartdiagram}
\usetikzlibrary{shapes.geometric}
\usepackage{float}
\usepackage{caption}
\DeclareCaptionLabelSeparator{bar}{\space\textbar\space}
\captionsetup{labelsep=bar}
\begin{document}
\begin{figure}[htbp]
\centering
\includegraphics[scale=0.8]{example-image-duck}
\caption{Histogram Title}\label{Histogram A}
\end{figure}
\end{document}

Ordering subfigures in LaTex

I have this code in LaTex:
\begin{figure}[h!]
\centering
\subfigure[]{\includegraphics[width=50mm]{katua.jpg}}
\subfigure[]{\includegraphics[width=60mm]{txakurren_balioak.png}}
\subfigure[]{\includegraphics[width=60mm]{katuen_balioak.png}}}
\label{fig:eb3}
\end{figure}
and I get this:
And I want to put the images in two columns. In the column of the left the image of the cat and in the right the two histograms. How it is possible to do this?
Instead of \centering you could use \hfill to do the centering, see the example below:
\documentclass{report}
\usepackage{graphicx}
\usepackage{subfigure}
\begin{document}
\begin{figure}[h!]
\hfill
\subfigure[]{\includegraphics[width=50mm]{example-image-a}}
\hfill
\subfigure[]{\includegraphics[width=60mm]{example-image-b}}
\hfill
\hfill
\subfigure[]{\includegraphics[width=60mm]{example-image-c}}
\end{figure}
\end{document}

Resources