Customizing stdmenus.inc to use git

2012-02-13 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I would ike to use git and it was mentioned here that one can
customize the stdmenus.inc file so that the VC commands use git.

I looked into the file, but could not gather how to change the
following section so that git is used:

Menu file_vc
OptItem Register...|R vc-register
OptItem Check In Changes...|I vc-check-in
OptItem Check Out for Edit|O vc-check-out
OptItem Update Local Directory From Repository|d
vc-repo-upd$
OptItem Revert to Repository Version|v vc-revert
OptItem Undo Last Check In|U vc-undo-last
OptItem Compare with Older Revision...|C vc-compare
OptItem Show History...|H dialog-show vclog
OptItem Use Locking Property|L vc-locking-toggle



Could someone please provide an example?

Also: can I put a custom version into .lyx so that the customized
version is read, to avoid overwriting when updating?

Thanks,

Rainer

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk84ydkACgkQoYgNqgF2egriDgCcDJ2FnSF+X17esB3Yum/yhdnr
sY4AoIAei6EMzZOInYSTU1pRwzLy9sMh
=LCji
-END PGP SIGNATURE-


Re: Lyx und svn (or git)

2012-02-13 Thread Sebastian Krämer
On Sat, 2012-02-11 at 17:00 +0100, Uwe Ade wrote:
 Hello,
 
 I thing about the problem to manage the Lyx-files from my lectures. I heard 
 that is possible to use svn or git to manage the lyx documente direct from 
 Lyx. The last two evenings i searched with google to find a good describtion 
 who this works but im not succesfull. Some on the list how know a good link?

I haven't dug through the manual parts, and I only use a small part of
the functionality. What works well for me is:

Create, checkout from an svn repo in terminal. Then, when using lyx,
commiting changes to the lyx file works trivially (from the menu). When
adding graphics is involved or anything else that goes beyond the lyx
file itself, I commit from terminal again.
I have no experience with what lyx does in case of collaboration and
conflicts since I'm the only committer to my documents. Anyway, for my
use case, lyx's ability is sufficient and easy to use.



Re: Initials Module

2012-02-13 Thread d c
Uwe Stöhr uwestoehr at web.de writes:
 Have you had a look at sec. 6.3 Initials of the EmbeddedObjects manual that 
you find in LyX's Help 
 menu?
You know, uh, duh, I am embarassed to say, that actually I remember passing 
over 

a loose reference to it somewhere, (not sure why I ignored it perhaps because 
the 

reference was couched in someone's techspeak I didn't understand) in the midst 
of 

a long fruitless google search that turned up nothing but a skimpy reference to 

the fact that somebody named Uw...uh...hmm...had added support for it and a 

longwinded discussion purportedly about it but really aimed at developers, god 

bless 'em...but now I see that it is carefully clearly and meticulously spelled 

out in the EmbeddedObjects (what does that mean? Sounds like something to do 
with 

graphics or something? Why is there no space in the middle? Why should I be 

looking there?) manual even though the user's guide doesn't mention it. 


In other words, I am a fool, thanks for adding support for it, it is cool, you 

are da bomb, and now I see how it works. yippie.

:-)

ps why does gmane balk at lines over 80 characters? I mean who writes 
paragraphs with less that 80 characters?




Re: Errors on publishing [to pdf]

2012-02-13 Thread Eric Weir

On Feb 12, 2012, at 1:18 PM, Richard Heck wrote:

 Once you have the file in LyX, just try: ViewPDF(XeTeX), e.g. That said, I'm 
 definitely not an expert on this encoding stuff. If you could produce a 
 really simple example file---create it in Scrivener and export it as 
 usual---that exhibits the problem, that will definitely help.


Thanks again, Richard. I thought the XeTeX/LuaTeX suggestion would involve an 
additional compiling step. I see that it does not. Both compile, but instead of 
giving error messages they substitute weird characters for the problemmatic 
characters, e.g., an em-dash becomes âĂT. Sometimes it does the same for 
en-dashes, sometimes not. Sometimes with the apostrophe, sometimes not. Also 
with accented characters.

The file I'm working on is not that complicated: 12 pages with bibliography and 
footnotes; title, author, and section headings formatted KOMA-Script default. 

Assuming that the problem is Unicode characters, I'm also gonna check with the 
Scrivener forum to see if there's a way to stop that.  

Sincerely,
--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net






Re: Errors on publishing [to pdf]

2012-02-13 Thread stefano franchi
On Mon, Feb 13, 2012 at 6:14 AM, Eric Weir eew...@bellsouth.net wrote:

 On Feb 12, 2012, at 1:18 PM, Richard Heck wrote:

 Once you have the file in LyX, just try: ViewPDF(XeTeX), e.g. That said,
 I'm definitely not an expert on this encoding stuff. If you could produce a
 really simple example file---create it in Scrivener and export it as
 usual---that exhibits the problem, that will definitely help.


 Thanks again, Richard. I thought the XeTeX/LuaTeX suggestion would involve
 an additional compiling step. I see that it does not. Both compile, but
 instead of giving error messages they substitute weird characters for the
 problemmatic characters, e.g., an em-dash becomes âĂT. Sometimes it does
 the same for en-dashes, sometimes not. Sometimes with the apostrophe,
 sometimes not. Also with accented characters.


Eric,

you may have to check the encoding of your lyx file. If you use XeTeX
compilation (or LuaTeX, for that mater) the file should be in Unicode.
It looks like it isn't. Be sure:

1. that Scrivener-generated LateX code is in Unicode encoding (it may
be an option---LaTex was unable to read unicode until recently.
2. That Lyx properly treats the file as Unicode-encoded. IT should do
so automatically, but just to be on the safe side,go to
DocumentSettingsLanguage  under Encoding select the radio button
Other and from the drop-down list next to it choose *Unicode (XeTeX)
(UTF8)

Hope it helps,

Stefano

 The file I'm working on is not that complicated: 12 pages with bibliography
 and footnotes; title, author, and section headings formatted KOMA-Script
 default.

 Assuming that the problem is Unicode characters, I'm also gonna check with
 the Scrivener forum to see if there's a way to stop that.

 Sincerely,
 --
 Eric Weir
 Decatur, GA  USA
 eew...@bellsouth.net







-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: is lyx really appropriate for my book.

2012-02-13 Thread stefano franchi
On Sun, Feb 12, 2012 at 7:01 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 12.02.2012 14:53, schrieb Colin Williams:
 To start writing a book I suggest to start with LyX's thesis template files.
 You find them in LyX's installation folder under
 \Resources\templates\thesis.

Another option (and one I recently used) for writing books with Lyx is
to use the memoir class. It is probably the most flexible class ever
produced for LateX and it allows tweaking of most, if not all, aspects
of a publications. It also has a comprehensive, very well written
manual (a book, really).  It will require you to learn some LaTeX,
though.

Let me add one comment to the great response from Steve: I don't think
you can become a fast writer in Lyx (as Steve says) unless you get at
least an idea of how Latex works and thinks. You need to learn a bit
about environments (paragraph styles), how fonts are used in LaTeX,
about the various components of a page, about compilation, etcetera.
Lyx does a marvelous job at hiding most of the complexity of Latex,
but when push comes to show and things go wrong (i.e. the file does
not compile, your output does not look th way it should, etcetera),
knowing a bit of the language Lyx uses to produce output becomes
precious. If, and when, you decide to start using Lyx, I would buy a
copy of The Latex Companion [1]  and start reading at least the first
few chapters.

Cheers,

Stefano

[1] http://tinyurl.com/7vr4hzk




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Errors on publishing [to pdf]

2012-02-13 Thread Eric Weir

On Feb 13, 2012, at 9:16 AM, stefano franchi wrote:

 you may have to check the encoding of your lyx file. If you use XeTeX
 compilation (or LuaTeX, for that mater) the file should be in Unicode.
 It looks like it isn't. Be sure:
 
 1. that Scrivener-generated LateX code is in Unicode encoding (it may
 be an option---LaTex was unable to read unicode until recently.

Thanks, Stefano. I'm still waiting on a response from the Scrivener listserv.

 2. That Lyx properly treats the file as Unicode-encoded. IT should do
 so automatically, but just to be on the safe side,go to
 DocumentSettingsLanguage  under Encoding select the radio button
 Other and from the drop-down list next to it choose *Unicode (XeTeX)
 (UTF8)

I made this change and tried compiling with XeTeX and LuaTeX. Still getting the 
weird substitutions. Tried quitting LyX and compiling again with the same 
result.

Is it possible that I will need to reimport the tex output from Scrivener?

Sincerely,
--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net

Imagining the other is a powerful antidote to fanaticism and hatred. 

- Amos Oz



Re: is lyx really appropriate for my book.

2012-02-13 Thread Steve Litt
On Mon, 13 Feb 2012 08:28:30 -0600
stefano franchi stefano.fran...@gmail.com wrote:

 On Sun, Feb 12, 2012 at 7:01 PM, Uwe Stöhr uwesto...@web.de wrote:
  Am 12.02.2012 14:53, schrieb Colin Williams:
  To start writing a book I suggest to start with LyX's thesis
  template files. You find them in LyX's installation folder under
  \Resources\templates\thesis.
 
 Another option (and one I recently used) for writing books with Lyx is
 to use the memoir class. It is probably the most flexible class ever
 produced for LateX and it allows tweaking of most, if not all, aspects
 of a publications. It also has a comprehensive, very well written
 manual (a book, really).  It will require you to learn some LaTeX,
 though.

Memoir is cool, but be very careful, because Memoir screws up with
certain other packages, most notably hyperref, for which you'll need the
memhfixc package, and a lot of rain dances to get it to work. Or at
least that's how I remember it. My thought is if you use Memoir, use it
every time so you get to know Memoir like the back of your hand, and
you can fix hyperref problems in minutes instead of days.

 
 Let me add one comment to the great response from Steve: I don't think
 you can become a fast writer in Lyx (as Steve says) unless you get at
 least an idea of how Latex works and thinks. You need to learn a bit
 about environments (paragraph styles), how fonts are used in LaTeX,
 about the various components of a page, about compilation, etcetera.
 Lyx does a marvelous job at hiding most of the complexity of Latex,
 but when push comes to show and things go wrong (i.e. the file does
 not compile, your output does not look th way it should, etcetera),
 knowing a bit of the language Lyx uses to produce output becomes
 precious. If, and when, you decide to start using Lyx, I would buy a
 copy of The Latex Companion [1]  and start reading at least the first
 few chapters.

IIRC I bought both The Latex Companion and Guide to LaTeX and
downloaded the Memoir doc class documentation and read it all, because
yeah, if you ever want to create or change a style, you're going to
need a good knowledge of LaTeX.

Stefano makes an excellent point that lack of LaTeX knowledge slows you
down, as it does for me to this day, 11 years after I came to LyX. One
way I like to minimize the slowing is, when I create a new style, do a
minimal job of it so it's recognizable as a different style on both
output and the LyX environment. So I take 5 or 10 minutes to make the
style and then start pounding out content again. Then, every once in a
while, I take a technical day and make the styles look how I want them
to look.

Thanks

SteveT


Re: program listing of child documents with accents

2012-02-13 Thread Ricardo
Following Richard advice, below posted source code of a small document.
With the current lyx configuration I can insert a child document with the
program listing input. The document is saved utf8. I can see accents on the
pdf output, but the breaklines of the listings package does not seem to
work and I do not why. A long line does not break at any place, despite
breaklines=true param is set.
Any help welcomed
Thanks again.

lyx source code

 % Preview source code

%% LyX 1.6.7 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[11pt,catalan]{report}

\usepackage[T1]{fontenc}

\usepackage[utf8x]{inputenc}

\usepackage{listings}

\usepackage[a4paper]{geometry}

\geometry{verbose,tmargin=3cm,bmargin=2cm,lmargin=3.5cm,rmargin=2.5cm,headheight=2cm,headsep=1cm,footskip=1.5cm}

\setlength{\parskip}{\bigskipamount}

\setlength{\parindent}{0pt}

\usepackage{calc}

\usepackage{amsthm}

\usepackage{amsmath}

\usepackage{amssymb}

\usepackage{esint}

\makeatletter

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section}

\numberwithin{figure}{section}

%% User specified LaTeX commands.

\usepackage{verbatim}

\usepackage{varioref}

\usepackage{ucs}

\usepackage{framed}

\usepackage[T1]{fontenc}

\usepackage{ucs}

\usepackage[utf8x]{inputenc}

\makeatother

\usepackage{babel}

\begin{document}

Document d'exemple.

document;settings;language;català

document;settings;language;other utf8x

No problem with accents on main document: áéíóú

%

\framebox{\begin{minipage}[t]{1\columnwidth}%

Inserted child document with accents stored utf-8. Program listing

input selected

\scriptsize

\lstinputlisting[breaklines=true,extendedchars=false]{childdoc-utf8}

\scriptsize%

\end{minipage}}

\nocite{*}

\end{document}



utf8 saved file content:  
Child document. Stored UTF8.
Áéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèá
éíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéí


Re: is lyx really appropriate for my book.

2012-02-13 Thread Marcelo Acuña
  To start writing a book I suggest to start with LyX's thesis

  template files. You find them in LyX's installation folder under
  \Resources\templates\thesis.
 
 Another option (and one I recently used) for writing books with Lyx is
 to use the memoir class. It is probably the most flexible class ever
 produced for LateX and it allows tweaking of most, if not all, aspects
 of a publications. It also has a comprehensive, very well written
 manual (a book, really).  It will require you to learn some LaTeX,
 though.


I am using koma-script book class and I recommended it.
So far I did not need to write my own environment.

Marcelo

Re: Customizing stdmenus.inc to use git

2012-02-13 Thread Richard Heck

On 02/13/2012 03:29 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I would ike to use git and it was mentioned here that one can
customize the stdmenus.inc file so that the VC commands use git.
Not so far as I know. LyX does not have native support for git. It could 
be added, but
last time I asked there were some issues that would need resolving. 
E.g., what check-in

means in git is very different from what it means in svn.

Richard



Re: is lyx really appropriate for my book.

2012-02-13 Thread Uwe Stöhr

Am 13.02.2012 15:28, schrieb stefano franchi:


Another option (and one I recently used) for writing books with Lyx is
to use the memoir class.


This is one option, the other one is the KOMA-script book class. This is used for most LyX manuals 
and it is my opinion a bit more flexible. But this is of course a matter of taste.



Let me add one comment to the great response from Steve: I don't think
you can become a fast writer in Lyx (as Steve says) unless you get at
least an idea of how Latex works and thinks.


I don't agree, LyX is designed that you don't need to learn LaTeX and that is why I designed the 
thesis template. You see there that you cann do almost all you need the LyX way. For very special 
things I wrote LyX's EmbeddedObjects manual. So in case you have troubles you should find always a 
quick answer in the LyX manuals. The only thing one needs to learn is to concentrate o writing the 
text and not to look frequently how it will look. The typical beginner's mistake is to try to 
fine-tune everything at the beginning also if not even the first chapter is ready. The final 
formatting can be changed at every time easily for the whole document.
(When you publish a book you have anyway to fulfill the publisher's guidelines. In most cases the 
publisher will do the final layout for you, if you like this or not.)


regards Uwe


Re: is lyx really appropriate for my book.

2012-02-13 Thread stefano franchi
On Mon, Feb 13, 2012 at 4:17 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 13.02.2012 15:28, schrieb stefano franchi:
 I don't agree, LyX is designed that you don't need to learn LaTeX and that
 is why I designed the thesis template. You see there that you cann do almost
 all you need the LyX way. For very special things I wrote LyX's
 EmbeddedObjects manual. So in case you have troubles you should find always
 a quick answer in the LyX manuals. The only thing one needs to learn is to
 concentrate o writing the text and not to look frequently how it will look.
 The typical beginner's mistake is to try to fine-tune everything at the
 beginning also if not even the first chapter is ready. The final formatting
 can be changed at every time easily for the whole document.
 (When you publish a book you have anyway to fulfill the publisher's
 guidelines. In most cases the publisher will do the final layout for you, if
 you like this or not.)

Well, that's exactly the issue. IF your publisher does the
typesetting, THEN you can forget about LaTeX.
What happens more and more frequently, though, is that your publisher
will give you a set of guidelines set up for Microsoft Word and will
want a pdf back. At that point getting to know LaTex is inevitable.

I do agree with you, Uwe: concentrate on writing, not on typesetting.
However, know your typesetting fate before you start to write and
choose the right options (including whther to buy a LaTeX book or
not)---it will make everything simpler later on.

Cheers,

Stefano


 regards Uwe



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


How to force tex2lyx to read unicode (from within Lyx)?

2012-02-13 Thread stefano franchi
I have been helping Eric Weir with his Scrivener--LaTeX--Lyx import
and we have narrowed down the problem to Lyx not importing a
Unicode-encoded file as Unicode.
So tex2lyx is the culprit. Wasn't this solved some time ago, however?I
mean: automatic recognition of the imported file encoding?

Try out the enclosed minimal lyx file.

1. exporting to latex and reimporting into lyx from
FIleImportLatex(plain) produces garbage characters for the dashes

2. However, calling tex2lyx -e UTF8 from the command line produces
the correct file.

Is this a bug? Or a feature?

Cheers,

 Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


em-dash-test.lyx
Description: application/lyx


Re: is lyx really appropriate for my book.

2012-02-13 Thread Rich Shepard

On Mon, 13 Feb 2012, Steve Litt wrote:


Memoir is cool, but be very careful, because Memoir screws up with certain
other packages, most notably hyperref, for which you'll need the memhfixc
package, and a lot of rain dances to get it to work. Or at least that's
how I remember it. My thought is if you use Memoir, use it every time so
you get to know Memoir like the back of your hand, and you can fix
hyperref problems in minutes instead of days.


  Some years ago I settled on the KOMA-Script classes as my defaults.
Learned how to tweak them to my specifications and stuck with them ever
since.

  Like many applications (and linux/*BSD in general) there are multiple
tools to accomplish any task. It's better to pick one and learn it well than
to switch from one to another. I've done the same with R: I use the lattice
package for plotting while others use the base plot package and still others
prefer ggplot2.

  By the same token, I've adopted the Palatino typeface as the default for
all my LyX documents and PSTricks for all vector plotting. Makes life
simpler and more productive.

Rich



Re: is lyx really appropriate for my book.

2012-02-13 Thread Uwe Stöhr

Am 13.02.2012 23:35, schrieb stefano franchi:


Well, that's exactly the issue. IF your publisher does the
typesetting, THEN you can forget about LaTeX.


I don't know any scientific publisher who is not using TeX. Also most of the humanity-linked 
publishers are using it in the background. They sometimes even require MS Word format but transform 
the word file to TeX to be able to layout the text properly. So just ask you publisher.



However, know your typesetting fate before you start to write and
choose the right options (including whther to buy a LaTeX book or
not)---it will make everything simpler later on.


I still cannot agree to this. If you need a special LaTeX book, then I failed my goal. I invested 
countless hours for the LyX documentation to overcome the need of learning LaTeX. (When I started 
TeXing it frustrated me a lot and the LaTeX books even more.)


What is of course helpful is to look into the documentation of the document class you are using. So 
in case you prefer memoir or KOMA-script, look at its documentation file, but first after you 
finished your first chapter. Then you already have a feeling how writing with LyX works. Document 
class options can be added and removed at any time later.


regards Uwe


Re: is lyx really appropriate for my book.

2012-02-13 Thread stefano franchi
On Mon, Feb 13, 2012 at 4:44 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 13.02.2012 23:35, schrieb stefano franchi:


 Well, that's exactly the issue. IF your publisher does the
 typesetting, THEN you can forget about LaTeX.


 I don't know any scientific publisher who is not using TeX. Also most of the
 humanity-linked publishers are using it in the background. They sometimes
 even require MS Word format but transform the word file to TeX to be able to
 layout the text properly. So just ask you publisher.

Sorry Uwe, but this is not true---at least not in the US. Most
publishers in my field (Humanities) do not use latex at all. When
they ask for Word is because they use inDesign or Quark Xpress (this
one less and less true).  And smaller presses--or not so small
presses, like Rodopi---just go for PDF+print-on demand. I hear from
colleagues that the  social sciences are the same. Latex dominates in
CS and Math only. Even some (and, I hear, more and more) hard
scientists (i.e. physicists) now use word.


 However, know your typesetting fate before you start to write and
 choose the right options (including whther to buy a LaTeX book or
 not)---it will make everything simpler later on.


 I still cannot agree to this. If you need a special LaTeX book, then I
 failed my goal. I invested countless hours for the LyX documentation to
 overcome the need of learning LaTeX. (When I started TeXing it frustrated me
 a lot and the LaTeX books even more.)

 What is of course helpful is to look into the documentation of the document
 class you are using. So in case you prefer memoir or KOMA-script, look at
 its documentation file, but first after you finished your first chapter.
 Then you already have a feeling how writing with LyX works. Document class
 options can be added and removed at any time later.

This is a matter of preference. Personally, I think the content/format
separation that LateX (and therefore lyx) is built upon is far from
perfect. It is a great regulative idea but it doesn't always
work---witness the counteless pieces of advice on this list to use ERT
code (which is often TeX code). I prefer to like to know my destiny
beforehand. Then again, I am a pessimist by nature.


Cheers,

Stefano




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: is lyx really appropriate for my book.

2012-02-13 Thread Jens Nöckel

On Feb 13, 2012, at 2:58 PM, stefano franchi wrote:

 On Mon, Feb 13, 2012 at 4:44 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 13.02.2012 23:35, schrieb stefano franchi:
 
 
 Well, that's exactly the issue. IF your publisher does the
 typesetting, THEN you can forget about LaTeX.
 
 
 I don't know any scientific publisher who is not using TeX. Also most of the
 humanity-linked publishers are using it in the background. They sometimes
 even require MS Word format but transform the word file to TeX to be able to
 layout the text properly. So just ask you publisher.
 
 Sorry Uwe, but this is not true---at least not in the US. Most
 publishers in my field (Humanities) do not use latex at all. When
 they ask for Word is because they use inDesign or Quark Xpress (this
 one less and less true).  And smaller presses--or not so small
 presses, like Rodopi---just go for PDF+print-on demand. I hear from
 colleagues that the  social sciences are the same. Latex dominates in
 CS and Math only. Even some (and, I hear, more and more) hard
 scientists (i.e. physicists) now use word.
 
Sorry, Stefano - but LaTeX is undoubtedly the main physics publication vehicle. 

And LyX has gotten orders of magnitude better at decoupling the user experience 
from the LaTeX source in the past decade, so I would agree that you no longer 
need to know LaTeX to use it in a standard way. There are still the occasional 
LaTeX errors, but I can't recall any specific recent example, and that just 
proves that things have improved a lot…

Jens



Re: is lyx really appropriate for my book.

2012-02-13 Thread Steve Litt
On Sun, 12 Feb 2012 05:53:27 -0800
Colin Williams co...@seattlesoft.com wrote:

 I'm writing a book. I would like to consider the possibility that I
 will do a small print run of 1000-5000 copies. I am certain I'm going
 to publish it as an ebook. I would expect the printed book would be
 in paperback form. I would like the lyx-users to tell me if they
 think its the right tool for the job. I know lyx is nice for making
 mathematics papers,but is it good for making a book which you want to
 reformat for displays and printed pages of varying sizes? Are there
 other programs I should consider?

Hi Colin,

Now that we're all discussing document classes and details, and it
looks like you actually might use LyX, I think it's time for me to
repeat my twice-annual advice.

LITT'S TWICE ANNUAL ADVICE:

In your book's main matter, use styles and nothing but styles. Never
apply an appearance directly, but instead apply appearances through
styles that match the usage in the document (Chapter, section,
subsection, Quote, tip, warning, etc). BUT, in the front matter, feel
free to apply appearances directly, and DO NOT use the document class's
facilities for title, author, etc, and just write them with proper
appearances and spacing.

I've done it both ways, and it's much easier and less frustrating to do
it the way I discussed in the preceding paragraph.

SteveT




Re: is lyx really appropriate for my book.

2012-02-13 Thread stefano franchi
On Mon, Feb 13, 2012 at 5:11 PM, Jens Nöckel noec...@uoregon.edu wrote:

 On Feb 13, 2012, at 2:58 PM, stefano franchi wrote:

 On Mon, Feb 13, 2012 at 4:44 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 13.02.2012 23:35, schrieb stefano franchi:


 Well, that's exactly the issue. IF your publisher does the
 typesetting, THEN you can forget about LaTeX.


 I don't know any scientific publisher who is not using TeX. Also most of the
 humanity-linked publishers are using it in the background. They sometimes
 even require MS Word format but transform the word file to TeX to be able to
 layout the text properly. So just ask you publisher.

 Sorry Uwe, but this is not true---at least not in the US. Most
 publishers in my field (Humanities) do not use latex at all. When
 they ask for Word is because they use inDesign or Quark Xpress (this
 one less and less true).  And smaller presses--or not so small
 presses, like Rodopi---just go for PDF+print-on demand. I hear from
 colleagues that the  social sciences are the same. Latex dominates in
 CS and Math only. Even some (and, I hear, more and more) hard
 scientists (i.e. physicists) now use word.

 Sorry, Stefano - but LaTeX is undoubtedly the main physics publication 
 vehicle.



Glad to hear it! The day MS Word goes out of existence I will be a happy camper.


 And LyX has gotten orders of magnitude better at decoupling the user 
 experience from the LaTeX source in the past decade, so I would agree that 
 you no longer need to know LaTeX to use it in a standard way. There are still 
 the occasional LaTeX errors, but I can't recall any specific recent example, 
 and that just proves that things have improved a lot…


Here we disagree. I have been helping another user with a conversion
issue just today---and I would not have gone anywhere without knowing
(a bit of) LaTex. Lyx may well have reach the poitn where 80% or 90%
of what you need to do is Latex-free. Even 95%. Still, it is not 100%
(and, in my opinion, it never will. Latex certainly isn't).
This is not meant to be a criticism of the great job of the Lyx
developers. I think Lyx is a great program that would deserves a much
greater user base than it has. I am certainly glad I use it---and I
don't use it anything else.

I'll shut up now---we are veering dangerously close to pure
philosophy---and that's work ;-)

Cheers,

Stefano




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-13 Thread Richard Heck

On 02/13/2012 05:41 PM, stefano franchi wrote:

I have been helping Eric Weir with his Scrivener--LaTeX--Lyx import
and we have narrowed down the problem to Lyx not importing a
Unicode-encoded file as Unicode.

I'm glad to hear someone was able to help with this. Thanks for your 
efforts on behalf of the LyX community.



So tex2lyx is the culprit. Wasn't this solved some time ago, however?I
mean: automatic recognition of the imported file encoding?

Well, that's a complicated issue. They may have tried to do a better 
job, but recognizing the file encoding completely reliably is not in 
general possible. There's some famous example of this.



Try out the enclosed minimal lyx file.

1. exporting to latex and reimporting into lyx from
FIleImportLatex(plain) produces garbage characters for the dashes

2. However, callingtex2lyx -e UTF8 from the command line produces
the correct file.
Still, it's surprising we fail in this particular case, so I'd guess it 
is indeed a bug. I'll cross-post to devel.


Richard



display fonts in Lyx 2.0.2

2012-02-13 Thread s nedunuri
I just installed Lyx on my new machine (Windows 7) and noticed that 
compared with Lyx 2.0.0 on my old machine (also Windows 7) the display 
fonts don't look as nice. Its hard to describe except to say that they 
look somewhat faded or the characters somehow look like they were 
printed with a printer that was low on ink! I checked and all the 
settings are the same on the two Lyx's. Any ideas?


cheers



Re: is lyx really appropriate for my book.

2012-02-13 Thread Jürgen Spitzmüller
Uwe Stöhr wrote:
 I don't know any scientific publisher who is not using TeX.

Me, on the contrary, I do not know a single publisher who accepts TeX as an 
input format (this is in the humanities field). Generally, they want camera 
ready PDF for monographs (which then can be of course done with TeX), or MS 
Word documents for journals and proceedings. I have experienced that some of 
these journals and proceedings were in fact produced with TeX in the end, but 
even then they have not accepted TeX file as input from me, simply because the 
editors and reviewers don't know how to deal with that format.

Jürgen

Customizing stdmenus.inc to use git

2012-02-13 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I would ike to use git and it was mentioned here that one can
customize the stdmenus.inc file so that the VC commands use git.

I looked into the file, but could not gather how to change the
following section so that git is used:

Menu file_vc
OptItem Register...|R vc-register
OptItem Check In Changes...|I vc-check-in
OptItem Check Out for Edit|O vc-check-out
OptItem Update Local Directory From Repository|d
vc-repo-upd$
OptItem Revert to Repository Version|v vc-revert
OptItem Undo Last Check In|U vc-undo-last
OptItem Compare with Older Revision...|C vc-compare
OptItem Show History...|H dialog-show vclog
OptItem Use Locking Property|L vc-locking-toggle



Could someone please provide an example?

Also: can I put a custom version into .lyx so that the customized
version is read, to avoid overwriting when updating?

Thanks,

Rainer

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk84ydkACgkQoYgNqgF2egriDgCcDJ2FnSF+X17esB3Yum/yhdnr
sY4AoIAei6EMzZOInYSTU1pRwzLy9sMh
=LCji
-END PGP SIGNATURE-


Re: Lyx und svn (or git)

2012-02-13 Thread Sebastian Krämer
On Sat, 2012-02-11 at 17:00 +0100, Uwe Ade wrote:
 Hello,
 
 I thing about the problem to manage the Lyx-files from my lectures. I heard 
 that is possible to use svn or git to manage the lyx documente direct from 
 Lyx. The last two evenings i searched with google to find a good describtion 
 who this works but im not succesfull. Some on the list how know a good link?

I haven't dug through the manual parts, and I only use a small part of
the functionality. What works well for me is:

Create, checkout from an svn repo in terminal. Then, when using lyx,
commiting changes to the lyx file works trivially (from the menu). When
adding graphics is involved or anything else that goes beyond the lyx
file itself, I commit from terminal again.
I have no experience with what lyx does in case of collaboration and
conflicts since I'm the only committer to my documents. Anyway, for my
use case, lyx's ability is sufficient and easy to use.



Re: Initials Module

2012-02-13 Thread d c
Uwe Stöhr uwestoehr at web.de writes:
 Have you had a look at sec. 6.3 Initials of the EmbeddedObjects manual that 
you find in LyX's Help 
 menu?
You know, uh, duh, I am embarassed to say, that actually I remember passing 
over 

a loose reference to it somewhere, (not sure why I ignored it perhaps because 
the 

reference was couched in someone's techspeak I didn't understand) in the midst 
of 

a long fruitless google search that turned up nothing but a skimpy reference to 

the fact that somebody named Uw...uh...hmm...had added support for it and a 

longwinded discussion purportedly about it but really aimed at developers, god 

bless 'em...but now I see that it is carefully clearly and meticulously spelled 

out in the EmbeddedObjects (what does that mean? Sounds like something to do 
with 

graphics or something? Why is there no space in the middle? Why should I be 

looking there?) manual even though the user's guide doesn't mention it. 


In other words, I am a fool, thanks for adding support for it, it is cool, you 

are da bomb, and now I see how it works. yippie.

:-)

ps why does gmane balk at lines over 80 characters? I mean who writes 
paragraphs with less that 80 characters?




Re: Errors on publishing [to pdf]

2012-02-13 Thread Eric Weir

On Feb 12, 2012, at 1:18 PM, Richard Heck wrote:

 Once you have the file in LyX, just try: ViewPDF(XeTeX), e.g. That said, I'm 
 definitely not an expert on this encoding stuff. If you could produce a 
 really simple example file---create it in Scrivener and export it as 
 usual---that exhibits the problem, that will definitely help.


Thanks again, Richard. I thought the XeTeX/LuaTeX suggestion would involve an 
additional compiling step. I see that it does not. Both compile, but instead of 
giving error messages they substitute weird characters for the problemmatic 
characters, e.g., an em-dash becomes âĂT. Sometimes it does the same for 
en-dashes, sometimes not. Sometimes with the apostrophe, sometimes not. Also 
with accented characters.

The file I'm working on is not that complicated: 12 pages with bibliography and 
footnotes; title, author, and section headings formatted KOMA-Script default. 

Assuming that the problem is Unicode characters, I'm also gonna check with the 
Scrivener forum to see if there's a way to stop that.  

Sincerely,
--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net






Re: Errors on publishing [to pdf]

2012-02-13 Thread stefano franchi
On Mon, Feb 13, 2012 at 6:14 AM, Eric Weir eew...@bellsouth.net wrote:

 On Feb 12, 2012, at 1:18 PM, Richard Heck wrote:

 Once you have the file in LyX, just try: ViewPDF(XeTeX), e.g. That said,
 I'm definitely not an expert on this encoding stuff. If you could produce a
 really simple example file---create it in Scrivener and export it as
 usual---that exhibits the problem, that will definitely help.


 Thanks again, Richard. I thought the XeTeX/LuaTeX suggestion would involve
 an additional compiling step. I see that it does not. Both compile, but
 instead of giving error messages they substitute weird characters for the
 problemmatic characters, e.g., an em-dash becomes âĂT. Sometimes it does
 the same for en-dashes, sometimes not. Sometimes with the apostrophe,
 sometimes not. Also with accented characters.


Eric,

you may have to check the encoding of your lyx file. If you use XeTeX
compilation (or LuaTeX, for that mater) the file should be in Unicode.
It looks like it isn't. Be sure:

1. that Scrivener-generated LateX code is in Unicode encoding (it may
be an option---LaTex was unable to read unicode until recently.
2. That Lyx properly treats the file as Unicode-encoded. IT should do
so automatically, but just to be on the safe side,go to
DocumentSettingsLanguage  under Encoding select the radio button
Other and from the drop-down list next to it choose *Unicode (XeTeX)
(UTF8)

Hope it helps,

Stefano

 The file I'm working on is not that complicated: 12 pages with bibliography
 and footnotes; title, author, and section headings formatted KOMA-Script
 default.

 Assuming that the problem is Unicode characters, I'm also gonna check with
 the Scrivener forum to see if there's a way to stop that.

 Sincerely,
 --
 Eric Weir
 Decatur, GA  USA
 eew...@bellsouth.net







-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: is lyx really appropriate for my book.

2012-02-13 Thread stefano franchi
On Sun, Feb 12, 2012 at 7:01 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 12.02.2012 14:53, schrieb Colin Williams:
 To start writing a book I suggest to start with LyX's thesis template files.
 You find them in LyX's installation folder under
 \Resources\templates\thesis.

Another option (and one I recently used) for writing books with Lyx is
to use the memoir class. It is probably the most flexible class ever
produced for LateX and it allows tweaking of most, if not all, aspects
of a publications. It also has a comprehensive, very well written
manual (a book, really).  It will require you to learn some LaTeX,
though.

Let me add one comment to the great response from Steve: I don't think
you can become a fast writer in Lyx (as Steve says) unless you get at
least an idea of how Latex works and thinks. You need to learn a bit
about environments (paragraph styles), how fonts are used in LaTeX,
about the various components of a page, about compilation, etcetera.
Lyx does a marvelous job at hiding most of the complexity of Latex,
but when push comes to show and things go wrong (i.e. the file does
not compile, your output does not look th way it should, etcetera),
knowing a bit of the language Lyx uses to produce output becomes
precious. If, and when, you decide to start using Lyx, I would buy a
copy of The Latex Companion [1]  and start reading at least the first
few chapters.

Cheers,

Stefano

[1] http://tinyurl.com/7vr4hzk




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Errors on publishing [to pdf]

2012-02-13 Thread Eric Weir

On Feb 13, 2012, at 9:16 AM, stefano franchi wrote:

 you may have to check the encoding of your lyx file. If you use XeTeX
 compilation (or LuaTeX, for that mater) the file should be in Unicode.
 It looks like it isn't. Be sure:
 
 1. that Scrivener-generated LateX code is in Unicode encoding (it may
 be an option---LaTex was unable to read unicode until recently.

Thanks, Stefano. I'm still waiting on a response from the Scrivener listserv.

 2. That Lyx properly treats the file as Unicode-encoded. IT should do
 so automatically, but just to be on the safe side,go to
 DocumentSettingsLanguage  under Encoding select the radio button
 Other and from the drop-down list next to it choose *Unicode (XeTeX)
 (UTF8)

I made this change and tried compiling with XeTeX and LuaTeX. Still getting the 
weird substitutions. Tried quitting LyX and compiling again with the same 
result.

Is it possible that I will need to reimport the tex output from Scrivener?

Sincerely,
--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net

Imagining the other is a powerful antidote to fanaticism and hatred. 

- Amos Oz



Re: is lyx really appropriate for my book.

2012-02-13 Thread Steve Litt
On Mon, 13 Feb 2012 08:28:30 -0600
stefano franchi stefano.fran...@gmail.com wrote:

 On Sun, Feb 12, 2012 at 7:01 PM, Uwe Stöhr uwesto...@web.de wrote:
  Am 12.02.2012 14:53, schrieb Colin Williams:
  To start writing a book I suggest to start with LyX's thesis
  template files. You find them in LyX's installation folder under
  \Resources\templates\thesis.
 
 Another option (and one I recently used) for writing books with Lyx is
 to use the memoir class. It is probably the most flexible class ever
 produced for LateX and it allows tweaking of most, if not all, aspects
 of a publications. It also has a comprehensive, very well written
 manual (a book, really).  It will require you to learn some LaTeX,
 though.

Memoir is cool, but be very careful, because Memoir screws up with
certain other packages, most notably hyperref, for which you'll need the
memhfixc package, and a lot of rain dances to get it to work. Or at
least that's how I remember it. My thought is if you use Memoir, use it
every time so you get to know Memoir like the back of your hand, and
you can fix hyperref problems in minutes instead of days.

 
 Let me add one comment to the great response from Steve: I don't think
 you can become a fast writer in Lyx (as Steve says) unless you get at
 least an idea of how Latex works and thinks. You need to learn a bit
 about environments (paragraph styles), how fonts are used in LaTeX,
 about the various components of a page, about compilation, etcetera.
 Lyx does a marvelous job at hiding most of the complexity of Latex,
 but when push comes to show and things go wrong (i.e. the file does
 not compile, your output does not look th way it should, etcetera),
 knowing a bit of the language Lyx uses to produce output becomes
 precious. If, and when, you decide to start using Lyx, I would buy a
 copy of The Latex Companion [1]  and start reading at least the first
 few chapters.

IIRC I bought both The Latex Companion and Guide to LaTeX and
downloaded the Memoir doc class documentation and read it all, because
yeah, if you ever want to create or change a style, you're going to
need a good knowledge of LaTeX.

Stefano makes an excellent point that lack of LaTeX knowledge slows you
down, as it does for me to this day, 11 years after I came to LyX. One
way I like to minimize the slowing is, when I create a new style, do a
minimal job of it so it's recognizable as a different style on both
output and the LyX environment. So I take 5 or 10 minutes to make the
style and then start pounding out content again. Then, every once in a
while, I take a technical day and make the styles look how I want them
to look.

Thanks

SteveT


Re: program listing of child documents with accents

2012-02-13 Thread Ricardo
Following Richard advice, below posted source code of a small document.
With the current lyx configuration I can insert a child document with the
program listing input. The document is saved utf8. I can see accents on the
pdf output, but the breaklines of the listings package does not seem to
work and I do not why. A long line does not break at any place, despite
breaklines=true param is set.
Any help welcomed
Thanks again.

lyx source code

 % Preview source code

%% LyX 1.6.7 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[11pt,catalan]{report}

\usepackage[T1]{fontenc}

\usepackage[utf8x]{inputenc}

\usepackage{listings}

\usepackage[a4paper]{geometry}

\geometry{verbose,tmargin=3cm,bmargin=2cm,lmargin=3.5cm,rmargin=2.5cm,headheight=2cm,headsep=1cm,footskip=1.5cm}

\setlength{\parskip}{\bigskipamount}

\setlength{\parindent}{0pt}

\usepackage{calc}

\usepackage{amsthm}

\usepackage{amsmath}

\usepackage{amssymb}

\usepackage{esint}

\makeatletter

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section}

\numberwithin{figure}{section}

%% User specified LaTeX commands.

\usepackage{verbatim}

\usepackage{varioref}

\usepackage{ucs}

\usepackage{framed}

\usepackage[T1]{fontenc}

\usepackage{ucs}

\usepackage[utf8x]{inputenc}

\makeatother

\usepackage{babel}

\begin{document}

Document d'exemple.

document;settings;language;català

document;settings;language;other utf8x

No problem with accents on main document: áéíóú

%

\framebox{\begin{minipage}[t]{1\columnwidth}%

Inserted child document with accents stored utf-8. Program listing

input selected

\scriptsize

\lstinputlisting[breaklines=true,extendedchars=false]{childdoc-utf8}

\scriptsize%

\end{minipage}}

\nocite{*}

\end{document}



utf8 saved file content:  
Child document. Stored UTF8.
Áéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèá
éíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéí


Re: is lyx really appropriate for my book.

2012-02-13 Thread Marcelo Acuña
  To start writing a book I suggest to start with LyX's thesis

  template files. You find them in LyX's installation folder under
  \Resources\templates\thesis.
 
 Another option (and one I recently used) for writing books with Lyx is
 to use the memoir class. It is probably the most flexible class ever
 produced for LateX and it allows tweaking of most, if not all, aspects
 of a publications. It also has a comprehensive, very well written
 manual (a book, really).  It will require you to learn some LaTeX,
 though.


I am using koma-script book class and I recommended it.
So far I did not need to write my own environment.

Marcelo

Re: Customizing stdmenus.inc to use git

2012-02-13 Thread Richard Heck

On 02/13/2012 03:29 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I would ike to use git and it was mentioned here that one can
customize the stdmenus.inc file so that the VC commands use git.
Not so far as I know. LyX does not have native support for git. It could 
be added, but
last time I asked there were some issues that would need resolving. 
E.g., what check-in

means in git is very different from what it means in svn.

Richard



Re: is lyx really appropriate for my book.

2012-02-13 Thread Uwe Stöhr

Am 13.02.2012 15:28, schrieb stefano franchi:


Another option (and one I recently used) for writing books with Lyx is
to use the memoir class.


This is one option, the other one is the KOMA-script book class. This is used for most LyX manuals 
and it is my opinion a bit more flexible. But this is of course a matter of taste.



Let me add one comment to the great response from Steve: I don't think
you can become a fast writer in Lyx (as Steve says) unless you get at
least an idea of how Latex works and thinks.


I don't agree, LyX is designed that you don't need to learn LaTeX and that is why I designed the 
thesis template. You see there that you cann do almost all you need the LyX way. For very special 
things I wrote LyX's EmbeddedObjects manual. So in case you have troubles you should find always a 
quick answer in the LyX manuals. The only thing one needs to learn is to concentrate o writing the 
text and not to look frequently how it will look. The typical beginner's mistake is to try to 
fine-tune everything at the beginning also if not even the first chapter is ready. The final 
formatting can be changed at every time easily for the whole document.
(When you publish a book you have anyway to fulfill the publisher's guidelines. In most cases the 
publisher will do the final layout for you, if you like this or not.)


regards Uwe


Re: is lyx really appropriate for my book.

2012-02-13 Thread stefano franchi
On Mon, Feb 13, 2012 at 4:17 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 13.02.2012 15:28, schrieb stefano franchi:
 I don't agree, LyX is designed that you don't need to learn LaTeX and that
 is why I designed the thesis template. You see there that you cann do almost
 all you need the LyX way. For very special things I wrote LyX's
 EmbeddedObjects manual. So in case you have troubles you should find always
 a quick answer in the LyX manuals. The only thing one needs to learn is to
 concentrate o writing the text and not to look frequently how it will look.
 The typical beginner's mistake is to try to fine-tune everything at the
 beginning also if not even the first chapter is ready. The final formatting
 can be changed at every time easily for the whole document.
 (When you publish a book you have anyway to fulfill the publisher's
 guidelines. In most cases the publisher will do the final layout for you, if
 you like this or not.)

Well, that's exactly the issue. IF your publisher does the
typesetting, THEN you can forget about LaTeX.
What happens more and more frequently, though, is that your publisher
will give you a set of guidelines set up for Microsoft Word and will
want a pdf back. At that point getting to know LaTex is inevitable.

I do agree with you, Uwe: concentrate on writing, not on typesetting.
However, know your typesetting fate before you start to write and
choose the right options (including whther to buy a LaTeX book or
not)---it will make everything simpler later on.

Cheers,

Stefano


 regards Uwe



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


How to force tex2lyx to read unicode (from within Lyx)?

2012-02-13 Thread stefano franchi
I have been helping Eric Weir with his Scrivener--LaTeX--Lyx import
and we have narrowed down the problem to Lyx not importing a
Unicode-encoded file as Unicode.
So tex2lyx is the culprit. Wasn't this solved some time ago, however?I
mean: automatic recognition of the imported file encoding?

Try out the enclosed minimal lyx file.

1. exporting to latex and reimporting into lyx from
FIleImportLatex(plain) produces garbage characters for the dashes

2. However, calling tex2lyx -e UTF8 from the command line produces
the correct file.

Is this a bug? Or a feature?

Cheers,

 Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


em-dash-test.lyx
Description: application/lyx


Re: is lyx really appropriate for my book.

2012-02-13 Thread Rich Shepard

On Mon, 13 Feb 2012, Steve Litt wrote:


Memoir is cool, but be very careful, because Memoir screws up with certain
other packages, most notably hyperref, for which you'll need the memhfixc
package, and a lot of rain dances to get it to work. Or at least that's
how I remember it. My thought is if you use Memoir, use it every time so
you get to know Memoir like the back of your hand, and you can fix
hyperref problems in minutes instead of days.


  Some years ago I settled on the KOMA-Script classes as my defaults.
Learned how to tweak them to my specifications and stuck with them ever
since.

  Like many applications (and linux/*BSD in general) there are multiple
tools to accomplish any task. It's better to pick one and learn it well than
to switch from one to another. I've done the same with R: I use the lattice
package for plotting while others use the base plot package and still others
prefer ggplot2.

  By the same token, I've adopted the Palatino typeface as the default for
all my LyX documents and PSTricks for all vector plotting. Makes life
simpler and more productive.

Rich



Re: is lyx really appropriate for my book.

2012-02-13 Thread Uwe Stöhr

Am 13.02.2012 23:35, schrieb stefano franchi:


Well, that's exactly the issue. IF your publisher does the
typesetting, THEN you can forget about LaTeX.


I don't know any scientific publisher who is not using TeX. Also most of the humanity-linked 
publishers are using it in the background. They sometimes even require MS Word format but transform 
the word file to TeX to be able to layout the text properly. So just ask you publisher.



However, know your typesetting fate before you start to write and
choose the right options (including whther to buy a LaTeX book or
not)---it will make everything simpler later on.


I still cannot agree to this. If you need a special LaTeX book, then I failed my goal. I invested 
countless hours for the LyX documentation to overcome the need of learning LaTeX. (When I started 
TeXing it frustrated me a lot and the LaTeX books even more.)


What is of course helpful is to look into the documentation of the document class you are using. So 
in case you prefer memoir or KOMA-script, look at its documentation file, but first after you 
finished your first chapter. Then you already have a feeling how writing with LyX works. Document 
class options can be added and removed at any time later.


regards Uwe


Re: is lyx really appropriate for my book.

2012-02-13 Thread stefano franchi
On Mon, Feb 13, 2012 at 4:44 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 13.02.2012 23:35, schrieb stefano franchi:


 Well, that's exactly the issue. IF your publisher does the
 typesetting, THEN you can forget about LaTeX.


 I don't know any scientific publisher who is not using TeX. Also most of the
 humanity-linked publishers are using it in the background. They sometimes
 even require MS Word format but transform the word file to TeX to be able to
 layout the text properly. So just ask you publisher.

Sorry Uwe, but this is not true---at least not in the US. Most
publishers in my field (Humanities) do not use latex at all. When
they ask for Word is because they use inDesign or Quark Xpress (this
one less and less true).  And smaller presses--or not so small
presses, like Rodopi---just go for PDF+print-on demand. I hear from
colleagues that the  social sciences are the same. Latex dominates in
CS and Math only. Even some (and, I hear, more and more) hard
scientists (i.e. physicists) now use word.


 However, know your typesetting fate before you start to write and
 choose the right options (including whther to buy a LaTeX book or
 not)---it will make everything simpler later on.


 I still cannot agree to this. If you need a special LaTeX book, then I
 failed my goal. I invested countless hours for the LyX documentation to
 overcome the need of learning LaTeX. (When I started TeXing it frustrated me
 a lot and the LaTeX books even more.)

 What is of course helpful is to look into the documentation of the document
 class you are using. So in case you prefer memoir or KOMA-script, look at
 its documentation file, but first after you finished your first chapter.
 Then you already have a feeling how writing with LyX works. Document class
 options can be added and removed at any time later.

This is a matter of preference. Personally, I think the content/format
separation that LateX (and therefore lyx) is built upon is far from
perfect. It is a great regulative idea but it doesn't always
work---witness the counteless pieces of advice on this list to use ERT
code (which is often TeX code). I prefer to like to know my destiny
beforehand. Then again, I am a pessimist by nature.


Cheers,

Stefano




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: is lyx really appropriate for my book.

2012-02-13 Thread Jens Nöckel

On Feb 13, 2012, at 2:58 PM, stefano franchi wrote:

 On Mon, Feb 13, 2012 at 4:44 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 13.02.2012 23:35, schrieb stefano franchi:
 
 
 Well, that's exactly the issue. IF your publisher does the
 typesetting, THEN you can forget about LaTeX.
 
 
 I don't know any scientific publisher who is not using TeX. Also most of the
 humanity-linked publishers are using it in the background. They sometimes
 even require MS Word format but transform the word file to TeX to be able to
 layout the text properly. So just ask you publisher.
 
 Sorry Uwe, but this is not true---at least not in the US. Most
 publishers in my field (Humanities) do not use latex at all. When
 they ask for Word is because they use inDesign or Quark Xpress (this
 one less and less true).  And smaller presses--or not so small
 presses, like Rodopi---just go for PDF+print-on demand. I hear from
 colleagues that the  social sciences are the same. Latex dominates in
 CS and Math only. Even some (and, I hear, more and more) hard
 scientists (i.e. physicists) now use word.
 
Sorry, Stefano - but LaTeX is undoubtedly the main physics publication vehicle. 

And LyX has gotten orders of magnitude better at decoupling the user experience 
from the LaTeX source in the past decade, so I would agree that you no longer 
need to know LaTeX to use it in a standard way. There are still the occasional 
LaTeX errors, but I can't recall any specific recent example, and that just 
proves that things have improved a lot…

Jens



Re: is lyx really appropriate for my book.

2012-02-13 Thread Steve Litt
On Sun, 12 Feb 2012 05:53:27 -0800
Colin Williams co...@seattlesoft.com wrote:

 I'm writing a book. I would like to consider the possibility that I
 will do a small print run of 1000-5000 copies. I am certain I'm going
 to publish it as an ebook. I would expect the printed book would be
 in paperback form. I would like the lyx-users to tell me if they
 think its the right tool for the job. I know lyx is nice for making
 mathematics papers,but is it good for making a book which you want to
 reformat for displays and printed pages of varying sizes? Are there
 other programs I should consider?

Hi Colin,

Now that we're all discussing document classes and details, and it
looks like you actually might use LyX, I think it's time for me to
repeat my twice-annual advice.

LITT'S TWICE ANNUAL ADVICE:

In your book's main matter, use styles and nothing but styles. Never
apply an appearance directly, but instead apply appearances through
styles that match the usage in the document (Chapter, section,
subsection, Quote, tip, warning, etc). BUT, in the front matter, feel
free to apply appearances directly, and DO NOT use the document class's
facilities for title, author, etc, and just write them with proper
appearances and spacing.

I've done it both ways, and it's much easier and less frustrating to do
it the way I discussed in the preceding paragraph.

SteveT




Re: is lyx really appropriate for my book.

2012-02-13 Thread stefano franchi
On Mon, Feb 13, 2012 at 5:11 PM, Jens Nöckel noec...@uoregon.edu wrote:

 On Feb 13, 2012, at 2:58 PM, stefano franchi wrote:

 On Mon, Feb 13, 2012 at 4:44 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 13.02.2012 23:35, schrieb stefano franchi:


 Well, that's exactly the issue. IF your publisher does the
 typesetting, THEN you can forget about LaTeX.


 I don't know any scientific publisher who is not using TeX. Also most of the
 humanity-linked publishers are using it in the background. They sometimes
 even require MS Word format but transform the word file to TeX to be able to
 layout the text properly. So just ask you publisher.

 Sorry Uwe, but this is not true---at least not in the US. Most
 publishers in my field (Humanities) do not use latex at all. When
 they ask for Word is because they use inDesign or Quark Xpress (this
 one less and less true).  And smaller presses--or not so small
 presses, like Rodopi---just go for PDF+print-on demand. I hear from
 colleagues that the  social sciences are the same. Latex dominates in
 CS and Math only. Even some (and, I hear, more and more) hard
 scientists (i.e. physicists) now use word.

 Sorry, Stefano - but LaTeX is undoubtedly the main physics publication 
 vehicle.



Glad to hear it! The day MS Word goes out of existence I will be a happy camper.


 And LyX has gotten orders of magnitude better at decoupling the user 
 experience from the LaTeX source in the past decade, so I would agree that 
 you no longer need to know LaTeX to use it in a standard way. There are still 
 the occasional LaTeX errors, but I can't recall any specific recent example, 
 and that just proves that things have improved a lot…


Here we disagree. I have been helping another user with a conversion
issue just today---and I would not have gone anywhere without knowing
(a bit of) LaTex. Lyx may well have reach the poitn where 80% or 90%
of what you need to do is Latex-free. Even 95%. Still, it is not 100%
(and, in my opinion, it never will. Latex certainly isn't).
This is not meant to be a criticism of the great job of the Lyx
developers. I think Lyx is a great program that would deserves a much
greater user base than it has. I am certainly glad I use it---and I
don't use it anything else.

I'll shut up now---we are veering dangerously close to pure
philosophy---and that's work ;-)

Cheers,

Stefano




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas AM University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-13 Thread Richard Heck

On 02/13/2012 05:41 PM, stefano franchi wrote:

I have been helping Eric Weir with his Scrivener--LaTeX--Lyx import
and we have narrowed down the problem to Lyx not importing a
Unicode-encoded file as Unicode.

I'm glad to hear someone was able to help with this. Thanks for your 
efforts on behalf of the LyX community.



So tex2lyx is the culprit. Wasn't this solved some time ago, however?I
mean: automatic recognition of the imported file encoding?

Well, that's a complicated issue. They may have tried to do a better 
job, but recognizing the file encoding completely reliably is not in 
general possible. There's some famous example of this.



Try out the enclosed minimal lyx file.

1. exporting to latex and reimporting into lyx from
FIleImportLatex(plain) produces garbage characters for the dashes

2. However, callingtex2lyx -e UTF8 from the command line produces
the correct file.
Still, it's surprising we fail in this particular case, so I'd guess it 
is indeed a bug. I'll cross-post to devel.


Richard



display fonts in Lyx 2.0.2

2012-02-13 Thread s nedunuri
I just installed Lyx on my new machine (Windows 7) and noticed that 
compared with Lyx 2.0.0 on my old machine (also Windows 7) the display 
fonts don't look as nice. Its hard to describe except to say that they 
look somewhat faded or the characters somehow look like they were 
printed with a printer that was low on ink! I checked and all the 
settings are the same on the two Lyx's. Any ideas?


cheers



Re: is lyx really appropriate for my book.

2012-02-13 Thread Jürgen Spitzmüller
Uwe Stöhr wrote:
 I don't know any scientific publisher who is not using TeX.

Me, on the contrary, I do not know a single publisher who accepts TeX as an 
input format (this is in the humanities field). Generally, they want camera 
ready PDF for monographs (which then can be of course done with TeX), or MS 
Word documents for journals and proceedings. I have experienced that some of 
these journals and proceedings were in fact produced with TeX in the end, but 
even then they have not accepted TeX file as input from me, simply because the 
editors and reviewers don't know how to deal with that format.

Jürgen

Customizing stdmenus.inc to use git

2012-02-13 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I would ike to use git and it was mentioned here that one can
customize the stdmenus.inc file so that the VC commands use git.

I looked into the file, but could not gather how to change the
following section so that git is used:

Menu "file_vc"
OptItem "Register...|R" "vc-register"
OptItem "Check In Changes...|I" "vc-check-in"
OptItem "Check Out for Edit|O" "vc-check-out"
OptItem "Update Local Directory From Repository|d"
"vc-repo-upd$
OptItem "Revert to Repository Version|v" "vc-revert"
OptItem "Undo Last Check In|U" "vc-undo-last"
OptItem "Compare with Older Revision...|C" "vc-compare"
OptItem "Show History...|H" "dialog-show vclog"
OptItem "Use Locking Property|L" "vc-locking-toggle"



Could someone please provide an example?

Also: can I put a custom version into .lyx so that the customized
version is read, to avoid overwriting when updating?

Thanks,

Rainer

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk84ydkACgkQoYgNqgF2egriDgCcDJ2FnSF+X17esB3Yum/yhdnr
sY4AoIAei6EMzZOInYSTU1pRwzLy9sMh
=LCji
-END PGP SIGNATURE-


Re: Lyx und svn (or git)

2012-02-13 Thread Sebastian Krämer
On Sat, 2012-02-11 at 17:00 +0100, Uwe Ade wrote:
> Hello,
> 
> I thing about the problem to manage the Lyx-files from my lectures. I heard 
> that is possible to use svn or git to manage the lyx documente direct from 
> Lyx. The last two evenings i searched with google to find a good describtion 
> who this works but im not succesfull. Some on the list how know a good link?

I haven't dug through the manual parts, and I only use a small part of
the functionality. What works well for me is:

Create, checkout from an svn repo in terminal. Then, when using lyx,
commiting changes to the lyx file works trivially (from the menu). When
adding graphics is involved or anything else that goes beyond the lyx
file itself, I commit from terminal again.
I have no experience with what lyx does in case of collaboration and
conflicts since I'm the only committer to my documents. Anyway, for my
use case, lyx's ability is sufficient and easy to use.



Re: Initials Module

2012-02-13 Thread d c
Uwe Stöhr  web.de> writes:
> Have you had a look at sec. 6.3 "Initials" of the EmbeddedObjects manual that 
you find in LyX's Help 
> menu?
You know, uh, duh, I am embarassed to say, that actually I remember passing 
over 

a loose reference to it somewhere, (not sure why I ignored it perhaps because 
the 

reference was couched in someone's techspeak I didn't understand) in the midst 
of 

a long fruitless google search that turned up nothing but a skimpy reference to 

the fact that somebody named Uw...uh...hmm...had added support for it and a 

longwinded discussion purportedly about it but really aimed at developers, god 

bless 'em...but now I see that it is carefully clearly and meticulously spelled 

out in the EmbeddedObjects (what does that mean? Sounds like something to do 
with 

graphics or something? Why is there no space in the middle? Why should I be 

looking there?) manual even though the user's guide doesn't mention it. 


In other words, I am a fool, thanks for adding support for it, it is cool, you 

are da bomb, and now I see how it works. yippie.

:-)

ps why does gmane balk at lines over 80 characters? I mean who writes 
paragraphs with less that 80 characters?




Re: Errors on publishing [to pdf]

2012-02-13 Thread Eric Weir

On Feb 12, 2012, at 1:18 PM, Richard Heck wrote:

> Once you have the file in LyX, just try: View>PDF(XeTeX), e.g. That said, I'm 
> definitely not an expert on this encoding stuff. If you could produce a 
> really simple example file---create it in Scrivener and export it as 
> usual---that exhibits the problem, that will definitely help.


Thanks again, Richard. I thought the XeTeX/LuaTeX suggestion would involve an 
additional compiling step. I see that it does not. Both compile, but instead of 
giving error messages they substitute weird characters for the problemmatic 
characters, e.g., an em-dash becomes âĂT. Sometimes it does the same for 
en-dashes, sometimes not. Sometimes with the apostrophe, sometimes not. Also 
with accented characters.

The file I'm working on is not that complicated: 12 pages with bibliography and 
footnotes; title, author, and section headings formatted KOMA-Script default. 

Assuming that the problem is Unicode characters, I'm also gonna check with the 
Scrivener forum to see if there's a way to stop that.  

Sincerely,
--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net






Re: Errors on publishing [to pdf]

2012-02-13 Thread stefano franchi
On Mon, Feb 13, 2012 at 6:14 AM, Eric Weir  wrote:
>
> On Feb 12, 2012, at 1:18 PM, Richard Heck wrote:
>
> Once you have the file in LyX, just try: View>PDF(XeTeX), e.g. That said,
> I'm definitely not an expert on this encoding stuff. If you could produce a
> really simple example file---create it in Scrivener and export it as
> usual---that exhibits the problem, that will definitely help.
>
>
> Thanks again, Richard. I thought the XeTeX/LuaTeX suggestion would involve
> an additional compiling step. I see that it does not. Both compile, but
> instead of giving error messages they substitute weird characters for the
> problemmatic characters, e.g., an em-dash becomes âĂT. Sometimes it does
> the same for en-dashes, sometimes not. Sometimes with the apostrophe,
> sometimes not. Also with accented characters.
>

Eric,

you may have to check the encoding of your lyx file. If you use XeTeX
compilation (or LuaTeX, for that mater) the file should be in Unicode.
It looks like it isn't. Be sure:

1. that Scrivener-generated LateX code is in Unicode encoding (it may
be an option---LaTex was unable to read unicode until recently.
2. That Lyx properly treats the file as Unicode-encoded. IT should do
so automatically, but just to be on the safe side,go to
Document>>Settings>>Language  under "Encoding" select the radio button
"Other" and from the drop-down list next to it choose *Unicode (XeTeX)
(UTF8)"

Hope it helps,

Stefano

> The file I'm working on is not that complicated: 12 pages with bibliography
> and footnotes; title, author, and section headings formatted KOMA-Script
> default.
>
> Assuming that the problem is Unicode characters, I'm also gonna check with
> the Scrivener forum to see if there's a way to stop that.
>
> Sincerely,
> --
> Eric Weir
> Decatur, GA  USA
> eew...@bellsouth.net
>
>
>
>



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: is lyx really appropriate for my book.

2012-02-13 Thread stefano franchi
On Sun, Feb 12, 2012 at 7:01 PM, Uwe Stöhr  wrote:
> Am 12.02.2012 14:53, schrieb Colin Williams:
> To start writing a book I suggest to start with LyX's thesis template files.
> You find them in LyX's installation folder under
> \Resources\templates\thesis.

Another option (and one I recently used) for writing books with Lyx is
to use the memoir class. It is probably the most flexible class ever
produced for LateX and it allows tweaking of most, if not all, aspects
of a publications. It also has a comprehensive, very well written
manual (a book, really).  It will require you to learn some LaTeX,
though.

Let me add one comment to the great response from Steve: I don't think
you can become a fast writer in Lyx (as Steve says) unless you get at
least an idea of how Latex works and thinks. You need to learn a bit
about environments (paragraph styles), how fonts are used in LaTeX,
about the various components of a page, about compilation, etcetera.
Lyx does a marvelous job at hiding most of the complexity of Latex,
but when push comes to show and things go wrong (i.e. the file does
not compile, your output does not look th way it should, etcetera),
knowing a bit of the language Lyx uses to produce output becomes
precious. If, and when, you decide to start using Lyx, I would buy a
copy of The Latex Companion [1]  and start reading at least the first
few chapters.

Cheers,

Stefano

[1] http://tinyurl.com/7vr4hzk




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: Errors on publishing [to pdf]

2012-02-13 Thread Eric Weir

On Feb 13, 2012, at 9:16 AM, stefano franchi wrote:

> you may have to check the encoding of your lyx file. If you use XeTeX
> compilation (or LuaTeX, for that mater) the file should be in Unicode.
> It looks like it isn't. Be sure:
> 
> 1. that Scrivener-generated LateX code is in Unicode encoding (it may
> be an option---LaTex was unable to read unicode until recently.

Thanks, Stefano. I'm still waiting on a response from the Scrivener listserv.

> 2. That Lyx properly treats the file as Unicode-encoded. IT should do
> so automatically, but just to be on the safe side,go to
> Document>>Settings>>Language  under "Encoding" select the radio button
> "Other" and from the drop-down list next to it choose *Unicode (XeTeX)
> (UTF8)"

I made this change and tried compiling with XeTeX and LuaTeX. Still getting the 
weird substitutions. Tried quitting LyX and compiling again with the same 
result.

Is it possible that I will need to reimport the tex output from Scrivener?

Sincerely,
--
Eric Weir
Decatur, GA  USA
eew...@bellsouth.net

"Imagining the other is a powerful antidote to fanaticism and hatred." 

- Amos Oz



Re: is lyx really appropriate for my book.

2012-02-13 Thread Steve Litt
On Mon, 13 Feb 2012 08:28:30 -0600
stefano franchi  wrote:

> On Sun, Feb 12, 2012 at 7:01 PM, Uwe Stöhr  wrote:
> > Am 12.02.2012 14:53, schrieb Colin Williams:
> > To start writing a book I suggest to start with LyX's thesis
> > template files. You find them in LyX's installation folder under
> > \Resources\templates\thesis.
> 
> Another option (and one I recently used) for writing books with Lyx is
> to use the memoir class. It is probably the most flexible class ever
> produced for LateX and it allows tweaking of most, if not all, aspects
> of a publications. It also has a comprehensive, very well written
> manual (a book, really).  It will require you to learn some LaTeX,
> though.

Memoir is cool, but be very careful, because Memoir screws up with
certain other packages, most notably hyperref, for which you'll need the
memhfixc package, and a lot of rain dances to get it to work. Or at
least that's how I remember it. My thought is if you use Memoir, use it
every time so you get to know Memoir like the back of your hand, and
you can fix hyperref problems in minutes instead of days.

> 
> Let me add one comment to the great response from Steve: I don't think
> you can become a fast writer in Lyx (as Steve says) unless you get at
> least an idea of how Latex works and thinks. You need to learn a bit
> about environments (paragraph styles), how fonts are used in LaTeX,
> about the various components of a page, about compilation, etcetera.
> Lyx does a marvelous job at hiding most of the complexity of Latex,
> but when push comes to show and things go wrong (i.e. the file does
> not compile, your output does not look th way it should, etcetera),
> knowing a bit of the language Lyx uses to produce output becomes
> precious. If, and when, you decide to start using Lyx, I would buy a
> copy of The Latex Companion [1]  and start reading at least the first
> few chapters.

IIRC I bought both The Latex Companion and Guide to LaTeX and
downloaded the Memoir doc class documentation and read it all, because
yeah, if you ever want to create or change a style, you're going to
need a good knowledge of LaTeX.

Stefano makes an excellent point that lack of LaTeX knowledge slows you
down, as it does for me to this day, 11 years after I came to LyX. One
way I like to minimize the slowing is, when I create a new style, do a
minimal job of it so it's recognizable as a different style on both
output and the LyX environment. So I take 5 or 10 minutes to make the
style and then start pounding out content again. Then, every once in a
while, I take a technical day and make the styles look how I want them
to look.

Thanks

SteveT


Re: program listing of child documents with accents

2012-02-13 Thread Ricardo
Following Richard advice, below posted source code of a small document.
With the current lyx configuration I can insert a child document with the
program listing input. The document is saved utf8. I can see accents on the
pdf output, but the breaklines of the listings package does not seem to
work and I do not why. A long line does not break at any place, despite
breaklines=true param is set.
Any help welcomed
Thanks again.

>>

 % Preview source code

%% LyX 1.6.7 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[11pt,catalan]{report}

\usepackage[T1]{fontenc}

\usepackage[utf8x]{inputenc}

\usepackage{listings}

\usepackage[a4paper]{geometry}

\geometry{verbose,tmargin=3cm,bmargin=2cm,lmargin=3.5cm,rmargin=2.5cm,headheight=2cm,headsep=1cm,footskip=1.5cm}

\setlength{\parskip}{\bigskipamount}

\setlength{\parindent}{0pt}

\usepackage{calc}

\usepackage{amsthm}

\usepackage{amsmath}

\usepackage{amssymb}

\usepackage{esint}

\makeatletter

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section}

\numberwithin{figure}{section}

%% User specified LaTeX commands.

\usepackage{verbatim}

\usepackage{varioref}

\usepackage{ucs}

\usepackage{framed}

\usepackage[T1]{fontenc}

\usepackage{ucs}

\usepackage[utf8x]{inputenc}

\makeatother

\usepackage{babel}

\begin{document}

Document d'exemple.

document;settings;language;català

document;settings;language;other utf8x

No problem with accents on main document: áéíóú

%

\framebox{\begin{minipage}[t]{1\columnwidth}%

Inserted child document with accents stored utf-8. Program listing

input selected

\scriptsize

\lstinputlisting[breaklines=true,extendedchars=false]{childdoc-utf8}

\scriptsize%

\end{minipage}}

\nocite{*}

\end{document}



<
Child document. Stored UTF8.
Áéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèá
éíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéí


Re: is lyx really appropriate for my book.

2012-02-13 Thread Marcelo Acuña
> > To start writing a book I suggest to start with LyX's thesis

> > template files. You find them in LyX's installation folder under
> > \Resources\templates\thesis.
> 
> Another option (and one I recently used) for writing books with Lyx is
> to use the memoir class. It is probably the most flexible class ever
> produced for LateX and it allows tweaking of most, if not all, aspects
> of a publications. It also has a comprehensive, very well written
> manual (a book, really).  It will require you to learn some LaTeX,
> though.


I am using koma-script book class and I recommended it.
So far I did not need to write my own environment.

Marcelo

Re: Customizing stdmenus.inc to use git

2012-02-13 Thread Richard Heck

On 02/13/2012 03:29 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I would ike to use git and it was mentioned here that one can
customize the stdmenus.inc file so that the VC commands use git.
Not so far as I know. LyX does not have native support for git. It could 
be added, but
last time I asked there were some issues that would need resolving. 
E.g., what "check-in"

means in git is very different from what it means in svn.

Richard



Re: is lyx really appropriate for my book.

2012-02-13 Thread Uwe Stöhr

Am 13.02.2012 15:28, schrieb stefano franchi:


Another option (and one I recently used) for writing books with Lyx is
to use the memoir class.


This is one option, the other one is the KOMA-script book class. This is used for most LyX manuals 
and it is my opinion a bit more flexible. But this is of course a matter of taste.



Let me add one comment to the great response from Steve: I don't think
you can become a fast writer in Lyx (as Steve says) unless you get at
least an idea of how Latex works and thinks.


I don't agree, LyX is designed that you don't need to learn LaTeX and that is why I designed the 
thesis template. You see there that you cann do almost all you need the LyX way. For very special 
things I wrote LyX's EmbeddedObjects manual. So in case you have troubles you should find always a 
quick answer in the LyX manuals. The only thing one needs to learn is to concentrate o writing the 
text and not to look frequently how it will look. The typical beginner's mistake is to try to 
fine-tune everything at the beginning also if not even the first chapter is ready. The final 
formatting can be changed at every time easily for the whole document.
(When you publish a book you have anyway to fulfill the publisher's guidelines. In most cases the 
publisher will do the final layout for you, if you like this or not.)


regards Uwe


Re: is lyx really appropriate for my book.

2012-02-13 Thread stefano franchi
On Mon, Feb 13, 2012 at 4:17 PM, Uwe Stöhr  wrote:
> Am 13.02.2012 15:28, schrieb stefano franchi:
> I don't agree, LyX is designed that you don't need to learn LaTeX and that
> is why I designed the thesis template. You see there that you cann do almost
> all you need the LyX way. For very special things I wrote LyX's
> EmbeddedObjects manual. So in case you have troubles you should find always
> a quick answer in the LyX manuals. The only thing one needs to learn is to
> concentrate o writing the text and not to look frequently how it will look.
> The typical beginner's mistake is to try to fine-tune everything at the
> beginning also if not even the first chapter is ready. The final formatting
> can be changed at every time easily for the whole document.
> (When you publish a book you have anyway to fulfill the publisher's
> guidelines. In most cases the publisher will do the final layout for you, if
> you like this or not.)

Well, that's exactly the issue. IF your publisher does the
typesetting, THEN you can forget about LaTeX.
What happens more and more frequently, though, is that your publisher
will give you a set of guidelines set up for Microsoft Word and will
want a pdf back. At that point getting to know LaTex is inevitable.

I do agree with you, Uwe: concentrate on writing, not on typesetting.
However, know your typesetting fate before you start to write and
choose the right options (including whther to buy a LaTeX book or
not)---it will make everything simpler later on.

Cheers,

Stefano

>
> regards Uwe



-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


How to force tex2lyx to read unicode (from within Lyx)?

2012-02-13 Thread stefano franchi
I have been helping Eric Weir with his Scrivener-->LaTeX-->Lyx import
and we have narrowed down the problem to Lyx not importing a
Unicode-encoded file as Unicode.
So tex2lyx is the culprit. Wasn't this solved some time ago, however?I
mean: automatic recognition of the imported file encoding?

Try out the enclosed minimal lyx file.

1. exporting to latex and reimporting into lyx from
FIle>>Import>>Latex(plain) produces garbage characters for the dashes

2. However, calling >tex2lyx -e UTF8 from the command line produces
the correct file.

Is this a bug? Or a feature?

Cheers,

 Stefano

-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


em-dash-test.lyx
Description: application/lyx


Re: is lyx really appropriate for my book.

2012-02-13 Thread Rich Shepard

On Mon, 13 Feb 2012, Steve Litt wrote:


Memoir is cool, but be very careful, because Memoir screws up with certain
other packages, most notably hyperref, for which you'll need the memhfixc
package, and a lot of rain dances to get it to work. Or at least that's
how I remember it. My thought is if you use Memoir, use it every time so
you get to know Memoir like the back of your hand, and you can fix
hyperref problems in minutes instead of days.


  Some years ago I settled on the KOMA-Script classes as my defaults.
Learned how to tweak them to my specifications and stuck with them ever
since.

  Like many applications (and linux/*BSD in general) there are multiple
tools to accomplish any task. It's better to pick one and learn it well than
to switch from one to another. I've done the same with R: I use the lattice
package for plotting while others use the base plot package and still others
prefer ggplot2.

  By the same token, I've adopted the Palatino typeface as the default for
all my LyX documents and PSTricks for all vector plotting. Makes life
simpler and more productive.

Rich



Re: is lyx really appropriate for my book.

2012-02-13 Thread Uwe Stöhr

Am 13.02.2012 23:35, schrieb stefano franchi:


Well, that's exactly the issue. IF your publisher does the
typesetting, THEN you can forget about LaTeX.


I don't know any scientific publisher who is not using TeX. Also most of the humanity-linked 
publishers are using it in the background. They sometimes even require MS Word format but transform 
the word file to TeX to be able to layout the text properly. So just ask you publisher.



However, know your typesetting fate before you start to write and
choose the right options (including whther to buy a LaTeX book or
not)---it will make everything simpler later on.


I still cannot agree to this. If you need a special LaTeX book, then I failed my goal. I invested 
countless hours for the LyX documentation to overcome the need of learning LaTeX. (When I started 
TeXing it frustrated me a lot and the LaTeX books even more.)


What is of course helpful is to look into the documentation of the document class you are using. So 
in case you prefer memoir or KOMA-script, look at its documentation file, but first after you 
finished your first chapter. Then you already have a feeling how writing with LyX works. Document 
class options can be added and removed at any time later.


regards Uwe


Re: is lyx really appropriate for my book.

2012-02-13 Thread stefano franchi
On Mon, Feb 13, 2012 at 4:44 PM, Uwe Stöhr  wrote:
> Am 13.02.2012 23:35, schrieb stefano franchi:
>
>
>> Well, that's exactly the issue. IF your publisher does the
>> typesetting, THEN you can forget about LaTeX.
>
>
> I don't know any scientific publisher who is not using TeX. Also most of the
> humanity-linked publishers are using it in the background. They sometimes
> even require MS Word format but transform the word file to TeX to be able to
> layout the text properly. So just ask you publisher.

Sorry Uwe, but this is not true---at least not in the US. Most
publishers in my field (Humanities) do not use latex at all. When
they ask for Word is because they use inDesign or Quark Xpress (this
one less and less true).  And smaller presses--or not so small
presses, like Rodopi---just go for PDF+print-on demand. I hear from
colleagues that the  social sciences are the same. Latex dominates in
CS and Math only. Even some (and, I hear, more and more) hard
scientists (i.e. physicists) now use word.


>> However, know your typesetting fate before you start to write and
>> choose the right options (including whther to buy a LaTeX book or
>> not)---it will make everything simpler later on.
>
>
> I still cannot agree to this. If you need a special LaTeX book, then I
> failed my goal. I invested countless hours for the LyX documentation to
> overcome the need of learning LaTeX. (When I started TeXing it frustrated me
> a lot and the LaTeX books even more.)
>
> What is of course helpful is to look into the documentation of the document
> class you are using. So in case you prefer memoir or KOMA-script, look at
> its documentation file, but first after you finished your first chapter.
> Then you already have a feeling how writing with LyX works. Document class
> options can be added and removed at any time later.

This is a matter of preference. Personally, I think the content/format
separation that LateX (and therefore lyx) is built upon is far from
perfect. It is a great "regulative idea" but it doesn't always
work---witness the counteless pieces of advice on this list to use ERT
code (which is often TeX code). I prefer to like to know my destiny
beforehand. Then again, I am a pessimist by nature.


Cheers,

Stefano




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: is lyx really appropriate for my book.

2012-02-13 Thread Jens Nöckel

On Feb 13, 2012, at 2:58 PM, stefano franchi wrote:

> On Mon, Feb 13, 2012 at 4:44 PM, Uwe Stöhr  wrote:
>> Am 13.02.2012 23:35, schrieb stefano franchi:
>> 
>> 
>>> Well, that's exactly the issue. IF your publisher does the
>>> typesetting, THEN you can forget about LaTeX.
>> 
>> 
>> I don't know any scientific publisher who is not using TeX. Also most of the
>> humanity-linked publishers are using it in the background. They sometimes
>> even require MS Word format but transform the word file to TeX to be able to
>> layout the text properly. So just ask you publisher.
> 
> Sorry Uwe, but this is not true---at least not in the US. Most
> publishers in my field (Humanities) do not use latex at all. When
> they ask for Word is because they use inDesign or Quark Xpress (this
> one less and less true).  And smaller presses--or not so small
> presses, like Rodopi---just go for PDF+print-on demand. I hear from
> colleagues that the  social sciences are the same. Latex dominates in
> CS and Math only. Even some (and, I hear, more and more) hard
> scientists (i.e. physicists) now use word.
> 
Sorry, Stefano - but LaTeX is undoubtedly the main physics publication vehicle. 

And LyX has gotten orders of magnitude better at decoupling the user experience 
from the LaTeX source in the past decade, so I would agree that you no longer 
need to know LaTeX to use it in a standard way. There are still the occasional 
LaTeX errors, but I can't recall any specific recent example, and that just 
proves that things have improved a lot…

Jens



Re: is lyx really appropriate for my book.

2012-02-13 Thread Steve Litt
On Sun, 12 Feb 2012 05:53:27 -0800
Colin Williams  wrote:

> I'm writing a book. I would like to consider the possibility that I
> will do a small print run of 1000-5000 copies. I am certain I'm going
> to publish it as an ebook. I would expect the printed book would be
> in paperback form. I would like the lyx-users to tell me if they
> think its the right tool for the job. I know lyx is nice for making
> mathematics papers,but is it good for making a book which you want to
> reformat for displays and printed pages of varying sizes? Are there
> other programs I should consider?

Hi Colin,

Now that we're all discussing document classes and details, and it
looks like you actually might use LyX, I think it's time for me to
repeat my twice-annual advice.

LITT'S TWICE ANNUAL ADVICE:

In your book's main matter, use styles and nothing but styles. Never
apply an appearance directly, but instead apply appearances through
styles that match the usage in the document (Chapter, section,
subsection, Quote, tip, warning, etc). BUT, in the front matter, feel
free to apply appearances directly, and DO NOT use the document class's
facilities for title, author, etc, and just write them with proper
appearances and spacing.

I've done it both ways, and it's much easier and less frustrating to do
it the way I discussed in the preceding paragraph.

SteveT




Re: is lyx really appropriate for my book.

2012-02-13 Thread stefano franchi
On Mon, Feb 13, 2012 at 5:11 PM, Jens Nöckel  wrote:
>
> On Feb 13, 2012, at 2:58 PM, stefano franchi wrote:
>
>> On Mon, Feb 13, 2012 at 4:44 PM, Uwe Stöhr  wrote:
>>> Am 13.02.2012 23:35, schrieb stefano franchi:
>>>
>>>
 Well, that's exactly the issue. IF your publisher does the
 typesetting, THEN you can forget about LaTeX.
>>>
>>>
>>> I don't know any scientific publisher who is not using TeX. Also most of the
>>> humanity-linked publishers are using it in the background. They sometimes
>>> even require MS Word format but transform the word file to TeX to be able to
>>> layout the text properly. So just ask you publisher.
>>
>> Sorry Uwe, but this is not true---at least not in the US. Most
>> publishers in my field (Humanities) do not use latex at all. When
>> they ask for Word is because they use inDesign or Quark Xpress (this
>> one less and less true).  And smaller presses--or not so small
>> presses, like Rodopi---just go for PDF+print-on demand. I hear from
>> colleagues that the  social sciences are the same. Latex dominates in
>> CS and Math only. Even some (and, I hear, more and more) hard
>> scientists (i.e. physicists) now use word.
>>
> Sorry, Stefano - but LaTeX is undoubtedly the main physics publication 
> vehicle.
>


Glad to hear it! The day MS Word goes out of existence I will be a happy camper.


> And LyX has gotten orders of magnitude better at decoupling the user 
> experience from the LaTeX source in the past decade, so I would agree that 
> you no longer need to know LaTeX to use it in a standard way. There are still 
> the occasional LaTeX errors, but I can't recall any specific recent example, 
> and that just proves that things have improved a lot…


Here we disagree. I have been helping another user with a conversion
issue just today---and I would not have gone anywhere without knowing
(a bit of) LaTex. Lyx may well have reach the poitn where 80% or 90%
of what you need to do is Latex-free. Even 95%. Still, it is not 100%
(and, in my opinion, it never will. Latex certainly isn't).
This is not meant to be a criticism of the great job of the Lyx
developers. I think Lyx is a great program that would deserves a much
greater user base than it has. I am certainly glad I use it---and I
don't use it anything else.

I'll shut up now---we are veering dangerously close to pure
philosophy---and that's work ;-)

Cheers,

Stefano




-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org


Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-13 Thread Richard Heck

On 02/13/2012 05:41 PM, stefano franchi wrote:

I have been helping Eric Weir with his Scrivener-->LaTeX-->Lyx import
and we have narrowed down the problem to Lyx not importing a
Unicode-encoded file as Unicode.

I'm glad to hear someone was able to help with this. Thanks for your 
efforts on behalf of the LyX community.



So tex2lyx is the culprit. Wasn't this solved some time ago, however?I
mean: automatic recognition of the imported file encoding?

Well, that's a complicated issue. They may have tried to do a better 
job, but recognizing the file encoding completely reliably is not in 
general possible. There's some famous example of this.



Try out the enclosed minimal lyx file.

1. exporting to latex and reimporting into lyx from
FIle>>Import>>Latex(plain) produces garbage characters for the dashes

2. However, calling>tex2lyx -e UTF8 from the command line produces
the correct file.
Still, it's surprising we fail in this particular case, so I'd guess it 
is indeed a bug. I'll cross-post to devel.


Richard



display fonts in Lyx 2.0.2

2012-02-13 Thread s nedunuri
I just installed Lyx on my new machine (Windows 7) and noticed that 
compared with Lyx 2.0.0 on my old machine (also Windows 7) the display 
fonts don't look as nice. Its hard to describe except to say that they 
look somewhat "faded" or the characters somehow look like they were 
printed with a printer that was low on ink! I checked and all the 
settings are the same on the two Lyx's. Any ideas?


cheers



Re: is lyx really appropriate for my book.

2012-02-13 Thread Jürgen Spitzmüller
Uwe Stöhr wrote:
> I don't know any scientific publisher who is not using TeX.

Me, on the contrary, I do not know a single publisher who accepts TeX as an 
input format (this is in the humanities field). Generally, they want camera 
ready PDF for monographs (which then can be of course done with TeX), or MS 
Word documents for journals and proceedings. I have experienced that some of 
these journals and proceedings were in fact produced with TeX in the end, but 
even then they have not accepted TeX file as input from me, simply because the 
editors and reviewers don't know how to deal with that format.

Jürgen