Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How to change font size in verse environment?

I am working with these fonts (i.e. Aksharyogini / Nakula / Sanskrit 2003)

When i replace \bfseries with any one of these I get error, what am I doing wrong. how would I work with these font types. thanks for your help

 \newcommand\RedLine[1]{%
  \textcolor{red}{\fontsize{8}{9.6}\selectfont\bfseries#1}
  }
share|improve this question
    
What are you precisely writing for selecting the font? –  egreg Oct 7 '11 at 14:09
    
\newcommand\RedLine[1]{% \textcolor{red}{\fontsize{8}{9.6}\selectfont\Aksharayogini#1} } –  Aku Oct 7 '11 at 14:13
    
Is \Aksharayogini defined as a font selection command with \newfontfamily or \newfontface? –  egreg Oct 7 '11 at 14:16
    
@egreg no its not defined, & I do not know how to do that. –  Aku Oct 7 '11 at 14:33
add comment

1 Answer

up vote 1 down vote accepted

The \RedLine defined in that answer is just an example. In order to get a red line using the current font it's only a matter of saying

\newcommand{\RedLine}[1]{\textcolor{red}{#1}}

In order to use different fonts, you can define them via \newfontfamily:

\usepackage{fontspec}
\setmainfont{Sanskrit 2003}
\newfontfamily\Aksharyogini{Aksharyogini}
\newfontfamily\Nakula{Nakula}

or simply with \newfontface if you are not interested in italic or bold variants of those fonts.

Then

\begin{verse}\Aksharyogini
<verses>
\end{verse}

will print the poem using the Aksharyogini font.

share|improve this answer
    
Sorry but I did not get it. I could color the text using textcolor. What I do not know is how to assign a particular font to it. i.e. any font mentioned above. –  Aku Oct 7 '11 at 14:44
    
@Aku Please, make your question clearer. –  egreg Oct 7 '11 at 14:46
    
In my document I want to work with (i.e. Aksharyogini / Nakula / Sanskrit 2003) at various places. I do not know how to do that. my entire document appears in one type of font. I don't know how to use font for a particular paragraph, verse, etc. does this description help? –  Aku Oct 7 '11 at 14:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.