{{ message }}

Instantly share code, notes, and snippets.

# asalt/latex_hide_figure.tex

Created Jan 21, 2016
How to hide whole sections in a latex document.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 %http://tex.stackexchange.com/questions/77920/comment-package-excludecomment-gives-error \documentclass[12pt]{article} \usepackage{todonotes} % \missingfigure \usepackage{comment} % to exclude whole sections when I want to \newif\ifshow % toggle true or false based on if want to hide section %\showtrue % show the sections \showfalse % hide the sections \ifshow \includecomment{wrap} \else \excludecomment{wrap} % anything wrapped in a {wrap} environment will be excluded \fi \begin{document} Text text text text text text text text \begin{wrap} \begin{figure} \centering \missingfigure[figwidth=8cm]{my_figure} \caption{This is a pretty figure.} \label{fig:pretty} \end{figure} \end{wrap} \end{document}