Skip to content

请问伪代码输入有第二行的怎么和第一行对齐呢? #101

Answered by note286
decadesyear asked this question in Q&A
Discussion options

You must be logged in to vote

很明显你没有认真看手册。

\documentclass{xdupgthesis}
\usepackage{algorithm}
\usepackage{algpseudocodex}
\renewcommand{\algorithmicrequire}{\textbf{输入:}}
\renewcommand{\algorithmicensure}{\textbf{输出:}}
\begin{document}
\chapter{title}
\begin{algorithm}
\caption{样例}
\begin{algorithmic}[1]
\Require 请问伪代码输入这种有第二行的怎么和第一行对齐呢?请问伪代码输入这种有第二行的怎么和第一行对齐呢?(第二行“怎么“突出去了,且和第一行对不齐)
\Ensure 谢谢!
\end{algorithmic}
\end{algorithm}
\end{document}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@decadesyear
Comment options

Comment options

You must be logged in to vote
1 reply
@decadesyear
Comment options

Answer selected by note286
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants