数式が長すぎて左揃えにする必要がある場合、スペースを取りすぎず、改行を強制せずにLaTeXで数式を書く

数式が長すぎて左揃えにする必要がある場合、スペースを取りすぎず、改行を強制せずにLaTeXで数式を書く

私は LaTeX の論文に次の方程式を書いています。問題は、これらの方程式が論文のスペースをあまりにも多く占めていることです。スペース制限があるため、これは問題です。また、強制的に改行していますが、これはあまり便利ではありません。改行が自動的に行われるようにしたいです。また、すべての方程式を左揃えにしたいと思います。

    \documentclass[sigconf]{acmart}

\usepackage{booktabs} % For formal tables
\usepackage{algorithmic}
\usepackage{fixltx2e}
\usepackage{algorithm}
\usepackage{enumitem}
\usepackage{multirow}
\usepackage{hhline}
\usepackage{amsmath}
\usepackage{lmodern}
\usepackage[T1]{fontenc}

\newcommand\vn[1]{\mathit{#1}} % or: \mathrm{#1}
\newcommand\Or{\mathrel{\big\Vert}}
% Copyright
%\setcopyright{none}
\setcopyright{acmcopyright}
%\setcopyright{acmlicensed}
%\setcopyright{rightsretained}
%\setcopyright{usgov}
%\setcopyright{usgovmixed}
%\setcopyright{cagov}
%\setcopyright{cagovmixed}

% DOI
\acmDOI{xx.xxx/xxx_x}

% ISBN
\acmISBN{978-1-4503-8104-8/21/03}

%Conference
\acmConference[SAC'21]{ACM SAC Conference}{March 22-March 26, 2021}{Gwangju, South Korea}
\acmYear{2021}
\copyrightyear{2021}

%\thispagestyle{plain} 

\acmArticle{4}
\acmPrice{15.00}


\pagestyle{plain}
\settopmatter{printfolios=true}
\begin{document}

\title{test}

\author{Anonymous Author(s)}





\begin{abstract}
abstract

\end{abstract}

%
% The code below should be generated by the tool at
% http://dl.acm.org/ccs.cfm
% Please copy and paste the code instead of the example below. 
%
\begin{CCSXML}
<ccs2012>
 <concept>
  <concept_id>10010520.10010553.10010562</concept_id>
  <concept_desc>Computer systems organization~Embedded systems</concept_desc>
  <concept_significance>500</concept_significance>
 </concept>
 <concept>
  <concept_id>10010520.10010575.10010755</concept_id>
  <concept_desc>Computer systems organization~Redundancy</concept_desc>
  <concept_significance>300</concept_significance>
 </concept>
 <concept>
  <concept_id>10010520.10010553.10010554</concept_id>
  <concept_desc>Computer systems organization~Robotics</concept_desc>
  <concept_significance>100</concept_significance>
 </concept>
 <concept>
  <concept_id>10003033.10003083.10003095</concept_id>
  <concept_desc>Networks~Network reliability</concept_desc>
  <concept_significance>100</concept_significance>
 </concept>
</ccs2012>  
\end{CCSXML}

\ccsdesc[500]{Computer systems organization~Embedded systems}
\ccsdesc[300]{Computer systems organization~Redundancy}
\ccsdesc{Computer systems organization~Robotics}
\ccsdesc[100]{Networks~Network reliability}


\keywords{ACM proceedings, \LaTeX, text tagging}


\maketitle

\begin{gather*}
\vn{NoCallersU} + \vn{NoCalleesU}=\vn{None}^{\vn{Callers}} 
  \And \vn{None}^{\vn{Callees}} \\[1ex]
\begin{aligned}
\vn{LowCombination}
&=\bigl(\vn{Low}^{\vn{Callers}} \And (\vn{Low}^{\vn{Callees}} 
  \Or \vn{None}^{\vn{Callees}})\bigr) \\
&\qquad \Or\bigl( \vn{None}^{\vn{Callers}} \And \vn{Low}^{\vn{Callees}} \bigr) \\[1ex]
\vn{MediumCombination}
&=\bigl(\vn{Medium}^{\vn{Callers}}\And(\vn{Medium}^{\vn{Callees}} \Or \\ 
&\qquad \vn{Low}^{\vn{Callees}}  \Or \vn{None}^{\vn{Callees}}) \bigr) \Or \\
&\qquad \bigl(( \vn{None}^{\vn{Callers}} \Or \vn{Low}^{\vn{Callers}} ) 
 \And \vn{Medium}^{\vn{Callees}}\bigr)\\[1ex]
 \vn{HighCombination}
&=\bigl(\vn{High}^{\vn{Callers}}\And(\vn{High}^{\vn{Callees}} \Or\vn{Medium}^{\vn{Callees}} \Or \\ 
&\qquad \vn{Low}^{\vn{Callees}}  \Or \vn{None}^{\vn{Callees}}) \bigr) \Or \\
&\qquad \bigl(\vn{High}^{\vn{Callers}}\And(\vn{Medium}^{\vn{Callees}} \Or \\ 
&\qquad \vn{Low}^{\vn{Callees}}  \Or \vn{None}^{\vn{Callees}}) \bigr)\\[1ex]
\end{aligned}
\end{gather*}



\end{document}

以下は、紙に書き込んだときの方程式のスクリーンショットです。 ここに画像の説明を入力してください

答え1

数式を狭い列内に収める方法の 1 つは、(a) の直後に新しい改行を挿入し、\vn{HighCombination}( b) 後続の行の位置合わせポイントをさらに左に配置することです。\vn{HighCombination}\vn{HighCombination}

ちなみに私はないドキュメントクラスのオプションlmodernとしてパッケージをロードすると、代替の数式およびテキストフォントが指定されます。これはおそらくロードによって上書きされるべきではありません。そして私は間違いなくsigconfacmartlmodernないfixltx2e私の TeX ディストリビューションが少なくとも 5 年以上前のものでない限り (ありがたいことに、そうではありません)、パッケージをロードします。

ここに画像の説明を入力してください

\documentclass[sigconf]{acmart}

\usepackage{booktabs} % For formal tables
\usepackage{algorithmic}
%%\usepackage{fixltx2e}
\usepackage{algorithm}
\usepackage{enumitem}
\usepackage{multirow}
\usepackage{hhline}
\usepackage{amsmath}
%\usepackage{lmodern}
\usepackage[T1]{fontenc}

\newcommand\vn[1]{\mathit{#1}} % or: \mathrm{#1}
\newcommand\Or{\mathrel{\big\Vert}}


% Copyright
%\setcopyright{none}
\setcopyright{acmcopyright}
%\setcopyright{acmlicensed}
%\setcopyright{rightsretained}
%\setcopyright{usgov}
%\setcopyright{usgovmixed}
%\setcopyright{cagov}
%\setcopyright{cagovmixed}

% DOI
\acmDOI{xx.xxx/xxx_x}

% ISBN
\acmISBN{978-1-4503-8104-8/21/03}

%Conference
\acmConference[SAC'21]{ACM SAC Conference}{March 22--March 26, 2021}{Gwangju, South Korea}
\acmYear{2021}
\copyrightyear{2021}

%\thispagestyle{plain} 

\acmArticle{4}
\acmPrice{15.00}


\pagestyle{plain}
\settopmatter{printfolios=true}

\begin{document}
\title{test}
\author{Anonymous Author(s)}

\begin{abstract}
abstract   
\end{abstract}

%
% The code below should be generated by the tool at
% http://dl.acm.org/ccs.cfm
% Please copy and paste the code instead of the example below. 
%
\begin{CCSXML}
<ccs2012>
 <concept>
  <concept_id>10010520.10010553.10010562</concept_id>
  <concept_desc>Computer systems organization~Embedded systems</concept_desc>
  <concept_significance>500</concept_significance>
 </concept>
 <concept>
  <concept_id>10010520.10010575.10010755</concept_id>
  <concept_desc>Computer systems organization~Redundancy</concept_desc>
  <concept_significance>300</concept_significance>
 </concept>
 <concept>
  <concept_id>10010520.10010553.10010554</concept_id>
  <concept_desc>Computer systems organization~Robotics</concept_desc>
  <concept_significance>100</concept_significance>
 </concept>
 <concept>
  <concept_id>10003033.10003083.10003095</concept_id>
  <concept_desc>Networks~Network reliability</concept_desc>
  <concept_significance>100</concept_significance>
 </concept>
</ccs2012>  
\end{CCSXML}

\ccsdesc[500]{Computer systems organization~Embedded systems}
\ccsdesc[300]{Computer systems organization~Redundancy}
\ccsdesc{Computer systems organization~Robotics}
\ccsdesc[100]{Networks~Network reliability}


\keywords{ACM proceedings, \LaTeX, text tagging}


\maketitle

% \allowdisplaybreaks  % optional, to allow page breaks
\begin{gather*}
\vn{NoCallersU} + \vn{NoCalleesU}
=\vn{None}^{\vn{Callers}} 
  \And \vn{None}^{\vn{Callees}} \\[1ex]
\begin{aligned}
\vn{Low}&\vn{Combination} \\
&=\bigl(\vn{Low}^{\vn{Callers}} \And (\vn{Low}^{\vn{Callees}} 
  \Or \vn{None}^{\vn{Callees}})\bigr) \\
&\quad \Or\bigl( \vn{None}^{\vn{Callers}} \And \vn{Low}^{\vn{Callees}} \bigr) \\[1ex]
\vn{Medium}&\vn{Combination}\\
&=\bigl(\vn{Medium}^{\vn{Callers}}\And(\vn{Medium}^{\vn{Callees}} \\ 
&\quad \Or \vn{Low}^{\vn{Callees}}  \Or \vn{None}^{\vn{Callees}}) \bigr) \\
&\quad \Or \bigl(( \vn{None}^{\vn{Callers}} \Or \vn{Low}^{\vn{Callers}} ) 
 \And \vn{Medium}^{\vn{Callees}}\bigr)\\[1ex]
\vn{High}&\vn{Combination}\\
&=\bigl(\vn{High}^{\vn{Callers}}\And(\vn{High}^{\vn{Callees}} \Or\vn{Medium}^{\vn{Callees}} \\ 
&\quad \Or \vn{Low}^{\vn{Callees}}  \Or \vn{None}^{\vn{Callees}}) \bigr) \\
&\quad\Or \bigl(\vn{High}^{\vn{Callers}}\And(\vn{Medium}^{\vn{Callees}} \\ 
&\quad \Or \vn{Low}^{\vn{Callees}}  \Or \vn{None}^{\vn{Callees}}) \bigr)
\end{aligned}
\end{gather*}

\end{document}

関連情報