f

#### Original Plain TeX Fonts using LaTeX's \DeclareFixedFont Command

Hi,

I'd like to use the computer modern, bold-extended, slanted 10-point
font (cmbxsl10) in a style file. I'd like to use \DeclareFixedFont to
do it since I want to ensure that the font family, shape, etc., doesn't
change with the enclosing environment, but when I attempt, e.g.,

\DeclareFixedFont{\myfont}{TS1}{cmbxsl10}{m}{n}{10pt}

I get the message

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

and the desired font is not selected. However, if I use the plain TeX command

\font\myfont=cmbxsl10

then I get the proper font (in a LaTeX document).

Have I got the wrong idea in applying the \DeclareFixedFont command? Am I
using the command incorrectly?
--
%  Randy Yates                  % "The dreamer, the unwoken fool -
%% Fuquay-Varina, NC            %  in dreams, no pain will kiss the brow..."
%%% 919-577-9882                %

 0
yates (3949)
7/1/2005 1:46:43 AM
comp.text.tex 39029 articles. 3 followers.

7 Replies
1272 Views

Similar Articles

[PageSpeed] 50

Randy Yates <yates@ieee.org> writes:

> Hi,
>
> I'd like to use the computer modern, bold-extended, slanted 10-point
> font (cmbxsl10) in a style file. I'd like to use \DeclareFixedFont to
> do it since I want to ensure that the font family, shape, etc., doesn't
> change with the enclosing environment, but when I attempt, e.g.,
>
>   \DeclareFixedFont{\myfont}{TS1}{cmbxsl10}{m}{n}{10pt}

Sorry, that should be

\DeclareFixedFont{\myfont}{OT1}{cmbxsl10}{m}{n}{10pt}

i.e., I believe this is the right encoding, but I still get the stated error.

> I get the message
>
>   LaTeX Font Warning: Some font shapes were not available, defaults substituted.

--RY

--
%  Randy Yates                  % "And all that I can do
%% Fuquay-Varina, NC            %  is say I'm sorry,
%%% 919-577-9882                %  that's the way it goes..."
%%%% <yates@ieee.org>           % Getting To The Point', *Balance of Power*, ELO

 0
yates (3949)
7/1/2005 1:48:58 AM
Randy Yates <yates@ieee.org>  schrieb:

> Randy Yates <yates@ieee.org> writes:
>
>> Hi,
>>
>> I'd like to use the computer modern, bold-extended, slanted 10-point
>> font (cmbxsl10) in a style file. I'd like to use \DeclareFixedFont to
>> do it since I want to ensure that the font family, shape, etc.,
>> doesn't change with the enclosing environment, but when I attempt,

>    \DeclareFixedFont{\myfont}{OT1}{cmbxsl10}{m}{n}{10pt}
>
> i.e., I believe this is the right encoding, but I still get the stated
> error.
>
>> I get the message
>>
>>   LaTeX Font Warning: Some font shapes were not available, defaults
>>   substituted.

LaTeX is looking for a font with familyname cmbxsl10. This family
doesn't exist. Your font is part of the cmr family.

Use:

\DeclareFixedFont{\myfont}{OT1}{cmr}{bx}{sl}{10pt}

But I would suggest to use T1 encoding,

\DeclareFixedFont{\myfont}{T1}{cmr}{bx}{sl}{10pt}

--
Ulrike Fischer
e-mail: zus�tzlich meinen Vornamen vor dem @ einf�gen.
e-mail: add my first name between the news and the @.

 0
news9686 (1970)
7/1/2005 7:37:28 AM
Randy Yates <yates@ieee.org> writes:

>    \DeclareFixedFont{\myfont}{OT1}{cmbxsl10}{m}{n}{10pt}

Since when is "cmbxsl10" a font family?  Since when is medium, normal
the same as bold slanted?

\DeclareFixedFont{\myfont}{OT1}{cmr}{bx}{sl}{10pt}

--
Donald Arseneau                          asnd@triumf.ca

 0
asnd (4601)
7/1/2005 8:26:20 AM

Ulrike Fischer wrote:
> Randy Yates <yates@ieee.org>  schrieb:
>
> > Randy Yates <yates@ieee.org> writes:
> >
> >> Hi,
> >>
> >> I'd like to use the computer modern, bold-extended, slanted 10-point
> >> font (cmbxsl10) in a style file. I'd like to use \DeclareFixedFont to
> >> do it since I want to ensure that the font family, shape, etc.,
> >> doesn't change with the enclosing environment, but when I attempt,
>
> >    \DeclareFixedFont{\myfont}{OT1}{cmbxsl10}{m}{n}{10pt}
> >
> > i.e., I believe this is the right encoding, but I still get the stated
> > error.
> >
> >> I get the message
> >>
> >>   LaTeX Font Warning: Some font shapes were not available, defaults
> >>   substituted.
>
> LaTeX is looking for a font with familyname cmbxsl10. This family
> doesn't exist. Your font is part of the cmr family.
>
> Use:
>
> \DeclareFixedFont{\myfont}{OT1}{cmr}{bx}{sl}{10pt}
>
> But I would suggest to use T1 encoding,
>
> \DeclareFixedFont{\myfont}{T1}{cmr}{bx}{sl}{10pt}

But that would select the font ecbl1000, not cmbxsl10 as was
specifically requested.

If one really wants a particular font, with no changes in attributes or
size, you can't beat \font for conciseness.

Dan


 0
luecking (1319)
7/1/2005 7:19:22 PM
Donald Arseneau <asnd@triumf.ca> writes:

> Randy Yates <yates@ieee.org> writes:
>
>>    \DeclareFixedFont{\myfont}{OT1}{cmbxsl10}{m}{n}{10pt}
>
> Since when is "cmbxsl10" a font family?  Since when is medium, normal
> the same as bold slanted?

Since when is LaTeX's font selection to font file mapping scheme obvious?
--
%  Randy Yates                  % "Rollin' and riding and slippin' and
%% Fuquay-Varina, NC            %  sliding, it's magic."
%%% 919-577-9882                %
%%%% <yates@ieee.org>           % 'Living' Thing', *A New World Record*, ELO

 0
yates (3949)
7/2/2005 4:13:59 PM
Randy Yates <yates@ieee.org> writes:

> Donald Arseneau <asnd@triumf.ca> writes:
>
> > Randy Yates <yates@ieee.org> writes:
> >
> >>    \DeclareFixedFont{\myfont}{OT1}{cmbxsl10}{m}{n}{10pt}
> >
> > Since when is "cmbxsl10" a font family?  Since when is medium, normal
> > the same as bold slanted?
>
> Since when is LaTeX's font selection to font file mapping scheme obvious?

It is not obvious, but not strange to that extent.

I would also recommend using \font rather than \DeclareFixedFont.

(Quiz: it is \sfshape, \sfseries, or \sffamily?)

--
Donald Arseneau                          asnd@triumf.ca

 0
asnd (4601)
7/2/2005 10:16:10 PM
Randy Yates wrote:
> Since when is LaTeX's font selection to font file mapping scheme obvious?

When in doubt, you can always look in the font definition file. It's
important to realise that \DeclareFixedFont will only select a font
that LaTeX knows about, and you have to follow the conventions of the
definition of the font in LaTeX. (And always re-read fntguide.pdf.)

In your case, ot1cmr.fd contains the following line:
\DeclareFontShape{OT1}{cmr}{bx}{sl}
So you just needed to copy that and add on the 10pt part.

As others have said, however, often in these cases it would be easy to
just type
\font\myfont="cmbxsl10" at 10pt

Donald Arseneau wrote:
> (Quiz: it is \sfshape, \sfseries, or \sffamily?)

That's easy!
Separate families can be totally unrelated, italics are often of
totally different shape to upright, and the only one left is series :)

This might just be familiarity through use speaking, though.

Will Robertson


 0
will743 (209)
7/3/2005 12:56:39 AM

Similar Artilces:

ClearType: Does Java AWT use its own font or use the OS's font in displaying text field?
Hi folks, I need to display some ClearType text in a static text field of a GUI window using Java AWT. I heard that Java 2D itself currently does not support ClearType sub-pixel technology. I am wondering if AWT can render font using OS's global font setting, for instance, on Windows XP, the ClearType font can be enabled globally, on Linux, it also has sub-pixel rendering technology can can be enabled OS wide. I am wondering if the Java AWT uses OS's font by default? Furthermore, what shall I do if I want to capture the RGB pixel values of the displayed text and save to harddisk? Th...

latex '\.' tex '_'
Dear all, I have a statement de_rm, d means derivate, rm is a subscript. I have the folowing problem, when I use: legend('e_rm','Interpreter','tex') is good for subscript, legend('\.e','Interpreter','latex') is good for derivate. But how can use this two things together? Gergo Nyiro wrote: > Dear all, > > I have a statement de_rm, d means derivate, rm is a subscript. I > have the folowing problem, when I use: > legend('e_rm','Interpreter','tex') is good for subscript, > legend('\.e','Interp...

How to create PDFs with a 'similar-enough' font embedded if the original document's font license does forbid embedding?
My questions follow below; here are my facts first: 0. I'm using a customer-owned MS Windows Vista notebook during calls on-site (my own one has no permission to be plugged into the network there) with MS Office 2007 as well as Acrobat Professional 9.1.2 installed. 1. I have gotten a Word 2007 document, composed entirely of text formatted with a font "LucidaSans" (plus variations: *-italic, *-bold, *-bolditalic). 2. BTW, I don't know *how* Word originally found the LucidaSans font -- it's not by default installed in %windir%\fonts. However, it's available in "...

Now it's Tex Murphy's turn at Kickstarter
One of the series creators (and the person who played the role) Chris Jones has announced that the next Tex Murphy game will try to use Kickstarter for funding ".... we hope to bring the next Tex Murphy game to an a much bigger, dare I say, epic level - More actors, locations, broader stories and yes - even meaningful, varied story paths. With these elements, we have a better chance of expanding the audience and a better chance of commercial success and continuation. All of this would allow us to make a true Adventure game with Immersive 3D world, Full Motion Video, and l...

utility to combine a .tex with several \input's into one .tex?
I usually store various parts of my header in a common location and then refer to them with \input commands for individual documents. (I imagine most people do this too? Or is there a better way?) The problem is sometimes I want to send someone a .tex file and with this system it means either sending several .tex files or manually replacing the \input commands with their contents. This seems like it should be a common task...anyone know of any scripts around that automate this? Thanks! Possibly http://www.ctan.org/pkg/latexexpand ? Jim On Mar 4, 10:47 am, Jim <jim.heffe......

what's the meaning of plain text file's executable attribute

Using 'put' command to place text in figures
If I try to use the 'put' command within a 'figure' environment - for example, \begin{figure} : : (stuff) : \put(20,20){text} \end{figure} then I get an 'Undefined control sequence' error at some other (seemingly random) line number when I compile. Any ideas why this is? Thanks for any help preston.simon@gmail.com wrote: > If I try to use the 'put' command within a 'figure' environment - for > example, > \begin{figure} > : > : (stuff) > : > \put(20,20){text} > \end{figure} > > then I get an 'Undefined control sequence' error at some other > (seemingly random) line number when I compile. Any ideas why this is? If you can't send a minimal example, please at least send an extract from the log file. You don't even tell us what the undefined control sequence is. Maybe it is a typo, one of yours, in <stuff>. Hope this helps. -- Jonathan <preston.simon@gmail.com> wrote in message news:1127926863.534676.55970@g14g2000cwa.googlegroups.com... > If I try to use the 'put' command within a 'figure' environment - for > example, > \begin{figure} > : > : (stuff) > : > \put(20,20){text} > \end{figure} > > then I get an 'Undefined control sequence' error at some other > (seemingly random) line number when I compile. Any ideas why this is? > The \put command has to be inside a picture environment. Peter W. Pe...

Old version of plain.tex and hyphen.tex
Hello All, I am trying to recreate an old version of our software that assumes an old version of Knuth's plain.tex (together with the version of hyphen.tex that accompanied it). I have searched the Internet for plain.tex Version 3.1415926 (together with hyphen.tex) with no success. Does anyone have a copy of these two files that they could email back to me? With great appreciation in advance! Brian O'Toole On Jul 2, 5:01 pm, "Brian O'Toole" <boto...@mathworks.com> wrote: > Hello All, > > I am trying to recreate an old version of our software that assumes an old > version of Knuth's plain.tex (together with the version of hyphen.tex that > accompanied it). I have searched the Internet for plain.tex Version > 3.1415926 (together with hyphen.tex) with no success. Does anyone have a > copy of these two files that they could email back to me? > > With great appreciation in advance! > Brian O'Toole TeXLive 7 (2002) has that version. If you can't get a copy of that CD, email me and I can send you the necessary files. Dan ...

Using border.tex on an existing tex document
Hi I'm trying to use border.tex from the TeX archive to apply a border around = a page (http://texcatalogue.sarovar.org/entries/border.html). At the moment, as soon as I switch on borders using \borderson, the border = appears but all of my content disappears. Without \borderson the page conte= nt renders as expected (though of course, no border!). I've tried fiddling = with the page dimensions etc but I'm not entirely convinced thats whats cau= sing it. The border.tex macro looks like it should do exactly what I want, = apart from the missing content ;( The original tex content was generated using OpenJade ("openjade" version "= 1.3.2", "OpenSP" version "1.5") to convert from DocBook (v4.5) SGML/DSSSL i= f that makes any difference. The problem we have is DocBook/OpenJade/SGML/D= SSSL doesn't provide a way to wrap an entire page with a border (the best I= can do is wrap the page content in a border meaning headers and footers ge= t their own disjointed borders). I'm processing the tex file using pdfjadetex (pdfTeX (Web2C 7.4.5) 3.14159-= 1.10b, kpathsea version 3.4.5) Thanks in advance :) Ian ikent@companieshouse.gov.uk wrote: > I'm trying to use border.tex from the TeX archive to apply a border around a page (http://texcatalogue.sarovar.org/entries/border.html). > > At the moment, as soon as I switch on borders using \borderson, the border appears Except that border.tex % border.tex: Macros...

Using Beamer's font even when siunitx and formulae are used
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, In some beamers, I need to use the \SI{}{} command, together with numbers and equations. Consider for example <http://www.student.montefiore.ulg.ac.be/~merciadri/peyresq/presentation_microcentrale_peyresq.pdf>. At p. 3/16, one might notice that the second item (Between 1620 ...') has units which are not in the same font as beamer's one (which are sans-serif fonts). How could I manage to use the same font (beamer's one) for units? Thanks. - -- Merciadri Luca See http://www.student.montefiore.ulg.ac.be/~merciadri/ - -- A good laugh is sunshine in a house. (William Thackery) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/> iEYEARECAAYFAky77poACgkQM0LLzLt8Mhw27QCgjMYnW1usXJRzM6bc09Ycfxtg CaUAnjej1cJeVM3TnDhXmxjVjg4AM0I9 =Wh1X -----END PGP SIGNATURE----- On 18/10/2010 07:52, Merciadri Luca wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > In some beamers, I need to use the \SI{}{} command, together with > numbers and equations. Consider for example > > <http://www.student.montefiore.ulg.ac.be/~merciadri/peyresq/presentation_microcentrale_peyresq.pdf>. > > At p. 3/16, one might notice that the second item (`Between 1620 ...') > has units which are not in the same font as beamer's one (which are > sans-serif fonts). How could I...

question about a command like 'goto ' in Python's bytecode or it's just a compiler optimization?
My Python version is 2.5.2; When I reading the bytecode of some pyc file, I always found that there are many jump command from different position,but to the same position. You can see this situation in following code(this bytecode is just from one .pyc file and I don't have its source .py file): ...... 526 POP_TOP '' 527 LOAD_FAST 'imeHandle' 530 LOAD_ATTR 'isCnInput' 533 CALL_FUNCTION_0 '' 536 JUMP_IF_FALSE '574' 539 POP_TOP '' 540 LOAD_FAST 'GUIDefine' 543 LOAD_ATTR 'Can...

Nvidia's 'NV60' (GT300) apparently uses MIMD architecture to take on Intel's Larrabee and any other challenger
Rumour: Nvidia GT300 architecture revealed Author: Ben Hardwidge Published: 23rd April 2009 How do you follow a GPU architecture such as Nvidia's original G80? Possibly by moving to a completely new MIMD GPU architecture. Although Nvidia hasn=92t done much to the design of its GPU architecture recently - other than adding some more stream processors and renaming some of its older GPUs - there=92s little doubt that the original GeForce 8-series architecture was groundbreaking stuff. How do you follow up something like that? Well, according to the rumour mill, Nvidia has similarly radical ideas in store for its upcoming GT300 architecture. Bright Side of News claims to have harvested =93information confirmed from multiple sources=94 about the part, which looks as though it could be set to take on any threat posed by Intel=92s forthcoming Larrabee graphics processor. Unlike today=92s traditional GPUs, which are based on a SIMD (single instruction, multiple data) architecture, the site reports that GT300 will rely on =93MIMD-similar functions=94 where =93all the units work in MPMD mode=94. MIMD stands for multiple-input, multiple-data, and it=92s a technology often found in SMP systems and clusters. Meanwhile, MPMD stands for multiple-program, multiple data. An MIMD system such as this would enable you to run an independent program on each of the GPU=92s parallel processors, rather than having the whole lot running the same program. Put simply, this could open up the pos...

Nvidia's 'NV60' (GT300) apparently uses MIMD architecture to take on Intel's Larrabee and any other challenger
Rumour: Nvidia GT300 architecture revealed Author: Ben Hardwidge Published: 23rd April 2009 How do you follow a GPU architecture such as Nvidia's original G80? Possibly by moving to a completely new MIMD GPU architecture. Although Nvidia hasn=92t done much to the design of its GPU architecture recently - other than adding some more stream processors and renaming some of its older GPUs - there=92s little doubt that the original GeForce 8-series architecture was groundbreaking stuff. How do you follow up something like that? Well, according to the rumour mill, Nvidia has similarly radical...

Web resources about - Original Plain TeX Fonts using LaTeX's \DeclareFixedFont Command - comp.text.tex

Resources last updated: 3/11/2016 2:58:15 PM