ZKX's LAB

在 LaTeX 中排版算法(伪代码),如何正确缩进? latex伪代码不位置控制

2020-12-04知识9

在 LaTeX 中排版算法(伪代码),如何正确缩进? 我的代码:for$i\\leftarrow 0$to$m\\ C[i,0]\\leftarrow 0$\\\\for$j\\leftarrow 0$to$n\\ C[0,j]\\leftar…

在 LaTeX 中排版算法(伪代码),如何正确缩进? latex伪代码不位置控制

latex 伪代码 排版求助 \\documentclass[11pt,a4paper,uplatex]{jsarticle}\\usepackage{listings}\\usepackage{algorithm}\\usepackage{algorithmic}\\usepackage{color}\\renewcommand{\\algorithmicrequire}{\\textbf{Input:}}Use Input in the format of Algorithm\\renewcommand{\\algorithmicensure}{\\textbf{Output:}}Use Output in the format of Algorithm\\begin{document}\\renewcommand{\\lstlistingname}{SourceList}\\lstset{%language=Pascal,%numbers=left,%行号。none,left,rightnumberstyle={\\tiny \\emph},numbersep=10pt,breaklines=true,breakindent=40pt,frame=tlRB,frameround=ffft,framesep=3pt,rulesep=1pt,rulecolor={\\color{blue}},rulesepcolor={\\color{blue}},flexiblecolumns=true,keepspaces=false,basicstyle=\\scriptsize,identifierstyle=\\itshape\\scriptsize,commentstyle=\\fontfamily{ptm}\\selectfont\\scriptsize,stringstyle=\\scshape\\scriptsize,tabsize=4,caption=mdmdmdmdmdmdmdmddd}\\begin{lstlisting}for i:=maxint to 0 dobegin{ do nothing }end;Write('Case insensitive ');WritE('Pascal keywords.');\\end{lstlisting}\\begin{。

在 LaTeX 中排版算法(伪代码),如何正确缩进? latex伪代码不位置控制

【工具】LaTex如何写伪代码do-while?

在 LaTeX 中排版算法(伪代码),如何正确缩进? latex伪代码不位置控制

谁知道latex中可以不通过用宏包来编辑伪代码 已经明确告诉你不能加宏包,就将你的伪代码用文本的方式展示嘛

latex写伪代码遇到下面图中的问题怎么解决?大于号两边空间太大,||符号只能靠边,

qrcode
访问手机版