我有腳本,其中包含一行或其他語言的腳本。我如何讓LaTeX列表檢測到這一點,並在腳本中更改格式化語法的語法?這對於我認爲的bash中的awk特別有用。 猛砸 #!/bin/bash
echo "hello world"
R --vanilla << EOF
# Data on motor octane ratings for various gasoline blends
x <- c
我一直在尋找Philip Bunge的帖子how to create a "Tango" style with LaTeX listings,並嘗試使其適應默認文本樣式爲白色和背景黑色(這是用於幻燈片,不是文章!)。這就是我說什麼: \definecolor{Black}{gray}{0.0}
\definecolor{White}{gray}{0.9}
...
\lstset{