![분자와 분모에 분수가 있는 방정식 조판에 대한 도움말](https://rvso.com/image/309852/%EB%B6%84%EC%9E%90%EC%99%80%20%EB%B6%84%EB%AA%A8%EC%97%90%20%EB%B6%84%EC%88%98%EA%B0%80%20%EC%9E%88%EB%8A%94%20%EB%B0%A9%EC%A0%95%EC%8B%9D%20%EC%A1%B0%ED%8C%90%EC%97%90%20%EB%8C%80%ED%95%9C%20%EB%8F%84%EC%9B%80%EB%A7%90.png)
다음 방정식이 있습니다.
\documentclass{report}
\begin{document}
\begin{equation}
T_e=\frac{T_{disch}\cdot e^{\frac{T_{ahe}-T_{disch}}{LMTD}}-T_{ahe}}{e^{\frac{T_{ahe}-T_{disch}}{LMTD}}-1}
\end{equation}
\end{document}
제 생각엔 분자와 분모의 높은 분수 때문에 정말 안 좋아 보이는 것 같아요. 이와 같은 방정식은 어떻게 코딩해야 합니까?
이탤릭체/로마자체 텍스트의 규칙은 어떻습니까? s는 로마자로 쓰면 안되나요 T
?
답변1
분수를 설정할 때 거듭제곱을 버리고 \exp
.
\documentclass{report}
\def\LMTD{\mathrm{LMTD}}
\def\disch{\mathrm{disch}}
\def\ahe{\mathrm{ahe}}
\begin{document}
\begin{equation}
T_e=\frac{T_{\disch}\cdot \exp\big(\frac{T_{\ahe}-T_{\disch}}{\LMTD}\big)-T_{\ahe}}%
{\exp\big(\frac{T_{\ahe}-T_{\disch}}{\LMTD}\big)-1}
\end{equation}
\end{document}
당신이 그것을 원했다면 \displaystyle
...
\documentclass{report}
\def\LMTD{\mathrm{LMTD}}
\def\disch{\mathrm{disch}}
\def\ahe{\mathrm{ahe}}
\def\mydfrac{\displaystyle\frac}
\begin{document}
\begin{equation}
T_e=\frac{T_{\disch}\cdot \exp\bigg(\mydfrac{T_{\ahe}-T_{\disch}}{\LMTD}\bigg)-T_{\ahe}}%
{\exp\bigg(\mydfrac{T_{\ahe}-T_{\disch}}{\LMTD}\bigg)-1}
\end{equation}
\end{document}
답변2
귀하의 게시물에서 귀하가 무엇을 갖고 싶은지 명확하지 않습니다. T는 왜 똑바로 서 있어야 하는가? 특별한 의미가 있나요? 일반적으로 텍스트를 다음과 같이 입력해야 합니다( \text{}
).
새 명령에 자주 사용되는 용어를 래핑해야 합니다. 이처럼 첫 번째 결정이 마음에 들지 않으면 나중에 변경할 수 있습니다. 예를 들어 LMTD가 약어인 줄 알고 텍스트로 설정했습니다. 그렇지 않은 경우 또는 일부 커닝 등을 변경하려는 경우 내 명령에서 이를 조정할 수 있습니다 \LMTD
.
공식이 보기에 좋지 않거나 읽기 어렵다고 생각되면 다시 작성해야 합니다. 나는 MWE의 두 번째 부분에서 이에 대한 제안을 했습니다.
% arara: pdflatex
\documentclass{report}
\usepackage{mathtools}
\newcommand*{\e}{\mathrm{e}} % supposing, this is the number e
\newcommand*{\di}{\text{disch}} % if you use these often. supposing these three are words or acronyms
\newcommand*{\ah}{\text{ahe}}
\newcommand*{\LMTD}{\mathrm{LMTD}}
\begin{document}
\begin{equation}
T_\e=\frac{T_{\di}\cdot \e^{\frac{T_{\ah}-T_{\di}}{\LMTD}}-T_{\ah}}{\e^{\frac{T_{\ah}-T_{\di}}{\LMTD}}-1}
\end{equation}
\begin{align}
T_\e&=\frac{T_{\di}\cdot \e^{Z}-T_{\ah}}{\e^{Z}-1}
\shortintertext{where}
Z&=\frac{T_{\ah}-T_{\di}}{\LMTD}
\end{align}
\end{document}
답변3
귀하의 질문에 "정말 안 좋아 보인다"는 것은 매우 개인적인 문제이기 때문에 답변하기가 어렵습니다.
하지만 혹시 모르시거나 시도해보지 않으셨다면 nicefrac
패키지를 추천해드릴 수도 있습니다.
\documentclass{report}
\usepackage{nicefrac}
\begin{document}
\begin{equation}
T_e=\frac{T_{disch}\cdot exp(\nicefrac{(T_{ahe}-T_{disch})}{LMTD})-T_{ahe}}{exp(\nicefrac{(T_{ahe}-T_{disch})}{LMTD})-1}
\end{equation}
\end{document}