Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 7 years ago.
The community reviewed whether to reopen this question last month and left it closed:
Original close reason(s) were not resolved
Improve this question
I use package cleveref to refercence a figure or table in latex.
\usepackage{hyperref}
\usepackage{cleveref}
\cref{sim_figure}
The result is some like fig. 1, table I.
However, my expected result is Fig. 1 or Table I which is required by IEEEtran. How can I capitalize the first letter?
This is clearly outlines in the cleveref documentation.
You can either use \Cref, or pass the package option capitalise:
\documentclass{ieeetran}
\usepackage{hyperref}
\usepackage[capitalise]{cleveref}
\begin{document}
See \cref{fig:myfigure} or \Cref{fig:myfigure}.
\begin{figure}
\caption{Some figure}\label{fig:myfigure}
\end{figure}
\end{document}
If you wish to customize the way \Cref prints (output Fig. rather than Figure), add
\Crefname{figure}{Fig.}{Figs.}% {<type>}{<singular>}{<plural>}
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 3 years ago.
Improve this question
I don't suppose anyone can help with a custom TeX symbol? I need a \sqsubset with a \cdot in the middle of the subset symbol.
I tried using some suggestions from other questions I found but they all ruin the spacing of the subset symbol.
You can overlay symbols \sqsubset and \cdot to make them a unit, and vary its size based on the style it's used in.
\documentclass{article}
\usepackage{amssymb}
\newcommand{\sqsubsetcdot}{
\mathchoice
{\mathrel{\ooalign{$\sqsubset$\cr\hidewidth$\cdot$\hidewidth}}}% \displaystyle
{\mathrel{\ooalign{$\sqsubset$\cr\hidewidth$\cdot$\hidewidth}}}% \textstyle
{\mathrel{\ooalign{$\scriptstyle\sqsubset$\cr\hidewidth$\scriptstyle\cdot$\hidewidth}}}% \scriptstyle
{\mathrel{\ooalign{$\scriptscriptstyle\sqsubset$\cr\hidewidth$\scriptscriptstyle\cdot$\hidewidth}}}% \scriptscriptstyle
}
\begin{document}
$A \sqsubset B_{A \sqsubset B_{A \sqsubset B}}$
$A \sqsubsetcdot B_{A \sqsubsetcdot B_{A \sqsubsetcdot B}}$
\end{document}
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
I tried to turn off numbering of the sections in my LaTeX documten using \renewcommand\thesection{}.
The numbering did disappear but the title of the section is still indented.
The «Title of the section» should be at the point where the «3» used to be.
How can I do this?
It is much simpler: use the \section*{Some Text} command:
\documentstyle[12pt]{article}
\begin{document}
\section*{Some Text}
Lorum ipsum ...
\end{document}
yields
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I include a figure like this
\begin{figure*}
\begin{center}
\includegraphics[width=6.7in]{pic/recall_details.png}
\caption{ Recalls of test query MB002-MB049}
\label{ recall_details}
\end{center}
\end{figure*}
And then I refer it using \ref{recall_details}. Instead of getting numbers like 1, 2, I get ??. Literally I mean ??. What is wrong with my codes? How to make the references show correctly?
You should "compile" your latex code twice to get numbers instead of question marks
The issue is that you're referencing \ref{recalls_details}, but you've defined \label{ recalls_details}. That extra space before recalls_details is what gets you ?? instead of the figure number. You should either change the \ref to \ref{ recalls_details} or the \label to \label{recalls_details}.
On another note, I suggest you add a modifier at the start of the label, such as fig: in this case: \label{fig:recalls_details}. This is useful when you have different types of labels (e.g. to sections, sec:, and to equations, eqn:).
The bottom line is to always use the exact string you give within the \label{} in the relevant \ref{}.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to insert png files into my document.
basically, like this, it works (after invoking 'float'),
\begin{figure}[H]
\begin{center}
\includegraphics{myfigure}
\caption{short caption}{VERY LONG FIGURE LEGEND}
\label{fig:myfigure}
\end{center}
\end{figure}
but like that, it doesn't,
\begin{figure}[htbp!]
\begin{center}
\includegraphics{myfigure}
\caption{short caption}{VERY LONG FIGURE LEGEND}
\label{fig:myfigure}
\end{center}
\end{figure}
which is weird to me; obviously I invoke \usepackage{graphicx} as well since without that it wouldn't work in the first place. Any suggestions what the problem could be?
UPDATED: found the solution:
I had defined the \textsuperscript macro as in http://anthony.liekens.net/index.php/LaTeX/SubscriptAndSuperscriptInTextMode
a fix is sketched in Figures occurring after ^ and _ macros (was: LaTeX limitation?), and it seems to work for me
cheers!!
I can't test it here, but I think the combination htbp and ! is not allowed. The ! defines that LaTeX should listen to the given placement specifier and place the figure how you specify it. You say with htbp! to LaTeX something like
Place my image here, at the top, at the bottom or on a special page. And do it all!
You should choose either htbp or h!, t!, b! or p!, I think.
found the solution:
I had defined the \textsuperscript macro as in http://anthony.liekens.net/index.php/LaTeX/SubscriptAndSuperscriptInTextMode
a fix is sketched in Figures occurring after ^ and _ macros (was: LaTeX limitation?) and it seems to work for me
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm using a Latex to write a small paper using CVPR template.
I'd like to put a figure between my title+name and body(which consists with two columns) like many CVPR papers do, but I don't find the way to do that.
I tried,
\begin{figure*}
\begin{center}
\fbox{\rule{0pt}{2in} \rule{.9\linewidth}{0pt}}
\end{center}
\caption{some caption..}
\label{fig:short}
\end{figure*}
but it turned out figure-star only displays it's figure at the top of next page,
and when I just use figure like \begin{figure}[htb], it's only located one of those two columns.
Does anyone know how to put a long figure between my title+name and body context?
Thanks.
You don't mention anything about inserting a date in your title. So, why not use the date to store your image:
\documentclass[twocolumn]{article}
\usepackage{mwe}% http://ctan.org/pkg/mwe
\title{My Title}
\author{A.\ Uthor}
\date{\includegraphics[height=2in]{example-image}}
\begin{document}
\maketitle
\lipsum[1-4]
\end{document}
The mwe package provides the example image (via graphicx) and dummy text (via lipsum).