0

I plan to use the Indevr font (for typing Samskrit) which can be found at the bottom of this page: http://www.pratyatosa.com/?P=41

For some reason "&" and "_" symbols are not being rendered by the font. This is my command line:

\documentclass[14pt]{extarticle}

\usepackage{fontspec}

\newfontfamily\idr{Indevr}

\begin{document}

\begin{flushleft} {\idr AíaXaqiTaSahóai<a MauNaYaae Yae Da*Tav]Taa" ) \\ ANviXa+aNv]Ta& TaSYa k-aEMaarb]øcair<a" )) 22 ))} \end{flushleft} \end{document}

The output which i am getting is enter image description here

whereas the output which i should be getting is enter image description here

The starting word of in the second line of the verse has the error. M& is the command used for producing the dot above M and it's creating a problem. The error shown is

Misplaced alignment tab character &. I can't figure out why you would want to use a tab mark here. If you just want an ampersand, the remedy is simple: Just type `I\&' now. But if some right brace up above has ended a previous alignment prematurely,

  • as the error message says you need \& as & has special use in latex for table cells. Or if you don't need alignments use \catcode `\&=12 to make & a normal character. similarly _ is special for math mode subscripts – David Carlisle Sep 1 '17 at 8:08
  • @DavidCarlisle Dear DAvid, could you please write your comment as an answer so that i can accept it explaining it a bit more. Thanks :) – crskhr Sep 1 '17 at 8:23
1

As the error message says you need \& as & has special use in latex for table cells. that is

\begin{tabular}{ll}
1 & 2 \\
3 & 4
\end{tabular}

similarly _ is special, denoting a subscript x_2 making x2

Or if you don't need alignments or subscripts in this document use

\catcode `\&=12
\catcode `\_=12

to make & and _ into a normal characters.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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