在 Overleaf 的 lstlisting 环境中右对齐

Right-align in the lstlisting environment in Overleaf

提问人:Lorenzo 提问时间:11/7/2023 更新时间:11/7/2023 访问量:13

问:

早上好

我无法正确对齐以下代码:

\begin{lstlisting}[ language=R,
  keywordstyle=\normalfont,
  commentstyle=\normalfont\itshape, 
  columns=fullflexible, 
  breaklines=true, breakindent=0em]

Data generation
Description
A tool to generate the dependent variable, with fixed covariates. The dependent variable could be generate for more... 

\end{lstlisting}

我已经尝试了各种选项,但目前,我只能实现左对齐。

齐 overleaf lstlisting

评论


答: 暂无答案