Re: XeTeX - Load packages before fontspec

2011-10-09 Thread Guenter Milde
On 2011-10-08, PhilipPirrip wrote:
 On 10/07/2011 08:17 AM, Guenter Milde wrote:
   Custom LaTeX code before LyX-generated preamble:
+-+
| \usepackage[put]{mathdesign}|
| |
+-+

 May I object! ;)

Defeated. This was an *example* for a *custom* user written pe-preamble.

This specific example loads a package that is not auto-loaded by LyX, so
there is no danger of an option clash. It is put in the pre-preamble to
ensure it is loaded before the auto-loaded packages.

If the user wants to add options to a LyX-auto-loaded package, then this
could/should be done with \PassOptionsToPackage in the pre-preamble, but
without \usepackage command.

 Please always consider calling \usepackage in two parts, especially in
 LyX generated code: to allow for the possibility of adding more options
 to the packages called. (calling \usepackage with options twice isn't
 allowed)

Acutally, repeated \usepackages with a *different option set* is not
allowed. This is because the second \usepackage is ignored and hence the
different options are ignored too.

However, as the minimal example

\documentclass{minimal}

\PassOptionsToPackage{utopia}{mathdesign}
\usepackage{mathdesign}
\PassOptionsToPackage{greekuppercase=italicized}{mathdesign}
\usepackage{mathdesign}

\begin{document}
$\Gamma$
\end{document}

shows, \PassOptionsToPackage after \usepackage is silently ignored. 
I.e. if LyX were to use it, this would not prevent the error but only the
error detection.

Günter



Re: XeTeX - Load packages before fontspec

2011-10-09 Thread PhilipPirrip

On 10/09/2011 05:45 PM, Guenter Milde wrote:


\documentclass{minimal}

\PassOptionsToPackage{utopia}{mathdesign}
\usepackage{mathdesign}
\PassOptionsToPackage{greekuppercase=italicized}{mathdesign}
\usepackage{mathdesign}

\begin{document}
$\Gamma$
\end{document}

shows, \PassOptionsToPackage after \usepackage is silently ignored.
I.e. if LyX were to use it, this would not prevent the error but only the
error detection.



That's clear, but \PassOptions... at least gives you an opportunity to 
put some more options, and the result, or the lack of the result can be 
seen in the produced document.
So, first both LyX and user can \PassOptions..., LyX will or will not 
call some package at the end, in the latter case user will call it herself.



\documentclass{minimal}

\PassOptionsToPackage{utopia}{mathdesign} % set by LyX

\PassOptionsToPackage{something_other_than_utopia,greekuppercase=italicized}{mathdesign} 
% set by user



\usepackage{mathdesign} % called by either LyX or user

\begin{document}
$\Gamma$
\end{document}



Re: [OT] Fonts in TeXLive/DVI/Evince

2011-10-09 Thread Paul Rubin
Guenter Milde milde at users.berlios.de writes:

 
 On 2011-10-06, Paul A  Rubin wrote:
  Hi all,
 
  Not sure where the culprit is, but if I use \neq in a math formula in
  LyX with TeXLive 2010 and Evince as the document viewer, it shows up as
  an equal sign.  Viewing in PDF is fine, 
 
 Could you be more clear here: which TeX engine (XeTeX, pdfTeX, LuaTeX),
 which output format (DVI, PS, PDF) and which viewer?

pdfTeX -- DVI -- Evince
 
 For me, Evince is the default PDF viewer, so I don't see why there should be
 any difference.

On my boxes (I've confirmed this now on two Linux machines, one 32-bit and one
64-bit), when I view a test document as PDF in Evince (using any of the three
methods for generating PDFs), Evince's Help  About dialog says that it is
Using poppler/cairo (0.16.4).  It doesn't say that when I view DVI output.  I
assume that helps explain why I get the correct glyph in Evince with PDF and not
with DVI.
 
  and a random sampling of other
  math symbols all worked with View  DVI.  Anybody seen this before?
 
 I know that e.g. XeTeX silently drobs missing characters, as in some cases
 \neq is composed out of two, this could be a missing \not char.
 
 If the result depends on the viewer, there might be problems with the
 character composition. Maybe this could be solved by using a font-package
 providing a pre-composed character.

This is more a matter of curiosity than urgency.  I do most of my work in PDF
and use DVI primarily for quick checks while writing (since it seems a bit
faster than PDF ... although some of that may be Acrobat Reader being slow to
load).  As long as I remember not to freak out when I see an equal sign where it
should be not equal, I'll be okay.  I just thought that maybe this was a
well-known symptom of a specific font file being missing.

Thanks,
Paul






Re: Classic Thesis Bibliography in child document

2011-10-09 Thread Gian Maria Niccolò Benucci
Hi again,

I am sorry probably I am not able to explain well my problem... I will try
again.
I would like to have the reference at the end of the thesis, not at the end
of each Chapter.
I tried adding the Bib file in e.g., the Chtaper#1.lyx and I put the
references in the correct place along the document. Then I compile the main
Classic.Thesis.lyx, with the same Bib file at the end of it, but I have the
simblos ?] instead of the corrected reference.
Ho can I include in the text the references if I do not add the Bib file at
the end of each Chapter?

Thanks for helps and sorry but I am a rookie...

G.


On 8 October 2011 20:36, PhilipPirrip p...@net.hr wrote:


  II got the same problem. I tried to include the Bibtex Bib in each
 single Chapter but the references appear only if I compile the Chapter
 alone and never when I try with the ClassicThesis.lyx


 I'm not sure here what it is that you want? A separate bibliography for
 each chapter?
 Do you get the bibliography right when you compile the original template,
 without any modifications?







Re: Classic Thesis Bibliography in child document

2011-10-09 Thread Manolo Martínez
For what it's worth, I wrote my dissertation in the ClassicThesis style, and I
would just compile child documents, without references as you say. Whenever I
wanted to see how references looked I'd compile the whole shebang -- this
happened, say, once every few days. 

Manolo
On 10/09/11 at 11:44pm, Gian Maria Niccolò Benucci wrote:
 Hi again,
 
 I am sorry probably I am not able to explain well my problem... I will try
 again.
 I would like to have the reference at the end of the thesis, not at the end
 of each Chapter.
 I tried adding the Bib file in e.g., the Chtaper#1.lyx and I put the
 references in the correct place along the document. Then I compile the main
 Classic.Thesis.lyx, with the same Bib file at the end of it, but I have the
 simblos ?] instead of the corrected reference.
 Ho can I include in the text the references if I do not add the Bib file at
 the end of each Chapter?
 
 Thanks for helps and sorry but I am a rookie...
 
 G.
 
 
 On 8 October 2011 20:36, PhilipPirrip p...@net.hr wrote:
 
 
   II got the same problem. I tried to include the Bibtex Bib in each
  single Chapter but the references appear only if I compile the Chapter
  alone and never when I try with the ClassicThesis.lyx
 
 
  I'm not sure here what it is that you want? A separate bibliography for
  each chapter?
  Do you get the bibliography right when you compile the original template,
  without any modifications?
 
 
 
 
 

-- 


Re: XeTeX - Load packages before fontspec

2011-10-09 Thread Guenter Milde
On 2011-10-08, PhilipPirrip wrote:
 On 10/07/2011 08:17 AM, Guenter Milde wrote:
   Custom LaTeX code before LyX-generated preamble:
+-+
| \usepackage[put]{mathdesign}|
| |
+-+

 May I object! ;)

Defeated. This was an *example* for a *custom* user written pe-preamble.

This specific example loads a package that is not auto-loaded by LyX, so
there is no danger of an option clash. It is put in the pre-preamble to
ensure it is loaded before the auto-loaded packages.

If the user wants to add options to a LyX-auto-loaded package, then this
could/should be done with \PassOptionsToPackage in the pre-preamble, but
without \usepackage command.

 Please always consider calling \usepackage in two parts, especially in
 LyX generated code: to allow for the possibility of adding more options
 to the packages called. (calling \usepackage with options twice isn't
 allowed)

Acutally, repeated \usepackages with a *different option set* is not
allowed. This is because the second \usepackage is ignored and hence the
different options are ignored too.

However, as the minimal example

\documentclass{minimal}

\PassOptionsToPackage{utopia}{mathdesign}
\usepackage{mathdesign}
\PassOptionsToPackage{greekuppercase=italicized}{mathdesign}
\usepackage{mathdesign}

\begin{document}
$\Gamma$
\end{document}

shows, \PassOptionsToPackage after \usepackage is silently ignored. 
I.e. if LyX were to use it, this would not prevent the error but only the
error detection.

Günter



Re: XeTeX - Load packages before fontspec

2011-10-09 Thread PhilipPirrip

On 10/09/2011 05:45 PM, Guenter Milde wrote:


\documentclass{minimal}

\PassOptionsToPackage{utopia}{mathdesign}
\usepackage{mathdesign}
\PassOptionsToPackage{greekuppercase=italicized}{mathdesign}
\usepackage{mathdesign}

\begin{document}
$\Gamma$
\end{document}

shows, \PassOptionsToPackage after \usepackage is silently ignored.
I.e. if LyX were to use it, this would not prevent the error but only the
error detection.



That's clear, but \PassOptions... at least gives you an opportunity to 
put some more options, and the result, or the lack of the result can be 
seen in the produced document.
So, first both LyX and user can \PassOptions..., LyX will or will not 
call some package at the end, in the latter case user will call it herself.



\documentclass{minimal}

\PassOptionsToPackage{utopia}{mathdesign} % set by LyX

\PassOptionsToPackage{something_other_than_utopia,greekuppercase=italicized}{mathdesign} 
% set by user



\usepackage{mathdesign} % called by either LyX or user

\begin{document}
$\Gamma$
\end{document}



Re: [OT] Fonts in TeXLive/DVI/Evince

2011-10-09 Thread Paul Rubin
Guenter Milde milde at users.berlios.de writes:

 
 On 2011-10-06, Paul A  Rubin wrote:
  Hi all,
 
  Not sure where the culprit is, but if I use \neq in a math formula in
  LyX with TeXLive 2010 and Evince as the document viewer, it shows up as
  an equal sign.  Viewing in PDF is fine, 
 
 Could you be more clear here: which TeX engine (XeTeX, pdfTeX, LuaTeX),
 which output format (DVI, PS, PDF) and which viewer?

pdfTeX -- DVI -- Evince
 
 For me, Evince is the default PDF viewer, so I don't see why there should be
 any difference.

On my boxes (I've confirmed this now on two Linux machines, one 32-bit and one
64-bit), when I view a test document as PDF in Evince (using any of the three
methods for generating PDFs), Evince's Help  About dialog says that it is
Using poppler/cairo (0.16.4).  It doesn't say that when I view DVI output.  I
assume that helps explain why I get the correct glyph in Evince with PDF and not
with DVI.
 
  and a random sampling of other
  math symbols all worked with View  DVI.  Anybody seen this before?
 
 I know that e.g. XeTeX silently drobs missing characters, as in some cases
 \neq is composed out of two, this could be a missing \not char.
 
 If the result depends on the viewer, there might be problems with the
 character composition. Maybe this could be solved by using a font-package
 providing a pre-composed character.

This is more a matter of curiosity than urgency.  I do most of my work in PDF
and use DVI primarily for quick checks while writing (since it seems a bit
faster than PDF ... although some of that may be Acrobat Reader being slow to
load).  As long as I remember not to freak out when I see an equal sign where it
should be not equal, I'll be okay.  I just thought that maybe this was a
well-known symptom of a specific font file being missing.

Thanks,
Paul






Re: Classic Thesis Bibliography in child document

2011-10-09 Thread Gian Maria Niccolò Benucci
Hi again,

I am sorry probably I am not able to explain well my problem... I will try
again.
I would like to have the reference at the end of the thesis, not at the end
of each Chapter.
I tried adding the Bib file in e.g., the Chtaper#1.lyx and I put the
references in the correct place along the document. Then I compile the main
Classic.Thesis.lyx, with the same Bib file at the end of it, but I have the
simblos ?] instead of the corrected reference.
Ho can I include in the text the references if I do not add the Bib file at
the end of each Chapter?

Thanks for helps and sorry but I am a rookie...

G.


On 8 October 2011 20:36, PhilipPirrip p...@net.hr wrote:


  II got the same problem. I tried to include the Bibtex Bib in each
 single Chapter but the references appear only if I compile the Chapter
 alone and never when I try with the ClassicThesis.lyx


 I'm not sure here what it is that you want? A separate bibliography for
 each chapter?
 Do you get the bibliography right when you compile the original template,
 without any modifications?







Re: Classic Thesis Bibliography in child document

2011-10-09 Thread Manolo Martínez
For what it's worth, I wrote my dissertation in the ClassicThesis style, and I
would just compile child documents, without references as you say. Whenever I
wanted to see how references looked I'd compile the whole shebang -- this
happened, say, once every few days. 

Manolo
On 10/09/11 at 11:44pm, Gian Maria Niccolò Benucci wrote:
 Hi again,
 
 I am sorry probably I am not able to explain well my problem... I will try
 again.
 I would like to have the reference at the end of the thesis, not at the end
 of each Chapter.
 I tried adding the Bib file in e.g., the Chtaper#1.lyx and I put the
 references in the correct place along the document. Then I compile the main
 Classic.Thesis.lyx, with the same Bib file at the end of it, but I have the
 simblos ?] instead of the corrected reference.
 Ho can I include in the text the references if I do not add the Bib file at
 the end of each Chapter?
 
 Thanks for helps and sorry but I am a rookie...
 
 G.
 
 
 On 8 October 2011 20:36, PhilipPirrip p...@net.hr wrote:
 
 
   II got the same problem. I tried to include the Bibtex Bib in each
  single Chapter but the references appear only if I compile the Chapter
  alone and never when I try with the ClassicThesis.lyx
 
 
  I'm not sure here what it is that you want? A separate bibliography for
  each chapter?
  Do you get the bibliography right when you compile the original template,
  without any modifications?
 
 
 
 
 

-- 


Re: XeTeX - Load packages before fontspec

2011-10-09 Thread Guenter Milde
On 2011-10-08, PhilipPirrip wrote:
> On 10/07/2011 08:17 AM, Guenter Milde wrote:
>>   Custom LaTeX code before LyX-generated preamble:
>>+-+
>>| \usepackage[put]{mathdesign}|
>>| |
>>+-+

> May I object! ;)

Defeated. This was an *example* for a *custom* user written pe-preamble.

This specific example loads a package that is not auto-loaded by LyX, so
there is no danger of an option clash. It is put in the pre-preamble to
ensure it is loaded before the auto-loaded packages.

If the user wants to add options to a LyX-auto-loaded package, then this
could/should be done with \PassOptionsToPackage in the pre-preamble, but
without \usepackage command.

> Please always consider calling \usepackage in two parts, especially in
> LyX generated code: to allow for the possibility of adding more options
> to the packages called. (calling \usepackage with options twice isn't
> allowed)

Acutally, repeated \usepackages with a *different option set* is not
allowed. This is because the second \usepackage is ignored and hence the
different options are ignored too.

However, as the minimal example

\documentclass{minimal}

\PassOptionsToPackage{utopia}{mathdesign}
\usepackage{mathdesign}
\PassOptionsToPackage{greekuppercase=italicized}{mathdesign}
\usepackage{mathdesign}

\begin{document}
$\Gamma$
\end{document}

shows, \PassOptionsToPackage after \usepackage is silently ignored. 
I.e. if LyX were to use it, this would not prevent the error but only the
error detection.

Günter



Re: XeTeX - Load packages before fontspec

2011-10-09 Thread PhilipPirrip

On 10/09/2011 05:45 PM, Guenter Milde wrote:


\documentclass{minimal}

\PassOptionsToPackage{utopia}{mathdesign}
\usepackage{mathdesign}
\PassOptionsToPackage{greekuppercase=italicized}{mathdesign}
\usepackage{mathdesign}

\begin{document}
$\Gamma$
\end{document}

shows, \PassOptionsToPackage after \usepackage is silently ignored.
I.e. if LyX were to use it, this would not prevent the error but only the
error detection.



That's clear, but \PassOptions... at least gives you an opportunity to 
put some more options, and the result, or the lack of the result can be 
seen in the produced document.
So, first both LyX and user can \PassOptions..., LyX will or will not 
call some package at the end, in the latter case user will call it herself.



\documentclass{minimal}

\PassOptionsToPackage{utopia}{mathdesign} % set by LyX

\PassOptionsToPackage{something_other_than_utopia,greekuppercase=italicized}{mathdesign} 
% set by user



\usepackage{mathdesign} % called by either LyX or user

\begin{document}
$\Gamma$
\end{document}



Re: [OT] Fonts in TeXLive/DVI/Evince

2011-10-09 Thread Paul Rubin
Guenter Milde  users.berlios.de> writes:

> 
> On 2011-10-06, Paul A  Rubin wrote:
> > Hi all,
> 
> > Not sure where the culprit is, but if I use \neq in a math formula in
> > LyX with TeXLive 2010 and Evince as the document viewer, it shows up as
> > an equal sign.  Viewing in PDF is fine, 
> 
> Could you be more clear here: which TeX engine (XeTeX, pdfTeX, LuaTeX),
> which output format (DVI, PS, PDF) and which viewer?

pdfTeX -- DVI -- Evince
> 
> For me, Evince is the default PDF viewer, so I don't see why there should be
> any difference.

On my boxes (I've confirmed this now on two Linux machines, one 32-bit and one
64-bit), when I view a test document as PDF in Evince (using any of the three
methods for generating PDFs), Evince's Help > About dialog says that it is
"Using poppler/cairo (0.16.4)".  It doesn't say that when I view DVI output.  I
assume that helps explain why I get the correct glyph in Evince with PDF and not
with DVI.
> 
> > and a random sampling of other
> > math symbols all worked with View > DVI.  Anybody seen this before?
> 
> I know that e.g. XeTeX silently drobs missing characters, as in some cases
> \neq is composed out of two, this could be a missing \not char.
> 
> If the result depends on the viewer, there might be problems with the
> character composition. Maybe this could be solved by using a font-package
> providing a pre-composed character.

This is more a matter of curiosity than urgency.  I do most of my work in PDF
and use DVI primarily for quick checks while writing (since it seems a bit
faster than PDF ... although some of that may be Acrobat Reader being slow to
load).  As long as I remember not to freak out when I see an equal sign where it
should be not equal, I'll be okay.  I just thought that maybe this was a
well-known symptom of a specific font file being missing.

Thanks,
Paul






Re: Classic Thesis Bibliography in child document

2011-10-09 Thread Gian Maria Niccolò Benucci
Hi again,

I am sorry probably I am not able to explain well my problem... I will try
again.
I would like to have the reference at the end of the thesis, not at the end
of each Chapter.
I tried adding the Bib file in e.g., the Chtaper#1.lyx and I put the
references in the correct place along the document. Then I compile the main
Classic.Thesis.lyx, with the same Bib file at the end of it, but I have the
simblos ?] instead of the corrected reference.
Ho can I include in the text the references if I do not add the Bib file at
the end of each Chapter?

Thanks for helps and sorry but I am a rookie...

G.


On 8 October 2011 20:36, PhilipPirrip  wrote:

>
>  II got the same problem. I tried to include the Bibtex Bib in each
>> single Chapter but the references appear only if I compile the Chapter
>> alone and never when I try with the ClassicThesis.lyx
>>
>
> I'm not sure here what it is that you want? A separate bibliography for
> each chapter?
> Do you get the bibliography right when you compile the original template,
> without any modifications?
>
>
>
>
>


Re: Classic Thesis Bibliography in child document

2011-10-09 Thread Manolo Martínez
For what it's worth, I wrote my dissertation in the ClassicThesis style, and I
would just compile child documents, without references as you say. Whenever I
wanted to see how references looked I'd compile the whole shebang -- this
happened, say, once every few days. 

Manolo
On 10/09/11 at 11:44pm, Gian Maria Niccolò Benucci wrote:
> Hi again,
> 
> I am sorry probably I am not able to explain well my problem... I will try
> again.
> I would like to have the reference at the end of the thesis, not at the end
> of each Chapter.
> I tried adding the Bib file in e.g., the Chtaper#1.lyx and I put the
> references in the correct place along the document. Then I compile the main
> Classic.Thesis.lyx, with the same Bib file at the end of it, but I have the
> simblos ?] instead of the corrected reference.
> Ho can I include in the text the references if I do not add the Bib file at
> the end of each Chapter?
> 
> Thanks for helps and sorry but I am a rookie...
> 
> G.
> 
> 
> On 8 October 2011 20:36, PhilipPirrip  wrote:
> 
> >
> >  II got the same problem. I tried to include the Bibtex Bib in each
> >> single Chapter but the references appear only if I compile the Chapter
> >> alone and never when I try with the ClassicThesis.lyx
> >>
> >
> > I'm not sure here what it is that you want? A separate bibliography for
> > each chapter?
> > Do you get the bibliography right when you compile the original template,
> > without any modifications?
> >
> >
> >
> >
> >

--