Package Details: texlive-tubs 1.2.0-1

Git Clone URL: https://aur.archlinux.org/texlive-tubs.git (read-only, click to copy)
Package Base: texlive-tubs
Description: LaTeX-Templates for the Corporate Design of TU Braunschweig
Upstream URL: https://www.tu-braunschweig.de/latex
Keywords: latex tex texlive tubs tubslatex
Licenses: LPPL
Conflicts: texlive-tubslatex
Provides: texlive-tubslatex
Submitter: timschubert
Maintainer: roberthartung
Last Packager: roberthartung
Votes: 4
Popularity: 0.026503
First Submitted: 2016-04-09 15:16
Last Updated: 2020-02-25 14:14

Latest Comments

timschubert commented on 2020-04-17 09:17

@roberthartung Can we include the the filehook-scrlfile in the package itself? I have the same problem on NixOS (Texlive 2018).

roberthartung commented on 2020-04-17 08:37

@Maverick

This is not a bug with the aur package itself. Arch comes with the 2019 texlive version. The recommended way would be to use https://aur.archlinux.org/packages/texlive-installer/ in order to install the outdated package from CTAN directly. You have to place the workaround file along with your beamer file.

filehook-scrlfile.sty
%% Modified version of filehook-scrlfile as a workaround.
%% See https://tex.stackexchange.com/a/515183/48973.
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{filehook-scrlfile}[2011/01/03 v0.1 filehook patch for scrlfile package]
\RequirePackage{filehook}
\begingroup
\long\def\scrlfile@InputIfFileExists#1#2{%
  \begingroup\expandafter\expandafter\expandafter\endgroup
  \expandafter\ifx\csname #1-@alias\endcsname\relax
    \expandafter\@secondoftwo
  \else
    \scr@replacefile@msg{\csname #1-@alias\endcsname}{#1}%
    \expandafter\@firstoftwo
  \fi
  {%
    \expandafter\InputIfFileExists\expandafter{\csname
      #1-@alias\endcsname}{#2}%
  }%
  {\IfFileExists{#1}{%
      \expandafter\scr@input@withhook\expandafter{\@filef@und}{#1}{#2}%
    }}%
}
\long\def\filehook@scrlfile@InputIfFileExists#1#2{%
  \begingroup\expandafter\expandafter\expandafter\endgroup
  \expandafter\ifx\csname #1-@alias\endcsname\relax
    \expandafter\@secondoftwo
  \else
    \scr@replacefile@msg{\csname #1-@alias\endcsname}{#1}%
    \expandafter\@firstoftwo
  \fi
  {%
    \expandafter\InputIfFileExists\expandafter{\csname
      #1-@alias\endcsname}{#2}%
  }%
  {\IfFileExists{#1}{%
      \expandafter\filehook@swap
      \expandafter{\@filef@und}%
      {\scr@load@hook{before}{#1}%
      #2\@addtofilelist{#1}%
      \filehook@every@atbegin{#1}%
      \filehook@atbegin{#1}%
      \@@input}%
      \filehook@atend{#1}%
      \filehook@every@atend{#1}%
      \scr@load@hook{after}{#1}%
    }}%
}
\long\def\filehook@@scrlfile@InputIfFileExists#1#2{%
  \let\InputIfFileExists\filehook@InputIfFileExists
  \begingroup\expandafter\expandafter\expandafter\endgroup
  \expandafter\ifx\csname #1-@alias\endcsname\relax
    \expandafter\@secondoftwo
  \else
    \scr@replacefile@msg{\csname #1-@alias\endcsname}{#1}%
    \expandafter\@firstoftwo
  \fi
  {%
    \expandafter\InputIfFileExists\expandafter{\csname
      #1-@alias\endcsname}{#2}%
  }%
  {\IfFileExists{#1}{%
      \expandafter\filehook@swap
      \expandafter{\@filef@und}%
      {\scr@load@hook{before}{#1}%
      #2\@addtofilelist{#1}%
      \filehook@atbegin{#1}%
      \@@input}%
      \filehook@atend{#1}%
      \scr@load@hook{after}{#1}%
    }}%
}
\ifcase
    \expandafter\ifx\csname InputIfFileExists \endcsname\latex@InputIfFileExists 0\else
    \expandafter\ifx\csname InputIfFileExists \endcsname\scrlfile@InputIfFileExists 0\else
     1%
    \fi\fi
\relax
  \global\let\filehook@InputIfFileExists\filehook@scrlfile@InputIfFileExists
  \global\let\filehook@@InputIfFileExists\filehook@@scrlfile@InputIfFileExists
  \global\expandafter\let\csname InputIfFileExists \endcsname\filehook@InputIfFileExists
  \PackageInfo{filehook}{Package 'scrlfile' detected and compensated for}%
\else
  \iffilehook@force
    \global\let\filehook@InputIfFileExists\filehook@default@InputIfFileExists
    \global\let\filehook@@InputIfFileExists\filehook@@default@InputIfFileExists
    \global\expandafter\let\csname InputIfFileExists \endcsname\filehook@InputIfFileExists
    \PackageWarning{filehook}{Detected 'scrlfile' package with unknown definition of \string\InputIfFileExists.^^J%
                              The 'force' option of 'filehook' is in effect. Macro is overwritten with default!}%
  \else
    \show\InputIfFileExists
    \expandafter\show\csname InputIfFileExists \endcsname
    \show\scrlfile@InputIfFileExists
    \PackageError{filehook}{Detected 'scrlfile' package with unknown definition of \string\InputIfFileExists.^^J%
                            Use the 'force' option of 'filehook' to overwrite it.}{}%
  \fi
\fi
\endgroup
\endinput
%%
%% End of file `filehook-scrlfile.sty'.

Maverick commented on 2020-04-16 17:43

@roberthartung

Beamer still fails for me in 1.2.0-1 with "Package filehook: Detected 'scrlfile' package with unknown definition of \InputIfFileExists. Use the 'force' option of 'filehook' to overwrite it..".

PS Greetings from EMG ;)

akstrfn commented on 2018-08-21 07:37

non free fonts need a fix: File `uarial.sty' not found.