奇数页和偶数页上的文字不同

奇数页和偶数页上的文字不同

我在偶数页和奇数页方面遇到了问题。也就是说,我希望在左页和右页上使用不同的语言。找到这个答案后:同步双语页面上的文本我尝试过做类似的事情,但最终还是失败了。我得到了想要在一个 tex 文件的奇数页和另一个 tex 文件的偶数页上执行的上下文。也就是说,问题是文件 PICILeft.tex 现在位于前几页,而 PICIRight.tex 位于之后。与奇数/偶数页不平行。

这是主要的 tex 文件,有人能找出我做错了什么吗?谢谢。

% !TEX program = LuaLaTeX+se
\documentclass[11pt,twoside]{book}

\pagestyle{empty}
\usepackage[inner=0.65in, outer=0.35in, top=0.7in, bottom=0.6in, a4paper, head=12pt, headheight=30pt, headsep=5pt]{geometry}
\usepackage{fontspec}
\usepackage[autocompile]{gregoriotex}
\usepackage[series={},nocritical,noend,nofamiliar,noledgroup,noreledmac]{eledmac}
\usepackage{eledpar,metalogo,hyperref}

\usepackage{ebgaramond}
\usepackage{pgothic}
\usepackage{color}

\usepackage{longtable}
\usepackage{titlesec}

\usepackage{fancyhdr}
 \pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markboth{#1}{}}
 \fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[CE]{\leftmark}
\fancyhead[CO]{\rightmark}
 \fancypagestyle{plain}{
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}

%DELI, POGLAVJA, ETC, ETC
\titleformat{\part}{\color{red}\normalfont\huge\bfseries\filcenter}{\color{red}}{1em}{}
\titleformat{\chapter}{\color{red}\normalfont\huge\bfseries\filcenter}{\color{red}}{1em}{}
\titleformat{\section}{\color{red}\normalfont\huge\bfseries\filcenter}{\color{red}}{1em}{}
\titleformat{\subsection}{\color{red}\normalfont\Large\bfseries\center}{\color{red}}{1em}{}
\titleformat{\subsubsection}{\color{red}\normalfont\large\bfseries\center}{\color{red}}{1em}{}

\newcommand{\black}[1]{\textcolor{black}{#1}}
\newcommand{\cent}[1]{\begin{center}{#1}\end{center}}
\newcommand{\code}[1]{}
\newcommand*{\red}[1]{\textcolor{red}{#1}}
\newcommand*{\redit}[1]{\textcolor{red}{\it #1}}

\newcommand{\ginit}[3]{%
 \greannotation{\small \red{\textbf{#1}}}%
 \greannotation{\small \red{\textbf{#2}}}%
 \grecommentary{{\small \red{\emph{#3}}}}%
}

% INICIALKE
\input Acorn.fd
\newcommand*\initfamily{\usefont{U}{Acorn}{xl}{n}}

\newcommand{\ginitnorm}{\renewcommand*\initfamily{\normalfont}}
\newcommand{\ginitgoth}{\renewcommand*\initfamily{\pgothfamily}}
\newcommand{\ginitsquare}{\renewcommand*\initfamily{\usefont{U}{Acorn}{xl}{n}}}

\grechangestyle{initial}{\initfamily\fontsize{36}{36}\selectfont\textcolor{red}\relax}
\newcommand{\redinit}{\grechangestyle{initial}{\initfamily\fontsize{36}{36}\selectfont\textcolor{red}\relax}}
\newcommand{\blackinit}{\grechangestyle{initial}{\initfamily\fontsize{36}{36}\selectfont\relax}}

\grechangestaffsize{19}

\title{\sc Hymnarium}
\author{}
\begin{document}
\maketitle
\begin{pages}
\begin{Leftside}
\include{PICILeft}
\end{Leftside}
\begin{Rightside}
\include{PICIRight}
\end{Rightside}
\end{pages}
\end{document}

答案1

  1. 我没有您所包含的文件的内容,所以我无法告诉您它是否正常。
  2. 您必须使用\input而不是\include(作为\include添加新页面)。
  3. \beginnumbering…\endnumbering您必须在每一侧使用结构,并\pstart…\pend分隔文本块
  4. 您应该使用 reledmac/reledpar,而不是 eledmac/eledpar,因为它们已被弃用。

这是用于并行排版的 MWEhttp://mirrors.ctan.org/macros/latex/contrib/reledmac/examples/3-reledpar_mwe.tex

相关内容