MikTeX 中的巴比伦数字

MikTeX 中的巴比伦数字

我正在尝试在 MikTeX 2.9.6361 Portable 中排版巴比伦数字。代码 babylonian.tex 可在https://divisbyzero.com/2012/08/30/ancient-number-systems-in-xetex/对我来说不起作用,并在使用 XeLaTeX 编译时导致以下错误:

! Undefined control sequence.
<argument> \LaTeX3 error: 
                       Erroneous variable \c__fontspec_shape_n_n_tl used!
l.3806 \emfontdeclare{ \emshape, \eminnershape }

?

有人能帮我吗?

梅威瑟:

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[12pt]{amsart}
\usepackage[usenames,dvipsnames]{color}
\usepackage[colorlinks=true,citecolor=red,linkcolor=blue]{hyperref}
\usepackage[all]{hypcap}



\setlength{\textwidth}{6.2in}
\setlength{\textheight}{9in}
\setlength{\topmargin}{0in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}

%%%%%Babylonian cuneiform
\usepackage{pgffor, babyloniannum}
\newcommand{\Bnum}[1]{{\LARGE \babyloniannum{#1}}}

\begin{document}
\title{Babylonian cuneiform}
\author{Dave Richeson}

\maketitle

To create \href{http://en.wikipedia.org/wiki/Babylonian_numerals}{Babylonian cuneiform numerals} you must download the babyloniannum package at 

\href{http://www.ctan.org/tex-archive/macros/xetex/latex/babyloniannum}{http://www.ctan.org/tex-archive/macros/xetex/latex/babyloniannum}

You must also download and install the Santakku font from 

\href{http://www.hethport.uni-wuerzburg.de/cuneifont}{http://www.hethport.uni-wuerzburg.de/cuneifont}

Recall that the numbers 1 through 59 are written additively using the symbols 

\begin{center}
\Bnum{1}=1 and\Bnum{10}=10.
\end{center}

For example 47 is written 

\begin{center}
\Bnum{47}
\end{center}

This package is extremely easy to use. To obtain the symbols above type

\verb#\Bnum{47}#

Larger numbers are written in base 60, and this package will do the decomposition for you. For example, 

\[1234567890=1 \cdot 60^{5}+35 \cdot 60^{4}+15 \cdot 60^{3}+35 \cdot 60^{2}+31 \cdot 60^{1}+30 \cdot 60^{0}.\]

and 

\verb#\Bnum{1234567890}#

produces 

\begin{center}
\Bnum{1234567890}
\end{center}

\end{document}

运行两次 Update MiKTeX 后,错误变为

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
! 
! The font "Santakku" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  

l.37 \Bnum{1}
             =1 and\Bnum{10}=10.
?

您可以通过安装 Miktex Portable 在计算机上重现此错误https://miktex.org/

答案1

解决方案:

我从下载了 Santakku.zip 字体http://www.hethport.uni-wuerzburg.de/cuneifont/,将其解压到 MiKTeX...\texmfs\config\fontconfig目录中,然后手动编辑...\texmfs\config\fontconfig\config\localfonts2.conf语法中的新字体目录

<dir>Your font directory here</dir>

参考:

https://www.tug.org/fonts/fontinstall.html

https://www.ctan.org/pkg/babyloniannum

http://www.hethport.uni-wuerzburg.de/cuneifont/

相关内容