LoginSignup
1
2

More than 3 years have passed since last update.

LuaTeXでbeamerとpdfxを使う

Last updated at Posted at 2019-05-16

LaTeXのbeamer.clsで生成したPDFを特に数式まで含めて検索可能にするためにpdfx.styを使おうとすると \pdfminorversion が未定義でエラーになる対策は pdfx.sty を読む前に luatex85.sty を読めばよい。以下例

\RequirePackage{luatex85}
\pdfminorversion=7
\pdfobjecompresslevel=2
\pdfcompresslevel=9
\documentclass[luatex,unicode]{beamer}
\usepackage{unicode-math}
\usepackage[match,deluxe]{luatexja-preset}
%\setmainfont{STIX2Text-Regular}[
%    Extension=.otf,
%    BoldFont=STIX2Text-Bold,
%    ItalicFont=STIX2Text-Italic,
%    BoldItalicFont=STIX2Text-BoldItalic
%]
\setmathfont{STIX2Math.otf}
\usepackage[a-2u,pdf17]{pdfx}

pdfx.sty のメンテナにメール送ったらそちらでもこの問題を再現できるそうで、beamer.clsが読み込んでいるpgfとの相性問題なんだそうです…

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2