excuse me.. i don't explain my thought very well...
i'd like have a command that, passed the name of fonts, set the font of following text.
i'd want use a command like this: \usefont{name of font}
for example:
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Someone else might have some better solutions. I'm a newbie myself.
And perhaps it goes without saying, but I hope you have a good reason for wanting this. There's nothing more annoying than reading something that changes fonts often for no good reason. Things tend to look better when one font or font family is used throughout. Just my personal opinion.
allevo wrote:[...] but what is the parameter that i pass to \fontfamily?!? [...]
This parameter is an abbreviation which identifies the font definitely.
allevo wrote:[...] where can i find a list containing all parameters?!?!? [...]
I'm not aware of a comprehensive list. But you can take a look at the package files themselves. The packages do in principal nothing else than you can see in my sample code below. They redefine the default settings to make a whole document appear in the chosen font. For more information you can take a look at the PSNFSS or start a search engine and search for the "LaTeX Font Selection Scheme" or "NFSS".
allevo wrote:[...] at pg 9 of the pdf linked there're a list. is it complete?!?!
I only see a single page in this document. But of course the list is complete.
Compare the parameters with those you can find in the bera font sample document. Note that bera needs to be installed for this example because the new commands need access to the font definition files. In LaTeX you cannot specify a font like you want to. Perhaps XeTeX is worth a look.
allevo wrote:at pg 9 of the pdf linked there're a list. is it complete?!?!
I only see a single page in this document. But of course the list is complete.
I believe he was referring to the first PDF I linked to, the one on PSNFSS, not the second (the one on Bera). The one on Bera has only one page, but the other has more.
frabjous wrote:I believe he was referring to the first PDF I linked to, the one on PSNFSS, not the second (the one on Bera). The one on Bera has only one page, but the other has more.
I see. But for this document it is also true that the data table containing the font shapes is complete.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p