2

I am working on a review article and stuck at following scenario.

Scenario: I want to fix citation number [IEEE style] for some articles/papers in bib file so that i can make diagrams(jpg: from software other than texstudio) containing citation numbers. if not fixed, reference numbers in figures become inconsistent and force updating image every time a new reference is added.

thanks.

2 Answers 2

1

IMO, I think you should go about the problem differently. Instead of messing with the IEEE style, why not superimpose the reference text/label on the figure?

I think you can find several ways to do this.

With overpic or with tikz to name the first found search results at stack exchange.

Then you can use the referencing command \cite{bib-key} just like you would normally. In the MWE below, after finding the correct coordinates you can turn off the grid by removing that from the overpic options. Also, since you might need a difference color for the reference you can change the color of the text as well.

\documentclass[conference]{IEEEtran}
\usepackage{overpic,color}
\begin{document}
With grid for adjusting the reference in white. 
\begin{figure}[htpb]
\begin{overpic}[width=0.9\textwidth,grid]{some_image.jpg}
  \put(3,28){\huge\color{white}~\cite{IEEEhowto:kopka}}
\end{overpic}
\caption{Reference in white.}
\end{figure}

\begin{thebibliography}{1}
\bibitem{IEEEhowto:kopka}
H.~Kopka and P.~W. Daly, \emph{A Guide to \LaTeX}, 3rd~ed.\hskip 1em plus
  0.5em minus 0.4em\relax Harlow, England: Addison-Wesley, 1999.
\end{thebibliography}
\end{document} 
1
  • @Muhammad, was this not helpful? Commented Oct 9, 2015 at 9:21
0

You can manually copy in the resultant .bbl file, then use \setcounter{enumiv}{NUMBER}

MWE:

\documentclass[journal]{IEEEtran}

\usepackage{cite}
\usepackage{lipsum}

\begin{document}

\lipsum

\cite{a,b,c,d,e}

% Generated by IEEEtran.bst, version: 1.14 (2015/08/26)
\begin{thebibliography}{1}
    \providecommand{\url}[1]{#1}
    \csname url@samestyle\endcsname
    \providecommand{\newblock}{\relax}
    \providecommand{\bibinfo}[2]{#2}
    \providecommand{\BIBentrySTDinterwordspacing}{\spaceskip=0pt\relax}
    \providecommand{\BIBentryALTinterwordstretchfactor}{4}
    \providecommand{\BIBentryALTinterwordspacing}{\spaceskip=\fontdimen2\font plus
        \BIBentryALTinterwordstretchfactor\fontdimen3\font minus
        \fontdimen4\font\relax}
    \providecommand{\BIBforeignlanguage}[2]{{%
                \expandafter\ifx\csname l@#1\endcsname\relax
                    \typeout{** WARNING: IEEEtran.bst: No hyphenation pattern has been}%
                    \typeout{** loaded for the language `#1'. Using the pattern for}%
                    \typeout{** the default language instead.}%
                \else
                    \language=\csname l@#1\endcsname
                \fi
                #2}}
    \providecommand{\BIBdecl}{\relax}
    \BIBdecl

    \bibitem{a} Item1

    \bibitem{b} Item2

    \setcounter{enumiv}{23}
    \bibitem{c} Item3

    \bibitem{d} Item4

    \setcounter{enumiv}{40}
    \bibitem{e} Item5

\end{thebibliography}

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .