梅威瑟:
\documentclass[12pt, titlestyle=hang,twoside]{elegantbook}
\setcounter{tocdepth}{3}% to show subsubsections and paragraphs in TOC?
\setcounter{secnumdepth}{3}% to show subsubsections and paragraphs in TOC?
\usepackage{attachfile}% to embedd audio file
\usepackage{graphicx}
\usepackage{rotating,multirow}
\usepackage{tabularx} % <---
\usepackage{longtable}
%--------------------------------------------------
%Bengali Font in Document
%--------------------------------------------------
\tracinglostchars=2
% For a bilingual document
\RequirePackage{fontspec}
\RequirePackage{polyglossia}
\defaultfontfeatures{Ligatures=TeX, Scale=MatchUppercase}
% Times New Roman used for English
%\setmainfont{Times New Roman}
%\setmainfont{Times New Roman}[NFSSFamily=ntxtlf]
\setmainlanguage{bengali}
\setotherlanguage{english}
% Bengali
\newfontfamily\bengalifont{Kalpurush}[
Script=Bengali,
Language=Bengali,
AutoFakeBold = 0.2,
AutoFakeSlant = 0.15 ]
\renewcommand{\chaptermark}[1]{\markboth{\chaptername~\thechapter \, #1\,}{}}
\titleformat{\chapter}[\style]{\bfseries}
{\filcenter\LARGE\enspace\bfseries{\color{structurecolor}%
\IfAppendix{\appendixname}{\chaptername~\thechapter}\enspace}}
{1pt}{\bfseries\color{structurecolor}\LARGE\filcenter}
%End--------------------------------------------
%--------------------------------------------------
%Arabic Font in Document
%--------------------------------------------------
\usepackage{arabxetex}
%\setotherlanguage{arabic}
\setmainfont{Amiri}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.1]{Amiri}
%End--------------------------------------------
%% new:
\renewcommand\tabularxcolumn[1]{m{#1}}
\usepackage{booktabs}
\usepackage[skip=0.25\baselineskip,font=Large]{caption}
%==================
%==================
\begin{document}
Requird custom footer for specific pages.
\vfill
\begin{center}
\scriptsize
\begin{tabular}{lllllll}
\begin{tabular}{c}
\tikz\draw[color=blue,fill=blue] (0,0) rectangle (0.5,0.5);
\end{tabular}\! ইখফা &
\begin{tabular}{c}
\tikz\draw[color=red,fill=red] (0,0) rectangle (0.5,0.5);
\end{tabular}\! ইখফা মীম সাকিন &
\begin{tabular}{c}
\tikz\draw[color=yellow,fill=yellow] (0,0) rectangle (0.5,0.5);
\end{tabular}\! ক্বলক্বলা &
\begin{tabular}{c}
\tikz\draw[color=cyan,fill=cyan] (0,0) rectangle (0.5,0.5);
\end{tabular}\! ক্বলব &
\begin{tabular}{c}
\tikz\draw[color=blue,fill=blue] (0,0) rectangle (0.5,0.5);
\end{tabular}\! ইদগাম &
\begin{tabular}{c}
\tikz\draw[color=green,fill=green] (0,0) rectangle (0.5,0.5);
\end{tabular}\! ইদগাম মীম সাকিন &
\begin{tabular}{c}
\tikz\draw[color=magenta,fill=magenta] (0,0) rectangle (0.5,0.5);
\end{tabular}\! গুন্নাহ
\end{tabular}
\end{center}
\end{document}
得出:
但我想得到:
这里是完整的文件。
答案1
我无法运行你的代码,因为我没有字体,但你可以使用该fancyhdr
包,然后将你的彩色页脚放入\fancyfoot[C]{...your code...}
喜欢
\usepackage{fancyhdr}
\fancyfoot[C]{...your code...}
\pagestyle{fancy}
或者如果你只希望在特定页面上使用它,使用\thispagestyle{fancy}
笔记:如果将代码放入\fancyfoot
,请确保其中没有空行。
\usepackage{fancyhdr}
\fancyfoot[C]{\scriptsize
\begin{tabular}{lllllll}
\begin{tabular}{c}
\tikz\draw[color=blue,fill=blue] (0,0) rectangle (0.5,0.5);
\end{tabular}\! ইখফা &
%
\begin{tabular}{c}
\tikz\draw[color=red,fill=red] (0,0) rectangle (0.5,0.5);
\end{tabular}\! ইখফা মীম সাকিন &
%
\begin{tabular}{c}
\tikz\draw[color=yellow,fill=yellow] (0,0) rectangle (0.5,0.5);
\end{tabular}\! ক্বলক্বলা &
%
\begin{tabular}{c}
\tikz\draw[color=cyan,fill=cyan] (0,0) rectangle (0.5,0.5);
\end{tabular}\! ক্বলব &
%
\begin{tabular}{c}
\tikz\draw[color=blue,fill=blue] (0,0) rectangle (0.5,0.5);
\end{tabular}\! ইদগাম &
%
\begin{tabular}{c}
\tikz\draw[color=green,fill=green] (0,0) rectangle (0.5,0.5);
\end{tabular}\! ইদগাম মীম সাকিন &
%
\begin{tabular}{c}
\tikz\draw[color=magenta,fill=magenta] (0,0) rectangle (0.5,0.5);
\end{tabular}\! গুন্নাহ
\end{tabular}}
\pagestyle{fancy}