[XeTeX] bidi-problem
Johann Spies
johann.spies at alterit.co.za
Fri Nov 18 10:49:08 CET 2016
I am working on a document in which I keep notes of my readings. It is a
long standing document on which I have been working for the past 20
years.
Some recent update caused this problem:
Location on CTAN: /macros/xetex/latex/bidi
*
* Issue tracker: https://github.com/vafa/bidi/issues
*
* Support: persian-tex at tug.org
****************************************************
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/share/texlive/texmf-dist/tex/xelatex/bidi/biditools.sty)
(/usr/share/texlive/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def
! LaTeX Error: Command \XeTeX 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.
I have removed all the includes and some other stuff to be able to show
the file to you.
When I remove the useage of the bidi package, the compilation ends with:
--------------------------------
(/usr/share/texmf/tex/latex/tipa/t3cmr.fd)
! Missing number, treated as zero.
<to be read again>
\protect
l.104 \begin{document}
-------------------------
Last time (a few weeks ago) it compiled the more than 500 pages without
a problem.
I need the bidi package because the document include some Hebrew texts
also.
What is going on here?
Is there a new problem with /usr/share/texmf/tex/latex/tipa/t3cmr.fd
also?
The file:
\documentclass[12pt,a4paper]{book}
\usepackage{fontspec} % Gebruik met xelatex
\usepackage{xltxtra,graphicx} % Gebruik met xelatex
\usepackage[hyperindex=true,colorlinks=true,bookmarks]{hyperref}
\usepackage{version}
\usepackage{amsmath}
\usepackage{paralist}
\usepackage{wrapfig}
\usepackage{caption}
\setmainfont[Ligatures=TeX]{Linux Libertine O}
\usepackage[afrikaans,polutonikogreek,german,dutch,english]{babel}
\usepackage{setspace}
\usepackage{enumitem}
\usepackage{graphicx}
\usepackage{pst-node}
\usepackage{booktabs}
\usepackage{natbib}
\usepackage{imakeidx}
\usepackage{tikz}
\usepackage{float}
\usepackage[framemethod=tikz]{mdframed}
\mdfdefinestyle{myFigureBoxStyle}{backgroundcolor=yellow!10,, roundcorner=25pt,tikzsetting={draw=blue, line width=1pt}}%
\makeatletter
\newcommand\fs at myRoundBox{\def\@fs at cfont{\bfseries}\let\@fs at capt\floatc at plain
\def\@fs at pre{\begin{mdframed}[style=myFigureBoxStyle]}%
\def\@fs at mid{\vspace{\abovecaptionskip}}%
\def\@fs at post{\end{mdframed}}\let\@fs at iftopcapt\iffalse}
\makeatother
\floatstyle{myRoundBox}
\restylefloat{figure}
\makeindex[intoc] %
\bibpunct[:]{(}{)}{;}{a}{}{,}
\usepackage{multicol}
\usepackage{longtable,tabularx}
\usepackage{hevea}
\renewcommand{\contentsname}{Inhoudsopgawe}
\renewcommand{\indexname}{Indeks}
\newcommand{\se}{\selectlanguage{english}}
\newcommand{\sg}{\selectlanguage{greek}}
\newcommand{\sa}{\selectlanguage{afrikaans}}
\newcommand{\sd}{\selectlanguage{german}}
\newcommand{\sh}{\selectlanguage{dutch}}
\newcommand{\eng}{\selectlanguage{english}}
\newcommand{\grieks}{\selectlanguage{greek}}
\newcommand{\afr}{\selectlanguage{afrikaans}}
\newcommand{\duits}{\selectlanguage{german}}
\newcommand{\ned}{\selectlanguage{dutch}}
\newcommand{\en}{\selectlanguage{english}}
\newcommand{\gr}{\selectlanguage{greek}}
\newcommand{\af}{\selectlanguage{afrikaans}}
\newcommand{\de}{\selectlanguage{german}}
\newcommand{\nl}{\selectlanguage{dutch}}
\setlength{\parindent}{0pt} %Maak dat die paragrawe links begin
\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex} %bepaal oop lyn tussen
%paragrawe
\setlength{\parfillskip}{30pt plus 1 fil}
\setlength{\columnsep}{1cm}
\setlength{\columnseprule}{.4pt}
\setlength{\headheight}{14pt}
\title{Aanhalings en verwysings} % Declares the document's title.
\author{J.H. Spies}% Declares the author's name.
\date{} % Deleting this command produces today's date.
\selectlanguage{afrikaans}
\listfiles % lys al die lêers wat gebruik word in die .log-ler.
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\lfoot{\tiny \jobname}
\lhead{}
\rhead{}
\renewcommand{\headrulewidth} {0pt}
\makeatletter
\renewcommand{\theenumii}{\arabic{enumii}}
\renewcommand{\labelenumii}{\theenumi.\theenumii.}
\renewcommand{\theenumiii}{\arabic{enumiii}}
\renewcommand{\labelenumiii}{\theenumi.\theenumii.\theenumiii.}
\renewcommand{\theenumiv}{\arabic{enumiv}}
\renewcommand{\labelenumiv}{\theenumi.\theenumii.\theenumiii.\theenumiv.}
\renewcommand{\p at enumii}{\theenumi.} %Companion bladsy 56,57
\renewcommand{\p at enumiii}{\theenumi.\theenumii.}
\renewcommand{\p at enumiv}{\theenumi.\theenumii.\theenumiii.}
\makeatother
\usepackage{ifpdf}
\ifpdf
\DeclareGraphicsExtensions{.png,.pdf,.jpeg,.jpg,.mps}
\else
\DeclareGraphicsExtensions{.eps,.ps}
\fi
%\usepackage{bidi}
\newcommand{\lk}[3]{\hspace{0.#1\linewidth}\parbox{0.#2\linewidth}{\raggedright
#3}}
\renewcommand{\blue}[1]{\textcolor{blue}{#1}}
\newcommand{\grn}[1]{\textcolor{green}{#1}}
\newcommand{\oranje}[1]{\textcolor{orange}{#1}}
\newcommand{\brwn}[1]{\textcolor{brown}{#1}}
\newcommand{\rd}[1]{\textcolor{red}{#1}}
\newcommand{\purp}[1]{\textcolor{purple}{#1}}
\newcommand{\yel}[1]{\textcolor{yellow}{#1}}
\renewcommand{\mag}[1]{\textcolor{magenta}{#1}}
\begin{document}
\af
\maketitle
\thispagestyle{fancyplain}
\tableofcontents
\lfoot{\tiny \jobname}
\chapter{Algemene wyshede}
``Alleen 'n teologie wat uit die openbaring\index{openbaring} vertrek,
kan bevrydend wees. Elke vorm van subjektivisme\index{subjektivisme}
voer terug na 'n vorm van bedompigheid, omdat dit die mens werp op
homself en sy eie ervaring, in plaas daarvan dat dit hom op Christus
werp'' \cite[167,168]{jonker_gees_1981}.
\renewcommand{\labelenumi}{\theenumi.}
\selectlanguage{afrikaans}
\newpage
\end{document}
%%% Local Variables:
%%% coding: utf-8
%%% mode: latex
%%% TeX-engine: xelatex
%%% TeX-master: t
%%% End:
Regards
Johann
--
J.H. Spies - Tel. 021-982 2694 / 082 782 0336 / 021-808 4699(w)
Posbus 4668, Tygervallei 7536
"For by grace are ye saved through faith; and that not
of yourselves: it is the gift of God: Not of works,
lest any man should boast." Ephesians 2:8,9
More information about the XeTeX
mailing list