
我正在嘗試使用 pandoc 將文件從 Latex 轉換為 rtf。除了引文的顏色之外,轉換效果很好。通常的乳膠管道會產生預期的結果:
但 .rtf 檔案沒有(沒有著色,加上我已經知道如何修復的其他差異):
這是 .tex 檔:
\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage[colorlinks=true,citecolor=red]{hyperref}
\begin{document}
\section{Introduction}
Citation \cite{test}
\bibliographystyle{apalike}
\bibliography{test.bib}
\end{document}
我使用的命令:
pandoc test.tex -f latex -s -o test.rtf --bibliography test.bib
我知道有一些選項可以將變數傳遞給命令(例如-V citecolor=red
)。我嘗試了幾種(我會說所有最簡單的)方法......我覺得我在這裡錯過了一些大東西 - 或者 pandoc 實際上無法正確管理它。
謝謝大家!
pandoc 1.19.2.1 texlive 2019
巴布亞紐幾內亞