基本 LaTeX 问题

发布于 2024-09-01 08:08:57 字数 262 浏览 2 评论 0原文

关于 LaTeX 的两个(希望很快的)问题:

  1. 如何对选择的函数进行编号?我正在使用 documentclass{article},如果这很重要的话。我想要对某些功能进行编号,例如

    <前><代码>功能1 功能2 (1) 功能3 功能4 (2)
  2. 如何制作一个符号来评估积分?我知道如何做括号,但是是否可以在积分边界的函数右侧只制作一盏直灯?我不知道该怎么做。

Two (hopefully quick) questions about LaTeX:

  1. How do you number select functions? I'm working in a documentclass{article}, if that matters. I want to have certain functions numbered such as

    function1  
    function2 (1)  
    function3  
    function4 (2)
    
  2. How do you make a sign to evaluate an integral? I know how to do brackets, but is it possible to only make one straight light to the right of the function with the bounds of integration? I can't figure out how to do that.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

沉溺在你眼里的海 2024-09-08 08:08:57

(1) 的答案。

\begin{eqnarray}
function1  \nonumber \\
function2            \\
function3  \nonumber \\
function4 
\end{eqnarray}

(2) 的答案。

$\left. \frac 12 \right|_1^2$

The answer to (1).

\begin{eqnarray}
function1  \nonumber \\
function2            \\
function3  \nonumber \\
function4 
\end{eqnarray}

The answer to (2).

$\left. \frac 12 \right|_1^2$
梦在夏天 2024-09-08 08:08:57

我按照您在 LyX 中的要求进行操作并导出到 LaTex:

\begin{document}
\L{\begin{equation}

\int_{0}^{1}x^{2}=\left.\frac{1}{3}x^{3}\right|_{0}^{1}=\frac{1}{3}\end{equation}
}

\L{\[
a=b+c\]
}

\L{\begin{equation}
1+1=2\end{equation}
}
\end{document}

编辑: 哦,虽然您没有要求 - 请查看Detexify,因为将来你肯定需要查找符号:)

I did what you asked in LyX and exported to LaTex:

\begin{document}
\L{\begin{equation}

\int_{0}^{1}x^{2}=\left.\frac{1}{3}x^{3}\right|_{0}^{1}=\frac{1}{3}\end{equation}
}

\L{\[
a=b+c\]
}

\L{\begin{equation}
1+1=2\end{equation}
}
\end{document}

Edit: Oh, and while you didn't ask - check out Detexify, since you'll definitely need to look up symbols in the future :)

梦途 2024-09-08 08:08:57

如果您希望向一段文本添加注释,使其呈现如下所示的内容:

The fox[1] jumped over the fence
...

[1] A fox is a clever mythical creature

那么您可以使用 \footnote{} 命令,如下所示:

The fox\footnote{A fox is a clever mythical creature} jumped over the fence

如果您希望对方程式进行编号因此您可以稍后在文本中引用它,使其呈现如下所示的内容:

    f(x,y)=3π    (1)

is numbered 1.

您可以将 \equation{} 环境与 \label 一起使用:

\begin{equation}
\label{f}
f(x,y)=3\pi
\end{equation}
is numbered \ref{f}.

然后 ,至于积分:

\[\int \frac{sin(x)}{cos(x)}dx\]
from 0 to 1,
\[\left.\frac{sin(x)}{cos(x)}\right|_0^1\]

If you wish to add a note to a piece of text, such that it renders something like the following:

The fox[1] jumped over the fence
...

[1] A fox is a clever mythical creature

then you can use the \footnote{} command, like so:

The fox\footnote{A fox is a clever mythical creature} jumped over the fence

If you wish to number an equation so you can refer to it later in your text, such that it renders something like the following:

    f(x,y)=3π    (1)

is numbered 1.

then you can use the \equation{} environment with a \label:

\begin{equation}
\label{f}
f(x,y)=3\pi
\end{equation}
is numbered \ref{f}.

Lastly, as for integration:

\[\int \frac{sin(x)}{cos(x)}dx\]
from 0 to 1,
\[\left.\frac{sin(x)}{cos(x)}\right|_0^1\]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文