drafting option requires \myVersion which is not provided.

Issue #50 closed
Former user created an issue

``` A default value should be provided for \myVersion which is used when the [drafting] option is provided. (This is not mentioned in the manual either.) ```

Original issue reported on code.google.com by `michael.forbes` on 2012-03-27 01:16:50

Comments (4)

  1. André Miede repo owner

    ``` Thanks, good point. Will be fixed in the next release (in classicthesis.sty): % ************** % Drafting Stuff % ************** \RequirePackage{scrtime} % time access \newcommand{\finalVersionString}{} \ifthenelse{\boolean{@drafting}}{% % Getting it right if using classicthesis % w/o classicthesis-config.tex \ifdefined\myVersion% \relax% \else% \newcommand{\myVersion}{}% \fi% % \RequirePackage{draftwatermark}% % \SetWatermarkLightness{0.9} % \SetWatermarkScale{.5} % \SetWatermarkText{\today\ at \thistime} \PassOptionsToPackage{draft}{prelim2e} \RequirePackage{prelim2e} \renewcommand{\PrelimWords}{\relax} \renewcommand{\PrelimText}{\footnotesize[\,\today\ at \thistime\ -- \texttt{classicthesis} \myVersion\,]} }{\renewcommand{\finalVersionString}{\emph{Final Version} as of \today\ (\texttt{classicthesis} \myVersion).}}

    ```

    Original issue reported on code.google.com by `amiede` on 2012-03-27 07:10:44

  2. Former user Account Deleted

    ``` Why not simply \providedcommand{\myVersion}{} instead of the \ifdefined conditional? ```

    Original issue reported on code.google.com by `michael.forbes` on 2012-03-27 10:42:15

  3. André Miede repo owner

    ``` You are definitely right. I also moved it a bit around in the lunch break and corrected the spacing:

    % ************** % Drafting Stuff % ************** \RequirePackage{scrtime} % time access \newcommand{\finalVersionString}{\relax} \providecommand{\myVersion}{$\!\!$} % w/o classicthesis-config.tex \ifthenelse{\boolean{@drafting}}{% % \RequirePackage{draftwatermark}% % \SetWatermarkLightness{0.9} % \SetWatermarkScale{.5} % \SetWatermarkText{\today\ at \thistime} \PassOptionsToPackage{draft}{prelim2e} \RequirePackage{prelim2e} \renewcommand{\PrelimWords}{\relax} \renewcommand{\PrelimText}{\footnotesize[\,\today\ at \thistime\ -- \texttt{classicthesis}\myVersion\,]} }{\renewcommand{\finalVersionString}{\emph{Final Version} as of \today\ (\texttt{classicthesis}\myVersion).}}

    ```

    Original issue reported on code.google.com by `amiede` on 2012-03-27 11:49:07

  4. Log in to comment