Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add/Document a variant for compiling without images #17

Open
machawk1 opened this issue Oct 17, 2017 · 4 comments
Open

Add/Document a variant for compiling without images #17

machawk1 opened this issue Oct 17, 2017 · 4 comments

Comments

@machawk1
Copy link
Member

machawk1 commented Oct 17, 2017

My current draft takes some non-trivial amount of time (1m54s) to compile (pdflatex, bibtex, pdflatex, pdflatex) if images are included and rendered inline. For iterating to ensure changes in text were interpreted correctly (e.g., formulas, Xref'd figs), I would like a documented option for quicker compilation (currently 8sec for above 4 cmds with below cmd). Currently, prior to applying this template, I use the same class with two different options also containing stylistic differences (for higher information density while reviewing):

  1. Normal compile variant:
    \documentclass[10pt,phdthesis,doublespace,oneside,thesisdraft]{my_thesis_style}
  2. Quick-compile variant
    \documentclass[9pt,phdthesis,singlespace,oneside,thesisdraft,draft]{my_thesis_style}

A shorter option or toggle as defined within the wsdlthesis class would be useful.

@ibnesayeed
Copy link
Member

The parent report class has a draft parameter available which can be passed from the wsdlthesis class too. This however, would only put an outline and image file names when figures are included, not the actual figures.

To give it a try, please change the first line of the main.tex to \documentclass[draft]{wsdlthesis} and profile the timing.

@machawk1
Copy link
Member Author

@ibnesayeed Will-do once I port my files over the hierarchy in this repo. In the meantime, the effects of the draft option should be documented in the README.

@machawk1
Copy link
Member Author

Additionally, at least in the "draft" feature in the class I am using (which I believe has a similar basis as wsdlthesis) is that even figures w/o images get the outline treatment. It would be useful to have a different variant where listings within figures are still displayed when the drafts option is enabled.

@ibnesayeed
Copy link
Member

ibnesayeed commented Oct 17, 2017

I did not add the anything specific about the draft parameter in the documentation, but I did mention this:

Any additional parameters to the wsdlthesis class will be passed on to the parent report class.

Currently, there is a fallback "catch all"-style parameter passing to the parent class. Any custom handling of draft mode would require more investment (which can be done if it is worth the effort).

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants