LATEXSupportForDogmaFontsFromEmigreGraphicsBorisVeytsman2008/03/20,v1.
3AbstractThispackageprovidesLATEXsupportfortheDogmaFontsfromEmigreGraphics,designedbyZuzanaLicko,1994.
Ithaseverythingyouneedtotypesetinthisfont-exceptthefontitself,ofcourse.
Contents1Introduction22Installation23UsingLATEXStyle24Implementation44.
1Identication44.
2FontinstDriver44.
3LetterspacingDriver74.
4FontmapGeneration84.
5StyleFile8borisv@lk.
net,boris@varphi.
com1Table1:PFBFilesFileFontdogmab01.
pfbDogmaBolddogmab07.
pfbDogmaBlackdogmao00.
pfbDogmaOutlinedogmsb74.
pfbDogmaScriptBold1IntroductionThispackageprovidessupportlesfortheDogmaFontfamilyfromEmigreGraph-ics.
AccordingtotheFontnamescheme[1]thiscorrespondstothefamilyfdg.
ThepackageiswrittenforthesetoffontscurrentlyusedbyNoStarchPress,http://www.
nostarch.
com.
Thecopyrightstatementinthefontsrefersto1994.
Itispossiblethatotherversionsofthefontshaveslightlydierentmetrics,andpackageshouldbechangedtoaccommodatethis.
Tomakethiseasier,IreleasethepackageunderBSD-stylelicense.
Thisisevenmoreappropriatesincemostofthelesisgeneratedfollowingthegreatcourse[2].
ThesupportislimitedtoT1andTS1encoding.
NoVTeXsupportlesareincluded.
2InstallationFirst,youneedtopurchasethefontsthemselves:thepfblesarenotincludedinthepackage.
IfyougotthefontsfromNoStarchpress,donotrenamethepfbles.
However,ifthereareuppercaselettersinyourlenames,down-casethem.
Ifyouobtainedthelesfromanothersource,renamethefontsaccordingtoTable1.
IfyourTEXsystemisTDS-compliant,installthelesinto$TEXMF/fonts/type1/public/dogma.
Downloadhttp://ctan.
tug.
org/install/fonts/psfonts/emigre/dogma.
tds.
zipandunzipthislein$TEXMF.
Add+fdg.
maptothecongurationlesofdvips,pdftexandyourdvipreviewer.
Installtheles*.
fdand*.
styin$TEXMF/tex/latex/dogma.
anddocumen-tation(*.
pdfandREADME)in$TEXMF/doc/latex/dogma.
Runupdmapandtexhashprogramstoupdatethecongurationlesandlenamesdatabase.
Thestyledogma.
styprovidesanumberofcommandsforusingthefontfamily(seeSection3)3UsingLATEXStyleTouseDogmafont,youmayjustadd\usepackage{dogma}toyourpreamble.
Thepackagedenesanumberoffontshapesandseries,aslistedinTable2.
Tousethem,issuethestandardNFSScommand,forexample2Table2:FontsProvidedByThePackageSeriesShapesb(bold)n(upright),it(script),sl(slanted),sc(smallcaps),ol(outline)bk(boldletterspaced5%)n(upright)bq(boldletterspaced10%)n(upright)br(boldletterspaced20%)n(upright)bs(boldletterspaced30%)n(upright)h(heavy)n(upright),sl(slanted),sc(smallcaps)\fontfamily{fdg}\fontshape{ol}\fontseries{b}\selectfontAdditionally,thecommands\textdogmabold,\textdogmablack,\textdogmaoutline,\textdogmabold\textdogmablack\textdogmaoutline\textdogmascript\textdogmascripttypesettheirargumentsinthecorrespondingfonts,forexam-ple\textdogmaoutline{Zuzana~Licko}.
ThestandarditalicscommandsinsideboldfontswitchfromDogmaBoldtoDogmaScriptBold,andinsideheavyfontswitchfromDogmaHeavytoDogmaHeavySlanted.
ItisprobablynotagoodideatouseDogmafontinthebodyofthetext.
optionscaledHowever,ifyoudenitelywanttodothis,thepackagedogmaprovidesaparameterforbetterblendingbodyfontswithDogmafont.
Ifyoucallthestylewiththeoptionalparameterscaled=.
.
.
,thefontwillbescaleddownbythecorrespondingfactor,forexample\usepackage[scaled=0.
94]{dogma}.
34Implementation4.
1IdenticationWestartwiththedeclarationwhoweare.
Most.
dtxlesputdrivercodeinaseparatedriverle.
drv.
Werollthiscodeintothemainle,andusethepseudo-guardforit.
1style\NeedsTeXFormat{LaTeX2e}2gobble3\ProvidesFile{dogma.
dtx}4/gobble5style\ProvidesClass{dogma}6fdgdrv\ProvidesFile{fdg-drv.
tex}7fdgmap\ProvidesFile{fdg-map.
tex}8!
t1k&!
ts1k&!
t1q&!
ts1q&!
t1r&!
ts1r&!
t1s&!
ts1s9[2008/03/20v1.
3UsingDogmaFontFromEmigreGraphicsinLaTeX]10/!
t1k&!
ts1k&!
t1q&!
ts1q&!
t1r&!
ts1r&!
t1s&!
ts1sAndthedrivercode:11gobble12\documentclass{ltxdoc}13\usepackage{booktabs}14\usepackage{url}15\usepackage[breaklinks,colorlinks,linkcolor=black,citecolor=black,16pagecolor=black,urlcolor=black,hyperindex=false]{hyperref}17\PageIndex18\CodelineIndex19\RecordChanges20\EnableCrossrefs21\begin{document}22\DocInput{dogma.
dtx}23\end{document}24/gobble4.
2FontinstDriverThisfollows[2].
First,thepreamble25fdgdrv26\inputfontinst.
styThereisno"medium"forDogma(althoughafmlesaysthatDogmaBlackismedium,thisisalie).
Weusescriptforitalics27\substitutesilent{m}{bx}28\substitutesilent{bx}{b}29\setint{smallcapsscale}{750}30\setint{slant}{167}kspreadLetterspacingspread5%31\setint{kspread}{25}4qspreadLetterspacingspread10%32\setint{qspread}{50}rspreadLetterspacingspread20%33\setint{rspread}{100}sspreadLetterspacingspread30%34\setint{sspread}{150}Startingrecordingtransforms:35\recordtransforms{fdg-rec.
tex}Abunchoffonts:36\transformfont{fdgb8r}{\reencodefont{8r}{\fromafm{dogmab01}}}37\transformfont{fdgh8r}{\reencodefont{8r}{\fromafm{dogmab07}}}38\transformfont{fdgbl8r}{\reencodefont{8r}{\fromafm{dogmao00}}}39\transformfont{fdgbw8r}{\reencodefont{8r}{\fromafm{dogmsb74}}}Outlineandscriptfontsarealreadyslanted.
Weslanttheothertwoones.
40\transformfont{fdgbo8r}{\slantfont{\int{slant}}%41\reencodefont{8r}{\fromafm{dogmab01}}}42\transformfont{fdgho8r}{\slantfont{\int{slant}}%43\reencodefont{8r}{\fromafm{dogmab07}}}Thereisnohookinfontinst.
styforwritingourownpreambleto.
fdle.
However,weneedtoaddscalingcommandstothepreamble.
OK,wewillpatchfontinst:44\fontinstcc45\def\fd_family#1#2#3{46\a_toks{#3}47\edef\lowercase_file{\lowercase{48\edef\noexpand\lowercase_file{#1#2.
fd}}}49\lowercase_file50\open_out{\lowercase_file}51\out_line{\percent_char~Filename:~\lowercase_file}52\out_line{\percent_char~Created~by:~tex~\jobname}53\out_line{\percent_char~Created~using~fontinst~v\fontinstversion}54\out_line{}55\out_line{\percent_char~THIS~FILE~SHOULD~BE~PUT~IN~A~TEX~INPUTS~56DIRECTORY}57\out_line{}58\out_line{\string\ProvidesFile{\lowercase_file}}59\out_lline{[60\the\year/61\ifnum10>\month0\fi\the\month/62\ifnum10>\day0\fi\the\day\space63Fontinst~v\fontinstversion\space64font~definitions~for~#1/#2.
65]}66\out_line{}5Hereisourpatch:67\out_line{\string\expandafter\string\ifx\string\csname\space68Dgm@scale\string\endcsname\string\relax}69\out_line{\space\string\let\string\Dgm@@scale\string\@empty}70\out_line{\string\else}71\out_line{\space\string\edef\string\Dgm@@scale\left_brace_char72s*[\string\csname\spaceDgm@scale\string\endcsname]73\right_brace_char\percent_char}74\out_line{\string\fi\percent_char}75\out_line{}Endofthepatch.
76\out_line{\string\DeclareFontFamily{#1}{#2}{\the\a_toks}}77{78\csname#1-#2\endcsname79\out_line{}80\let\do_shape=\substitute_shape81\csname#1-#2\endcsname82\let\do_shape=\remove_shape83\csname#1-#2\endcsname84}85\x_cs\g_let{#1-#2}\x_relax86\out_line{}87\out_line{\string\endinput}88\close_out{Font~definitions}89}90\normalccNowweinstallthefonts.
FirstT1.
Notethescalingcode(takenfromPSNFSSpackages).
91\installfonts92\installfamily{T1}{fdg}{}93\installfont{fdgb8t}{fdgb8r,newlatin}{t1}{T1}{fdg}{b}{n}{94\string\Dgm@@scale}95\installfont{fdgh8t}{fdgh8r,newlatin}{t1}{T1}{fdg}{h}{n}{96\string\Dgm@@scale}97\installfont{fdgbl8t}{fdgbl8r,newlatin}{t1}{T1}{fdg}{b}{ol}{98\string\Dgm@@scale}99\installfont{fdgbw8t}{fdgbw8r,newlatin}{t1}{T1}{fdg}{b}{it}{100\string\Dgm@@scale}101\installfont{fdgbo8t}{fdgbo8r,newlatin}{t1}{T1}{fdg}{b}{sl}{102\string\Dgm@@scale}103\installfont{fdgho8t}{fdgho8r,newlatin}{t1}{T1}{fdg}{h}{sl}{104\string\Dgm@@scale}105\installfont{fdgb8tk}{fdgb8r,newlatin}{t1k}{T1}{fdg}{bk}{n}{106\string\Dgm@@scale}107\installfont{fdgb8tq}{fdgb8r,newlatin}{t1q}{T1}{fdg}{bq}{n}{108\string\Dgm@@scale}109\installfont{fdgb8tr}{fdgb8r,newlatin}{t1r}{T1}{fdg}{br}{n}{110\string\Dgm@@scale}6111\installfont{fdgb8ts}{fdgb8r,newlatin}{t1s}{T1}{fdg}{bs}{n}{112\string\Dgm@@scale}113\installfont{fdgbc8t}{fdgb8r,newlatin}{t1c}{T1}{fdg}{b}{sc}{114\string\Dgm@@scale}115\installfont{fdghc8t}{fdgh8r,newlatin}{t1c}{T1}{fdg}{h}{sc}{116\string\Dgm@@scale}117\endinstallfontsAndthenTS1118\installfonts119\installfamily{TS1}{fdg}{}120\installfont{fdgb8c}{fdgb8r,textcomp}{ts1}{TS1}{fdg}{b}{n}{121\string\Dgm@@scale}122\installfont{fdgh8c}{fdgh8r,textcomp}{ts1}{TS1}{fdg}{h}{n}{123\string\Dgm@@scale}124\installfont{fdgbl8c}{fdgbl8r,textcomp}{ts1}{TS1}{fdg}{b}{ol}{125\string\Dgm@@scale}126\installfont{fdgbw8c}{fdgbw8r,textcomp}{ts1}{TS1}{fdg}{b}{it}{127\string\Dgm@@scale}128\installfont{fdgbo8c}{fdgbo8r,textcomp}{ts1}{TS1}{fdg}{b}{sl}{129\string\Dgm@@scale}130\installfont{fdgho8c}{fdgho8r,textcomp}{ts1}{TS1}{fdg}{h}{sl}{131\string\Dgm@@scale}132\installfont{fdgb8ck}{fdgb8r,textcomp}{ts1k}{TS1}{fdg}{bk}{n}{133\string\Dgm@@scale}134\installfont{fdgb8cq}{fdgb8r,textcomp}{ts1q}{TS1}{fdg}{bq}{n}{135\string\Dgm@@scale}136\installfont{fdgb8cr}{fdgb8r,textcomp}{ts1r}{TS1}{fdg}{br}{n}{137\string\Dgm@@scale}138\installfont{fdgb8cs}{fdgb8r,textcomp}{ts1s}{TS1}{fdg}{bs}{n}{139\string\Dgm@@scale}140\installfontas{fdgb8c}{TS1}{fdg}{b}{sc}{141\string\Dgm@@scale}142\installfontas{fdgh8c}{TS1}{fdg}{h}{sc}{143\string\Dgm@@scale}144\endinstallfontsAndtheend:145\endrecordtransforms146\bye147/fdgdrv4.
3LetterspacingDriverThisfollows[3].
WeneedbothT1andTS1les:148t1k|ts1k|t1q|ts1q|t1r|ts1r|t1s|ts1s149\relax150\encoding151t1k|ts1k\resetint{letterspacing}{\int{kspread}}152t1q|ts1q\resetint{letterspacing}{\int{qspread}}7153t1r|ts1r\resetint{letterspacing}{\int{rspread}}154t1s|ts1s\resetint{letterspacing}{\int{sspread}}155\setcommand\gobblethree#1#2#3{}%156\let\ligature=\gobblethree157t1k|t1q|t1r|t1s\inputetx{t1}158ts1k|ts1q|ts1r|ts1s\inputetx{ts1}159\endencoding160/t1k|ts1k|t1q|ts1q|t1r|ts1r|t1s|ts1s4.
4FontmapGenerationThisisastandardprocedure[2]161fdgmap162\inputfinstmsc.
sty163\resetstr{PSfontsuffix}{.
pfb}164\adddriver{dvips}{fdg.
map}165\inputfdg-rec.
tex166\donedrivers167\bye168/fdgmap4.
5StyleFileThescalingcodeisfromthehelvetpackage:169style170\RequirePackage[T1]{fontenc}171\RequirePackage{textcomp}172\RequirePackage{keyval}173\define@key{Dogma}{scaled}[1]{%174\def\Dgm@scale{#1}}175\def\ProcessOptionsWithKV#1{%176\let\@tempc\relax177\let\Dgm@tempa\@empty178\ifx\@classoptionslist\relax\else179\@for\CurrentOption:=\@classoptionslist\do{%180\@ifundefined{KV@#1@\CurrentOption}%181{}%182{%183\edef\Dgm@tempa{\Dgm@tempa,\CurrentOption,}%184\@expandtwoargs\@removeelement\CurrentOption185\@unusedoptionlist\@unusedoptionlist186}%187}%188\fi189\edef\Dgm@tempa{%190\noexpand\setkeys{#1}{%191\Dgm@tempa\@ptionlist{\@currname.
\@currext}%192}%193}%8194\Dgm@tempa195\let\CurrentOption\@empty196}197\ProcessOptionsWithKV{Dogma}198\AtEndOfPackage{%199\let\@unprocessedoptions\relax200}201\DeclareTextFontCommand{\dogmabold}{%202\fontfamily{fdg}\fontseries{b}\selectfont}203\DeclareTextFontCommand{\dogmablack}{%204\fontfamily{fdg}\fontseries{h}\selectfont}205\DeclareTextFontCommand{\dogmaoutline}{%206\fontfamily{fdg}\fontshape{ol}\fontseries{b}\selectfont}207\DeclareTextFontCommand{\dogmascript}{%208\fontfamily{fdg}\fontshape{it}\selectfont}209/style9AcknowledgementThispackagewaswrittenforNoStarchPress,http://www.
nostarch.
com.
References[1]KarlBerry.
Fontname.
FilenamesForTEXFonts,September2005.
http://ctan.
tug.
org/tex-archive/info/fontname.
[2]PhilippLehman.
TheFontInstallationGuide,December2004.
http://www.
ctan.
org/tex-archive/info/Type1fonts/fontinstallationguide.
[3]AlanHoenig.
TEXUnbound:LATEXandTEXStrategiesforFonts,Graphics,andMore.
OxfordUniversityPress,USA,1998.
10ChangeHistoryv1.
0General:Firstfullyfunctionalver-sion1v1.
0aGeneral:Documentationupdate.
.
1v1.
0bGeneral:Documentationupdate.
.
1v1.
0cGeneral:Installationupdate1v1.
1General:Addedletterspacedfont.
1v1.
2qspread:Changedspacing5v1.
3General:Addedseveralletterspacedfonts1Documentationupdate1kspread:Changedspacing4qspread:Changedspacing5rspread:Changedspacing5sspread:Changedspacing511IndexNumberswritteninitalicrefertothepagewherethecorrespondingentryisde-scribed;numbersunderlinedrefertothecodelineofthedenition;numbersinromanrefertothecodelineswheretheentryisused.
Symbols\@classoptionslist.
178,179\@currext191\@currname191\@empty.
.
.
69,177,195\@expandtwoargs.
.
.
184\@for179\@ifundefined180\@ptionlist191\@removeelement.
.
.
184\@tempc176\@unprocessedoptions199\@unusedoptionlist.
185A\a46,76\adddriver164\AtEndOfPackage.
.
.
198B\begin21\bye146,167C\close88\CodelineIndex.
.
.
.
18\csname67,72,78,81,83\CurrentOption179,180,183,184,195D\day62\DeclareFontFamily.
76\DeclareTextFontCommand.
201,203,205,207\def45,174,175\define@key173\Dgm@@scale69,71,94,96,98,100,102,104,106,108,110,112,114,116,121,123,125,127,129,131,133,135,137,139,141,143\Dgm@scale174\Dgm@tempa.
.
.
177,183,189,191,194\do80,82,179\DocInput22\documentclass.
.
.
.
12\dogmablack203\dogmabold201\dogmaoutline205\dogmascript207\donedrivers166E\edef47,48,71,183,189\else70,178\EnableCrossrefs.
.
20\encoding150\end23\endcsname.
68,72,78,81,83\endencoding159\endinput87\endinstallfonts.
.
117,144\endrecordtransforms145\expandafter67F\fd45\fi61,62,74,188\fontfamily.
202,204,206,208\fontinstcc44\fontinstversion53,63\fontseries202,204,206\fontshape.
.
.
206,208\fromafm.
.
36–39,41,43G\g85\gobblethree.
.
155,156I\ifnum61,62\ifx67,178\input.
.
.
.
26,162,165\inputetx.
.
.
.
157,158\installfamily.
92,119\installfont.
93,95,97,99,101,103,105,107,109,111,113,115,120,122,124,126,128,130,132,134,136,138\installfontas140,142\installfonts.
.
91,118\int.
.
.
.
40,42,151–154J\jobname52K\kspread31L\left71\let.
69,80,82,156,176,177,195,199\ligature156\lowercase.
.
47–51,58M\month61N\NeedsTeXFormat.
.
.
.
1\noexpand48,190\normalcc90O\open50options:scaled312\out.
.
.
51–55,57–59,66,67,69–71,74–76,79,86,87P\PageIndex17\percent51–53,55,73,74\ProcessOptionsWithKV175,197\ProvidesClass5\ProvidesFile3,6,7,58Q\qspread32R\RecordChanges.
.
.
.
19\recordtransforms.
35\reencodefont.
.
.
.
36–39,41,43\relax68,149,176,178,199\remove82\RequirePackage170–172\resetint.
.
.
.
151–154\resetstr163\right73\rspread33Sscaled(option)3\selectfont.
202,204,206,208\setcommand155\setint29–34\setkeys190\slantfont40,42\space62,63,67,69,71,72\sspread34\string.
.
58,67–72,74,76,87,94,96,98,100,102,104,106,108,110,112,114,116,121,123,125,127,129,131,133,135,137,139,141,143\substitute80\substitutesilent27,28T\textdogmablack.
.
.
.
3\textdogmabold3\textdogmaoutline.
.
3\textdogmascript.
.
.
3\the60–62,76\transformfont36–40,42U\usepackage13–15X\x85Y\year6013
A2Hosting主机,A2Hosting怎么样?A2Hosting是UK2集团下属公司,成立于2003年的老牌国外主机商,产品包括虚拟主机、VPS和独立服务器等,数据中心提供包括美国、新加坡softlayer和荷兰三个地区机房。A2Hosting在国外是一家非常大非常有名气的终合型主机商,拥有几百万的客户,非常值得信赖,国外主机论坛对它家的虚拟主机评价非常不错,当前,A2Hosting主机庆祝1...
ZJI原名维翔主机,是原来Wordpress圈知名主机商家,成立于2011年,2018年9月更名为ZJI,提供香港、日本、美国独立服务器(自营/数据中心直营)租用及VDS、虚拟主机空间、域名注册业务。ZJI今年全新上架了台湾CN2线路服务器,本月针对香港高主频服务器和台湾CN2服务器提供7折优惠码,其他机房及产品提供8折优惠码,优惠后台湾CN2线路E5服务器月付595元起。台湾一型CPU:Inte...
乐凝网络怎么样?乐凝网络是一家新兴的云服务器商家,目前主要提供香港CN2 GIA、美国CUVIP、美国CERA、日本东京CN2等云服务器及云挂机宝等服务。乐凝网络提供比同行更多的售后服务,让您在使用过程中更加省心,使用零云服务器,可免费享受超过50项运维服务,1分钟内极速响应,平均20分钟内解决运维问题,助您无忧上云。目前,香港HKBN/美国cera云服务器,低至9.88元/月起,支持24小时无理...
fontfamily为你推荐
fontfamilyfont-family:ms shell dlg是什么意思?支付宝查询余额怎么查询支付宝里的余额二叉树遍历写出二叉树的先序遍历、中序遍历、后序遍历。网站联盟网络联盟是什么意思蘑菇街美丽说蘑菇街美丽说唯品会天猫京东。女生买衣服,哪个好电子商务网站模板我想开发一个电子商务网站,但是想加入自己设计的模板,可以吗?分词技术什么是seo分词技术什么是云平台云平台和云计算的区别是什么?blogcn哪种博客更好...sina.baidu.blogcn还是.............?php购物车PHP中用json实现购物车功能,怎么实现
vps优惠码 免费com域名申请 快速域名备案 132邮箱 highfrequency 狗爹 blackfriday 56折 主机屋免费空间 realvnc lighttpd 165邮箱 vip购优汇 美国堪萨斯 华为云服务登录 linode支付宝 免费ftp 秒杀品 ledlamp 北京主机托管 更多