Re: How to keep description and quote together?

2016-06-14 Thread Herbert Voss

Am 12.06.2016 um 09:53 schrieb racoon:


Or as a module (attached) which restricts the ugliness to an ERT
containing {}.


Unfortunately, the absolutelynotpagebreak environment does not work
either. Sometimes it just leaves have a page blank before the
environment even though it is only three lines that are kept together...
Maybe someone has another idea?


Mark the description and quote part. Then click on the box button, which
is left of the link button. This will insert a minipage which cannot
have pagebreaks.

Herbert



Re: pst-eucl intersection problem

2016-02-08 Thread Herbert Voss

Am 08.02.2016 um 19:02 schrieb camus.phili...@free.fr:

Hello.
In the following code, the circle (of center A) is drawn but with the
\pstInterLC, I get an error.
Compiling with ps2pdf gives the message "ps2pdf error" and no output;
with XeTeX, I get a notification about a Ghostscript error and an output
without the intersection points.

\psset{unit=1cm}
\pspicture(-3,-2)(9,3)
\psplot{-3}{9}{x 3 div}\psplot{0}{9}{x 3 div 2 sub}
\rput(7,2.5){$\mathscr{D}$}\rput(8,0.5){$\mathscr{D}'$}
\pstGeonode[PosAngle=135](2,-1){A}
\pstGeonode[PosAngle=100](0,0){B}(6,2){B'}
\pstGeonode[PosAngle=300](6,0){C'}\pstGeonode[PosAngle=300,PointName=none,PointSymbol=none](0,-2){C1}
\pstProjection[CodeFig=true,PosAngle=300]{C'}{C1}{B}[C]
\pstMiddleAB[CodeFig=true,PointName=none]{B}{C}{O1}\pstMiddleAB[CodeFig=true,PointName=none]{B'}{C'}{O2}
\pstLineAB[nodesep=-1]{O1}{O2}
\pstCircleOA[Radius=\pstDistAB{B}{C} 2 div]{A}{}
\pstInterLC[Radius=\pstDistAB{B}{C} 2 div]{O1}{O2}{A}{}{O}{O'}


Radius is not possible for \pstInterLC. It is radius=value[unit]
or something like

\pstCircleOA{A}{C}
\pstInterLC{O1}{O2}{A}{C}{O}{O'}

Herbert




Re: tabu package

2016-02-03 Thread Herbert Voss

Am 02.02.2016 um 19:53 schrieb Simon, Klaus:

I wonder if LyX perhaps does not support the tabu package?


the tabu package is obsolete and no more maintained
by the author.

Herbert



Re: no KBiBteX available for openSUSE Leap 42.1

2015-11-28 Thread Herbert Voss

Am 27.11.2015 um 09:06 schrieb Michael Berger:


Among other attempts I already tried so called "unstable packages" of
KBibTex and ended up in a disaster.
I could not even restart Leap and was forced to make a new clean install.
So, please understand that I am more than reluctant to repeat what I've
done until a user turns up who succeeded in finding and installing a
workable version of KBibTex.
If either of you has openSUSE Leap 42.1 installed and successfully uses
such a workable version of KBibTex, please tell me which version it is
and where to find it.
Fortunately, I have openSUSE 13.2 still running on a second machine and
could revert to it when it comes to my linguistic writings.

These are the details of my openSUSE Leap 42.1 setup:
KDE, BTRFS for root, XFS for /home


I have running leap42.1 and installed kbibtex from
https://build.opensuse.org/package/show?project=KDE%3AExtra=kbibtex
and no problem. Everything is fine!

xfce windowmanager

Herbert



Re: no KBiBteX available for openSUSE Leap 42.1

2015-11-26 Thread Herbert Voss

Am 26.11.2015 um 16:54 schrieb Michael Berger:


I did the 'leap' from openSUSE 13.2 to 42.1 /KDE.
Unfortunately, I can find no working Kbibtex for it.
That hurts a lot to all of us with scientific and linguistic papers at
work.
Is somebody out there who can help? Any clue or replacement?


http://software.opensuse.org/package/kbibtex

Herbert



Re: [LyX] Keep enumeration across subsections?

2006-03-04 Thread Herbert Voss

Joerg Hau wrote:


How can I preserve the ongoing numbering of the Enumerate environment
across subsections?




See attached LyX-example file.



Thanks Uwe, but your file uses \setcounter{enumi}{4}, i.e. a pre-defined 
counter. This is exactly what I want to avoid:




My question is, how do you achieve this in LyX? (One particular
challenge is that the numbering shall be truly automatic, i.e. I don't
want to specify starting numbers after an intermediate title)



any hint ... ?


package mdwlist

Herbert




Re: [LyX] Keep enumeration across subsections?

2006-03-04 Thread Herbert Voss

Joerg Hau wrote:


How can I preserve the ongoing numbering of the Enumerate environment
across subsections?




See attached LyX-example file.



Thanks Uwe, but your file uses \setcounter{enumi}{4}, i.e. a pre-defined 
counter. This is exactly what I want to avoid:




My question is, how do you achieve this in LyX? (One particular
challenge is that the numbering shall be truly automatic, i.e. I don't
want to specify starting numbers after an intermediate title)



any hint ... ?


package mdwlist

Herbert




Re: [LyX] Keep enumeration across subsections?

2006-03-04 Thread Herbert Voss

Joerg Hau wrote:


How can I preserve the ongoing numbering of the "Enumerate" environment
across subsections?




See attached LyX-example file.



Thanks Uwe, but your file uses \setcounter{enumi}{4}, i.e. a pre-defined 
counter. This is exactly what I want to avoid:




My question is, how do you achieve this in LyX? (One particular
challenge is that the numbering shall be truly automatic, i.e. I don't
want to specify "starting numbers" after an intermediate title)



any hint ... ?


package mdwlist

Herbert




Re: Can't find eps file when exporting

2006-02-23 Thread Herbert Voss

Jean-Pierre Chrétien wrote:

Gunnar [EMAIL PROTECTED] writes:

[...]




The first error in the output you supplied in your initial post was

dvips: Could not find figure
file
/tmp/lyx_tmpdir96260XiyjK/lyx_tmpbuf0/0_home_gunnar_Skola_appollonius.eps;



I just ran on the same problem...
The important point here is that the path is absolute.


I must say, I'm not quite sure what the error is now. Suddelny things seems to 
work. I'm sorry for trying to confuse you. I'll try to understand what's 
going on. 



If you're using TeXLive-2005, the dvips default behaviour has
shifted to secure: in particular, dvips won't accept absolute paths,
which LyX uses in the temporary.
You should run dvips -R0 in the Preference-Converter section, where dvips
is involved, to come back to unsecure mode.

If you're not admin, maybe this has been changed on your TeX distribution,
which could explain how it could work again magically.


it is the config.ps. z0 enables absolute path names


% z1 is secure, i.e., inhibits execution of `shell commands` in
% \specials.  Dvips allows this by default.
z0


Herbert




Re: Can't find eps file when exporting

2006-02-23 Thread Herbert Voss

Jean-Pierre Chrétien wrote:

Gunnar [EMAIL PROTECTED] writes:

[...]




The first error in the output you supplied in your initial post was

dvips: Could not find figure
file
/tmp/lyx_tmpdir96260XiyjK/lyx_tmpbuf0/0_home_gunnar_Skola_appollonius.eps;



I just ran on the same problem...
The important point here is that the path is absolute.


I must say, I'm not quite sure what the error is now. Suddelny things seems to 
work. I'm sorry for trying to confuse you. I'll try to understand what's 
going on. 



If you're using TeXLive-2005, the dvips default behaviour has
shifted to secure: in particular, dvips won't accept absolute paths,
which LyX uses in the temporary.
You should run dvips -R0 in the Preference-Converter section, where dvips
is involved, to come back to unsecure mode.

If you're not admin, maybe this has been changed on your TeX distribution,
which could explain how it could work again magically.


it is the config.ps. z0 enables absolute path names


% z1 is secure, i.e., inhibits execution of `shell commands` in
% \specials.  Dvips allows this by default.
z0


Herbert




Re: Can't find eps file when exporting

2006-02-23 Thread Herbert Voss

Jean-Pierre Chrétien wrote:

Gunnar <[EMAIL PROTECTED]> writes:

[...]




The first error in the output you supplied in your initial post was

dvips: Could not find figure
file
/tmp/lyx_tmpdir96260XiyjK/lyx_tmpbuf0/0_home_gunnar_Skola_appollonius.eps;



I just ran on the same problem...
The important point here is that the path is absolute.


I must say, I'm not quite sure what the error is now. Suddelny things seems to 
work. I'm sorry for trying to confuse you. I'll try to understand what's 
going on. 



If you're using TeXLive-2005, the dvips default behaviour has
shifted to secure: in particular, dvips won't accept absolute paths,
which LyX uses in the temporary.
You should run dvips -R0 in the Preference->Converter section, where dvips
is involved, to come back to unsecure mode.

If you're not admin, maybe this has been changed on your TeX distribution,
which could explain how it could work again magically.


it is the config.ps. z0 enables absolute path names


% z1 is "secure", i.e., inhibits execution of `shell commands` in
% \specials.  Dvips allows this by default.
z0


Herbert




Re: Automatic formatting of a particular word?

2006-02-22 Thread Herbert Voss
Stephen Harris wrote:

 
 - Original Message -
 From: Karsten Heymann
 [EMAIL PROTECTED] To:
 lyx-users@lists.lyx.org Sent: Wednesday,
 February 22, 2006 1:06 AM Subject: Re: Automatic formatting of a
 particular word?
 
 
 Hi Stephen,
 
 and put it in macros.tex and load it with \input macros and
 use it in LyX with automatic expansion, even if it weren't hardwired
 like Uwe's example?
 
 Better do it the LateX way: write a simple sty nyxlogo.sty and put that
 \providecommand*{\NyX}{...} in there (look at clsguide.dvi/pdf on how to
 do that).
 
 Yours,
 Karsten
 
 That does seem simpler. Thanks for the explanation, it led me to
 discover texlogos.sty which contains the Metapost and Metafont
 logos as well as BibTex so it serves as a model.
 
 %% Displays the BibTeX logo.
 %%
 \DeclareRobustCommand{\bibtexlogo}{%
  \protect\scalebox{0.75}[1]{B}%
  \protect\scalebox{0.5625}[0.75]{IB}\TeX}
 
 Though the syntax of \DeclareRobustCommand is probably older
 than \providecommand?

no, it is quite different.
\section{\bibtexlogo} is possible, because it is a robust macro
and _not_ expanded, when it is going also into the table of contents.

Otherwise it won't work, it moves not as a macro into the *.toc
file, but fully expanded, which often causes errors.

Herbert



Re: selecting special fonts

2006-02-22 Thread Herbert Voss
Charles de Miramon wrote:

 Stacia Hartleben wrote:
 
 Is there a better way to select special special fonts other than doing
 ERT? I know under character I can change it to san serif or whatever
 but for a special font I installed I have to do something like this:
 
 \usefont{T1}{stacish}{m}{n} \selectfont myword \usefont{T1}{ae}{m}{n}
 \selectfont
 
 in a huge ERT snippet.
 Yes, you should create a macro.
 
 In your preamble put something like :
 
 \newcommand\stacia [1]{\usefont{T1}{stacish}{m}{n}%
 \selectfont%
 #1%
 \normalfont}

\newcommand\stacia[1]{%
  bgroup
  \usefont{T1}{stacish}{m}{n}\selectfont#1%
  \egroup}

then

 and then in your text an ert with for example \stacia{Hartleben}
 
and then in your text an ert with for {\large example \stacia{Hartleben} and
so on}

also works.

Herbert



Re: selecting special fonts

2006-02-22 Thread Herbert Voss

Charles de Miramon wrote:

Herbert Voss wrote:



Charles de Miramon wrote:




\newcommand\stacia[1]{%
 bgroup
 \usefont{T1}{stacish}{m}{n}\selectfont#1%
 \egroup}




I guess it is \bgroup

Herbert, can you explain what is the purpose of \begingroup \endgroup ? The
TLC2 (my Bible) is not very clear about it.


inside a group everything is local. And  I have the old
behaviour after leaving this macro (group). Means same font,
same lengths, etc


Herbert




Re: double superscript a lyx bug?

2006-02-22 Thread Herbert Voss



Sven Schreiber wrote:

Hi, I just ran into the same thing reported by Bo Peng a short while ago
 -- if in math you make an explicit superscript but also append a ' as
a shortcut for prime (= matrix transpose sign here), latex complains
about double superscript. Minimal lyx file is embedded below, but I
guess only \begin_inset Formula $a^{*}'$ actually matters.


' looks ugly, use

${a^{*}}^\prime$  or  $a^{*\prime}$


Herbert




Re: Automatic formatting of a particular word?

2006-02-22 Thread Herbert Voss
Stephen Harris wrote:

 
 - Original Message -
 From: Karsten Heymann
 [EMAIL PROTECTED] To:
 lyx-users@lists.lyx.org Sent: Wednesday,
 February 22, 2006 1:06 AM Subject: Re: Automatic formatting of a
 particular word?
 
 
 Hi Stephen,
 
 and put it in macros.tex and load it with \input macros and
 use it in LyX with automatic expansion, even if it weren't hardwired
 like Uwe's example?
 
 Better do it the LateX way: write a simple sty nyxlogo.sty and put that
 \providecommand*{\NyX}{...} in there (look at clsguide.dvi/pdf on how to
 do that).
 
 Yours,
 Karsten
 
 That does seem simpler. Thanks for the explanation, it led me to
 discover texlogos.sty which contains the Metapost and Metafont
 logos as well as BibTex so it serves as a model.
 
 %% Displays the BibTeX logo.
 %%
 \DeclareRobustCommand{\bibtexlogo}{%
  \protect\scalebox{0.75}[1]{B}%
  \protect\scalebox{0.5625}[0.75]{IB}\TeX}
 
 Though the syntax of \DeclareRobustCommand is probably older
 than \providecommand?

no, it is quite different.
\section{\bibtexlogo} is possible, because it is a robust macro
and _not_ expanded, when it is going also into the table of contents.

Otherwise it won't work, it moves not as a macro into the *.toc
file, but fully expanded, which often causes errors.

Herbert



Re: selecting special fonts

2006-02-22 Thread Herbert Voss
Charles de Miramon wrote:

 Stacia Hartleben wrote:
 
 Is there a better way to select special special fonts other than doing
 ERT? I know under character I can change it to san serif or whatever
 but for a special font I installed I have to do something like this:
 
 \usefont{T1}{stacish}{m}{n} \selectfont myword \usefont{T1}{ae}{m}{n}
 \selectfont
 
 in a huge ERT snippet.
 Yes, you should create a macro.
 
 In your preamble put something like :
 
 \newcommand\stacia [1]{\usefont{T1}{stacish}{m}{n}%
 \selectfont%
 #1%
 \normalfont}

\newcommand\stacia[1]{%
  bgroup
  \usefont{T1}{stacish}{m}{n}\selectfont#1%
  \egroup}

then

 and then in your text an ert with for example \stacia{Hartleben}
 
and then in your text an ert with for {\large example \stacia{Hartleben} and
so on}

also works.

Herbert



Re: selecting special fonts

2006-02-22 Thread Herbert Voss

Charles de Miramon wrote:

Herbert Voss wrote:



Charles de Miramon wrote:




\newcommand\stacia[1]{%
 bgroup
 \usefont{T1}{stacish}{m}{n}\selectfont#1%
 \egroup}




I guess it is \bgroup

Herbert, can you explain what is the purpose of \begingroup \endgroup ? The
TLC2 (my Bible) is not very clear about it.


inside a group everything is local. And  I have the old
behaviour after leaving this macro (group). Means same font,
same lengths, etc


Herbert




Re: double superscript a lyx bug?

2006-02-22 Thread Herbert Voss



Sven Schreiber wrote:

Hi, I just ran into the same thing reported by Bo Peng a short while ago
 -- if in math you make an explicit superscript but also append a ' as
a shortcut for prime (= matrix transpose sign here), latex complains
about double superscript. Minimal lyx file is embedded below, but I
guess only \begin_inset Formula $a^{*}'$ actually matters.


' looks ugly, use

${a^{*}}^\prime$  or  $a^{*\prime}$


Herbert




Re: Automatic formatting of a particular word?

2006-02-22 Thread Herbert Voss
Stephen Harris wrote:

> 
> - Original Message -
> From: "Karsten Heymann"
> <[EMAIL PROTECTED]> To:
>  Sent: Wednesday,
> February 22, 2006 1:06 AM Subject: Re: Automatic formatting of a
> particular word?
> 
> 
> Hi Stephen,
> 
>> and put it in macros.tex and load it with \input macros and
>> use it in LyX with automatic expansion, even if it weren't hardwired
>> like Uwe's example?
> 
> Better do it the LateX way: write a simple sty nyxlogo.sty and put that
> \providecommand*{\NyX}{...} in there (look at clsguide.dvi/pdf on how to
> do that).
> 
> Yours,
> Karsten
> 
> That does seem simpler. Thanks for the explanation, it led me to
> discover texlogos.sty which contains the Metapost and Metafont
> logos as well as BibTex so it serves as a model.
> 
> %% Displays the BibTeX logo.
> %%
> \DeclareRobustCommand{\bibtexlogo}{%
>  \protect\scalebox{0.75}[1]{B}%
>  \protect\scalebox{0.5625}[0.75]{IB}\TeX}
> 
> Though the syntax of \DeclareRobustCommand is probably older
> than \providecommand?

no, it is quite different.
\section{\bibtexlogo} is possible, because it is a robust macro
and _not_ expanded, when it is going also into the table of contents.

Otherwise it won't work, it moves not as a macro into the *.toc
file, but fully expanded, which often causes errors.

Herbert



Re: selecting special fonts

2006-02-22 Thread Herbert Voss
Charles de Miramon wrote:

> Stacia Hartleben wrote:
> 
>> Is there a better way to select special special fonts other than doing
>> ERT? I know under character I can change it to san serif or whatever
>> but for a special font I installed I have to do something like this:
>> 
>> \usefont{T1}{stacish}{m}{n} \selectfont myword \usefont{T1}{ae}{m}{n}
>> \selectfont
>> 
>> in a huge ERT snippet.
> Yes, you should create a macro.
> 
> In your preamble put something like :
> 
> \newcommand\stacia [1]{\usefont{T1}{stacish}{m}{n}%
> \selectfont%
> #1%
> \normalfont}

\newcommand\stacia[1]{%
  bgroup
  \usefont{T1}{stacish}{m}{n}\selectfont#1%
  \egroup}

then

> and then in your text an ert with for example \stacia{Hartleben}
 
and then in your text an ert with for {\large example \stacia{Hartleben} and
so on}

also works.

Herbert



Re: selecting special fonts

2006-02-22 Thread Herbert Voss

Charles de Miramon wrote:

Herbert Voss wrote:



Charles de Miramon wrote:




\newcommand\stacia[1]{%
 bgroup
 \usefont{T1}{stacish}{m}{n}\selectfont#1%
 \egroup}




I guess it is \bgroup

Herbert, can you explain what is the purpose of \begingroup \endgroup ? The
TLC2 (my Bible) is not very clear about it.


inside a group everything is local. And  I have the old
behaviour after leaving this macro (group). Means same font,
same lengths, etc


Herbert




Re: double superscript a lyx bug?

2006-02-22 Thread Herbert Voss



Sven Schreiber wrote:

Hi, I just ran into the same thing reported by Bo Peng a short while ago
 -- if in math you make an explicit superscript but also append a "'" as
a shortcut for prime (= matrix transpose sign here), latex complains
about double superscript. Minimal lyx file is embedded below, but I
guess only \begin_inset Formula $a^{*}'$ actually matters.


' looks ugly, use

${a^{*}}^\prime$  or  $a^{*\prime}$


Herbert




Re: citation reference is wrong

2006-02-21 Thread Herbert Voss

Matthias Schmidt wrote:


I`m working with WinXP, Lyx 1.3.7 and JabRef 2.0.1.

The citation reference is positioned in the footnote. The bibliography
for the document is formatted as natbib and author-year. So far so
good: in the Lyx user interface the result is given correct as in this
case
 Gerhard (1953).
So: Lyx can find the name of the author.

But in the dvi-preview and in the pdf-print is the citation reference
printed as
 (author ?)[2]
Here the name of the author cannot be found. It should be something
with autor and year.

What has happened there? What's wrong?


I suppose, that you enabled the bibliography not from within
LyX. If so, then you have to run bibtex by yourself, which
is not the best choice ... use LyX for with insert-bibliography

Herbert




Re: citation reference is wrong

2006-02-21 Thread Herbert Voss

Matthias Schmidt wrote:


I`m working with WinXP, Lyx 1.3.7 and JabRef 2.0.1.

The citation reference is positioned in the footnote. The bibliography
for the document is formatted as natbib and author-year. So far so
good: in the Lyx user interface the result is given correct as in this
case
 Gerhard (1953).
So: Lyx can find the name of the author.

But in the dvi-preview and in the pdf-print is the citation reference
printed as
 (author ?)[2]
Here the name of the author cannot be found. It should be something
with autor and year.

What has happened there? What's wrong?


I suppose, that you enabled the bibliography not from within
LyX. If so, then you have to run bibtex by yourself, which
is not the best choice ... use LyX for with insert-bibliography

Herbert




Re: citation reference is wrong

2006-02-21 Thread Herbert Voss

Matthias Schmidt wrote:


I`m working with WinXP, Lyx 1.3.7 and JabRef 2.0.1.

The citation reference is positioned in the footnote. The bibliography
for the document is formatted as natbib and author-year. So far so
good: in the Lyx user interface the result is given correct as in this
case
 "Gerhard (1953)".
So: Lyx can find the name of the author.

But in the dvi-preview and in the pdf-print is the citation reference
printed as
 "(author ?)[2]"
Here the name of the author cannot be found. It should be something
with autor and year.

What has happened there? What's wrong?


I suppose, that you enabled the bibliography not from within
LyX. If so, then you have to run bibtex by yourself, which
is not the best choice ... use LyX for with insert->bibliography

Herbert




Re: vspace between sections and figures help!

2006-02-20 Thread Herbert Voss

Myriam Abramson wrote:
I've 
\setlength{\parskip {-1pt}}


but that seems only to affect the vertical space between
paragraphs. How can I set the vertical space length between sections
and figures?


\floatsep (\dblfloatsep) vertical glue between floats
with placement [t,b]
\textfloatsep (\dbltextfloatsep) vertical glue between
a float with placement [t,b] and text
\intextsep  vertical glue between a float with
placement [h] and text

http://tug.org/TeXnik/mainFAQ.cgi?file=floats/parameter

I suppose, you are searching for \intextsep=...

Herbert




Re: vspace between sections and figures help!

2006-02-20 Thread Herbert Voss



Helge Hafting wrote:

Myriam Abramson wrote:


I've \setlength{\parskip {-1pt}}

but that seems only to affect the vertical space between
paragraphs. How can I set the vertical space length between sections
and figures?

It's quite urgent as I am trying to fit this paper into a ridiculous
6-page limit.
 


Wider margins (both side margins and the top/bottom ones)
and a smaller font helps a lot.  Unless they specified all of these too.
Many don't specify top/bottom margin.

And if they specify a certain font height, consider a narrow one,
or making the linespacing somewhat smaller :-)
Ridiculous workarounds for ridiculous limits . . .


this has nothing to do with the space between figures and text ...

Herbert




Re: How to produce a decent x'_{t}^{2}?

2006-02-20 Thread Herbert Voss

Bo Peng wrote:


If I insert x', subscript t and superscript 2, latex will complain
! Double superscript.
l.17 $x'_{t}^
 {2}$

I do not know exactly what latex is saying since $x'^{2}$ will work
fine. If then I try to put ' in the {2}, but ' will be taller than 2
and make the formula ugly. Is there a good way to do this?


${x^\prime_{t}}^{2}$

Herbert




Re: LyX fails picture conversion

2006-02-20 Thread Herbert Voss

Paul Smith wrote:

On 2/19/06, Stephen Harris [EMAIL PROTECTED] wrote:


Thanks. I checked in texmf and had a dvipdfmx .exe so I
changed the converter in Preferences by adding an x.



You are luckier, as there is no binary of dvipdfmx for Linux!


e.g.:

/usr/local/texlive/2005/bin/i386-linux/dvipdfmx

Herbert




Re: LyX fails picture conversion

2006-02-20 Thread Herbert Voss



Paul Smith wrote:

On 2/20/06, Herbert Voss [EMAIL PROTECTED] wrote:


Thanks. I checked in texmf and had a dvipdfmx .exe so I
changed the converter in Preferences by adding an x.


You are luckier, as there is no binary of dvipdfmx for Linux!


e.g.:

/usr/local/texlive/2005/bin/i386-linux/dvipdfmx



You are luckier, Herbert. With tetex, no dvipdfmx, unless it is
contained in some package that I have not installed. Do people here
with tetex have dvipdfmx?


CTAN: 
ftp://dante.ctan.org/tex-archive/dviware/dvipdfmx/dvipdfmx-20050831.tar.gz

Debian: http://packages.debian.org/unstable/tex/dvipdfmx
MAC:http://dvipdfmx.darwinports.com/
http://pdb.finkproject.org/pdb/package.php/dvipdfmx

Herbert




Re: vspace between sections and figures help!

2006-02-20 Thread Herbert Voss

Myriam Abramson wrote:
I've 
\setlength{\parskip {-1pt}}


but that seems only to affect the vertical space between
paragraphs. How can I set the vertical space length between sections
and figures?


\floatsep (\dblfloatsep) vertical glue between floats
with placement [t,b]
\textfloatsep (\dbltextfloatsep) vertical glue between
a float with placement [t,b] and text
\intextsep  vertical glue between a float with
placement [h] and text

http://tug.org/TeXnik/mainFAQ.cgi?file=floats/parameter

I suppose, you are searching for \intextsep=...

Herbert




Re: vspace between sections and figures help!

2006-02-20 Thread Herbert Voss



Helge Hafting wrote:

Myriam Abramson wrote:


I've \setlength{\parskip {-1pt}}

but that seems only to affect the vertical space between
paragraphs. How can I set the vertical space length between sections
and figures?

It's quite urgent as I am trying to fit this paper into a ridiculous
6-page limit.
 


Wider margins (both side margins and the top/bottom ones)
and a smaller font helps a lot.  Unless they specified all of these too.
Many don't specify top/bottom margin.

And if they specify a certain font height, consider a narrow one,
or making the linespacing somewhat smaller :-)
Ridiculous workarounds for ridiculous limits . . .


this has nothing to do with the space between figures and text ...

Herbert




Re: How to produce a decent x'_{t}^{2}?

2006-02-20 Thread Herbert Voss

Bo Peng wrote:


If I insert x', subscript t and superscript 2, latex will complain
! Double superscript.
l.17 $x'_{t}^
 {2}$

I do not know exactly what latex is saying since $x'^{2}$ will work
fine. If then I try to put ' in the {2}, but ' will be taller than 2
and make the formula ugly. Is there a good way to do this?


${x^\prime_{t}}^{2}$

Herbert




Re: LyX fails picture conversion

2006-02-20 Thread Herbert Voss

Paul Smith wrote:

On 2/19/06, Stephen Harris [EMAIL PROTECTED] wrote:


Thanks. I checked in texmf and had a dvipdfmx .exe so I
changed the converter in Preferences by adding an x.



You are luckier, as there is no binary of dvipdfmx for Linux!


e.g.:

/usr/local/texlive/2005/bin/i386-linux/dvipdfmx

Herbert




Re: LyX fails picture conversion

2006-02-20 Thread Herbert Voss



Paul Smith wrote:

On 2/20/06, Herbert Voss [EMAIL PROTECTED] wrote:


Thanks. I checked in texmf and had a dvipdfmx .exe so I
changed the converter in Preferences by adding an x.


You are luckier, as there is no binary of dvipdfmx for Linux!


e.g.:

/usr/local/texlive/2005/bin/i386-linux/dvipdfmx



You are luckier, Herbert. With tetex, no dvipdfmx, unless it is
contained in some package that I have not installed. Do people here
with tetex have dvipdfmx?


CTAN: 
ftp://dante.ctan.org/tex-archive/dviware/dvipdfmx/dvipdfmx-20050831.tar.gz

Debian: http://packages.debian.org/unstable/tex/dvipdfmx
MAC:http://dvipdfmx.darwinports.com/
http://pdb.finkproject.org/pdb/package.php/dvipdfmx

Herbert




Re: vspace between sections and figures help!

2006-02-20 Thread Herbert Voss

Myriam Abramson wrote:
I've 
\setlength{\parskip {-1pt}}


but that seems only to affect the vertical space between
paragraphs. How can I set the vertical space length between sections
and figures?


\floatsep (\dblfloatsep) vertical glue between floats
with placement [t,b]
\textfloatsep (\dbltextfloatsep) vertical glue between
a float with placement [t,b] and text
\intextsep  vertical glue between a float with
placement [h] and text

http://tug.org/TeXnik/mainFAQ.cgi?file=floats/parameter

I suppose, you are searching for \intextsep=...

Herbert




Re: vspace between sections and figures help!

2006-02-20 Thread Herbert Voss



Helge Hafting wrote:

Myriam Abramson wrote:


I've \setlength{\parskip {-1pt}}

but that seems only to affect the vertical space between
paragraphs. How can I set the vertical space length between sections
and figures?

It's quite urgent as I am trying to fit this paper into a ridiculous
6-page limit.
 


Wider margins (both side margins and the top/bottom ones)
and a smaller font helps a lot.  Unless they specified all of these too.
Many don't specify top/bottom margin.

And if they specify a certain font height, consider a narrow one,
or making the linespacing somewhat smaller :-)
Ridiculous workarounds for ridiculous limits . . .


this has nothing to do with the space between figures and text ...

Herbert




Re: How to produce a decent x'_{t}^{2}?

2006-02-20 Thread Herbert Voss

Bo Peng wrote:


If I insert x', subscript t and superscript 2, latex will complain
! Double superscript.
l.17 $x'_{t}^
 {2}$

I do not know exactly what latex is saying since $x'^{2}$ will work
fine. If then I try to put ' in the {2}, but ' will be taller than 2
and make the formula ugly. Is there a good way to do this?


${x^\prime_{t}}^{2}$

Herbert




Re: LyX fails picture conversion

2006-02-20 Thread Herbert Voss

Paul Smith wrote:

On 2/19/06, Stephen Harris <[EMAIL PROTECTED]> wrote:


Thanks. I checked in texmf and had a dvipdfmx .exe so I
changed the converter in Preferences by adding an "x".



You are luckier, as there is no binary of dvipdfmx for Linux!


e.g.:

/usr/local/texlive/2005/bin/i386-linux/dvipdfmx

Herbert




Re: LyX fails picture conversion

2006-02-20 Thread Herbert Voss



Paul Smith wrote:

On 2/20/06, Herbert Voss <[EMAIL PROTECTED]> wrote:


Thanks. I checked in texmf and had a dvipdfmx .exe so I
changed the converter in Preferences by adding an "x".


You are luckier, as there is no binary of dvipdfmx for Linux!


e.g.:

/usr/local/texlive/2005/bin/i386-linux/dvipdfmx



You are luckier, Herbert. With tetex, no dvipdfmx, unless it is
contained in some package that I have not installed. Do people here
with tetex have dvipdfmx?


CTAN: 
ftp://dante.ctan.org/tex-archive/dviware/dvipdfmx/dvipdfmx-20050831.tar.gz

Debian: http://packages.debian.org/unstable/tex/dvipdfmx
MAC:http://dvipdfmx.darwinports.com/
http://pdb.finkproject.org/pdb/package.php/dvipdfmx

Herbert




Re: LyX fails picture conversion

2006-02-19 Thread Herbert Voss

Paul Smith wrote:

On 2/18/06, Paul A. Rubin [EMAIL PROTECTED] wrote:


Thanks, Paul. In fact, the command

convert myfile.eps myfile.pdf

does the job correctly. Probably, the problem has to be with LyX.


Ok.  I'm assuming you're not running Windows (if you are, there may be a
problem with spaces in the path to the EPS file, although that doesn't
create any problems for me).

A workaround is to convert the EPS file to something else (PDF?) outside
LyX and insert the converted image into the LyX document.  If you want
to pursue this further, try editing the convertDefault.sh script by
inserting the following line immediately before 'exit 1':

echo Trying to convert \$1\ to \$2\. 2

With any luck, if you reproduce the error, this should tell which file
it was trying to convert and where it was trying to store the result.
That will let you check for correct paths, read/write permissions etc.



Thanks, Paul. As I said before, the package ps4pdf works fine. In


ps4pdf is superseeded by pst-pdf


ask: is LyX supposed (by default) to convert EPS pictures to usable
formats before applying pdflatex? Perhaps, we are expecting too much
from LyX.


sure, LyX detects the source and the target extension
of images files and should do the conversion by default.

Run from command line lyx -dbg graphics and have a look at
the output when you try to view your document.

Herbert




Re: LyX fails picture conversion

2006-02-19 Thread Herbert Voss

Stephen Harris wrote:


My experience is that I can generate the a viewable .pdf file using dvipdfm
but not pdflatex. http://bugzilla.lyx.org/show_bug.cgi?id=2299


dvipdfm is really buggy - dvipdfmx

Herbert




Re: LyX fails picture conversion

2006-02-19 Thread Herbert Voss

Paul Smith wrote:

On 2/18/06, Paul A. Rubin [EMAIL PROTECTED] wrote:


Thanks, Paul. In fact, the command

convert myfile.eps myfile.pdf

does the job correctly. Probably, the problem has to be with LyX.


Ok.  I'm assuming you're not running Windows (if you are, there may be a
problem with spaces in the path to the EPS file, although that doesn't
create any problems for me).

A workaround is to convert the EPS file to something else (PDF?) outside
LyX and insert the converted image into the LyX document.  If you want
to pursue this further, try editing the convertDefault.sh script by
inserting the following line immediately before 'exit 1':

echo Trying to convert \$1\ to \$2\. 2

With any luck, if you reproduce the error, this should tell which file
it was trying to convert and where it was trying to store the result.
That will let you check for correct paths, read/write permissions etc.



Thanks, Paul. As I said before, the package ps4pdf works fine. In


ps4pdf is superseeded by pst-pdf


ask: is LyX supposed (by default) to convert EPS pictures to usable
formats before applying pdflatex? Perhaps, we are expecting too much
from LyX.


sure, LyX detects the source and the target extension
of images files and should do the conversion by default.

Run from command line lyx -dbg graphics and have a look at
the output when you try to view your document.

Herbert




Re: LyX fails picture conversion

2006-02-19 Thread Herbert Voss

Stephen Harris wrote:


My experience is that I can generate the a viewable .pdf file using dvipdfm
but not pdflatex. http://bugzilla.lyx.org/show_bug.cgi?id=2299


dvipdfm is really buggy - dvipdfmx

Herbert




Re: LyX fails picture conversion

2006-02-19 Thread Herbert Voss

Paul Smith wrote:

On 2/18/06, Paul A. Rubin <[EMAIL PROTECTED]> wrote:


Thanks, Paul. In fact, the command

convert myfile.eps myfile.pdf

does the job correctly. Probably, the problem has to be with LyX.


Ok.  I'm assuming you're not running Windows (if you are, there may be a
problem with spaces in the path to the EPS file, although that doesn't
create any problems for me).

A workaround is to convert the EPS file to something else (PDF?) outside
LyX and insert the converted image into the LyX document.  If you want
to pursue this further, try editing the convertDefault.sh script by
inserting the following line immediately before 'exit 1':

echo "Trying to convert \"$1\" to \"$2\"." >&2

With any luck, if you reproduce the error, this should tell which file
it was trying to convert and where it was trying to store the result.
That will let you check for correct paths, read/write permissions etc.



Thanks, Paul. As I said before, the package ps4pdf works fine. In


ps4pdf is superseeded by pst-pdf


ask: is LyX supposed (by default) to convert EPS pictures to usable
formats before applying pdflatex? Perhaps, we are expecting too much
from LyX.


sure, LyX detects the source and the target extension
of images files and should do the conversion by default.

Run from command line lyx -dbg graphics and have a look at
the output when you try to view your document.

Herbert




Re: LyX fails picture conversion

2006-02-19 Thread Herbert Voss

Stephen Harris wrote:


My experience is that I can generate the a viewable .pdf file using dvipdfm
but not pdflatex. http://bugzilla.lyx.org/show_bug.cgi?id=2299


dvipdfm is really buggy -> dvipdfmx

Herbert




Re: TIPA (IPA) and limited tree support previews in LyX, working!

2006-02-17 Thread Herbert Voss

Juergen Spitzmueller wrote:

Concerning TIPA, I'm tempted to have a look in the next development cycle (for 
1.5), but don't hold your breath. There are so many things to do, and even if 
I'm a linguist myself, I don't need phonetic symbols frequently enough to get 
annoyed by the lacking support ;-)


do you know the following packages?

Linguistic tree diagrams for Role and Reference Grammar (RRG)
http://www.ctan.org/tex-archive/macros/latex/contrib/rrgtrees

typesetting of trees that are common in linguistics
http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-jftree/

Linguistic: autosegmental representations
http://www.math.neu.edu/ling/tex/

Herbert




Re: TIPA (IPA) and limited tree support previews in LyX, working!

2006-02-17 Thread Herbert Voss

Juergen Spitzmueller wrote:

Herbert Voss wrote:


do you know the following packages?

Linguistic tree diagrams for Role and Reference Grammar (RRG)
http://www.ctan.org/tex-archive/macros/latex/contrib/rrgtrees

typesetting of trees that are common in linguistics
http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-jftree/

Linguistic: autosegmental representations
http://www.math.neu.edu/ling/tex/



I know that such packages exist. However, I do not use them.


here are some examples with code

http://perce.de/pub/linguistic.pdf

Herbert




Re: TIPA (IPA) and limited tree support previews in LyX, working!

2006-02-17 Thread Herbert Voss

Juergen Spitzmueller wrote:

Concerning TIPA, I'm tempted to have a look in the next development cycle (for 
1.5), but don't hold your breath. There are so many things to do, and even if 
I'm a linguist myself, I don't need phonetic symbols frequently enough to get 
annoyed by the lacking support ;-)


do you know the following packages?

Linguistic tree diagrams for Role and Reference Grammar (RRG)
http://www.ctan.org/tex-archive/macros/latex/contrib/rrgtrees

typesetting of trees that are common in linguistics
http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-jftree/

Linguistic: autosegmental representations
http://www.math.neu.edu/ling/tex/

Herbert




Re: TIPA (IPA) and limited tree support previews in LyX, working!

2006-02-17 Thread Herbert Voss

Juergen Spitzmueller wrote:

Herbert Voss wrote:


do you know the following packages?

Linguistic tree diagrams for Role and Reference Grammar (RRG)
http://www.ctan.org/tex-archive/macros/latex/contrib/rrgtrees

typesetting of trees that are common in linguistics
http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-jftree/

Linguistic: autosegmental representations
http://www.math.neu.edu/ling/tex/



I know that such packages exist. However, I do not use them.


here are some examples with code

http://perce.de/pub/linguistic.pdf

Herbert




Re: TIPA (IPA) and limited tree support previews in LyX, working!

2006-02-17 Thread Herbert Voss

Juergen Spitzmueller wrote:

Concerning TIPA, I'm tempted to have a look in the next development cycle (for 
1.5), but don't hold your breath. There are so many things to do, and even if 
I'm a linguist myself, I don't need phonetic symbols frequently enough to get 
annoyed by the lacking support ;-)


do you know the following packages?

Linguistic tree diagrams for Role and Reference Grammar (RRG)
http://www.ctan.org/tex-archive/macros/latex/contrib/rrgtrees

typesetting of trees that are common in linguistics
http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-jftree/

Linguistic: autosegmental representations
http://www.math.neu.edu/ling/tex/

Herbert




Re: TIPA (IPA) and limited tree support previews in LyX, working!

2006-02-17 Thread Herbert Voss

Juergen Spitzmueller wrote:

Herbert Voss wrote:


do you know the following packages?

Linguistic tree diagrams for Role and Reference Grammar (RRG)
http://www.ctan.org/tex-archive/macros/latex/contrib/rrgtrees

typesetting of trees that are common in linguistics
http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-jftree/

Linguistic: autosegmental representations
http://www.math.neu.edu/ling/tex/



I know that such packages exist. However, I do not use them.


here are some examples with code

http://perce.de/pub/linguistic.pdf

Herbert




Re: at the press!

2006-02-14 Thread Herbert Voss

Kevin Pfeiffer wrote:

The last MB of the two 222-MB (compressed) postscript files was just 


I did this also in the past, but nowadays I send only
the PDF file, which is in general about 10-20% of the
PS file size. Makes life easier ... :-)


KOMA-Script Book
amsmath, crop, soul, ellipsis, scrpage2, babel, tocloft, and subfigure.


sugfigure is superseeded by subfig

Herbert




Re: at the press!

2006-02-14 Thread Herbert Voss

Kevin Pfeiffer wrote:

The last MB of the two 222-MB (compressed) postscript files was just 


I did this also in the past, but nowadays I send only
the PDF file, which is in general about 10-20% of the
PS file size. Makes life easier ... :-)


KOMA-Script Book
amsmath, crop, soul, ellipsis, scrpage2, babel, tocloft, and subfigure.


sugfigure is superseeded by subfig

Herbert




Re: at the press!

2006-02-14 Thread Herbert Voss

Kevin Pfeiffer wrote:

The last MB of the two 222-MB (compressed) postscript files was just 


I did this also in the past, but nowadays I send only
the PDF file, which is in general about 10-20% of the
PS file size. Makes life easier ... :-)


KOMA-Script Book
amsmath, crop, soul, ellipsis, scrpage2, babel, tocloft, and subfigure.


sugfigure is superseeded by subfig

Herbert




Re: True type 1 fonts in pdf

2006-02-11 Thread Herbert Voss

Kevin Pfeiffer wrote:

Myriam Abramson writes:


Sorry if that's well known already but I am getting confused by
different answers I read on this issue.

I have LyX 1.3.5.




PS. It's quite urgent I get an answer to that to submit my paper.



Not sure what the question exactly is, but I'll try this answer: use 
ae as your LyX font selection...  (?)


really out of date! As the complete LyX font selection!

Herbert




Re: True type 1 fonts in pdf

2006-02-11 Thread Herbert Voss



Myriam Abramson wrote:

Hi!

Sorry if that's well known already but I am getting confused by
different answers I read on this issue. 


write into the preamble:

\usepackage[T1]{fontenc}
\usepackage{lmodern}

if you do not have the latin modern fonts installed, then
use

\usepackage[T1]{fontenc}
\usepackage[scaled]{helvet}
\usepackage{mathptmx}

Herbert




Re: True type 1 fonts in pdf

2006-02-11 Thread Herbert Voss

Kevin Pfeiffer wrote:

Herbert Voss writes:


write into the preamble:

\usepackage[T1]{fontenc}
\usepackage{lmodern}

if you do not have the latin modern fonts installed, then
use

\usepackage[T1]{fontenc}
\usepackage[scaled]{helvet}
\usepackage{mathptmx}



It's not possible to select these directly from within LyX?


no ...

Herbert




Re: True type 1 fonts in pdf

2006-02-11 Thread Herbert Voss

Myriam Abramson wrote:

Herbert Voss [EMAIL PROTECTED] scribbled furiously:
Myriam Abramson wrote:


Hi!
Sorry if that's well known already but I am getting confused by
different answers I read on this issue.


write into the preamble:

\usepackage[T1]{fontenc}
\usepackage{lmodern}



Okay, I've seen that in the wiki lyx. So to have the latin modern
fonts installed, I need to install cm-super from CTAN, correct?


only when the the lmodern are not present.
control it with
kpsewhich lmodern.sty



One more question: How do I know that True Type1 fonts are being used
in the pdf? What exactly should I see in the pdf under File-Document
settings-fonts ?  Right now, doing nothing, I see under the used
column: embedded subset - Type 1 .


Type 1 is always ok, otherwise there will be a Type 3.

Herbert




Re: True type 1 fonts in pdf

2006-02-11 Thread Herbert Voss

Kevin Pfeiffer wrote:

Myriam Abramson writes:


Sorry if that's well known already but I am getting confused by
different answers I read on this issue.

I have LyX 1.3.5.




PS. It's quite urgent I get an answer to that to submit my paper.



Not sure what the question exactly is, but I'll try this answer: use 
ae as your LyX font selection...  (?)


really out of date! As the complete LyX font selection!

Herbert




Re: True type 1 fonts in pdf

2006-02-11 Thread Herbert Voss



Myriam Abramson wrote:

Hi!

Sorry if that's well known already but I am getting confused by
different answers I read on this issue. 


write into the preamble:

\usepackage[T1]{fontenc}
\usepackage{lmodern}

if you do not have the latin modern fonts installed, then
use

\usepackage[T1]{fontenc}
\usepackage[scaled]{helvet}
\usepackage{mathptmx}

Herbert




Re: True type 1 fonts in pdf

2006-02-11 Thread Herbert Voss

Kevin Pfeiffer wrote:

Herbert Voss writes:


write into the preamble:

\usepackage[T1]{fontenc}
\usepackage{lmodern}

if you do not have the latin modern fonts installed, then
use

\usepackage[T1]{fontenc}
\usepackage[scaled]{helvet}
\usepackage{mathptmx}



It's not possible to select these directly from within LyX?


no ...

Herbert




Re: True type 1 fonts in pdf

2006-02-11 Thread Herbert Voss

Myriam Abramson wrote:

Herbert Voss [EMAIL PROTECTED] scribbled furiously:
Myriam Abramson wrote:


Hi!
Sorry if that's well known already but I am getting confused by
different answers I read on this issue.


write into the preamble:

\usepackage[T1]{fontenc}
\usepackage{lmodern}



Okay, I've seen that in the wiki lyx. So to have the latin modern
fonts installed, I need to install cm-super from CTAN, correct?


only when the the lmodern are not present.
control it with
kpsewhich lmodern.sty



One more question: How do I know that True Type1 fonts are being used
in the pdf? What exactly should I see in the pdf under File-Document
settings-fonts ?  Right now, doing nothing, I see under the used
column: embedded subset - Type 1 .


Type 1 is always ok, otherwise there will be a Type 3.

Herbert




Re: True type 1 fonts in pdf

2006-02-11 Thread Herbert Voss

Kevin Pfeiffer wrote:

Myriam Abramson writes:


Sorry if that's well known already but I am getting confused by
different answers I read on this issue.

I have LyX 1.3.5.




PS. It's quite urgent I get an answer to that to submit my paper.



Not sure what the question exactly is, but I'll try this answer: use 
"ae" as your LyX font selection...  (?)


really out of date! As the complete LyX font selection!

Herbert




Re: True type 1 fonts in pdf

2006-02-11 Thread Herbert Voss



Myriam Abramson wrote:

Hi!

Sorry if that's well known already but I am getting confused by
different answers I read on this issue. 


write into the preamble:

\usepackage[T1]{fontenc}
\usepackage{lmodern}

if you do not have the latin modern fonts installed, then
use

\usepackage[T1]{fontenc}
\usepackage[scaled]{helvet}
\usepackage{mathptmx}

Herbert




Re: True type 1 fonts in pdf

2006-02-11 Thread Herbert Voss

Kevin Pfeiffer wrote:

Herbert Voss writes:


write into the preamble:

\usepackage[T1]{fontenc}
\usepackage{lmodern}

if you do not have the latin modern fonts installed, then
use

\usepackage[T1]{fontenc}
\usepackage[scaled]{helvet}
\usepackage{mathptmx}



It's not possible to select these directly from within LyX?


no ...

Herbert




Re: True type 1 fonts in pdf

2006-02-11 Thread Herbert Voss

Myriam Abramson wrote:

Herbert Voss <[EMAIL PROTECTED]> scribbled furiously:
Myriam Abramson wrote:


Hi!
Sorry if that's well known already but I am getting confused by
different answers I read on this issue.


write into the preamble:

\usepackage[T1]{fontenc}
\usepackage{lmodern}



Okay, I've seen that in the wiki lyx. So to have the latin modern
fonts installed, I need to install cm-super from CTAN, correct?


only when the the lmodern are not present.
control it with
kpsewhich lmodern.sty



One more question: How do I know that True Type1 fonts are being used
in the pdf? What exactly should I see in the pdf under File->Document
settings->fonts ?  Right now, doing nothing, I see under the used
column: "embedded subset - Type 1" .


Type 1 is always ok, otherwise there will be a Type 3.

Herbert




Re: multicolumn and texlive

2006-02-08 Thread Herbert Voss



Wolfgang Engelmann wrote:

Still problems with multicol
the  info at
http://www.ctan.org/tex-archive/help/Catalogue/entries/multicol.html
does not say enough.

to repeat my situation:
I have a twocolumn koma-book document
I have selected twocolumn in documentpage


makes no sense together with package multicol. Disable it


I have added in the preample
\usepackage{multicol}
in order to avoid an empty page which is inserted 
with the twocolumn selection

(as recommended on this list, thanks again)


\begin{multicols}{2}


x  xxx
x  xxx
x  xxx
x  xxx


\end{multicols}



here should come a onecolumn-part
x
x




and here twocolumn again


\begin{multicols}{2}


x  xxx
x  xxx
x  xxx
x  xxx


\end{multicols}


Herbert




Re: multicolumn and texlive

2006-02-08 Thread Herbert Voss

Wolfgang Engelmann wrote:

Am Mittwoch, 8. Februar 2006 10:14 schrieb Herbert Voss:



makes no sense together with package multicol. Disable it



thanks, Herbert.

So I am adding \begin{multicols}{2}
at the begin of the document (at the very begin or after the title?)


The title should be in onecolumn mode, insert it
after your title/author/date lines.

and 
 \end{multicols}

 \begin{multicols}{1}


Wolfgang, look at my mail. There was nothing about such a
statement. Onecolumn is the default, therefore you should
disable the twocolumn option in the document layout.


here onecolumn text
 \end{multicols}

 \begin{multicols}{2}
here twocolumn text
\end{multicols}
at the end of the document


is this correct?


yes, except the above


Herbert




Re: multicolumn and texlive

2006-02-08 Thread Herbert Voss



Wolfgang Engelmann wrote:

Still problems with multicol
the  info at
http://www.ctan.org/tex-archive/help/Catalogue/entries/multicol.html
does not say enough.

to repeat my situation:
I have a twocolumn koma-book document
I have selected twocolumn in documentpage


makes no sense together with package multicol. Disable it


I have added in the preample
\usepackage{multicol}
in order to avoid an empty page which is inserted 
with the twocolumn selection

(as recommended on this list, thanks again)


\begin{multicols}{2}


x  xxx
x  xxx
x  xxx
x  xxx


\end{multicols}



here should come a onecolumn-part
x
x




and here twocolumn again


\begin{multicols}{2}


x  xxx
x  xxx
x  xxx
x  xxx


\end{multicols}


Herbert




Re: multicolumn and texlive

2006-02-08 Thread Herbert Voss

Wolfgang Engelmann wrote:

Am Mittwoch, 8. Februar 2006 10:14 schrieb Herbert Voss:



makes no sense together with package multicol. Disable it



thanks, Herbert.

So I am adding \begin{multicols}{2}
at the begin of the document (at the very begin or after the title?)


The title should be in onecolumn mode, insert it
after your title/author/date lines.

and 
 \end{multicols}

 \begin{multicols}{1}


Wolfgang, look at my mail. There was nothing about such a
statement. Onecolumn is the default, therefore you should
disable the twocolumn option in the document layout.


here onecolumn text
 \end{multicols}

 \begin{multicols}{2}
here twocolumn text
\end{multicols}
at the end of the document


is this correct?


yes, except the above


Herbert




Re: multicolumn and texlive

2006-02-08 Thread Herbert Voss



Wolfgang Engelmann wrote:

Still problems with multicol
the  info at
http://www.ctan.org/tex-archive/help/Catalogue/entries/multicol.html
does not say enough.

to repeat my situation:
I have a twocolumn koma-book document
I have selected twocolumn in document>page


makes no sense together with package multicol. Disable it


I have added in the preample
\usepackage{multicol}
in order to avoid an empty page which is inserted 
with the twocolumn selection

(as recommended on this list, thanks again)


\begin{multicols}{2}


x  xxx
x  xxx
x  xxx
x  xxx


\end{multicols}



here should come a onecolumn-part
x
x




and here twocolumn again


\begin{multicols}{2}


x  xxx
x  xxx
x  xxx
x  xxx


\end{multicols}


Herbert




Re: multicolumn and texlive

2006-02-08 Thread Herbert Voss

Wolfgang Engelmann wrote:

Am Mittwoch, 8. Februar 2006 10:14 schrieb Herbert Voss:



makes no sense together with package multicol. Disable it



thanks, Herbert.

So I am adding \begin{multicols}{2}
at the begin of the document (at the very begin or after the title?)


The title should be in onecolumn mode, insert it
after your title/author/date lines.

and 
 \end{multicols}

 \begin{multicols}{1}


Wolfgang, look at my mail. There was nothing about such a
statement. Onecolumn is the default, therefore you should
disable the twocolumn option in the document layout.


here onecolumn text
 \end{multicols}

 \begin{multicols}{2}
here twocolumn text
\end{multicols}
at the end of the document


is this correct?


yes, except the above


Herbert




Re: how to get rid of empty page

2006-02-07 Thread Herbert Voss

Wolfgang Engelmann wrote:

I use Koma script book style and want to get rid of an empty page which is put 
between my two column part and one column part


two column part

 * here is end of a list

In the following slides are shown:

(now I have to switch to onecolumn-style, since the slide show is in a table 
which spans the whole page, therefore:)


\onecolumn

2.2.2slides
 Helfrich-Förstercha:Diafolge-des-Vortrags
..
\twocolumn


\onecolumn and \twocolumn start a new page. Choose
package multicol

Herbert




Re: multicolumn and texlive

2006-02-07 Thread Herbert Voss

Wolfgang Engelmann wrote:

I have installed texlive 2005 and want to use multicolumn

if I put in the preample
\usepackage multicolumn



\usepackage{multicol}

Herbert




Re: how to get rid of empty page

2006-02-07 Thread Herbert Voss

Wolfgang Engelmann wrote:

I use Koma script book style and want to get rid of an empty page which is put 
between my two column part and one column part


two column part

 * here is end of a list

In the following slides are shown:

(now I have to switch to onecolumn-style, since the slide show is in a table 
which spans the whole page, therefore:)


\onecolumn

2.2.2slides
 Helfrich-Förstercha:Diafolge-des-Vortrags
..
\twocolumn


\onecolumn and \twocolumn start a new page. Choose
package multicol

Herbert




Re: multicolumn and texlive

2006-02-07 Thread Herbert Voss

Wolfgang Engelmann wrote:

I have installed texlive 2005 and want to use multicolumn

if I put in the preample
\usepackage multicolumn



\usepackage{multicol}

Herbert




Re: how to get rid of empty page

2006-02-07 Thread Herbert Voss

Wolfgang Engelmann wrote:

I use Koma script book style and want to get rid of an empty page which is put 
between my two column part and one column part


two column part

 * here is end of a list

In the following slides are shown:

(now I have to switch to onecolumn-style, since the slide show is in a table 
which spans the whole page, therefore:)


\onecolumn

2.2.2slides
 Helfrich-Förster
..
\twocolumn


\onecolumn and \twocolumn start a new page. Choose
package multicol

Herbert




Re: multicolumn and texlive

2006-02-07 Thread Herbert Voss

Wolfgang Engelmann wrote:

I have installed texlive 2005 and want to use multicolumn

if I put in the preample
\usepackage multicolumn



\usepackage{multicol}

Herbert




Re: GUI Buttons In Text

2006-02-05 Thread Herbert Voss

Rich Shepard wrote:

  In my document I reference specific buttons on the GUI of an application;
buttons such as OK, Clear, Add, and Load. What I have done is place each 
word
in a \framebox{}. It looks pretty ugly; the frames extend slightly below 
the

baseline and above the line of text.

  Then I tried searching the symbol list, Google, and the TUG Tips and 
Tricks

web pages. Didn't find anything that looked like a solution.

  What do folks do in this situation? I suppose I could set the words in
Italics and let it go at that.


a gui has its own button images. Have a look into the
sources and then use one of the files, often of xpm or ppm format

Herbert




Re: GUI Buttons In Text

2006-02-05 Thread Herbert Voss

Rich Shepard wrote:

  In my document I reference specific buttons on the GUI of an application;
buttons such as OK, Clear, Add, and Load. What I have done is place each 
word
in a \framebox{}. It looks pretty ugly; the frames extend slightly below 
the

baseline and above the line of text.

  Then I tried searching the symbol list, Google, and the TUG Tips and 
Tricks

web pages. Didn't find anything that looked like a solution.

  What do folks do in this situation? I suppose I could set the words in
Italics and let it go at that.


a gui has its own button images. Have a look into the
sources and then use one of the files, often of xpm or ppm format

Herbert




Re: GUI Buttons In Text

2006-02-05 Thread Herbert Voss

Rich Shepard wrote:

  In my document I reference specific buttons on the GUI of an application;
buttons such as OK, Clear, Add, and Load. What I have done is place each 
word
in a \framebox{}. It looks pretty ugly; the frames extend slightly below 
the

baseline and above the line of text.

  Then I tried searching the symbol list, Google, and the TUG Tips and 
Tricks

web pages. Didn't find anything that looked like a solution.

  What do folks do in this situation? I suppose I could set the words in
Italics and let it go at that.


a gui has its own button images. Have a look into the
sources and then use one of the files, often of xpm or ppm format

Herbert




Re: Screen Captures in Documents

2006-02-04 Thread Herbert Voss

Georg Baum wrote:

Am Samstag, 4. Februar 2006 18:41 schrieb Wolfgang Engelmann:


how do you crop them away?
(e.g. eps-file). Do you do it in the eps description of the file or do 


you use 


a program? And which one?



When I need to crop white borders of eps files, I usually run them through 
pstoepsi, or use the crop options in the LyX graphics dialog.
What I meant here where screenshots, where I use the automatic cropping 
feature of the gimp to do that.


pdfcrop --margins 10 file.pdf

can be done with a script ...

Herbert




Re: Screen Captures in Documents

2006-02-04 Thread Herbert Voss

Georg Baum wrote:

Am Samstag, 4. Februar 2006 18:41 schrieb Wolfgang Engelmann:


how do you crop them away?
(e.g. eps-file). Do you do it in the eps description of the file or do 


you use 


a program? And which one?



When I need to crop white borders of eps files, I usually run them through 
pstoepsi, or use the crop options in the LyX graphics dialog.
What I meant here where screenshots, where I use the automatic cropping 
feature of the gimp to do that.


pdfcrop --margins 10 file.pdf

can be done with a script ...

Herbert




Re: Screen Captures in Documents

2006-02-04 Thread Herbert Voss

Georg Baum wrote:

Am Samstag, 4. Februar 2006 18:41 schrieb Wolfgang Engelmann:


how do you crop them away?
(e.g. eps-file). Do you do it in the eps description of the file or do 


you use 


a program? And which one?



When I need to crop white borders of eps files, I usually run them through 
pstoepsi, or use the crop options in the LyX graphics dialog.
What I meant here where screenshots, where I use the automatic cropping 
feature of the gimp to do that.


pdfcrop --margins "10" file.pdf

can be done with a script ...

Herbert




Re: OT: Converter matrix to picture

2006-02-03 Thread Herbert Voss



Paul Smith wrote:

On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote:


Yes, that is what I mean. An illustration is at

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html


tell me the structure of your data file?
Are the values also saved as a matrix?



Thanks to all. An example of a data file is attached. It is a text
file with a matrix. Each column corresponds to x-coordinate, whereas
each row corresponds to y-coordinate. Both x and y have the same
range: [0,1]. From column to column, x increases 0.1. From row to row,
y increases 0.1. First column corresponds to x=0 and first row to y=0.

Paul




0   1   1   0   0   0   0   1   1   1
0   1   1   0   1   1   1   0   1   0


understood. Here an example if you could have your textfile
as

/matrix [
0   1   1   0   0   0   0   1   1 1
0   1   1   0   1   1   1   0   1 0

] def


\documentclass[a4paper]{article}
\usepackage{pst-plot}
\makeatletter
\def\specialPlot#1{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
(#1) run% load the data file
/n 0 def% index for element
[EMAIL PROTECTED]
/Dot { DS 0 360 arc fill } bind def
0 0.1 1 {
  /y exch def
  0 0.1 1 {
/x exch def
matrix n get
dup 0 gt {
  x [EMAIL PROTECTED] mul y [EMAIL PROTECTED] mul Dot%
} { pop } ifelse
/n n 1 add def
  } for
} for
  }%
  [EMAIL PROTECTED]
}
\makeatother

\begin{document}

\psset{unit=10}
\begin{pspicture}(-0.1,-0.1)(1.1,1.1)
  \psaxes[Dx=0.1,Dy=0.1]{-}(1,1)
  \psset{dotsize=5pt}
  \specialPlot{matrix.txt}
\end{pspicture}

\end{document}


Herbert



Re: Editors for LaTeX-files with syntax highlighting

2006-02-03 Thread Herbert Voss

Uwe Stöhr wrote:

Does Kile and Emacs easily run under windows, I mean do they have an own 
win-installer?


Kile is *nix and MAC GUI

Herbert




Re: changing fonts in TOC

2006-02-03 Thread Herbert Voss



Phil Tomson wrote:

I'm working on my thesis and every school seems to have their own
format rules...

I'm using article(koma-script).  I need all of the sections listed in
the TOC to be the same size font (12pt) as the rest of the text of the
thesis and they cannot be bold.  I've managed to get this working for
the sections and subsections in body of the thesis, but I haven't been
able to figure out how to do it in the TOC where sections end up being
bold san serif (the rest of the text is Roman).


put the preamble into your LyX doc

Herbert


\documentclass[a4paper,12pt]{article}

\makeatletter
[EMAIL PROTECTED]
  \ifnum [EMAIL PROTECTED] \z@
[EMAIL PROTECTED]
\addvspace{1.0em [EMAIL PROTECTED]@}%
[EMAIL PROTECTED]  Important width
\begingroup
  \parindent \z@ \rightskip [EMAIL PROTECTED]
  \parfillskip [EMAIL PROTECTED]
  \leavevmode %\bfseries  % normal font
  [EMAIL PROTECTED]
  \hskip -\leftskip
  #1\nobreak\hfil [EMAIL PROTECTED]@[EMAIL PROTECTED] #2}\par
\endgroup
  \fi}
[EMAIL PROTECTED]@section
[EMAIL PROTECTED]@section
[EMAIL PROTECTED]@section
\makeatother

\begin{document}
\tableofcontents

\section{foo}
bar
\subsection{foo}
bar
\subsubsection{foo}
bar
\paragraph{foo}
bar

\end{document}









any ideas?

Phil






Re: OT: Converter matrix to picture

2006-02-03 Thread Herbert Voss



Paul Smith wrote:

On 2/3/06, Herbert Voss [EMAIL PROTECTED] wrote:


tell me the structure of your data file?
Are the values also saved as a matrix?


Thanks to all. An example of a data file is attached. It is a text
file with a matrix. Each column corresponds to x-coordinate, whereas
each row corresponds to y-coordinate. Both x and y have the same
range: [0,1]. From column to column, x increases 0.1. From row to row,
y increases 0.1. First column corresponds to x=0 and first row to y=0.



0 1   1   0   0   0   0   1   1   1
0 1   1   0   1   1   1   0   1   0


understood. Here an example if you could have your textfile
as

/matrix [
0   1   1   0   0   0   0   1   1 1
0   1   1   0   1   1   1   0   1 0

] def



Great, Herbert! That is it. Maybe, a spy-like command could be added
to the list of commands of PSTricks. Well, that is just a
suggestion...


let's see ...

However, I was a bit too clever ...
the textfile should be with a first and last line of

/dotmatrix [
0   1   1   0   0   0   0   1   1 1
...
...
] def

I forgot that PSTricks also defines a /matrix array for internal
purposes. It collides with the one from this text matrix. Name it
/dotmatrix [ ... ] def instead and everything will be ok. See
example, which also shows the possibility of printing the dots
as squares without whitespace.

Herbert



\documentclass[a4paper]{article}
\usepackage{pst-plot}

\makeatletter
\def\specialPlot#1{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
(#1) run% load the data file
[EMAIL PROTECTED]   % scale dot
[EMAIL PROTECTED]@[EMAIL PROTECTED] % dotstyle
/n 0 def% index for element
0 0.1 1 {   % the y loop
  /y exch def   % save y
  0 0.1 1 { % the x loop
/x exch def % save x
dotmatrix n get % get value from matrix
dup 0 gt {  % test if  0
  x [EMAIL PROTECTED] mul y [EMAIL PROTECTED] mul Dot%
} { pop } ifelse
/n n 1 add def
  } for
} for
  }%
  [EMAIL PROTECTED]
}
\makeatother

\begin{document}

\psset{unit=10}
\begin{pspicture}(-0.1,-0.1)(1.1,1.1)
  \psaxes[Dx=0.1,Dy=0.1]{-}(1,1)
  \psset{dotscale=3,dotstyle=square*,linecolor=magenta}
  \specialPlot{matrix.txt} % must be of /dotmatrix [ ... ] def
\end{pspicture}

\begin{pspicture}(-0.1,-0.1)(1.1,1.1)
  \psaxes[Dx=0.1,Dy=0.1]{-}(1,1)
  \psset{dotsize=1.1cm,dotstyle=square*,linecolor=magenta}
  \specialPlot{matrix.txt}
\end{pspicture}





Paul






Re: OT: Converter matrix to picture

2006-02-03 Thread Herbert Voss



Paul Smith wrote:

On 2/2/06, Herbert Voss [EMAIL PROTECTED] wrote:


Yes, that is what I mean. An illustration is at

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html


tell me the structure of your data file?
Are the values also saved as a matrix?



Thanks to all. An example of a data file is attached. It is a text
file with a matrix. Each column corresponds to x-coordinate, whereas
each row corresponds to y-coordinate. Both x and y have the same
range: [0,1]. From column to column, x increases 0.1. From row to row,
y increases 0.1. First column corresponds to x=0 and first row to y=0.

Paul




0   1   1   0   0   0   0   1   1   1
0   1   1   0   1   1   1   0   1   0


understood. Here an example if you could have your textfile
as

/matrix [
0   1   1   0   0   0   0   1   1 1
0   1   1   0   1   1   1   0   1 0

] def


\documentclass[a4paper]{article}
\usepackage{pst-plot}
\makeatletter
\def\specialPlot#1{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
(#1) run% load the data file
/n 0 def% index for element
[EMAIL PROTECTED]
/Dot { DS 0 360 arc fill } bind def
0 0.1 1 {
  /y exch def
  0 0.1 1 {
/x exch def
matrix n get
dup 0 gt {
  x [EMAIL PROTECTED] mul y [EMAIL PROTECTED] mul Dot%
} { pop } ifelse
/n n 1 add def
  } for
} for
  }%
  [EMAIL PROTECTED]
}
\makeatother

\begin{document}

\psset{unit=10}
\begin{pspicture}(-0.1,-0.1)(1.1,1.1)
  \psaxes[Dx=0.1,Dy=0.1]{-}(1,1)
  \psset{dotsize=5pt}
  \specialPlot{matrix.txt}
\end{pspicture}

\end{document}


Herbert



Re: Editors for LaTeX-files with syntax highlighting

2006-02-03 Thread Herbert Voss

Uwe Stöhr wrote:

Does Kile and Emacs easily run under windows, I mean do they have an own 
win-installer?


Kile is *nix and MAC GUI

Herbert




Re: changing fonts in TOC

2006-02-03 Thread Herbert Voss



Phil Tomson wrote:

I'm working on my thesis and every school seems to have their own
format rules...

I'm using article(koma-script).  I need all of the sections listed in
the TOC to be the same size font (12pt) as the rest of the text of the
thesis and they cannot be bold.  I've managed to get this working for
the sections and subsections in body of the thesis, but I haven't been
able to figure out how to do it in the TOC where sections end up being
bold san serif (the rest of the text is Roman).


put the preamble into your LyX doc

Herbert


\documentclass[a4paper,12pt]{article}

\makeatletter
[EMAIL PROTECTED]
  \ifnum [EMAIL PROTECTED] \z@
[EMAIL PROTECTED]
\addvspace{1.0em [EMAIL PROTECTED]@}%
[EMAIL PROTECTED]  Important width
\begingroup
  \parindent \z@ \rightskip [EMAIL PROTECTED]
  \parfillskip [EMAIL PROTECTED]
  \leavevmode %\bfseries  % normal font
  [EMAIL PROTECTED]
  \hskip -\leftskip
  #1\nobreak\hfil [EMAIL PROTECTED]@[EMAIL PROTECTED] #2}\par
\endgroup
  \fi}
[EMAIL PROTECTED]@section
[EMAIL PROTECTED]@section
[EMAIL PROTECTED]@section
\makeatother

\begin{document}
\tableofcontents

\section{foo}
bar
\subsection{foo}
bar
\subsubsection{foo}
bar
\paragraph{foo}
bar

\end{document}









any ideas?

Phil






Re: OT: Converter matrix to picture

2006-02-03 Thread Herbert Voss



Paul Smith wrote:

On 2/3/06, Herbert Voss [EMAIL PROTECTED] wrote:


tell me the structure of your data file?
Are the values also saved as a matrix?


Thanks to all. An example of a data file is attached. It is a text
file with a matrix. Each column corresponds to x-coordinate, whereas
each row corresponds to y-coordinate. Both x and y have the same
range: [0,1]. From column to column, x increases 0.1. From row to row,
y increases 0.1. First column corresponds to x=0 and first row to y=0.



0 1   1   0   0   0   0   1   1   1
0 1   1   0   1   1   1   0   1   0


understood. Here an example if you could have your textfile
as

/matrix [
0   1   1   0   0   0   0   1   1 1
0   1   1   0   1   1   1   0   1 0

] def



Great, Herbert! That is it. Maybe, a spy-like command could be added
to the list of commands of PSTricks. Well, that is just a
suggestion...


let's see ...

However, I was a bit too clever ...
the textfile should be with a first and last line of

/dotmatrix [
0   1   1   0   0   0   0   1   1 1
...
...
] def

I forgot that PSTricks also defines a /matrix array for internal
purposes. It collides with the one from this text matrix. Name it
/dotmatrix [ ... ] def instead and everything will be ok. See
example, which also shows the possibility of printing the dots
as squares without whitespace.

Herbert



\documentclass[a4paper]{article}
\usepackage{pst-plot}

\makeatletter
\def\specialPlot#1{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
(#1) run% load the data file
[EMAIL PROTECTED]   % scale dot
[EMAIL PROTECTED]@[EMAIL PROTECTED] % dotstyle
/n 0 def% index for element
0 0.1 1 {   % the y loop
  /y exch def   % save y
  0 0.1 1 { % the x loop
/x exch def % save x
dotmatrix n get % get value from matrix
dup 0 gt {  % test if  0
  x [EMAIL PROTECTED] mul y [EMAIL PROTECTED] mul Dot%
} { pop } ifelse
/n n 1 add def
  } for
} for
  }%
  [EMAIL PROTECTED]
}
\makeatother

\begin{document}

\psset{unit=10}
\begin{pspicture}(-0.1,-0.1)(1.1,1.1)
  \psaxes[Dx=0.1,Dy=0.1]{-}(1,1)
  \psset{dotscale=3,dotstyle=square*,linecolor=magenta}
  \specialPlot{matrix.txt} % must be of /dotmatrix [ ... ] def
\end{pspicture}

\begin{pspicture}(-0.1,-0.1)(1.1,1.1)
  \psaxes[Dx=0.1,Dy=0.1]{-}(1,1)
  \psset{dotsize=1.1cm,dotstyle=square*,linecolor=magenta}
  \specialPlot{matrix.txt}
\end{pspicture}





Paul






Re: OT: Converter matrix to picture

2006-02-03 Thread Herbert Voss



Paul Smith wrote:

On 2/2/06, Herbert Voss <[EMAIL PROTECTED]> wrote:


Yes, that is what I mean. An illustration is at

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/spy.html


tell me the structure of your data file?
Are the values also saved as a matrix?



Thanks to all. An example of a data file is attached. It is a text
file with a matrix. Each column corresponds to x-coordinate, whereas
each row corresponds to y-coordinate. Both x and y have the same
range: [0,1]. From column to column, x increases 0.1. From row to row,
y increases 0.1. First column corresponds to x=0 and first row to y=0.

Paul




0   1   1   0   0   0   0   1   1   1
0   1   1   0   1   1   1   0   1   0


understood. Here an example if you could have your textfile
as

/matrix [
0   1   1   0   0   0   0   1   1 1
0   1   1   0   1   1   1   0   1 0

] def


\documentclass[a4paper]{article}
\usepackage{pst-plot}
\makeatletter
\def\specialPlot#1{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
(#1) run% load the data file
/n 0 def% index for element
[EMAIL PROTECTED]
/Dot { DS 0 360 arc fill } bind def
0 0.1 1 {
  /y exch def
  0 0.1 1 {
/x exch def
matrix n get
dup 0 gt {
  x [EMAIL PROTECTED] mul y [EMAIL PROTECTED] mul Dot%
} { pop } ifelse
/n n 1 add def
  } for
} for
  }%
  [EMAIL PROTECTED]
}
\makeatother

\begin{document}

\psset{unit=10}
\begin{pspicture}(-0.1,-0.1)(1.1,1.1)
  \psaxes[Dx=0.1,Dy=0.1]{->}(1,1)
  \psset{dotsize=5pt}
  \specialPlot{matrix.txt}
\end{pspicture}

\end{document}


Herbert



Re: Editors for LaTeX-files with syntax highlighting

2006-02-03 Thread Herbert Voss

Uwe Stöhr wrote:

Does Kile and Emacs easily run under windows, I mean do they have an own 
win-installer?


Kile is *nix and MAC GUI

Herbert




Re: changing fonts in TOC

2006-02-03 Thread Herbert Voss



Phil Tomson wrote:

I'm working on my thesis and every school seems to have their own
format rules...

I'm using article(koma-script).  I need all of the sections listed in
the TOC to be the same size font (12pt) as the rest of the text of the
thesis and they cannot be bold.  I've managed to get this working for
the sections and subsections in body of the thesis, but I haven't been
able to figure out how to do it in the TOC where sections end up being
bold san serif (the rest of the text is Roman).


put the preamble into your LyX doc

Herbert


\documentclass[a4paper,12pt]{article}

\makeatletter
[EMAIL PROTECTED]
  \ifnum [EMAIL PROTECTED] >\z@
[EMAIL PROTECTED]
\addvspace{1.0em [EMAIL PROTECTED]@}%
[EMAIL PROTECTED] < Important width
\begingroup
  \parindent \z@ \rightskip [EMAIL PROTECTED]
  \parfillskip [EMAIL PROTECTED]
  \leavevmode %\bfseries  %< normal font
  [EMAIL PROTECTED]
  \hskip -\leftskip
  #1\nobreak\hfil [EMAIL PROTECTED]@[EMAIL PROTECTED] #2}\par
\endgroup
  \fi}
[EMAIL PROTECTED]@section
[EMAIL PROTECTED]@section
[EMAIL PROTECTED]@section
\makeatother

\begin{document}
\tableofcontents

\section{foo}
bar
\subsection{foo}
bar
\subsubsection{foo}
bar
\paragraph{foo}
bar

\end{document}









any ideas?

Phil






Re: OT: Converter matrix to picture

2006-02-03 Thread Herbert Voss



Paul Smith wrote:

On 2/3/06, Herbert Voss <[EMAIL PROTECTED]> wrote:


tell me the structure of your data file?
Are the values also saved as a matrix?


Thanks to all. An example of a data file is attached. It is a text
file with a matrix. Each column corresponds to x-coordinate, whereas
each row corresponds to y-coordinate. Both x and y have the same
range: [0,1]. From column to column, x increases 0.1. From row to row,
y increases 0.1. First column corresponds to x=0 and first row to y=0.



0 1   1   0   0   0   0   1   1   1
0 1   1   0   1   1   1   0   1   0


understood. Here an example if you could have your textfile
as

/matrix [
0   1   1   0   0   0   0   1   1 1
0   1   1   0   1   1   1   0   1 0

] def



Great, Herbert! That is it. Maybe, a "spy-like" command could be added
to the list of commands of PSTricks. Well, that is just a
suggestion...


let's see ...

However, I was a bit too clever ...
the textfile should be with a first and last line of

/dotmatrix [
0   1   1   0   0   0   0   1   1 1
...
...
] def

I forgot that PSTricks also defines a /matrix array for internal
purposes. It collides with the one from this text matrix. Name it
/dotmatrix [ ... ] def instead and everything will be ok. See
example, which also shows the possibility of printing the dots
as squares without whitespace.

Herbert



\documentclass[a4paper]{article}
\usepackage{pst-plot}

\makeatletter
\def\specialPlot#1{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
(#1) run% load the data file
[EMAIL PROTECTED]   % scale dot
[EMAIL PROTECTED]@[EMAIL PROTECTED] % dotstyle
/n 0 def% index for element
0 0.1 1 {   % the y loop
  /y exch def   % save y
  0 0.1 1 { % the x loop
/x exch def % save x
dotmatrix n get % get value from matrix
dup 0 gt {  % test if > 0
  x [EMAIL PROTECTED] mul y [EMAIL PROTECTED] mul Dot%
} { pop } ifelse
/n n 1 add def
  } for
} for
  }%
  [EMAIL PROTECTED]
}
\makeatother

\begin{document}

\psset{unit=10}
\begin{pspicture}(-0.1,-0.1)(1.1,1.1)
  \psaxes[Dx=0.1,Dy=0.1]{->}(1,1)
  \psset{dotscale=3,dotstyle=square*,linecolor=magenta}
  \specialPlot{matrix.txt} % must be of /dotmatrix [ ... ] def
\end{pspicture}

\begin{pspicture}(-0.1,-0.1)(1.1,1.1)
  \psaxes[Dx=0.1,Dy=0.1]{->}(1,1)
  \psset{dotsize=1.1cm,dotstyle=square*,linecolor=magenta}
  \specialPlot{matrix.txt}
\end{pspicture}





Paul






Re: LyX is getting... very annoying.

2006-02-02 Thread Herbert Voss

Marc D. wrote:

Answer: it's the \textmf that causes ALL six errors. (and all 35  errors 


what you mean is \textrm

in my original file). All from a a single, obviously  misplaced, \textmf 
tag that I DID NOT INSERT (or knowingly insert. I  don't USE different 
fonts in my document!)


I have just manually removed the \textmf from the .lyx file and now  it 
works.


\textrm is not the real problem!


\begin_inset Formula $\textrm{2^{Q}}$
\end_inset


this is nonsense! How did you insert it? 2^{Q} is a math
expression, it cannot be part of \textrm, it should be an
argument of\mathrm

Herbert




Re: LyX is getting... very annoying.

2006-02-02 Thread Herbert Voss

Georg Baum wrote:


It does do the right thing, the error is that creating mathematical things
inside \textrm should not be possible in LyX. This is a known bug
(unfortunately not easy to fix):
http://bugzilla.lyx.org/show_bug.cgi?id=1527



Why, when I erased the entire paragraph containing this string and
retyped it, did the textmf string REAPPEAR in exactly the same
place?? I had to go into the lyx file and manually delete the bugger.



You can always go at the first position inside the \textrm and press
backspace. Then it will disappear.


\textrm inside math is _valid_ LaTeX code, but makes no real sense,
because it takes the textfont instead of the roman math font. If
a user inserts \textrm then it is on his own risk. If you do not
allow this in math mode it is a regression, because it maybe useful
for _text_ inside math without using amsmath.

Herbert




  1   2   3   4   5   6   7   8   9   10   >