[問題] overleaf跨檔案cross referencing

看板LaTeX (論文排版)作者 (重新出發)時間6年前 (2019/01/02 13:59), 編輯推噓1(100)
留言1則, 1人參與, 6年前最新討論串1/1
我在overleaf上有兩個檔案(A, B)要cross referencing 目前的方式是兩個檔案都掛這個 \usepackage{xr} \makeatletter \newcommand*{\addFileDependency}[1]{\typeout{(#1)} \@addtofilelist{#1}% \IfFileExists{#1}{}{\typeout{No file #1.}} \makeatother \newcommand*{\myexternaldocument}[1]{% \externaldocument{#1}% \addFileDependency{#1.tex}% \addFileDependency{#1.aux}%} 在A檔案中放 \myexternaldocument{B} 在B檔案中放 \myexternaldocument{A} 最後生latexmkrc檔。基本上參照這篇的作法: https://www.overleaf.com/learn/how-to/Cross_referencing_with_the_xr_package_in_Overleaf 奇怪的是,equation等都可以\ref,但section number卻無法, 有強者大大知道怎麼修改嗎 @@ 謝 -- 切記 任何事情都不能抹殺我們對唱歌的熱情 因為這是我們活著的原因 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.113.114.32 ※ 文章網址: https://www.ptt.cc/bbs/LaTeX/M.1546408779.A.833.html

01/02 16:34, 6年前 , 1F
稍微看了下,他latexmkrc是使用pdflatex,會不會影響?
01/02 16:34, 1F
文章代碼(AID): #1SB5DBWp (LaTeX)
文章代碼(AID): #1SB5DBWp (LaTeX)