我尝试编译以下代码,但我的 Latex 文档显示错误。
\documentclass[a4paper]{article}
\usepackage[greek]{babel}
\usepackage[iso-8859-7]{inputenc}
\usepackage{ amssymb, amscd,mathrsfs,amsmath,amsthm}
\usepackage{graphicx}
\usepackage{pdfpages}
\usepackage{enumerate}
\usepackage{wrapfig}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{type1cm}
\usepackage{eso-pic}
\usepackage{color}
\usepackage{setspace}
\usepackage{hyperref}
\usepackage{lastpage}
\usepackage[lastpage,user]{zref}
\usepackage{fancyhdr}
\usepackage{subfig}
\usepackage{mnsymbol}
\usepackage{tikz,tkz-tab,amsmath}
\usepackage[framemethod=tikz]{mdframed}
\usepackage[table]{xcolor}
\usetikzlibrary{arrows}
\pagenumbering{arabic}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\DeclareGraphicsExtensions{.pdf}
\DeclareMathSizes{10}{12}{10}{10}
\setlength{\arrayrulewidth}{1mm}
\setlength{\tabcolsep}{18pt}
\renewcommand{\arraystretch}{2.5}
\begin{document}
{\rowcolors{3}{green!80!yellow!50}{green!70!yellow!40}
\begin{tabular}{ |p{3cm}|p{2cm}|p{2cm}| }
\hline
\multicolumn{2}{|c|}{Πίνακας Ολοκληρωμάτων} \\
\hline
Aπλές Συναρτήσεις& Σύνθεση \\
\hline
$\int\limits\ 0\mathrm{d}x=c$ & AF \\
$\int\limits\ 1\mathrm{d}x=x$ & AX \\
$\int\limits \frac{1}{x}\mathrm{d}x=\ln|x|$ &AL \\
$\int\limits x^a \mathrm{d}x=\frac{x^{a+1}}{a+1}$ &DZ \\
$\int\limits \frac{1}{x^2}=-\frac{1}{x} \mathrm{d}x$ & AS \\
$\int\limits \frac{1}{2\sqrt{x}}\mathrm{d}x=\sqrt{x}$ & AD \\
$\int\limits \sigma\upsilon\nu x\mathrm{d}x=\eta\mu x$ & AO \\
$\int\limits \eta\mu x\mathrm{d}x=-\sigma\upsilon\nu x$ &AL \\
$\int\limits\frac{1}{\sigma\upsilon\nu^2 x} \mathrm{d}x=\epsilon\varphi x$ &DZ \\
$\int\limits \frac{1}{\eta\mu^2 x}\mathrm{d}x-\sigma\varphi x$ & AS \\
$\int\limits e^x\mathrm{d}x=e^x$ & AD \\
$\int\limits a^x\mathrm{d}x=\frac{a^x}{\ln a}$ & AO \\
\hline
\end{tabular}
}
\end{document}
答案1
pdfpages 包加载包eso-pic
,而包又加载xcolor
不带任何选项的包。解决方案是移动到\usepackage[table]{xcolor}
前面\usepackage{pdfpages}
并修复大写,\usepackage{MnSymbol}
如 egreg 所述。
\documentclass[a4paper]{article}
\usepackage[greek]{babel}
\usepackage[iso-8859-7]{inputenc}
\usepackage{ amssymb, amscd,mathrsfs,amsmath,amsthm}
\usepackage{graphicx}
\usepackage[table]{xcolor}
\usepackage{pdfpages}
\usepackage{enumerate}
\usepackage{wrapfig}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{type1cm}
\usepackage{eso-pic}
\usepackage{color}
\usepackage{setspace}
\usepackage{hyperref}
\usepackage{lastpage}
\usepackage[lastpage,user]{zref}
\usepackage{fancyhdr}
\usepackage{subfig}
\usepackage{MnSymbol}
\usepackage{tikz,tkz-tab,amsmath}
\usepackage[framemethod=tikz]{mdframed}
%\usepackage{xcolor}
\usetikzlibrary{arrows}
\pagenumbering{arabic}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\DeclareGraphicsExtensions{.pdf}
\DeclareMathSizes{10}{12}{10}{10}
\setlength{\arrayrulewidth}{1mm}
\setlength{\tabcolsep}{18pt}
\renewcommand{\arraystretch}{2.5}
\begin{document}
{\rowcolors{3}{green!80!yellow!50}{green!70!yellow!40}
\begin{tabular}{ |p{3cm}|p{2cm}|p{2cm}| }
\hline
\multicolumn{2}{|c|}{Πίνακας Ολοκληρωμάτων} \\
\hline
Aπλές Συναρτήσεις& Σύνθεση \\
\hline
$\int\limits\ 0\mathrm{d}x=c$ & AF \\
$\int\limits\ 1\mathrm{d}x=x$ & AX \\
$\int\limits \frac{1}{x}\mathrm{d}x=\ln|x|$ &AL \\
$\int\limits x^a \mathrm{d}x=\frac{x^{a+1}}{a+1}$ &DZ \\
$\int\limits \frac{1}{x^2}=-\frac{1}{x} \mathrm{d}x$ & AS \\
$\int\limits \frac{1}{2\sqrt{x}}\mathrm{d}x=\sqrt{x}$ & AD \\
$\int\limits \sigma\upsilon\nu x\mathrm{d}x=\eta\mu x$ & AO \\
$\int\limits \eta\mu x\mathrm{d}x=-\sigma\upsilon\nu x$ &AL \\
$\int\limits\frac{1}{\sigma\upsilon\nu^2 x} \mathrm{d}x=\epsilon\varphi x$ &DZ \\
$\int\limits \frac{1}{\eta\mu^2 x}\mathrm{d}x-\sigma\varphi x$ & AS \\
$\int\limits e^x\mathrm{d}x=e^x$ & AD \\
$\int\limits a^x\mathrm{d}x=\frac{a^x}{\ln a}$ & AO \\
\hline
\end{tabular}
}
\end{document}