お世話になります。LuaTeXjaがらみの質問です。
MWEは下記の通りです。
--- test.tex ---
%#!lualatex
\documentclass{article}
\usepackage{marvosym}
\usepackage{luatexja}
\begin{document}
\thispagestyle{empty}
{\LARGE\Smiley\FAX\Telefon}
\end{document}
---- ここまで ---
luatexja.styを読み込むとmarvosymのフォントが表示されない、またはuやTなど別の文字になります。
luatexja.styを読み込まなければ、marvosymのフォントは期待通りに表示されます。
パッケージを読み込む順番は試しましたが、変化はありませんでした。
luatexja.styとmarvosym.styを共存させる方法についてご助言を賜れば幸いです。
各バージョンは下記の通りです。
$ grep ProvidesPackage $(kpsewhich luatexja.sty)
\ProvidesPackage{luatexja}[2013/05/14 Japanese Typesetting with LuaTeX]
$ grep -A1 ProvidesPackage $(kpsewhich marvosym.sty)
\ProvidesPackage{marvosym}
[2011/07/20 v2.2 Martin Vogel's Symbols font definitions]
よろしくお願いします。
ご質問はこちらへ
質問用フォーラムです。ご質問の前に質問のしかたをご覧ください。
MacOSとWindowsでのフォントの違い
- 土屋 勝 の投稿
これまでMacOS上で作成されていたLaTeXソースをWindows上で処理することになり,フォント名の違い?に悩んでいます.
対象となるLaTeXソースは,以前からシリーズで使われてきたもので,モリサワフォントが使われています.フォントに関してはclsファイルに
%% R
\DeclareKanjiFamily{JY1}{shingo-r}{}
\DeclareKanjiSubstitution{JY1}{shingo-r}{m}{n}
\DeclareFontShape{JY1}{shingo-r}{m}{n}{<-> s * [0.961] shingo-r}{}
\DeclareKanjiFamily{JT1}{shingo-r}{}
\DeclareKanjiSubstitution{JT1}{shingo-r}{m}{n}
\DeclareFontShape{JT1}{shingo-r}{m}{n}{<-> s * [0.961] shingo-r-v}{}
%% M
\DeclareKanjiFamily{JY1}{shingo-m}{}
\DeclareKanjiSubstitution{JY1}{shingo-m}{m}{n}
\DeclareFontShape{JY1}{shingo-m}{m}{n}{<-> s * [0.961] shingo-m}{}
\DeclareKanjiFamily{JT1}{shingo-m}{}
\DeclareKanjiSubstitution{JT1}{shingo-m}{m}{n}
\DeclareFontShape{JT1}{shingo-m}{m}{n}{<-> s * [0.961] shingo-m-v}{}
%% B
\DeclareKanjiFamily{JY1}{shingo-b}{}
\DeclareKanjiSubstitution{JY1}{shingo-b}{m}{n}
\DeclareFontShape{JY1}{shingo-b}{m}{n}{<-> s * [0.961] shingo-b}{}
\DeclareKanjiFamily{JT1}{shingo-b}{}
\DeclareKanjiSubstitution{JT1}{shingo-b}{m}{n}
\DeclareFontShape{JT1}{shingo-b}{m}{n}{<-> s * [0.961] shingo-b-v}{}
%% 太ゴB101
\DeclareKanjiFamily{JY1}{futogo-b}{}
\DeclareKanjiSubstitution{JY1}{futogo-b}{m}{n}
\DeclareFontShape{JY1}{futogo-b}{m}{n}{<-> s * [0.925] futogo-b}{}
\DeclareKanjiFamily{JT1}{futogo-b}{}
\DeclareKanjiSubstitution{JT1}{futogo-b}{m}{n}
\DeclareFontShape{JT1}{futogo-b}{m}{n}{<-> s * [0.925] futogo-b-v}{}
という指定がされています.このままだとWindows 8.1のTeX Live 2015で
platex main.tex
dvipdfmx -f morisawa main
と処理をしても
dvipdfmx:warning: Could not locate a virtual/physical font for TFM "futogo-b".
dvipdfmx:warning: >> This font is mapped to a physical font "FutoGoB101-Bold".
dvipdfmx:warning: >> Please check if kpathsea library can find this font: FutoGoB101-Bold
dvipdfmx:fatal: Cannot proceed without .vf or "physical" font for PDF output...
Output file removed.
となってPDFファイルが出力されません.
もちろんWindowsにはA-OTF-FutoGoB101Pro-Bold.otfなど必要なモリサワフォントはインストールしてあり,このclsファイルを使わない自分のLaTeXソースならば普通にモリサワフォントが埋め込まれたPDFファイルが作成されます.
フォントファイル名が違っているのではないかと,いろいろと試してみましたが,行き詰まってしまいました.どなたか助言をお願いします.
私の使用環境は
Windows 8.1
LaTeX 2015
platex,dvips,dvipdfmx
です.
このトピックを読む
(現在の返信数: 2)
bxjsclsでの目次作成について
- liki の投稿
test.tex
\documentclass[lualatex,ja=standard,fleqn]{bxjsarticle}
\begin{document}
\tableofcontents
\section{abc}
hogehoge
\section{xyz}
hogehoge
\end{document}
上記ファイルをコンパイル(lualatex test.tex)すると下記のエラーが出ます。
! Illegal unit of measure (pt inserted).
\tableofcontents を削除すると問題ありません。
どうしてなんでしょうか。
このトピックを読む
(現在の返信数: 6)
pgfplotsソースをluajitlatexで処理するとエラー出る
- 浮亭 夢介 の投稿
\documentclass{ltjsarticle}
\usepackage{pgfplots}
\pgfplotsset{compat=1.12}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot+[domain=0:360,samples=101] ({sin(x)},{cos(3*x)});
\end{axis}
\end{tikzpicture}
\end{document}
上のソースにおいて,
lualatex foo では正しく処理されますが,
JITコンパイラで luajitlatex foo とすると,次のエラーが出ます.宜しくお願いします.
------------------------
! Package pgfkeys Error: I do not know the key '/pgfplots/lua support', to which
you passed 'false', and I am going to ignore it. Perhaps you misspelled it.
See the pgfkeys package documentation for explanation.
Type H for immediate help.
...
l.116 ...lots.pgfplotsversion = "\pgfplotsversion";}
------------------------
\usepackage{pgfplots}
\pgfplotsset{compat=1.12}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot+[domain=0:360,samples=101] ({sin(x)},{cos(3*x)});
\end{axis}
\end{tikzpicture}
\end{document}
上のソースにおいて,
lualatex foo では正しく処理されますが,
JITコンパイラで luajitlatex foo とすると,次のエラーが出ます.宜しくお願いします.
------------------------
! Package pgfkeys Error: I do not know the key '/pgfplots/lua support', to which
you passed 'false', and I am going to ignore it. Perhaps you misspelled it.
See the pgfkeys package documentation for explanation.
Type H for immediate help.
...
l.116 ...lots.pgfplotsversion = "\pgfplotsversion";}
------------------------
このトピックを読む
(現在の返信数: 3)
TikZでの図の表示
- ジョルジュ サンド の投稿
度々申し訳ございません。
TeXStudioにてTikZを用いて有限オートマトンを作図しております。
必要なところだけ取り出すと…
\documentclass[a4paper,11pt,oneside]{jsbook}
%
\usepackage{amsmath,amssymb}
\usepackage{bm}
\usepackage[dvipdfmx]{graphicx,color}
\usepackage{verbatim}
\usepackage{wrapfig}
\usepackage{ascmac}
\usepackage{makeidx}
\usepackage{multirow}
\newcommand{\acknowledgmentname}{Acknowledgment}
\usepackage{times}
\usepackage{array}
\usepackage{udline}
\usepackage[tone,extra,safe]{tipa}
\usepackage{url}
\usepackage{lscape}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage[dvipdfmx,svgnames]{xcolor}
\usepackage{tikz}
\usepackage{tikz-cd}
\usetikzlibrary{automata}
\usetikzlibrary{intersections}
\begin{document}
\begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,>=stealth’,thick,
every state/.style={fill,draw=none,orange,text=white,circular drop shadow},
accepting/.style ={green!50!black,text=white},
initial/.style ={red,text=white}]
\node[state,initial] (0) {0};
\node[stat] (1) [right=of 0] {1};
\node[state] (2) [above right=of 1] {2};
\node[state] (4) [above right=of 1] {4};
\node[state] (5) [below right=of 1] {5};
\node[state,accepting] (3) [above right=of 2] {3};
\node[state,accepting] (6) [below=of 3] {6};
\node[state,accepting] (7) [below=of 6] {7};
\path[->] (0) edge node [left] {C} (1)
(1) edge node [above right] {E} (2)
(2) edge node [above right] {G} (3)
(1) edge node [below right] {F} (4)
(1) edge node [below right] {Es} (5)
(2) edge node [abobe right] {G} (3)
(4) edge node [abobe right] {A} (6)
(5) edge node [abobe right] {G} (7)
\end{tikzpicture}
\end{document}
で行っておりますが、うまエラー表示が出ていきません。
よろしくお願い申し上げます。
このトピックを読む
(現在の返信数: 8)
有限オートマトンの記述方法
- ジョルジュ サンド の投稿
latest (x)dvipdfmx
- Akira Kakuto の投稿
TeX Live 2015 の xdvipdfmx が TeX Live 2014 の
xdvipdfmx と比べて,改悪となっているのは,
type1 フォントを native フォントとして使用できない
ことです:
%
% xetex (目茶目茶になる。)
%
\font\xxx="[utmr8a.pfb]"
\font\yyy="[cmr10.pfb]"
\xxx
This is a test.
\yyy
This is a test.
\bye
これは,FreeType ライブラリをやめたことの副作用でした。
最新の TeX Live repository のソースでは,type1 フォント
を native フォントとして使用可能になっています。
なお,今では xdvipdfmx は dvipdfmx への symlink になって
いて,実際のバイナリは一つだけです(Windows の場合は dvipdfmx.dll)。
xdvipdfmx と比べて,改悪となっているのは,
type1 フォントを native フォントとして使用できない
ことです:
%
% xetex (目茶目茶になる。)
%
\font\xxx="[utmr8a.pfb]"
\font\yyy="[cmr10.pfb]"
\xxx
This is a test.
\yyy
This is a test.
\bye
これは,FreeType ライブラリをやめたことの副作用でした。
最新の TeX Live repository のソースでは,type1 フォント
を native フォントとして使用可能になっています。
なお,今では xdvipdfmx は dvipdfmx への symlink になって
いて,実際のバイナリは一つだけです(Windows の場合は dvipdfmx.dll)。
このトピックを読む
(現在の返信数: 0)
LaTeXiTで特殊文字が表示できない
- Hide Masuda の投稿
LaTeXiTで特殊文字を表示することができません.
メイン画面の下段のフォームに数式を入力して右下の"LaTeX it!"を押しても上段に数式が表示されず,フォームに入力していた内容も消えてしまいます.
通常の文字,例えば"a"や"a_0"をを入力した場合は正常に動作しますが,"¥pi"のような特殊文字を入力すると上記のような症状が現れます.つまり,上段に"π"は表示されず,下段に入力していた"¥pi"も消えてしまいます.
MacTex-2015をMac OS X 10.9.5にインストールして使用しています.
LaTeXiT以外の,例えばTeXShopで編集した文書は特殊文字も含めて正常に動作しているようです.
よろしくお願いいたします.
このトピックを読む
(現在の返信数: 2)