Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 模板中插入代码块换页时外框显示不完整,以及对Fortran语法不高亮 #124

Closed
lixiaoyaol opened this issue Apr 5, 2024 · 2 comments
Labels
question Further information is requested

Comments

@lixiaoyaol
Copy link

模板中插入代码块换页时外框显示不完整
image

对于Fortran语法不高量
源代码图片:

image

编译后图片:

image

@kidozh
Copy link
Member

kidozh commented Feb 1, 2025

无法复现这个BUG

\begin{lstlisting}[language={Fortran}, label={code:hello-world}, caption={UCP 2D}]
	! Der folgende Fortran-Code ist bei Wikipedia geklaut.
	SUBROUTINE test( Argument1, Argument2, Argument3 )
	REAL,              INTENT(IN) :: Argument1
	CHARACTER(LEN= *), INTENT(IN) :: Argument2
	INTEGER,           INTENT(IN), OPTIONAL :: Argument3
	! This makes sense
	END SUBROUTINE
\end{lstlisting}

结果是可以高亮

Image

如果无法解决的话,建议可以去cls的334行里加入fortran支持:

https://github.com/kidozh/Yet-Another-LaTeX-Template-for-NPU-Thesis/blob/7fbb173cd51194fb7306dadf2ece5b3d9d0bce9f/yanputhesis.cls#L334

@kidozh kidozh added the question Further information is requested label Feb 1, 2025
@kidozh
Copy link
Member

kidozh commented Feb 3, 2025

如果还有这个问题请重开这个issue

@kidozh kidozh closed this as completed Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants