frcursiveフォントのインストールしましたがフォントが使えません

frcursiveフォントのインストールしましたがフォントが使えません

- EH D の投稿
返信数: 20
宜しくお願いいたします。 Windows XPとTeXworksバージョン0.46の環境です。


frcursiveフォントのインストールがうまくいきません。

https://ctan.org/pkg/frcursive
にてfrcursive.zipをダウンロードし解凍しました。

READMEを見てみると
Installation
------------
To install frcursive, you need to copy the files in appropriate places so that
TeX and Metafont can find them.

Installation by hand goes like this, assuming TEXMF is the base directory of
you TeX installation (that would be /usr/share/texmf, C:\localtexmf, or
something like that):
- copy the files from the "latex" directory into TEXMF/tex/latex/frcursive/
- copy the files from the "mf" directory into TEXMF/fonts/source/public/frcursive/
To use the Adobe Type 1 versions,
- copy the files from the "type1" directory into TEXMF/fonts/type1/public/frcursive/
- copy the files from the "tfm" directory into TEXMF/fonts/tfm/public/frcursive/
- copy "frcursive.map" into TEXMF/fonts/map/dvips/frcursive/
- make sure the TEXMF/web2c/updmap.cfg contains the line
MixedMap frcursive.map
You may have to update TeX's databases by running "texhash" or "mktexlsr".

となってまして,コマンドプロンプトでsetコマンドを実行しましたがTEXMFのパスは表示されませんでした。
そしてlocaltexmfフォルダが見当たらないので
TEXMFはC:\w32tex\share\texmf-dist\tex\latexかと推測しまして,
C:\w32tex\share\texmf-dist\tex\latex内にfrcursiveフォルダを作成してに解凍されたフォルダからlatexフォルダをこのfrcursiveフォルダにコピーして,
C:\w32tex\share\texmf-dist\fonts\source\public内にfrcursiveフォルダを作成してに解凍されたフォルダからmfフォルダをこのfrcursiveフォルダにコピーして,
C:\w32tex\share\texmf-dist\fonts\type1\public内にfrcursiveフォルダを作成してに解凍されたフォルダからtype1フォルダをこのfrcursiveフォルダにコピーして,
C:\w32tex\share\texmf-dist\fonts\tfm\public内にfrcursiveフォルダを作成してに解凍されたフォルダからtfmフォルダをこのfrcursiveフォルダにコピーして,
C:\w32tex\share\texmf-dist\fonts\map\dvips内にfrcursiveフォルダを作成してに解凍されたフォルダからfrcursive.mapをこのfrcursiveフォルダにコピーして,
C:\w32tex\share\texmf-dist\web2c内のupdmap.cfg内にMixedMap frcursive.mapを加筆しました。
そして最後に
C:\Documents and Settings\Administrator>texhash
texhash: Updating c:/w32tex/share/texmf-project/ls-R..
texhash: Updated c:/w32tex/share/texmf-project/ls-R.
texhash: Updating c:/w32tex/share/texmf-context/ls-R..
texhash: Updated c:/w32tex/share/texmf-context/ls-R.
texhash: Updating c:/w32tex/share/texmf-fonts/ls-R...
texhash: Updated c:/w32tex/share/texmf-fonts/ls-R.
texhash: Updating c:/w32tex/share/texmf-local/ls-R...
texhash: Updated c:/w32tex/share/texmf-local/ls-R.
texhash: Updating c:/w32tex/share/texmf-dist/ls-R...
texhash: Updated c:/w32tex/share/texmf-dist/ls-R.
texhash: Done.

はれて下記をコンパイルしましたがrとsともローマン体のままで反映されません。
どうすればいいのでしょうか?


\documentclass[10pt,oneside]{book}
\usepackage[reqno]{amsmath}
\usepackage{nccmath}
\allowdisplaybreaks
\usepackage{eclbkbox}
\usepackage{amssymb}
\usepackage{eucal}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{mathtools}
\usepackage{book_layout}
\usepackage{rsfs}
\usepackage{esint}
\newcommand{\bmmax}{0}
\newcommand{\hmmax}{0}
\usepackage{bm}
\usepackage{color}
\usepackage{mathdots}
\usepackage{pmboxdraw}
\usepackage{upgreek}
\usepackage{textgreek}
\usepackage{cancel}
\usepackage{pst-3d}
\usepackage{stmaryrd,scalerel}
\usepackage[normallineskip,notMy]{emath}
\usepackage{emathPs}
\usepackage{EMpsframed}
\resettagform
\allowdisplaybreaks
\usepackage{emathPs}
\usepackage{EMpsframed}
\listfiles
\usepackage{textcomp}
\usepackage{scalerel}
\usepackage{calligra}
\usepackage{accents}
\usepackage{frcursive}
\usepackage[utf8]{inputenc}
\newcounter{algostep}
\usepackage{etoolbox}
\BeforeBeginEnvironment{flalign}{\setcounter{algostep}{1}}
\usepackage[left=-11mm,right=25mm,top=15mm,bottom=10mm]{geometry}

\begin{document}

\slshape\textcursive{r}

\slshape\textcursive{s}

\end{document}

EH D への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- Akira Kakuto の投稿
> C:\w32tex\share\texmf-dist\web2c内のupdmap.cfg内にMixedMap frcursive.mapを加筆しました。
> そして最後に
> C:\Documents and Settings\Administrator>texhash
> texhash: Updating c:/w32tex/share/texmf-project/ls-R..
> texhash: Updated c:/w32tex/share/texmf-project/ls-R.
> texhash: Updating c:/w32tex/share/texmf-context/ls-R..
> texhash: Updated c:/w32tex/share/texmf-context/ls-R.
> texhash: Updating c:/w32tex/share/texmf-fonts/ls-R...
> texhash: Updated c:/w32tex/share/texmf-fonts/ls-R.
> texhash: Updating c:/w32tex/share/texmf-local/ls-R...
> texhash: Updated c:/w32tex/share/texmf-local/ls-R.
> texhash: Updating c:/w32tex/share/texmf-dist/ls-R...
> texhash: Updated c:/w32tex/share/texmf-dist/ls-R.
> texhash: Done.

最後の最後に
updmap

というコマンドを実行してみて下さい。
Akira Kakuto への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- EH D の投稿
ご回答誠に有難うございます。

早速,実行してからコンパイルしてみましたが変化無しです。

C:\Documents and Settings\Administrator>updmap
Working with cm.map ...
Working with cmextra.map ...
Working with cyrillic.map ...
Working with euler.map ...
Working with latxfont.map ...
Working with symbols.map ...
Working with monotype-mns.map ...
Working with yandymisc.map ...
Working with eurosym.map ...
Working with lm.map ...
Working with xypic.map ...
Working with fpls.map ...
Working with troff-updmap.map ...
Working with qbk.map ...
Working with qcs.map ...
Working with qpl.map ...
Working with qtm.map ...
Working with qag.map ...
Working with qcr.map ...
Working with qhv.map ...
Working with qzc.map ...
Working with newtx.map ...
Working with newtxtt.map ...
Working with zmn.map ...
Working with newpx.map ...
Working with boondox.map ...
Working with ipaex-type1.map ...
Working with newtxsf.map ...
Working with musix.map ...
Working with esint.map ...
Working with frcursive.map ...
I updated psfonts.map.
I updated pdftex.map.
I updated dvipdfm.map.
I updated pspksupp.map.
EH D への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- Akira Kakuto の投稿
簡単な例でテストしてみましょう。

%
% pdflatex
%
\documentclass{article}
\usepackage{frcursive}
\begin{document}

\textcursive{r}

\textcursive{s}

\slshape
\textcursive{r}

\textcursive{s}

\end{document}
Akira Kakuto への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- EH D の投稿
ご回答誠に有難うございます。

早速試してみましたが相変わらず変化なしでした。
EH D への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- 和田 勇 の投稿
試行されていますが 。。。

昨年も同じような質問をされていますがその時は解決されなかったのかしら?

■昨年もお願いしましたが、できるだけ最小限のソースで質問していただけると回答しやすくなります。

■TEXMF の情報は以下のコマンドで調べることができます。

 kpsewhich -var-value=TEXMF

■実現されたいことは「\textcursive{\slshape{r}}」ではないのでしょうか?

利用したサンプルは以下の通り。違いが分かるように \fbox{...} でかこっています。

\documentclass{book}
\usepackage{frcursive}
\begin{document}

\textcursive{ \fbox{cursive default} \fbox{\slshape{slshape}} }
or
{ \cursive{ \fbox{cursive default} \fbox{\slshape{slshape}}} }

\bigskip \bigskip
FOR ANOTHER INFORMATIONS ...

\begin{cursive}
cursive default

slshape {\slshape slshape}

rmfamily {\rmfamily rmfamily}

sffamily {\sffamily sffamily}

ttfamily {\ttfamily ttfamily}

mdseries {\mdseries mdseries}

bfseries {\bfseries bfseries}

upshape {\upshape upshape}

itshape {\itshape itshape}

scshape {\scshape scshape}
\end{cursive}
\end{document}
和田 勇 への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- EH D の投稿
ご回答誠に有難うございます。


> 昨年も同じような質問をされていますがその時は解決されなかったのかしら?

はい、解決しておりませんでした。


> kpsewhich -var-value=TEXMF

:\Documents and Settings\Administrator>kpsewhich -var-value=TEXMF
C:/Documents and Settings/Administrator/texmf,c:/w32tex/share/texmf-project,c:/
32tex/share/texmf-context,c:/w32tex/share/texmf-fonts,c:/w32tex/share/texmf-loc
l,c:/w32tex/share/texmf-dist}

となりました。


> ■実現されたいことは「\textcursive{\slshape{r}}」ではないのでしょうか?

はい。ですがその他のフォントもいろいろ使いたいです。


ご紹介いただいたサンプルをコンパイルしてみました。参照添付ファイル
添付 text.jpg
EH D への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- 和田 勇 の投稿
あら、未解決だったのですね。

■TEXMF の推測は正しかったようです。

■こちらでの結果を添付しますが、ご希望されているものなのかお聞かせください。

■昨年の回答のなかにありましたが「二つの機能を利用した時、相乗効果が得られる場合と、後から利用した機能のデフォルトが優先になる場合がある」ことをご理解してください。

今回のケースでは、slshape の中で textcursive を使うと textcursive のデフォルトが優先になるようですので、おききしたのですが、サンプル結果は全然 frcursive が効いていませんね。

ということでもう少し情報を提供してください。

(w32tex の standard かfull でいんすとーるしていることをぜんていにしているのですが)以下の手順の情報を教えてください。先程のサンプルファイル名を 2019-06-23.tex として説明します。

1) platex 2019-06-23.tex

  【お願い】この時作成されるログファイル 2019-06-23.log を添付ファイルで提供してください。

2)dvipdfmx -v 2019-06-23

  【お願い】このコマンド実行時に表示される内容を教えてください。

  #このフォーラムを見ている w32tex のユーザの方へ
  fontmap 情報などが表示されるので妥当かどうか教えていただけると助かります。
和田 勇 への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- EH D の投稿
ご回答誠に有難うございます。


> ■昨年の回答のなかにありましたが「二つの機能を利用した時、
:
> のデフォルトが優先になるようですので、おききしたのですが、サンプル結果は全然 frcursive が効いていませんね

なるほど納得です。


> 【お願い】この時作成されるログファイル 2019-06-23.log を添付ファイルで提供してください。

了解しました。


> 2)dvipdfmx -v 2019-06-23

下記のようになりました。


C:\Documents and Settings\Administrator>dvipdfmx -v 2019-06-23
<FONTMAP:c:/w32tex/share/texmf-dist/fonts/map/dvipdfmx/base/psbase14.map><FONTMA
P:c:/w32tex/share/texmf-dist/fonts/map/dvipdfmx/updmap/dvipdfm.map><FONTMAP:c:/w
32tex/share/texmf-dist/fonts/map/dvipdfmx/base/cid-x.map>2019-06-23 -> 2019-06-2
3.pdf

dvipdfmx:fatal: Could not open specified DVI (or XDV) file: 2019-06-23.dvi

Output file removed.

EH D への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- 和田 勇 の投稿
■こちらで処理した結果を前回添付しましたが、そのような結果を想定していると考えて良いですよね。

■ログファイル
TeXLive 2015 ベースの W32TEX のようですが一部疑問な点有り。多分問題はないのだろ思いますが。。。

5,6 行目に 「./platex 2019-06-23.tex 」とあるが、W32TEX の場合、起動コマンド名も表示されるのかな?
それと「./」で始まっているので platex コマンドが存在するフォルダーで処理したのかな?


■dvipdfmx が参照する FONTMAP はわかったのですが pdfファイルできませんね。W32TEX だと別の方法かしら?

期待していたのは以下のような結果なのですが。。

 [1  pdf_font>> Simple font "cmr10.pfb" enc_id= opened at font_id=.
 ......

# こらから午後一杯外出なので検討はその後になります。
#できれば W32TEX ユーザの方で対処方法が分かる方フォローをお願いしたい。
和田 勇 への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- Akira Kakuto の投稿
> 5,6 行目に 「./platex 2019-06-23.tex 」とあるが、W32TEX の場合、
> 起動コマンド名も表示されるのかな?
> それと「./」で始まっているので platex コマンドが存在する
> フォルダーで処理したのかな?

不思議なログファイルですが,
これは,"platex 2019-06-23.tex" という一つのファイルに対して

platex "platex 2019-06-23.tex"

とした場合のログファイルのはずです。

\documentclass{article}
\usepackage{frcursive}
\begin{document}

\textcursive{r}

\textcursive{s}

\end{document}

を test.tex として保存し,

pdflatex test.tex

とした場合の test.log はどうなりますか。
Akira Kakuto への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- Akira Kakuto の投稿
> platex "platex 2019-06-23.tex"
> とした場合のログファイルのはずです。

このことは,

>> Output written on "platex 2019-06-23.dvi" (1 page, 1060 bytes).

からも明らかです。それにも拘わらず

>> dvipdfmx -v 2019-06-23

としたものだから,2019-06-23.dvi が見つけられず,

>> dvipdfmx:fatal: Could not open specified DVI (or XDV) file: 2019-06-23.dvi

となっているのでしょう。

platex 2019-06-23
dvipdfmx 2019-06-23

としたら,成功してしまうのかもしれません。
Akira Kakuto への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- 和田 勇 の投稿
角藤さん、解説ありがとうございます。可能性はありますね。
なお、明日月曜日はほぼ終日out of the internet ですので動きがあれば可能な範囲で応答してください。
Akira Kakuto への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- EH D の投稿
ご回答誠に有難うございます。

> platex コマンドが存在するフォルダーで処理したのかな?

いえ,フォルダー内にはplatex.exeはありません。


> platex 2019-06-23
> dvipdfmx 2019-06-23
> としたら,成功してしまうのかもしれません。


platex 2019-06-23.texを2019-06-23.texにリネームしてplatex 2019-06-23とdvipdfmx 2019-06-23を実行してみましたら下記のようになりました。
因みに出力されたフォントは相変わらず変化なしでした。


>platex 2019-06-23
This is e-pTeX, Version 3.14159265-p3.7-150805-2.6 (sjis) (TeX Live 2015/W32TeX)
(preloaded format=platex)
restricted \write18 enabled.
entering extended mode
(./2019-06-23.tex
pLaTeX2e <2006/11/10> (based on LaTeX2e <2015/10/01> patch level 2)
Babel <3.9m> and hyphenation patterns for 79 languages loaded.
(c:/w32tex/share/texmf-dist/tex/latex/base/book.cls
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
(c:/w32tex/share/texmf-dist/tex/latex/base/bk10.clo)) (./frcursive.sty)
(./2019-06-23.aux) (I search kanjifont definition file: . . )
(I search font definition file: . . . . . . . )

LaTeX Font Warning: Font shape `JT1/frc/m/n' undefined
(Font) using `JT1/mc/m/n' instead on input line 5.


LaTeX Font Warning: Font shape `JY1/frc/m/n' undefined
(Font) using `JY1/mc/m/n' instead on input line 5.


LaTeX Font Warning: Font shape `T1/frc/m/n' undefined
(Font) using `T1/cmr/m/n' instead on input line 5.


LaTeX Font Warning: Font shape `JT1/frc/m/sl' undefined
(Font) using `JT1/frc/m/n' instead on input line 5.


LaTeX Font Warning: Font shape `JY1/frc/m/sl' undefined
(Font) using `JY1/frc/m/n' instead on input line 5.


LaTeX Font Warning: Font shape `T1/frc/m/sl' undefined
(Font) using `T1/frc/m/n' instead on input line 5.

(c:/w32tex/share/texmf-dist/tex/latex/base/t1cmss.fd)
(c:/w32tex/share/texmf-dist/tex/latex/base/t1cmtt.fd)

LaTeX Font Warning: Font shape `JT1/frc/bx/n' undefined
(Font) using `JT1/frc/m/n' instead on input line 25.


LaTeX Font Warning: Font shape `JY1/frc/bx/n' undefined
(Font) using `JY1/frc/m/n' instead on input line 25.


LaTeX Font Warning: Font shape `T1/frc/bx/n' undefined
(Font) using `T1/frc/m/n' instead on input line 25.


LaTeX Font Warning: Font shape `JT1/frc/m/it' undefined
(Font) using `JT1/frc/m/n' instead on input line 29.


LaTeX Font Warning: Font shape `JY1/frc/m/it' undefined
(Font) using `JY1/frc/m/n' instead on input line 29.


LaTeX Font Warning: Font shape `T1/frc/m/it' undefined
(Font) using `T1/frc/m/n' instead on input line 29.


LaTeX Font Warning: Font shape `JT1/frc/m/sc' undefined
(Font) using `JT1/frc/m/n' instead on input line 31.


LaTeX Font Warning: Font shape `JY1/frc/m/sc' undefined
(Font) using `JY1/frc/m/n' instead on input line 31.


LaTeX Font Warning: Font shape `T1/frc/m/sc' undefined
(Font) using `T1/frc/m/n' instead on input line 31.


LaTeX Font Warning: Font shape `JT1/mc/m/sl' undefined
(Font) using `JT1/mc/m/n' instead on input line 33.


LaTeX Font Warning: Font shape `JY1/mc/m/sl' undefined
(Font) using `JY1/mc/m/n' instead on input line 33.

[1] (./2019-06-23.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

)
Output written on 2019-06-23.dvi (1 page, 1060 bytes).
Transcript written on 2019-06-23.log.


>dvipdfmx 2019-06-23
2019-06-23 -> 2019-06-23.pdf
[1]
11253 bytes written

Akira Kakuto への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- EH D の投稿
ご回答誠に有難うございます。遅くなりまして申し訳ありません。

早速コマンドプロンプトで実行してみましたら下記のようになりました。
そしてtest.logも添付いたします。

>pdflatex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/W32TeX) (preloaded
format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2015/10/01> patch level 2
Babel <3.9m> and hyphenation patterns for 79 languages loaded.
(c:/w32tex/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(c:/w32tex/share/texmf-dist/tex/latex/base/size10.clo)) (./frcursive.sty)
(./test.aux)

LaTeX Font Warning: Font shape `T1/frc/m/n' undefined
(Font) using `T1/cmr/m/n' instead on input line 5.

[1{c:/w32tex/share/texmf-dist/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux)


LaTeX Font Warning: Some font shapes were not available, defaults substituted.

) <c:/w32tex/share/texmf-dist/fonts/pk/ljfour/jknappen/ec/ecrm1000.600pk><c:/w
32tex/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on test.pdf (1 page, 8883 bytes).
Transcript written on test.log.
EH D への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- 前田 一貴 の投稿
t1frc.fd を読みにいかないのですね.
最初のコメント通りに作業されていれば問題はなさそうなのですが,なぜでしょうか.
frcursive.sty もインストールしたのに読まなくて test.tex と同じフォルダに
置いているのでしょうが,ここを解決しないとだめなのではないかと思います.
C:\w32tex\share\texmf-dist\tex\latex\frcursive に t1frc.fd は置いてあるのですよね.
前田 一貴 への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- EH D の投稿
ご回答誠に有難うございます。


> frcursive.sty もインストールしたのに読まなくて test.tex と同じフォルダに
> 置いているのでしょうが,

はい,置いております。


> C:\w32tex\share\texmf-dist\tex\latex\frcursive に t1frc.fd は置いてあるのですよね.

置いてありませんでした。
それでC:\w32tex\share\texmf-dist\tex\latex内にfrcursiveフォルダを作成して解凍フォルダからt1frc.fdをC:\w32tex\share\texmf-dist\tex\latex\frcursive内にコピーしました。

それでもってplatex 2019-06-23とdvipdfmx 2019-06-23を実行してみましたが変化なしでした。
EH D への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- 前田 一貴 の投稿
ファイルを置いたのなら texhash を実行しないとだめです.
frcursive.sty もそこに置いておけば,test.tex を同じディレクトリに置く必要はないはずです.
前田 一貴 への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- EH D の投稿
> texhash を実行しないとだめです.

これを実行して漸く成功しました!!!

皆様どうも有難うございました!!!
EH D への返信

Re: frcursiveフォントのインストールしましたがフォントが使えません

- 前田 一貴 の投稿
成功したようでよかったです.

1点だけ反省会を.最初のコメントを見ますと,

> C:\w32tex\share\texmf-dist\tex\latex内にfrcursiveフォルダを作成してに解凍されたフォルダからlatexフォルダをこのfrcursiveフォルダにコピーして,

コメントをくれた方はこれを前提に返事をしています.
が,結果的にこれは正しくなかったわけで,解決まで長引いた原因はここにあるわけです.
不毛なやりとりを避けるために,正しい情報を書いてほしいと思います.