使用org-mode将源代码导出到PDF文件时,源代码与文本的缩进不对齐。
.org文件如下:
输出结果如下:
是否可以对齐代码块的缩进或使其集中化?
非常感谢您!
添加原始组织文本
for (let index = 0; index < theStringLength; ++index) { // Only increment by 1
let val = letterArray[index]; // Read out value
if (index % 2 === 1) val = val.toUpperCase(); // Convert to upper case for odd indices
newArray += val; // Append to result
}