wannesm / adsphd

KU Leuven Arenberg Doctoral School PhD dissertation latex class
http://set.kuleuven.be/phd/
73 stars 46 forks source link

Can the adsphd class be used in Overleaf? #107

Open dudris opened 2 years ago

khendrickx commented 2 years ago

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.

Mbrchnelova commented 10 months ago

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,

p-ortmann commented 9 months ago

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!

Mbrchnelova commented 9 months ago

Yes, it worked, thank you very much!