I'm generating LaTex automagically from a lengthy document that is written in the multimarkdown language, compiled by a software package called Scrivener. It's a workflow that works well, but this is one of the issues I'm hitting. I don't want to have to replace / delete numerous caption command each time I compile to LaTex.
The MWE below illustrates the issue.
This remove Figure n: and caption from included graphic. However, it leaves a blank line, which makes the images spacing appear gauche. Is there a simple way to remove the blank line , without inserting space adjustments, each time a figure is used Thanks.
\documentclass{memoir}
\usepackage{mwe} % for dummy images
\usepackage[labelformat=empty]{caption} % remove figure captions
\begin{document}
\begin{figure}[!ht]
\centering
\includegraphics[width=0.5\textwidth]{image}
\caption{}
\end{figure}
This is first text after caption.
\end{document}

\caption{}..? – jon Apr 10 '14 at 17:19\let\caption\relax? (Probably need to do that after\usepackage{caption}.) Note: I don't know if Scrivener allows you to define arbitrary commands or not, or fiddle with the preamble... – jon Apr 10 '14 at 17:24\let\caption\relaxin the preamble, but that returns error:\caption undefined… – johnbrc Apr 10 '14 at 17:28\includegraphics[..]{...} \caption{..}? If so, one can use this "pattern" to perform certain replacements. Do you sometimes use\captionwith a non-empty argument? – Werner Apr 10 '14 at 17:37\let\caption\relaxon the ensuing line after\usepackage[labelformat=empty]{caption}– johnbrc Apr 10 '14 at 17:44\listfiles? Terminal (OSX)? – johnbrc Apr 10 '14 at 17:53\listfilesin the preamble; then check the.logafter compilation. I have, e.g.:memoir.cls 2013/05/30 v3.7bandcaption.sty 2013/05/02 v3.3-89. – jon Apr 10 '14 at 17:55caption.sty 2012/02/19 v3.2fandmemoir.cls 2011/03/06 v3.6j configurable book, report, article document cl– johnbrc Apr 10 '14 at 17:58\letcommand would be to do\def\caption{}, which will tyrannically overwrite any previous (or not) definitions of\caption... – jon Apr 10 '14 at 18:01\captionto pick up whether it's argument is empty, and condition accordingly. More information in terms of the general situation is required though... – Werner Apr 10 '14 at 18:01\captionwith a non-empty argument. – johnbrc Apr 10 '14 at 18:18