TeX - LaTeX Asked on July 28, 2021
MWE:
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
newfontfamilybengalifont{Kalpurush}[
Script=Bengali,
Language=Bengali,
AutoFakeBold = 0.2,
AutoFakeSlant = 0.15 ]
renewcommand{chaptermark}[1]{markboth{chaptername~thechapter , #1,}{}}
titleformat{chapter}[style]{bfseries}
{filcenterLARGEenspacebfseries{color{structurecolor}%
IfAppendix{appendixname}{chaptername~thechapter}enspace}}
{1pt}{bfseriescolor{structurecolor}LARGEfilcenter}
%End--------------------------------------------
%--------------------------------------------------
%Arabic Font in Document
%--------------------------------------------------
usepackage{arabxetex}
%setotherlanguage{arabic}
setmainfont{Amiri}
newfontfamilyarabicfont[Script=Arabic,Scale=1.1]{Amiri}
%End--------------------------------------------
%% new:
renewcommandtabularxcolumn[1]{m{#1}}
usepackage{booktabs}
usepackage[skip=0.25baselineskip,font=Large]{caption}
%==================
%==================
begin{document}
Requird custom footer for specific pages.
vfill
begin{center}
scriptsize
begin{tabular}{lllllll}
begin{tabular}{c}
tikzdraw[color=blue,fill=blue] (0,0) rectangle (0.5,0.5);
end{tabular}! ইখফা &
begin{tabular}{c}
tikzdraw[color=red,fill=red] (0,0) rectangle (0.5,0.5);
end{tabular}! ইখফা মীম সাকিন &
begin{tabular}{c}
tikzdraw[color=yellow,fill=yellow] (0,0) rectangle (0.5,0.5);
end{tabular}! ক্বলক্বলা &
begin{tabular}{c}
tikzdraw[color=cyan,fill=cyan] (0,0) rectangle (0.5,0.5);
end{tabular}! ক্বলব &
begin{tabular}{c}
tikzdraw[color=blue,fill=blue] (0,0) rectangle (0.5,0.5);
end{tabular}! ইদগাম &
begin{tabular}{c}
tikzdraw[color=green,fill=green] (0,0) rectangle (0.5,0.5);
end{tabular}! ইদগাম মীম সাকিন &
begin{tabular}{c}
tikzdraw[color=magenta,fill=magenta] (0,0) rectangle (0.5,0.5);
end{tabular}! গুন্নাহ
end{tabular}
end{center}
end{document}
This gives:
But I would like to get :
Here is the complete file.
I cannot run your code because I don't have the fonts, but you could use the fancyhdr
package and then put your coloured footer in with fancyfoot[C]{...your code...}
Like
usepackage{fancyhdr}
fancyfoot[C]{...your code...}
pagestyle{fancy}
Or if you want it only on a specific page, use thispagestyle{fancy}
NOTE: If you put the code into fancyfoot
, make sure there are no empty lines in it.
usepackage{fancyhdr}
fancyfoot[C]{scriptsize
begin{tabular}{lllllll}
begin{tabular}{c}
tikzdraw[color=blue,fill=blue] (0,0) rectangle (0.5,0.5);
end{tabular}! ইখফা &
%
begin{tabular}{c}
tikzdraw[color=red,fill=red] (0,0) rectangle (0.5,0.5);
end{tabular}! ইখফা মীম সাকিন &
%
begin{tabular}{c}
tikzdraw[color=yellow,fill=yellow] (0,0) rectangle (0.5,0.5);
end{tabular}! ক্বলক্বলা &
%
begin{tabular}{c}
tikzdraw[color=cyan,fill=cyan] (0,0) rectangle (0.5,0.5);
end{tabular}! ক্বলব &
%
begin{tabular}{c}
tikzdraw[color=blue,fill=blue] (0,0) rectangle (0.5,0.5);
end{tabular}! ইদগাম &
%
begin{tabular}{c}
tikzdraw[color=green,fill=green] (0,0) rectangle (0.5,0.5);
end{tabular}! ইদগাম মীম সাকিন &
%
begin{tabular}{c}
tikzdraw[color=magenta,fill=magenta] (0,0) rectangle (0.5,0.5);
end{tabular}! গুন্নাহ
end{tabular}}
pagestyle{fancy}
Answered by Pieter van Oostrum on July 28, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP