
Estou trabalhando com o Tex Studio e usando o compilador XeLatex. Ao usar \checkmark na tabela mostra uma caixa vazia em vez do símbolo. Com base na pesquisa na Internet, usei pacotes como \pifont e \amssymb, mas sem sucesso. Se eu alterar o compilador para pdfLatex, as marcas de seleção ficarão visíveis.
Obrigado pela ajuda antecipadamente.
\documentclass{article}
\begin{document}
$\begin{table}[h!]
\begin{center}
\begin{tabular}{|p{4cm} p{1cm} p{1cm} p{1cm} p{1cm} p{1cm} p{1cm}|} \hline
Location & $u_x$ & $u_y$ & $u_z$ & $\phi_x$ & $\phi_y$ & $\phi_z$ \\ \hline\hline
Main Wall Bottom & \checkmark & \checkmark & \checkmark & \checkmark & NDoF & \checkmark\\ \hline
Pier Bottom & \checkmark & \checkmark & \checkmark & NDoF &\checkmark & \checkmark\\ \hline
Main Wall Top & \checkmark & \checkmark & - & \checkmark & NDoF & \checkmark\\ \hline
Pier Top & \checkmark & \checkmark & - & NDoF &\checkmark & \checkmark\\ \hline
Pier Vertical & \checkmark & \checkmark & - & NDoF & \checkmark &\checkmark\\ \hline
\end{tabular}
\caption{Boundary conditions "-"= Not restricted; "NDof"= Element do not have respective degree of freedom }
\label{tab:element-bc}
\end{center}
\end{table}$
\end{document}
Responder1
Se eu remover o defeito e adicionar \usepackage{amssymb} as marcas de seleção estarão lá. Compilado com
This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live `2019/W32TeX)
Código corrigido:
\documentclass{article}
\usepackage{amssymb}%
\begin{document}
\begin{table}[h!]
\begin{center}
\begin{tabular}{|p{4cm} p{1cm} p{1cm} p{1cm} p{1cm} p{1cm} p{1cm}|} \hline
Location & $u_x$ & $u_y$ & $u_z$ & $\phi_x$ & $\phi_y$ & $\phi_z$ \\ \hline\hline
Main Wall Bottom & \checkmark & \checkmark & \checkmark & \checkmark & NDoF & \checkmark\\ \hline
Pier Bottom & \checkmark & \checkmark & \checkmark & NDoF &\checkmark & \checkmark\\ \hline
Main Wall Top & \checkmark & \checkmark & - & \checkmark & NDoF & \checkmark\\ \hline
Pier Top & \checkmark & \checkmark & - & NDoF &\checkmark & \checkmark\\ \hline
Pier Vertical & \checkmark & \checkmark & - & NDoF & \checkmark &\checkmark\\ \hline
\end{tabular}
\caption{Boundary conditions "-"= Not restricted; "NDof"= Element do not have respective degree of freedom }
\label{tab:element-bc}
\end{center}
\end{table}
\end{document}