Skip to content

Commit

Permalink
the def \C breaks the web build
Browse files Browse the repository at this point in the history
  • Loading branch information
fpvandoorn committed Jan 13, 2025
1 parent 93c2a5f commit bc86df0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 1 addition & 2 deletions blueprint/src/preamble/common.tex
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
\newcommand{\Z}{{\mathbb{Z}}}
\newcommand{\Q}{{\mathbb{Q}}}
\newcommand{\R}{{\mathbb{R}}}
% In some distributions, \C is already defined so \newcommand fails
\def\C{\mathbb{C}}

\DeclareMathOperator{\ch}{\operatorname{ch}}
\DeclareMathOperator{\dens}{\operatorname{dens}}
\DeclareMathOperator{\supp}{\operatorname{supp}}
Expand Down
6 changes: 5 additions & 1 deletion blueprint/src/preamble/print.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@
\newcommand{\proves}[1]{}
\newcommand{\lean}[1]{}
\newcommand{\leanok}{}
\tracinglostchars=3
\tracinglostchars=3

% In some distributions, \C is already defined so \newcommand fails, however, \def seems to
% break the web-build our CI does, so we declare this separately for the pdf and the web version
\def\C{\mathbb{C}}
4 changes: 4 additions & 0 deletions blueprint/src/preamble/web.tex
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
% Those macros are used for the web version of the blueprint.
% This file is not meant to be built. Build src/web.tex or src/print.text instead.

% In some distributions, \C is already defined so \newcommand fails, however, \def seems to
% break the web-build our CI does, so we declare this separately for the pdf and the web version
\newcommand{\C}{{\mathbb{C}}}

0 comments on commit bc86df0

Please sign in to comment.