Re: how to: different fonts in the same file

Carsten Weise <[email protected]>
Newsgroups gmane.comp.graphics.ipe.general
Message-ID <CAAE8XJGbdCJ5q=PHrsXmr1um6yHz4qjH=GVUpRt60SO8PGGPqg@mail.gmail.com>
Hi Otfried,

so I tried a very small latex example:
----
\documentclass{article}
\usepackage{libertine}
\usepackage{dejavu}
\begin{document}
This is a very simple document. The first paragraph should use dejavu as
font.

{\fontencoding{T1}\fontfamily{libertine}\selectfont
OK, we fill this with a little more content. So this is the second
paragraph in this document. This should be in libertine.
}

\end{document}
---

This works well with pdflatex. However, trying the same in ipe yields a
"error occured during pdflatex run".
How can one see what error ocurred with pdflatex? I do not get anything
else than this message, there is no output on the commandline.

When running pdflatex with my example, I will get a warning "LaTeX Font
Warning: Font shape `T1/libertine/m/n' undefined". Could this be a problem
with ipe?

When I remove \selectfont, the problem goes away, but of course also the
font will not be selected.

/Carsten




On Sat, Nov 29, 2014 at 3:36 PM, Carsten Weise <[email protected]>
wrote:

> Hi Otfried,
>
> well I took these ideas from some web pages on IPE and fonts.
> But probably a good idea, to try this latex only first.
> I'll be back when I've tried that.
>
> /Carsten
>
>
>
> On Sat, Nov 29, 2014 at 3:20 PM, Otfried Cheong <[email protected]>
> wrote:
>
>> Hmm.  Do you actually know how to do this in a normal Latex document,
>> outside of Ipe?   Your problem most likely has nothing to do with Ipe.
>>
>> You need to make sure that this works first.  Then it should also work
>> in Ipe, as long as the fonts are Postscript or Truetype fonts.
>>
>> If you want somebody to help, you should probably say where you got
>> dejavu.sty and libertine.sty - what Latex distribution are you using?
>>
>> Cheers,
>>   Otfried
>>
>>
>> On 29/11/14 23:05, Carsten Weise wrote:
>> > Hi,
>> >
>> > I'm currently trying to see if IPE is useful for me to prepare
>> > presentations.
>> > IPE definitely has some features I would like to use, but I also have
>> > some requirements which need to be matched.
>> >
>> > One of these is that I need to use different fonts in the same
>> presentation.
>> > I have tried to do this with IPE, but was not successful. I searched the
>> > net, but I can't find a proper way to do it.
>> >
>> > What works:
>> >
>> > when I put
>> >     \usepackage{dejavu}
>> > or
>> >     \usepackage{libertine}
>> > in the preamble, then I get my text in dejavu or in libertine, good.
>> >
>> > What I tried:
>> >
>> > I put
>> >     \usepackage{dejavu}
>> >     \usepackage{libertine}
>> > both in my preamble,
>> >
>> > and then, in a paragraph text field, I put
>> >     {\fontencoding{T1}\fontfamily{dejavu}
>> >     very important text
>> >     }
>> >
>> > but this will not change the font.
>> >
>> > I also used
>> >     \fontencoding{T1}\fontfamily{dejavu}\selectfont
>> >
>> > but then I got an error message
>> > "An error occured during the pdf latex run"
>> >
>> > Any idea how to do this? Maybe a good simple example using two different
>> > fonts?
>> >
>> > Thanks
>> > Carsten
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > Ipe-discuss mailing list
>> > Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]
>> > http://lists.science.uu.nl/mailman/listinfo/ipe-discuss
>> >
>> _______________________________________________
>> Ipe-discuss mailing list
>> Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]
>> http://lists.science.uu.nl/mailman/listinfo/ipe-discuss
>>
>
>

_______________________________________________
Ipe-discuss mailing list
Ipe-discuss-rGrgPyRx506NN8uzcEdRPYRWq/[email protected]
http://lists.science.uu.nl/mailman/listinfo/ipe-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.