<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>doraTeX</author_name>
  <author_url>https://blog.hatena.ne.jp/doraTeX/</author_url>
  <blog_title>TeX Alchemist Online</blog_title>
  <blog_url>https://doratex.hatenablog.jp/</blog_url>
  <categories>
    <anon>PDF</anon>
    <anon>TeX</anon>
    <anon>Lua</anon>
  </categories>
  <description>LaTeX文書内から，外部PDFファイルのページ数を取得したい状況はよくあります。例えば，「外部PDFファイルの全ページにわたって○○を繰り返す」というような状況のとき，ループ回数を決めるにはそのページ数を取得せねばなりません。 ここでは， \newcount\PDFPageCount と定義したカウントレジスタ \PDFPageCount に，#1 で指定された外部ファイル のページ数を代入する動きをする，\CountPDFPages という命令を定義してみましょう。 LuaTeX の場合 LuaTeX の場合，デフォルトで pdfe ライブラリがグローバル変数 pdfe にロードされていま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdoratex.hatenablog.jp%2Fentry%2F20230419%2F1681834591&quot; title=&quot;LaTeX文書内から外部PDFファイルのページ数を取得する - TeX Alchemist Online&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-04-19 01:16:31</published>
  <title>LaTeX文書内から外部PDFファイルのページ数を取得する</title>
  <type>rich</type>
  <url>https://doratex.hatenablog.jp/entry/20230419/1681834591</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
