Trouble exporting multi-part documents

2019-04-01 Thread Paul Johnson
I have a dissertation template for students at my University. There is a
main thesis document and then the separate chapters are in subdirectories. (
http://crmda.ku.edu/node/555)

Currently, in version, "KU-thesis-20190201.zip
", it
appears to work for everybody to use LyX to edit either the main document
or the individual chapters.

However, I have students who want to use the dissertation template as raw
LaTexX files, rather than within LyX.  Here I run into a bad problem.

In my 20190201 version, the people who want to edit the exported LaTeX file
in raw LaTeX could not compile the document.  There's an error about
commands in the chapter heading that are only allowed in the document
preamble.  From that error message, I tracked back to changes I made and I
understand what is going wrong.

If I start with the master document and do Export to LaTeX (pdflatex), the
individual chapter .tex files are created.  They are not free-standing
documents. At the top, there was no preamble. It starts in line 1 with the
chapter name

\chapter{Elementary Regression}

and also the includegraphics lines have full project paths:

\includegraphics[width=4in]{Chapter2/importfigs/carinced}

Those chapters could not be compiled individually.

I thought I'd get around this problem by using LyX to individually
exporting each separate chapter as a tex document. I did not realize that
caused an entirely different export than I got by starting with the master
document in LyX and doing export LaTeX(pdflatex).

My individually exported chapter files allows the users to edit the
individual .tex chapters, but when they try to compile the master document,
they get errors caused by the fact that the individual chapters have their
own preambles AND the graphics paths are incorrect.

Because I individually exported the .tex files within the Chapter
directories, then the master document level Export to LaTeX does not
replace the existing chapters.  Thus I am allowed to zip up the directory
and have a master document that does not compile because the child
documents have preambles in them.

Now that I understand the problem, I wonder if other people have noticed
this and if they have suggestions for a fix?

I wondered if perhaps we might have the necessary preamble created as a
separate file in each chapter with some if/then magic in each chapter
preamble to specify whether or not the master file is in control.

Some fix about the figure paths is necessary as well, I don't have a guess
about that.

pj

-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.


Re: you say install latest version of MiKTeX before installing LyX - what is the minimal version needed?

2018-10-15 Thread Paul Johnson
Hi:

I was trying to compile texinfo on Windows, if you succeed, let me know how.

https://www.gnu.org/software/texinfo
On Sat, Oct 13, 2018 at 1:12 PM Richard Kimberly Heck  wrote:
>
> On 10/13/18 1:58 PM, Paul Johnson wrote:
> >
> > The only critical flaw in TeXLive we have encountered is that it does
> > not include texi2pdf. Because of that absence, the R team is still
> > devoted to MikTeX as a part of the tool chain to build/use R for
> > windows. I spent a while trying to figure out how to compile texi2pdf
> > on Windows and gave up.
>
> Can you point me at the source code? I'd certainly have a go at
> cross-compiling it on Linux with mingw.
>
> Riki
>
>


-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.


Re: you say install latest version of MiKTeX before installing LyX - what is the minimal version needed?

2018-10-13 Thread Paul Johnson
On Fri, Sep 14, 2018 at 9:10 PM Richard Kimberly Heck  wrote:
>
> On 9/14/18 2:38 AM, Baris Erkus wrote:
> > If the intention is more like a complete WYSIWYG software package (or
> > bundle) allowing users to produce documents right after installation
> > without much hassle of Tex and other setups and preventing them from
> > dealing with low-level Latex programming, it would be more reasonable
> > to develop LyX as a bundle/package of LyX Frontend+TeX system+misc
> > components. This would make the bundle more predictable and manageable
> > if the components of the package are package-specific and they are
> > developed specifically for the package. In this case, the TeX system
> > should be customized by the LyX developers and should not be allowed
> > to be updated by a third party software. This is the approach taken by
> > Scientific Workplace and Bakoma, I guess.
> >
> > If the intention is develop only a powerful frontend that allows users
> > to juggle around the TeX system, to do their own customization, allow
> > different TeX systems to be used  (and let the TeX developers to do
> > job of developing TeX systems) and even maybe allow users install
> > their own addons and functions to LyX, then LyX should have a module
> > that can communicate with different TeX systems efficiently and should
> > be immune to changes and updates in the TeX system.
> >

This was a great thread last month and I'm sorry I did not add this back then.

1. We changed over to TeXLive on Windows systems and encourage all LyX
users here to do the same.  It seemed as though every time we had a
workshop, the MiKTeX users were chronically locked up by the failure
to get the packages installed. It is much easier to take the "one
giant distribution" and install it. (https://crmda.ku.edu/latex-help)

The only critical flaw in TeXLive we have encountered is that it does
not include texi2pdf. Because of that absence, the R team is still
devoted to MikTeX as a part of the tool chain to build/use R for
windows. I spent a while trying to figure out how to compile texi2pdf
on Windows and gave up. (It appears to me the efforts to make open
source things work on windows are fraught with danger. The Windows
test system here has 5 or 6 different Cygwin-based installations and
the path is a tangled web of incompatible libraries and executables.
Sorry, that's just a Unix guy in foreign territory whining.)

There is one LaTeX distribution project worth tracking in this vein.
Yihui Xie, who LyX users will remember as an important contributor in
LyX support for Sweave and knitr, offers an R package "tinytex"
(https://yihui.name/tinytex/).  It is a MikTeX-style alternative
distribution based on TeXlive.  Although I gave up with the "on demand
package installation" idea  for LyX/MikTeX, I also would not bet
against this new thing.  The creator has been wildly successful in
ways that, frankly, I thought were impossible.

But, honestly, for the absolute beginner, the simplest thing is to
just install LaTeX  everything: TeXLive!  A 2GB download is feasible
for almost everybody these days.  Disk space is cheap and not too many
of us are running LaTeX in our cell phones.


2. I wrote a help page called "How to Cheat on your LaTeX Homework: A
Beginner's Guide to LyX and LaTeX" and has the theme of the earlier
posts in this tread. We offer workshops with that idea. I agree with
the idea that one of LyX's best contributions is the Code view window.

I prefer to write with LyX, but sometimes my team members are hard
core "raw" LaTeX users and I have to go with that. Also, we have more
demand to write documents with R markdown.  I keep LyX open so I can
remember "how did LyX turn a table sideways" or how did they get a
table to have borders and joined cells "just so." Without LyX, I find
it is much more error prone to make he layout just right.  I end up
Googling and finding incorrect answers from strangers.There are too
many people that are willing to offer advice that is based on
incorrect code or outmoded and unusual packages.   And, once you
follow the badly thought-out advice of an isolated individual in the
internet, you are in a world of hurt.  Almost all of the time, the
LaTeX code that LyX prepares is accurate and understandable in the
"raw" LaTeX document we write.

Best regards
pj

-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.


Ubuntu: keep lyx 2.2.3 and 2.3.1 in same system

2018-10-13 Thread Paul Johnson
I have some projects based on LyX 2.2.3 that I want to work on and I
don't want to update to new. However, I also have projects based on
2.3 and I can't edit those with old LyX.

Liviu Andronic worked out a way for this to be possible a few years
ago, but I cannot find documents about it. I wish I could have old and
new lyx installed at same time, to easily run one or the other.
I've tried to do this by installing 2.3.1 from the Ubuntu package and
then compiling 2.2.3 from source and installing off the path, but then
I found the 2 versions should not share a user configuration folder.
After using 2.3.1 and allowing it to revise ~/.lyx, then lyx 2.2.3
cannot start. Error like this:

$ ./lyx
Warning: Could not read configuration file

Error while reading the configuration file
preferences.
Please check your installation.

So obviously I need to be more graceful, separate config folders.

I thought about building a new Debian package "lyx223". I'm pretty
sure that's what I think Liviu did.  For me that was a fail because
the deb packaging code for the lyx project has a lot of hard coded
folders like /usr/share/lyx, so it is not too easy to rebuild a
package to use alternate folders.

If you have advice about this, I would be glad to  hear it.

-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.


Re: user interface bug latin9 -> Unicode

2018-09-27 Thread Paul Johnson
I apologize. My LyX test machine where I found the problem has LyX 2.2.3.

We have built LyX 2.3.1 for RedHat and the problem is solved, the smiley
unicode character is replaced by \smiley{}, just as Jurgen said.

Also confirm that problem does not exist in LyX 2.3.0 in Ubuntu.


On Wed, Sep 26, 2018 at 3:47 AM Jürgen Spitzmüller  wrote:

> Am Dienstag, den 25.09.2018, 14:15 -0500 schrieb Paul Johnson:
> > This looks like a bug to me.
> >
> > Create a new empty article and use the Insert Symbol tool to put in
> > some miscellaneous smiley faces and what not. This is the source view
> > of the file, which does compile.:
> >
> > \documentclass[english]{article}
> > \usepackage[T1]{fontenc}
> > \usepackage[latin9]{inputenc}
> > \usepackage{wasysym}
> > \usepackage{babel}
> > \begin{document}
> > \frownie \smiley \blacksmiley \sun{}
> > \end{document}
> >
> > Then I went into Settings -> Language and changed input to utf-8.
> >
> > That had the effect of automatically replacing \frownie and \smiley
> > with unicode symbols in the LaTeX source, like so:
> >
> > \documentclass[english]{article}
> > \usepackage[T1]{fontenc}
> > \usepackage[utf8]{inputenc}
> > \usepackage{wasysym}
> > \usepackage{babel}
> > \begin{document}
> > ☹☺☻☼
> > \end{document}
> >
> > That does not compile, rather the error messages say:
> >
> > Package inputenc Error: Unicode char ☹ (U+2639)
> > Package inputenc Error: Unicode char ☺ (U+263A)
> > Package inputenc Error: Unicode char ☻ (U+263B)
> > Package inputenc Error: Unicode char ☼ (U+263C)
> >
> > My thought was that LyX should not replace \frownie with ☹ unless the
> > document would otherwise compile correctly.
>
> Which version of LyX is this? The macros are output here also with
> utf8, and this should be the case at least as of 2.3.0.
>
> Jürgen
>
>

-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.


Re: Graceful beamer <-> beamerarticle transition; help with conditional preamble code?

2018-09-27 Thread Paul Johnson
On Wed, Sep 26, 2018 at 4:02 AM Jürgen Spitzmüller  wrote:
>
> Am Dienstag, den 25.09.2018, 15:08 -0500 schrieb Paul Johnson:
> > This seems like my LyX day to ask questions. Thanks for your help.
> >
> > We have some instructional web pages that have accompanying Beamer
> > slides. It is a hassle to edit the web page and the Beamer slides,
> > content goes out of sync.
> >
> > The idea hit me to write one document that can be exported as Beamer
> > Slides or as a Beamer Article.  I've explored the details quite a bit
> > and the process almost works smoothly. My preamble for slides has a
> > lot of customized settings and LyX does not gracefully convert from
> > Beamer slides to Beamer article as a result. I manually insert some
> > code... I need the \mode<> statements to adjust for the output
> > format.
> > I control input for each format with \mode{} and
> > \mode{}.  I find the back-and-forth transition mostly works.
>
> I'd suggest to use two documents: the actual beamer document that
> contains all the text and a portmanteau beamer-article file that
> basically simply \includes the beamer document. Then you can add
> specific preamble code to either document.
>
> See beamer-article.lyx in examples as a model.
>
> > However, there is one piece of conditional code where I need your
> > help. A Beamer slide document  is declared like so
> >
> > \documentclass[english]{beamer}
> >
> > Because beamer is the class, then "\mode" is immediately available.
> >
> > However, the Beamer article is declared as an article:
> >
> > \documentclass[english]{article}
> >
> > Because the \mode macro is not available yet, I am not able to
> > conditionalize setup statements for the article. I want to take the
> > "BeamerArticle" preamble code and wrap inside \mode:
>
> If you use the textclass "Article (Beamer)" (not "Article"), the
> beamerarticle package will be loaded and \mode is defined.
>
Thanks very much. I understand your suggestion and will follow it.


> HTH
> Jürgen



-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.


Graceful beamer <-> beamerarticle transition; help with conditional preamble code?

2018-09-25 Thread Paul Johnson
This seems like my LyX day to ask questions. Thanks for your help.

We have some instructional web pages that have accompanying Beamer
slides. It is a hassle to edit the web page and the Beamer slides,
content goes out of sync.

The idea hit me to write one document that can be exported as Beamer
Slides or as a Beamer Article.  I've explored the details quite a bit
and the process almost works smoothly. My preamble for slides has a
lot of customized settings and LyX does not gracefully convert from
Beamer slides to Beamer article as a result. I manually insert some
code... I need the \mode<> statements to adjust for the output format.
I control input for each format with \mode{} and
\mode{}.  I find the back-and-forth transition mostly works.

However, there is one piece of conditional code where I need your
help. A Beamer slide document  is declared like so

\documentclass[english]{beamer}

Because beamer is the class, then "\mode" is immediately available.

However, the Beamer article is declared as an article:

\documentclass[english]{article}

Because the \mode macro is not available yet, I am not able to
conditionalize setup statements for the article. I want to take the
"BeamerArticle" preamble code and wrap inside \mode:


\mode{
\makeatletter
% Textclass specific LaTeX commands.
\usepackage{beamerarticle,pgf}
% this default might be overridden by plain title style
\newcommand\makebeamertitle{\frame{\maketitle}}%
\AtBeginDocument{
\let\origtableofcontents=\tableofcontents
\def\tableofcontents{\@ifnextchar[{\origtableofcontents}{\gobbletableofcontents}}
\def\gobbletableofcontents#1{\origtableofcontents}
}
\makeatother
}

That fails, pdflatex error:

\mode{
The control sequence at the end of the top line of your error message
was never \def'ed.

Well, that should happen. "\mode" is an unrecognized symbol in the
article document. I can't have any \mode or
\mode settings until "\usepackage{beamerarticle}" package is
loaded.

I need to write a conditional statement like "if this document is not
a Beamer slide document, then include the following code" to fix the
problem. That's where I'm stuck at the current time.

pj

-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.


user interface bug latin9 -> Unicode

2018-09-25 Thread Paul Johnson
This looks like a bug to me.

Create a new empty article and use the Insert Symbol tool to put in
some miscellaneous smiley faces and what not. This is the source view
of the file, which does compile.:

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{wasysym}
\usepackage{babel}
\begin{document}
\frownie \smiley \blacksmiley \sun{}
\end{document}

Then I went into Settings -> Language and changed input to utf-8.

That had the effect of automatically replacing \frownie and \smiley
with unicode symbols in the LaTeX source, like so:

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{wasysym}
\usepackage{babel}
\begin{document}
☹☺☻☼
\end{document}

That does not compile, rather the error messages say:

Package inputenc Error: Unicode char ☹ (U+2639)
Package inputenc Error: Unicode char ☺ (U+263A)
Package inputenc Error: Unicode char ☻ (U+263B)
Package inputenc Error: Unicode char ☼ (U+263C)

My thought was that LyX should not replace \frownie with ☹ unless the
document would otherwise compile correctly.

I had not too much understanding of Unicode when I started to look
into this.  I found several ways to deal with this. The easiest is to
simply put "\frownie" and "\smiliey" back in the document. So far as I
can see, there's no real benefit to me that those things are entered
as ☹ symbol. I can understand, however, that when authors need to
enter letters with accents, then they have a more pressing need to
make this work.

I wrote out ways this can be corrected, with preamble adjustments
using either DeclareUnicodeCharacter or newunicodechar, on
Stackexchange 
(https://tex.stackexchange.com/questions/452494/lost-my-smilies-it-is-worth-the-effort-to-make-unicode-work),
we'll see what they say about it. I'm predicting the answer will be
"learn the ins and outs of xelatex".

But I do think it is a LyX bug that Unicode symbols are introduced but
can't be compiled.

I'm interested to hear your ideas.

pj

-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.


customize \code output in Logical Markup module?

2017-05-19 Thread Paul Johnson
Can you help me make output of \code{} in inline logical markup look
similar to the listings output for code sections?  I'd like to do this
in a Beamer slideshow.

The \code{} result is typewriter font, but not colorized like the
listings output I'm using.

I found out here:

https://tex.stackexchange.com/questions/28179/colored-background-in-inline-listings

that I can insert

\usepackage{realbox}
\definecolor{light-gray}{gray}{0.95}

in the preamble and get more-or less what I want from \Colorbox, with
ERT like this

\Colorbox{light-gray}{\lstinline{A=@#$%^&*()1}}

I don't want to manually type that (or something like it) every place
where I've used the LyX right-click code logical markup. Would you
tell me if I can redefine \code{} in preamble?


-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.


Re: Miktex package management inadequate, want to transition to TexLive.

2016-11-02 Thread Paul Johnson
As long as the MikTeX server is awake and answering, you can rest easy.

It just so happens that whenever I need MikTeX to work for a workshop,
the server gets turned off/taken down.

In the design of MikTeX, the package installer cannot retrieve package
from other CTAN servers without first checking with that one MikTeX
server.  If anybody thinks that I'm not correct, please speak up.  The
links I provided on the original post explain that is the case.

Over the years, we have had a lot of hassles with MikTeX and
inabilility to get packages for new LaTeX files.  Its just better to
have all of them with TeXLive.  If a user walks in with a file that
depends on 10 classes I've never heard of, it is more likely to work
now.

The only part I've not worked out yet is spell checking and using the
Thesaurus.  But I will try harder later.

On Wed, Nov 2, 2016 at 12:25 PM, Roberto Fanciulli <far...@gmail.com> wrote:
> I have uninstalled MiKTeX 2.9 and later also LyX 2.2.2.
> Then I reinstalled MiKTeX2.9 and updated packages.
> Finally I reinstalled LyX2.2.2.
> Currently it seems that everything works.
>
> (o.s.: Windows 10)
> Roberto
>
> 2016-11-02 6:24 GMT+01:00 UD <ehud.kap...@gmail.com>:
>>
>> On 11/02/2016 05:56 AM, Paul Johnson wrote:
>>>
>>>
>>> It worked once. Failed next two times.
>>>
>>> I'm putting it in the rearview mirror.
>>>
>>> pj
>>> Paul Johnson
>>> http://pj.freefaculty.org
>>>
>>>
>>> On Oct 29, 2016 2:27 PM, "Andrew Parsloe" <apars...@clear.net.nz
>>> <mailto:apars...@clear.net.nz>> wrote:
>>>
>>>
>>>
>>> On 29/10/2016 7:35 p.m., CarLaTeX wrote:
>>>
>>>
>>> 2016-10-29 8:09 GMT+02:00 Paul Johnson <pauljoh...@gmail.com
>>> <mailto:pauljoh...@gmail.com>
>>> <mailto:pauljoh...@gmail.com <mailto:pauljoh...@gmail.com>>>:
>>>
>>> I wonder if Windows users see this problem in MikTeX
>>> regularly. I'm a
>>> Linux user, but I try to help the Windows students around
>>> here.
>>>
>>> [...]
>>>
>>>
>>> --
>>> Paul E. Johnson http://pj.freefaculty.org
>>> Director, Center for Research Methods and Data Analysis
>>> http://crmda.ku.edu
>>>
>>> To write to me directly, please address me at pauljohn at
>>> ku.edu <http://ku.edu>
>>> <http://ku.edu>.
>>>
>>>
>>> I'm using LyX (various version, now 2.2.2) with MiKTeX (2.9)
>>> on Windows
>>> (10) since April 2015 with no problems.
>>> Today the site is down but you should only have to wait few
>>> hours.
>>> Bye!
>>>
>>> Carla
>>>
>>>
>>> Yesterday, like others, I couldn't update MiKTeX. This morning
>>> (8.20 a.m. New Zealand time) everything proceeded smoothly.
>>>
>>> Andrew
>>>
>>> ---
>>> This email has been checked for viruses by Avast antivirus software.
>>> https://www.avast.com/antivirus <https://www.avast.com/antivirus>
>>>
>>
>> I used to use MikTex under Windows, but several years ago, when I switched
>> to Linux, which uses TexLive, I switched to TexLive under Windows too, and
>> it has worked very well.  I liked the MikTex package manager better than
>> TLMGR, but it was a small price to pay for uniformity, stability and
>> continued support.
>>
>> Ehud Kaplan
>>
>> --
>>
>



-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.


Re: Miktex package management inadequate, want to transition to TexLive.

2016-11-01 Thread Paul Johnson
It worked once. Failed next two times.

I'm putting it in the rearview mirror.

pj
Paul Johnson
http://pj.freefaculty.org

On Oct 29, 2016 2:27 PM, "Andrew Parsloe" <apars...@clear.net.nz> wrote:

>
>
> On 29/10/2016 7:35 p.m., CarLaTeX wrote:
>
>>
>> 2016-10-29 8:09 GMT+02:00 Paul Johnson <pauljoh...@gmail.com
>> <mailto:pauljoh...@gmail.com>>:
>>
>> I wonder if Windows users see this problem in MikTeX regularly. I'm a
>> Linux user, but I try to help the Windows students around here.
>>
>> [...]
>
>>
>> --
>> Paul E. Johnson http://pj.freefaculty.org
>> Director, Center for Research Methods and Data Analysis
>> http://crmda.ku.edu
>>
>> To write to me directly, please address me at pauljohn at ku.edu
>> <http://ku.edu>.
>>
>>
>> I'm using LyX (various version, now 2.2.2) with MiKTeX (2.9) on Windows
>> (10) since April 2015 with no problems.
>> Today the site is down but you should only have to wait few hours.
>> Bye!
>>
>> Carla
>>
>
> Yesterday, like others, I couldn't update MiKTeX. This morning (8.20 a.m.
> New Zealand time) everything proceeded smoothly.
>
> Andrew
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
>


Re: Miktex package management inadequate, want to transition to TexLive.

2016-10-29 Thread Paul Johnson
MikTeX server intermittent this morning. It worked on one computer, fails
on other 3.  Suspect that server is just flaky.

There are good arguments for installing TexLive.  Its maintained by a
community, not just one person, being the most important among them.  Plus,
with TexLive we are consistent across platforms, my Linux workstation and
the Macintosh ones seem same.

On the machines where I've done both installs, it appears to me that pdf
compile with TexLive is quite a bit faster. Have no idea why, but others
have made same claim.

TexLive is a surprisingly slow install. Even if you put the whole iso on
disk, and disconnect entirely from the internet, the install takes 1 hour.
I've done it on 3 machines during the night.  At first I thought it was
slow because it was trying to pull updates or something, but no.  It is
just a slow install.

Aside from that, it appears fine to me.  Make sure texlive/bin/win32 is put
in the path, all can work. Previously installed LyX still looks for MikTex,
but you can make sure LyX knows is supposed to use TeXLive if you remove
LyX and re-install.  It will ask which LaTeX to use.  Seems like we ought
to have a post-install config setting there, but don't know how. (PS:
don't use the LyX Bundle for LyX).

Only puzzle I did not work out so far is how to get spell check and other
pieces from LyX bundle to work with LyX installed separately.   If the LyX
website pointed at the installers for spellcheckers and JabRef and whatever
comes in bundle, with some install tips, it would be nice.

Since I don't do Windows much, I ask a lot of stupid questions


On Sat, Oct 29, 2016 at 11:46 AM, Roberto Fanciulli <far...@gmail.com>
wrote:

> By several days the Paul Johnson problem is also my problem and I do not find
> a solution.
> I reinstalled MiKTeX many times, but MiKTeX Package, and MiKTeX Update do
> not work (they do not find any package repository).
>
> [image: Immagine incorporata 1]
> The two alternatives that have remained are:
> 1) uninstall MiKTeX, uninstall and reinstall LyX2.2.2 bundle version (LyX-
> 222-Bundle-2.exe) hoping for a successful installation of MiKTeX too;
> 2) setting LyX to TeXLive and forget MiKTeX.
>
>
> Tips for other less drastic solutions already tested?
>
> (My system: LyX2.2.2 with MiKTeX2.9 on Windows 10)
>
> Roberto
>
> 2016-10-29 8:35 GMT+02:00 CarLaTeX <carlatex...@gmail.com>:
>
>>
>> 2016-10-29 8:09 GMT+02:00 Paul Johnson <pauljoh...@gmail.com>:
>>
>>> I wonder if Windows users see this problem in MikTeX regularly. I'm a
>>> Linux user, but I try to help the Windows students around here.
>>>
>>> I've done several LyX installs in Windows systems while preparing for
>>> a workshop this week.  I think the LyX-2.2.2 installation of MikTeX
>>> has some improvements. It pulls in quite a few more packages when it
>>> first starts.
>>>
>>> Even though the LyX bundle installer works OK, I'm frustrated with
>>> MikTeX. Today, I experience the problem that my MikTeX can't install
>>> new packages on any of these systems. Others have described it
>>> http://tex.stackexchange.com/questions/251242/unable-to-conn
>>> ect-to-repository-in-miktex-2-9.
>>>
>>> MikTeX cannot retrieve the list of repositories from the central
>>> MikTeX server.   Even if the package-server I want to use is online,
>>> the MikTeX routine fails. This has me angry enough now to use TexLive
>>> instead.
>>>
>>> TexLive  is a big download, but it seems to come with all of the
>>> packages, no problem. It does not have the on-the-fly install, but
>>> maybe I don't care.
>>>
>>> I don't want to remove MikTex yet, I don't think I should have to.
>>>
>>> I had a little trouble getting LyX to use TexLive, however.  I thought
>>> it should be sufficient to put the TexLive bin\win32 folder in the
>>> path ahead of MikTex\bin, but that was not sufficient.
>>>
>>> In LyX itself, the preferences have a path variable in which I must
>>> delete MikTeX and replace it with TeXLive.
>>>
>>> This seems to work within my user account.
>>>
>>> I'd like to make this change in LyX on a system-wide basis, so that
>>> all new users who try LyX will get TeXLive. Know what I mean?
>>>
>>> Before I tell students who maintain their own PCs, I wonder if there
>>> are problems ahead. Do you have some ideas?
>>>
>>> --
>>> Paul E. Johnson   http://pj.freefaculty.org
>>> Director, Center for Research Methods and Data Analysis
>>> http://crmda.ku.edu
>>>
>>> To write to me directly, please address me at pauljohn at ku.edu.
>>>
>>
>> I'm using LyX (various version, now 2.2.2) with MiKTeX (2.9) on Windows
>> (10) since April 2015 with no problems.
>> Today the site is down but you should only have to wait few hours.
>> Bye!
>>
>> Carla
>>
>
>


-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.


Miktex package management inadequate, want to transition to TexLive.

2016-10-29 Thread Paul Johnson
I wonder if Windows users see this problem in MikTeX regularly. I'm a
Linux user, but I try to help the Windows students around here.

I've done several LyX installs in Windows systems while preparing for
a workshop this week.  I think the LyX-2.2.2 installation of MikTeX
has some improvements. It pulls in quite a few more packages when it
first starts.

Even though the LyX bundle installer works OK, I'm frustrated with
MikTeX. Today, I experience the problem that my MikTeX can't install
new packages on any of these systems. Others have described it
http://tex.stackexchange.com/questions/251242/unable-to-connect-to-repository-in-miktex-2-9.

MikTeX cannot retrieve the list of repositories from the central
MikTeX server.   Even if the package-server I want to use is online,
the MikTeX routine fails. This has me angry enough now to use TexLive
instead.

TexLive  is a big download, but it seems to come with all of the
packages, no problem. It does not have the on-the-fly install, but
maybe I don't care.

I don't want to remove MikTex yet, I don't think I should have to.

I had a little trouble getting LyX to use TexLive, however.  I thought
it should be sufficient to put the TexLive bin\win32 folder in the
path ahead of MikTex\bin, but that was not sufficient.

In LyX itself, the preferences have a path variable in which I must
delete MikTeX and replace it with TeXLive.

This seems to work within my user account.

I'd like to make this change in LyX on a system-wide basis, so that
all new users who try LyX will get TeXLive. Know what I mean?

Before I tell students who maintain their own PCs, I wonder if there
are problems ahead. Do you have some ideas?

-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.


Adobe PDF viewer in Windows stopped previewing

2016-02-15 Thread Paul Johnson
We have a lab of windows machines that did work fine with LyX and the
free Adobe pdf viewer.  Today, we notice there is an update so that
LyX View causes the PDF to build, then Adobe pops open, but it does
not show the document, it just shows a list of recently viewed PDF.

We are allowed to File -> export (pdflatex) from LyX and view the
file, so I'm sure the pdf system still works.

I'm not surprised this comes up, as the Adobe pdf viewer has become
more and more cumbersome, bothering us to use their cloud storage and
so forth.

I've looked and find same has happened to others over time, and
suggestion seems to be "install Sumatra pdf viewer".  In our lab, the
problem is that the system admins refuse to install things except
during the twice-per-year update period, so that's not a great option.

I was hoping there is some setting or registry hack that will make
this work again.

Ideas?

We have
LyX version 2.1.3
Adobe Acrobat Reader DC (15.010.20056)

pj
-- 
Paul E. Johnson
Professor, Political ScienceDirector
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org  http://crmda.ku.edu


Re: Re: esint.sty in RedHat/Centos 7. Where? Why omitted?

2015-04-07 Thread Paul Johnson
I think I've got to bottom of esint problem on Centos/RedHat.

There simply is no esint.sty available.

#  yum install 'tex(esint.sty)'
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00
epel/x86_64/metalink |  14 kB 00:00
extras   | 3.4 kB 00:00
pjku | 2.9 kB 00:00
updates  | 3.4 kB 00:00
Loading mirror speeds from cached hostfile
 * base: mirror.team-cymru.org
 * epel: kdeforge2.unl.edu
 * extras: bay.uchicago.edu
 * updates: mirror.team-cymru.org
No package tex(esint.sty) available.
Error: Nothing to do

The RedHat/Centos packagers did not include esint, on the grounds that
the particular integrals provided there are probably available
elsewhere. On Fedora, however, the full TexLive collection includes
about 3 times as much stuff, and one of the packages is the one we
need,

# rpm -qa | grep esint
texlive-esint-type1-svn15878.0-1.1EL7.noarch
texlive-esint-svn15878.1.1-1.1EL7.noarch

I got the source packaging from Fedora and built the whole TexLive
snapshot on EL7. I couldn't believe my eyes. They've split TexLive
into 5500 packages. You can see, I put them in the repo I maintain.

http://pj.freefaculty.org/EL

I did install the esint and apa6 packages, but in this test system, I
left the TeXLive that was delivered with Centos in place. LyX 2.1.2
works well in this Centos system.

I believe this may not be entirely necessary, however.  The esint
package is not truly required to compile an elementary document.
However, inside LyX, there is a switch under document / settings that
says use esint automatically. I think that doesn't work properly, it
tries to use esint even on an
ordinary integral.  If we change esint to do not load then the basic
document compiles.

I see a few other wrinkles in Centos with documents that have
bibliographies (references filled with (?) but LyX does not throw an
error). If I figure those things out, I'll let you know.


On Thu, Mar 26, 2015 at 7:12 AM, José Matos jama...@lyx.org wrote:
 On Wednesday 25 March 2015 12:51:53 Paul Johnson wrote:
 Hello, Jose.

 Am I typing this incorrectly?

 # yum install tex(esint.sty)
 bash: syntax error near unexpected token `('


 Could you try

 # yum install 'tex(esint.sty)'

 that idea is to avoid having bash interpret the parenthesis. In my case I get:

 # yum install 'tex(esint.sty)'
 ...
 Package 4:texlive-esint-svn15878.1.1-6.fc22.noarch already installed and 
 latest version
 Nothing to do

 Regards,
 --
 José Abílio



-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


Re: Re: esint.sty in RedHat/Centos 7. Where? Why omitted?

2015-04-07 Thread Paul Johnson
I think I've got to bottom of esint problem on Centos/RedHat.

There simply is no esint.sty available.

#  yum install 'tex(esint.sty)'
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00
epel/x86_64/metalink |  14 kB 00:00
extras   | 3.4 kB 00:00
pjku | 2.9 kB 00:00
updates  | 3.4 kB 00:00
Loading mirror speeds from cached hostfile
 * base: mirror.team-cymru.org
 * epel: kdeforge2.unl.edu
 * extras: bay.uchicago.edu
 * updates: mirror.team-cymru.org
No package tex(esint.sty) available.
Error: Nothing to do

The RedHat/Centos packagers did not include esint, on the grounds that
the particular integrals provided there are probably available
elsewhere. On Fedora, however, the full TexLive collection includes
about 3 times as much stuff, and one of the packages is the one we
need,

# rpm -qa | grep esint
texlive-esint-type1-svn15878.0-1.1EL7.noarch
texlive-esint-svn15878.1.1-1.1EL7.noarch

I got the source packaging from Fedora and built the whole TexLive
snapshot on EL7. I couldn't believe my eyes. They've split TexLive
into 5500 packages. You can see, I put them in the repo I maintain.

http://pj.freefaculty.org/EL

I did install the esint and apa6 packages, but in this test system, I
left the TeXLive that was delivered with Centos in place. LyX 2.1.2
works well in this Centos system.

I believe this may not be entirely necessary, however.  The esint
package is not truly required to compile an elementary document.
However, inside LyX, there is a switch under document / settings that
says use esint automatically. I think that doesn't work properly, it
tries to use esint even on an
ordinary integral.  If we change esint to do not load then the basic
document compiles.

I see a few other wrinkles in Centos with documents that have
bibliographies (references filled with (?) but LyX does not throw an
error). If I figure those things out, I'll let you know.


On Thu, Mar 26, 2015 at 7:12 AM, José Matos jama...@lyx.org wrote:
 On Wednesday 25 March 2015 12:51:53 Paul Johnson wrote:
 Hello, Jose.

 Am I typing this incorrectly?

 # yum install tex(esint.sty)
 bash: syntax error near unexpected token `('


 Could you try

 # yum install 'tex(esint.sty)'

 that idea is to avoid having bash interpret the parenthesis. In my case I get:

 # yum install 'tex(esint.sty)'
 ...
 Package 4:texlive-esint-svn15878.1.1-6.fc22.noarch already installed and 
 latest version
 Nothing to do

 Regards,
 --
 José Abílio



-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


Re: Re: esint.sty in RedHat/Centos 7. Where? Why omitted?

2015-04-07 Thread Paul Johnson
I think I've got to bottom of esint problem on Centos/RedHat.

There simply is no esint.sty available.

#  yum install 'tex(esint.sty)'
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00
epel/x86_64/metalink |  14 kB 00:00
extras   | 3.4 kB 00:00
pjku | 2.9 kB 00:00
updates  | 3.4 kB 00:00
Loading mirror speeds from cached hostfile
 * base: mirror.team-cymru.org
 * epel: kdeforge2.unl.edu
 * extras: bay.uchicago.edu
 * updates: mirror.team-cymru.org
No package tex(esint.sty) available.
Error: Nothing to do

The RedHat/Centos packagers did not include esint, on the grounds that
the particular integrals provided there are probably available
elsewhere. On Fedora, however, the full TexLive collection includes
about 3 times as much stuff, and one of the packages is the one we
need,

# rpm -qa | grep esint
texlive-esint-type1-svn15878.0-1.1EL7.noarch
texlive-esint-svn15878.1.1-1.1EL7.noarch

I got the source packaging from Fedora and built the whole TexLive
snapshot on EL7. I couldn't believe my eyes. They've split TexLive
into 5500 packages. You can see, I put them in the repo I maintain.

http://pj.freefaculty.org/EL

I did install the esint and apa6 packages, but in this test system, I
left the TeXLive that was delivered with Centos in place. LyX 2.1.2
works well in this Centos system.

I believe this may not be entirely necessary, however.  The esint
package is not truly required to compile an elementary document.
However, inside LyX, there is a switch under document / settings that
says use esint automatically. I think that doesn't work properly, it
tries to use esint even on an
ordinary integral.  If we change esint to "do not load" then the basic
document compiles.

I see a few other wrinkles in Centos with documents that have
bibliographies (references filled with (?) but LyX does not throw an
error). If I figure those things out, I'll let you know.


On Thu, Mar 26, 2015 at 7:12 AM, José Matos <jama...@lyx.org> wrote:
> On Wednesday 25 March 2015 12:51:53 Paul Johnson wrote:
>> Hello, Jose.
>>
>> Am I typing this incorrectly?
>>
>> # yum install tex(esint.sty)
>> bash: syntax error near unexpected token `('
>>
>
> Could you try
>
> # yum install 'tex(esint.sty)'
>
> that idea is to avoid having bash interpret the parenthesis. In my case I get:
>
> # yum install 'tex(esint.sty)'
> ...
> Package 4:texlive-esint-svn15878.1.1-6.fc22.noarch already installed and 
> latest version
> Nothing to do
>
> Regards,
> --
> José Abílio



-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


Re: esint.sty in RedHat/Centos 7. Where? Why omitted?

2015-03-25 Thread Paul Johnson
On Tue, Mar 24, 2015 at 6:53 AM, José Matos jama...@lyx.org wrote:
 On Saturday 21 March 2015 22:38:09 Paul Johnson wrote:
 Can somebody explain the problems surrounding packaging of esint.sty?

 Note that I am writing this from Fedora, so I am not sure that all applies to 
 RHEL/CentOS (although I suspect it does).

 Since the tex installed comes from texlive that means that all the (la)tex 
 packages have been split into its package.

 If you want to install something like the previous mega packages, there are 
 several schemes available:

 $ yum list texlive-scheme*
 .
 texlive-scheme-basic.noarch
 texlive-scheme-context.noarch
 texlive-scheme-full.noarch
 texlive-scheme-gust.noarch
 texlive-scheme-medium.noarch
 texlive-scheme-minimal.noarch
 texlive-scheme-small.noarch
 texlive-scheme-tetex.noarch
 texlive-scheme-xml.noarch

 If you install texlive-scheme full you will get all the packages. Medium 
 should be a nice compromise.

 On a fresh install of RHEL 7, I find LyX 2.1 works well enough, except
 the old problem about missing esint.sty re-appears. Any documents with
 integrals won't compile because esint.sty is missing.

 Could you try:

 # yum install tex(esint.sty)

 And see if this works?


Hello, Jose.

Am I typing this incorrectly?

# yum install tex(esint.sty)
bash: syntax error near unexpected token `('

I searched like this:

# yum provides esint.sty
Loaded plugins: fastestmirror, langpacks
base
  | 3.6 kB  00:00:00
epel/x86_64/metalink
  |  15 kB  00:00:00
epel
  | 4.4 kB  00:00:00
extras
  | 3.4 kB  00:00:00
pjku
  | 2.9 kB  00:00:00
updates
  | 3.4 kB  00:00:00
epel/x86_64/primary_db
  | 4.0 MB  00:00:00
(1/2): epel/x86_64/updateinfo
  | 317 kB  00:00:00
(2/2): epel/x86_64/pkgtags
  | 1.4 MB  00:00:00
Loading mirror speeds from cached hostfile
 * base: mirror.trouble-free.net
 * epel: mirror.oss.ou.edu
 * extras: centos-mirror.jchost.net
 * updates: mirrors.centarra.com
epel/x86_64/filelists_db
  | 6.1 MB  00:00:00
updates/7/x86_64/filelists_db
  | 3.9 MB  00:00:00
No matches found

There is a separate package for this in Fedora, texlive-esint, but not
in any EL7 repos I could find.

http://koji.fedoraproject.org/koji/rpminfo?rpmID=5907414

I'd like to build my own version of that RPM, but apparently I have to
rebuild the whole texlive package for Fedora in order to do that.  I
made the mistake once of doing that in the RHEL 5 era, may do again.

I'll keep trying, will let you know

pj



 Note that this will work for all other .sty file.

 In Ubuntu systems there is no similar problem.  I find esint.sty is
 included in a package texlive-latex-extra.  I'm not finding it in
 similar on RedHat, but I have to admit that their new improved
 package management system is somewhat unhelpful.

 I searched long enough to see there is some peculiar history with
 packaging of esint.sty. I DO find the Fedora package in rpmfind.net
 texlive-esint-  I will rebuild that on the EL7 systems if I have
 to. But I can't see why this is necessary at all.

 pj

 I guess that there is a missing requirement for texlive packages in 
 Fedora/EPEL, if that happens again please report it here or on Redhat 
 bugzilla.

 That type of issues in on my TODO list to determine a minimum list of 
 dependencies for the lyx rpms on Fedora/EPEL.

 Regards,
 --
 José Abílio



-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


Re: esint.sty in RedHat/Centos 7. Where? Why omitted?

2015-03-25 Thread Paul Johnson
On Tue, Mar 24, 2015 at 6:53 AM, José Matos jama...@lyx.org wrote:
 On Saturday 21 March 2015 22:38:09 Paul Johnson wrote:
 Can somebody explain the problems surrounding packaging of esint.sty?

 Note that I am writing this from Fedora, so I am not sure that all applies to 
 RHEL/CentOS (although I suspect it does).

 Since the tex installed comes from texlive that means that all the (la)tex 
 packages have been split into its package.

 If you want to install something like the previous mega packages, there are 
 several schemes available:

 $ yum list texlive-scheme*
 .
 texlive-scheme-basic.noarch
 texlive-scheme-context.noarch
 texlive-scheme-full.noarch
 texlive-scheme-gust.noarch
 texlive-scheme-medium.noarch
 texlive-scheme-minimal.noarch
 texlive-scheme-small.noarch
 texlive-scheme-tetex.noarch
 texlive-scheme-xml.noarch

 If you install texlive-scheme full you will get all the packages. Medium 
 should be a nice compromise.

 On a fresh install of RHEL 7, I find LyX 2.1 works well enough, except
 the old problem about missing esint.sty re-appears. Any documents with
 integrals won't compile because esint.sty is missing.

 Could you try:

 # yum install tex(esint.sty)

 And see if this works?


Hello, Jose.

Am I typing this incorrectly?

# yum install tex(esint.sty)
bash: syntax error near unexpected token `('

I searched like this:

# yum provides esint.sty
Loaded plugins: fastestmirror, langpacks
base
  | 3.6 kB  00:00:00
epel/x86_64/metalink
  |  15 kB  00:00:00
epel
  | 4.4 kB  00:00:00
extras
  | 3.4 kB  00:00:00
pjku
  | 2.9 kB  00:00:00
updates
  | 3.4 kB  00:00:00
epel/x86_64/primary_db
  | 4.0 MB  00:00:00
(1/2): epel/x86_64/updateinfo
  | 317 kB  00:00:00
(2/2): epel/x86_64/pkgtags
  | 1.4 MB  00:00:00
Loading mirror speeds from cached hostfile
 * base: mirror.trouble-free.net
 * epel: mirror.oss.ou.edu
 * extras: centos-mirror.jchost.net
 * updates: mirrors.centarra.com
epel/x86_64/filelists_db
  | 6.1 MB  00:00:00
updates/7/x86_64/filelists_db
  | 3.9 MB  00:00:00
No matches found

There is a separate package for this in Fedora, texlive-esint, but not
in any EL7 repos I could find.

http://koji.fedoraproject.org/koji/rpminfo?rpmID=5907414

I'd like to build my own version of that RPM, but apparently I have to
rebuild the whole texlive package for Fedora in order to do that.  I
made the mistake once of doing that in the RHEL 5 era, may do again.

I'll keep trying, will let you know

pj



 Note that this will work for all other .sty file.

 In Ubuntu systems there is no similar problem.  I find esint.sty is
 included in a package texlive-latex-extra.  I'm not finding it in
 similar on RedHat, but I have to admit that their new improved
 package management system is somewhat unhelpful.

 I searched long enough to see there is some peculiar history with
 packaging of esint.sty. I DO find the Fedora package in rpmfind.net
 texlive-esint-  I will rebuild that on the EL7 systems if I have
 to. But I can't see why this is necessary at all.

 pj

 I guess that there is a missing requirement for texlive packages in 
 Fedora/EPEL, if that happens again please report it here or on Redhat 
 bugzilla.

 That type of issues in on my TODO list to determine a minimum list of 
 dependencies for the lyx rpms on Fedora/EPEL.

 Regards,
 --
 José Abílio



-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


Re: esint.sty in RedHat/Centos 7. Where? Why omitted?

2015-03-25 Thread Paul Johnson
On Tue, Mar 24, 2015 at 6:53 AM, José Matos <jama...@lyx.org> wrote:
> On Saturday 21 March 2015 22:38:09 Paul Johnson wrote:
>> Can somebody explain the problems surrounding packaging of esint.sty?
>
> Note that I am writing this from Fedora, so I am not sure that all applies to 
> RHEL/CentOS (although I suspect it does).
>
> Since the tex installed comes from texlive that means that all the (la)tex 
> packages have been split into its package.
>
> If you want to install something like the previous mega packages, there are 
> several schemes available:
>
> $ yum list texlive-scheme*
> .
> texlive-scheme-basic.noarch
> texlive-scheme-context.noarch
> texlive-scheme-full.noarch
> texlive-scheme-gust.noarch
> texlive-scheme-medium.noarch
> texlive-scheme-minimal.noarch
> texlive-scheme-small.noarch
> texlive-scheme-tetex.noarch
> texlive-scheme-xml.noarch
>
> If you install texlive-scheme full you will get all the packages. Medium 
> should be a nice compromise.
>
>> On a fresh install of RHEL 7, I find LyX 2.1 works well enough, except
>> the old problem about missing esint.sty re-appears. Any documents with
>> integrals won't compile because esint.sty is missing.
>
> Could you try:
>
> # yum install tex(esint.sty)
>
> And see if this works?
>

Hello, Jose.

Am I typing this incorrectly?

# yum install tex(esint.sty)
bash: syntax error near unexpected token `('

I searched like this:

# yum provides esint.sty
Loaded plugins: fastestmirror, langpacks
base
  | 3.6 kB  00:00:00
epel/x86_64/metalink
  |  15 kB  00:00:00
epel
  | 4.4 kB  00:00:00
extras
  | 3.4 kB  00:00:00
pjku
  | 2.9 kB  00:00:00
updates
  | 3.4 kB  00:00:00
epel/x86_64/primary_db
  | 4.0 MB  00:00:00
(1/2): epel/x86_64/updateinfo
  | 317 kB  00:00:00
(2/2): epel/x86_64/pkgtags
  | 1.4 MB  00:00:00
Loading mirror speeds from cached hostfile
 * base: mirror.trouble-free.net
 * epel: mirror.oss.ou.edu
 * extras: centos-mirror.jchost.net
 * updates: mirrors.centarra.com
epel/x86_64/filelists_db
  | 6.1 MB  00:00:00
updates/7/x86_64/filelists_db
  | 3.9 MB  00:00:00
No matches found

There is a separate package for this in Fedora, texlive-esint, but not
in any EL7 repos I could find.

http://koji.fedoraproject.org/koji/rpminfo?rpmID=5907414

I'd like to build my own version of that RPM, but apparently I have to
rebuild the whole texlive package for Fedora in order to do that.  I
made the mistake once of doing that in the RHEL 5 era, may do again.

I'll keep trying, will let you know

pj



> Note that this will work for all other .sty file.
>
>> In Ubuntu systems there is no similar problem.  I find esint.sty is
>> included in a package texlive-latex-extra.  I'm not finding it in
>> similar on RedHat, but I have to admit that their "new improved"
>> package management system is somewhat unhelpful.
>>
>> I searched long enough to see there is some peculiar history with
>> packaging of esint.sty. I DO find the Fedora package in rpmfind.net
>> "texlive-esint-...".  I will rebuild that on the EL7 systems if I have
>> to. But I can't see why this is necessary at all.
>>
>> pj
>
> I guess that there is a missing requirement for texlive packages in 
> Fedora/EPEL, if that happens again please report it here or on Redhat 
> bugzilla.
>
> That type of issues in on my TODO list to determine a minimum list of 
> dependencies for the lyx rpms on Fedora/EPEL.
>
> Regards,
> --
> José Abílio



-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


esint.sty in RedHat/Centos 7. Where? Why omitted?

2015-03-21 Thread Paul Johnson
Can somebody explain the problems surrounding packaging of esint.sty?

On a fresh install of RHEL 7, I find LyX 2.1 works well enough, except
the old problem about missing esint.sty re-appears. Any documents with
integrals won't compile because esint.sty is missing.

In Ubuntu systems there is no similar problem.  I find esint.sty is
included in a package texlive-latex-extra.  I'm not finding it in
similar on RedHat, but I have to admit that their new improved
package management system is somewhat unhelpful.

I searched long enough to see there is some peculiar history with
packaging of esint.sty. I DO find the Fedora package in rpmfind.net
texlive-esint-  I will rebuild that on the EL7 systems if I have
to. But I can't see why this is necessary at all.

pj

-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


esint.sty in RedHat/Centos 7. Where? Why omitted?

2015-03-21 Thread Paul Johnson
Can somebody explain the problems surrounding packaging of esint.sty?

On a fresh install of RHEL 7, I find LyX 2.1 works well enough, except
the old problem about missing esint.sty re-appears. Any documents with
integrals won't compile because esint.sty is missing.

In Ubuntu systems there is no similar problem.  I find esint.sty is
included in a package texlive-latex-extra.  I'm not finding it in
similar on RedHat, but I have to admit that their new improved
package management system is somewhat unhelpful.

I searched long enough to see there is some peculiar history with
packaging of esint.sty. I DO find the Fedora package in rpmfind.net
texlive-esint-  I will rebuild that on the EL7 systems if I have
to. But I can't see why this is necessary at all.

pj

-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


esint.sty in RedHat/Centos 7. Where? Why omitted?

2015-03-21 Thread Paul Johnson
Can somebody explain the problems surrounding packaging of esint.sty?

On a fresh install of RHEL 7, I find LyX 2.1 works well enough, except
the old problem about missing esint.sty re-appears. Any documents with
integrals won't compile because esint.sty is missing.

In Ubuntu systems there is no similar problem.  I find esint.sty is
included in a package texlive-latex-extra.  I'm not finding it in
similar on RedHat, but I have to admit that their "new improved"
package management system is somewhat unhelpful.

I searched long enough to see there is some peculiar history with
packaging of esint.sty. I DO find the Fedora package in rpmfind.net
"texlive-esint-...".  I will rebuild that on the EL7 systems if I have
to. But I can't see why this is necessary at all.

pj

-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


new warning about missing cls file in LyX 2.0.7 annoying

2014-02-25 Thread Paul Johnson
Hey, developers. Can you make LyX look in the current working directory for
class files and turn off the warnings the pop up with LyX 2.0.7? Please?

For our doctoral students, I worked out a LyX example (LaTeX as well) and
it uses a custom class file. I have the cls file in the document directory.
Along with a biblio style and the document itself.  All was well until LyX
2.0.7

http://pj.freefaculty.org/guides/Computing-HOWTO/KU-thesis/

(I'd like advice on how to create a real LyX template that would conceal
the ERT in the LyX main document, but that's a different email I need to
write to you).

The PDF output passed the inspection of our administrators, and we have
started teaching students how to use this. So far, there have been 6
dissertations written with LyX at KU.

LyX 2.0.7 seems to have introduced a new warning that is driving the users
crazy. I had never seen it before this Saturday.  Maybe this is just in
Windows. Every time they open the LyX dissertation document, warnings pop
up over and over saying the kuthesis.cls file is not installed and they
cannot compile anything until they get it.

I say ignore those warnings, click OK 5 times, the document compiles, all
is well. But I'd rather not bother with the warnings.

I suppose you are thinking I should teach them LaTeX distribution
maintenance so they can install the cls file. I want to resist. It should
not be needed. Windows has made doing even the most basic user accountant
maintenance chores into a frustrating battle for users.  I don't think it
should be necessary, just make LyX take notice of the cls file in the
current working directory and move on.

Just to whine about Windows for a while, since I complain all the time
about it.  I spent Saturday afternoon installing LyX on student computers
and no two Windows systems behaved in the same way to the LyX install.  The
new installer works quite nicely, really, except for interaction with the
MikTeX package manager is still problematic.  It hangs the LyX process
completely on about 1/2 of the systems we tried. There can be a silent
failure of communication between LyX and MikTeX, I've never gotten to the
bottom of it.

I realize now the right thing is to just ask for help in preparing
instructions for MikTeX users. For people that have admin powers, here is
what to do. Maybe you double check me.

1. Find your MikTeX under c:\Program Files 

2. Find a subdirectory in there texmf\tex\latex. You might have to search
for it, but it is certainly under the main MikTeX folder

3. You could drop the kuthesis.cls file into that directory, but don't.
Please be tidy. Inside tex\latex, make a directory, call it whatever you
want. For example, we used misc or kuthesis.

But, wait, you are not done yet. MikTeX does not know about that file.

4. In the Start Menu, find the MikTeX settings (admin) program, there
should be a button on the first panel that says update FNDB, which will
have the same effect as texhash on Linux  mac systems. It indexes the
class  style files.  I found it difficult to describe to people how to
find this menu on Windows 8, so I said get a command box open as
administrator and run this at the prompt:

* initexmf --update-fndb*

The only tricky part there is getting the command box with admin powers. On
the start screen, type cmd and when it suggests a program, right click
the launcher, choose run as administrator.

5. Run Lyx, do Preferences - Reconfigure.  Hopefully, all is well after
you close LyX and re-start.

In my experience, this is the least error probe method, but it only works
for people who have admin powers to write in tex\latex.

We did not succeed on the system where the user could not be the
administrator. I realize there are documents that say a local Windows user
can set up a personalized LaTeX tree, but I've not seen it succeed with my
own eyes. We did try, adding a folder in the hidden AppData folder of the
user account

pj

-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


new warning about missing cls file in LyX 2.0.7 annoying

2014-02-25 Thread Paul Johnson
Hey, developers. Can you make LyX look in the current working directory for
class files and turn off the warnings the pop up with LyX 2.0.7? Please?

For our doctoral students, I worked out a LyX example (LaTeX as well) and
it uses a custom class file. I have the cls file in the document directory.
Along with a biblio style and the document itself.  All was well until LyX
2.0.7

http://pj.freefaculty.org/guides/Computing-HOWTO/KU-thesis/

(I'd like advice on how to create a real LyX template that would conceal
the ERT in the LyX main document, but that's a different email I need to
write to you).

The PDF output passed the inspection of our administrators, and we have
started teaching students how to use this. So far, there have been 6
dissertations written with LyX at KU.

LyX 2.0.7 seems to have introduced a new warning that is driving the users
crazy. I had never seen it before this Saturday.  Maybe this is just in
Windows. Every time they open the LyX dissertation document, warnings pop
up over and over saying the kuthesis.cls file is not installed and they
cannot compile anything until they get it.

I say ignore those warnings, click OK 5 times, the document compiles, all
is well. But I'd rather not bother with the warnings.

I suppose you are thinking I should teach them LaTeX distribution
maintenance so they can install the cls file. I want to resist. It should
not be needed. Windows has made doing even the most basic user accountant
maintenance chores into a frustrating battle for users.  I don't think it
should be necessary, just make LyX take notice of the cls file in the
current working directory and move on.

Just to whine about Windows for a while, since I complain all the time
about it.  I spent Saturday afternoon installing LyX on student computers
and no two Windows systems behaved in the same way to the LyX install.  The
new installer works quite nicely, really, except for interaction with the
MikTeX package manager is still problematic.  It hangs the LyX process
completely on about 1/2 of the systems we tried. There can be a silent
failure of communication between LyX and MikTeX, I've never gotten to the
bottom of it.

I realize now the right thing is to just ask for help in preparing
instructions for MikTeX users. For people that have admin powers, here is
what to do. Maybe you double check me.

1. Find your MikTeX under c:\Program Files 

2. Find a subdirectory in there texmf\tex\latex. You might have to search
for it, but it is certainly under the main MikTeX folder

3. You could drop the kuthesis.cls file into that directory, but don't.
Please be tidy. Inside tex\latex, make a directory, call it whatever you
want. For example, we used misc or kuthesis.

But, wait, you are not done yet. MikTeX does not know about that file.

4. In the Start Menu, find the MikTeX settings (admin) program, there
should be a button on the first panel that says update FNDB, which will
have the same effect as texhash on Linux  mac systems. It indexes the
class  style files.  I found it difficult to describe to people how to
find this menu on Windows 8, so I said get a command box open as
administrator and run this at the prompt:

* initexmf --update-fndb*

The only tricky part there is getting the command box with admin powers. On
the start screen, type cmd and when it suggests a program, right click
the launcher, choose run as administrator.

5. Run Lyx, do Preferences - Reconfigure.  Hopefully, all is well after
you close LyX and re-start.

In my experience, this is the least error probe method, but it only works
for people who have admin powers to write in tex\latex.

We did not succeed on the system where the user could not be the
administrator. I realize there are documents that say a local Windows user
can set up a personalized LaTeX tree, but I've not seen it succeed with my
own eyes. We did try, adding a folder in the hidden AppData folder of the
user account

pj

-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


new warning about missing cls file in LyX 2.0.7 annoying

2014-02-25 Thread Paul Johnson
Hey, developers. Can you make LyX look in the current working directory for
class files and turn off the warnings the pop up with LyX 2.0.7? Please?

For our doctoral students, I worked out a LyX example (LaTeX as well) and
it uses a custom class file. I have the cls file in the document directory.
Along with a biblio style and the document itself.  All was well until LyX
2.0.7

http://pj.freefaculty.org/guides/Computing-HOWTO/KU-thesis/

(I'd like advice on how to create a real LyX template that would conceal
the ERT in the LyX main document, but that's a different email I need to
write to you).

The PDF output passed the inspection of our administrators, and we have
started teaching students how to use this. So far, there have been 6
dissertations written with LyX at KU.

LyX 2.0.7 seems to have introduced a new warning that is driving the users
crazy. I had never seen it before this Saturday.  Maybe this is just in
Windows. Every time they open the LyX dissertation document, warnings pop
up over and over saying the kuthesis.cls file is not installed and they
cannot compile anything until they get it.

I say ignore those warnings, click OK 5 times, the document compiles, all
is well. But I'd rather not bother with the warnings.

I suppose you are thinking I should teach them LaTeX distribution
maintenance so they can install the cls file. I want to resist. It should
not be needed. Windows has made doing even the most basic user accountant
maintenance chores into a frustrating battle for users.  I don't think it
should be necessary, just make LyX take notice of the cls file in the
current working directory and move on.

Just to whine about Windows for a while, since I complain all the time
about it.  I spent Saturday afternoon installing LyX on student computers
and no two Windows systems behaved in the same way to the LyX install.  The
new installer works quite nicely, really, except for interaction with the
MikTeX package manager is still problematic.  It hangs the LyX process
completely on about 1/2 of the systems we tried. There can be a silent
failure of communication between LyX and MikTeX, I've never gotten to the
bottom of it.

I realize now the right thing is to just ask for help in preparing
instructions for MikTeX users. For people that have admin powers, here is
what to do. Maybe you double check me.

1. Find your MikTeX under c:\Program Files 

2. Find a subdirectory in there texmf\tex\latex. You might have to search
for it, but it is certainly under the main MikTeX folder

3. You could drop the kuthesis.cls file into that directory, but don't.
Please be tidy. Inside tex\latex, make a directory, call it whatever you
want. For example, we used "misc" or "kuthesis".

But, wait, you are not done yet. MikTeX does not know about that file.

4. In the Start Menu, find the MikTeX settings (admin) program, there
should be a button on the first panel that says "update FNDB", which will
have the same effect as "texhash" on Linux & mac systems. It indexes the
class & style files.  I found it difficult to describe to people how to
find this menu on Windows 8, so I said get a command box open as
administrator and run this at the prompt:

*> initexmf --update-fndb*

The only tricky part there is getting the command box with admin powers. On
the start screen, type "cmd" and when it suggests a program, right click
the launcher, choose run as administrator.

5. Run Lyx, do Preferences -> Reconfigure.  Hopefully, all is well after
you close LyX and re-start.

In my experience, this is the least error probe method, but it only works
for people who have admin powers to write in tex\latex.

We did not succeed on the system where the user could not be the
administrator. I realize there are documents that say a local Windows user
can set up a personalized LaTeX tree, but I've not seen it succeed with my
own eyes. We did try, adding a folder in the hidden AppData folder of the
user account

pj

-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


Re: bold matrix and vector. Need customization help.

2013-02-24 Thread Paul Johnson
On Sun, Feb 24, 2013 at 1:43 PM, Paul A. Rubin ru...@msu.edu wrote:
 I would use a math macro (section 22.2 of Help  Math). Create the macro
 somewhere near the front of the document (Insert  Math  Macro inside a math
 inset). If the symbol you are bolding is always 'x', define a macro with an 
 easy
 to type name (say \XX or \bX) that has no arguments and inserts the LaTeX code
 including the 'x'. If you have a few symbols, maybe do one such macro for 
 each.
 If you have a lot of symbols, create a macro (say \bv) that takes an argument
 and then hit every vector over the head with it (replace 'x' with '\bv{x}' 
 etc.).


Thanks. This is what I was trying before.  Alls well that ends well.
Your comment made me try harder to wade through  the documentation.
This is difficult to describe.

In case another user needs help with LyX macros, here is what I found out.

I hit the \foo := button to create my macro.

That opens a box with 3 parts. There's the macro definition, and two
boxes that say TeX and LyX.

When I start, I see like this
__
\newmacroname:  |_|  |_|
  TeX LyX

First, rename the thing on the left. It provides the starting
backslash, Don't add another one. Just replace the letters
newmacroname with vb or something nice.

Caution: the macroname must also include the argument definition.  You
must not simply type vb{#1}, even if that is what you really want.
If you type {#1}, LyX will show that in big blue letters. It is trying
to make #1 part of the name, rather than an argument.

LyX GUI has a tool to define the argument.  When you open the macro
editor, LyX pops up a menu similar to the math editor. Use that! In
there I choose the two green braces like {} with a popup append
argument. Hit that button, and the macro editor inserts {#1} at the
end of your macro name and it also plops a #1 into the TeX box.

The documentation says, The wanted formula is inserted in the first
blue box.  How it gets in there is the big mystery to me.

After I did the append argument button, the last two boxes look like this:
 _  _
|#1|  |_|
TeX LyX

It is a bit tricky to put the desired macros into the box on the left.
You can't just type them. My first try was to just type;

\bm{\mathrm{#1}}

Epic fail. Just as I could not type #1 in my macro name, I can't type
it here. Typing #1 leads to a big blue #1, where LyX thinks I mean the
math symbols are #1, not that I mean the argument placeholder.

So I have to go back and figure a way to enter my \bm{\mathrm{}} so
that wraps itself around the #1 that the append argument button
inserted for me.

I've not found a perfectly safe way to do that.  I highlight the #1 in
the little box, then what?

When I type in \bm, that disappears.  Then I type \mathrm, it
disappears.  Which to type first? My first guess was that I'd type
\mathrm as the inner argument, and then \bm.
That's backwards, It turns out.

I get a different result if I write the macro as \mathrm{\bm{}} or
\bm{\mathrm{}}, so getting the macro correct is a hit-and-miss
proposition.  With View Source turned on, I can see that LyX is
creating markup for my macro like this:

\global\long\def\vb#1{\mathrm{\bm{#1}}}

That has \mathrm and \bm backwards. After some fiddling, the view
source shows me this:

\global\long\def\vb#1{\bm{\mathrm{#1}}}

And then my \vb math macro seems to work as intended.

What goes in the little box called LyX? I don't know.

Maybe section 22.2 of Math begins with a too-difficult example.

pj


 Paul




-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


Re: bold matrix and vector. Need customization help.

2013-02-24 Thread Paul Johnson
On Sun, Feb 24, 2013 at 1:43 PM, Paul A. Rubin ru...@msu.edu wrote:
 I would use a math macro (section 22.2 of Help  Math). Create the macro
 somewhere near the front of the document (Insert  Math  Macro inside a math
 inset). If the symbol you are bolding is always 'x', define a macro with an 
 easy
 to type name (say \XX or \bX) that has no arguments and inserts the LaTeX code
 including the 'x'. If you have a few symbols, maybe do one such macro for 
 each.
 If you have a lot of symbols, create a macro (say \bv) that takes an argument
 and then hit every vector over the head with it (replace 'x' with '\bv{x}' 
 etc.).


Thanks. This is what I was trying before.  Alls well that ends well.
Your comment made me try harder to wade through  the documentation.
This is difficult to describe.

In case another user needs help with LyX macros, here is what I found out.

I hit the \foo := button to create my macro.

That opens a box with 3 parts. There's the macro definition, and two
boxes that say TeX and LyX.

When I start, I see like this
__
\newmacroname:  |_|  |_|
  TeX LyX

First, rename the thing on the left. It provides the starting
backslash, Don't add another one. Just replace the letters
newmacroname with vb or something nice.

Caution: the macroname must also include the argument definition.  You
must not simply type vb{#1}, even if that is what you really want.
If you type {#1}, LyX will show that in big blue letters. It is trying
to make #1 part of the name, rather than an argument.

LyX GUI has a tool to define the argument.  When you open the macro
editor, LyX pops up a menu similar to the math editor. Use that! In
there I choose the two green braces like {} with a popup append
argument. Hit that button, and the macro editor inserts {#1} at the
end of your macro name and it also plops a #1 into the TeX box.

The documentation says, The wanted formula is inserted in the first
blue box.  How it gets in there is the big mystery to me.

After I did the append argument button, the last two boxes look like this:
 _  _
|#1|  |_|
TeX LyX

It is a bit tricky to put the desired macros into the box on the left.
You can't just type them. My first try was to just type;

\bm{\mathrm{#1}}

Epic fail. Just as I could not type #1 in my macro name, I can't type
it here. Typing #1 leads to a big blue #1, where LyX thinks I mean the
math symbols are #1, not that I mean the argument placeholder.

So I have to go back and figure a way to enter my \bm{\mathrm{}} so
that wraps itself around the #1 that the append argument button
inserted for me.

I've not found a perfectly safe way to do that.  I highlight the #1 in
the little box, then what?

When I type in \bm, that disappears.  Then I type \mathrm, it
disappears.  Which to type first? My first guess was that I'd type
\mathrm as the inner argument, and then \bm.
That's backwards, It turns out.

I get a different result if I write the macro as \mathrm{\bm{}} or
\bm{\mathrm{}}, so getting the macro correct is a hit-and-miss
proposition.  With View Source turned on, I can see that LyX is
creating markup for my macro like this:

\global\long\def\vb#1{\mathrm{\bm{#1}}}

That has \mathrm and \bm backwards. After some fiddling, the view
source shows me this:

\global\long\def\vb#1{\bm{\mathrm{#1}}}

And then my \vb math macro seems to work as intended.

What goes in the little box called LyX? I don't know.

Maybe section 22.2 of Math begins with a too-difficult example.

pj


 Paul




-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


Re: bold matrix and vector. Need customization help.

2013-02-24 Thread Paul Johnson
On Sun, Feb 24, 2013 at 1:43 PM, Paul A. Rubin  wrote:
> I would use a math macro (section 22.2 of Help > Math). Create the macro
> somewhere near the front of the document (Insert > Math > Macro inside a math
> inset). If the symbol you are bolding is always 'x', define a macro with an 
> easy
> to type name (say \XX or \bX) that has no arguments and inserts the LaTeX code
> including the 'x'. If you have a few symbols, maybe do one such macro for 
> each.
> If you have a lot of symbols, create a macro (say \bv) that takes an argument
> and then hit every vector over the head with it (replace 'x' with '\bv{x}' 
> etc.).
>

Thanks. This is what I was trying before.  Alls well that ends well.
Your comment made me try harder to wade through  the documentation.
This is difficult to describe.

In case another user needs help with LyX macros, here is what I found out.

I hit the "\foo :=" button to create my macro.

That opens a box with 3 parts. There's the macro definition, and two
boxes that say TeX and LyX.

When I start, I see like this
__
\newmacroname:  |_|  |_|
  TeX LyX

First, rename the thing on the left. It provides the starting
backslash, Don't add another one. Just replace the letters
"newmacroname" with "vb" or something nice.

Caution: the macroname must also include the argument definition.  You
must not simply type "vb{#1}", even if that is what you really want.
If you type {#1}, LyX will show that in big blue letters. It is trying
to make "#1" part of the name, rather than an argument.

LyX GUI has a tool to define the argument.  When you open the macro
editor, LyX pops up a menu similar to the math editor. Use that! In
there I choose the two green braces like {} with a popup "append
argument". Hit that button, and the macro editor inserts {#1} at the
end of your macro name and it also plops a #1 into the "TeX" box.

The documentation says, "The wanted formula is inserted in the first
blue box."  How it gets in there is the big mystery to me.

After I did the "append argument" button, the last two boxes look like this:
 _  _
|#1|  |_|
TeX LyX

It is a bit tricky to put the desired macros into the box on the left.
You can't just type them. My first try was to just type;

\bm{\mathrm{#1}}

Epic fail. Just as I could not type #1 in my macro name, I can't type
it here. Typing #1 leads to a big blue #1, where LyX thinks I mean the
math symbols are #1, not that I mean the argument placeholder.

So I have to go back and figure a way to enter my \bm{\mathrm{}} so
that wraps itself around the #1 that the append argument button
inserted for me.

I've not found a perfectly safe way to do that.  I highlight the #1 in
the little box, then what?

When I type in \bm, that "disappears".  Then I type \mathrm, it
disappears.  Which to type first? My first guess was that I'd type
"\mathrm" as the inner argument, and then \bm.
That's backwards, It turns out.

I get a different result if I write the macro as \mathrm{\bm{}} or
\bm{\mathrm{}}, so getting the macro correct is a hit-and-miss
proposition.  With View Source turned on, I can see that LyX is
creating markup for my macro like this:

\global\long\def\vb#1{\mathrm{\bm{#1}}}

That has \mathrm and \bm backwards. After some fiddling, the view
source shows me this:

\global\long\def\vb#1{\bm{\mathrm{#1}}}

And then my \vb math macro seems to work as intended.

What goes in the little box called "LyX"? I don't know.

Maybe section 22.2 of Math begins with a too-difficult example.

pj


> Paul
>



-- 
Paul E. Johnson
Professor, Political Science  Assoc. Director
1541 Lilac Lane, Room 504  Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org   http://quant.ku.edu


helping Windows-user: document with lots of invalid characters

2012-04-07 Thread Paul Johnson
Greetings, LyX Land:

I've encouraged people to learn to use LyX, so when they run into trouble,
I feel responsible to try and help.  I use Linux to prepare documents, so
I have not experienced this problem before.  Many people still use Windows
and MS word and such, and so they do things that I would not expect, and
I am frustrated when these things arise.

I think the question I need to ask you is this: How can I find out what encoding
is currently used in the LyX document and what should it be to make it
work properly?
And how can I wrestle all of the characters into the correct encoding? Is there
no magic want to scan a lyx text file and change everything to a desired
encoding?

Here's the long version:

A student has LyX documents have lots and lots of
invalid characters.  I'm virtually certain most of these were inserted
into LyX by
a Copy  Paste from MS Word and/or Adobe Acrobat. In all of the places
where Word used an apostrophe, we seem to have an illegal character.  I
think quotation marks as well. Probably other characters. I'm pretty sure the
quotation marks and apostrophe problems result from Word's use of smart
quotes by default.

I wondered if we shouldn't open the LyX document in Emacs and then search
and replace the bad characters.   If I knew how to insert characters that LyX
would accept, I would do that.

I think she has a lot of the same trouble with her Bibliography, which
is a bib file
exported from Zotero.  I have had the problem in my own work that Zotero will
export unexpected encodings, such as the long dash in place of -- in
page numbers.
But in the student's document, all of the dates of the citations show
up as 
when LaTeX processes the document.

So, how to fix this up?

First, How should she configure Document Settings/ Language?

She's from South East Asia, but writing in English.  So perhaps her PC
has more international language features than I'm used to.  For LyX
language encoding, default is not good?  How about utf8?
Or one of the other unicode options.

Incidentally, LyX has the Font button to select XeTeX, supported fonts.
why doesn't that fix the encoding problem?  A font selection is not the same as
encoding?

Second, we need to force the document to use only the desired encoding.
It is a bit outside my comprehension that a document would allow one to
paste in an invalid character, but that's just me.

But isn't there a way to convert the characters in one command?

In Linux, I'd try a program like iconv, if I had a good guess for what
the from encoding should be.

I'd appreciate any advice that I can assemble and pass along to the
students.

I expect that this hassle will end up discouraging everybody and they
revert back to MS Word.


-- 
Paul E. Johnson
Professor, Political Science    Assoc. Director
1541 Lilac Lane, Room 504     Center for Research Methods
University of Kansas               University of Kansas
http://pj.freefaculty.org            http://quant.ku.edu


helping Windows-user: document with lots of invalid characters

2012-04-07 Thread Paul Johnson
Greetings, LyX Land:

I've encouraged people to learn to use LyX, so when they run into trouble,
I feel responsible to try and help.  I use Linux to prepare documents, so
I have not experienced this problem before.  Many people still use Windows
and MS word and such, and so they do things that I would not expect, and
I am frustrated when these things arise.

I think the question I need to ask you is this: How can I find out what encoding
is currently used in the LyX document and what should it be to make it
work properly?
And how can I wrestle all of the characters into the correct encoding? Is there
no magic want to scan a lyx text file and change everything to a desired
encoding?

Here's the long version:

A student has LyX documents have lots and lots of
invalid characters.  I'm virtually certain most of these were inserted
into LyX by
a Copy  Paste from MS Word and/or Adobe Acrobat. In all of the places
where Word used an apostrophe, we seem to have an illegal character.  I
think quotation marks as well. Probably other characters. I'm pretty sure the
quotation marks and apostrophe problems result from Word's use of smart
quotes by default.

I wondered if we shouldn't open the LyX document in Emacs and then search
and replace the bad characters.   If I knew how to insert characters that LyX
would accept, I would do that.

I think she has a lot of the same trouble with her Bibliography, which
is a bib file
exported from Zotero.  I have had the problem in my own work that Zotero will
export unexpected encodings, such as the long dash in place of -- in
page numbers.
But in the student's document, all of the dates of the citations show
up as 
when LaTeX processes the document.

So, how to fix this up?

First, How should she configure Document Settings/ Language?

She's from South East Asia, but writing in English.  So perhaps her PC
has more international language features than I'm used to.  For LyX
language encoding, default is not good?  How about utf8?
Or one of the other unicode options.

Incidentally, LyX has the Font button to select XeTeX, supported fonts.
why doesn't that fix the encoding problem?  A font selection is not the same as
encoding?

Second, we need to force the document to use only the desired encoding.
It is a bit outside my comprehension that a document would allow one to
paste in an invalid character, but that's just me.

But isn't there a way to convert the characters in one command?

In Linux, I'd try a program like iconv, if I had a good guess for what
the from encoding should be.

I'd appreciate any advice that I can assemble and pass along to the
students.

I expect that this hassle will end up discouraging everybody and they
revert back to MS Word.


-- 
Paul E. Johnson
Professor, Political Science    Assoc. Director
1541 Lilac Lane, Room 504     Center for Research Methods
University of Kansas               University of Kansas
http://pj.freefaculty.org            http://quant.ku.edu


helping Windows-user: document with lots of invalid characters

2012-04-07 Thread Paul Johnson
Greetings, LyX Land:

I've encouraged people to learn to use LyX, so when they run into trouble,
I feel responsible to try and help.  I use Linux to prepare documents, so
I have not experienced this problem before.  Many people still use Windows
and MS word and such, and so they do things that I would not expect, and
I am frustrated when these things arise.

I think the question I need to ask you is this: How can I find out what encoding
is currently used in the LyX document and what should it be to make it
work properly?
And how can I wrestle all of the characters into the correct encoding? Is there
no magic want to scan a lyx text file and change everything to a desired
encoding?

Here's the long version:

A student has LyX documents have lots and lots of
invalid characters.  I'm virtually certain most of these were inserted
into LyX by
a Copy & Paste from MS Word and/or Adobe Acrobat. In all of the places
where Word used an apostrophe, we seem to have an illegal character.  I
think quotation marks as well. Probably other characters. I'm pretty sure the
quotation marks and apostrophe problems result from Word's use of "smart
quotes" by default.

I wondered if we shouldn't open the LyX document in Emacs and then search
and replace the bad characters.   If I knew how to insert characters that LyX
would accept, I would do that.

I think she has a lot of the same trouble with her Bibliography, which
is a bib file
exported from Zotero.  I have had the problem in my own work that Zotero will
export unexpected encodings, such as the long dash in place of -- in
page numbers.
But in the student's document, all of the dates of the citations show
up as 
when LaTeX processes the document.

So, how to fix this up?

First, How should she configure "Document Settings/ Language"?

She's from South East Asia, but writing in English.  So perhaps her PC
has more international language features than I'm used to.  For LyX
language encoding, "default" is not good?  How about utf8?
Or one of the other unicode options.

Incidentally, LyX has the Font button to select XeTeX, supported fonts.
why doesn't that fix the encoding problem?  A font selection is not the same as
encoding?

Second, we need to force the document to use only the desired encoding.
It is a bit outside my comprehension that a document would allow one to
paste in an invalid character, but that's just me.

But isn't there a way to convert the characters in one command?

In Linux, I'd try a program like "iconv", if I had a good guess for what
the "from" encoding should be.

I'd appreciate any advice that I can assemble and pass along to the
students.

I expect that this hassle will end up discouraging everybody and they
revert back to MS Word.


-- 
Paul E. Johnson
Professor, Political Science    Assoc. Director
1541 Lilac Lane, Room 504     Center for Research Methods
University of Kansas               University of Kansas
http://pj.freefaculty.org            http://quant.ku.edu


Re: need working example of copier to customize pdf output

2012-03-01 Thread Paul Johnson
Oh, heck. I broke the regular export of the one-page at a time PDF
when I added my copier for the 4 sheets on one page.

Details below, please advise.


On Mon, Feb 27, 2012 at 2:15 PM, Richard Heck rgh...@comcast.net wrote:
 On 02/27/2012 01:11 PM, Paul Johnson wrote:

When this finally seemed to work, I was so happy.  However, I see now
I've broken the pdf export.

The weird thing is that LyX asks me if I want to replace the old pdf
version, and I say yes, it still does not get copied.

Just now, I worked on lecture notes and exported to PDF(Beamer). I end up with
-rw-r--r--  1 337226 Mar  2 00:57 Regression-MultipleInputs-lecture-2-2x2.pdf
-rw-r--r--  1  56429 Mar  2 00:55 Regression-MultipleInputs-lecture-2.lyx
-rw-r--r--  1543209 Sep 29 12:17 Regression-MultipleInputs-lecture-2.pdf

I do get the 4 slides on 1 page output, the one with 2x2 on the end.
The lyx file is saved, but last semester's pdf is stuck there.

Here's what I'm using now.

In .lyx/preferences, I add:

\format pdf5 pdf PDF (Beamer)  evince  document,vector,menu=export

\converter pdflatex pdf5 pdflatex $$i latex=pdflatex

\copier pdf5 pdfcopier.sh \$$i\ \$$o\

And here's pdfcopier.sh

#!/bin/bash
INFILE=$1;
pdfnup --nup 2x2  --frame true --suffix '2x2' --batch $INFILE;

Inside LyX, I can Export to PDF(Beamer) and it does export the file
with the 2x2 format, and the name is set correctly.
.
What do you think?

-- 
Paul E. Johnson
Professor, Political Science    Assoc. Director
1541 Lilac Lane, Room 504     Center for Research Methods
University of Kansas               University of Kansas
http://pj.freefaculty.org            http://quant.ku.edu


Re: need working example of copier to customize pdf output

2012-03-01 Thread Paul Johnson
Oh, heck. I broke the regular export of the one-page at a time PDF
when I added my copier for the 4 sheets on one page.

Details below, please advise.


On Mon, Feb 27, 2012 at 2:15 PM, Richard Heck rgh...@comcast.net wrote:
 On 02/27/2012 01:11 PM, Paul Johnson wrote:

When this finally seemed to work, I was so happy.  However, I see now
I've broken the pdf export.

The weird thing is that LyX asks me if I want to replace the old pdf
version, and I say yes, it still does not get copied.

Just now, I worked on lecture notes and exported to PDF(Beamer). I end up with
-rw-r--r--  1 337226 Mar  2 00:57 Regression-MultipleInputs-lecture-2-2x2.pdf
-rw-r--r--  1  56429 Mar  2 00:55 Regression-MultipleInputs-lecture-2.lyx
-rw-r--r--  1543209 Sep 29 12:17 Regression-MultipleInputs-lecture-2.pdf

I do get the 4 slides on 1 page output, the one with 2x2 on the end.
The lyx file is saved, but last semester's pdf is stuck there.

Here's what I'm using now.

In .lyx/preferences, I add:

\format pdf5 pdf PDF (Beamer)  evince  document,vector,menu=export

\converter pdflatex pdf5 pdflatex $$i latex=pdflatex

\copier pdf5 pdfcopier.sh \$$i\ \$$o\

And here's pdfcopier.sh

#!/bin/bash
INFILE=$1;
pdfnup --nup 2x2  --frame true --suffix '2x2' --batch $INFILE;

Inside LyX, I can Export to PDF(Beamer) and it does export the file
with the 2x2 format, and the name is set correctly.
.
What do you think?

-- 
Paul E. Johnson
Professor, Political Science    Assoc. Director
1541 Lilac Lane, Room 504     Center for Research Methods
University of Kansas               University of Kansas
http://pj.freefaculty.org            http://quant.ku.edu


Re: need working example of copier to customize pdf output

2012-03-01 Thread Paul Johnson
Oh, heck. I broke the regular export of the one-page at a time PDF
when I added my copier for the 4 sheets on one page.

Details below, please advise.


On Mon, Feb 27, 2012 at 2:15 PM, Richard Heck <rgh...@comcast.net> wrote:
> On 02/27/2012 01:11 PM, Paul Johnson wrote:

When this finally seemed to work, I was so happy.  However, I see now
I've broken the pdf export.

The weird thing is that LyX asks me if I want to replace the old pdf
version, and I say yes, it still does not get copied.

Just now, I worked on lecture notes and exported to PDF(Beamer). I end up with
-rw-r--r--  1 337226 Mar  2 00:57 Regression-MultipleInputs-lecture-2-2x2.pdf
-rw-r--r--  1  56429 Mar  2 00:55 Regression-MultipleInputs-lecture-2.lyx
-rw-r--r--  1543209 Sep 29 12:17 Regression-MultipleInputs-lecture-2.pdf

I do get the 4 slides on 1 page output, the one with 2x2 on the end.
The lyx file is saved, but last semester's pdf is stuck there.

Here's what I'm using now.

In .lyx/preferences, I add:

\format "pdf5" "pdf" "PDF (Beamer)" "" "evince" "" "document,vector,menu=export"

\converter "pdflatex" "pdf5" "pdflatex $$i" "latex=pdflatex"

\copier pdf5 "pdfcopier.sh \"$$i\" \"$$o\""

And here's "pdfcopier.sh"

#!/bin/bash
INFILE="$1";
pdfnup --nup 2x2  --frame true --suffix '2x2' --batch "$INFILE";

Inside LyX, I can Export to PDF(Beamer) and it does export the file
with the 2x2 format, and the name is set correctly.
.
What do you think?

-- 
Paul E. Johnson
Professor, Political Science    Assoc. Director
1541 Lilac Lane, Room 504     Center for Research Methods
University of Kansas               University of Kansas
http://pj.freefaculty.org            http://quant.ku.edu


Re: need working example of copier to customize pdf output

2012-02-27 Thread Paul Johnson
On Sat, Feb 25, 2012 at 3:00 PM, Richard Heck rgh...@comcast.net wrote:
 On 02/25/2012 01:43 PM, Paul Johnson wrote:

 Copiers are tied to formats, so you will need to create a new format first.
 Call it PDF (beamer), or something of the sort. When you do, you can
 assign a copier program. The copier will have to be responsible for the
 actual copying, as well as the conversion you want. Write a little shell
 script that takes two arguments, the input file and its output location. So
 something like:

 #!/bin/bash
 INFILE=$1;
 OUTFILE=$2;
 if [ -z $OUTFILE ]; then exit 1; fi
 pdfnup -nup 2x2 --suffix 2x2' --frame true --output $OUTFILE --batch $1;

 Save it somewhere in your path, say to /home/you/bin/pdfcopier.sh, make it
 executable, and then enter
    pdfcopier.sh $$i $$o
 into the copier field for your new format.

 Richard


Thanks, Richard.

I think I'm missing a converter line in preferences. Well, I still
don't understand how the ordinary work of pdflatex is supposed to get
done before my copier gets called.

I created the pdfcopier shell script you mention, it is in the path.

I run into some trouble configuring preferences in LyX. Can we just
talk about what is in preferences itself? The LyX preferences gui is
difficult for me.

What do I need for short name.  I was guessing something unique like pdf5.

#
# FORMATS SECTION ##
#

\format pdf5 pdf PDF (BEAMER)  evince auto
document,vector,menu=export

#
# COPIERS SECTION ##
#

\copier pdf5 pdfcopier.sh \$$i\ \$$o\


That fails thusly:

$ lyx -e pdf5 hpcexample-1.lyx
Error: Couldn't export file

No information for exporting the format PDF (BEAMER).


PDF (BEAMER) does not show in the LyX export menu.


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


Re: need working example of copier to customize pdf output

2012-02-27 Thread Paul Johnson
On Sat, Feb 25, 2012 at 3:00 PM, Richard Heck rgh...@comcast.net wrote:
 On 02/25/2012 01:43 PM, Paul Johnson wrote:

 Copiers are tied to formats, so you will need to create a new format first.
 Call it PDF (beamer), or something of the sort. When you do, you can
 assign a copier program. The copier will have to be responsible for the
 actual copying, as well as the conversion you want. Write a little shell
 script that takes two arguments, the input file and its output location. So
 something like:

 #!/bin/bash
 INFILE=$1;
 OUTFILE=$2;
 if [ -z $OUTFILE ]; then exit 1; fi
 pdfnup -nup 2x2 --suffix 2x2' --frame true --output $OUTFILE --batch $1;

 Save it somewhere in your path, say to /home/you/bin/pdfcopier.sh, make it
 executable, and then enter
    pdfcopier.sh $$i $$o
 into the copier field for your new format.

 Richard


Thanks, Richard.

I think I'm missing a converter line in preferences. Well, I still
don't understand how the ordinary work of pdflatex is supposed to get
done before my copier gets called.

I created the pdfcopier shell script you mention, it is in the path.

I run into some trouble configuring preferences in LyX. Can we just
talk about what is in preferences itself? The LyX preferences gui is
difficult for me.

What do I need for short name.  I was guessing something unique like pdf5.

#
# FORMATS SECTION ##
#

\format pdf5 pdf PDF (BEAMER)  evince auto
document,vector,menu=export

#
# COPIERS SECTION ##
#

\copier pdf5 pdfcopier.sh \$$i\ \$$o\


That fails thusly:

$ lyx -e pdf5 hpcexample-1.lyx
Error: Couldn't export file

No information for exporting the format PDF (BEAMER).


PDF (BEAMER) does not show in the LyX export menu.


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


Re: need working example of copier to customize pdf output

2012-02-27 Thread Paul Johnson
On Sat, Feb 25, 2012 at 3:00 PM, Richard Heck <rgh...@comcast.net> wrote:
> On 02/25/2012 01:43 PM, Paul Johnson wrote:

> Copiers are tied to formats, so you will need to create a new format first.
> Call it "PDF (beamer)", or something of the sort. When you do, you can
> assign a copier program. The copier will have to be responsible for the
> actual copying, as well as the conversion you want. Write a little shell
> script that takes two arguments, the input file and its output location. So
> something like:
>
> #!/bin/bash
> INFILE="$1";
> OUTFILE="$2";
> if [ -z "$OUTFILE" ]; then exit 1; fi
> pdfnup -nup 2x2 --suffix 2x2' --frame true --output "$OUTFILE" --batch "$1";
>
> Save it somewhere in your path, say to /home/you/bin/pdfcopier.sh, make it
> executable, and then enter
>    pdfcopier.sh "$$i" "$$o"
> into the copier field for your new format.
>
> Richard
>

Thanks, Richard.

I think I'm missing a converter line in preferences. Well, I still
don't understand how the ordinary work of pdflatex is supposed to get
done before my copier gets called.

I created the pdfcopier shell script you mention, it is in the path.

I run into some trouble configuring preferences in LyX. Can we just
talk about what is in preferences itself? The LyX preferences gui is
difficult for me.

What do I need for "short name".  I was guessing something unique like "pdf5".

#
# FORMATS SECTION ##
#

\format "pdf5" "pdf" "PDF (BEAMER)" "" "evince" "auto"
"document,vector,menu=export"

#
# COPIERS SECTION ##
#

\copier pdf5 "pdfcopier.sh \"$$i\" \"$$o\""


That fails thusly:

$ lyx -e pdf5 hpcexample-1.lyx
Error: Couldn't export file

No information for exporting the format PDF (BEAMER).


PDF (BEAMER) does not show in the LyX export menu.


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


need working example of copier to customize pdf output

2012-02-25 Thread Paul Johnson
I'm generating a lot of slide shows for my statistics class. Sometimes
I forget to run the followup program
to create a compressed version of the presentation. It want to make
that automatic.[1]

When I export a document in pdf from a Beamer slides project, I also
want this shell program to run.
It automatically creates another pdf document that is 4 slides on one page.

#!/bin/bash

pdfnup --nup 2x2 --suffix '2x2' --frame true --batch $1


pdfnup is from package called pdfjam on Debian Linux. The output is
awesome, quick, convenient.


I am reading the LyX customization manual about copiers, but I just
can't understand it!

I don't want to destroy the existing copy behavior that writes the PDF
output to the document folder,
I just want that additional command to run.  But I don't want this 2x2
PDF type for all PDF I create,
just for the Beamer slide projects.

Thanks in advance.


[1] I've got example output here, in case you want to see what I mean:

http://pj.freefaculty.org/guides/stat/Regression/ElementaryOLS

I just upload the full working directory, let the students take the
source code or the pdf output,
or the 2x2 pdf output.

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


need working example of copier to customize pdf output

2012-02-25 Thread Paul Johnson
I'm generating a lot of slide shows for my statistics class. Sometimes
I forget to run the followup program
to create a compressed version of the presentation. It want to make
that automatic.[1]

When I export a document in pdf from a Beamer slides project, I also
want this shell program to run.
It automatically creates another pdf document that is 4 slides on one page.

#!/bin/bash

pdfnup --nup 2x2 --suffix '2x2' --frame true --batch $1


pdfnup is from package called pdfjam on Debian Linux. The output is
awesome, quick, convenient.


I am reading the LyX customization manual about copiers, but I just
can't understand it!

I don't want to destroy the existing copy behavior that writes the PDF
output to the document folder,
I just want that additional command to run.  But I don't want this 2x2
PDF type for all PDF I create,
just for the Beamer slide projects.

Thanks in advance.


[1] I've got example output here, in case you want to see what I mean:

http://pj.freefaculty.org/guides/stat/Regression/ElementaryOLS

I just upload the full working directory, let the students take the
source code or the pdf output,
or the 2x2 pdf output.

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


need working example of copier to customize pdf output

2012-02-25 Thread Paul Johnson
I'm generating a lot of slide shows for my statistics class. Sometimes
I forget to run the followup program
to create a compressed version of the presentation. It want to make
that automatic.[1]

When I export a document in pdf from a Beamer slides project, I also
want this shell program to run.
It automatically creates another pdf document that is 4 slides on one page.

#!/bin/bash

pdfnup --nup 2x2 --suffix '2x2' --frame true --batch $1


pdfnup is from package called "pdfjam" on Debian Linux. The output is
awesome, quick, convenient.


I am reading the LyX customization manual about copiers, but I just
can't understand it!

I don't want to destroy the existing copy behavior that writes the PDF
output to the document folder,
I just want that additional command to run.  But I don't want this 2x2
PDF type for all PDF I create,
just for the Beamer slide projects.

Thanks in advance.


[1] I've got example output here, in case you want to see what I mean:

http://pj.freefaculty.org/guides/stat/Regression/ElementaryOLS

I just upload the full working directory, let the students take the
source code or the pdf output,
or the 2x2 pdf output.

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


Re: horizontal alignment of graphics and ERT table

2011-11-18 Thread Paul Johnson
On Fri, Nov 18, 2011 at 1:23 AM, Liviu Andronic landronim...@gmail.com wrote:
 On Fri, Nov 18, 2011 at 7:40 AM, Paul Johnson pauljoh...@gmail.com wrote:
 I wrote a test in LyX and have trouble getting a graphic to sit side
 by side with a LaTeX table.  After fiddling around with this for
 quite a while, my bright idea was to nest them both in a 1x2 tabular,
 but it always seems like the table (inside a minibox) wants to sink to
 the bottom of the right side of the table, while the figure wants to
 float to the top.

 Would you mind looking at the output? I've got one example like this
 on page 1 and another on page 5.

 http://pj.freefaculty.org/latex/test2-part2.pdf

 I do want to have the graphic and the table side by side, but I'm open
 to making this happen any way you recommend.

 I feel that this is related to this discussion [1], which suggests
 several solutions.

 [1] http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg167267.html

Thanks very much for the pointer.  I agree that is aimed at the problem I see.

 This is an out-of-the-usual document. It is Sweave'd through R to
 generate the graphic and the regression output, and I don't expect
 most people will want to bother to try to compile it. Nevertheless, I
 uploaded the LyX file, in case you want to look it over.

 http://pj.freefaculty.org/latex/weirdRotations-lyx.tar.gz

 I'm not sure that this is the file that you intended to link to, since
 it has little to do with the PDF above.


Dammit.  My copy/paste skills are getting worse and worse.  Here's the
correct link to the suspicious file:

http://pj.freefaculty.org/latex/test2-part2.tar.gz


 Regards
 Liviu


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




 --
 Do you know how to read?
 http://www.alienetworks.com/srtest.cfm
 http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
 Do you know how to write?
 http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail




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


Re: horizontal alignment of graphics and ERT table

2011-11-18 Thread Paul Johnson
On Fri, Nov 18, 2011 at 9:23 AM, Paul Johnson pauljoh...@gmail.com wrote:
 On Fri, Nov 18, 2011 at 1:23 AM, Liviu Andronic landronim...@gmail.com 
 wrote:
 On Fri, Nov 18, 2011 at 7:40 AM, Paul Johnson pauljoh...@gmail.com wrote:
 I wrote a test in LyX and have trouble getting a graphic to sit side
 by side with a LaTeX table.

 http://pj.freefaculty.org/latex/test2-part2.pdf

Liviu's pointer led me off into a search through a lot of pages about
horizontal alignment of latex graphics.

The simplest workaround I've found so far is to wrap the troublesome
graphic,  table or minipage in
\raisebox{10mm}{   graphic or table  }

That lifts up the troublesome thing 10mm.  If you want to lower the
thing, put a negative number.  Here are the new versions, where I've
tested this both with simple side-by-side minipages (not in table
cells) and minipages or tables inside cells. Either way, you can
manually force things into line

http://pj.freefaculty.org/latex/test2-part2-new.pdf
http://pj.freefaculty.org/latex/test2-part2-new.lyx

This is not entirely satisfactory, we wish it were automatic.



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


Re: horizontal alignment of graphics and ERT table

2011-11-18 Thread Paul Johnson
On Fri, Nov 18, 2011 at 1:23 AM, Liviu Andronic landronim...@gmail.com wrote:
 On Fri, Nov 18, 2011 at 7:40 AM, Paul Johnson pauljoh...@gmail.com wrote:
 I wrote a test in LyX and have trouble getting a graphic to sit side
 by side with a LaTeX table.  After fiddling around with this for
 quite a while, my bright idea was to nest them both in a 1x2 tabular,
 but it always seems like the table (inside a minibox) wants to sink to
 the bottom of the right side of the table, while the figure wants to
 float to the top.

 Would you mind looking at the output? I've got one example like this
 on page 1 and another on page 5.

 http://pj.freefaculty.org/latex/test2-part2.pdf

 I do want to have the graphic and the table side by side, but I'm open
 to making this happen any way you recommend.

 I feel that this is related to this discussion [1], which suggests
 several solutions.

 [1] http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg167267.html

Thanks very much for the pointer.  I agree that is aimed at the problem I see.

 This is an out-of-the-usual document. It is Sweave'd through R to
 generate the graphic and the regression output, and I don't expect
 most people will want to bother to try to compile it. Nevertheless, I
 uploaded the LyX file, in case you want to look it over.

 http://pj.freefaculty.org/latex/weirdRotations-lyx.tar.gz

 I'm not sure that this is the file that you intended to link to, since
 it has little to do with the PDF above.


Dammit.  My copy/paste skills are getting worse and worse.  Here's the
correct link to the suspicious file:

http://pj.freefaculty.org/latex/test2-part2.tar.gz


 Regards
 Liviu


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




 --
 Do you know how to read?
 http://www.alienetworks.com/srtest.cfm
 http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
 Do you know how to write?
 http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail




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


Re: horizontal alignment of graphics and ERT table

2011-11-18 Thread Paul Johnson
On Fri, Nov 18, 2011 at 9:23 AM, Paul Johnson pauljoh...@gmail.com wrote:
 On Fri, Nov 18, 2011 at 1:23 AM, Liviu Andronic landronim...@gmail.com 
 wrote:
 On Fri, Nov 18, 2011 at 7:40 AM, Paul Johnson pauljoh...@gmail.com wrote:
 I wrote a test in LyX and have trouble getting a graphic to sit side
 by side with a LaTeX table.

 http://pj.freefaculty.org/latex/test2-part2.pdf

Liviu's pointer led me off into a search through a lot of pages about
horizontal alignment of latex graphics.

The simplest workaround I've found so far is to wrap the troublesome
graphic,  table or minipage in
\raisebox{10mm}{   graphic or table  }

That lifts up the troublesome thing 10mm.  If you want to lower the
thing, put a negative number.  Here are the new versions, where I've
tested this both with simple side-by-side minipages (not in table
cells) and minipages or tables inside cells. Either way, you can
manually force things into line

http://pj.freefaculty.org/latex/test2-part2-new.pdf
http://pj.freefaculty.org/latex/test2-part2-new.lyx

This is not entirely satisfactory, we wish it were automatic.



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


Re: horizontal alignment of graphics and ERT table

2011-11-18 Thread Paul Johnson
On Fri, Nov 18, 2011 at 1:23 AM, Liviu Andronic <landronim...@gmail.com> wrote:
> On Fri, Nov 18, 2011 at 7:40 AM, Paul Johnson <pauljoh...@gmail.com> wrote:
>> I wrote a test in LyX and have trouble getting a graphic to sit "side
>> by side" with a LaTeX table.  After fiddling around with this for
>> quite a while, my bright idea was to nest them both in a 1x2 tabular,
>> but it always seems like the table (inside a minibox) wants to sink to
>> the bottom of the right side of the table, while the figure wants to
>> float to the top.
>>
>> Would you mind looking at the output? I've got one example like this
>> on page 1 and another on page 5.
>>
>> http://pj.freefaculty.org/latex/test2-part2.pdf
>>
>> I do want to have the graphic and the table side by side, but I'm open
>> to making this happen any way you recommend.
>>
> I feel that this is related to this discussion [1], which suggests
> several solutions.
>
> [1] http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg167267.html
>
Thanks very much for the pointer.  I agree that is aimed at the problem I see.
>
>> This is an out-of-the-usual document. It is Sweave'd through R to
>> generate the graphic and the regression output, and I don't expect
>> most people will want to bother to try to compile it. Nevertheless, I
>> uploaded the LyX file, in case you want to look it over.
>>
>> http://pj.freefaculty.org/latex/weirdRotations-lyx.tar.gz
>>
> I'm not sure that this is the file that you intended to link to, since
> it has little to do with the PDF above.
>

Dammit.  My copy/paste skills are getting worse and worse.  Here's the
correct link to the suspicious file:

http://pj.freefaculty.org/latex/test2-part2.tar.gz


> Regards
> Liviu
>
>
>> --
>> Paul E. Johnson
>> Professor, Political Science
>> 1541 Lilac Lane, Room 504
>> University of Kansas
>>
>
>
>
> --
> Do you know how to read?
> http://www.alienetworks.com/srtest.cfm
> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
> Do you know how to write?
> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
>



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


Re: horizontal alignment of graphics and ERT table

2011-11-18 Thread Paul Johnson
On Fri, Nov 18, 2011 at 9:23 AM, Paul Johnson <pauljoh...@gmail.com> wrote:
> On Fri, Nov 18, 2011 at 1:23 AM, Liviu Andronic <landronim...@gmail.com> 
> wrote:
>> On Fri, Nov 18, 2011 at 7:40 AM, Paul Johnson <pauljoh...@gmail.com> wrote:
>>> I wrote a test in LyX and have trouble getting a graphic to sit "side
>>> by side" with a LaTeX table.
>>>
>>> http://pj.freefaculty.org/latex/test2-part2.pdf
>>>
Liviu's pointer led me off into a search through a lot of pages about
horizontal alignment of latex graphics.

The simplest workaround I've found so far is to wrap the troublesome
graphic,  table or minipage in
\raisebox{10mm}{   graphic or table  }

That lifts up the troublesome thing 10mm.  If you want to lower the
thing, put a negative number.  Here are the "new" versions, where I've
tested this both with simple side-by-side minipages (not in table
cells) and minipages or tables inside cells. Either way, you can
manually force things into line

http://pj.freefaculty.org/latex/test2-part2-new.pdf
http://pj.freefaculty.org/latex/test2-part2-new.lyx

This is not entirely satisfactory, we wish it were automatic.



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


horizontal alignment of graphics and ERT table

2011-11-17 Thread Paul Johnson
I wrote a test in LyX and have trouble getting a graphic to sit side
by side with a LaTeX table.  After fiddling around with this for
quite a while, my bright idea was to nest them both in a 1x2 tabular,
but it always seems like the table (inside a minibox) wants to sink to
the bottom of the right side of the table, while the figure wants to
float to the top.

Would you mind looking at the output? I've got one example like this
on page 1 and another on page 5.

http://pj.freefaculty.org/latex/test2-part2.pdf

I do want to have the graphic and the table side by side, but I'm open
to making this happen any way you recommend.

This is an out-of-the-usual document. It is Sweave'd through R to
generate the graphic and the regression output, and I don't expect
most people will want to bother to try to compile it. Nevertheless, I
uploaded the LyX file, in case you want to look it over.

http://pj.freefaculty.org/latex/weirdRotations-lyx.tar.gz

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


horizontal alignment of graphics and ERT table

2011-11-17 Thread Paul Johnson
I wrote a test in LyX and have trouble getting a graphic to sit side
by side with a LaTeX table.  After fiddling around with this for
quite a while, my bright idea was to nest them both in a 1x2 tabular,
but it always seems like the table (inside a minibox) wants to sink to
the bottom of the right side of the table, while the figure wants to
float to the top.

Would you mind looking at the output? I've got one example like this
on page 1 and another on page 5.

http://pj.freefaculty.org/latex/test2-part2.pdf

I do want to have the graphic and the table side by side, but I'm open
to making this happen any way you recommend.

This is an out-of-the-usual document. It is Sweave'd through R to
generate the graphic and the regression output, and I don't expect
most people will want to bother to try to compile it. Nevertheless, I
uploaded the LyX file, in case you want to look it over.

http://pj.freefaculty.org/latex/weirdRotations-lyx.tar.gz

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


horizontal alignment of graphics and ERT table

2011-11-17 Thread Paul Johnson
I wrote a test in LyX and have trouble getting a graphic to sit "side
by side" with a LaTeX table.  After fiddling around with this for
quite a while, my bright idea was to nest them both in a 1x2 tabular,
but it always seems like the table (inside a minibox) wants to sink to
the bottom of the right side of the table, while the figure wants to
float to the top.

Would you mind looking at the output? I've got one example like this
on page 1 and another on page 5.

http://pj.freefaculty.org/latex/test2-part2.pdf

I do want to have the graphic and the table side by side, but I'm open
to making this happen any way you recommend.

This is an out-of-the-usual document. It is Sweave'd through R to
generate the graphic and the regression output, and I don't expect
most people will want to bother to try to compile it. Nevertheless, I
uploaded the LyX file, in case you want to look it over.

http://pj.freefaculty.org/latex/weirdRotations-lyx.tar.gz

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


Re: LyX with pgfplotstable

2011-09-27 Thread Paul Johnson
It seems to me you are working very hard there. If you are willing to
write out a path, can I suggest a simpler solution? Did you try just
writing in a path, as:

\pgfplotstabletypeset{/home/florian/Documents/lyx/example1.dat}

This is how I insert data in Sweave documents.  I have no reason to
believe it does/does not work with pgfplotstabletypset (since I've
never heard of it). But I just tried several test cases and both
input' and includegraphics are OK:

\includegraphics{/home/pauljohn/ps/SVN-guides/Rcourse/plot-1/plots/t-bar06.pdf}

PJ

On Tue, Sep 27, 2011 at 7:34 AM, Florian Wilhelm
florian.wilh...@gmail.com wrote:
 Mukhtar Ullah mukhtar.ullah at informatik.uni-rostock.de writes:


 Follow this thread.Although about Inkscape but it addresses the same issue.
 http://thread.gmane.org/gmane.editors.lyx.general/71928

 Mukhtar




 Thanks. I found a more suitable solution for me.
 - Open Command Buffer (Alt+X)
 - Type: info-insert buffer path
 - Result: A macro with the document's current path
 - Surround this macro with ERT to include whatever
  you want to include like:

 ERT[\pgfplotstableread{]
 MACRO[/home/florian/Documents/lyx/]
 ERT[benchmarks/benchmarks.dat} \datatable]

 where ERT[...] is TeX code inserted with CTRL+L
 and MACRO[...] the aforementioned info-insert macro.





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


Re: LyX with pgfplotstable

2011-09-27 Thread Paul Johnson
It seems to me you are working very hard there. If you are willing to
write out a path, can I suggest a simpler solution? Did you try just
writing in a path, as:

\pgfplotstabletypeset{/home/florian/Documents/lyx/example1.dat}

This is how I insert data in Sweave documents.  I have no reason to
believe it does/does not work with pgfplotstabletypset (since I've
never heard of it). But I just tried several test cases and both
input' and includegraphics are OK:

\includegraphics{/home/pauljohn/ps/SVN-guides/Rcourse/plot-1/plots/t-bar06.pdf}

PJ

On Tue, Sep 27, 2011 at 7:34 AM, Florian Wilhelm
florian.wilh...@gmail.com wrote:
 Mukhtar Ullah mukhtar.ullah at informatik.uni-rostock.de writes:


 Follow this thread.Although about Inkscape but it addresses the same issue.
 http://thread.gmane.org/gmane.editors.lyx.general/71928

 Mukhtar




 Thanks. I found a more suitable solution for me.
 - Open Command Buffer (Alt+X)
 - Type: info-insert buffer path
 - Result: A macro with the document's current path
 - Surround this macro with ERT to include whatever
  you want to include like:

 ERT[\pgfplotstableread{]
 MACRO[/home/florian/Documents/lyx/]
 ERT[benchmarks/benchmarks.dat} \datatable]

 where ERT[...] is TeX code inserted with CTRL+L
 and MACRO[...] the aforementioned info-insert macro.





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


Re: LyX with pgfplotstable

2011-09-27 Thread Paul Johnson
It seems to me you are working very hard there. If you are willing to
write out a path, can I suggest a simpler solution? Did you try just
writing in a path, as:

\pgfplotstabletypeset{/home/florian/Documents/lyx/example1.dat}

This is how I insert data in Sweave documents.  I have no reason to
believe it does/does not work with pgfplotstabletypset (since I've
never heard of it). But I just tried several test cases and both
"input' and "includegraphics" are OK:

\includegraphics{/home/pauljohn/ps/SVN-guides/Rcourse/plot-1/plots/t-bar06.pdf}

PJ

On Tue, Sep 27, 2011 at 7:34 AM, Florian Wilhelm
 wrote:
> Mukhtar Ullah  informatik.uni-rostock.de> writes:
>
>>
>> Follow this thread.Although about Inkscape but it addresses the same issue.
>> http://thread.gmane.org/gmane.editors.lyx.general/71928
>>
>> Mukhtar
>>
>>
>
>
> Thanks. I found a more suitable solution for me.
> - Open Command Buffer (Alt+X)
> - Type: info-insert buffer path
> - Result: A macro with the document's current path
> - Surround this macro with ERT to include whatever
>  you want to include like:
>
> ERT[\pgfplotstableread{]
> MACRO[/home/florian/Documents/lyx/]
> ERT[benchmarks/benchmarks.dat} \datatable]
>
> where ERT[...] is TeX code inserted with CTRL+L
> and MACRO[...] the aforementioned info-insert macro.
>
>



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


Lyx 2 windows install. babel missing from LyX-Installer-Bundle ??

2011-08-30 Thread Paul Johnson
Hi

I use Linux, but I tell my students who use windows to give LyX a try.
We had pretty good success with LyX-1.6.x, but the students say they
can't get 2.0 to work. I ignored them at first.  I decided to prove
that it works by filming a Screencast.  I created a Windows 7 32 bit
virtual machine and have tried to install lyx 2.0.0-3 in there. I've
tried both the LyX bundle and just Lyx with the net installer for
Miktex. Neither one works for me.

From the Bundle, lYX-2.0.0-3-Installer-Bundle.exe,  the LyX install
works fine.  That seems backwards to me, LyX should install itself
only after MikTeX works, nevertheless, it does trigger a MikTeX
install after LyX.  At the outset, I chose to set my papersize at
letter and to allow on-the-fly package installation. , it copies some
files and then dies. A pop up window appears:

MikTeX Setup Wizard: The operation could not be completed for the
follwing reason: Windows API error 2: The  system cannot find the file
specified.
Details: C:\Program Files\MikTeX 2.9\tpm\packages\babel.tpm

And then this pops up after:

MikTeX Setup Wizard: A problem caused the program to stop working
correctly. Windows will close the program and notify you if a solution
is available.

It is rather annoying that one cannot try to run the
Lyx-Installer-Bundle again in order to pick up where it died without
doing a complete re-install of LyX itself.

WHen I try the nonbundle installer, the one that triggers a net
install of MikTeX, I see the error popup

Downloading MikTeX failed. Would you like to try again? (HTTP/1.1 404
Not Found)


I've gone to the MikTeX site and grabbed a copy of their installer. I
notice that when I run that, it forces me to choose a Mirror.  It is
not clear to me why the LyX installer does not cause me to do the
same.


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


Lyx 2 windows install. babel missing from LyX-Installer-Bundle ??

2011-08-30 Thread Paul Johnson
Hi

I use Linux, but I tell my students who use windows to give LyX a try.
We had pretty good success with LyX-1.6.x, but the students say they
can't get 2.0 to work. I ignored them at first.  I decided to prove
that it works by filming a Screencast.  I created a Windows 7 32 bit
virtual machine and have tried to install lyx 2.0.0-3 in there. I've
tried both the LyX bundle and just Lyx with the net installer for
Miktex. Neither one works for me.

From the Bundle, lYX-2.0.0-3-Installer-Bundle.exe,  the LyX install
works fine.  That seems backwards to me, LyX should install itself
only after MikTeX works, nevertheless, it does trigger a MikTeX
install after LyX.  At the outset, I chose to set my papersize at
letter and to allow on-the-fly package installation. , it copies some
files and then dies. A pop up window appears:

MikTeX Setup Wizard: The operation could not be completed for the
follwing reason: Windows API error 2: The  system cannot find the file
specified.
Details: C:\Program Files\MikTeX 2.9\tpm\packages\babel.tpm

And then this pops up after:

MikTeX Setup Wizard: A problem caused the program to stop working
correctly. Windows will close the program and notify you if a solution
is available.

It is rather annoying that one cannot try to run the
Lyx-Installer-Bundle again in order to pick up where it died without
doing a complete re-install of LyX itself.

WHen I try the nonbundle installer, the one that triggers a net
install of MikTeX, I see the error popup

Downloading MikTeX failed. Would you like to try again? (HTTP/1.1 404
Not Found)


I've gone to the MikTeX site and grabbed a copy of their installer. I
notice that when I run that, it forces me to choose a Mirror.  It is
not clear to me why the LyX installer does not cause me to do the
same.


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


Lyx 2 windows install. babel missing from LyX-Installer-Bundle ??

2011-08-30 Thread Paul Johnson
Hi

I use Linux, but I tell my students who use windows to give LyX a try.
We had pretty good success with LyX-1.6.x, but the students say they
can't get 2.0 to work. I ignored them at first.  I decided to prove
that it works by filming a Screencast.  I created a Windows 7 32 bit
virtual machine and have tried to install lyx 2.0.0-3 in there. I've
tried both the LyX bundle and just Lyx with the net installer for
Miktex. Neither one works for me.

>From the Bundle, "lYX-2.0.0-3-Installer-Bundle.exe",  the LyX install
works fine.  That seems backwards to me, LyX should install itself
only after MikTeX works, nevertheless, it does trigger a MikTeX
install after LyX.  At the outset, I chose to set my papersize at
letter and to allow on-the-fly package installation. , it copies some
files and then dies. A pop up window appears:

"MikTeX Setup Wizard: The operation could not be completed for the
follwing reason: Windows API error 2: The  system cannot find the file
specified.
Details: C:\Program Files\MikTeX 2.9\tpm\packages\babel.tpm"

And then this pops up after:

MikTeX Setup Wizard: A problem caused the program to stop working
correctly. Windows will close the program and notify you if a solution
is available.

It is rather annoying that one cannot try to run the
Lyx-Installer-Bundle again in order to pick up where it died without
doing a complete re-install of LyX itself.

WHen I try the nonbundle installer, the one that triggers a net
install of MikTeX, I see the error popup

"Downloading MikTeX failed. Would you like to try again? (HTTP/1.1 404
Not Found)


I've gone to the MikTeX site and grabbed a copy of their installer. I
notice that when I run that, it forces me to choose a Mirror.  It is
not clear to me why the LyX installer does not cause me to do the
same.


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


Re: Space around floats

2011-08-28 Thread Paul Johnson
Hi

On Fri, Aug 26, 2011 at 2:58 AM, Lastalda lasta...@gmail.com wrote:
 I'm trying to write my diploma thesis in Lyx. So far I'm managing mostly
 fine, but I'm very annoyed by the huge free space Lyx creates around floats.
 It looks terrible - and it's most annoying when this space is the only
 reason that the last 1 or 2 lines of a subsection are jostled to the next
 page.
 Example:
 http://lyx.475766.n2.nabble.com/file/n6727759/Diplomarbeit7%2B8.pdf
 Diplomarbeit7%2B8.pdf

That document is not available to me now, but can I suggest something
(just guessing after helping lots of students)?  Find out why your
inserted document has so much white space around it.

WHen my students make figures with R, for example, sometimes they are
careless. A postscript file that is not created correctly has no
bounding box, and so LaTeX sees a whole page where you see only a
small figure.  In pdf figures, the default will mark off giant margins
and LaTeX respects what is in the figure.

I do LaTeX documents all the time and I never see any huge margins if
the graphics are created correctly.

pj

ps. graphics are not automatically centered in figures, but there is
preamble magic to make them all come out that way. Here's part of the
boilerplate I use:


\usepackage{ifthen}
\renewenvironment{figure}[1][]{%
 \ifthenelse{\equal{#1}{}}{%
   \@float{figure}
 }{%
   \@float{figure}[#1]%
 }%
 \centering
}{%
 \end@float
}


\renewenvironment{table}[1][]{%
 \ifthenelse{\equal{#1}{}}{%
   \@float{table}
 }{%
   \@float{table}[#1]%
 }%
 \centering
}{%
 \end@float
}




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


Re: Space around floats

2011-08-28 Thread Paul Johnson
Hi

On Fri, Aug 26, 2011 at 2:58 AM, Lastalda lasta...@gmail.com wrote:
 I'm trying to write my diploma thesis in Lyx. So far I'm managing mostly
 fine, but I'm very annoyed by the huge free space Lyx creates around floats.
 It looks terrible - and it's most annoying when this space is the only
 reason that the last 1 or 2 lines of a subsection are jostled to the next
 page.
 Example:
 http://lyx.475766.n2.nabble.com/file/n6727759/Diplomarbeit7%2B8.pdf
 Diplomarbeit7%2B8.pdf

That document is not available to me now, but can I suggest something
(just guessing after helping lots of students)?  Find out why your
inserted document has so much white space around it.

WHen my students make figures with R, for example, sometimes they are
careless. A postscript file that is not created correctly has no
bounding box, and so LaTeX sees a whole page where you see only a
small figure.  In pdf figures, the default will mark off giant margins
and LaTeX respects what is in the figure.

I do LaTeX documents all the time and I never see any huge margins if
the graphics are created correctly.

pj

ps. graphics are not automatically centered in figures, but there is
preamble magic to make them all come out that way. Here's part of the
boilerplate I use:


\usepackage{ifthen}
\renewenvironment{figure}[1][]{%
 \ifthenelse{\equal{#1}{}}{%
   \@float{figure}
 }{%
   \@float{figure}[#1]%
 }%
 \centering
}{%
 \end@float
}


\renewenvironment{table}[1][]{%
 \ifthenelse{\equal{#1}{}}{%
   \@float{table}
 }{%
   \@float{table}[#1]%
 }%
 \centering
}{%
 \end@float
}




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


Re: Space around floats

2011-08-28 Thread Paul Johnson
Hi

On Fri, Aug 26, 2011 at 2:58 AM, Lastalda  wrote:
> I'm trying to write my diploma thesis in Lyx. So far I'm managing mostly
> fine, but I'm very annoyed by the huge free space Lyx creates around floats.
> It looks terrible - and it's most annoying when this space is the only
> reason that the last 1 or 2 lines of a subsection are jostled to the next
> page.
> Example:
> http://lyx.475766.n2.nabble.com/file/n6727759/Diplomarbeit7%2B8.pdf
> Diplomarbeit7%2B8.pdf

That document is not available to me now, but can I suggest something
(just guessing after helping lots of students)?  Find out why your
inserted document has so much white space around it.

WHen my students make figures with R, for example, sometimes they are
careless. A postscript file that is not created correctly has no
bounding box, and so LaTeX sees a whole page where you see only a
small figure.  In pdf figures, the default will mark off giant margins
and LaTeX respects what is in the figure.

I do LaTeX documents all the time and I never see any huge margins if
the graphics are created correctly.

pj

ps. graphics are not automatically centered in figures, but there is
preamble magic to make them all come out that way. Here's part of the
boilerplate I use:


\usepackage{ifthen}
\renewenvironment{figure}[1][]{%
 \ifthenelse{\equal{#1}{}}{%
   \@float{figure}
 }{%
   \@float{figure}[#1]%
 }%
 \centering
}{%
 \end@float
}


\renewenvironment{table}[1][]{%
 \ifthenelse{\equal{#1}{}}{%
   \@float{table}
 }{%
   \@float{table}[#1]%
 }%
 \centering
}{%
 \end@float
}




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


Anybody make a ScreenCast video of the LyX WIndows installation?

2011-08-26 Thread Paul Johnson
Is there a movie demonstrating the Windows install of LyX (from start to end?).

Why I wish it were so:

I'm using Linux, but I have installed it in the occasional Windows
system.  The install is not like other Windows programs, there are
lots of ways people get it wrong and have to start over.  I've gotten
the install wrong and started over, students seem to hit that as well.
 One came in yesterday saying he couldn't compile to dvi.  I have no
idea how that happens.

Now I'm teaching 50 people in a stats class and I don't have time to
install LyX for all of them individually. I feel certain that if a
video could convey the idea that a sequence of separate pieces is to
be installed, and we need to make sure they all get done, one by one,
then the whole problem could be addressed.

PJ

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


Anybody make a ScreenCast video of the LyX WIndows installation?

2011-08-26 Thread Paul Johnson
Is there a movie demonstrating the Windows install of LyX (from start to end?).

Why I wish it were so:

I'm using Linux, but I have installed it in the occasional Windows
system.  The install is not like other Windows programs, there are
lots of ways people get it wrong and have to start over.  I've gotten
the install wrong and started over, students seem to hit that as well.
 One came in yesterday saying he couldn't compile to dvi.  I have no
idea how that happens.

Now I'm teaching 50 people in a stats class and I don't have time to
install LyX for all of them individually. I feel certain that if a
video could convey the idea that a sequence of separate pieces is to
be installed, and we need to make sure they all get done, one by one,
then the whole problem could be addressed.

PJ

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


Anybody make a ScreenCast video of the LyX WIndows installation?

2011-08-26 Thread Paul Johnson
Is there a movie demonstrating the Windows install of LyX (from start to end?).

Why I wish it were so:

I'm using Linux, but I have installed it in the occasional Windows
system.  The install is not like other Windows programs, there are
lots of ways people get it wrong and have to start over.  I've gotten
the install wrong and started over, students seem to hit that as well.
 One came in yesterday saying he couldn't compile to dvi.  I have no
idea how that happens.

Now I'm teaching 50 people in a stats class and I don't have time to
install LyX for all of them individually. I feel certain that if a
video could convey the idea that a sequence of separate pieces is to
be installed, and we need to make sure they all get done, one by one,
then the whole problem could be addressed.

PJ

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


Re: Including SAS output in latex

2011-02-12 Thread Paul Johnson
On Mon, Feb 7, 2011 at 12:51 AM, Sid Sahgal sahga...@gmail.com wrote:
 Hello,
     I am a new Lyx user. I want to include a latex file created by SAS ( a
 statistical software program). I follow the instructions on this website
 http://support.sas.com/rnd/base/ods/odsmarkup/latex.html.

Greetings

I've been doing a lot of stats work lately and I think I can suggest
an alternative that will be a bit better.

The Lyx insert- listings menu creates a little box, where you can
paste output if you want. Turn on the view latex option  in lyx.
Insert a program listing object, note this is very customizable.  A
listings box has right click config, set the language to SAS. It may
be exactly what you need.  In the latex code box, you see what lyx is
doing,

\begin{lstlisting}[language=SAS]

The output format for listing boxes is easily customizable, of course,
and there are many pre-defined styles for various languages.  I don't
happen to find a pre-defined one that matches my needs, but I have
learned that the preamble can define your own style to look the way
you want.   You experiment with that, and then your next step can be
to save your sas in separate text files and then use LaTeX input
commands to bring the file into your document.  As you note this is
nicer than re-running and then cutting and pasting again from Excel.

Here's a document i made in that way

http://pj.freefaculty.org/ps909/terminal-2.pdf

I'm pasting in the whole preamble below.  I needed to have listings
appear as-if they were from Sweave, but in fact they are not.  This
just takes the Rstyle that Frank Harrell created at Vanderbilt and
then extracts the customized listings commands.
It creates 2 styles for listings, Rstyle and Routstyle and then in
the document, when a listing, you can just use the LyX
insert-listings, and if you have the view latex source turned on,
you see the code it uses is:


\begin{lstlisting}
vi newthing.txt # The old school editor, probably strictly black and white
\end{lstlisting}

Because my preamble uses lstset to put Rstyle as the default, this
gives output with the right listings. But you can easily change. You
can either type this in ERT or in the listings optional settings,
there is a last menu tab where you can type on the right side
style=Routstyle, and the LaTeX markup ends up like this:

\begin{lstlisting}[style=Routstyle]
vi newthing.txt # The old school editor, probably strictly black and white
\end{lstlisting}

I DO NOT know the difference in meaning of language and style as
listings options, I've been doing this with styles, but as I inspect
what lyx does with the pull down menus (monitor the latex view,
again), I see it does language.

Now, how to input a separate file into a listing environment? The
manual for listings says you can do:

\lstinputlisting[language=SAS]{example.sas}

I just tested and found it accepts both options at the same time as well:

\lstinputlisting[language=SAS,style=Routstyle]{example.sas}

Oh, well.  I see this is difficult to describe.

I just decided to make you a working example:

http://pj.freefaculty.org/latex/smallExample.lyx

My example is a Beamer slide presentation, and there is a complication
that listings is not compatible with the default slide frame, so I
have to put those in in ERT. But if you download my example, I think
you can make it work.  Please note: Supply your own example.sas in
the working directory.

I hope this is my good deed for the day. Or I've not done too much damage.

pj

%%%That preamble, then %%

\usepackage{dcolumn}
\usepackage{booktabs}

% use 'handout' to produce handouts
%\documentclass[handout]{beamer}
\usepackage{wasysym}
\usepackage{pgfpages}
\newcommand{\vn}[1]{\mbox{{\it
#1}}}\newcommand{\vb}{\vspace{\baselineskip}}\newcommand{\vh}{\vspace{.5\baselineskip}}\newcommand{\vf}{\vspace{\fill}}\newcommand{\splus}{\textsf{S-PLUS}}\newcommand{\R}{\textsf{R}}


\usepackage{graphicx}
\usepackage{listings}

\modepresentation
{
  \usetheme{KU}
  \usecolortheme{dolphin} %dark blues
}

\usepackage{fancyvrb}
% In document Latex options:
\fvset{listparameters={\setlength{\topsep}{0em}}}
\def\Sweavesize{\normalsize}
\def\Rcolor{\color{black}}
\def\Rbackground{\color[gray]{0.95}}

\providecommand{\Rcolor}{\color[rgb]{0, 0.5, 0.5}}
\providecommand{\Routcolor}{\color[rgb]{0.461, 0.039, 0.102}}
\providecommand{\Rcommentcolor}{\color[rgb]{0.101, 0.043, 0.432}}

\providecommand{\Rbackground}{\color[gray]{0.91}}
\providecommand{\Routbackground}{\color[gray]{0.935}}
% Can specify \color[gray]{1} for white background or just \color{white}


\lstdefinestyle{Rstyle}{fancyvrb=false,escapechar=`,language=R,%
basicstyle={\Rcolor\Sweavesize},%
backgroundcolor=\Rbackground,%
showstringspaces=false,%
keywordstyle=\Rcolor,%
commentstyle={\Rcommentcolor\ttfamily\itshape},%


Re: Including SAS output in latex

2011-02-12 Thread Paul Johnson
On Mon, Feb 7, 2011 at 12:51 AM, Sid Sahgal sahga...@gmail.com wrote:
 Hello,
     I am a new Lyx user. I want to include a latex file created by SAS ( a
 statistical software program). I follow the instructions on this website
 http://support.sas.com/rnd/base/ods/odsmarkup/latex.html.

Greetings

I've been doing a lot of stats work lately and I think I can suggest
an alternative that will be a bit better.

The Lyx insert- listings menu creates a little box, where you can
paste output if you want. Turn on the view latex option  in lyx.
Insert a program listing object, note this is very customizable.  A
listings box has right click config, set the language to SAS. It may
be exactly what you need.  In the latex code box, you see what lyx is
doing,

\begin{lstlisting}[language=SAS]

The output format for listing boxes is easily customizable, of course,
and there are many pre-defined styles for various languages.  I don't
happen to find a pre-defined one that matches my needs, but I have
learned that the preamble can define your own style to look the way
you want.   You experiment with that, and then your next step can be
to save your sas in separate text files and then use LaTeX input
commands to bring the file into your document.  As you note this is
nicer than re-running and then cutting and pasting again from Excel.

Here's a document i made in that way

http://pj.freefaculty.org/ps909/terminal-2.pdf

I'm pasting in the whole preamble below.  I needed to have listings
appear as-if they were from Sweave, but in fact they are not.  This
just takes the Rstyle that Frank Harrell created at Vanderbilt and
then extracts the customized listings commands.
It creates 2 styles for listings, Rstyle and Routstyle and then in
the document, when a listing, you can just use the LyX
insert-listings, and if you have the view latex source turned on,
you see the code it uses is:


\begin{lstlisting}
vi newthing.txt # The old school editor, probably strictly black and white
\end{lstlisting}

Because my preamble uses lstset to put Rstyle as the default, this
gives output with the right listings. But you can easily change. You
can either type this in ERT or in the listings optional settings,
there is a last menu tab where you can type on the right side
style=Routstyle, and the LaTeX markup ends up like this:

\begin{lstlisting}[style=Routstyle]
vi newthing.txt # The old school editor, probably strictly black and white
\end{lstlisting}

I DO NOT know the difference in meaning of language and style as
listings options, I've been doing this with styles, but as I inspect
what lyx does with the pull down menus (monitor the latex view,
again), I see it does language.

Now, how to input a separate file into a listing environment? The
manual for listings says you can do:

\lstinputlisting[language=SAS]{example.sas}

I just tested and found it accepts both options at the same time as well:

\lstinputlisting[language=SAS,style=Routstyle]{example.sas}

Oh, well.  I see this is difficult to describe.

I just decided to make you a working example:

http://pj.freefaculty.org/latex/smallExample.lyx

My example is a Beamer slide presentation, and there is a complication
that listings is not compatible with the default slide frame, so I
have to put those in in ERT. But if you download my example, I think
you can make it work.  Please note: Supply your own example.sas in
the working directory.

I hope this is my good deed for the day. Or I've not done too much damage.

pj

%%%That preamble, then %%

\usepackage{dcolumn}
\usepackage{booktabs}

% use 'handout' to produce handouts
%\documentclass[handout]{beamer}
\usepackage{wasysym}
\usepackage{pgfpages}
\newcommand{\vn}[1]{\mbox{{\it
#1}}}\newcommand{\vb}{\vspace{\baselineskip}}\newcommand{\vh}{\vspace{.5\baselineskip}}\newcommand{\vf}{\vspace{\fill}}\newcommand{\splus}{\textsf{S-PLUS}}\newcommand{\R}{\textsf{R}}


\usepackage{graphicx}
\usepackage{listings}

\modepresentation
{
  \usetheme{KU}
  \usecolortheme{dolphin} %dark blues
}

\usepackage{fancyvrb}
% In document Latex options:
\fvset{listparameters={\setlength{\topsep}{0em}}}
\def\Sweavesize{\normalsize}
\def\Rcolor{\color{black}}
\def\Rbackground{\color[gray]{0.95}}

\providecommand{\Rcolor}{\color[rgb]{0, 0.5, 0.5}}
\providecommand{\Routcolor}{\color[rgb]{0.461, 0.039, 0.102}}
\providecommand{\Rcommentcolor}{\color[rgb]{0.101, 0.043, 0.432}}

\providecommand{\Rbackground}{\color[gray]{0.91}}
\providecommand{\Routbackground}{\color[gray]{0.935}}
% Can specify \color[gray]{1} for white background or just \color{white}


\lstdefinestyle{Rstyle}{fancyvrb=false,escapechar=`,language=R,%
basicstyle={\Rcolor\Sweavesize},%
backgroundcolor=\Rbackground,%
showstringspaces=false,%
keywordstyle=\Rcolor,%
commentstyle={\Rcommentcolor\ttfamily\itshape},%


Re: Including SAS output in latex

2011-02-12 Thread Paul Johnson
On Mon, Feb 7, 2011 at 12:51 AM, Sid Sahgal  wrote:
> Hello,
>     I am a new Lyx user. I want to include a latex file created by SAS ( a
> statistical software program). I follow the instructions on this website
> http://support.sas.com/rnd/base/ods/odsmarkup/latex.html.

Greetings

I've been doing a lot of stats work lately and I think I can suggest
an alternative that will be a bit better.

The Lyx insert-> listings menu creates a little box, where you can
paste output if you want. Turn on the view latex option  in lyx.
Insert a program listing object, note this is very customizable.  A
listings box has right click config, set the language to SAS. It may
be exactly what you need.  In the latex code box, you see what lyx is
doing,

\begin{lstlisting}[language=SAS]

The output format for listing boxes is easily customizable, of course,
and there are many pre-defined styles for various languages.  I don't
happen to find a pre-defined one that matches my needs, but I have
learned that the preamble can define your own style to look the way
you want.   You experiment with that, and then your next step can be
to save your sas in separate text files and then use LaTeX input
commands to bring the file into your document.  As you note this is
nicer than re-running and then cutting and pasting again from Excel.

Here's a document i made in that way

http://pj.freefaculty.org/ps909/terminal-2.pdf

I'm pasting in the whole preamble below.  I needed to have listings
appear as-if they were from Sweave, but in fact they are not.  This
just takes the Rstyle that Frank Harrell created at Vanderbilt and
then extracts the customized listings commands.
It creates 2 styles for listings, "Rstyle" and "Routstyle" and then in
the document, when a listing, you can just use the LyX
insert->listings, and if you have the "view latex source" turned on,
you see the code it uses is:


\begin{lstlisting}
vi newthing.txt # The old school editor, probably strictly black and white
\end{lstlisting}

Because my preamble uses "lstset" to put "Rstyle" as the default, this
gives output with the right listings. But you can easily change. You
can either type this in ERT or in the listings optional settings,
there is a last menu tab where you can type on the right side
"style=Routstyle", and the LaTeX markup ends up like this:

\begin{lstlisting}[style=Routstyle]
vi newthing.txt # The old school editor, probably strictly black and white
\end{lstlisting}

I DO NOT know the difference in meaning of "language" and "style" as
listings options, I've been doing this with styles, but as I inspect
what lyx does with the pull down menus (monitor the latex view,
again), I see it does language.

Now, how to input a separate file into a listing environment? The
manual for listings says you can do:

\lstinputlisting[language=SAS]{example.sas}

I just tested and found it accepts both options at the same time as well:

\lstinputlisting[language=SAS,style=Routstyle]{example.sas}

Oh, well.  I see this is difficult to describe.

I just decided to make you a working example:

http://pj.freefaculty.org/latex/smallExample.lyx

My example is a Beamer slide presentation, and there is a complication
that listings is not compatible with the default slide frame, so I
have to put those in in ERT. But if you download my example, I think
you can make it work.  Please note: Supply your own "example.sas" in
the working directory.

I hope this is my good deed for the day. Or I've not done too much damage.

pj

%%%That preamble, then %%

\usepackage{dcolumn}
\usepackage{booktabs}

% use 'handout' to produce handouts
%\documentclass[handout]{beamer}
\usepackage{wasysym}
\usepackage{pgfpages}
\newcommand{\vn}[1]{\mbox{{\it
#1}}}\newcommand{\vb}{\vspace{\baselineskip}}\newcommand{\vh}{\vspace{.5\baselineskip}}\newcommand{\vf}{\vspace{\fill}}\newcommand{\splus}{\textsf{S-PLUS}}\newcommand{\R}{\textsf{R}}


\usepackage{graphicx}
\usepackage{listings}

\mode
{
  \usetheme{KU}
  \usecolortheme{dolphin} %dark blues
}

\usepackage{fancyvrb}
% In document Latex options:
\fvset{listparameters={\setlength{\topsep}{0em}}}
\def\Sweavesize{\normalsize}
\def\Rcolor{\color{black}}
\def\Rbackground{\color[gray]{0.95}}

\providecommand{\Rcolor}{\color[rgb]{0, 0.5, 0.5}}
\providecommand{\Routcolor}{\color[rgb]{0.461, 0.039, 0.102}}
\providecommand{\Rcommentcolor}{\color[rgb]{0.101, 0.043, 0.432}}

\providecommand{\Rbackground}{\color[gray]{0.91}}
\providecommand{\Routbackground}{\color[gray]{0.935}}
% Can specify \color[gray]{1} for white background or just \color{white}


\lstdefinestyle{Rstyle}{fancyvrb=false,escapechar=`,language=R,%
basicstyle={\Rcolor\Sweavesize},%
backgroundcolor=\Rbackground,%
showstringspaces=false,%
keywordstyle=\Rcolor,%
commentstyle={\Rcommentcolor\ttfamily\itshape},%


Re: Ubuntu 10.10 - Unsuccessful installation

2011-02-11 Thread Paul Johnson
on Fri, Feb 11, 2011 at 9:55 AM, stefano franchi
stefano.fran...@gmail.com wrote:
 Try
 ./configure --with-version-suffix=-svn --enable-build-type=release



 I haven´t tried beta4, but later svn releases compile fine on my
 Ubuntu 10.10 installation.
 I do use the same configure options Liviu mentioned (see above).


 Stefano


On my Ubuntu 10.10 with the all of the pre-packaged compilers and
qt, I get a completely clean compile with all of the usual procedures.

And I have the full build output to prove it:

http://pj.freefaculty.org/latex/lyxbuild.txt

Because I saved all the output.  And I suggest the people who have
trouble on Ubuntu do the same virtuous thing so we can actually see
the whole dead body to perform the autopsy.  (Sorry, watching too many
CSI lately).

$ ./configure --prefix=/tmp/lyxb4  lyxbuild.txt 21

$ make  lyxbuild.txt 21

$ make install  lyxbuild.txt 21

pj

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


Re: Ubuntu 10.10 - Unsuccessful installation

2011-02-11 Thread Paul Johnson
on Fri, Feb 11, 2011 at 9:55 AM, stefano franchi
stefano.fran...@gmail.com wrote:
 Try
 ./configure --with-version-suffix=-svn --enable-build-type=release



 I haven´t tried beta4, but later svn releases compile fine on my
 Ubuntu 10.10 installation.
 I do use the same configure options Liviu mentioned (see above).


 Stefano


On my Ubuntu 10.10 with the all of the pre-packaged compilers and
qt, I get a completely clean compile with all of the usual procedures.

And I have the full build output to prove it:

http://pj.freefaculty.org/latex/lyxbuild.txt

Because I saved all the output.  And I suggest the people who have
trouble on Ubuntu do the same virtuous thing so we can actually see
the whole dead body to perform the autopsy.  (Sorry, watching too many
CSI lately).

$ ./configure --prefix=/tmp/lyxb4  lyxbuild.txt 21

$ make  lyxbuild.txt 21

$ make install  lyxbuild.txt 21

pj

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


Re: Ubuntu 10.10 - Unsuccessful installation

2011-02-11 Thread Paul Johnson
on Fri, Feb 11, 2011 at 9:55 AM, stefano franchi
 wrote:
>> Try
>> ./configure --with-version-suffix=-svn --enable-build-type=release
>>
>
>
> I haven´t tried beta4, but later svn releases compile fine on my
> Ubuntu 10.10 installation.
> I do use the same configure options Liviu mentioned (see above).
>
>
> Stefano
>

On my Ubuntu 10.10 with the all of the "pre-packaged" compilers and
qt, I get a completely clean compile with all of the usual procedures.

And I have the full build output to prove it:

http://pj.freefaculty.org/latex/lyxbuild.txt

Because I saved all the output.  And I suggest the people who have
trouble on Ubuntu do the same virtuous thing so we can actually see
the whole dead body to perform the autopsy.  (Sorry, watching too many
CSI lately).

$ ./configure --prefix=/tmp/lyxb4 > lyxbuild.txt 2>&1

$ make >> lyxbuild.txt 2>&1

$ make install >> lyxbuild.txt 2>&1

pj

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


hundreds of listings, 4 custom types.

2011-01-20 Thread Paul Johnson
I have a how to document with hundreds of code listings.  They do
not follow standard language definitions in lyx's listings options, I
have been trying to avoid doing the right-click on the listing to
customize every little bit in the output.

I'd like to write a lyx layout file that has the 4 types of listings
as environments or some other easy to choose way, and I'm a bit
stumped on how to do it.  I don't understand the FlexInset
documentation in the Customize guide, but before I hammer on that, I
need to make the plain old LaTeX markup work.  I can't even make a
successful LaTeX example using newenvironment.

If you look below at my example document ex.tex, you see I'm using a
style file Sweavel, and I've attached that as well

Sweavel provides the listings idioms in its own way, this works in ex.tex:

\begin{Schunk}
\begin{Sinput}
A wopr example -
\end{Sinput}
\end{Schunk}



So, I think to myself, I'll just put that in an environment and access
that from a LyX layout, but both latex and pdflatex can't process the
file. Here is what I tried:


In the preamble, add

\newenvironment{whopr}
{\begin{Schunk}\begin{Sinput}}
{\end{Sinput}\end{Schunk}}

Then use it

\begin{whopr}
some stuff
\end{whopr}

When I include those 3 lines, the compile just stops at an asterix.
There's no error, it just dies like so:

Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
2008/02/07 (tvz)) (/usr/local/share/texmf/tex/latex/Sweavel.sty
(/usr/share/texmf-texlive/tex/latex/graphics/color.sty
(/etc/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def))
(/usr/share/texmf-texlive/tex/latex/ltxmisc/relsize.sty)
(/usr/share/texmf-texlive/tex/latex/ae/ae.sty
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/latex/base/t1enc.def)
(/usr/share/texmf-texlive/tex/latex/ae/t1aer.fd)))
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/latex/base/t1enc.def))
(/usr/share/texmf/tex/latex/R/tex/latex/upquote.sty
(/usr/share/texmf-texlive/tex/latex/base/textcomp.sty
(/usr/share/texmf-texlive/tex/latex/base/ts1enc.def (./ex2.aux)
(/usr/share/texmf-texlive/tex/latex/base/ts1cmr.fd)
(/usr/share/texmf/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/share/texmf-texlive/tex/latex/listings/lstmisc.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstlang1.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstlang2.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstlang3.sty))
*



newenvironment will not cooperate with listings?

It is not absolutely vital for me to do this with Sweavel in
particular, but it does already provide the customized listings setup
to do what I want.

Schunk and Sinput are new environments in Sweavel, to save you trouble
of looking at full attached style file, here's the meat:


\newenvironment{Schunk}{}{}
\lstnewenvironment{Sinput}{\lstset{style=Rstyle}}{}


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


ex.tex
Description: TeX document
% Usage: \usepackage{Sweavel}
% To change size of R code and output, use e.g.: \def\Sweavesize{\normalsize}
% To change colors of R code, output, and commands, use e.g.:
% \def\Rcolor{\color{black}}
% \def\Routcolor{\color{green}}
% \def\Rcommentcolor{\color{red}}
% To change background color or R code and/or output, use e.g.:
% \def\Rbackground{\color{white}}
% \def\Routbackground{\color{white}}
% To use rgb specifications use \color[rgb]{ , , }
% To use gray scale use e.g. \color[gray]{0.5}
% If you change any of these after the first chunk is produced, the
% changes will have effect only for the next chunk.



\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{Sweavel}{}  % substitute for Sweave.sty using
 % listings package with relsize
\RequirePackage{listings,fancyvrb,color,relsize,ae}
\RequirePackage[T1]{fontenc}
\IfFileExists{upquote.sty}{\RequirePackage{upquote}}{}

\providecommand{\Sweavesize}{\smaller}

\providecommand{\Rcolor}{\color[rgb]{0, 0.5, 0.5}}
\providecommand{\Routcolor}{\color[rgb]{0.461, 0.039, 0.102}}
\providecommand{\Rcommentcolor}{\color[rgb]{0.101, 0.043, 0.432}}

\providecommand{\Rbackground}{\color[gray]{0.91}}
\providecommand{\Routbackground}{\color[gray]{0.935}}
% Can specify \color[gray]{1} for white background or just \color{white}


\lstdefinestyle{Rstyle}{fancyvrb=false,escapechar=`,language=R,%
basicstyle={\Rcolor\Sweavesize},%
backgroundcolor=\Rbackground,%
showstringspaces=false,%
keywordstyle=\Rcolor,%
commentstyle={\Rcommentcolor\ttfamily\itshape},%
literate={-}{{$\leftarrow$}}2{-}{{$\twoheadleftarrow$}}2{~}{{$\sim$}}1{=}{{$\leq$}}2{=}{{$\geq$}}2{^}{{$^{\scriptstyle\wedge}$}}1,%
alsoother={$},%
alsoletter={.-},%
 

hundreds of listings, 4 custom types.

2011-01-20 Thread Paul Johnson
I have a how to document with hundreds of code listings.  They do
not follow standard language definitions in lyx's listings options, I
have been trying to avoid doing the right-click on the listing to
customize every little bit in the output.

I'd like to write a lyx layout file that has the 4 types of listings
as environments or some other easy to choose way, and I'm a bit
stumped on how to do it.  I don't understand the FlexInset
documentation in the Customize guide, but before I hammer on that, I
need to make the plain old LaTeX markup work.  I can't even make a
successful LaTeX example using newenvironment.

If you look below at my example document ex.tex, you see I'm using a
style file Sweavel, and I've attached that as well

Sweavel provides the listings idioms in its own way, this works in ex.tex:

\begin{Schunk}
\begin{Sinput}
A wopr example -
\end{Sinput}
\end{Schunk}



So, I think to myself, I'll just put that in an environment and access
that from a LyX layout, but both latex and pdflatex can't process the
file. Here is what I tried:


In the preamble, add

\newenvironment{whopr}
{\begin{Schunk}\begin{Sinput}}
{\end{Sinput}\end{Schunk}}

Then use it

\begin{whopr}
some stuff
\end{whopr}

When I include those 3 lines, the compile just stops at an asterix.
There's no error, it just dies like so:

Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
2008/02/07 (tvz)) (/usr/local/share/texmf/tex/latex/Sweavel.sty
(/usr/share/texmf-texlive/tex/latex/graphics/color.sty
(/etc/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def))
(/usr/share/texmf-texlive/tex/latex/ltxmisc/relsize.sty)
(/usr/share/texmf-texlive/tex/latex/ae/ae.sty
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/latex/base/t1enc.def)
(/usr/share/texmf-texlive/tex/latex/ae/t1aer.fd)))
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/latex/base/t1enc.def))
(/usr/share/texmf/tex/latex/R/tex/latex/upquote.sty
(/usr/share/texmf-texlive/tex/latex/base/textcomp.sty
(/usr/share/texmf-texlive/tex/latex/base/ts1enc.def (./ex2.aux)
(/usr/share/texmf-texlive/tex/latex/base/ts1cmr.fd)
(/usr/share/texmf/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/share/texmf-texlive/tex/latex/listings/lstmisc.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstlang1.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstlang2.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstlang3.sty))
*



newenvironment will not cooperate with listings?

It is not absolutely vital for me to do this with Sweavel in
particular, but it does already provide the customized listings setup
to do what I want.

Schunk and Sinput are new environments in Sweavel, to save you trouble
of looking at full attached style file, here's the meat:


\newenvironment{Schunk}{}{}
\lstnewenvironment{Sinput}{\lstset{style=Rstyle}}{}


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


ex.tex
Description: TeX document
% Usage: \usepackage{Sweavel}
% To change size of R code and output, use e.g.: \def\Sweavesize{\normalsize}
% To change colors of R code, output, and commands, use e.g.:
% \def\Rcolor{\color{black}}
% \def\Routcolor{\color{green}}
% \def\Rcommentcolor{\color{red}}
% To change background color or R code and/or output, use e.g.:
% \def\Rbackground{\color{white}}
% \def\Routbackground{\color{white}}
% To use rgb specifications use \color[rgb]{ , , }
% To use gray scale use e.g. \color[gray]{0.5}
% If you change any of these after the first chunk is produced, the
% changes will have effect only for the next chunk.



\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{Sweavel}{}  % substitute for Sweave.sty using
 % listings package with relsize
\RequirePackage{listings,fancyvrb,color,relsize,ae}
\RequirePackage[T1]{fontenc}
\IfFileExists{upquote.sty}{\RequirePackage{upquote}}{}

\providecommand{\Sweavesize}{\smaller}

\providecommand{\Rcolor}{\color[rgb]{0, 0.5, 0.5}}
\providecommand{\Routcolor}{\color[rgb]{0.461, 0.039, 0.102}}
\providecommand{\Rcommentcolor}{\color[rgb]{0.101, 0.043, 0.432}}

\providecommand{\Rbackground}{\color[gray]{0.91}}
\providecommand{\Routbackground}{\color[gray]{0.935}}
% Can specify \color[gray]{1} for white background or just \color{white}


\lstdefinestyle{Rstyle}{fancyvrb=false,escapechar=`,language=R,%
basicstyle={\Rcolor\Sweavesize},%
backgroundcolor=\Rbackground,%
showstringspaces=false,%
keywordstyle=\Rcolor,%
commentstyle={\Rcommentcolor\ttfamily\itshape},%
literate={-}{{$\leftarrow$}}2{-}{{$\twoheadleftarrow$}}2{~}{{$\sim$}}1{=}{{$\leq$}}2{=}{{$\geq$}}2{^}{{$^{\scriptstyle\wedge}$}}1,%
alsoother={$},%
alsoletter={.-},%
 

hundreds of listings, 4 custom types.

2011-01-20 Thread Paul Johnson
I have a "how to" document with hundreds of code listings.  They do
not follow standard language definitions in lyx's listings options, I
have been trying to avoid doing the right-click on the listing to
customize every little bit in the output.

I'd like to write a lyx layout file that has the 4 types of listings
as environments or some other easy to choose way, and I'm a bit
stumped on how to do it.  I don't understand the FlexInset
documentation in the Customize guide, but before I hammer on that, I
need to make the plain old LaTeX markup work.  I can't even make a
successful LaTeX example using newenvironment.

If you look below at my example document "ex.tex", you see I'm using a
style file Sweavel, and I've attached that as well

Sweavel provides the listings idioms in its own way, this works in ex.tex:

\begin{Schunk}
\begin{Sinput}
A wopr example <-
\end{Sinput}
\end{Schunk}



So, I think to myself, I'll just put that in an environment and access
that from a LyX layout, but both latex and pdflatex can't process the
file. Here is what I tried:


In the preamble, add

\newenvironment{whopr}
{\begin{Schunk}\begin{Sinput}}
{\end{Sinput}\end{Schunk}}

Then use it

\begin{whopr}
some stuff
\end{whopr}

When I include those 3 lines, the compile just stops at an asterix.
There's no error, it just dies like so:

Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix
<2008/02/07> (tvz)) (/usr/local/share/texmf/tex/latex/Sweavel.sty
(/usr/share/texmf-texlive/tex/latex/graphics/color.sty
(/etc/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def))
(/usr/share/texmf-texlive/tex/latex/ltxmisc/relsize.sty)
(/usr/share/texmf-texlive/tex/latex/ae/ae.sty
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/latex/base/t1enc.def)
(/usr/share/texmf-texlive/tex/latex/ae/t1aer.fd)))
(/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
(/usr/share/texmf-texlive/tex/latex/base/t1enc.def))
(/usr/share/texmf/tex/latex/R/tex/latex/upquote.sty
(/usr/share/texmf-texlive/tex/latex/base/textcomp.sty
(/usr/share/texmf-texlive/tex/latex/base/ts1enc.def (./ex2.aux)
(/usr/share/texmf-texlive/tex/latex/base/ts1cmr.fd)
(/usr/share/texmf/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/share/texmf-texlive/tex/latex/listings/lstmisc.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstlang1.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstlang2.sty)
(/usr/share/texmf-texlive/tex/latex/listings/lstlang3.sty))
*



newenvironment will not cooperate with listings?

It is not absolutely vital for me to do this with Sweavel in
particular, but it does already provide the customized listings setup
to do what I want.

Schunk and Sinput are new environments in Sweavel, to save you trouble
of looking at full attached style file, here's the meat:


\newenvironment{Schunk}{}{}
\lstnewenvironment{Sinput}{\lstset{style=Rstyle}}{}


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


ex.tex
Description: TeX document
% Usage: \usepackage{Sweavel}
% To change size of R code and output, use e.g.: \def\Sweavesize{\normalsize}
% To change colors of R code, output, and commands, use e.g.:
% \def\Rcolor{\color{black}}
% \def\Routcolor{\color{green}}
% \def\Rcommentcolor{\color{red}}
% To change background color or R code and/or output, use e.g.:
% \def\Rbackground{\color{white}}
% \def\Routbackground{\color{white}}
% To use rgb specifications use \color[rgb]{ , , }
% To use gray scale use e.g. \color[gray]{0.5}
% If you change any of these after the first chunk is produced, the
% changes will have effect only for the next chunk.



\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{Sweavel}{}  % substitute for Sweave.sty using
 % listings package with relsize
\RequirePackage{listings,fancyvrb,color,relsize,ae}
\RequirePackage[T1]{fontenc}
\IfFileExists{upquote.sty}{\RequirePackage{upquote}}{}

\providecommand{\Sweavesize}{\smaller}

\providecommand{\Rcolor}{\color[rgb]{0, 0.5, 0.5}}
\providecommand{\Routcolor}{\color[rgb]{0.461, 0.039, 0.102}}
\providecommand{\Rcommentcolor}{\color[rgb]{0.101, 0.043, 0.432}}

\providecommand{\Rbackground}{\color[gray]{0.91}}
\providecommand{\Routbackground}{\color[gray]{0.935}}
% Can specify \color[gray]{1} for white background or just \color{white}


\lstdefinestyle{Rstyle}{fancyvrb=false,escapechar=`,language=R,%
basicstyle={\Rcolor\Sweavesize},%
backgroundcolor=\Rbackground,%
showstringspaces=false,%
keywordstyle=\Rcolor,%
commentstyle={\Rcommentcolor\ttfamily\itshape},%
literate={<-}{{$\leftarrow$}}2{<<-}{{$\twoheadleftarrow$}}2{~}{{$\sim$}}1{<=}{{$\leq$}}2{>=}{{$\geq$}}2{^}{{$^{\scriptstyle\wedge}$}}1,%
alsoother={$},%

Re: Copying From PDF

2011-01-05 Thread Paul Johnson
On Tue, Jan 4, 2011 at 8:48 AM, Bruce Pourciau
bruce.h.pourc...@lawrence.edu wrote:
 I have copied some passages from a pdf and pasted them into a LyX document.
 When I view this LyX document, the pasted in passages display some odd
 formatting: some lines extend beyond the margins and there seem to be extra
 spaces between some words. And the pasted in passages resist fixing.

 Any advice?


Others suggest doing more work to prepare the input material, but I'd
suggest you go in the other direction.

Close lyx.  make a copy of your lyx document.   Then:

Open that lyx file in an editor like Emacs, (any pure text editor will
do, Eclipse, Programmer's File editor, Notepad++, you get the idea?)
and you will be able to see that the funny formatting and other flaws
are caused by formatting markup that came in with your paste.  Quite
often, when I paste into LyX from other programs, there are all kinds
of set language and font commands.  If you look at a normal Lyx
paragraph, you will easily see what you have to do to fix the troubled
PDF part.  Just trim down to a working paragraph format, save, open
the document in LyX. And live happily ever after.

In times like this, it would be nice if LyX had an old-fashioned
reveal codes window like Word Perfect used to have.  When text comes
out funny, it is almost always because of some hidden formatting that
you didn't realize was there.



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


Re: Copying From PDF

2011-01-05 Thread Paul Johnson
On Tue, Jan 4, 2011 at 8:48 AM, Bruce Pourciau
bruce.h.pourc...@lawrence.edu wrote:
 I have copied some passages from a pdf and pasted them into a LyX document.
 When I view this LyX document, the pasted in passages display some odd
 formatting: some lines extend beyond the margins and there seem to be extra
 spaces between some words. And the pasted in passages resist fixing.

 Any advice?


Others suggest doing more work to prepare the input material, but I'd
suggest you go in the other direction.

Close lyx.  make a copy of your lyx document.   Then:

Open that lyx file in an editor like Emacs, (any pure text editor will
do, Eclipse, Programmer's File editor, Notepad++, you get the idea?)
and you will be able to see that the funny formatting and other flaws
are caused by formatting markup that came in with your paste.  Quite
often, when I paste into LyX from other programs, there are all kinds
of set language and font commands.  If you look at a normal Lyx
paragraph, you will easily see what you have to do to fix the troubled
PDF part.  Just trim down to a working paragraph format, save, open
the document in LyX. And live happily ever after.

In times like this, it would be nice if LyX had an old-fashioned
reveal codes window like Word Perfect used to have.  When text comes
out funny, it is almost always because of some hidden formatting that
you didn't realize was there.



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


Re: Copying From PDF

2011-01-05 Thread Paul Johnson
On Tue, Jan 4, 2011 at 8:48 AM, Bruce Pourciau
 wrote:
> I have copied some passages from a pdf and pasted them into a LyX document.
> When I view this LyX document, the pasted in passages display some odd
> formatting: some lines extend beyond the margins and there seem to be extra
> spaces between some words. And the pasted in passages resist fixing.
>
> Any advice?
>

Others suggest doing more work to prepare the input material, but I'd
suggest you go in the other direction.

Close lyx.  make a copy of your lyx document.   Then:

Open that lyx file in an editor like Emacs, (any pure text editor will
do, Eclipse, Programmer's File editor, Notepad++, you get the idea?)
and you will be able to see that the funny formatting and other flaws
are caused by formatting markup that came in with your paste.  Quite
often, when I paste into LyX from other programs, there are all kinds
of set language and font commands.  If you look at a "normal" Lyx
paragraph, you will easily see what you have to do to fix the troubled
PDF part.  Just trim down to a working paragraph format, save, open
the document in LyX. And live happily ever after.

In times like this, it would be nice if LyX had an old-fashioned
"reveal codes" window like Word Perfect used to have.  When text comes
out funny, it is almost always because of some hidden formatting that
you didn't realize was there.



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


inkscape with LaTeX markup: need an external document option?

2010-11-23 Thread Paul Johnson
I've been trying to understand how LyX's new (in 1.6.7) ability to
import svg via inkscape can cooperate with LaTeX markup.  I've been
experimenting with the inkscape textext extension, but, as others
have noticed, it is a bit dicey to install and sometimes has
unpredictable output.

As an alternative approach, it appears that inkscape 0.48 has an
exporter to make pdf_tex.  It is very similar to the ps+TeX approach
we used to use with xfig before LyX made the external document
interface to fig files.

There's a mention of this here:

http://wiki.inkscape.org/wiki/index.php/LaTeX

That points to CTAN here:

http://www.ctan.org/tex-archive/info/svg-inkscape/

I'm trying to see how that might work.  In the inkscape document, I
inserted text with markup $\gamma$.
Then in LyX I import as graphics, but the Latex markup does not get
converted to math.  It just appears as $\gamma$.

I've tested the CLI approach:

$ inkscape -D -z --file=draw.svg --export-pdf=draw.pdf --export-latex

It does work to create

draw.pdf

and

draw.pdf_tex

I can't seem to understand the last step of using that with LyX.

Suggestions?

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


inkscape with LaTeX markup: need an external document option?

2010-11-23 Thread Paul Johnson
I've been trying to understand how LyX's new (in 1.6.7) ability to
import svg via inkscape can cooperate with LaTeX markup.  I've been
experimenting with the inkscape textext extension, but, as others
have noticed, it is a bit dicey to install and sometimes has
unpredictable output.

As an alternative approach, it appears that inkscape 0.48 has an
exporter to make pdf_tex.  It is very similar to the ps+TeX approach
we used to use with xfig before LyX made the external document
interface to fig files.

There's a mention of this here:

http://wiki.inkscape.org/wiki/index.php/LaTeX

That points to CTAN here:

http://www.ctan.org/tex-archive/info/svg-inkscape/

I'm trying to see how that might work.  In the inkscape document, I
inserted text with markup $\gamma$.
Then in LyX I import as graphics, but the Latex markup does not get
converted to math.  It just appears as $\gamma$.

I've tested the CLI approach:

$ inkscape -D -z --file=draw.svg --export-pdf=draw.pdf --export-latex

It does work to create

draw.pdf

and

draw.pdf_tex

I can't seem to understand the last step of using that with LyX.

Suggestions?

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


inkscape with LaTeX markup: need an external document option?

2010-11-23 Thread Paul Johnson
I've been trying to understand how LyX's new (in 1.6.7) ability to
import svg via inkscape can cooperate with LaTeX markup.  I've been
experimenting with the inkscape "textext" extension, but, as others
have noticed, it is a bit dicey to install and sometimes has
unpredictable output.

As an alternative approach, it appears that inkscape 0.48 has an
exporter to make pdf_tex.  It is very similar to the ps+TeX approach
we used to use with xfig before LyX made the external document
interface to fig files.

There's a mention of this here:

http://wiki.inkscape.org/wiki/index.php/LaTeX

That points to CTAN here:

http://www.ctan.org/tex-archive/info/svg-inkscape/

I'm trying to see how that might work.  In the inkscape document, I
inserted text with markup $\gamma$.
Then in LyX I import as graphics, but the Latex markup does not get
converted to math.  It just appears as $\gamma$.

I've tested the CLI approach:

$ inkscape -D -z --file=draw.svg --export-pdf=draw.pdf --export-latex

It does work to create

draw.pdf

and

draw.pdf_tex

I can't seem to understand the last step of using that with LyX.

Suggestions?

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


Noweb Sweave question: Need help to copy folder from lyx temp back to current document directory.

2010-08-28 Thread Paul Johnson
gmail just sent me a message that this post was not sent through on
Wednesday because it could not contact lyx-users. So I'm trying again.
Sorry if it is a repost.

In Sweave, we process a noweb document first through R to generate the
tex file, and then the usual processing occurs.

Because not all LyX/LaTeX systems have the noweb setup, it is
necessary for me to develop my document with Sweave/Lyx, and then save
the generated files (in a folder plots) and use them in the final
document without invoking Sweave.  I do this with LyX branches. I have
a branch for the Sweave commands that generates the files in plots,
and then I have \includegraphics{} or \input{} as needed.

It mostly works fine, there is just a wrinkle that bothers me. So far,
I have just used brute force to copy the whole plots folder from the
working directory back to the document root with a command inside the
document itself.

copyover, fig=F, echo=T, include=T=
system(rsync -ra plots /home/pauljohn/ps/ps707/Workbook/Workbook-plot)
@

That is OK, except I have to hardcode the document directory.  And
no matter what I do, it seems like I have to process the document
through latex twice. The first time I run the process in LyX, it runs
the document through R Sweave and it makes the plots, but when the
pdflatex run happens,


LaTeX Error: Cannot determine size of grpahic in plots/plot-gss.pdf

After that, I check the plots folder in the document directory and the
files are copied over.  But they are not there fast enough to make
pdflatex happy? Really?

I was thinking there must be some work around in LyX config.  It the
LyX documents, I find info on converters and copiers and  $$p or  $$r.

The converter in .lyx/preferences, I have converters like so:

#
# CONVERTERS SECTION ##
#

\converter literate latex R CMD Sweave $$i 
\converter literate pdflatex R CMD Sweave $$i 
\converter literate r R CMD Stangle $$i 
##

Put the copy on the end of the converter:

\converter literate pdflatex R CMD Sweave $$i  cp -R plots $$r 

I believe it SHOULD work. The plot folder DOES get copied over.
However,  still not fast enough. I still see LaTeX errors:

LaTeX Error: Cannot determine size of graphic in plots/plot-gss.pdf

If I run everything through again, then the document goes get created.

But this is bad because the whole project has to be run through the R
Sweave process two times.

What do you think?

If you tell me how to fix this, I will feel happy.  In return, I will
show you the LyX file that uses Frank Harrell's Sweavel.sty (Sweave
using the listings class), which is nicer looking:

http://pj.freefaculty.org/latex/sweavel-01.pdf

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


Noweb Sweave question: Need help to copy folder from lyx temp back to current document directory.

2010-08-28 Thread Paul Johnson
gmail just sent me a message that this post was not sent through on
Wednesday because it could not contact lyx-users. So I'm trying again.
Sorry if it is a repost.

In Sweave, we process a noweb document first through R to generate the
tex file, and then the usual processing occurs.

Because not all LyX/LaTeX systems have the noweb setup, it is
necessary for me to develop my document with Sweave/Lyx, and then save
the generated files (in a folder plots) and use them in the final
document without invoking Sweave.  I do this with LyX branches. I have
a branch for the Sweave commands that generates the files in plots,
and then I have \includegraphics{} or \input{} as needed.

It mostly works fine, there is just a wrinkle that bothers me. So far,
I have just used brute force to copy the whole plots folder from the
working directory back to the document root with a command inside the
document itself.

copyover, fig=F, echo=T, include=T=
system(rsync -ra plots /home/pauljohn/ps/ps707/Workbook/Workbook-plot)
@

That is OK, except I have to hardcode the document directory.  And
no matter what I do, it seems like I have to process the document
through latex twice. The first time I run the process in LyX, it runs
the document through R Sweave and it makes the plots, but when the
pdflatex run happens,


LaTeX Error: Cannot determine size of grpahic in plots/plot-gss.pdf

After that, I check the plots folder in the document directory and the
files are copied over.  But they are not there fast enough to make
pdflatex happy? Really?

I was thinking there must be some work around in LyX config.  It the
LyX documents, I find info on converters and copiers and  $$p or  $$r.

The converter in .lyx/preferences, I have converters like so:

#
# CONVERTERS SECTION ##
#

\converter literate latex R CMD Sweave $$i 
\converter literate pdflatex R CMD Sweave $$i 
\converter literate r R CMD Stangle $$i 
##

Put the copy on the end of the converter:

\converter literate pdflatex R CMD Sweave $$i  cp -R plots $$r 

I believe it SHOULD work. The plot folder DOES get copied over.
However,  still not fast enough. I still see LaTeX errors:

LaTeX Error: Cannot determine size of graphic in plots/plot-gss.pdf

If I run everything through again, then the document goes get created.

But this is bad because the whole project has to be run through the R
Sweave process two times.

What do you think?

If you tell me how to fix this, I will feel happy.  In return, I will
show you the LyX file that uses Frank Harrell's Sweavel.sty (Sweave
using the listings class), which is nicer looking:

http://pj.freefaculty.org/latex/sweavel-01.pdf

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


Noweb Sweave question: Need help to copy folder from lyx temp back to current document directory.

2010-08-28 Thread Paul Johnson
gmail just sent me a message that this post was not sent through on
Wednesday because it could not contact lyx-users. So I'm trying again.
Sorry if it is a repost.

In Sweave, we process a noweb document first through R to generate the
tex file, and then the usual processing occurs.

Because not all LyX/LaTeX systems have the noweb setup, it is
necessary for me to develop my document with Sweave/Lyx, and then save
the generated files (in a folder "plots") and use them in the final
document without invoking Sweave.  I do this with LyX branches. I have
a branch for the Sweave commands that generates the files in "plots",
and then I have \includegraphics{} or \input{} as needed.

It mostly works fine, there is just a wrinkle that bothers me. So far,
I have just used brute force to copy the whole "plots" folder from the
working directory back to the document root with a command inside the
document itself.

<>=
system("rsync -ra plots /home/pauljohn/ps/ps707/Workbook/Workbook-plot")
@

That is OK, except I have to "hardcode" the document directory.  And
no matter what I do, it seems like I have to process the document
through latex twice. The first time I run the process in LyX, it runs
the document through R Sweave and it makes the plots, but when the
pdflatex run happens,


LaTeX Error: Cannot determine size of grpahic in plots/plot-gss.pdf

After that, I check the plots folder in the document directory and the
files are copied over.  But they are not there "fast enough" to make
pdflatex happy? Really?

I was thinking there must be some work around in LyX config.  It the
LyX documents, I find info on converters and copiers and  $$p or  $$r.

The converter in .lyx/preferences, I have converters like so:

#
# CONVERTERS SECTION ##
#

\converter "literate" "latex" "R CMD Sweave $$i" ""
\converter "literate" "pdflatex" "R CMD Sweave $$i" ""
\converter "literate" "r" "R CMD Stangle $$i" ""
##

Put the copy on the end of the converter:

\converter "literate" "pdflatex" "R CMD Sweave $$i && cp -R plots $$r" ""

I believe it SHOULD work. The plot folder DOES get copied over.
However,  still not fast enough. I still see LaTeX errors:

LaTeX Error: Cannot determine size of graphic in plots/plot-gss.pdf

If I run everything through again, then the document goes get created.

But this is bad because the whole project has to be run through the R
Sweave process two times.

What do you think?

If you tell me how to fix this, I will feel happy.  In return, I will
show you the LyX file that uses Frank Harrell's Sweavel.sty (Sweave
using the listings class), which is nicer looking:

http://pj.freefaculty.org/latex/sweavel-01.pdf

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


Noweb Sweave question: Need help to copy folder from lyx temp back to current document directory.

2010-08-27 Thread Paul Johnson
In Sweave, we process a noweb document first through R to generate the
tex file, and then the usual processing occurs.

Because not all LyX/LaTeX systems have the noweb setup, it is
necessary for me to develop my document with Sweave/Lyx, and then save
the generated files (in a folder plots) and use them in the final
document without invoking Sweave.  I do this with LyX branches. I have
a branch for the Sweave commands that generates the files in plots,
and then I have \includegraphics{} or \input{} as needed.

It mostly works fine, there is just a wrinkle that bothers me. So far,
I have just used brute force to copy the whole plots folder from the
working directory back to the document root with a command inside the
document itself.

copyover, fig=F, echo=T, include=T=
system(rsync -ra plots /home/pauljohn/ps/ps707/Workbook/Workbook-plot)
@

That is OK, except I have to hardcode the document directory.  And
no matter what I do, it seems like I have to process the document
through latex twice. The first time I run the process in LyX, it runs
the document through R Sweave and it makes the plots, but when the
pdflatex run happens,


LaTeX Error: Cannot determine size of grpahic in plots/plot-gss.pdf

After that, I check the plots folder in the document directory and the
files are copied over.  But they are not there fast enough to make
pdflatex happy? Really?

I was thinking there must be some work around in LyX config.  It the
LyX documents, I find info on converters and copiers and  $$p or  $$r.

The converter in .lyx/preferences, I have converters like so:

#
# CONVERTERS SECTION ##
#

\converter literate latex R CMD Sweave $$i 
\converter literate pdflatex R CMD Sweave $$i 
\converter literate r R CMD Stangle $$i 
##

Put the copy on the end of the converter:

\converter literate pdflatex R CMD Sweave $$i  cp -R plots $$r 

I believe it SHOULD work. The plot folder DOES get copied over.
However,  still not fast enough. I still see LaTeX errors:

LaTeX Error: Cannot determine size of graphic in plots/plot-gss.pdf

If I run everything through again, then the document goes get created.

But this is bad because the whole project has to be run through the R
Sweave process two times.

What do you think?

If you tell me how to fix this, I will feel happy.  In return, I will
show you the LyX file that uses Frank Harrell's Sweavel.sty (Sweave
using the listings class), which is nicer looking:

http://pj.freefaculty.org/latex/sweavel-01.pdf

pj


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


Noweb Sweave question: Need help to copy folder from lyx temp back to current document directory.

2010-08-27 Thread Paul Johnson
In Sweave, we process a noweb document first through R to generate the
tex file, and then the usual processing occurs.

Because not all LyX/LaTeX systems have the noweb setup, it is
necessary for me to develop my document with Sweave/Lyx, and then save
the generated files (in a folder plots) and use them in the final
document without invoking Sweave.  I do this with LyX branches. I have
a branch for the Sweave commands that generates the files in plots,
and then I have \includegraphics{} or \input{} as needed.

It mostly works fine, there is just a wrinkle that bothers me. So far,
I have just used brute force to copy the whole plots folder from the
working directory back to the document root with a command inside the
document itself.

copyover, fig=F, echo=T, include=T=
system(rsync -ra plots /home/pauljohn/ps/ps707/Workbook/Workbook-plot)
@

That is OK, except I have to hardcode the document directory.  And
no matter what I do, it seems like I have to process the document
through latex twice. The first time I run the process in LyX, it runs
the document through R Sweave and it makes the plots, but when the
pdflatex run happens,


LaTeX Error: Cannot determine size of grpahic in plots/plot-gss.pdf

After that, I check the plots folder in the document directory and the
files are copied over.  But they are not there fast enough to make
pdflatex happy? Really?

I was thinking there must be some work around in LyX config.  It the
LyX documents, I find info on converters and copiers and  $$p or  $$r.

The converter in .lyx/preferences, I have converters like so:

#
# CONVERTERS SECTION ##
#

\converter literate latex R CMD Sweave $$i 
\converter literate pdflatex R CMD Sweave $$i 
\converter literate r R CMD Stangle $$i 
##

Put the copy on the end of the converter:

\converter literate pdflatex R CMD Sweave $$i  cp -R plots $$r 

I believe it SHOULD work. The plot folder DOES get copied over.
However,  still not fast enough. I still see LaTeX errors:

LaTeX Error: Cannot determine size of graphic in plots/plot-gss.pdf

If I run everything through again, then the document goes get created.

But this is bad because the whole project has to be run through the R
Sweave process two times.

What do you think?

If you tell me how to fix this, I will feel happy.  In return, I will
show you the LyX file that uses Frank Harrell's Sweavel.sty (Sweave
using the listings class), which is nicer looking:

http://pj.freefaculty.org/latex/sweavel-01.pdf

pj


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


Noweb Sweave question: Need help to copy folder from lyx temp back to current document directory.

2010-08-27 Thread Paul Johnson
In Sweave, we process a noweb document first through R to generate the
tex file, and then the usual processing occurs.

Because not all LyX/LaTeX systems have the noweb setup, it is
necessary for me to develop my document with Sweave/Lyx, and then save
the generated files (in a folder "plots") and use them in the final
document without invoking Sweave.  I do this with LyX branches. I have
a branch for the Sweave commands that generates the files in "plots",
and then I have \includegraphics{} or \input{} as needed.

It mostly works fine, there is just a wrinkle that bothers me. So far,
I have just used brute force to copy the whole "plots" folder from the
working directory back to the document root with a command inside the
document itself.

<>=
system("rsync -ra plots /home/pauljohn/ps/ps707/Workbook/Workbook-plot")
@

That is OK, except I have to "hardcode" the document directory.  And
no matter what I do, it seems like I have to process the document
through latex twice. The first time I run the process in LyX, it runs
the document through R Sweave and it makes the plots, but when the
pdflatex run happens,


LaTeX Error: Cannot determine size of grpahic in plots/plot-gss.pdf

After that, I check the plots folder in the document directory and the
files are copied over.  But they are not there "fast enough" to make
pdflatex happy? Really?

I was thinking there must be some work around in LyX config.  It the
LyX documents, I find info on converters and copiers and  $$p or  $$r.

The converter in .lyx/preferences, I have converters like so:

#
# CONVERTERS SECTION ##
#

\converter "literate" "latex" "R CMD Sweave $$i" ""
\converter "literate" "pdflatex" "R CMD Sweave $$i" ""
\converter "literate" "r" "R CMD Stangle $$i" ""
##

Put the copy on the end of the converter:

\converter "literate" "pdflatex" "R CMD Sweave $$i && cp -R plots $$r" ""

I believe it SHOULD work. The plot folder DOES get copied over.
However,  still not fast enough. I still see LaTeX errors:

LaTeX Error: Cannot determine size of graphic in plots/plot-gss.pdf

If I run everything through again, then the document goes get created.

But this is bad because the whole project has to be run through the R
Sweave process two times.

What do you think?

If you tell me how to fix this, I will feel happy.  In return, I will
show you the LyX file that uses Frank Harrell's Sweavel.sty (Sweave
using the listings class), which is nicer looking:

http://pj.freefaculty.org/latex/sweavel-01.pdf

pj


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


Re: Biblio problem: extra 'crap' at end of citation

2010-07-27 Thread Paul Johnson
 On 23/07/2010 11:17 AM, Paul Johnson wrote:

 Hi, everybody.

 In the last year or so, I've been testing services like CiteULike and
 Zotero to build a biblio database as I research.

 I notice only one substantial problem. The citations from those online
 services have extraneous information that I don't want to appear in
 the bibliography.

 L’Ecuyer, P., Simard, R., Chen, E. J., and Kelton, W. D. (2002). An
 Object-Oriented Random-
 Number package with many long streams and substreams. Operations
 Research, 50(6):1073–1075.
 ArticleType: primary_article / Full publication date: Nov. - Dec.,
 2002 / Copyright  c 2002
 INFORMS.


Hi, everybody. I want you to know I found a good solution.

The BibTeX exporter in zotero includes stuff that most biblio styles
will include, even though you don't want them.

The fix is a better exporter from zotero.  The low fat and non fat
bibtex formats are just the fix I needed.  I found this by searching
in the zotero forum, the install is easy, just drop a java script file
in zotero/translators, and then use it to export to bibtex.

zotero-bibtex-sb is at this address:

http://github.com/commonman/zotero-bibtex-sb/blob/5d51eb68719b5415761af12dbea483649f8141c2/README.org

In case that link doesn't come through the email , just google zotero
bibtex non fat and you come to the right link at the top.

This does not work with LyZ (zotero plugin for LyX) because LyZ
doesn't have a place where you specify the translator, it always uses
the default. Probably would be easy to fix, though.

pj

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


Re: Biblio problem: extra 'crap' at end of citation

2010-07-27 Thread Paul Johnson
 On 23/07/2010 11:17 AM, Paul Johnson wrote:

 Hi, everybody.

 In the last year or so, I've been testing services like CiteULike and
 Zotero to build a biblio database as I research.

 I notice only one substantial problem. The citations from those online
 services have extraneous information that I don't want to appear in
 the bibliography.

 L’Ecuyer, P., Simard, R., Chen, E. J., and Kelton, W. D. (2002). An
 Object-Oriented Random-
 Number package with many long streams and substreams. Operations
 Research, 50(6):1073–1075.
 ArticleType: primary_article / Full publication date: Nov. - Dec.,
 2002 / Copyright  c 2002
 INFORMS.


Hi, everybody. I want you to know I found a good solution.

The BibTeX exporter in zotero includes stuff that most biblio styles
will include, even though you don't want them.

The fix is a better exporter from zotero.  The low fat and non fat
bibtex formats are just the fix I needed.  I found this by searching
in the zotero forum, the install is easy, just drop a java script file
in zotero/translators, and then use it to export to bibtex.

zotero-bibtex-sb is at this address:

http://github.com/commonman/zotero-bibtex-sb/blob/5d51eb68719b5415761af12dbea483649f8141c2/README.org

In case that link doesn't come through the email , just google zotero
bibtex non fat and you come to the right link at the top.

This does not work with LyZ (zotero plugin for LyX) because LyZ
doesn't have a place where you specify the translator, it always uses
the default. Probably would be easy to fix, though.

pj

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


Re: Biblio problem: extra 'crap' at end of citation

2010-07-27 Thread Paul Johnson
> On 23/07/2010 11:17 AM, Paul Johnson wrote:
>>
>> Hi, everybody.
>>
>> In the last year or so, I've been testing services like CiteULike and
>> Zotero to build a biblio database as I research.

>> I notice only one substantial problem. The citations from those online
>> services have extraneous information that I don't want to appear in
>> the bibliography.
>>
>> L’Ecuyer, P., Simard, R., Chen, E. J., and Kelton, W. D. (2002). An
>> Object-Oriented Random-
>> Number package with many long streams and substreams. Operations
>> Research, 50(6):1073–1075.
>> ArticleType: primary_article / Full publication date: Nov. - Dec.,
>> 2002 / Copyright  c 2002
>> INFORMS.
>>

Hi, everybody. I want you to know I found a good solution.

The BibTeX exporter in zotero includes stuff that most biblio styles
will include, even though you don't want them.

The fix is a better exporter from zotero.  The "low fat" and "non fat"
bibtex formats are just the fix I needed.  I found this by searching
in the zotero forum, the install is easy, just drop a java script file
in zotero/translators, and then use it to export to bibtex.

zotero-bibtex-sb is at this address:

http://github.com/commonman/zotero-bibtex-sb/blob/5d51eb68719b5415761af12dbea483649f8141c2/README.org

In case that link doesn't come through the email , just google "zotero
bibtex non fat" and you come to the right link at the top.

This does not work with LyZ (zotero plugin for LyX) because LyZ
doesn't have a place where you specify the translator, it always uses
the default. Probably would be easy to fix, though.

pj

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


Biblio problem: extra 'crap' at end of citation

2010-07-23 Thread Paul Johnson
Hi, everybody.

In the last year or so, I've been testing services like CiteULike and
Zotero to build a biblio database as I research.  This works pretty
well to output the citations to a bib file and work with LyX.

I notice only one substantial problem. The citations from those online
services have extraneous information that I don't want to appear in
the bibliography.  But when I use natbib citations with a format like
apalike (or any other, as far as I can tell), the  extra info in the
bibtex data base comes into the final document.  I'm now pasting from
the pdf output from LyX

L’Ecuyer, P., Simard, R., Chen, E. J., and Kelton, W. D. (2002). An
Object-Oriented Random-
Number package with many long streams and substreams. Operations
Research, 50(6):1073–1075.
ArticleType: primary_article / Full publication date: Nov. - Dec.,
2002 / Copyright  c 2002
INFORMS.


The part that starts ArticleType and goes to the end is extraneous,
should not be printed.

The only fix I have found is to go through the bib file and just
manually delete that stuff.

But I know there must be a better way. yes?

pj

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


Biblio problem: extra 'crap' at end of citation

2010-07-23 Thread Paul Johnson
Hi, everybody.

In the last year or so, I've been testing services like CiteULike and
Zotero to build a biblio database as I research.  This works pretty
well to output the citations to a bib file and work with LyX.

I notice only one substantial problem. The citations from those online
services have extraneous information that I don't want to appear in
the bibliography.  But when I use natbib citations with a format like
apalike (or any other, as far as I can tell), the  extra info in the
bibtex data base comes into the final document.  I'm now pasting from
the pdf output from LyX

L’Ecuyer, P., Simard, R., Chen, E. J., and Kelton, W. D. (2002). An
Object-Oriented Random-
Number package with many long streams and substreams. Operations
Research, 50(6):1073–1075.
ArticleType: primary_article / Full publication date: Nov. - Dec.,
2002 / Copyright  c 2002
INFORMS.


The part that starts ArticleType and goes to the end is extraneous,
should not be printed.

The only fix I have found is to go through the bib file and just
manually delete that stuff.

But I know there must be a better way. yes?

pj

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


Biblio problem: extra 'crap' at end of citation

2010-07-23 Thread Paul Johnson
Hi, everybody.

In the last year or so, I've been testing services like CiteULike and
Zotero to build a biblio database as I research.  This works pretty
well to output the citations to a bib file and work with LyX.

I notice only one substantial problem. The citations from those online
services have extraneous information that I don't want to appear in
the bibliography.  But when I use natbib citations with a format like
"apalike" (or any other, as far as I can tell), the  extra info in the
bibtex data base comes into the final document.  I'm now pasting from
the pdf output from LyX

L’Ecuyer, P., Simard, R., Chen, E. J., and Kelton, W. D. (2002). An
Object-Oriented Random-
Number package with many long streams and substreams. Operations
Research, 50(6):1073–1075.
ArticleType: primary_article / Full publication date: Nov. - Dec.,
2002 / Copyright  c 2002
INFORMS.


The part that starts ArticleType and goes to the end is extraneous,
should not be printed.

The only fix I have found is to go through the bib file and just
manually delete that stuff.

But I know there must be a better way. yes?

pj

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


Re: Lyx + gnuplot epslatex

2009-12-24 Thread Paul Johnson
On Fri, Dec 11, 2009 at 12:21 PM, Jonathan Brandmeyer
jbrandme...@earthlink.net wrote:
 I am having difficulty using Gnuplot's epslatex output in conjunction
 with Lyx. Gnuplot itself is capable of separately providing EPS graphics
 as well as text and labels as Tex code. Strictly speaking, I'm using
 Octave as a front-end to Gnuplot, but that shouldn't matter.

 So, I have the .tex and the .eps files produced by gnuplot, and a .lyx
 file that attempts to use the file as input.



I'm testing this in Ubuntu. I am NOT testme it with LyX, since give
us a LaTeX file testme.tex. Using your example code, I do get 2
graphs, one complete, one a skeleton. The second inclusion in your
file is a mistake.  With the attached testme.tex, I get good dvi
output with latex testme.tex and if I create a pdf version of your
eps file and run pdf latex thus:

$ epstopdf tangent_impulse.eps
$ pdflatex testme.tex

Then I get good output as well.  This makes me believe the problems
you are having trace back to the availability of fonts to your LaTeX
processing system or your pdf viewer.

I also attach a LyX file pjtest.lyx  I created that DOES work to
include the tangent_impulse graphics and LaTeX markup.  For me, the
only required change from a basic lyx doc was to put
\usepackage{graphicx} in the preamble. I get both dvi and pdf output
that are fine.

HTH
pj

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


testme.tex
Description: TeX document


testme.dvi
Description: TeX dvi file


testme.pdf
Description: Adobe PDF document


pjtest.lyx
Description: application/lyx


Re: Lyx + gnuplot epslatex

2009-12-24 Thread Paul Johnson
On Fri, Dec 11, 2009 at 12:21 PM, Jonathan Brandmeyer
jbrandme...@earthlink.net wrote:
 I am having difficulty using Gnuplot's epslatex output in conjunction
 with Lyx. Gnuplot itself is capable of separately providing EPS graphics
 as well as text and labels as Tex code. Strictly speaking, I'm using
 Octave as a front-end to Gnuplot, but that shouldn't matter.

 So, I have the .tex and the .eps files produced by gnuplot, and a .lyx
 file that attempts to use the file as input.



I'm testing this in Ubuntu. I am NOT testme it with LyX, since give
us a LaTeX file testme.tex. Using your example code, I do get 2
graphs, one complete, one a skeleton. The second inclusion in your
file is a mistake.  With the attached testme.tex, I get good dvi
output with latex testme.tex and if I create a pdf version of your
eps file and run pdf latex thus:

$ epstopdf tangent_impulse.eps
$ pdflatex testme.tex

Then I get good output as well.  This makes me believe the problems
you are having trace back to the availability of fonts to your LaTeX
processing system or your pdf viewer.

I also attach a LyX file pjtest.lyx  I created that DOES work to
include the tangent_impulse graphics and LaTeX markup.  For me, the
only required change from a basic lyx doc was to put
\usepackage{graphicx} in the preamble. I get both dvi and pdf output
that are fine.

HTH
pj

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


testme.tex
Description: TeX document


testme.dvi
Description: TeX dvi file


testme.pdf
Description: Adobe PDF document


pjtest.lyx
Description: application/lyx


Re: Lyx + gnuplot epslatex

2009-12-24 Thread Paul Johnson
On Fri, Dec 11, 2009 at 12:21 PM, Jonathan Brandmeyer
 wrote:
> I am having difficulty using Gnuplot's epslatex output in conjunction
> with Lyx. Gnuplot itself is capable of separately providing EPS graphics
> as well as text and labels as Tex code. Strictly speaking, I'm using
> Octave as a front-end to Gnuplot, but that shouldn't matter.
>
> So, I have the .tex and the .eps files produced by gnuplot, and a .lyx
> file that attempts to use the file as input.
>


I'm testing this in Ubuntu. I am NOT "testme" it with LyX, since give
us a LaTeX file "testme.tex". Using your example code, I do get 2
graphs, one complete, one a skeleton. The second inclusion in your
file is a mistake.  With the attached "testme.tex", I get good dvi
output with "latex testme.tex" and if I create a pdf version of your
eps file and run pdf latex thus:

$ epstopdf tangent_impulse.eps
$ pdflatex testme.tex

Then I get good output as well.  This makes me believe the problems
you are having trace back to the availability of fonts to your LaTeX
processing system or your pdf viewer.

I also attach a LyX file "pjtest.lyx"  I created that DOES work to
include the tangent_impulse graphics and LaTeX markup.  For me, the
only required change from a basic lyx doc was to put
\usepackage{graphicx} in the preamble. I get both dvi and pdf output
that are fine.

HTH
pj

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


testme.tex
Description: TeX document


testme.dvi
Description: TeX dvi file


testme.pdf
Description: Adobe PDF document


pjtest.lyx
Description: application/lyx


Re: Drawing tool for LyX

2009-11-07 Thread Paul Johnson
On Sat, Nov 7, 2009 at 6:17 AM, Waluyo Adi Siswanto was.u...@gmail.com wrote:
 Dear All

 I have been searching a drawing tool that generate LaTeX code then
 implemented (pasted) somewhere in LyX so I can get simple
 pictures/diagrams.

I just learned about a drawing program called ipe and I'm pretty
enthusiastic. I've also used xfig with Lyx, but ipe has a nicer
interface and you can type latex into the drawing.  it can save in pdf
or eps, and here is the magical thing.  ipe is smart enough to hide
its configuration settings inside the eps or pdf file and so ipe can
open the eps / pdf file and revise it.

I don't know if it is a plus for you, but ipe is available on all
major operating systems.


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


Re: Drawing tool for LyX

2009-11-07 Thread Paul Johnson
On Sat, Nov 7, 2009 at 6:17 AM, Waluyo Adi Siswanto was.u...@gmail.com wrote:
 Dear All

 I have been searching a drawing tool that generate LaTeX code then
 implemented (pasted) somewhere in LyX so I can get simple
 pictures/diagrams.

I just learned about a drawing program called ipe and I'm pretty
enthusiastic. I've also used xfig with Lyx, but ipe has a nicer
interface and you can type latex into the drawing.  it can save in pdf
or eps, and here is the magical thing.  ipe is smart enough to hide
its configuration settings inside the eps or pdf file and so ipe can
open the eps / pdf file and revise it.

I don't know if it is a plus for you, but ipe is available on all
major operating systems.


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


Re: Drawing tool for LyX

2009-11-07 Thread Paul Johnson
On Sat, Nov 7, 2009 at 6:17 AM, Waluyo Adi Siswanto  wrote:
> Dear All
>
> I have been searching a drawing tool that generate LaTeX code then
> implemented (pasted) somewhere in LyX so I can get simple
> pictures/diagrams.
>
I just learned about a drawing program called "ipe" and I'm pretty
enthusiastic. I've also used xfig with Lyx, but ipe has a nicer
interface and you can type latex into the drawing.  it can save in pdf
or eps, and here is the magical thing.  ipe is smart enough to hide
its configuration settings inside the eps or pdf file and so ipe can
open the eps / pdf file and revise it.

I don't know if it is a plus for you, but ipe is available on all
major operating systems.


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


Re: Anyone used Lytex?

2009-09-29 Thread Paul Johnson
On Tue, Sep 8, 2009 at 3:13 PM, Sharma, Vivek shar...@upmc.edu wrote:
 Hi

 I do not have administrative privileges at work computers but am so dependent 
 on using lyx for my writing and want to be able to use it on a USB drive or a 
 network drive that I have access to. I wondered if anyone has used Lytex  as 
 suggested in the wiki?
 I tried it and get error messages. The home page for Lytex does not give any 
 email addresses for requesting help.

 Regards
 Vivek

If I were you, I'd compile LyX in my user account. All it requires is
a --prefix option to build it to install under your home.  I build
things and run from /home/pauljohn/packages all the time.

pj

If you want us to advise you about Lytex,  you should please provide
a precise URL so I can see what the hell you are talking about.


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


Re: Anyone used Lytex?

2009-09-29 Thread Paul Johnson
On Tue, Sep 8, 2009 at 3:13 PM, Sharma, Vivek shar...@upmc.edu wrote:
 Hi

 I do not have administrative privileges at work computers but am so dependent 
 on using lyx for my writing and want to be able to use it on a USB drive or a 
 network drive that I have access to. I wondered if anyone has used Lytex  as 
 suggested in the wiki?
 I tried it and get error messages. The home page for Lytex does not give any 
 email addresses for requesting help.

 Regards
 Vivek

If I were you, I'd compile LyX in my user account. All it requires is
a --prefix option to build it to install under your home.  I build
things and run from /home/pauljohn/packages all the time.

pj

If you want us to advise you about Lytex,  you should please provide
a precise URL so I can see what the hell you are talking about.


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


Re: Anyone used Lytex?

2009-09-29 Thread Paul Johnson
On Tue, Sep 8, 2009 at 3:13 PM, Sharma, Vivek  wrote:
> Hi
>
> I do not have administrative privileges at work computers but am so dependent 
> on using lyx for my writing and want to be able to use it on a USB drive or a 
> network drive that I have access to. I wondered if anyone has used Lytex  as 
> suggested in the wiki?
> I tried it and get error messages. The home page for Lytex does not give any 
> email addresses for requesting help.
>
> Regards
> Vivek
>
If I were you, I'd compile LyX in my user account. All it requires is
a --prefix option to build it to install under your home.  I build
things and run from /home/pauljohn/packages all the time.

pj

If you want us to advise you about "Lytex",  you should please provide
a precise URL so I can see what the hell you are talking about.


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


Re: changing margins in article class when using Beamer

2009-08-12 Thread Paul Johnson
On Wed, Aug 12, 2009 at 5:13 PM, Graham M
Smithgraham.sm...@myotis.co.uk wrote:
 Paul


 I could of course add a line for the margins in the preamble that I comment
 out and in depending on the output, but I was hoping for something a bit
 more automated than that.


I thank you for bringing the beamer(article) to my attention. That is
very handy for me as well. I can see that if I insert some branches,
then I can really customize which material is included in the article
output.  Nice!

To answer  your margin question, I wonder how you changed the margins?
In all of the beamer examples I find, the margin options are grayed
out and I can't change them.

That means we need to make the change either in the preamble or in the
lyx layout or latex style file.  Blech. I started to think there has
to be a better way and this way seems to do it.

\oddsidemargin 0.0in
\textwidth 6.0in
%%testing: does following have any effect?
%%\evensidemargin 0.0in

In the example beamer file with the lyx distribution, this does work
for me to make the margins smaller.

I got the idea from this document:

http://www.image.ufl.edu/help/latex/margins.shtml

In case you want to set more parameters.   This works in LyX because
lyx invokes the geometry package early in the startup, so if you put
these in your preamble, it all ends up good.

HTH!

pj




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


Re: How to get a preview for custom graphics format?

2009-08-12 Thread Paul Johnson
On Fri, Aug 7, 2009 at 9:52 AM, Daniel
Lohmanndaniel.lohm...@informatik.uni-erlangen.de wrote:
 Hi,



 So here is what I want to achieve:

 I have some TikZ figures (which are actually stand-alone LaTeX-documents
 with the extension .tikz) that I want to embed (not the source, but the
 PDF/EPS via \includegraphics) into my LyX document in a way that (1) the
 LyX-Preview does work (2) PDF generation does work, and (3) the .tikz-file
 is opened in vim when I select Edit externally...

I am sorry if I am telling you something you already know, but...

It seems to me you are throwing away the value of TikZ by doing this.

Recall that one of the strengths of TikZ/pgf is that the fonts and
such in the figure will match the document. If you persist in keeping
the TikZ as stand alone latex documents, you are destroying that
possibility.  I don't think the document will ever compile because of
the duplicate preambles and such that the latex system encounters.

On the  other hand, if the TikZ file is just the TikZ figure, then I'd
be more optimistic.

But I don't think it is wise to convert the tikz to pdf and embed that
with includegraphics.
Rather, I think you just want to include the tikz code itself. You can
just use input on the TikZ figure itself. If you put that inside a LyX
floating graphic or a minipage, it just works in the final
processing. In Lyx, choose Insert File Child Document and then
choose your tikz text file.  As long as it is just the figure, it is
all good. I've just tested it, and it does work.

But you won't get an in-document preview in LyX without a  bit of
messing about.  I think that's where the other guy who refers you to
the Dia code has a good idea.  I've tried to figure that part out, but
no solution yet. We need a way to tell LyX to pass the Tikz figure
code straight through to LaTeX, but we also want an on-screen preview
of what that will be like.  But it is inherently impossible to get a
preview of what that will be like without compiling the whole
document.  A conundrum for me.


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


  1   2   3   4   >