allrunes 稍微更改了默认字体

allrunes 稍微更改了默认字体

我正在尝试将特定符文用作文档中的符号。我可以使用这个allrunes包来实现这一点。allrunes文档明确指出,它不会更改主文本的默认字体。但是,当文档编译时在某些计算机上,主文字体略有变化。

我尝试更改定义符号的命令,以便它仅以以下方式在本地使用 allrunes 字体:

\newcommand{\hagal}{{\allrunes{\large{\textarm{\textlf{h}}}}\!\!\!\!\!\!{\raisebox{0.5\depth}{\phantom|$^{\bullet}_{\pm}$}}}}

但这似乎不起作用。有什么想法吗?

一个最小的工作示例是:

\documentclass[12pt,a4paper]{article}
\usepackage{epsfig}
\usepackage[a4paper]{geometry}
\usepackage{allrunes}

\newcommand{\hagal}{{\large{\textarm{\textlf{h}}}}\!\!\!\!\!\!{\raisebox{0.5\depth}{\phantom|$^{\bullet}_{\pm}$}}}

\begin{document}
\section{Bad Font}
\hagal
\end{document}

补充(S 塞格莱特斯)

降低 MWE 以使其allrunes免费:

\documentclass[12pt,a4paper]{article}
\usepackage{epsfig}
\usepackage[a4paper]{geometry}
%\usepackage{allrunes}

\newcommand{\hagal}{{\large{\textarm{\textlf{h}}}}\!\!\!\!\!\!{\raisebox{0.5\depth}{\phantom|$^{\bullet}_{\pm}$}}}

\begin{document}
\section{Bad Font}
%\hagal
\end{document}

给出以下字体:

在此处输入图片描述

加载中allrunes

\documentclass[12pt,a4paper]{article}
\usepackage{epsfig}
\usepackage[a4paper]{geometry}
\usepackage{allrunes}

\newcommand{\hagal}{{\large{\textarm{\textlf{h}}}}\!\!\!\!\!\!{\raisebox{0.5\depth}{\phantom|$^{\bullet}_{\pm}$}}}

\begin{document}
\section{Bad Font}
%\hagal
\end{document}

产生一个错误:command \swdefault already defined,并产生以下输出:

在此处输入图片描述

两个日志文件的差异如下:

1c1
< This is pdfTeX, Version 3.141592653-2.6-1.40.23 (MiKTeX 21.8) (preloaded format=pdflatex 2021.9.12)  17 JAN 2022 16:43
---
> This is pdfTeX, Version 3.141592653-2.6-1.40.23 (MiKTeX 21.8) (preloaded format=pdflatex 2021.9.12)  17 JAN 2022 16:46
83a84,136
> (C:\Users\Steven\AppData\Local\Programs\MiKTeX 2.9\tex/latex/allrunes\allrunes.
> sty
> Package: allrunes 2004/01/06 v2.1 allrunes package.
> 
> (C:\Users\Steven\AppData\Local\Programs\MiKTeX 2.9\tex/latex/base\ifthen.sty
> Package: ifthen 2020/11/24 v1.1c Standard LaTeX ifthen package (DPC)
> )
> LaTeX Info: Redefining \mdseries on input line 43.
> LaTeX Info: Redefining \bfseries on input line 55.
> 
> 
> ! LaTeX Error: Command \swdefault already defined.
>                Or name \end... illegal, see p.192 of the manual.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...                                              
>                                                   
> l.94 \newcommand{\swdefault}{t}
>                                 % straight, low twigs
> ? 
> (C:\Users\Steven\AppData\Local\Programs\MiKTeX 2.9\tex/latex/allrunes\arc.fd
> Now handling font encoding LRC ...
> ... no UTF-8 mapping file for font encoding LRC
> )
> (C:\Users\Steven\AppData\Local\Programs\MiKTeX 2.9\tex/latex/allrunes\ara.fd
> Now handling font encoding LRA ...
> ... no UTF-8 mapping file for font encoding LRA
> )
> (C:\Users\Steven\AppData\Local\Programs\MiKTeX 2.9\tex/latex/allrunes\arn.fd
> Now handling font encoding LRN ...
> ... no UTF-8 mapping file for font encoding LRN
> LaTeX Info: Composite with undeclared \. in encoding LRN on input line 74.
> LaTeX Info: Composite with undeclared \" in encoding LRN on input line 78.
> )
> (C:\Users\Steven\AppData\Local\Programs\MiKTeX 2.9\tex/latex/allrunes\art.fd
> Now handling font encoding LRT ...
> ... no UTF-8 mapping file for font encoding LRT
> )
> (C:\Users\Steven\AppData\Local\Programs\MiKTeX 2.9\tex/latex/allrunes\arl.fd
> Now handling font encoding LRL ...
> ... no UTF-8 mapping file for font encoding LRL
> )
> (C:\Users\Steven\AppData\Local\Programs\MiKTeX 2.9\tex/latex/allrunes\arm.fd
> Now handling font encoding LRM ...
> ... no UTF-8 mapping file for font encoding LRM
> LaTeX Info: Composite with undeclared \. in encoding LRM on input line 122.
> LaTeX Info: Composite with undeclared \' in encoding LRM on input line 123.
> LaTeX Info: Composite with undeclared \^ in encoding LRM on input line 125.
> LaTeX Info: Composite with undeclared \~ in encoding LRM on input line 127.
> LaTeX Info: Composite with undeclared \= in encoding LRM on input line 128.
> LaTeX Info: Composite with undeclared \" in encoding LRM on input line 132.
> ))
105a159,170
> LaTeX Font Info:    Checking defaults for LRC/fruc/m/n on input line 8.
> LaTeX Font Info:    ... okay on input line 8.
> LaTeX Font Info:    Checking defaults for LRA/frua/m/n on input line 8.
> LaTeX Font Info:    ... okay on input line 8.
> LaTeX Font Info:    Checking defaults for LRN/frun/m/n on input line 8.
> LaTeX Font Info:    ... okay on input line 8.
> LaTeX Font Info:    Checking defaults for LRT/frut/m/n on input line 8.
> LaTeX Font Info:    ... okay on input line 8.
> LaTeX Font Info:    Checking defaults for LRL/frul/m/n on input line 8.
> LaTeX Font Info:    ... okay on input line 8.
> LaTeX Font Info:    Checking defaults for LRM/frum/m/n on input line 8.
> LaTeX Font Info:    ... okay on input line 8.
171,175c236,240
<  1759 strings out of 478927
<  27379 string characters out of 2850131
<  325145 words of memory out of 3000000
<  19647 multiletter control sequences out of 15000+600000
<  404334 words of font info for 30 fonts, out of 8000000 for 9000
---
>  3348 strings out of 478927
>  60277 string characters out of 2850131
>  331147 words of memory out of 3000000
>  21205 multiletter control sequences out of 15000+600000
>  404337 words of font info for 30 fonts, out of 8000000 for 9000
177c242
<  72i,5n,80p,228b,107s stack positions out of 5000i,500n,10000p,200000b,80000s
---
>  72i,5n,80p,228b,111s stack positions out of 5000i,500n,10000p,200000b,80000s
179,181c244,246
< ic/amsfonts/cm/cmbx12.pfb><C:/Users/Steven/AppData/Local/Programs/MiKTeX 2.9/fo
< nts/type1/public/amsfonts/cm/cmr12.pfb>
< Output written on junk.pdf (1 page, 19101 bytes).
---
> ic/amsfonts/cm/cmb10.pfb><C:/Users/Steven/AppData/Local/Programs/MiKTeX 2.9/fon
> ts/type1/public/amsfonts/cm/cmr12.pfb>
> Output written on junk.pdf (1 page, 19123 bytes).

相关内容