From 2767dd2c0694ae58da3b852f56424dd41fc3f7a3 Mon Sep 17 00:00:00 2001 From: shhyou Date: Fri, 18 Sep 2020 20:03:53 -0500 Subject: [PATCH] Block scribble from changing fonts to ptm in LNCS --- scribble-lib/scribble/lncs/lang.rkt | 3 ++- scribble-lib/scribble/lncs/lncs-load.tex | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 scribble-lib/scribble/lncs/lncs-load.tex diff --git a/scribble-lib/scribble/lncs/lang.rkt b/scribble-lib/scribble/lncs/lang.rkt index 59c98b2b..0026e8d9 100644 --- a/scribble-lib/scribble/lncs/lang.rkt +++ b/scribble-lib/scribble/lncs/lang.rkt @@ -50,7 +50,8 @@ unicode-encoding-packages)) (scribble-file "lncs/style.tex") (list cls-file) - #f)) + #f + #:replacements (hash "scribble-load-replace.tex" (scribble-file "lncs/lncs-load.tex")))) (define lncs-extras (let ([abs (lambda (s) diff --git a/scribble-lib/scribble/lncs/lncs-load.tex b/scribble-lib/scribble/lncs/lncs-load.tex new file mode 100644 index 00000000..0c767d0b --- /dev/null +++ b/scribble-lib/scribble/lncs/lncs-load.tex @@ -0,0 +1,14 @@ +% Scribble should not change the default font from CMR +% to ptm for LNCS. See Guidelines for Authors of Papers +% to be Published in Springer Computer Science Proceedings, +% section 2.3, Fonts. +% +% IMPORTANT: the default package newtxmath *still* +% changes the math font. If you want to disable it, +% uncomment the next line +% \renewcommand\packageTxfonts\relax +% However, scribble would still generate LaTeX commands +% that depend on newtxmath upon rendering symbols +% \multimap, \multimapinv, \invamp and \square in +% scribble-lib/scribble/latex-render.rkt. +\renewcommand\renewrmdefault\relax