Code: Select all
\subfloat[][$[0,1]$]{ ... }
Does anyone know of a fix for this?! Extra }, or forgotten $. <recently read> }
l.94 \subfloat[][$[0,1]$]{
Code: Select all
\subfloat[][$[0,1]$]{ ... }
Does anyone know of a fix for this?! Extra }, or forgotten $. <recently read> }
l.94 \subfloat[][$[0,1]$]{
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Code: Select all
\documentclass{aricle}
\usepackage{subfig}
\begin{document}
\begin{figure}[!ht]
\centering
\subfloat[][$[0,1]$]{\label{fig:rect1}\rule{2cm}{1cm}}\qquad
\subfloat[][$[2,3]$]{\label{fig:rect2}\rule{2cm}{1cm}}
\caption{two rectangles}
\label{fig:rect}
\end{figure}
\end{document}
Code: Select all
\documentclass{article}
\usepackage{subfig}
\begin{document}
\begin{figure}[!ht]
\centering
\subfloat[][${[0,1]}$]{\label{fig:rect1}\rule{2cm}{1cm}}\qquad
\subfloat[][${[2,3]}$]{\label{fig:rect2}\rule{2cm}{1cm}}
\caption{two rectangles}
\label{fig:rect}
\end{figure}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis