我怎样才能将这些方程式写成两列

我怎样才能将这些方程式写成两列

由于答案存在,我改变并编辑了我的代码到它的设置部分,所以我可以请你帮助我,如何编辑我的代码才能正确使用你的代码,最重要的是,我更喜欢 Bernard 的第一个解决方案,但我无法使用它

\documentclass[11pt,a4paper,twoside,openright]{report}

\usepackage{setspace}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{tabu}
\usepackage{subfigure}
\usepackage{afterpage}
\usepackage{amsmath,amssymb}            
\usepackage{rotating}  
\usepackage{fancyhdr}  
\usepackage[scriptsize]{caption} 
\hyphenation{a-gen-tiz-za-zio-ne}
\usepackage{float}
\usepackage[parfill]{parskip}
\usepackage{multicol}



\graphicspath{ {images/} }

\usepackage[a4paper,lmargin=2cm,rmargin=2cm]{geometry}

\newcommand*{\diff}{\mathop{}\!\mathrm{d}}

\newcommand*{\var}[1]{\texttt{#1}}

\usepackage[USenglish]{babel}
\usepackage[latin1]{inputenc}
\renewcommand{\captionfont}{\normalfont \sffamily \itshape \small}

\pagestyle{empty}



\begin{document}

    {\footnotesize
\begin{flalign*}
A11 & = \dfrac{ \dfrac{∑ SF_{11_{i}}}{\mathrm{Ext}}}{ϵ_{11}} = \frac{\num{66114.06667654557}}{\num{0.0005242901}} = \SI{126102075.631} {\N\m}
 & D11 & = \dfrac{ \dfrac{∑ SM_{1_{i}}}{\mathrm{Ext}}}{κ_{11}} = \frac{0.106}{0.0002} = \SI{373.068}{\N\m} \\
A12 & = \dfrac{ \dfrac{∑ SF_{12_{i}}}{\mathrm{Ext}}}{ϵ_{12}} = \frac{\num{6295.129}}{\num{0.00011}} = \SI{56957543.627}{\N\m}
 & D12 & = \dfrac{ \dfrac{∑ SM_{2_{i}}}{\mathrm{Ext}}}{κ_{11}} = \frac{0.355}{\num{0.0002}} = \SI{1250.853}{\N\m} \\
 A22 & = \dfrac{ \dfrac{∑ SF_{22_{i}}}{\mathrm{Ext}}}{ϵ_{11}} = \frac{\num{36114775.225}}{0.336} = \SI{107378189.106}{\N\m}
 & D22 & = \dfrac{ \dfrac{∑ SM_{2_{i}}}{\mathrm{Ext}}}{κ_{22}} = \frac{0.733}{0.304} = \SI{2.404}{\N\m} \\
A66 & = \dfrac{ \dfrac{∑ SF_{33_{i}}}{\mathrm{Ext}}}{ϵ_{12}} = \frac{\num{7836440.625}}{0.279} = \SI{28004682.576}{\N\m}
 & D66 & = \dfrac{ \dfrac{∑ SM_{3_{i}}}{\mathrm{Ext}}}{κ_{12}} = \frac{0.389}{0.571} = \SI{1.22}{\N\m}
\end{flalign*}}

\end{document}

答案1

align*这是一个在环境内使用单一环境的解决方案multicols

正如其他答案所建议的那样,我建议使用\SI宏(siunitx包的宏)来排版数字及其相关的科学单位。顺便说一句,如果“SF”、“SM”和“Ext”是变量名,则应以文本斜体而不是数学斜体呈现它们。这可以通过将术语括在\textit宏中来实现。

在此处输入图片描述

\documentclass{article}
\usepackage{amsmath}  % for 'align*' environment
  \allowdisplaybreaks
\usepackage{multicol} % for 'multicols' environment
\usepackage[letterpaper,margin=1in]{geometry} % choose page margins here
\usepackage[group-digits=false]{siunitx} % for '\SI' macro
\begin{document}

\begin{multicols}{2}%
\begin{align*}
A11= \dfrac{ \dfrac{\sum \textit{SF}_{11_{i}}}{\textit{Ext}}}{\epsilon_{11}} 
&= \frac{66114.06667654557}{0.0005242901} \\
&= \SI{126102075.631}{\newton\meter}
\\[2ex]
A12= \dfrac{ \dfrac{\sum \textit{SF}_{12_{i}}}{\textit{Ext}}}{\epsilon_{12}} 
&= \frac{6295.129}{0.00011} \\
&= \SI{56957543.627}{\newton\meter}
\\[2ex]
A22= \dfrac{ \dfrac{\sum \textit{SF}_{22_{i}}}{\textit{Ext}}}{\epsilon_{11}} 
&= \frac{36114775.225}{0.336} \\
&= \SI{107378189.106}{\newton\meter}
\\[2ex]
A66= \dfrac{ \dfrac{\sum \textit{SF}_{33_{i}}}{\textit{Ext}}}{\epsilon_{12}} 
&= \frac{7836440.625}{0.279} \\
&= \SI{28004682.576}{\newton\meter}
\\ {}\\ % extra space at start of second column
D11= \dfrac{ \dfrac{\sum \textit{SM}_{1_{i}}}{\textit{Ext}}}{\kappa_{11}} 
&= \frac{0.106}{0.0002} \\
&= \SI{373.068}{\newton\meter}
\\[2ex] 
D12= \dfrac{ \dfrac{\sum \textit{SM}_{2_{i}}}{\textit{Ext}}}{\kappa_{11}} 
&= \frac{0.355}{0.0002} \\
&= \SI{1250.853}{\newton\meter}
\\[2ex]
D22= \dfrac{ \dfrac{\sum \textit{SM}_{2_{i}}}{\textit{Ext}}}{\kappa_{22}} 
&= \frac{0.733}{0.304} \\
&= \SI{2.404}{\newton\meter}
\\[2ex]
D66= \dfrac{ \dfrac{\sum \textit{SM}_{3_{i}}}{\textit{Ext}}}{\kappa_{12}} 
&= \frac{0.389}{0.571} \\
&= \SI{1.22}{\newton\meter}
\end{align*}
\end{multicols}

\end{document}

附录:如果您选择使用 LuaLaTeX 而不是 pdfLaTeX,您可以设置一个小宏来为您计算比例——无需“手动”计算。(事实证明,您在示例代码中提供的相当多的数字结果都需要更正。)

在此处输入图片描述

% !TEX TS-program = lualatex
\documentclass{article}
\usepackage{amsmath}  % for 'align*' environment
  \allowdisplaybreaks
\usepackage{multicol} % for 'multicols' environment
\usepackage[letterpaper,margin=1in]{geometry} % choose page margins here
\usepackage[group-digits=false]{siunitx} % for '\SI' macro

\usepackage{luacode}  % for 'luacode' environment
%% Lua-side code
\begin{luacode}  
function formatted_division ( n, d )
    tex.sprint( string.format( "%.3f", n/d ) ) 
end 
\end{luacode}

%% TeX-side code: macro '\mycalc' takes two arguments
\newcommand\mycalc[2]{\directlua{ 
    formatted_division(#1,#2) } }

\begin{document}
\begin{multicols}{2}
\begin{align*} 
A11= \dfrac{ \dfrac{\sum \textrm{SF}_{11_{i}}}{\textrm{Ext}}}{\epsilon_{11}} 
&= \frac{66114.06667654557}{0.0005242901} \\
&= \SI{\mycalc{66114.06667654557}{0.0005242901}}{\newton\meter}
\\[2ex]
A12= \dfrac{ \dfrac{\sum \textrm{SF}_{12_{i}}}{\textrm{Ext}}}{\epsilon_{12}} 
&= \frac{6295.129}{0.00011} \\
&= \SI{\mycalc{6295.129}{0.00011}}{\newton\meter}
\\[2ex]
A22= \dfrac{ \dfrac{\sum \textrm{SF}_{22_{i}}}{\textrm{Ext}}}{\epsilon_{11}} 
&= \frac{36114775.225}{0.336} \\
&= \SI{\mycalc{36114775.225}{0.336}}{\newton\meter}
\\[2ex]
A66= \dfrac{ \dfrac{\sum \textrm{SF}_{33_{i}}}{\textrm{Ext}}}{\epsilon_{12}} 
&= \frac{7836440.625}{0.279} \\
&= \SI{\mycalc{7836440.625}{0.279}}{\newton\meter}
\\ {}\\ % extra space at start of second column
D11= \dfrac{ \dfrac{\sum \textrm{SM}_{1_{i}}}{\textrm{Ext}}}{\kappa_{11}} 
&= \frac{0.106}{0.0002} \\
&= \SI{\mycalc{0.106}{0.0002}}{\newton\meter}
\\[2ex] 
D12= \dfrac{ \dfrac{\sum \textrm{SM}_{2_{i}}}{\textrm{Ext}}}{\kappa_{11}} 
&= \frac{0.355}{0.0002} \\
&= \SI{\mycalc{0.355}{0.0002}}{\newton\meter}
\\[2ex]
D22= \dfrac{ \dfrac{\sum \textrm{SM}_{2_{i}}}{\textrm{Ext}}}{\kappa_{22}} 
&= \frac{0.733}{0.304} \\
&= \SI{\mycalc{0.733}{0.304}}{\newton\meter}
\\[2ex]
D66= \dfrac{ \dfrac{\sum \textrm{SM}_{3_{i}}}{\textrm{Ext}}}{\kappa_{12}} 
&= \frac{0.389}{0.571} \\
&= \SI{\mycalc{0.389}{0.571}}{\newton\meter}
\end{align*}
\end{multicols}

\end{document}

答案2

您的方程式太长,一行都写不完。因此我重新格式化了它们。另外,要排版单位,您最好使用siunitx包。

\documentclass{article}
\usepackage{amsmath}
\usepackage{siunitx}
\begin{document}
  \begin{align}
  \begin{aligned}
     A_{11} &= \dfrac{ \dfrac{\sum SF_{11_{i}}}{Ext}}{\epsilon_{11}}\\
            &= \frac{66114.06667654557}{0.0005242901}\\
            &= \SI{126102075.631}{Nm}
  \end{aligned} &\quad &
  \begin{aligned}
     D_{11}&= \dfrac{ \dfrac{\sum SM_{1_{i}}}{Ext}}{\kappa_{11}} \\
           &= \frac{0.106}{0.0002} \\
           &= \SI{373.068}{Nm}
  \end{aligned}\\[2ex]
%
  \begin{aligned}
    A_{12}&= \dfrac{ \dfrac{\sum SF_{12_{i}}}{Ext}}{\epsilon_{12}}\\
          &= \frac{6295.129}{0.00011} \\
          &= \SI{56957543.627}{Nm}
  \end{aligned} &\quad &
  \begin{aligned}
    D_{12}&= \dfrac{ \dfrac{\sum SM_{2_{i}}}{Ext}}{\kappa_{11}} \\
          &= \frac{0.355}{0.0002} \\
          &= \SI{1250.853}{Nm}
  \end{aligned}\\[2ex]
%
  \begin{aligned}
    A_{22}&= \dfrac{ \dfrac{\sum SF_{22_{i}}}{Ext}}{\epsilon_{11}} \\
          &= \frac{36114775.225}{0.336} \\
          &= \SI{107378189.106}{Nm}
  \end{aligned}&\quad &
  \begin{aligned}
    D_{22}&= \dfrac{ \dfrac{\sum SM_{2_{i}}}{Ext}}{\kappa_{22}} \\
          &= \frac{0.733}{0.304} \\
          &= \SI{2.404}{Nm}
  \end{aligned}\\[2ex]
%
  \begin{aligned}
     A_{66}&= \dfrac{ \dfrac{\sum SF_{33_{i}}}{Ext}}{\epsilon_{12}} \\
           &= \frac{7836440.625}{0.279} \\
           &= \SI{28004682.576}{Nm}
  \end{aligned}&\quad &
  \begin{aligned}
    D_{66}&= \dfrac{ \dfrac{\sum SM_{3_{i}}}{Ext}}{\kappa_{12}} \\
          &= \frac{0.389}{0.571} \\
          &= \SI{1.22}{Nm}
  \end{aligned}
\end{align}

\end{document}

在此处输入图片描述

答案3

喜欢其中的一个吗?

\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[showframe, nomarginpar]{geometry}
\usepackage{mathtools, nccmath}
\usepackage{siunitx}


\begin{document}

{\footnotesize
\begin{flalign*}
A11 & = \dfrac{ \dfrac{\sum SF_{11_{i}}}{\mathrm{Ext}}}{\epsilon_{11}} = \frac{\num{66114.06667654557}}{\num{0.0005242901}} = \SI{126102075.631} {\N\m}
 & D11 & = \dfrac{ \dfrac{\sum SM_{1_{i}}}{\mathrm{Ext}}}{\kappa_{11}} = \frac{0.106}{0.0002} = \SI{373.068}{\N\m} \\[1ex]
A12 & = \dfrac{ \dfrac{\sum SF_{12_{i}}}{\mathrm{Ext}}}{\epsilon_{12}} = \frac{\num{6295.129}}{\num{0.00011}} = \SI{56957543.627}{\N\m}
 & D12 & = \dfrac{ \dfrac{\sum SM_{2_{i}}}{\mathrm{Ext}}}{\kappa_{11}} = \frac{0.355}{\num{0.0002}} = \SI{1250.853}{\N\m} \\[1ex]
 A22 & = \dfrac{ \dfrac{\sum SF_{22_{i}}}{\mathrm{Ext}}}{\epsilon_{11}} = \frac{\num{36114775.225}}{0.336} = \SI{107378189.106}{\N\m}
 & D22 & = \dfrac{ \dfrac{\sum SM_{2_{i}}}{\mathrm{Ext}}}{\kappa_{22}} = \frac{0.733}{0.304} = \SI{2.404}{\N\m} \\[1ex]
A66 & = \dfrac{ \dfrac{\sum SF_{33_{i}}}{\mathrm{Ext}}}{\epsilon_{12}} = \frac{\num{7836440.625}}{0.279} = \SI{28004682.576}{\N\m}
 & D66 & = \dfrac{ \dfrac{\sum SM_{3_{i}}}{\mathrm{Ext}}}{\kappa_{12}} = \frac{0.389}{0.571} = \SI{1.22}{\N\m}
\end{flalign*}}

\begin{align*}
A11 & \!\begin{aligned}[t] & = \dfrac{ \mfrac{\sum SF_{11_{i}}}{\mathrm{Ext}}}{\epsilon_{11}} = \mfrac{\num{66114.06667654557}}{\num{0.0005242901}}\\ & = \SI{126102075.631} {\N\m}\end{aligned}
 & D11 &\!\begin{aligned}[t] & = \dfrac{ \mfrac{\sum SM_{1_{i}}}{\mathrm{Ext}}}{\kappa_{11}} = \mfrac{0.106}{0.0002}\\& = \SI{373.068}{\N\m}\end{aligned} \\[1.5ex]
%
A12 & \!\begin{aligned}[t]& = \dfrac{ \mfrac{\sum SF_{12_{i}}}{\mathrm{Ext}}}{\epsilon_{12}} = \mfrac{\num{6295.129}}{\num{0.00011}}\\ & = \SI{56957543.627}{\N\m}\end{aligned}
 & D12 &\!\begin{aligned}[t] & = \dfrac{ \mfrac{\sum SM_{2_{i}}}{\mathrm{Ext}}}{\kappa_{11}} = \mfrac{0.355}{\num{0.0002}}\\& = \SI{1250.853}{\N\m} \end{aligned}\\[1.5ex]
%
 A22 & \!\begin{aligned}[t] & = \dfrac{ \mfrac{\sum SF_{22_{i}}}{\mathrm{Ext}}}{\epsilon_{11}} = \mfrac{\num{36114775.225}}{0.336}\\& = \SI{107378189.106}{\N\m}\end{aligned}
 & D22 & \!\begin{aligned}[t] & = \dfrac{ \mfrac{\sum SM_{2_{i}}}{\mathrm{Ext}}}{\kappa_{22}} = \mfrac{0.733}{0.304}\\& = \SI{2.404}{\N\m}\end{aligned} \\[1.5ex]
%
A66 & \!\begin{aligned}[t] & = \dfrac{ \mfrac{\sum SF_{33_{i}}}{\mathrm{Ext}}}{\epsilon_{12}} = \mfrac{\num{7836440.625}}{0.279}\\ & = \SI{28004682.576}{\N\m}\end{aligned}
 & D66 &\!\begin{aligned}[t] & = \dfrac{ \mfrac{\sum SM_{3_{i}}}{\mathrm{Ext}}}{\kappa_{12}} = \mfrac{0.389}{0.571}\\ & = \SI{1.22}{\N\m}\end{aligned}
\end{align*}

\end{document} 

在此处输入图片描述

相关内容