latex
管理画面で追加
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/languages/latex.min.js" defer> </script>
test
% !TeX encoding = utf8 \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsfonts} \usepackage{xparse} \usepackage{mathtools} \newcommand\hi[1]{Hello #1!} \ExplSyntaxOn % Convert a roman number into an arabic one \NewDocumentCommand \romantonum { m } { \int_from_roman:n { #1 } } \ExplSyntaxOff \begin{document} \section{Highlight.js} \hi{you} This is \LaTeX\ syntax highlighted by \verb|highlight.js|. You should look at section~\ref{sec:fermat} next. Did you know that MDCLXI is \romantonum{MDCLXI}? % It's 1661. \subsection{Fermat}\label{sec:fermat} I have a wonderful proof that \[ a^n + b^n \neq c^n \] for \(a, b, c, d, n \in \mathbb{Z}_+\) with \(n > 2\). Sadly, it is too large to fit in this code snippet. \end{document}
できない。。。
\begin{document}
Fortran
subroutine test_sub(k) implicit none !=============================== ! This is a test subroutine !=============================== integer, intent(in) :: k double precision, allocatable :: a(:) integer, parameter :: nmax=10 integer :: i allocate (a(nmax)) do i=1,nmax a(i) = dble(i)*5.d0 enddo print *, 'Hello world' write (*,*) a(:) end subroutine test_sub
できるんかい。
誰か解決してーーー!
subroutine test_sub(k)
import numpy