多语言表格内容

多语言表格内容

我想引入包含多种语言内容的表格(阿拉伯语、英语、越南语和亚美尼亚语),如下图所示

这

知道如何制作吗

更新:

生成表格所用的代码

\documentclass[12pt,journal,compsoc]{IEEEtran}
\usepackage{arabtex}
\usepackage{utf8}{inputenc}
\usepackage[english,vietnam]{babel}
\setcode{utf8}
\usepackage{float}
\usepackage[pdftex]{graphicx}
\usepackage{multirow}
\usepackage{array}
\usepackage{rotating}


\begin{document}



% Table generated by Excel2LaTeX from sheet 'Sheet1'
\begin{table}[htbp]
  \centering
  \caption{Add caption}
    \begin{tabular}{|c|c|c|c|c|c|}
    \hline
    Bigraph& Arabic & Vietnamese & Armenian & English & English\\
           & CCA   & HC    & HC    & Brown& LOB \\
    \hline
    1     & \<ال>    & là    & ու    & th    & th \\
    \hline
    2     & \<لم>   &  ên   & ան    & he    & he \\
    \hline
    3     & \<ية>   & th    & եր    & in    & in \\
    \hline
    4     & \<لا>    & ch    & ար    & er    & er \\
    \hline
    \end{tabular}%
  \label{tab:addlabel}%
\end{table}%


\end{document}

答案1

我尝试排版时不用ArabTeX,我用过fontspec包和代码2000字体。很难说这是否是您需要的,如果您必须使用pdflatex,有一些亚美尼亚语和越南语字体。我用它处理了它xelatex

下一个选项是使用此表在单独的 PDF 文件中准备表格xelatex,然后裁剪它并将其包含到由处理的主 TeX 文件中pdflatex

%! xelatex mal-multilt.tex
% Code2000 font: http://web.archive.org/web/20101122142710/http://code2000.net/code2000_page.htm
\documentclass[12pt,journal,compsoc]{IEEEtran}
% for LuaLaTeX: http://tex.stackexchange.com/questions/21065/typesetting-arabic-with-lualatex
%\usepackage{luatextra}
%\usepackage{bidi}
%\usepackage{xltxtra}
\pagestyle{empty}
\usepackage{fontspec}
\begin{document}
Text before (Latin Modern).
\begin{table}[htbp]
  \centering
  \caption{Add caption}
  \setmainfont{Code2000}
  \def\arabic#1{{\setmainfont[Script=Arabic, Language=Arabic]{Amiri}#1}}
    \begin{tabular}{|c|c|c|c|c|c|}
    \hline
    Bigraph& Arabic & Vietnamese & Armenian & English & English\\ & CCA   & HC    & HC    & Brown& LOB \\
    \hline
    1     & \arabic{ال}    & là    & ու    & th    & th \\
    \hline
    2     & \arabic{لم}   &  ên   & ան    & he    & he \\
    \hline
    3     & \arabic{ية}   & th    & եր    & in    & in \\
    \hline
    4     & \arabic{لا}   & ch    & ար    & er    & er \\
    \hline
    \end{tabular}%
  \label{tab:addlabel}%
\end{table}%
Text after (LM).
\end{document}

姆韦

相关内容