mbredel / thesis-template

A LaTeX template for Bachelor and Master thesis
GNU General Public License v3.0
85 stars 85 forks source link

Unable to compile document using MacTex #29

Open slepp22 opened 2 months ago

slepp22 commented 2 months ago

I recently set up my local LaTeX environment on macOS (MacBook Pro M1) using the full installation of MacTeX. Following successful compilation of a sample .tex file to PDF, I proceeded to download and attempt to compile the "hda fbi" template using the make command.

However, I encountered the following error message during the compilation process:

sven@Svens-MacBook-Pro inventory_database_report % make
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./thesis.tex
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-02-20>
(/usr/local/texlive/2024/texmf-dist/tex/latex/silence/silence.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/koma-script/scrreprt.cls
Document Class: scrreprt 2023/07/07 v3.41 KOMA-Script document class (report)
(/usr/local/texlive/2024/texmf-dist/tex/latex/koma-script/scrkbase.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/koma-script/scrbase.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/koma-script/scrlfile.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/koma-script/scrlfile-hook.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/koma-script/scrlogo.sty)))
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/keyval.sty)))
(/usr/local/texlive/2024/texmf-dist/tex/latex/koma-script/tocbasic.sty)

Class scrreprt Warning: You've used deprecated option `abstractoff'.
(scrreprt)              Usage of this option indicates an old document
(scrreprt)              and changes compatibility level using
(scrreprt)              `abstract=false,version=first,
(scrreprt)              enabledeprecatedfontcommands' that may result
(scrreprt)              in further warnings.
(scrreprt)              If you don't want this, you should simply
(scrreprt)              replace option `abstractoff' by `abstract=false'.

Class scrreprt Warning: Switching back to an old KOMA-Script release does
(scrreprt)              not mean, that KOMA-Script is fully compatible with
(scrreprt)              the old release. If you need full compatibility
(scrreprt)              to an old KOMA-Script release, you should use that
(scrreprt)              old KOMA-Script release. However, in that case you
(scrreprt)              could also need old releases of other packages and
(scrreprt)              even of the LaTeX kernel.
(scrreprt)              You should also note, that the KOMA-Script developers
(scrreprt)              refuse support for documents using `version=first'.
(scrreprt)              We recommend to eliminate all deprecated options
(scrreprt)              and commands. We also recommend to not use option
(scrreprt)              `version', i.e., with other values than `last'.

Class scrreprt Warning: deprecated option `enabledeprecatedfontcommands'.
(scrreprt)              Note, that this option was already depreacted when
(scrreprt)              it has been defined. Support for old font commands
(scrreprt)              has been removed from KOMA-Script more than one
(scrreprt)              decade ago. It is not recommended to use them any
(scrreprt)              longer. Therefore usage of this class option also
(scrreprt)              is not recommended.

(/usr/local/texlive/2024/texmf-dist/tex/latex/koma-script/scrsize11pt.clo)
(/usr/local/texlive/2024/texmf-dist/tex/latex/koma-script/typearea.sty))
(./hdathesis-config.tex
(/usr/local/texlive/2024/texmf-dist/tex/generic/babel/babel.sty
(/usr/local/texlive/2024/texmf-dist/tex/generic/babel/txtbabel.def)
(/usr/local/texlive/2024/texmf-dist/tex/generic/babel-german/ngerman.ldf
(/usr/local/texlive/2024/texmf-dist/tex/generic/babel-german/ngermanb.ldf))
(/usr/local/texlive/2024/texmf-dist/tex/generic/babel-english/american.ldf
(/usr/local/texlive/2024/texmf-dist/tex/generic/babel-english/english.ldf)))
(/usr/local/texlive/2024/texmf-dist/tex/generic/babel/locale/en/babel-american.
tex)
(/usr/local/texlive/2024/texmf-dist/tex/generic/babel/locale/de/babel-ngerman.t
ex)) (./classicthesis-config.tex
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/inputenc.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/csquotes/csquotes.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/csquotes/csquotes.def)
(/usr/local/texlive/2024/texmf-dist/tex/latex/csquotes/csquotes.cfg))
(/usr/local/texlive/2024/texmf-dist/tex/latex/biblatex/biblatex.sty
(/usr/local/texlive/2024/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(/usr/local/texlive/2024/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(/usr/local/texlive/2024/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/local/texlive/2024/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/logreq/logreq.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/logreq/logreq.def))
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/url/url.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/biblatex/blx-dm.def)
(/usr/local/texlive/2024/texmf-dist/tex/latex/biblatex/blx-compat.def)
(/usr/local/texlive/2024/texmf-dist/tex/latex/biblatex/blx-bibtex.def

Package biblatex Warning: Using fall-back bibtex backend:
(biblatex)                functionality may be reduced/unavailable.

) (/usr/local/texlive/2024/texmf-dist/tex/latex/biblatex/biblatex.def)
(/usr/local/texlive/2024/texmf-dist/tex/latex/biblatex/blx-natbib.def)
(/usr/local/texlive/2024/texmf-dist/tex/latex/biblatex/bbx/alphabetic.bbx
(/usr/local/texlive/2024/texmf-dist/tex/latex/biblatex/bbx/standard.bbx))
(/usr/local/texlive/2024/texmf-dist/tex/latex/biblatex/cbx/alphabetic.cbx)
(/usr/local/texlive/2024/texmf-dist/tex/latex/biblatex/biblatex.cfg)
(/usr/local/texlive/2024/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def))
(/usr/local/texlive/2024/texmf-dist/tex/latex/biblatex/blx-case-expl3.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)))
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsmath/amsopn.sty))
(./hdathesis.sty
(/usr/local/texlive/2024/texmf-dist/tex/generic/oberdiek/iflang.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/tools/theorem.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/tools/thp.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/setspace/setspace.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/tools/tabularx.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/tools/array.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics-def/pdftex.def)
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/mathcolor.ltx))
(/usr/local/texlive/2024/texmf-dist/tex/latex/framed/framed.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/pdfpages/pdfpages.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/tools/calc.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/eso-pic/eso-pic.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)))
(/usr/local/texlive/2024/texmf-dist/tex/latex/pdfpages/pppdftex.def)))
(/usr/local/texlive/2024/texmf-dist/tex/latex/changepage/chngpage.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/fontenc.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/textcomp.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/koma-script/scrhack.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/xpatch/xpatch.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/koma-script/setspace.hak))
(/usr/local/texlive/2024/texmf-dist/tex/latex/tools/xspace.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/mparhack/mparhack.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/acronym/acronym.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/bigfoot/suffix.sty)
(/usr/local/texlive/2024/texmf-dist/tex/generic/xstring/xstring.sty
(/usr/local/texlive/2024/texmf-dist/tex/generic/xstring/xstring.tex))
(/usr/local/texlive/2024/texmf-dist/tex/latex/relsize/relsize.sty))
(/usr/local/texlive/2024/texmf-dist/tex/latex/caption/caption.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/caption/caption3.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/caption/caption-koma.sto)))
(/usr/local/texlive/2024/texmf-dist/tex/latex/subfig/subfig.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/listings/listings.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/listings/lstpatch.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/listings/lstmisc.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/listings/listings.cfg))
(/usr/local/texlive/2024/texmf-dist/tex/latex/koma-script/listings.hak

Package scrhack Warning: unknown \lstlistoflistings definition found!
(scrhack)                Maybe you are using a unsupported listings version.

) (/usr/local/texlive/2024/texmf-dist/tex/latex/listings/lstlang1.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/listings/lstlang2.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/listings/lstlang3.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/listings/lstlang1.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/listings/lstlang2.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/listings/lstlang3.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/listings/lstlang1.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/listings/lstlang2.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/listings/lstlang3.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/listings/lstmisc.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2024/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty)
(/usr/local/texlive/2024/texmf-dist/tex/generic/pdfescape/pdfescape.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/hycolor/hycolor.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/auxhook/auxhook.sty)
(/usr/local/texlive/2024/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/local/texlive/2024/texmf-dist/tex/latex/refcount/refcount.sty)
(/usr/local/texlive/2024/texmf-dist/tex/generic/gettitlestring/gettitlestring.s
ty)) (/usr/local/texlive/2024/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2024/texmf-dist/tex/generic/intcalc/intcalc.sty)

! LaTeX socket Error: Sockets can only be declared at top-level!

For immediate help type H <return>.
 ...                                              

l.2088  {\providecommand\UseSocket[2]{#2}}

? 

Despite having installed the full version of MacTeX, I am unable to compile the template as expected. Could you kindly assist me in resolving this issue?

slepp22 commented 2 months ago

Update: Thanks to Docker Containers, I successfully compiled and generated the PDF. However, I'm uncertain if this is intended as the sole solution. I would anticipate being able to compile the document directly without relying on Docker. Perhaps I'm overlooking the necessity of Docker for compiling a LaTeX file, but clarification in the documentation on this point would be appreciated.

AkshayChikhalkar commented 1 month ago

Great you managed to solve the issue, although I would suggest an vs code extension called Latex Workshop. Only thing you need if you want to compile on mac. I tried with MacTex but faced some problems.

jealka commented 2 weeks ago

The fix described in issue #26 solved the problem for me (also using MacTeX).