Adjust subfigure and subcaption options

This commit is contained in:
Georg Baum 2015-01-03 18:43:01 +01:00
parent 935646bf91
commit b1bfbfb3f9
2 changed files with 5 additions and 2 deletions

View File

@ -641,8 +641,9 @@ $$
\stepcounter{} \stepcounter{}
\stretch{} \stretch{}
%\subitem{} % unsupported theindex environment %\subitem{} % unsupported theindex environment
\subcaption[translate]{translate}
\subjectname \subjectname
\subfigure[]{translate} \subfigure[translate][translate]{translate} % obsolete subfigure.sty
\subparagraph[]{} % These "sub" versions of the sectioning commands weren't \subparagraph[]{} % These "sub" versions of the sectioning commands weren't
\subparagraph*{} % in the original commandlist for some reason (adk) \subparagraph*{} % in the original commandlist for some reason (adk)
\subsection[]{} % \subsection[]{} %
@ -650,6 +651,7 @@ $$
\subsubsection[]{} % \subsubsection[]{} %
\subsubsection*{} % \subsubsection*{} %
%\subsubitem{} % unsupported theindex environment %\subsubitem{} % unsupported theindex environment
\subtable[translate][translate]{translate} % obsolete subfigure.sty
\suppressfloats[] \suppressfloats[]
\symbol{} \symbol{}
\tablename \tablename

View File

@ -2813,8 +2813,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
} }
else if (t.cs() == "subfloat") { else if (t.cs() == "subfloat") {
// the syntax is \subfloat[caption]{content} // the syntax is \subfloat[list entry][sub caption]{content}
// if it is a table of figure depends on the surrounding float // if it is a table of figure depends on the surrounding float
// FIXME: second optional argument is not parsed
bool has_caption = false; bool has_caption = false;
p.skip_spaces(); p.skip_spaces();
// do nothing if there is no outer float // do nothing if there is no outer float