レポートをCSS組版で
個人的にはHTML+CSS組版と呼んであげたい
StylusをParcelで変換してプレビューしつつ、ある程度まとまったら書類としてのフォーマットをvivliostyle viewer見ながら調整する
code:bash
$ parcel report.html
(\d+)V → \($1 \, \mathrm{[V]}\)
3V
\\\((.*?)\\\) → <span data-type="tex" data-math-typeset="true">\($1\)</span>
\( hogehoge \) をVivliostyle Viewerで使えるようにするため
コメント内は無視(見にくいので)
css binary
td, thにwidthをつけないとおかしくなる場合が多い(Mathjaxのspanとかで.mjx-blockが邪魔してくる)
https://gyazo.com/144f27331560c79b4d7cd8844bf3240e
テーブルのwidthが足りていないとcaptionもそれに引っ張られってインライン数式が強制改行されてしまう
MathJax側でも.mjx-blockとかつけてくるものだからそれを取り外す方法ばかり考えてハマった
tableの幅を100%にするといろいろ狂うのでcaptionにのみ広めにwidthをつけることで回避
These functions only take a fragment URL which points to a location in the current document. If there’s no fragment, if the ID referenced isn’t there, or if the URL points to an outside document, the user agent must treat that as an error.