Schreiben Sie schöne, gut formatierte Formeln in Latex

Schreiben Sie schöne, gut formatierte Formeln in Latex

Ich möchte 4 Gleichungen in einem schönen, professionellen Stil in mein Papier schreiben, ohne zu viel Platz zu beanspruchen. Hier ist ein Screenshot davon, wie meine Gleichungen derzeit aussehen, und unten finden Sie den Code für die 4 Gleichungen. Wie kann ich diese Gleichungen schöner machen? Außerdem erhalte ich viele Latex-Fehler für das, was ich geschrieben habe.

Bildbeschreibung hier eingeben

\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


None^{Callers} \Or None^{Callees}$=$0\\
Low^{Callers} \Or Low^{Callees}$=$1\\
1$<${Medium^{Callers} \Or Medium^{Callees}}$<=$5\\
5$<${High^{Callers} \Or High^{Callees}}






\end{document}

Antwort1

Bitte beachten Sie, dass „in MMWEfür „minimal“ steht.

Passt das Folgende zu Ihnen?

\documentclass[a4paper,12pt]{article}
\usepackage{mathtools}

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


\newcommand{\Callers}{\mathrm{Callers}}
\newcommand{\Callees}{\mathrm{Callees}}
\newcommand{\None}{\mathrm{None}}
\newcommand{\Low}{\mathrm{Low}}
\newcommand{\Medium}{\mathrm{Medium}}
\newcommand{\High}{\mathrm{High}}
\begin{document}
\begin{align*}
\None^{\Callers} &\Or \None^{\Callees}=0\\
\Low^{\Callers} &\Or \Low^{\Callees}=1\\
1< \Medium^{\Callers} &\Or \Medium^{\Callees} \leq 5\\
5 < \High^{\Callers}  &\Or \High^{\Callees}
\end{align*}
\end{document} 

Bildbeschreibung hier eingeben

Antwort2

Ich würde eine einzelne Umgebung verwenden gather*.

Bildbeschreibung hier eingeben

\documentclass{article}
\usepackage{amsmath}
\newcommand\Or{\mathbin{\Vert}}
\newcommand\vn[1]{\mathit{#1}}
\begin{document}
\begin{gather*}
\vn{None}^{\vn{Callers}} \Or \vn{None}^{\vn{Callees}}=0\\
\vn{Low}^{\vn{Callers}} \Or \vn{Low}^{\vn{Callees}}=1\\
1<{\vn{Medium}^{\vn{Callers}} \Or \vn{Medium}^{Callees}}\le5\\
5<{\vn{High}^{\vn{Callers}} \Or \vn{High}^{Callees}}
\end{gather*}
\end{document}

verwandte Informationen