support for \hfill

classic Classic list List threaded Threaded
3 messages Options
Graeme Kidd Graeme Kidd
Reply | Threaded
Open this post in threaded view
|

support for \hfill



Hi,

I came across the following latex (created by MathType) which made use of the \hfill command which resulted in an "unknown symbol or command" error:

\begin{gathered}
  \sqrt {\text{(1  +  2})^2  + (1\text{  -  0})^2 }  =  \hfill \\
  \sqrt {\text{10}} \text{  =  3}\text{.2 to 1d}\text{.p}\text{.} \hfill \\
\end{gathered}

Will there be much work needed to support this command?

Thanks,
Graeme

     
Calixte Denizet-2 Calixte Denizet-2
Reply | Threaded
Open this post in threaded view
|

Re: [jlatexmath] support for \hfill

Le mercredi 02 février 2011 à 12:18 +0000, Graeme Kidd a écrit :
>
> Hi,
>

Hi Graeme,

> I came across the following latex (created by MathType) which made use
of the \hfill command which resulted in an "unknown symbol or command"
error:
>
> \begin{gathered}
>   \sqrt {\text{(1  +  2})^2  + (1\text{  -  0})^2 }  =  \hfill \\
>   \sqrt {\text{10}} \text{  =  3}\text{.2 to 1d}\text{.p}\text{.}
\hfill \\
> \end{gathered}
>
> Will there be much work needed to support this command?
>

In this case \hfill is useless... so you can remove them or create an
empty command: \newcommand{\hfill}{}

I'll add it in the next release (0.9.5 since I released 0.9.4 today).

Regards,

Calixte

> Thanks,
> Graeme
>
>                                        


Graeme Kidd Graeme Kidd
Reply | Threaded
Open this post in threaded view
|

RE: [jlatexmath] support for \hfill



Thanks Calixte, I did wonder what the \hfill was actually doing but will happily remove it for now.
 
Thanks again for the great work.

PS Sorry for double post but forgot to email this to the List.


> Le mercredi 02 février 2011 à 12:18 +0000, Graeme Kidd a écrit :
> >
> > Hi,
> >
>
> Hi Graeme,
>
> > I came across the following latex (created by MathType) which made use
> of the \hfill command which resulted in an "unknown symbol or command"
> error:
> >
> > \begin{gathered}
> > \sqrt {\text{(1 + 2})^2 + (1\text{ - 0})^2 } = \hfill \\
> > \sqrt {\text{10}} \text{ = 3}\text{.2 to 1d}\text{.p}\text{.}
> \hfill \\
> > \end{gathered}
> >
> > Will there be much work needed to support this command?
> >
>
> In this case \hfill is useless... so you can remove them or create an
> empty command: \newcommand{\hfill}{}
>
> I'll add it in the next release (0.9.5 since I released 0.9.4 today).
>
> Regards,
>
> Calixte
>
> > Thanks,
> > Graeme
> >
> >
>