2011/10/4 Harish Kumar Holla <harishkumarho...@pec.edu>:
> Thanks to every one. Problem was with my miktex installation. I re installed
> the same and now XeLaTeX works fine. And it is great with full freedom with
> fonts. Neverthless I have a query with the experts.
> %=========================================
>  It seems the xelatex will not accept figures in .pdf format. Also, there is
> mismatch in fonts of figures and rest of the document,  if I include figures

XeLaTeX works fine with figures in PDF. I remember a few years ago
there was a Mac specific bug in figure inclusion, all figures worked
in the Linux version but some of them did not work on Mac. The bug was
reported and fixed. There may be a MiKTeX specific bug. If you cannot
include a PDF using \includegraphics even in a simple document with
nothing else, send it to me. I will try in Linux in order to see what
is the problem. Of course, you cannot easily exchange the fonts that
are present in the PDF file (it can be done using commercial tools
such as InDesign or after dirty hackung). If I need the same font in
figures and in the text, I generate the figures without texts and then
add them in the picture environment. Tikz can also be used.

> as .png file. So I am planning to put .pgf/.tikz files directly as

Remember that PNG is a bitmap format. It is good for photos and other
halftone images but not for graphs, diagrams and text.

> \input{myfigure.tikz} . This is the trouble for me. I do not know how to
> control the dimensions of the figure in this case. If I use

\input is intended for inclusion of a TeX code, not for images.
However, if you put the \includegraphics command to an external file
and you wish to specify dimensions when including the file, you can
define the size parametrically. for instance, your file may contain

\includegraphics[width=\w]{something.pdf}

and when including the file, you will write

\def\w{.57\textwidth}
\input{somefile}

> ----------------------------------------
> \begin{figure}[h]
> \centerline{\includegraphics[width=0.575\textwidth]{wavemechanics-fig/Figures/gammaraymicroscope.pdf}}
> \caption{$\gamma-$ ray microscope} \label{fig:gammaraymicroscope}
> \end{figure}
> ----------------------------------------
> it is fine. But that won't do the job for \input{gammaraymicroscope.pgf}.
> ----------------------------------------
> \begin{figure}[h]
> \centerline{\input{wavemechanics-fig/Figures/gammaraymicroscope.pdf}}
> \caption{$\gamma-$ ray microscope} \label{fig:gammaraymicroscope}
> \end{figure}
> ----------------------------------------
> My question is:
> How to specify dimensions of the figure in this case. Please help me.
>
>
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex
>
>



-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz



--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex

Reply via email to