wannesm/adsphd

Can the adsphd class be used in Overleaf?

Opened this issue · 4 comments

Can the adsphd class be used in Overleaf?

Yes, I can confirm that Overleaf is compatible with the template. Simply copying this repository to an Overleaf project should work if thesis.tex is set as the main document.

Dear @khendrickx , I have tried using it on overleaf but get multiple errors of the form:


I can't write on file `chapters/preface/preface.aux'.

‪adsphd-master2/thesis.tex, 117‬
\@include ...mmediate \openout \@partaux "#1.aux" 
                                                  \immediate \write \@partau...
l.117 \includepreface{preface}
                              
(Press Enter to retry, or Control-D to exit; default file extension is `.tex')
Please type another output file name
! Emergency stop.
\@include ...mmediate \openout \@partaux "#1.aux" 
                                                  \immediate \write \@partau...
l.117 \includepreface{preface}

even older compilers (down to 2016) do not work. Do you please know how to resolve these issues?

Best,

Had the same issue. For me, it had to do with the directory structure.
If you have a folder in overleaf, which contains all the repository files, like this:

.
    ├── upperfolder                  
    │   ├── chapters        
    │   └── thesis.tex              
    │   ├── adsphd.cls         
    │   ├── ...          

The /include statements in adsphd.cls break. The chapters folder doesn't exist in the upper directory.
To fix this you can either change the chaptersdir variable in adsphd.cls to upperfolder/chapters or just upload a zip with a flat directory structure.

Hope this helps!

Yes, it worked, thank you very much!