2

\input{}LaTeXファイル内のすべてのコマンドを再帰的にインライン化するプログラムを探しています。「再帰的に」と\input{}は、最終的なLaTeXファイルにコマンドがなくなるまでインライン化を繰り返し行うことを意味します。

私はすでにフラットパッケージに出くわしました。しかし、何らかの理由で、私のTeXLiveディストリビューションはそれをインストールしません。コマンドを実行すると、次sudo tlmgr show flattenのエラーメッセージが表示されますtlmgr: cannot find flatten。そのため、より標準的でインストールが簡単な代替ツールを探しています。

4

2 に答える 2

6

CTAN(質問で指定したリンク)からflattenをダウンロードして、手動でインストールしてみませんか?

編集:次のパッチを適用して、ビルドエラーを修正します。

commit 4d62b79c5145d2b5556487b483d92df797564a18
Author: Ken Bloom <kbloom@gmail.com>
Date:   Thu May 27 12:45:49 2010 -0500

    fix build errors

diff --git a/flatten.l b/flatten.l
index 85ffee5..da12d2d 100644
--- a/flatten.l
+++ b/flatten.l
@@ -62,6 +62,7 @@ char FILE_DATE[] = "October 1995";
  */


+#include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include <ctype.h>
@@ -641,7 +642,7 @@ FILE *f3;
 char *strsave(s)
 char *s;                           /* string to be saved */
 {
-  char *p, *malloc();
+  char *p;

   if ((p = malloc(strlen(s)+1)) != NULL) {
      strcpy(p, s);
@@ -834,4 +835,4 @@ void initialise_senv()
   strcpy(path_sep," :;");                /* path seperators */
   dir_cat = '/';                         /* directory catenation char */
   senv_debug = 0;                        /* debugging off */
-}                                      /* end INITIALISE_SENV */
\ No newline at end of file
+}                                      /* end INITIALISE_SENV */
diff --git a/getopt.c b/getopt.c
index 5131cfa..b35cf51 100644
--- a/getopt.c
+++ b/getopt.c
@@ -6,6 +6,7 @@
 /* getopt()  from Don Libes "Obfuscated C" */


+#include <string.h>
 #include <stdio.h>

 /* getopt()  -- parse command line arguments */
@@ -21,10 +22,6 @@
      fprintf(stderr, s, (unsigned)strlen(s));\
      fprintf(stderr, errbuf, 2);}

-extern int strcmp();
-extern char *strchr();
-extern int strlen();
-
 int opterr = 1;    /* getopt prints errors if this is one */
 int optind = 1;    /* token pointer */
 int optopt;        /* option character passed back to user */
diff --git a/srchenv.c b/srchenv.c
index fa3e8d8..f8acd48 100644
--- a/srchenv.c
+++ b/srchenv.c
@@ -4,6 +4,7 @@
 /* strtol() from C standard library (not all compilers find this)  */


+#include <string.h>
 #include <stdio.h>
于 2010-05-27T04:27:41.277 に答える
0

または、 FLaPを使用することもできます。インライン\inputおよび\includeディレクティブであり、の使用をサポートします\includeonly。さらに、グラフィックファイルを移動して、結果の「マージされた」LaTeXプロジェクトが単一のフラットディレクトリに含まれるようにします。SVG、EPS、PDF画像をサポートし\graphicspath、処理します。\includesvg

于 2015-09-04T07:10:48.590 に答える