GeneralAn anti-draft package ?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Titan2012
Posts: 2
Joined: Mon Sep 10, 2012 1:01 pm

An anti-draft package ?

Post by Titan2012 »

Hi everyone,

I would like to know if an "anti-draft" package exist, where the text would be ignored and only the figures and other floats would be displayed ?

My point is : I'm currently finishing the writing of my PhD thesis where a lot of figures ar cross-referenced and I would like to make a second small document to regroup and synthetize all the figures where it would be easier for the reader to find the figures?

Is there already some package to do that ? Would that ring a bell ?

Thanks a lot by advance,

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

An anti-draft package ?

Post by cgnieder »

Hi Titan2012,

Welcome to the LaTeX community!
Titan2012 wrote:I would like to know if an "anti-draft" package exist, where the text would be ignored and only the figures and other floats would be displayed ?
I am not aware of any package (or more probably script) that offers this. This also seems a very localized use case. Since the positioning/placement depends on the surrounding text anyway one would not gain any advantage/knowledge in this respect. The only thing you would get is the order of the images. I would think this last point is easier done by creating a second document and (with the help of the search function of the editor) copying all \includegraphics{...} in there. I am not convinced though that this will help you figure out where to place your figures differently…

Best Regards
site moderator & package author
Titan2012
Posts: 2
Joined: Mon Sep 10, 2012 1:01 pm

Re: An anti-draft package ?

Post by Titan2012 »

Thank you for your reply Clemens,

That was the kind of solution I wanted to avoid. ^^"
But in the end, you're right. I may have to do that.

Best regards
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

An anti-draft package ?

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Here's a simple approach for managing draft and final versions. Put into the preamble

Code: Select all

\newif\iffinal
\finaltrue% or use false, for hidden text
and use for text text within the document

Code: Select all

\iffinal
your text
\else 
% nothing, or placeholder
\fi
This way you can switch between a draft and a final stage. Or define \ifdraft, the other way round.

Or use the comment package, which can show and hide environments.

Another possible approach may be using the endfloat package during the draft stage, and viewing/printing just the float pages at the end, and removing the endfloat setting at the final stage.

Stefan
LaTeX.org admin
Post Reply