termcal 的 lwarp 转 html 问题

termcal 的 lwarp 转 html 问题

出于无障碍原因,我尝试将 LaTeX 文档转换为 HTML。不幸的是,我找不到可以正确创建无障碍文档(用于图像和表格)的软件包,因此我被告知将其转换为 HTML,这样它就可以无障碍了。我尝试了各种技术,这些技术记录在堆栈交换并发现lwarp对我的 PDF 输出的显示具有最佳转换。但是,lwarp使用包时似乎存在问题termcal。在我编译并运行代码后lwarpmk html,我最终得到了一个错误! Misplaced alignment tab character &. <inserted text> ...ut \scshape \centering Tuesday& \struct \scshape \centering...。我尝试进入代码termcal并根据lwarp文档附上出错的代码行\StartDefiningTabulars,但\EndDefiningTabulars没有成功。它确实创建了一个 HTML 文档,但日历丢失了。任何帮助都将不胜感激。

我正在使用带有 pdfLaTeX 的名为 Texpad 的程序在 MacBook Pro 2019 上运行代码。

下面是我从 Brian Hall 的示例教学大纲中得到的 MWE,我已将其更改为使用 termcal:

% This syllabus template was created by:
% Brian R. Hall
% Associate Professor, Champlain College
% www.brianrhall.net

% Document settings
\documentclass[11pt]{article}
\usepackage{lwarp}
\usepackage[margin=1in]{geometry}
\usepackage[pdftex]{graphicx}
\usepackage{multirow}
\usepackage{setspace}
\usepackage[pdftex,                                     % For accessibility requirements
            pdftitle={CSCI 133 SPRING 2020},
            pdflang={en-GB}]{hyperref}
\usepackage{termcal} % Works with the calendar display
\pagestyle{plain}
\setlength\parindent{0pt}

\begin{document}

% Course information
\begin{tabular}{ l l }
  \multirow{3}{*}{%InsertImage
                 } 
  & \LARGE Course Code \\\\
  \mrowcell & \LARGE Course Title \\\\
  \mrowcell & \LARGE Day(s), Time, Place \\\\
\end{tabular}
\vspace{10mm}

\newpage

% Course Outline
\newcommand{\TRClass}{%
\skipday % Monday (no class)
\calday[Tuesday]{\classday} % Tuesday
\skipday % Wednesday (no class)
\calday[Thursday]{\classday} % Thursday
\skipday % Friday 
\skipday\skipday % weekend (no class)
}

\newcommand{\Holiday}[2]{%
\options{#1}{\noclassday}
\caltext{#1}{#2}
}


\textbf {\large Tentative Course Outline}:

The weekly coverage might change as it depends on the progress of the class.  However, you must keep up with the reading assignments.

\begin{center}
\begin{calendar}{01/27/2020}{17} % Semester starts on 01/27/2020 and last for 17
                    % weeks, including finals week
\setlength{\calboxdepth}{.3in}
\TRClass
% schedule
\caltexton{1}{Intro to course and data structures}
\caltextnext{C++ review}
\caltextnext{C++ review, cont.}

% ... and so on

% Holidays
\Holiday{2/14/2020}{Lincoln's Birthday Holiday}
\Holiday{2/17/2020}{Presidents' Day Holiday}
\Holiday{4/6/2020}{Spring Break}
\Holiday{4/7/2020}{Spring Break}
\Holiday{4/8/2020}{Spring Break}
\Holiday{4/9/2020}{Spring Break}
\Holiday{4/10/2020}{Spring Break}

% ... and so on

%\options{12/11/2017}{\noclassday} % finals week
%\options{12/12/2017}{\noclassday} % finals week
%\options{12/13/2017}{\noclassday} % finals week
%\options{12/14/2017}{\noclassday} % finals week
%\options{12/15/2017}{\noclassday} % finals week



%\caltext{5/15/2017}{\textbf{Final Exam: 8:00am - 10:30am}}
\end{calendar}
\end{center}

\end{document}

相关内容