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

GitHub Actions の環境で、LaTeX記法の日本語表示できるようにする #10

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mitsuharu
Copy link
Collaborator

@mitsuharu mitsuharu commented Feb 24, 2025

fix #9

背景

  • LaTeX記法を利用すると、MathJax でレンダリングされる。
  • ただし、GitHub Actions でビルドすると、その記法内の日本語が表示されない
  • 日本語フォントはテーマで指定しているが、MathJax に反映されない
    • おそらく MathJax がフォント設定を上書きしている

修正

  • MathJax の関連する箇所に font-family を適用しようとしたが、できなかった
    • もし対応方法が分かれば対応したい
  • GitHub Actions で電子版は yarn でビルドしたが、make に変更した
    • make は vivliostyle が用意した docker 環境なので、日本語フォントはある
    • 当初は GitHub Actions の Ubuntu に日本語フォントをインストールしたが、make で済みことを思い出した
before after
スクリーンショット 2025-02-24 10 11 01 スクリーンショット 2025-02-24 10 11 09

その他

  • 大技林テンプレートにも反映させる

Copy link

📄 PDF が作成されました
ダウンロード

@mitsuharu mitsuharu self-assigned this Feb 24, 2025
Copy link

📄 PDF が作成されました
ダウンロード

@mitsuharu mitsuharu marked this pull request as ready for review February 24, 2025 01:23
@mitsuharu mitsuharu requested a review from a team February 24, 2025 01:23
Copy link

📄 PDF が作成されました
ダウンロード

@mitsuharu mitsuharu changed the title GitHub Actions の環境に日本語フォントをインストールして、LaTeX記法でも日本語表示できるようにする GitHub Actions の環境で、LaTeX記法の日本語表示できるようにする Feb 25, 2025
Comment on lines +28 to +30
$$
{\rm CPU}使用率 = \frac{ユーザー時間 + システム時間}{経過時間}
$$
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

サンプルで LaTeX 記法を確認するために追加した

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant