Example: tourism industry

The textgreek package - ibiblio

Thetextgreekpackage Leonard at LATEX packagetextgreekprovides NFSS text symbols for Greekletters. This way the author can use Greek letters in text without changingto math mode. The usual font selection commands \textbf applyto these Greek letters as to usual text and the font is upright in an uprightenvironment. Further,hyperrefcan use these symbols in PDF-strings suchas Introduction22 package Options .. Advanced commands ..33 Use -decay in a heading ..34 Compatibility45 Limitations46 Copyright47 package Options .. Font selection .. Greek letter definitions .. macro .. of Greek letters ..98 Change History109 Index11 This document corresponds , dated 2011/10 IntroductionThe usual way to print Greek letters in LATEX uses the math mode.

Font sam-ple: " ˘o ˇˆ˙˝˛’˜ !AB E ZH IK MN O R T ˚# artemisia use Artemisia fonts as a companion for all fonts except Helvetica and Euler. Font sample: αβγδε ζη ικ λmνξο πρστυ φχψω ΑΒΓDΕ ...

Tags:

  Samples, Packages, Samp le, The textgreek package, Textgreek

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of The textgreek package - ibiblio

1 Thetextgreekpackage Leonard at LATEX packagetextgreekprovides NFSS text symbols for Greekletters. This way the author can use Greek letters in text without changingto math mode. The usual font selection commands \textbf applyto these Greek letters as to usual text and the font is upright in an uprightenvironment. Further,hyperrefcan use these symbols in PDF-strings suchas Introduction22 package Options .. Advanced commands ..33 Use -decay in a heading ..34 Compatibility45 Limitations46 Copyright47 package Options .. Font selection .. Greek letter definitions .. macro .. of Greek letters ..98 Change History109 Index11 This document corresponds , dated 2011/10 IntroductionThe usual way to print Greek letters in LATEX uses the math mode.

2 $\beta$produces . With the default math fonts, the Greek letters produced this way areitalic. Generally, this is ok, since they represent variables and variables are typesetitalic with the default math font settings. In some circumstances, however, Greekletters don t represent variables and should be typeset upright. in -decay or A .The packageupgreekprovides commands to set upright Greek letters in mathmode, but it does not provide text symbols. You could use them in text with$\upbeta$-decay, for example, which gives -decay, but the font will always bethe same and will not be adapted to the surrounding packagetextgreekprovides text commands for Greek letters in text thatadapt to the surrounding font. For example inbold text, the command\textbetagives while$\upbeta$gives.

3 As textsymbols, Greek letters can also be used in unicode PDF-strings, forexample in PDF-bookmarks provided by thehyperrefpackage. See section UsageThe following list shows the commands provided by this package . You can usethese commands in any context.\textalpha \textbeta \textgamma \textdelta \textepsilon \textzeta \texteta \texttheta \textiota \textkappa \textlambda \textmu \textmugreek \textnu \textxi \textomikron \textpi \textrho \textsigma \texttau \textupsilon \textphi \textchi \textpsi \textomega \textAlpha \textBeta \textGamma \textDelta \textEpsilon \textZeta \textEta \textTheta \textIota \textKappa \textLambda \textMu \textNu \textXi \textOmikron \textPi \textRho \textSigma \textTau \textUpsilon \textPhi \textChi \textPsi \textOmega \textvarsigma \straightphi \scripttheta \straighttheta \straightepsilon Thetextcomppackage also defines\ not replace a priordefinition of\textmuif recognized.

4 Therefore it is often better to use\textmugreekinstead to avoid unexpected package OptionsYou can choose the Greek fonts the default fonts. This option is the default. Font sample: euleruse the Euler fonts as a companion for all fonts except Helvetica. Font sam-ple: artemisiause Artemisia fonts as a companion for all fonts except Helveticaand Euler. Font sample: Advanced commandsThe package provides a number of options that allows to select a font that willbe used. The list of font substitutions is written to the log file. If you need\textgreekfontmapto customize the font substitutions, you can redefine\textgreekfontmap.

5 Forexample, the font map for the optioneulermay also be set by:\renewcommand*{\textgreekfontmap}{{ph v/*/*}{U/psy/*/*}{*/bx/n}{U/eur/b/n}{*/b /n}{U/eur/b/n}{*/*/n}{U/eur/m/n}{*/*/it} {OML/*/*/*}}The list contains pairs of options: the font spec (without the encoding) of thefont to be replaced and the font spec (with encoding) of the font to be used ascompanion. The wildcard * may be used to match any family, series, or shaperespectively. The first match is effective. Fonts that do not matched at all will besubstituted with the same font-family, font-series, and font-shape in the encodingLGR. Since the Euler font (eur) does not use the encoding LGR, it has to bereplaced by U/eur/ ExamplesMost users will use this package to get upright Greek letters, but you can use itfor italic letters too: for example\textit{\textdelta}.

6 When you are using Helvetica, the font Symbol is used for Greek letters: Remember that TEX skips over whitespace directly following a command. Add{}to get an interword space after a command. is genereted by\textsigma{}. Use -decay in a headingThe command used for the heading was\subsection{Use \textquotedblleft\textbeta-decay\textquo tedblright {} in a heading}34 CompatibilityIf you use the packagehyperrefI recommend to use the optionunicode, \usepackage[unicode]{hyperref}. Hyperref will recognize the textgreek lettersand replace them with unicode in can useupgreekandtextgreekin the same document. If you want touse a textgreek letter inside a math environment, you can place it into an\mboxor\textnormal, or use\textfrom the packageamstext, $\lambda_{\text{\textbeta}}$.

7 5 LimitationsThe variants , , and are not included in the LGR font encoding and is notincluded in Symbol either. For the commands\straighttheta,\straightphi,and\ straightepsilonthe missing symbols are substituted fromOML/*/* may need to customize\textgreekfontmapif you use other fonts thanComputer Modern and Latin version number of this package is still below Many details may stillchange from version to CopyrightCopyright 2010,2011 Leonard MichlmayrThis work may be distributed and/or modified under the conditions of the LaTeXProject Public License, either version of this license or (at your option) any laterversion. The latest version of this license is in version or later is part of all distributions of LaTeX version 2005/12/01 work has the LPPL maintenance status author-maintained.

8 The Current Maintainer of this work is Leonard work consists of the file and the derived files ImplementationLoad the LGR font \InputIfFileExists{ }{%2\PackageInfo{ textgreek }{Loading the definitions for the Greek font%3encoding.}}{%4\PackageError{textgr eek}{Cannot find the file }{% is a file that contains the definitions for the Greek6font encoding LGR. Maybe it comes with the babel package .}} package Options7\DeclareOption{cbgreek}{%8\renew command*{\textgreekfontmap}{%49{eur/*/*} {U/eur/*/*}10{phv/*/*}{U/psy/*/*}}}%11\D eclareOption{euler}{%12\renewcommand*{\t extgreekfontmap}{%13{phv/*/*}{U/psy/*/*} 14{*/bx/n}{U/eur/b/n}15{*/b/n}{U/eur/b/n }16{*/*/n}{U/eur/m/n}17{*/*/it}{OML/*/*/ *}}}%18\DeclareOption{artemisia}{%19\ren ewcommand*{\textgreekfontmap}{%20{eur/*/ *}{U/eur/*/*}21{phv/*/*}{U/psy/*/*}22{*/ b/n}{LGR/artemisia/b/n}23{*/bx/n}{LGR/ar temisia/bx/n}24{*/*/n}{LGR/artemisia/m/n }25{*/b/it}{LGR/artemisia/b/it}26{*/bx/i t}{LGR/artemisia/bx/it}27{*/*/it}{LGR/ar temisia/m/it}28{*/b/sl}{LGR/artemisia/b/ sl}29{*/bx/sl}{LGR/artemisia/bx/sl}30{*/ */sl}{LGR/artemisia/m/sl}31{*/*/sc}{LGR/ artemisia/m/sc}32{*/*/sco}{LGR/artemisia /m/sco}}}%\textgreekfontmapInitialize\te xtgreekfontmap.

9 Set the default option and process the \newcommand*{\textgreekfontmap}{}%34\Exe cuteOptions{cbgreek}35\ProcessOptions\re lax%36\PackageInfo{ textgreek }{Loaded fontmap: \textgreekfontmap.} Font selection\ textgreek @findfontChose a companion \def\ textgreek @setfont#1/#2/#3/#4\relax{ %38\ textgreek @ematch{#1}{*}{}{\fontencod ing{#1}}%39\ textgreek @ematch{#2}{*}{}{\f ontfamily{#2}}%40\ textgreek @ematch{#3}{* }{}{\fontseries{#3}}%41\ textgreek @ematch {#4}{*}{}{\fontshape{#4}}}%Process a list of font \def\ textgreek @eof{}%43\def\ textgreek @re turn#1#2\ textgreek @eof{%44\fi#1}%45\def\ textgreek @ematch#1#2#3#4{%46\begingroup% 47\edef\tempa{#1}\edef\tempb{#2}\def\tem pc{*}%48\def\return##1##2\endgroup{\fi\e ndgroup##1}%49\ifx\tempa\tempb\return{#3 }\fi%50\ifx\tempa\tempc\return{#3}\fi%51 \iftrue\return{#4}\fi%52\endgroup}%53\de f\ textgreek @matchfont#1/#2/#3\relax#4#5{ %554\ textgreek @ematch{#1}{\f@family}{%55 \ textgreek @ematch{#2}{\f@series}{%56\tex tgreek@ematch{#3}{\f@shape}{#4}{#5}}%57{ #5}}%58{#5}%59}%60\def\ textgreek @findfon t@#1#2#3\ textgreek @eof{%61\ textgreek @mat chfont#1\relax%62{\ textgreek @setfont#2\r elax}%63{\ textgreek @findfont#3\ textgreek @eof}}%64\def\ textgreek @findfont#1\textg reek@eof{%65\begingroup%66\def\temp{#1}% 67\def\return##1##2\endgroup{\fi\endgrou p##1}%68\ifx\temp\ textgreek @eof\else%69\ return{\ textgreek @findfont@#1\ textgreek @ eof}%70\fi\endgroup}%\textgreekfontSelec t the Greek font encoding and apply font \newcommand*{\textgreekfont}{%72\fontenc oding{LGR}%73\edef\ textgreek @fontmap{\te xtgreekfontmap}%74\expandafter\ textgreek @findfont\ textgreek @fontmap\ textgreek @eo f%75\selectfont%76}%\TextGreekProduce a Greek letter using the correct font.

10 If the font is Euler or Symbol,convert to the appropriate font \DeclareRobustCommand*{\ textgreek }[1]{%7 8\begingroup%79\textgreekfont%80\edef\te mpa{\f@family}%81\let\tempd\f@encoding%8 2\def\tempb{eur}\def\tempc{psy}%83\def\t empe{OML}%84\ifx\tempd\tempe\ textgreek @r eturn{\lgrtoeuler#1}\fi%85\ifx\tempa\tem pb\ textgreek @return{\lgrtoeuler#1}\fi%86 \ifx\tempa\tempc\ textgreek @return{\lgrto symbol#1}\fi%87#1%88\ textgreek @eof%89\en dgroup}%\ textgreek @SelectThe macro\ textgreek @Select{ LGR }{ OML }{ symbol }will produce a Greekletter using the font set by\textgreekfontand selcting the character from thethree arguments corresponding to the font \DeclareRobustCommand*{\ textgreek @Select }[3]{%91\begingroup%92\textgreekfont%93\ edef\tempa{\f@family}%94\let\tempd\f@enc oding%95\def\tempb{eur}\def\tempc{psy}%9 6\def\tempe{OML}%97\ifx\tempd\tempe\text greek@return{#2}\fi%698\ifx\tempa\tempb\ textgreek @return{#2}\fi%99\ifx\tempa\tem pc\ textgreek @ Greek letter Utility macro\DeclareTextGreekSymbol\DeclareText GreekSymbol{ letter }{ LGR }[ OML ][ U ]will define\textletterusing the character code LGR for LGR-encoded fonts, OML formath fonts including Euler, and U for the Symbol font.}


Related search queries