这个积分该如何排版?

这个积分该如何排版?

我想排版积分

$$ \int{\dfrac{1}{\cos^2\left(5 - \dfrac{3x}{4}\right)}}\,\mathrm{d}x$$

我试过

\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
$$ \int{\dfrac{1}{\cos^2\left(5 - \dfrac{3x}{4}\right)}}\,\mathrm{d}x$$
\end{document}

我得到了

在此处输入图片描述

积分符号不够高。如何排版这个积分?

答案1

选项1

\documentclass[preview,border=12pt,varwidth]{standalone}% change it back to your own document class
\usepackage{amsmath}

\begin{document}
\abovedisplayskip=0pt\relax% remove this line in  your production
\[
\int \frac{1}{\cos^2\left(5 - \frac{3x}{4}\right)}\,\mathrm{d}x
\]
\end{document}

在此处输入图片描述

选项 2

\documentclass[preview,border=12pt,varwidth]{standalone}% change it back to your own document class
\usepackage{amsmath}

\begin{document}
\abovedisplayskip=0pt\relax% remove this line in  your production
\[
\int \frac{1}{\cos^2\left(5 - \frac{3}{4}x\right)}\,\mathrm{d}x
\]
\end{document}

在此处输入图片描述

选项 3

我认为 Enrico 教授喜欢这种风格。

\documentclass[preview,border=12pt,varwidth]{standalone}% change it back to your own document class
\usepackage{amsmath}

\begin{document}
\abovedisplayskip=0pt\relax% remove this line in  your production
\[
\int \frac{1}{\cos^2(5 - 3x/4)}\,\mathrm{d}x
\]
\end{document}

在此处输入图片描述

选项 4

以下是 Thorsten Donig 的评论。

\documentclass[preview,border=12pt,varwidth]{standalone}% change it back to your own document class
\usepackage{amsmath,xfrac}

\begin{document}
\abovedisplayskip=0pt\relax% remove this line in  your production
\[
\int \frac{1}{\cos^2 (5 - \sfrac{3x}{4})}\,\mathrm{d}x
\]
\end{document}

在此处输入图片描述

选项 ∞

根据下面 Qrrbrbirlbel 和 Egreg 的评论。

\documentclass[preview,border=12pt]{standalone}% change it back to your own document class
\usepackage{amsmath,xfrac}

\begin{document}
\abovedisplayskip=0pt\relax% remove this line in  your production
\begin{gather*}
\int \sec^2\left(5 - \tfrac{3x}{4}\right)\,\mathrm{d}x \\
\int \sec^2\left(5 - \tfrac 3 4 x\right)\,\mathrm{d}x \\
\int \sec^2(5 - 3x/4)\,\mathrm{d}x \\
\int \sec^2\left(5 - \sfrac{3x}{4}\right)\,\mathrm{d}x 
\end{gather*}
\end{document}

在此处输入图片描述

相关内容