\usepackage

2023-06-13 Thread Patrick Dupre
Hello,

If I export to latex plain, I get at the beginning of the tex file:

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}

How can I insert my own usepackage before 
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
?

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire interdisciplinaire Carnot de Bourgogne
 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
 Tel: +33 (0)380395988| | Room# D114A
===

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


RE: Default usepackage units (LyX Default?) and user-specific siunitx

2023-03-21 Thread Julian Popp
Dear Jürgen,

thanks for the quick feedback.

It seems like the incompatibility occurred in one of the updates of units or 
siunitx - before updating to the newest versions they could coexist.

Furthermore, nicefrac was used and thus units was required.

Your solution works fine! My document is now fully based on siunitx.

Kind regards,
Julian

#solution

Am Montag, dem 20.03.2023 um 12:51 + schrieb Julian Popp:
> Dear LyX users,
> 
> I came across an (for me) unexpected behavior in LyX 2.3 that
> probably requires me to change my whole document...
> 
> For typesetting units and values correctly, I used the package
> siunitx. Since I got a new notebook and now have LyX 2.3.7 (+MiTeX)
> instead of 2.3.5-1 (in addition to package updates) there is now an
> error about the incompatibility of the packages units and siunitx.
> The issue here is: I do not have the \usepackage{units} in my custom
> document preamble.
> 
> After some investigation I found out that LyX in nevertheless
> including the \usepackage{units}  in the LaTeX code (export -> LaTeX
> (pdflatex)). See code below.

LyX autoloads the package if you use a construct that requires this
package (e.g., \unitfrac, \unitfracthree, \nicefrac).

> Has anybody else experienced that issue? Recommendations for
> mitigation?

You can prevent autoloading by entering to Document > Settings > Local
Layout:

Provides units 1

But if you now have a LaTeX macro which requires this package (and is
not covered by siunitx), you'll get an "undefined control sequence"
error.

HTH,
Jürgen


-Original Message-
From: Popp, Julian (EEI) 
Sent: Monday, March 20, 2023 13:51
To: 'lyx-users@lists.lyx.org' 
Subject: Default usepackage units (LyX Default?) and user-specific siunitx

Dear LyX users,

I came across an (for me) unexpected behavior in LyX 2.3 that probably requires 
me to change my whole document.

For typesetting units and values correctly, I used the package siunitx. Since I 
got a new notebook and now have LyX 2.3.7 (+MiTeX) instead of 2.3.5-1 (in 
addition to package updates) there is now an error about the incompatibility of 
the packages units and siunitx. The issue here is: I do not have the 
\usepackage{units} in my custom document preamble.

After some investigation I found out that LyX in nevertheless including the 
\usepackage{units}  in the LaTeX code (export -> LaTeX (pdflatex)). See code 
below.

Has anybody else experienced that issue? Recommendations for mitigation?

BTW: uninstalling the package from MikTeX and removing the "units" entries in 
.sty files in the LyX folder does not work :)

Thanks,
Julian

#######
### For Reference - User specific LaTeX Preamble:
\usepackage{url}
\usepackage{breakurl}

% Package for correct format of number and unit \usepackage{siunitx}

% COlor Package for use with ANS.1 definition \usepackage{xcolor}


%%%
% [.] removed formatting commands
%%

%Set Path for graphics
\graphicspath{pics}

% TikZ Package for R graphics
%\usepackage{tikz} 

\usepackage{asn1}
\lstdefinelanguage{ASN1}
{
morekeywords=[1]{DEFINITIONS,AUTOMATIC,TAGS,BEGIN,END,%
SEQUENCE,OF,CHOICE,ENUMERATED,NULL,SIZE,OPTIONAL,%
OCTET,BIT,STRING,INTEGER,REAL,BOOLEAN,WITH,COMPONENTS},%
commentstyle=\itshape,%
morecomment=[l][\color{gray}]{--},%
morecomment=[n]{/*}{*/}
}

% Front part of the book
\frontmatter


#
### For Reference - the LaTeX export code:
\documentclass[a4paper,english,DIV=13,BCOR=10mm,toc=flat,listof=totoc]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\setcounter{tocdepth}{1}
\usepackage{babel}
\usepackage{units}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{nomencl}
% the following is useful when we have the old nomencl.sty package 
\providecommand{\printnomenclature}{\printglossary}
\providecommand{\makenomenclature}{\makeglossary}
\makenomenclature
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=2,
 breaklinks=false,pdfborder={0 0 
0},pdfborderstyle={},backref=false,colorlinks=false]
 {hyperref}
\hypersetup{pdftitle={ },
 pdfauthor={ },
 pdfsubject={ },
 pdfkeywords={}
}

\makeatletter

%% LyX specific LaTeX commands.
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth

%% Because html converters don't know tabularnewline 
\providecommand{\tabularnewline}{\\}

%% Textclass specific LaTeX commands.
\newenvironment{lyxcode}
{\par\begin{list}{}{
\setlength{\rightmargin}{\leftmargin}
\setlength{\listparindent}{0pt}% needed for AMS classes
\raggedright
\setlength{\itemsep}{0pt}
\setlength{\parsep}{0pt}
\normalfont\ttfamily}%
 \item[]}
{\end{list}}

%% User s

Re: Default usepackage units (LyX Default?) and user-specific siunitx

2023-03-20 Thread Jürgen Spitzmüller
Am Montag, dem 20.03.2023 um 12:51 + schrieb Julian Popp:
> Dear LyX users,
> 
> I came across an (for me) unexpected behavior in LyX 2.3 that
> probably requires me to change my whole document...
> 
> For typesetting units and values correctly, I used the package
> siunitx. Since I got a new notebook and now have LyX 2.3.7 (+MiTeX)
> instead of 2.3.5-1 (in addition to package updates) there is now an
> error about the incompatibility of the packages units and siunitx.
> The issue here is: I do not have the \usepackage{units} in my custom
> document preamble.
> 
> After some investigation I found out that LyX in nevertheless
> including the \usepackage{units}  in the LaTeX code (export -> LaTeX
> (pdflatex)). See code below.

LyX autoloads the package if you use a construct that requires this
package (e.g., \unitfrac, \unitfracthree, \nicefrac).

> Has anybody else experienced that issue? Recommendations for
> mitigation?

You can prevent autoloading by entering to Document > Settings > Local
Layout:

Provides units 1

But if you now have a LaTeX macro which requires this package (and is
not covered by siunitx), you'll get an "undefined control sequence"
error.

HTH,
Jürgen
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Default usepackage units (LyX Default?) and user-specific siunitx

2023-03-20 Thread Julian Popp
Dear LyX users,

I came across an (for me) unexpected behavior in LyX 2.3 that probably requires 
me to change my whole document...

For typesetting units and values correctly, I used the package siunitx. Since I 
got a new notebook and now have LyX 2.3.7 (+MiTeX) instead of 2.3.5-1 (in 
addition to package updates) there is now an error about the incompatibility of 
the packages units and siunitx. The issue here is: I do not have the 
\usepackage{units} in my custom document preamble.

After some investigation I found out that LyX in nevertheless including the 
\usepackage{units}  in the LaTeX code (export -> LaTeX (pdflatex)). See code 
below.

Has anybody else experienced that issue? Recommendations for mitigation?

BTW: uninstalling the package from MikTeX and removing the "units" entries in 
.sty files in the LyX folder does not work :)

Thanks,
Julian

###
### For Reference - User specific LaTeX Preamble:
\usepackage{url}
\usepackage{breakurl}

% Package for correct format of number and unit
\usepackage{siunitx}

% COlor Package for use with ANS.1 definition
\usepackage{xcolor}


%%%
% [...] removed formatting commands
%%

%Set Path for graphics
\graphicspath{pics}

% TikZ Package for R graphics
%\usepackage{tikz} 

\usepackage{asn1}
\lstdefinelanguage{ASN1}
{
morekeywords=[1]{DEFINITIONS,AUTOMATIC,TAGS,BEGIN,END,%
SEQUENCE,OF,CHOICE,ENUMERATED,NULL,SIZE,OPTIONAL,%
OCTET,BIT,STRING,INTEGER,REAL,BOOLEAN,WITH,COMPONENTS},%
commentstyle=\itshape,%
morecomment=[l][\color{gray}]{--},%
morecomment=[n]{/*}{*/}
}

% Front part of the book
\frontmatter


#
### For Reference - the LaTeX export code:
\documentclass[a4paper,english,DIV=13,BCOR=10mm,toc=flat,listof=totoc]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\setcounter{tocdepth}{1}
\usepackage{babel}
\usepackage{units}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{nomencl}
% the following is useful when we have the old nomencl.sty package
\providecommand{\printnomenclature}{\printglossary}
\providecommand{\makenomenclature}{\makeglossary}
\makenomenclature
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=2,
 breaklinks=false,pdfborder={0 0 
0},pdfborderstyle={},backref=false,colorlinks=false]
 {hyperref}
\hypersetup{pdftitle={ },
 pdfauthor={ },
 pdfsubject={ },
 pdfkeywords={}
}

\makeatletter

%% LyX specific LaTeX commands.
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth

%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

%% Textclass specific LaTeX commands.
\newenvironment{lyxcode}
{\par\begin{list}{}{
\setlength{\rightmargin}{\leftmargin}
\setlength{\listparindent}{0pt}% needed for AMS classes
\raggedright
\setlength{\itemsep}{0pt}
\setlength{\parsep}{0pt}
\normalfont\ttfamily}%
 \item[]}
{\end{list}}

%% User specified LaTeX commands.
\usepackage{url}
\usepackage{breakurl }
 --> Continue with the custom preamble
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Fwd: missing \usepackage{mhchem} in helpfile Math.lyx

2022-04-02 Thread Jürgen Spitzmüller via lyx-users
Am Samstag, dem 02.04.2022 um 18:00 +0200 schrieb Wolfgang Engelmann
via lyx-users:
> Do I need to insert \usepackage{mhchem} in the preamble?

No.

Jürgen



signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Fwd: missing \usepackage{mhchem} in helpfile Math.lyx

2022-04-02 Thread Wolfgang Engelmann via lyx-users



Am 02.04.22 um 17:54 schrieb Jürgen Spitzmüller via lyx-users:

Am Samstag, dem 02.04.2022 um 17:29 +0200 schrieb Wolfgang Engelmann
via lyx-users:

You say, I do not need to load it?


No. Why do you think you should? The note only say it needs to be
installed, not manually loaded.

Jürgen



Do I need to insert \usepackage{mhchem} in the preamble?
Wolfgang
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Fwd: missing \usepackage{mhchem} in helpfile Math.lyx

2022-04-02 Thread Jürgen Spitzmüller via lyx-users
Am Samstag, dem 02.04.2022 um 17:29 +0200 schrieb Wolfgang Engelmann
via lyx-users:
> You say, I do not need to load it?

No. Why do you think you should? The note only say it needs to be
installed, not manually loaded.

Jürgen



signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Fwd: missing \usepackage{mhchem} in helpfile Math.lyx

2022-04-02 Thread Wolfgang Engelmann via lyx-users



Am 02.04.22 um 17:24 schrieb Jürgen Spitzmüller via lyx-users:

Am Samstag, dem 02.04.2022 um 16:57 +0200 schrieb Wolfgang Engelmann
via lyx-users:

However, I could not find \usepackage{mhchem} in this helpfile
Math.lyx
Is this intentional? Or included in another \usepackage?


I see in the source preview of this manual:

\PassOptionsToPackage{version=3}{mhchem}
\usepackage{mhchem}

Note that mhchem is loaded automatically. Did you only look in the user
preamble?


Yes, Jürgen. I wanted to make sure that mhchem is working.
You say, I do not need to load it?

Wolfgang
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Fwd: missing \usepackage{mhchem} in helpfile Math.lyx

2022-04-02 Thread Jürgen Spitzmüller via lyx-users
Am Samstag, dem 02.04.2022 um 16:57 +0200 schrieb Wolfgang Engelmann
via lyx-users:
> However, I could not find \usepackage{mhchem} in this helpfile
> Math.lyx
> Is this intentional? Or included in another \usepackage?

I see in the source preview of this manual:

\PassOptionsToPackage{version=3}{mhchem}
\usepackage{mhchem}

Note that mhchem is loaded automatically. Did you only look in the user
preamble?

Jürgen



signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Fwd: missing \usepackage{mhchem} in helpfile Math.lyx

2022-04-02 Thread Wolfgang Engelmann via lyx-users



In the helpfile Math.lyx it is stated:

To export this document to PDF, PS or DVI the LaTeX-packages braket, 
cancel, eurosym, mathdots, mathtools, mhchem, undertilde and was should 
be installed. If they are not installed the document can be exported 
anyway but the sections where the packages are required will not appear 
in the output. An exception is mhchem; if it is not installed, this file 
cannot be exported.


The latest PDF-version of this document can be found 
here:https://wiki.lyx.org/LyX/Manuals#Math


However, I could not find \usepackage{mhchem} in this helpfile Math.lyx
Is this intentional? Or included in another \usepackage?

Wolfgang
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: \usepackage{makeidx} run twice for amsbook. Generates Error.

2019-09-02 Thread Paul A. Rubin

On 9/2/19 11:51 AM, Ralph Boland wrote:

Gave it a try.  Unfortunately it didn't work.
It turns out problem isn't as I described though.
amsbook (and presumably all the other ams document classes) work
ok.  The problem is I have defined my own document class based on
amsbook and that fails.   It seems Lyx knows about amsbook class
not needing the \usepackage{makeidx} line and doesn't add it.
But Lyx can't figure out that, since my class is based on amsbook
it doesn't need the line either.

I think Lyx has to have a checkbox in Document>Settings>Indexes
for whether the line should be added to the tex file.

Thanks for you help.

Ralph Boland

On Mon, 2 Sep 2019 at 08:27, Paul A. Rubin  wrote:

On 9/2/19 4:28 AM, Ralph Boland wrote:

I get an error when I try to create a Lyx document with an index
using amsbook document class.  Searching the problem on the internet
I found out that for  amsbook and other ams document classes the
\usepackage(makeidx) line is unnecessary and generates an error
if added to your tex document.

I tested this by generating the .tex file from my .lyx file (using
Latex (pdflatex))
and then commenting out the line in the .tex file:

 \usepackage(makeidx)

With this line commented out the problem goes away.

The problem is of course that Lyx adds this line to the .tex file
if I create an index.  So I cannot prevent this from occurring.

I am using Lyx 2.3.2  and Debian 10 OS.

Is this fixed in Lyx 2.3.3?

Ralph Boland

Try putting "provides makeidx 1" in Document > Settings > Local layout.
This will hopefully dissuade LyX from adding the redundant \usepackage
command ... maybe.

Paul


I'm replying to the list to keep the discussion visible there.

I assume you have a custom layout file for your class. The 
amsbook.layout file contains the line "Provides makeidx 1" near 
the top. You might try copying that into your layout file.


Paul



Re: \usepackage{makeidx} run twice for amsbook. Generates Error.

2019-09-02 Thread Paul A. Rubin

On 9/2/19 4:28 AM, Ralph Boland wrote:

I get an error when I try to create a Lyx document with an index
using amsbook document class.  Searching the problem on the internet
I found out that for  amsbook and other ams document classes the
\usepackage(makeidx) line is unnecessary and generates an error
if added to your tex document.

I tested this by generating the .tex file from my .lyx file (using
Latex (pdflatex))
and then commenting out the line in the .tex file:

\usepackage(makeidx)

With this line commented out the problem goes away.

The problem is of course that Lyx adds this line to the .tex file
if I create an index.  So I cannot prevent this from occurring.

I am using Lyx 2.3.2  and Debian 10 OS.

Is this fixed in Lyx 2.3.3?

Ralph Boland
Try putting "provides makeidx 1" in Document > Settings > Local layout. 
This will hopefully dissuade LyX from adding the redundant \usepackage 
command ... maybe.


Paul



\usepackage{makeidx} run twice for amsbook. Generates Error.

2019-09-02 Thread Ralph Boland
I get an error when I try to create a Lyx document with an index
using amsbook document class.  Searching the problem on the internet
I found out that for  amsbook and other ams document classes the
\usepackage(makeidx) line is unnecessary and generates an error
if added to your tex document.

I tested this by generating the .tex file from my .lyx file (using
Latex (pdflatex))
and then commenting out the line in the .tex file:

   \usepackage(makeidx)

With this line commented out the problem goes away.

The problem is of course that Lyx adds this line to the .tex file
if I create an index.  So I cannot prevent this from occurring.

I am using Lyx 2.3.2  and Debian 10 OS.

Is this fixed in Lyx 2.3.3?

Ralph Boland


Re: biblatex usepackage location in the preamble

2019-01-30 Thread Jürgen Spitzmüller
>
> https://github.com/plk/biblatex/issues/867
>
> I will keep list posted.
>

Excellent.
Jürgen

BE
>
> --
>
> ↓↓
> Please bottom-post. Start your reply here:
>
>


Re: biblatex usepackage location in the preamble

2019-01-30 Thread Baris Erkus
On 29-Jan-19 1:18 PM, Jürgen Spitzmüller wrote:
Great. You could also file a ticket at the biblatex tracker to make people 
aware of your effort. This might help attracting other:
https://github.com/plk/biblatex/issues

Jürgen


https://github.com/plk/biblatex/issues/867

I will keep list posted.

BE

--

↓↓
Please bottom-post. Start your reply here:


Re: biblatex usepackage location in the preamble

2019-01-29 Thread Jürgen Spitzmüller
Am Di., 29. Jan. 2019 um 10:53 Uhr schrieb Baris Erkus <
bariser...@hotmail.com>:

> No, it is part of the preamble:
> http://joshua.smcvt.edu/latex2e/_005cAtBeginDocument.html
>
> I couldn't confirm this. See for example this SE answer
> .
> Anyhow, this may be an issue related to the macro as you have said.
>
>
\AtBeginDocument is a somewhat liminal beast. Technically, it is part of
the preamble, but it is also issued at a stage where some things have
already been processed.

A good explanation is given by Philipp Lehman in the etoolbox manual:

"Any \AtBeginDocument code is executed towards the beginning of the
document body, after the main aux file has been read
for the first time. [...] In a way, \AtBeginDocument code is part neither
of the preamble nor the document body but located in-between them since it
gets executed in the middle of the
initialization sequence performed prior to typesetting. It is sometimes
desirable to move code to the end of the preamble because all requested
packages have been
loaded at this point. \AtBeginDocument code, however, is executed too late
if it is required in the aux file. In contrast to that, \AtEndPreamble code
is part of the
preamble."

This might be just the issue here.

> Adding a new localization is quite straightforward and not too much work.
> If you feel like contributing that, it would be a good way to "give back"
> to the community:
>
> https://github.com/plk/biblatex/wiki/Checklist-for-submitting-a-new-localisation-file-(.lbx)
>
> Actually, I have spent couple of hours working on a Turkish lbx file
> yesterday. Indeed, it does not look complicated. Still it requires
> attention from people with expertise in Turkish publishing rules.
>
> I will start a GitHub project on this, and see if I can get help ldx. I
> will fix the parts that I need in the mean time.
>
Great. You could also file a ticket at the biblatex tracker to make people
aware of your effort. This might help attracting other:
https://github.com/plk/biblatex/issues

Jürgen



> Thanks for the help!
> --
>
> ↓↓
> Please bottom-post. Start your reply here:
>
>


Re: biblatex usepackage location in the preamble

2019-01-29 Thread Baris Erkus
On 29-Jan-19 12:15 PM, Jürgen Spitzmüller wrote:
Am Mo., 28. Jan. 2019 um 19:51 Uhr schrieb Baris Erkus 
mailto:bariser...@hotmail.com>>:
Thanks Jürgen. This one I understand. However, this requirement does not call 
for loading babel+biblatex right before the \begin{document}; they can still be 
placed right after other packages loaded after \documentclass. The examples on 
BibLaTeX, I sqw SE or other web pages loads BibLaTeX in the block after 
\documentclass, but late.

The loading order of packages is tricky. Some packages need to be loaded after 
the user preamble, and babel needs to be loaded after that, and biblatex after 
babel. Just because this works in your case in the different order does not 
mean it works generally.
Exactly. However, I am not sure if they have to be placed right before the 
\begin{document}.

The only way around that would be a second user preamble:
https://www.lyx.org/trac/ticket/5366
+1

It does compiling, but the replacement did not work.

I think, the \AtBeginDocument{...}  macro places the contents right after the 
\begin{document}, but not in the preamble.

No, it is part of the preamble:
http://joshua.smcvt.edu/latex2e/_005cAtBeginDocument.html

I couldn't confirm this. See for example this SE 
answer<https://tex.stackexchange.com/questions/177397/why-does-it-matter-when-atbegindocument-is-run>.
 Anyhow, this may be an issue related to the macro as you have said.

[cid:part5.9F8AAA3C.23830C58@hotmail.com]


Try instead:

\usepackage{etoolbox}
\AtEndPreamble{%
...
}
This worked! This is what I need.
Adding a new localization is quite straightforward and not too much work. If 
you feel like contributing that, it would be a good way to "give back" to the 
community:
https://github.com/plk/biblatex/wiki/Checklist-for-submitting-a-new-localisation-file-(.lbx)

Actually, I have spent couple of hours working on a Turkish lbx file yesterday. 
Indeed, it does not look complicated. Still it requires attention from people 
with expertise in Turkish publishing rules.

I will start a GitHub project on this, and see if I can get help ldx. I will 
fix the parts that I need in the mean time.

Thanks for the help!

--

↓↓
Please bottom-post. Start your reply here:


Re: biblatex usepackage location in the preamble

2019-01-29 Thread Jürgen Spitzmüller
Am Mo., 28. Jan. 2019 um 19:51 Uhr schrieb Baris Erkus <
bariser...@hotmail.com>:

> Thanks Jürgen. This one I understand. However, this requirement does not
> call for loading babel+biblatex right before the \begin{document}; they can
> still be placed right after other packages loaded after \documentclass. The
> examples on BibLaTeX, I sqw SE or other web pages loads BibLaTeX in the
> block after \documentclass, but late.
>

The loading order of packages is tricky. Some packages need to be loaded
after the user preamble, and babel needs to be loaded after that, and
biblatex after babel. Just because this works in your case in the different
order does not mean it works generally.

The only way around that would be a second user preamble:
https://www.lyx.org/trac/ticket/5366


> It does compiling, but the replacement did not work.
>
> I think, the \AtBeginDocument{...}  macro places the contents right after
> the \begin{document}, but not in the preamble.
>
No, it is part of the preamble:
http://joshua.smcvt.edu/latex2e/_005cAtBeginDocument.html

> However, the \DefineBibliographyStrings{...} and similar BibLaTeX commands
> are placed in the preamble according to Section 3.9 of BibLaTeX manual.
> Maybe this is the reason it does not do the replacement (?).
>
I don't think so. The reason might be that it comes too late for biblatex,
which hooks itself into the document.

Try instead:

\usepackage{etoolbox}
\AtEndPreamble{%
...
}


>
> (TBH, this was not my original problem. I was trying to use BibLaTeX for a
> Turkish document, only to find out BibLaTeX does not have Turkish support
> yet :< )
>
Adding a new localization is quite straightforward and not too much work.
If you feel like contributing that, it would be a good way to "give back"
to the community:
https://github.com/plk/biblatex/wiki/Checklist-for-submitting-a-new-localisation-file-(.lbx)

HTH
Jürgen


> Baris
>
> --
> ↓↓
> Please bottom-post. Start your reply here:
>
>


Re: biblatex usepackage location in the preamble

2019-01-29 Thread Baris Erkus
On 29-Jan-19 9:14 AM, Daniel wrote:
> If I read the documentations for \AtBeginDocument correctly, it places 
> the macro just before \begin{document}. Is your .tex test file working 
> as expected when you move your macro manually to whatever position you 
> think it should be moved? If not then the problem might be the macro 
> rather than LyX.
>
> Daniel
>
The macro works fine if I place it to the required location manually (I 
have sent the LaTeX file in the first e-mail for the record).
The loading sequence of the packages should be like the following 
according the BibLaTeX, which works as expected:

\documentclass[english]{article}
**Misc Packages**
\usepackage{babel}
\usepackage[style=authoryear, maxcitenames=2]{biblatex}
\addbibresource{test.bib}

 Macro 
\DefineBibliographyStrings{english}{%
   references = {{Kaynaklar}},
   and = {ve},
   andothers ={ve diğerleri},
}
 End Macro 

\begin{document}
**Misc**
\printbibliography
\end{document}

Unfortunately, LyX does not do this format as you have mentioned and 
wrapping with macro to place at the beginning of the document does not work.

Baris



Re: biblatex usepackage location in the preamble

2019-01-28 Thread Daniel

On 2019-01-28 19:50, Baris Erkus wrote:

  It does compiling, but the replacement did not work.

I think, the \AtBeginDocument{...}  macro places the contents right 
after the \begin{document}, but not in the preamble. However, the 
\DefineBibliographyStrings{...} and similar BibLaTeX commands are placed 
in the preamble according to Section 3.9 of BibLaTeX manual. Maybe this 
is the reason it does not do the replacement (?).


I have also tried to compile a LaTeX file where I place this block to 
the beginning of the document right after \begin{document} and it gives 
error that this has to be placed in the preamble (no LyX involved).


I further tested the case on LaTeX again, where the above block wrapped 
with \AtBeginDocument{...} in the preamble, but before loading biblatex; 
it compiles, but it does not do the replacement (no LyX involved).


So, is there a workaround for this in LyX, am I missing smtg?

(TBH, this was not my original problem. I was trying to use BibLaTeX for 
a Turkish document, only to find out BibLaTeX does not have Turkish 
support yet :< )


If I read the documentations for \AtBeginDocument correctly, it places 
the macro just before \begin{document}. Is your .tex test file working 
as expected when you move your macro manually to whatever position you 
think it should be moved? If not then the problem might be the macro 
rather than LyX.


Daniel



Re: biblatex usepackage location in the preamble

2019-01-28 Thread Baris Erkus
On 28-Jan-19 7:46 PM, Jürgen Spitzmüller wrote:
Am Mo., 28. Jan. 2019 um 16:40 Uhr schrieb Baris Erkus 
mailto:bariser...@hotmail.com>>:

I observed that if biblatex is selected for the bibliography style, the 
\usepackage[*options*]{biblatex} is placed right before the \begin{document}, 
but not after the \documentclass, where usually packages are called.

Yes, because biblatex must be loaded after babel (or polyglossia), and this, in 
turn, must be loaded late.
Thanks Jürgen. This one I understand. However, this requirement does not call 
for loading babel+biblatex right before the \begin{document}; they can still be 
placed right after other packages loaded after \documentclass. The examples on 
BibLaTeX, I sqw SE or other web pages loads BibLaTeX in the block after 
\documentclass, but late.

If I want to place some code in the preamble that requires the biblatex 
package, then these codes appear before the \usepackage[*options*]{biblatex} 
line, and they do not work.

For example I wanted to replace "et al.", "and", "Bibliography (title)" with 
their Turkish counterparts by simply placing the following code to the preamble:

\DefineBibliographyStrings{english}{%
  references = {{Kaynaklar}},
  and = {ve},
  andothers ={ve diğerleri},
}

but it does not work.

You need to embrace such definitions in \AtBeginDocument{...}. See
https://wiki.lyx.org/BibTeX/Biblatex#toc2

HTH,
Jürgen


 It does compiling, but the replacement did not work.

I think, the \AtBeginDocument{...}  macro places the contents right after the 
\begin{document}, but not in the preamble. However, the 
\DefineBibliographyStrings{...} and similar BibLaTeX commands are placed in the 
preamble according to Section 3.9 of BibLaTeX manual. Maybe this is the reason 
it does not do the replacement (?).

I have also tried to compile a LaTeX file where I place this block to the 
beginning of the document right after \begin{document} and it gives error that 
this has to be placed in the preamble (no LyX involved).

I further tested the case on LaTeX again, where the above block wrapped with 
\AtBeginDocument{...} in the preamble, but before loading biblatex; it 
compiles, but it does not do the replacement (no LyX involved).

So, is there a workaround for this in LyX, am I missing smtg?

(TBH, this was not my original problem. I was trying to use BibLaTeX for a 
Turkish document, only to find out BibLaTeX does not have Turkish support yet 
:< )

Baris

--
↓↓
Please bottom-post. Start your reply here:
%% LyX 2.3.2-2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}


\AtBeginDocument{%
\DefineBibliographyStrings{english}{%
  references = {{Kaynaklar}},
  and = {ve},
  andothers ={ve diğerleri},
}
}


\usepackage{babel}
\usepackage[style=authoryear,maxcitenames=2]{biblatex}

\addbibresource{test.bib}

\begin{document}

Testing \parencite{Nagarajaiah1991} Testing \parencite{AtikAbrahamson2010}

\printbibliography

\end{document}


newfile1-biblatex-2.lyx
Description: newfile1-biblatex-2.lyx


Re: biblatex usepackage location in the preamble

2019-01-28 Thread Jürgen Spitzmüller
Am Mo., 28. Jan. 2019 um 16:40 Uhr schrieb Baris Erkus <
bariser...@hotmail.com>:

> I observed that if biblatex is selected for the bibliography style, the
> \usepackage[*options*]{biblatex} is placed right before the
> \begin{document}, but not after the \documentclass, where usually packages
> are called.
>
Yes, because biblatex must be loaded after babel (or polyglossia), and
this, in turn, must be loaded late.

> If I want to place some code in the preamble that requires the biblatex
> package, then these codes appear before the
> \usepackage[*options*]{biblatex} line, and they do not work.
>
> For example I wanted to replace "et al.", "and", "Bibliography (title)"
> with their Turkish counterparts by simply placing the following code to the
> preamble:
>
> \DefineBibliographyStrings{english}{%
>   references = {{Kaynaklar}},
>   and = {ve},
>   andothers ={ve diğerleri},
> }
>
> but it does not work.
>
You need to embrace such definitions in \AtBeginDocument{...}. See
https://wiki.lyx.org/BibTeX/Biblatex#toc2

HTH,
Jürgen


biblatex usepackage location in the preamble

2019-01-28 Thread Baris Erkus
Hello,

I observed that if biblatex is selected for the bibliography style, the 
\usepackage[*options*]{biblatex} is placed right before the \begin{document}, 
but not after the \documentclass, where usually packages are called.

If I want to place some code in the preamble that requires the biblatex 
package, then these codes appear before the \usepackage[*options*]{biblatex} 
line, and they do not work.

For example I wanted to replace "et al.", "and", "Bibliography (title)" with 
their Turkish counterparts by simply placing the following code to the preamble:

\DefineBibliographyStrings{english}{%
  references = {{Kaynaklar}},
  and = {ve},
  andothers ={ve diğerleri},
}

but it does not work.

I exported the LyX file into a (PDF)LaTeX file and moved the 
\usepackage[*options*]{biblatex} line after the \documentclass and before the 
new definitions, which works fine.

Is this how it's intended to be or, \usepackage[*options*]{biblatex} line 
should be placed along with the other package definitions right after the 
\documentclass ? I can make the similar observation for the babel package, BTW.

Attached is a MWE and its LaTeX preview, its export to LaTeX file, and the 
corrected LaTeX file along with the sample bib file.

BE

[cid:part1.3B97E451.0145701D@hotmail.com]

--
↓↓
Please bottom-post. Start your reply here:
%% LyX 2.3.2-2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\makeatletter
%% User specified LaTeX commands.
\DefineBibliographyStrings{english}{%
  references = {{Kaynaklar}},
  and = {ve},
  andothers ={ve diğerleri},
}

\makeatother

\usepackage{babel}
\usepackage[style=authoryear,maxcitenames=2]{biblatex}
\addbibresource{test.bib}
\begin{document}
Testing \parencite{Nagarajaiah1991} Testing \parencite{AtikAbrahamson2010}

\printbibliography

\end{document}
%% LyX 2.3.2-2 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[style=authoryear,maxcitenames=2]{biblatex}

\makeatletter
%% User specified LaTeX commands.
\DefineBibliographyStrings{english}{%
  references = {{Kaynaklar}},
  and = {ve},
  andothers ={ve diğerleri},
}

\makeatother

\addbibresource{test.bib}
\begin{document}
Testing \parencite{Nagarajaiah1991} Testing \parencite{AtikAbrahamson2010}

\printbibliography

\end{document}
@Article{AtikAbrahamson2010,
  author  = {Linda Al Atik and Norman Abrahamson},
  title   = {An Improved Method for Nonstationary Spectral Matching},
  journal = {Earthquake Spectra},
  year= {2010},
  volume  = {26},
  number  = {3},
  pages   = {601-617},
}

@Article{Nagarajaiah1991,
  author  = {Satish Nagarajaiah and Andrei M. Reinhorn and Michalakis C. 
Constantinou},
  title   = {Nonlinear Dynamic Analysis of 3D Base Isolated Structures},
  journal = {Journal of Structural Engineering},
  year= {1991},
  volume  = {117},
  number  = {7},
  pages   = {2035-2054},
}


newfile1-biblatex.lyx
Description: newfile1-biblatex.lyx


Re: \usepackage{cite} with IEEEtrans not collapsing multiple refs?

2015-07-07 Thread Neal Becker
Neal Becker wrote:

> I'm using
> \documentclass[american,conference]{IEEEtran}
> \usepackage{fontspec}
> \usepackage{geometry}
> \geometry{verbose}
> \usepackage{graphicx}
> 
> \makeatletter
> %% User specified LaTeX commands.
> \usepackage{cite}
> ...
> 
> But citations like:
> \cite{roberts,okada}
> 
> are not collapsed, but appear as
> [1], [2]
> 
> This is supposed to work according to
> 
http://ctan.mirrors.hoobly.com/macros/latex/contrib/IEEEtran/IEEEtran_HOWTO.pdf
> 
> Any ideas? (Of course, this is a lualatex issue, not really lyx issue - I
> can reproduce running lualatex on the latex output from lyx)

my mistake, it seems only collections of >=3 items are collapsed - I was 
testing with 2.



\usepackage{cite} with IEEEtrans not collapsing multiple refs?

2015-07-07 Thread Neal Becker
I'm using
\documentclass[american,conference]{IEEEtran}
\usepackage{fontspec}
\usepackage{geometry}
\geometry{verbose}
\usepackage{graphicx}

\makeatletter
%% User specified LaTeX commands.
\usepackage{cite}
...

But citations like:
\cite{roberts,okada}

are not collapsed, but appear as
[1], [2]

This is supposed to work according to
http://ctan.mirrors.hoobly.com/macros/latex/contrib/IEEEtran/IEEEtran_HOWTO.pdf

Any ideas? (Of course, this is a lualatex issue, not really lyx issue - I 
can reproduce running lualatex on the latex output from lyx)



Re: \usepackage{flushend} on two-column documents causes misplaced footnotes

2014-08-28 Thread Marcelo Acuña
I have not problem with flushend and two columns.
Maybe the problem is caused elsewhere in the document or preamble.


Regards
Marcelo


El Jueves, 28 de agosto, 2014 12:24:03, Richard Heck  escribió:
 


On 08/28/2014 07:11 AM, Jerry wrote:

> When I insert
>
> \usepackage{flushend}
>
> into the preamble and make the setting for two-column output, so that the 
> columns on the last page have the same length ("flush end"), _some_ footnotes 
> appear in embarrassingly inappropriate places, meaning, in the middle of a 
> column, surrounded above and below by normal text.
>
> Is this a TeX problem? Is there a known cure? Should I go to a LaTeX group 
> and ask this?

Yes, it's presumably an issue with that package.

rh

Re: \usepackage{flushend} on two-column documents causes misplaced footnotes

2014-08-28 Thread Richard Heck

On 08/28/2014 07:11 AM, Jerry wrote:

When I insert

\usepackage{flushend}

into the preamble and make the setting for two-column output, so that the columns on the 
last page have the same length ("flush end"), _some_ footnotes appear in 
embarrassingly inappropriate places, meaning, in the middle of a column, surrounded above 
and below by normal text.

Is this a TeX problem? Is there a known cure? Should I go to a LaTeX group and 
ask this?


Yes, it's presumably an issue with that package.

rh



\usepackage{flushend} on two-column documents causes misplaced footnotes

2014-08-28 Thread Jerry
When I insert 

\usepackage{flushend}

into the preamble and make the setting for two-column output, so that the 
columns on the last page have the same length ("flush end"), _some_ footnotes 
appear in embarrassingly inappropriate places, meaning, in the middle of a 
column, surrounded above and below by normal text.

Is this a TeX problem? Is there a known cure? Should I go to a LaTeX group and 
ask this?

Jerry

Re: What's the difference between \RequirePackage and \usepackage?

2009-11-20 Thread Guenter Milde
On 2009-11-19, Steve Litt wrote:

> What's the difference between \RequirePackage and \usepackage?

see clsguide.pdf (in the LaTeX base-doc)::

  LaTEX has three types of command.
  
  There are the author commands, such as \section, \emph and \times: most
  of these have short names, all in lower case.
  
  There are also the class and package writer commands: most of these
  have long mixed-case names such as the following.

  \InputIfFileExists \RequirePackage  \PassOptionsToClass
  
  Finally, there are the internal commands used in the LaTEX
  implementation, such as \...@tempcnta, \...@ifnextchar and \...@eha: most of
  these commands contain @ in their name, which means they cannot be used
  in documents, only in class and package files.


> So, when would I need to use \RequirePackage?

no need, but the convention is to use \RequirePackage in a package or
class and \usepackage in a document.

Günter



What's the difference between \RequirePackage and \usepackage?

2009-11-19 Thread Steve Litt
Hi all,

I crawled all over Google and CTAN and couldn't find an answer to this 
question:

What's the difference between \RequirePackage and \usepackage?

When would I use \RequirePackage? I've never used it before -- I've always 
used \usepackage.

One thing my Google travels did uncover is that if you use two different 
packages both containing \RequirePackage{fancyhdr}, you'll get an error 
message and compilation will halt. There's no solution for this as easy as the 
old C idiom:

#ifndef MYINCLUDE
#define MYINCLUDE 1
/*begin code for myinclude.h*/
/*end code for myinclude.h*/
#endif

So, when would I need to use \RequirePackage?

Thanks

StevET
 as easy
-- 
Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt




Re: \usepackage[full]{textcomp} - where to set?

2009-01-26 Thread Jürgen Spitzmüller
Wolfgang Keller wrote:
> > could you post a small example file? I'm unable to reproduce the
> > problem.
>
> I've narrowed the source of the problem down to the use of a symbol I
> use: \textopenbullet{}, together with the kpfonts.

You can disable the automatic textcomp loading of the kpfonts package with the 
package option "notextcomp" (see the package documentation). If you keep the 
"full" class option in LyX, textcomp will then be loaded with this option 
nevertheless (even though kpfonts just doesn't recognize this).

Jürgen


Re: \usepackage[full]{textcomp} - where to set?

2009-01-26 Thread Wolfgang Keller
> could you post a small example file? I'm unable to reproduce the
> problem.

I've narrowed the source of the problem down to the use of a symbol I
use: \textopenbullet{}, together with the kpfonts.

The workaround is to use the ifsym package.

Try this:

% Quellcode vorschauen

%% LyX 1.6.1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[10pt,ngerman,full]{scrartcl}
\usepackage[osf]{mathpazo}
\renewcommand{\sfdefault}{cmbr}
\renewcommand{\ttdefault}{lmtt}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{geometry}
\geometry
{verbose,letterpaper,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}
\pagestyle{empty} \usepackage{textcomp}

%% User specified LaTeX commands.
\usepackage{color}
\definecolor{grey}{gray}{0.3}
\usepackage{kpfonts}

%\renewcommand{\rmdefault}{uop}

\makeatother
\usepackage{babel}

\usepackage{babel}

\begin{document}
\textopenbullet{}
\end{document}



Re: \usepackage[full]{textcomp} - where to set?

2009-01-26 Thread Jürgen Spitzmüller
Wolfgang Keller wrote:
> > You can pass the "full" option to Document>Settings>Class Options.
> > Class options will be passed down to the packages by LaTeX.
>
> Apparently not:
>
> LaTeX Error: Option clash for package textcomp.
>
>  ...textcomp\RequirePackage[full]{textcomp}\fi

could you post a small example file? I'm unable to reproduce the problem.

Jürgen


Re: \usepackage[full]{textcomp} - where to set?

2009-01-26 Thread Wolfgang Keller
> > where can I tell Lyx once forever that it shall load the "textcomp"
> > package always with the option "full", because this is required by
> > certain other packages?
> 
> You can pass the "full" option to Document>Settings>Class Options.
> Class options will be passed down to the packages by LaTeX.

Apparently not:

LaTeX Error: Option clash for package textcomp.

 ...textcomp\RequirePackage[full]{textcomp}\fi
  
The package textcomp has already been loaded with options:
  []
There has now been an attempt to load it with options
  [full]
Adding the global options:
  ,full
to your \documentclass declaration may fix this.
Try typingto proceed.

THis was the start of the source:

% Quellcode vorschauen

%% LyX 1.6.1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[10pt,ngerman,full]{scrartcl}
\usepackage[osf]{mathpazo}
\renewcommand{\sfdefault}{cmbr}
\renewcommand{\ttdefault}{lmtt}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{geometry}
\geometry
{verbose,letterpaper,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}
\pagestyle{empty} \usepackage{array}
\usepackage{textcomp}

\makeatletter

Sincerely,

Wolfgang



Re: \usepackage[full]{textcomp} - where to set?

2009-01-25 Thread Jürgen Spitzmüller
Wolfgang Keller wrote:
> where can I tell Lyx once forever that it shall load the "textcomp"
> package always with the option "full", because this is required by
> certain other packages?

You can pass the "full" option to Document>Settings>Class Options. Class 
options will be passed down to the packages by LaTeX.

Jürgen


\usepackage[full]{textcomp} - where to set?

2009-01-25 Thread Wolfgang Keller
Hello,

where can I tell Lyx once forever that it shall load the "textcomp"
package always with the option "full", because this is required by
certain other packages?

Exporting, hand-editing and re-importing all the time doesn't work as
LyX will overwrite the modification.

I'm writing a scrartcl, if this is of any concern.

TIA,

Sincerely,

Wolfgang



Re: what is this: \usepackage[latin9]{inputenc} and why does TexLive hate it?

2008-01-22 Thread Helge Hafting

Paul A. Rubin wrote:


The problem is all those darned foreigners with their accented 
characters and Cyrillic/kanji/whatever symbols.  (Note that I'm 
including Mac users as foreigners, since the inputenc package 
supposedly addresses them as well).  When I was younger, everyone used 
ASCII and damn well liked it.  (Well, there was EBCDIC I suppose.)

We 'darned' always extended ASCII in various ways, because it was always
insufficient. For a clear idea of the problem: Try removing three vowels 
from

ASCII, and then try writing anything serious at all. You can't. :-)

More or less cumbersome workarounds have been in use since they started 
replacing

mechanical typewriters with word processing. Because you can't write
a decent business letter with just ascii.

Now, UTF-8 will probably put an end to the mess for good.

Helge Hafting


Re: what is this: \usepackage[latin9]{inputenc} and why does TexLive hate it?

2008-01-21 Thread Paul A. Rubin

David A. Case wrote:

On Mon, Jan 21, 2008, Paul A. Rubin wrote:

The problem is all those darned foreigners with their accented 
characters and Cyrillic/kanji/whatever symbols


In LyX, go into Document -> Settings -> Language.  You 
have the language set as "English" (good choice there, fewer funny 
characters)


Well, you do get fewer funny characters, but only monarchists should follow
your choice.  Red-blooded patriots who support Big Ten football should choose
"American" as their document language.  :-)

dave case  (MSU, class of 1970)




Good point -- although that might risk disenfranchising da Youpers.  I'm 
not sure what (if any) character set they have, and many of them are Big 
10 fans.  :-)


/Paul



Re: what is this: \usepackage[latin9]{inputenc} and why does TexLive hate it?

2008-01-21 Thread David A. Case
On Mon, Jan 21, 2008, Paul A. Rubin wrote:

> 
> The problem is all those darned foreigners with their accented 
> characters and Cyrillic/kanji/whatever symbols
> 
> In LyX, go into Document -> Settings -> Language.  You 
> have the language set as "English" (good choice there, fewer funny 
> characters)

Well, you do get fewer funny characters, but only monarchists should follow
your choice.  Red-blooded patriots who support Big Ten football should choose
"American" as their document language.  :-)

dave case  (MSU, class of 1970)



Re: what is this: \usepackage[latin9]{inputenc} and why does TexLive hate it?

2008-01-21 Thread Paul A. Rubin

Paul Johnson wrote:

In Fedora 8 Linux, I'm using the TexLive version of latex that is now
available fore testing.  I can ask there about this trouble, but I'm
pretty sure they will send me back here to ask "why does LyX do
that?".

The problem:  I get weird output.  In a simple document created from
the default everything--with no fancy features-- no preface items
inserted by me, then I have the problem that the xvi and pdf output is
"jumbled".  Instead of the default characters, the type font that is
used looks like an old Courier typewriter, but the characters are not
evenly spaced. Some are typed on top of each other, some have extra
spaces between them. I'm attaching this small lyx file to this note,
wondering if anybody sees something funny about it.


Loads fine, output displays fine for me (on both Win XP with MiKTeX and 
Ubuntu with TeXLive).  I tried both DVI (xdvik on Ubuntu) and PDF 
(Evince on Ubuntu), no problems.


I output the lyx document to latex for experimentation, and I cut
lines from the pre-amble until the document came out correct.  In all
of the troublesome files, the problem seems to be this one line:

\usepackage[latin9]{inputenc}

What is it? What is latin9?


The problem is all those darned foreigners with their accented 
characters and Cyrillic/kanji/whatever symbols.  (Note that I'm 
including Mac users as foreigners, since the inputenc package supposedly 
addresses them as well).  When I was younger, everyone used ASCII and 
damn well liked it.  (Well, there was EBCDIC I suppose.)


Anyway, this just adds in a package to help cope with non-ASCII 
characters in the input file (I think).  You can find the documentation 
for the inputenc style file at 
/usr/share/texmf-texlive/doc/latex/base/inputenc.pdf (at least on my 
Ubuntu box).


When I run "pdflatex newfile1.tex", I see a lot of messages like this:

pdfTeX warning: pdflatex (file /var/lib/texmf/fonts/map/pdftex/updmap/pdftex.ma
p): ambiguous entry for `ebbx10': font file present but not included, will be t
reated as font file not present


pdfTeX warning: pdflatex (file /var/lib/texmf/fonts/map/pdftex/updmap/pdftex.ma
p): ambiguous entry for `ebmo10': font file present but not included, will be t
reated as font file not present
...


I'm not sure why you're getting any messages about these fonts, since 
they don't seem to be used in your document (unless they're set as 
defaults in your TeXLive installation??).  I have ebbx10 and ebmo10 
installed (they're part of the cmbright font package), and they're not 
listed (that I can find) in pdftex.map.


Font stuff makes my eyes water at the best of times.  Whatever installed 
the cmbright fonts should (I think) have updated the font maps to 
include them.  I can barely make that happen with MiKTeX; I have no idea 
how to make it happen with TeXLive (nor why the issue arises in your 
document) (nor what it could possibly have to do with the input encoding).


Back tracking, I note no errors in the latex run, but when I view the
dvi file the output looks like hell, and in the terminal I see:

$ xdvi newfile1.dvi
xdvi-xaw3d.bin: Warning: Font map calls for ecrm1200, but it was not
found (will try PK version instead).
xdvi-xaw3d.bin: Warning: Font map calls for ecrm1728, but it was not
found (will try PK version instead).
xdvi-xaw3d.bin: Warning: Font map calls for ecrm1000, but it was not
found (will try PK version instead).


After I delete that preamble line about latin9 input encoding, then
the document processes correctly! Looks great!

What do you think?  Where is "latin9" coming from?


It's a default.  In LyX, go into Document -> Settings -> Language.  You 
have the language set as "English" (good choice there, fewer funny 
characters) and the options to use the language's default encoding set. 
 If you uncheck the latter, the Encoding control activates and you can 
set LaTeX default, ASCII, utf8 or whatever you like.  You might try one 
of those and see if your output then looks better, although I don't see 
why latin9 should be a problem.


/Paul



what is this: \usepackage[latin9]{inputenc} and why does TexLive hate it?

2008-01-21 Thread Paul Johnson
In Fedora 8 Linux, I'm using the TexLive version of latex that is now
available fore testing.  I can ask there about this trouble, but I'm
pretty sure they will send me back here to ask "why does LyX do
that?".

The problem:  I get weird output.  In a simple document created from
the default everything--with no fancy features-- no preface items
inserted by me, then I have the problem that the xvi and pdf output is
"jumbled".  Instead of the default characters, the type font that is
used looks like an old Courier typewriter, but the characters are not
evenly spaced. Some are typed on top of each other, some have extra
spaces between them. I'm attaching this small lyx file to this note,
wondering if anybody sees something funny about it.

I output the lyx document to latex for experimentation, and I cut
lines from the pre-amble until the document came out correct.  In all
of the troublesome files, the problem seems to be this one line:

\usepackage[latin9]{inputenc}

What is it? What is latin9?

When I run "pdflatex newfile1.tex", I see a lot of messages like this:

pdfTeX warning: pdflatex (file /var/lib/texmf/fonts/map/pdftex/updmap/pdftex.ma
p): ambiguous entry for `ebbx10': font file present but not included, will be t
reated as font file not present


pdfTeX warning: pdflatex (file /var/lib/texmf/fonts/map/pdftex/updmap/pdftex.ma
p): ambiguous entry for `ebmo10': font file present but not included, will be t
reated as font file not present
...

Back tracking, I note no errors in the latex run, but when I view the
dvi file the output looks like hell, and in the terminal I see:

$ xdvi newfile1.dvi
xdvi-xaw3d.bin: Warning: Font map calls for ecrm1200, but it was not
found (will try PK version instead).
xdvi-xaw3d.bin: Warning: Font map calls for ecrm1728, but it was not
found (will try PK version instead).
xdvi-xaw3d.bin: Warning: Font map calls for ecrm1000, but it was not
found (will try PK version instead).


After I delete that preamble line about latin9 input encoding, then
the document processes correctly! Looks great!

What do you think?  Where is "latin9" coming from?



-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas


newfile1.lyx
Description: application/lyx


Re: \usepackage{draftcopy} -- Working

2007-08-05 Thread Rich Shepard

On Sun, 5 Aug 2007, Rich Shepard wrote:


 I see nothing in the draftwartermark.pdf to explain this behavior. Have
you any ideas?


  OK. I found the problem. I was pressing ctrl-d to view the dvi output.
When I explicitly select View->pdflatex, it displays properly.

Mea culpa!

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
 Voice: 503-667-4517  Fax: 503-667-8863


Re: \usepackage{draftcopy}

2007-08-05 Thread Rich Shepard

On Sun, 5 Aug 2007, Uwe Stöhr wrote:

This package didn't work for me either, so I use now the draftwatermark 
package.

I have this in my preamble:

\usepackage{draftwatermark}
\SetWatermarkFontSize{2.8cm}
\SetWatermarkText{Draft, not for public use!}


Uwe,

  Thank you for the pointer. I downloaded from CTAN and installed both
everypage and draftwatermark. The latter shows "DRAFT" by default, but
horizontal (rather than at a 45 degree angle), and it's toward the bottom of
the page and offset to the right rather than centered.

  I've tried using
\SetWatermarkAngle{45.0}

but that makes no difference. And, If I add a command to 
\SetWatermarkText{...},


it displays so far down the page that only the top portion is visible.

  I see nothing in the draftwartermark.pdf to explain this behavior. Have
you any ideas?

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517  Fax: 503-667-8863

Re: \usepackage{draftcopy}

2007-08-05 Thread Uwe Stöhr

> I would like to use this package, but it does nothing when I view the dvi
> or pdflatex output on screen. (The preamble does contain
> \usepackage{...,draftcopy}.)

This package didn't work for me either, so I use now the draftwatermark package.
I have this in my preamble:

\usepackage{draftwatermark}
\SetWatermarkFontSize{2.8cm}
\SetWatermarkText{Draft, not for public use!}

For more information have a look at its documentation.

regards Uwe


Re: \usepackage{draftcopy}

2007-08-03 Thread Bennett Helm

On Aug 3, 2007, at 11:01 PM, Rich Shepard wrote:

On Fri, 3 Aug 2007, Bennett Helm wrote:

(Don't confuse the .lyx document with the .tex document LyX will  
produce.)


  I don't.


Adding "draft" as one of the document class options results in the  
following appearing in the .lyx file:


\options draft

When LyX generates LaTeX, this gets passed as an option in the  
\documentclass line.


That's why I warned against confusing the two.


From the draftcopy manual:


  Where can I find the manual? I searched on my filesystems and on  
the 'Net

without finding it.


Try a web search for "draftcopy.pdf" or run latex on draftcopy.ins  
and then again on draftcopy.dtx to produce the documentation  
yourself. (If you don't have draftcopy.ins already, you can get it at  
CTAN.)


Bennett




Re: \usepackage{draftcopy}

2007-08-03 Thread Rich Shepard

On Fri, 3 Aug 2007, Bennett Helm wrote:


(Don't confuse the .lyx document with the .tex document LyX will produce.)


  I don't.


From the draftcopy manual:


  Where can I find the manual? I searched on my filesystems and on the 'Net
without finding it.

  So, I can produce .ps output then run it through ps2pdf. I'll give this a
try.

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
 Voice: 503-667-4517  Fax: 503-667-8863


Re: \usepackage{draftcopy}

2007-08-03 Thread Bennett Helm

On Aug 3, 2007, at 5:28 PM, Rich Shepard wrote:


On Fri, 3 Aug 2007, Bennett Helm wrote:

Have you specified "draft" as one of the document class options  
for your document?


Bennett,

  According to Kopka and Daly's "Guide to LaTeX, 4th Ed.," the  
document

class is declared with options and the class name in braces; e.g,,

\documentclass[draft]{article}

where the draft option will mark overfull lines with broad, black  
lines.

What else it does they do not write.

  However, when I look at the .lyx file, I find no \documentclass.  
Instead,

there is the line,

\textclass article

and it does not happily accept options.

  What do I need to change to have the draftcopy package work?


(Don't confuse the .lyx document with the .tex document LyX will  
produce.)


From the draftcopy manual:

3 A Few Warnings
The result of printing DRAFT onto the page will be visible only in  
the Postscript
output, not in the DVI output. The other text will be visible always.  
Sometimes
ghostview has problems in presenting the correct result, use  
ghostscript (gs)

instead. The printed result should always meet your intension.
Currently this package works only for Postscript and not for PDF, sorry.


Bennett


Re: \usepackage{draftcopy}

2007-08-03 Thread Rich Shepard

On Fri, 3 Aug 2007, Bennett Helm wrote:

Have you specified "draft" as one of the document class options for your 
document?


Bennett,

  According to Kopka and Daly's "Guide to LaTeX, 4th Ed.," the document
class is declared with options and the class name in braces; e.g,,

\documentclass[draft]{article}

where the draft option will mark overfull lines with broad, black lines.
What else it does they do not write.

  However, when I look at the .lyx file, I find no \documentclass. Instead,
there is the line,

\textclass article

and it does not happily accept options.

  What do I need to change to have the draftcopy package work?

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
 Voice: 503-667-4517  Fax: 503-667-8863


Re: \usepackage{draftcopy}

2007-08-03 Thread Rich Shepard

On Fri, 3 Aug 2007, Bennett Helm wrote:


Have you specified "draft" as one of the document class options for your
document?


Bennett,

  No, I hadn't.

  I just entered "draft" (without the quotes) in the article class option
widget, but that did not do the trick. What is the proper procedure?

Thanks,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
 Voice: 503-667-4517  Fax: 503-667-8863


\usepackage{draftcopy}

2007-08-03 Thread Rich Shepard

  I would like to use this package, but it does nothing when I view the dvi
or pdflatex output on screen. (The preamble does contain
\usepackage{...,draftcopy}.)

  My Google search turned up references to this package, but no explicit
instructions for its use. Does it need ancillary packages to work? What
might I have missed?

TIA,

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517  Fax: 503-667-8863


Re: \usepackage{draftcopy}

2007-08-03 Thread Bennett Helm

On Aug 3, 2007, at 2:15 PM, Rich Shepard wrote:

  I would like to use this package, but it does nothing when I view  
the dvi

or pdflatex output on screen. (The preamble does contain
\usepackage{...,draftcopy}.)

  My Google search turned up references to this package, but no  
explicit
instructions for its use. Does it need ancillary packages to work?  
What

might I have missed?


Have you specified "draft" as one of the document class options for  
your document?


Bennett


Re: \usepackage{draftcopy} with article class

2007-06-20 Thread Uwe Stöhr

Rich Shepard schrieb:


  Is there a reason why the draftcopy package will not work with an article
class document?


Don't know. I had other problems with this package and thereore now use the 
"draftwatermark" package.

regards Uwe


\usepackage{draftcopy} with article class

2007-06-20 Thread Rich Shepard

  Is there a reason why the draftcopy package will not work with an article
class document? I assumed that it would work with all document classes, but
that does not appear to be the case here.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
 Voice: 503-667-4517  Fax: 503-667-8863


Re: \usepackage{hyperref}

2006-10-20 Thread Paul A. Rubin

Wolfgang Engelmann wrote:

Am Donnerstag, 19. Oktober 2006 18:06 schrieb Paul A. Rubin:

I include a small lyx file which shows the problem discribed before:

The reason is, that long section /subsection titles are not broken anymore if 
\usepackage{hyperref}
is active. Same, if  \usepackage{hyperref} is in the first line of the 
preamble. 


This is probably not a lyx problem. But what can I do?



Sorry, I can't find an attachment.

/Paul




Re: \usepackage{hyperref}

2006-10-20 Thread Wolfgang Engelmann
Am Donnerstag, 19. Oktober 2006 18:06 schrieb Paul A. Rubin:

I include a small lyx file which shows the problem discribed before:

The reason is, that long section /subsection titles are not broken anymore if 
\usepackage{hyperref}
is active. Same, if  \usepackage{hyperref} is in the first line of the 
preamble. 

This is probably not a lyx problem. But what can I do?

Wolfgang


Re: \usepackage{hyperref}

2006-10-20 Thread Wolfgang Engelmann
Am Donnerstag, 19. Oktober 2006 15:11 schrieb Vaclav Smidl:
> On Wednesday 18 October 2006 4:53 pm, Wolfgang Engelmann wrote:
> > If I use
> > \usepackage{hyperref}
> > in the preamble I get errors:
> >
> > Paragraph ended before [EMAIL PROTECTED] was complete.
> > I suspect you've forgotten a `}', causing me to apply this
> > control sequence to too much text. How can we recover?
> > My plan is to forget the whole thing and hope for the best.
> >
> > What might be wrong?
>
> Do you use any ERT in the main document 
no
> or any special commands in the 
> preamble?
that is my preamble:

\usepackage[round,comma]{natbib}
%\usepackage{kluwer}
\renewcommand{\cite}{\citealt}
\date{}
%\addcontentsline{toc}{*section}{BIBLIOGRAPHY}
%\def\refname{newname}
\AtBeginDocument{\renewcommand{\refname}{REFERENCES}}
%\usepackage{harvard}
%\nocite{*}
\usepackage{geometry}
%\usepackage{hyperref}

>
> If yes, please check if there is not any forgotten '}', otherwise, post a
> minimal example of this behaviour to the list.
>
> Vasek

Thanks, Vasek

Wolfgang


Re: \usepackage{hyperref}

2006-10-20 Thread Wolfgang Engelmann
Am Donnerstag, 19. Oktober 2006 18:06 schrieb Paul A. Rubin:
> Wolfgang Engelmann wrote:
> > If I use
> > \usepackage{hyperref}
> > in the preamble I get errors:
> >
> > Paragraph ended before [EMAIL PROTECTED] was complete.
> > I suspect you've forgotten a `}', causing me to apply this
> > control sequence to too much text. How can we recover?
> > My plan is to forget the whole thing and hope for the best.
> >
> > What might be wrong?
> >
> > Wolfgang
>
> Possibly a conflict between hyperref and another package?  Quoting JMarc
> in another thread, "there can be many cases of incompatibility between
> hyperref and other packages, where everything breaks down when someone
> uses the packages in the wrong order."  Can you post an minimal example
> that breaks?
>
> /Paul

Strange:

I have copied a part of my document and tried the \usepackage{hyperref}
in the preamble and it worked alright. Afterward I used the whole copied 
document. \usepackage{hyperref} worked now too, 
however the table of contents 
in the dvi output prints over the right column (note that I use twocolumn 
pages). Same with the pdf output file. 

 A diff a.lyx copied-a.lyx shows no difference!

 ??
I am confused.
Wolfgang


Re: \usepackage{hyperref}

2006-10-20 Thread Wolfgang Engelmann
Am Donnerstag, 19. Oktober 2006 18:06 schrieb Paul A. Rubin:
> Wolfgang Engelmann wrote:
> > If I use
> > \usepackage{hyperref}
> > in the preamble I get errors:
> >
> > Paragraph ended before [EMAIL PROTECTED] was complete.
> > I suspect you've forgotten a `}', causing me to apply this
> > control sequence to too much text. How can we recover?
> > My plan is to forget the whole thing and hope for the best.
> >
> > What might be wrong?
> >
> > Wolfgang
>
> Possibly a conflict between hyperref and another package?  Quoting JMarc
> in another thread, "there can be many cases of incompatibility between
> hyperref and other packages, where everything breaks down when someone
> uses the packages in the wrong order."  Can you post an minimal example
> that breaks?
>
> /Paul

Paul,
I tried in my original document to change the order of the 
 \usepackage{hyperref}
by putting it in the first line of my preamble. Same error.

Than I made a minimal example and do not get the error.
Now I have to find the cause of my problem. What is the best way?
Split the document in two parts and check each and so on?

Wolfgang


Re: \usepackage{hyperref}

2006-10-19 Thread Paul A. Rubin

Wolfgang Engelmann wrote:

If I use
\usepackage{hyperref}
in the preamble I get errors:

Paragraph ended before [EMAIL PROTECTED] was complete.  
I suspect you've forgotten a `}', causing me to apply this

control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

What might be wrong?

Wolfgang



Possibly a conflict between hyperref and another package?  Quoting JMarc 
in another thread, "there can be many cases of incompatibility between 
hyperref and other packages, where everything breaks down when someone 
uses the packages in the wrong order."  Can you post an minimal example 
that breaks?


/Paul




Re: \usepackage{hyperref}

2006-10-19 Thread Vaclav Smidl
On Wednesday 18 October 2006 4:53 pm, Wolfgang Engelmann wrote:
> If I use
> \usepackage{hyperref}
> in the preamble I get errors:
>
> Paragraph ended before [EMAIL PROTECTED] was complete.
> I suspect you've forgotten a `}', causing me to apply this
> control sequence to too much text. How can we recover?
> My plan is to forget the whole thing and hope for the best.
>
> What might be wrong?

Do you use any ERT in the main document or any special commands in the 
preamble?

If yes, please check if there is not any forgotten '}', otherwise, post a 
minimal example of this behaviour to the list.

Vasek


\usepackage{hyperref}

2006-10-18 Thread Wolfgang Engelmann
If I use
\usepackage{hyperref}
in the preamble I get errors:

Paragraph ended before [EMAIL PROTECTED] was complete.  
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

What might be wrong?

Wolfgang


Re: \usepackage[dvips]{geometry}: How?

2005-11-07 Thread Jim Osborn
On Mon, Nov 07, 2005 at  6:22:51PM -0500, Paul A. Rubin wrote:
> Fortunately, options can be set with \geometry{}, and invocations
> of that macro are cumulative.  So try \geometry{dvips} in your
> preamble and see if that works. 

It does indeed.

Thanks, Paul!

Jim


Re: \usepackage[dvips]{geometry}: How?

2005-11-07 Thread Paul A. Rubin

Jim Osborn wrote:

I'd like to take advantage of xdvik's ability to sense the paper size
from the dvi file, as recommended in the xdvi man page, by putting
the subject line in the latex source.  It works fine in a custom
class file, but when I put that line in the Preamble of an ordinary
Article class I get this error:

  -
  LaTeX Error: Option clash for package geometry.

  The package geometry has already been loaded with options:
[]
  There has now been an attempt to load it with options
[dvips]
  Adding the global options:
,dvips
  to your \documentclass declaration may fix this...
  -

I can't find any mention of geometry in the teTeX-3.0 article.cls file,
nor in any of the other searching I've done.

LyX 1.3.5 seems to imply that geometry gets invoked for certain paper
sizes, but I can't find any place either in the Layout->Document or
the Edit->Preferences dialogs to set this particular option.

How can I put "\usepackage[dvips]{geometry}" in an article?

TIA,

Jim



Certain document settings, such as custom paper sizes or margins (I 
think), cause LyX to load the geometry package and pass it necessary 
options.  If you View->LaTeX your document, you'll see in the preamble 
where LyX loaded the geometry package.


Fortunately, options can be set with \geometry{}, and invocations of 
that macro are cumulative.  So try \geometry{dvips} in your preamble and 
see if that works.


Paul



\usepackage[dvips]{geometry}: How?

2005-11-07 Thread Jim Osborn
I'd like to take advantage of xdvik's ability to sense the paper size
from the dvi file, as recommended in the xdvi man page, by putting
the subject line in the latex source.  It works fine in a custom
class file, but when I put that line in the Preamble of an ordinary
Article class I get this error:

  -
  LaTeX Error: Option clash for package geometry.

  The package geometry has already been loaded with options:
[]
  There has now been an attempt to load it with options
[dvips]
  Adding the global options:
,dvips
  to your \documentclass declaration may fix this...
  -

I can't find any mention of geometry in the teTeX-3.0 article.cls file,
nor in any of the other searching I've done.

LyX 1.3.5 seems to imply that geometry gets invoked for certain paper
sizes, but I can't find any place either in the Layout->Document or
the Edit->Preferences dialogs to set this particular option.

How can I put "\usepackage[dvips]{geometry}" in an article?

TIA,

Jim


Re: NEWBIE Q: how do I eliminate \usepackage[T1]{fontenc}

2005-02-21 Thread Herbert Voss
mario wrote:
Usually, I don't use them.  (I type \`{a} for à)
h, makes no sense with LyX and german docs
However, my present issue is a different one: say I process my file.tex
by pdflatex as to get file.pdf. If I have used fontenc and/or inputenc,
the acroread viewer displays file.pdf in a very weird way, characters
are somehow distorted. Note that file.pdf looks fine if displayed by
some other viewer. Anybody knows what it is going on?
\usepackage{lmodern}
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: NEWBIE Q: how do I eliminate \usepackage[T1]{fontenc}

2005-02-21 Thread Uwe Stöhr
mario wrote:
Usually, I don't use them.  (I type \`{a} for à)
If this is an advantage for you.
However, my present issue is a different one: say I process my file.tex
by pdflatex as to get file.pdf. If I have used fontenc and/or inputenc,
the acroread viewer displays file.pdf in a very weird way, characters
are somehow distorted. Note that file.pdf looks fine if displayed by
some other viewer. Anybody knows what it is going on?
Acroread has problems to display bitmap-fonts, see
http://wiki.lyx.org/FAQ/PDF#badFonts
Anyway, may I force Lyx somehow not to use fontenc/inputenc?
inptenc: Layout -> Docuemtn -> Language -> Encoding: default
fontenc: not that I know.
regards Uwe


Re: NEWBIE Q: how do I eliminate \usepackage[T1]{fontenc}

2005-02-21 Thread mario
On Mon, 2005-02-21 at 00:48, Uwe Stöhr wrote:
> mario wrote:
> 
> > It seems to me that Lyx insert the following two lines by default
> > 
> > \usepackage[T1]{fontenc}
> > \usepackage[latin1]{inputenc}
> > 
> > I would like not to have them
> 
> Why? Do you have a good reason for that and know what these packages do?
> 
> Without inputenc, you won't be able to insert accented and other 
> non-english characters directly.
> fontenc is the encoding for the font in your document, T1 is the 
> encoding for latin letters.

Usually, I don't use them.  (I type \`{a} for à)
However, my present issue is a different one: say I process my file.tex
by pdflatex as to get file.pdf. If I have used fontenc and/or inputenc,
the acroread viewer displays file.pdf in a very weird way, characters
are somehow distorted. Note that file.pdf looks fine if displayed by
some other viewer. Anybody knows what it is going on?

Anyway, may I force Lyx somehow not to use fontenc/inputenc?
Thanks 
mario

 



> 
> regards Uwe
> 



Re: NEWBIE Q: how do I eliminate \usepackage[T1]{fontenc}

2005-02-20 Thread Uwe Stöhr
mario wrote:
It seems to me that Lyx insert the following two lines by default
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
I would like not to have them
Why? Do you have a good reason for that and know what these packages do?
Without inputenc, you won't be able to insert accented and other 
non-english characters directly.
fontenc is the encoding for the font in your document, T1 is the 
encoding for latin letters.

regards Uwe


NEWBIE Q: how do I eliminate \usepackage[T1]{fontenc}

2005-02-20 Thread mario
Hi,

i use lyx once in a while.
It seems to me that Lyx insert the following two lines by default

\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

I would like not to have them, but I am unable to produce/export from
Lyx a .tex file withourt them.

Could you point out to me how to do?
Thanks
mario



article with \usepackage{amsmath, amsthm}

2004-06-02 Thread Raphael Clifford
Hi,
I am used to using article with *\usepackage{amsmath, amsthm} in latex.  
I have tried amsart in lyx but it doesn't do the author/address the way 
that I need. The problem with just adding the packages in the preamble 
using article seems to be that I have to then use ERT for all theorems 
etc.  So my choices seem to be amsart with ERT for author/address etc. 
or article with ERT for each theorem/lemma etc.  Is that right or is 
there some simple way to solve this problem?

Cheers,
Raphael
*


Re: [Q] \usepackage[T1]{fontenc}

2004-01-19 Thread Herbert Voss
Johannes Behr wrote:

What does T1 stand for? TrueType-1? Is there a "default"
font encoding?
TeX encoding 1, has nothing to do with Type 1 or TT.
default is without any encoding package, but this does
not make sense for european writers.
Herbert




Re: [Q] \usepackage[T1]{fontenc}

2004-01-19 Thread Matej Cepl
On Monday 19 of January 2004 07:10, Johannes Behr wrote:
> What does T1 stand for? TrueType-1? Is there a "default"
> font encoding?

Probably TeX1 -- it is also known as ``Cork'' encoding and covers 
all latin alphabets in Europe. The old encoding (7bit) is OT1. 
Neither of these has anything common with either iso-8859-* 
family or with anything else (especially TrueType!).

Matej

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
I've just learned about his illness. Let's hope it's nothing
trivial.
  -- Irvin S. Cobb



Re: [Q] \usepackage[T1]{fontenc}

2004-01-19 Thread Johannes Behr
On Sun, 2004-01-18 at 16:49, Matej Cepl wrote:
> On Sunday 18 of January 2004 10:42, Johannes Behr wrote:
> > I tired to submit a paper but I hat
> > to switch of the
> > 
> > \usepackage[T1]{frontenc} 
>   
>   fontenc
> 
> Sets encoding of fonts used.
> 
> > do and how can I switch it off from
> > inside of lyx?
> 
> It is by default switched on, but you can manipulate it through 
> Edit/Preferences/Outputs/LaTeX/TeX encoding.

What does T1 stand for? TrueType-1? Is there a "default"
font encoding?

thanks
  johannes




Re: [Q] \usepackage[T1]{fontenc}

2004-01-18 Thread Matej Cepl
On Sunday 18 of January 2004 10:42, Johannes Behr wrote:
> I tired to submit a paper but I hat
> to switch of the
> 
> \usepackage[T1]{frontenc} 
  
  fontenc

Sets encoding of fonts used.

> do and how can I switch it off from
> inside of lyx?

It is by default switched on, but you can manipulate it through 
Edit/Preferences/Outputs/LaTeX/TeX encoding.

Matej

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
Experience is what you get when you don't get what you want.
   -- Dan Stanford



[Q] \usepackage[T1]{fontenc}

2004-01-18 Thread Johannes Behr
Hi,

I tired to submit a paper but I hat
to switch of the

\usepackage[T1]{frontenc} 

to get it accepted as "print-ready"

What does

\usepackage[T1]{frontenc} 

do and how can I switch it off from
inside of lyx?

thanks
  johannes

-- 
Johannes Behr <[EMAIL PROTECTED]>
Computer Graphics Center



\usepackage{bibgerm}

2003-11-21 Thread Peter L Soendergaard
Hi,

I am using lyx-1.3.3 and BibTex, but I have to include
\usepackage{bibgerm} in the preamble to get things working, because
bibtex uses  "\btxeditorslong" and similar macros.

Is this really necessary, or am I missing something? Putting a "x" in
"Use NatBib" doesn't seem to change the situation.

Best regards,

Peter. 



Re: \usepackage[T1]{fontenc}

2003-06-01 Thread Dekel Tsur
On Sat, May 31, 2003 at 10:04:25AM -0300, Ricardo Nabinger Sanchez wrote:
> hello,
> 
> I've noticed that my exported pdfs carry Type3 fonts [at least with CMR font].
> I exported to tex, so I could run latex ; dvips ; ... and see what's wrong.
> What I found:
> 
> kpathsea: Running mktexpk --mfmode ljfour --bdpi 8000 --mag 1+0/8000 --dpi 8000
> ecrm1000 mktexpk: Mismatched mode ljfour and resolution 8000; ignoring mode.
> mktexpk: Can't guess mode for 8000 dpi devices.
> mktexpk: Use a config file, or update me.
> kpathsea: Appending font creation commands to missfont.log.
> 
> when I remove "\usepackage[T1]{fontenc}" from the exported tex, results are
> OK [Type1 fonts].
> 
> any tips?

Read the documentation (Extended.lyx)


Re: \usepackage[T1]{fontenc}

2003-06-01 Thread Ricardo Nabinger Sanchez
In reply to: \usepackage[T1]{fontenc}
   Wrote by: Ricardo Nabinger Sanchez <[EMAIL PROTECTED]>
 On a sunny: Sat, 31 May 2003 10:04:25 -0300

> any tips?

I left blank the "TeX Encoding" textbox on Edit > Preferences > Outputs >
Latex.

it generates a \usepackage[]{textenc} (notice the [] without options), which
doesnt harm the pdf-by-hand generation. but, I still get a Type3 font pdf when
do File > Export > PDF. PDF export by pdflatex isnt working on my actual text.

btw, this is what I'm doing to get a Type1 pdf:

File > Export > Latex
$ latex file.tex
$ dvips -Ppdf file.dvi
$ ps2pdf file.ps


again, any tips?

-- 
Ricardo Nabinger Sanchez
GNU/Linux #140696 [http://counter.li.org]
Slackware 8.1-i686 Build user

  Watson's Law:
  "The reliability of machinery is inversely proportional to 
   the number and significance of any persons watching it."


\usepackage[T1]{fontenc}

2003-05-31 Thread Ricardo Nabinger Sanchez
hello,

I've noticed that my exported pdfs carry Type3 fonts [at least with CMR font].
I exported to tex, so I could run latex ; dvips ; ... and see what's wrong.
What I found:

kpathsea: Running mktexpk --mfmode ljfour --bdpi 8000 --mag 1+0/8000 --dpi 8000
ecrm1000 mktexpk: Mismatched mode ljfour and resolution 8000; ignoring mode.
mktexpk: Can't guess mode for 8000 dpi devices.
mktexpk: Use a config file, or update me.
kpathsea: Appending font creation commands to missfont.log.

when I remove "\usepackage[T1]{fontenc}" from the exported tex, results are
OK [Type1 fonts].

any tips?

-- 
Ricardo Nabinger Sanchez
GNU/Linux #140696 [http://counter.li.org]
Slackware 8.1-i686 Build user

  Watson's Law:
  "The reliability of machinery is inversely proportional to 
   the number and significance of any persons watching it."


Re: usepackage in tex export

2002-12-25 Thread Matej Cepl
Farshad wrote:
> One more question. LaTeX file exported from LyX includes:
> 
> \documentclass[english]{article}
> 
> I want to have it as below when I export it from LyX:
> 
> \documentclass[11pt]{article}
> 

Set your language to default (in Layout/Document/Language) and
font size to 11pt (in Layout/Document/Document).

Matej

-- 
Matej Cepl, [EMAIL PROTECTED],
Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
Roses are red;
Violets are blue.
I'm schizophrenic,
And so am I.




Re: usepackage in tex export

2002-12-24 Thread Dekel Tsur
On Mon, Dec 23, 2002 at 04:22:48PM -0500, Farshad wrote:
> One more question. LaTeX file exported from LyX includes:
> \documentclass[english]{article}
> I want to have it as below when I export it from LyX:
> \documentclass[11pt]{article}

To add 11pt to the class options, select font size 11 in the document dialog.
To remove the 'english' option (why?), open the preferences dialog,
go to the Lang Opts->lang tab, and unselect the Global button or the 
"Use babel" button.



Re: usepackage in tex export

2002-12-23 Thread Farshad


ThanX.
One more question. LaTeX file exported from LyX includes:
\documentclass[english]{article}
I want to have it as below when I export it from LyX:
\documentclass[11pt]{article}

 How can I do this?

   thank you -
   Farshad
   


--- original message ---

Date:  Sat, 21 Dec 2002 20:36:31 -0800
From:  Kayvan A. Sylvan 
To: Farshad 
Cc: 
Subject: Re: usepackage in tex export

Put it in the preamble.

Layout->Preamble

-- 
Kayvan A. Sylvan | Proud husband of | Father to my kids:
Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)




___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



Re: usepackage in tex export

2002-12-21 Thread Kayvan A. Sylvan
Put it in the preamble.

Layout->Preamble

-- 
Kayvan A. Sylvan  | Proud husband of   | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan  | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)



usepackage in tex export

2002-12-21 Thread Farshad

Hi,

 Lyx is becoming a more and more imporant tool for me, lots of thanks to the 
developers! BTW, I have a naive question. I want to have "\usepackage{fullpage}" in 
the LateX output of lyx and I cannot make it do that by inserting a tex command 
directly. \usepackage and some commands must come before \begin and it seems that 
inserting a tex command on from lyx editor environment places it after \begin when a 
lyx file is exported in LaTeX format. What should I do?
 I apperciate your help.

thanks,
Farshad





___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



Re: usepackage bookman for Euro

2002-05-24 Thread Peer FRANK

This helped to get the Euro:

http://www.mail-archive.com/lyx-users@lists.lyx.org/msg15521.html

Thanks
Peer



Re: usepackage bookman for Euro

2002-05-24 Thread Matej Cepl

On 24 May, Peer FRANK wrote:
> So I put \usepackage{eurofont} and \usepackage{bookman} into
> the preamble. But what to do with bookman.sty ?
> Usage of \euro produces the attached error message.

You have not installed your euro font correctly. Try to reread
the documentation for it.

Matej

-- 
Matej Cepl, [EMAIL PROTECTED]
138 Highland Ave. #10
Somerville, Ma 02143
(617) 623-1488
 
Economics is the only discipline where two people can win a Nobel
Prize for saying exactly the opposite thing!
-- Eamonn Butler of Adam Smith Institute
   on Nobel Prize awards for year 2001




Re: usepackage bookman for Euro

2002-05-24 Thread thomas sch[nhoff

Peer FRANK wrote:

>Hi Lyxers:
>
>
>Thanx in advance
>Peer
>
>
>
>
>
>

Hey could be two things (don't know which version you are using!)

1. LyX/LaTeX doesn't find this font (if you did it after compiling LyX),
so try:

-"texhash" as root
than
- LyX>reconfigure> restart

2. Are there wrong acess permissions ?


Thomas




usepackage bookman for Euro

2002-05-24 Thread Peer FRANK

Hi Lyxers:

I'm trying to use the Euro symbol, the nice one.

So I put \usepackage{eurofont} and \usepackage{bookman} into the 
preamble. But what to do with bookman.sty ?
Usage of \euro produces the attached error message.

Bookman font is available in Layout/document/fonts.
And many *tfm fonts are in /usr/share/texmf/fonts/tfm/adobe/bookman/ .

Thanx in advance
Peer





snapshot1.png
Description: PNG image


Re: Re: 1.2.0pre5 : ps->eps conversion and usepackage{babel} position

2002-05-23 Thread Guenter Milde

On Wed, 22 May 2002 20:23:19 +0100 wrote John Levon <[EMAIL PROTECTED]>:

> On Wed, May 22, 2002 at 09:08:09PM +0200, Nabil Hathout wrote:
> 
> > when I insert a postscript figure in a document, lyx 1.2.0 says that it
> cannot
> > convert ps to eps.  This makes many of my lyx 1.1.6 documents not usable
> with
> > lyx 1.2.0.
> 
> Install convert from image magick package, or set up a converter in the
> preferences.

What happens when you rename the files from *.ps to *.eps??

If all your graphics files are already eps (i.e. do have a bounding box),
you might consider to outwit LyX's conversion automatism by inserting an
empty clause for conversions.

More save (just in case some day you have a PS without bounding box) would
be a non-downgrading converter (convert from image magick rasters the image
which makes fonts ugly and the file big. I use epscrop.). 

Günter


--
[EMAIL PROTECTED]




Re: 1.2.0pre5 : ps->eps conversion and usepackage{babel} position

2002-05-22 Thread Nabil Hathout

Herbert Voss writes:
 > Nabil Hathout wrote:
 > 
 > > Dear Herbert,
 > > 
 > > thank you for your response.
 > > 
 > > Herbert Voss writes:
 > >  > Nabil Hathout wrote:
 > >  > 
 > >  > > when I insert a postscript figure in a document, lyx 1.2.0 says that it cannot
 > >  > > convert ps to eps.  This makes many of my lyx 1.1.6 documents not usable with
 > >  > > lyx 1.2.0.
 > >  > 
 > >  > hm, this shouldn't be, because we do not need something
 > >  > 
 > >  > to convert. will have a look.
 > 
 > 
 > I have no problems with a ps-file
 > 
 > > It seems that the problem is related to the fact that I do not use a temporary
 > > directory.
 > 
 > 
 > no, I do not think so. Why do you have no tempdir?

I did the test twice, once as root and once as a user and the behavior is the
same in both cases. when I disable the tempdir, lyx says "No information for
converting from  to EPS".

I usually disable tempdir because I feel more safe when I have a latex and a
dvi file in the directory, in addition to the lyx file.  More over, when using
packages as bibtopic, it is more convenient to keep all the .bbl .blg stuff
from one session the next.

--Nabil



Re: 1.2.0pre5 : ps->eps conversion and usepackage{babel} position

2002-05-22 Thread Herbert Voss

Nabil Hathout wrote:

> Dear Herbert,
> 
> thank you for your response.
> 
> Herbert Voss writes:
>  > Nabil Hathout wrote:
>  > 
>  > > when I insert a postscript figure in a document, lyx 1.2.0 says that it cannot
>  > > convert ps to eps.  This makes many of my lyx 1.1.6 documents not usable with
>  > > lyx 1.2.0.
>  > 
>  > hm, this shouldn't be, because we do not need something
>  > 
>  > to convert. will have a look.


I have no problems with a ps-file

> It seems that the problem is related to the fact that I do not use a temporary
> directory.


no, I do not think so. Why do you have no tempdir?

Herbert



-- 
http://www.lyx.org/help/




Re: 1.2.0pre5 : ps->eps conversion and usepackage{babel} position

2002-05-22 Thread Nabil Hathout

Dear Herbert,

thank you for your response.

Herbert Voss writes:
 > Nabil Hathout wrote:
 > 
 > > when I insert a postscript figure in a document, lyx 1.2.0 says that it cannot
 > > convert ps to eps.  This makes many of my lyx 1.1.6 documents not usable with
 > > lyx 1.2.0.
 > 
 > hm, this shouldn't be, because we do not need something
 > 
 > to convert. will have a look.

It seems that the problem is related to the fact that I do not use a temporary
directory.

 > 
 > > a second compatibility problem comes from the fact that lyx 1.2.0 inserts the
 > > \usepackage{babel} after the preamble. So I have to add to all my lyx 1.1.6
 > > French documents the previous command in the preamble in order to set some
 > > frenchb variables.
 > 
 > 
 > write \usepackage{babel} as first line in your preamble.

That's what I do.

--Nabil



Re: 1.2.0pre5 : ps->eps conversion and usepackage{babel} position

2002-05-22 Thread Herbert Voss

Nabil Hathout wrote:

> when I insert a postscript figure in a document, lyx 1.2.0 says that it cannot
> convert ps to eps.  This makes many of my lyx 1.1.6 documents not usable with
> lyx 1.2.0.

hm, this shouldn't be, because we do not need something

to convert. will have a look.

> a second compatibility problem comes from the fact that lyx 1.2.0 inserts the
> \usepackage{babel} after the preamble. So I have to add to all my lyx 1.1.6
> French documents the previous command in the preamble in order to set some
> frenchb variables.


write \usepackage{babel} as first line in your preamble.

HErbert



-- 
http://www.lyx.org/help/




Re: 1.2.0pre5 : ps->eps conversion and usepackage{babel} position

2002-05-22 Thread John Levon

On Wed, May 22, 2002 at 09:08:09PM +0200, Nabil Hathout wrote:

> when I insert a postscript figure in a document, lyx 1.2.0 says that it cannot
> convert ps to eps.  This makes many of my lyx 1.1.6 documents not usable with
> lyx 1.2.0.

Install convert from image magick package, or set up a converter in the
preferences.

> a second compatibility problem comes from the fact that lyx 1.2.0 inserts the
> \usepackage{babel} after the preamble. So I have to add to all my lyx 1.1.6
> French documents the previous command in the preamble in order to set some
> frenchb variables.

http://bugzilla.lyx.org/show_bug.cgi?id=315

john

-- 
"I never understood what's so hard about picking a unique
 first and last name - and not going beyond the 6 character limit."
- Toon Moene



1.2.0pre5 : ps->eps conversion and usepackage{babel} position

2002-05-22 Thread Nabil Hathout

Hello,

when I insert a postscript figure in a document, lyx 1.2.0 says that it cannot
convert ps to eps.  This makes many of my lyx 1.1.6 documents not usable with
lyx 1.2.0.

a second compatibility problem comes from the fact that lyx 1.2.0 inserts the
\usepackage{babel} after the preamble. So I have to add to all my lyx 1.1.6
French documents the previous command in the preamble in order to set some
frenchb variables.

thank you.

--Nabil Hathout



Re: what is latex2.09 equivalent of \usepackage?

2001-04-09 Thread Allan Rae

On 9 Apr 2001, Jean-Marc Lasgouttes wrote:

> The less obvious way is
> \makeatletter
> \input{package.sty}
> \makeatother.
>
> You choose.

Okay.  I tried \input but latex wasn't happy. Now I see why.  Thanks.

Allan. (ARRae)




Re: what is latex2.09 equivalent of \usepackage?

2001-04-09 Thread Jean-Marc Lasgouttes

> "Allan" == Allan Rae <[EMAIL PROTECTED]> writes:

Allan> On 9 Apr 2001, Jean-Marc Lasgouttes wrote:
>> > "Allan" == Allan Rae <[EMAIL PROTECTED]> writes:
>> 
Allan> Yeah, I know it's off topic but I'm sure someone must still be
Allan> awake that'd know.
>>  The equivalent is to add the package name as an option of
>> \documentstyle (like classes options in 2e)

Allan> I thought this too obvious and there must be another way. Seems
Allan> not.

The less obvious way is
\makeatletter
\input{package.sty}
\makeatother.

You choose.

JMarc



Re: what is latex2.09 equivalent of \usepackage?

2001-04-08 Thread Allan Rae

On Mon, 9 Apr 2001, Allan Rae wrote:

>
> Here's another question:
>
> How do I increase tex memory capacity?

Found it!

$TEXPATH/web2c/texmf.cnf

and there's a bunch of values for array sizes that can be fiddled with and
it seems after changing these you need to run `texconfig init`

Allan. (ARRae)




Re: what is latex2.09 equivalent of \usepackage?

2001-04-08 Thread Allan Rae


Here's another question:

How do I increase tex memory capacity?

texconfig doesn't help.  Can't see anything in the config files.
Can't find anything appropriate in the teTeX documentation so far either.
Do I have to recompile tex?

Allan. (ARRae)




Re: what is latex2.09 equivalent of \usepackage?

2001-04-08 Thread Allan Rae

On 9 Apr 2001, Jean-Marc Lasgouttes wrote:

> > "Allan" == Allan Rae <[EMAIL PROTECTED]> writes:
>
> Allan> Yeah, I know it's off topic but I'm sure someone must still be
> Allan> awake that'd know.
>
> The equivalent is to add the package name as an option of
> \documentstyle (like classes options in 2e)

I thought this too obvious and there must be another way.
Seems not.

Thanks,
Allan. (ARRae)




  1   2   >