Re: selecting special fonts
Stacia Hartleben wrote: Is there a better way to select special special fonts other than doing ERT? I know under character I can change it to san serif or whatever but for a special font I installed I have to do something like this: \usefont{T1}{stacish}{m}{n} \selectfont myword \usefont{T1}{ae}{m}{n} \selectfont in a huge ERT snippet. Yes, you should create a macro. In your preamble put something like : \newcommand\stacia [1]{\usefont{T1}{stacish}{m}{n}% \selectfont% #1% \normalfont} and then in your text an ert with for example \stacia{Hartleben} With LyX 1.4 you can even use the character style and do the last part without ert. It is documented in the Wiki. Look in your LaTeX manual how you can create macros. It is easy to do and can save you a lot of time. Cheers, Charles -- http://www.kde-france.org
Re: selecting special fonts
Charles de Miramon wrote: Stacia Hartleben wrote: Is there a better way to select special special fonts other than doing ERT? I know under character I can change it to san serif or whatever but for a special font I installed I have to do something like this: \usefont{T1}{stacish}{m}{n} \selectfont myword \usefont{T1}{ae}{m}{n} \selectfont in a huge ERT snippet. Yes, you should create a macro. In your preamble put something like : \newcommand\stacia [1]{\usefont{T1}{stacish}{m}{n}% \selectfont% #1% \normalfont} \newcommand\stacia[1]{% bgroup \usefont{T1}{stacish}{m}{n}\selectfont#1% \egroup} then and then in your text an ert with for example \stacia{Hartleben} and then in your text an ert with for {\large example \stacia{Hartleben} and so on} also works. Herbert
Re: selecting special fonts
Herbert Voss wrote: Charles de Miramon wrote: \newcommand\stacia[1]{% bgroup \usefont{T1}{stacish}{m}{n}\selectfont#1% \egroup} I guess it is \bgroup Herbert, can you explain what is the purpose of \begingroup \endgroup ? The TLC2 (my Bible) is not very clear about it. Cheers, Charles -- http://www.kde-france.org
Re: selecting special fonts
Charles de Miramon wrote: Herbert Voss wrote: Charles de Miramon wrote: \newcommand\stacia[1]{% bgroup \usefont{T1}{stacish}{m}{n}\selectfont#1% \egroup} I guess it is \bgroup Herbert, can you explain what is the purpose of \begingroup \endgroup ? The TLC2 (my Bible) is not very clear about it. inside a group everything is local. And I have the old behaviour after leaving this macro (group). Means same font, same lengths, etc Herbert
Re: selecting special fonts
Stacia Hartleben wrote: Is there a better way to select special special fonts other than doing ERT? I know under character I can change it to san serif or whatever but for a special font I installed I have to do something like this: \usefont{T1}{stacish}{m}{n} \selectfont myword \usefont{T1}{ae}{m}{n} \selectfont in a huge ERT snippet. Yes, you should create a macro. In your preamble put something like : \newcommand\stacia [1]{\usefont{T1}{stacish}{m}{n}% \selectfont% #1% \normalfont} and then in your text an ert with for example \stacia{Hartleben} With LyX 1.4 you can even use the character style and do the last part without ert. It is documented in the Wiki. Look in your LaTeX manual how you can create macros. It is easy to do and can save you a lot of time. Cheers, Charles -- http://www.kde-france.org
Re: selecting special fonts
Charles de Miramon wrote: Stacia Hartleben wrote: Is there a better way to select special special fonts other than doing ERT? I know under character I can change it to san serif or whatever but for a special font I installed I have to do something like this: \usefont{T1}{stacish}{m}{n} \selectfont myword \usefont{T1}{ae}{m}{n} \selectfont in a huge ERT snippet. Yes, you should create a macro. In your preamble put something like : \newcommand\stacia [1]{\usefont{T1}{stacish}{m}{n}% \selectfont% #1% \normalfont} \newcommand\stacia[1]{% bgroup \usefont{T1}{stacish}{m}{n}\selectfont#1% \egroup} then and then in your text an ert with for example \stacia{Hartleben} and then in your text an ert with for {\large example \stacia{Hartleben} and so on} also works. Herbert
Re: selecting special fonts
Herbert Voss wrote: Charles de Miramon wrote: \newcommand\stacia[1]{% bgroup \usefont{T1}{stacish}{m}{n}\selectfont#1% \egroup} I guess it is \bgroup Herbert, can you explain what is the purpose of \begingroup \endgroup ? The TLC2 (my Bible) is not very clear about it. Cheers, Charles -- http://www.kde-france.org
Re: selecting special fonts
Charles de Miramon wrote: Herbert Voss wrote: Charles de Miramon wrote: \newcommand\stacia[1]{% bgroup \usefont{T1}{stacish}{m}{n}\selectfont#1% \egroup} I guess it is \bgroup Herbert, can you explain what is the purpose of \begingroup \endgroup ? The TLC2 (my Bible) is not very clear about it. inside a group everything is local. And I have the old behaviour after leaving this macro (group). Means same font, same lengths, etc Herbert
Re: selecting special fonts
Stacia Hartleben wrote: > Is there a better way to select special special fonts other than doing > ERT? I know under character I can change it to san serif or whatever > but for a special font I installed I have to do something like this: > > \usefont{T1}{stacish}{m}{n} \selectfont myword \usefont{T1}{ae}{m}{n} > \selectfont > > in a huge ERT snippet. Yes, you should create a macro. In your preamble put something like : \newcommand\stacia [1]{\usefont{T1}{stacish}{m}{n}% \selectfont% #1% \normalfont} and then in your text an ert with for example \stacia{Hartleben} With LyX 1.4 you can even use the character style and do the last part without ert. It is documented in the Wiki. Look in your LaTeX manual how you can create macros. It is easy to do and can save you a lot of time. Cheers, Charles -- http://www.kde-france.org
Re: selecting special fonts
Charles de Miramon wrote: > Stacia Hartleben wrote: > >> Is there a better way to select special special fonts other than doing >> ERT? I know under character I can change it to san serif or whatever >> but for a special font I installed I have to do something like this: >> >> \usefont{T1}{stacish}{m}{n} \selectfont myword \usefont{T1}{ae}{m}{n} >> \selectfont >> >> in a huge ERT snippet. > Yes, you should create a macro. > > In your preamble put something like : > > \newcommand\stacia [1]{\usefont{T1}{stacish}{m}{n}% > \selectfont% > #1% > \normalfont} \newcommand\stacia[1]{% bgroup \usefont{T1}{stacish}{m}{n}\selectfont#1% \egroup} then > and then in your text an ert with for example \stacia{Hartleben} and then in your text an ert with for {\large example \stacia{Hartleben} and so on} also works. Herbert
Re: selecting special fonts
Herbert Voss wrote: > Charles de Miramon wrote: > \newcommand\stacia[1]{% > bgroup > \usefont{T1}{stacish}{m}{n}\selectfont#1% > \egroup} > I guess it is \bgroup Herbert, can you explain what is the purpose of \begingroup \endgroup ? The TLC2 (my Bible) is not very clear about it. Cheers, Charles -- http://www.kde-france.org
Re: selecting special fonts
Charles de Miramon wrote: Herbert Voss wrote: Charles de Miramon wrote: \newcommand\stacia[1]{% bgroup \usefont{T1}{stacish}{m}{n}\selectfont#1% \egroup} I guess it is \bgroup Herbert, can you explain what is the purpose of \begingroup \endgroup ? The TLC2 (my Bible) is not very clear about it. inside a group everything is local. And I have the old behaviour after leaving this macro (group). Means same font, same lengths, etc Herbert
selecting special fonts
Is there a better way to select special special fonts other than doing ERT? I know under character I can change it to san serif or whatever but for a special font I installed I have to do something like this: \usefont{T1}{stacish}{m}{n} \selectfont myword \usefont{T1}{ae}{m}{n} \selectfont in a huge ERT snippet.
selecting special fonts
Is there a better way to select special special fonts other than doing ERT? I know under character I can change it to san serif or whatever but for a special font I installed I have to do something like this: \usefont{T1}{stacish}{m}{n} \selectfont myword \usefont{T1}{ae}{m}{n} \selectfont in a huge ERT snippet.
selecting special fonts
Is there a better way to select special special fonts other than doing ERT? I know under character I can change it to san serif or whatever but for a special font I installed I have to do something like this: \usefont{T1}{stacish}{m}{n} \selectfont myword \usefont{T1}{ae}{m}{n} \selectfont in a huge ERT snippet.