Re: Customizing stdmenus.inc to use git

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

On 13/02/12 21:50, Richard Heck wrote:
 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.

I am aware that it is not natively supported - but from time to time
it is mentioned that what one can do is to define your own commands
by using the vc-command lfuns in the stdmenus file (Vincent from
Ravenstein in the thread LyX version control with git)

So is it possible or not?

Rainer
 
 Richard
 


- -- 
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/

iEYEARECAAYFAk86G30ACgkQoYgNqgF2egoQuACggm7wxAl2G4RN3rGJBt2ijMEC
wYYAn1hzuVwi35kre+D2b9p9+cim2tTY
=k8Ra
-END PGP SIGNATURE-


Lyx Template for article submission to ACM

2012-02-14 Thread Bjorn Madsen
Hi lyx-users,
I'm looking for a quick way around converting my Lyx document to ACM
submission style.
Does anyone out there know an easy way to do that?

ACM have their style requirements on:
http://www.acm.org/publications/submissions/latex_style
and the LaTex package on:
http://www.acm.org/publications/latex_style/acm-small-v1-2.zip


Kind Regards

-- 
Bjorn Madsen
Ph.: (+44) 0 7792 030 720
bjorn.mad...@operationsresearchgroup.com


Roman numbering in bibliography

2012-02-14 Thread Emil Pavlov

Hello,

I have inserted an external bibtex bibliography in my lyx document and I 
would like to change the numbering in the bibliography section to 
capital roman numbers. The problem is that my document class is report 
(KOMA), so the command \backmatter isn't available.


Re: Roman numbering in bibliography

2012-02-14 Thread Jürgen Spitzmüller
Emil Pavlov wrote:
 I have inserted an external bibtex bibliography in my lyx document and I
 would like to change the numbering in the bibliography section to
 capital roman numbers. The problem is that my document class is report
 (KOMA), so the command \backmatter isn't available.

\pagenumbering{Roman}
\setcounter{page}{1}

Jürgen

Re: is lyx really appropriate for my book.

2012-02-14 Thread Eric Weir

On Feb 13, 2012, at 6:34 PM, Steve Litt wrote:

 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.

Advice well-taken, Steve. On both counts--using styles and front matter.

Your comment on the latter may be helpful to me. First, I've been off-and-on 
getting started with LyX for some time, now. Second, I've committed to the 
KOMA-Script document class, for now the article class. Third, I don't like what 
it does with the title and author information--huge bold title and huge author 
fonting centered. I want the first to be only slightly larger font size than 
body text and author the same size as body text, both flush-left, that I am 
less adamant about the latter.

Am I correct in understand you that I can just skip using the title and author 
environments and write and format the as if body text? Recently I tried 
formatting a title using the section environment and it would not compile to 
pdf without the title and author data.

Thanks,
--
Eric Weir
Decatur, GA
eew...@bellsouth.net

Style is truth. 

- Ray Bradbury



Re: is lyx really appropriate for my book.

2012-02-14 Thread Eric Weir

On Feb 14, 2012, at 2:01 AM, Jürgen Spitzmüller wrote:

 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.

How do you deal with this?

Thanks,
--
Eric Weir
eew...@bellsouth.net

The invincible shield of caring
Is a weapon sent from the sky 
against being dead. 

- Tao Te Ching 67









Re: is lyx really appropriate for my book.

2012-02-14 Thread Jürgen Spitzmüller
Eric Weir wrote:
 How do you deal with this?

For monographs (or if I'm editing a book myself) I use LyX/LaTeX to make a 
camera-ready PDF. This works pretty well, except that I have to import 
colloborator's chapters from word usually (via LibreOffice's LaTeX export). I 
have also used Word and InDesign for books in the past, but frankly, I never 
want to do this again. These tools are just not prepared for books. I spent 
more time with fixing glitches than I need for importing into LyX. And the 
result looks much better with LyX/LaTeX, anyway (InDesign produces good 
typography as well, but it is [or was, back then] deficient in terms of 
hyphenation and things such as automatic running headers).

For papers, I use LyX to write the first version, then export to Word (via 
ODF/TeX4ht), polish it for submission and use Word/LibreOffice for further 
revisions. This is the more annoying part. I could use Word from the 
beginning, but I'm much faster with LyX, also I use BibTeX quite a lot.

Jürgen

Re: Customizing stdmenus.inc to use git

2012-02-14 Thread Richard Heck

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

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 13/02/12 21:50, Richard Heck wrote:

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.

I am aware that it is not natively supported - but from time to time
it is mentioned that what one can do is to define your own commands
by using the vc-command lfuns in the stdmenus file (Vincent from
Ravenstein in the thread LyX version control with git)

So is it possible or not?

I'd not seen vc-command before, but it seems to work like a general 
shell escape. I'm not entirely sure it's a good idea, since

vc-command U $$p rm *
will work perfectly well. See HelpLyX Functions.

Richard



Re: is lyx really appropriate for my book.

2012-02-14 Thread Richard Heck

On 02/14/2012 02:01 AM, Jürgen Spitzmüller wrote:


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).



Oxford.

Richard



Re: is lyx really appropriate for my book.

2012-02-14 Thread Richard Heck

On 02/14/2012 07:01 AM, Eric Weir wrote:

On Feb 13, 2012, at 6:34 PM, Steve Litt wrote:


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.

Advice well-taken, Steve. On both counts--using styles and front matter.

Your comment on the latter may be helpful to me. First, I've been off-and-on 
getting started with LyX for some time, now. Second, I've committed to the 
KOMA-Script document class, for now the article class. Third, I don't like what 
it does with the title and author information--huge bold title and huge author 
fonting centered. I want the first to be only slightly larger font size than 
body text and author the same size as body text, both flush-left, that I am 
less adamant about the latter.

Am I correct in understand you that I can just skip using the title and author 
environments and write and format the as if body text? Recently I tried 
formatting a title using the section environment and it would not compile to 
pdf without the title and author data.

You just put them in as author and title, and fix the typography later. 
One easy way to do it is just to copy the code that sets the title from 
the document class, in this case scrartcl.cls, and modify it as you see 
fit. Depending upon whether you have a title page or not, this is either 
the \maketitle command or else the \@maketitle command.


Richard



Re: Customizing stdmenus.inc to use git

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

On 14/02/12 09:16, Richard Heck wrote:
 On 02/14/2012 03:29 AM, Rainer M Krug wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
 
 On 13/02/12 21:50, Richard Heck wrote:
 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.
 I am aware that it is not natively supported - but from time to
 time it is mentioned that what one can do is to define your own
 commands by using the vc-command lfuns in the stdmenus file
 (Vincent from Ravenstein in the thread LyX version control with
 git)
 
 So is it possible or not?
 
 I'd not seen vc-command before, but it seems to work like a
 general shell escape. I'm not entirely sure it's a good idea,
 since vc-command U $$p rm * will work perfectly well. See
 HelpLyX Functions.

Found it - thanks.

I'll look into it.


Thanks,

Rainer

 
 Richard
 


- -- 
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/

iEYEARECAAYFAk86Y+0ACgkQoYgNqgF2egoasgCeK5pNtko/qOKX5uAdaxLJXob9
jAsAoICWhGGvNHwQ9q0ncPNh4fQ7e0B0
=Qe8b
-END PGP SIGNATURE-


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

2012-02-14 Thread Jean-Marc Lasgouttes

Le 14/02/2012 00:47, Richard Heck a écrit :

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.


tex2lyx is not really the culprit. The file you attach is broken : it 
does not use xetex/luatex, but it does use Unicode (XeTeX) (utf8) as 
encoding. As a result, the latex export of the file does not specify any 
encoding, and tex2lyx is not able to guess it.


Even better, try to visualize the file: the encoding will be bogus, 
without any intervention of tex2lyx.


What happens in this case is that the encoding is set to latin1 (utf8 is 
a better default in some sense, but if you guess it wrong, you can bet 
convertion errors, see bug #7509).


Unfortuantely, it seems that the encodings utf8 and utf8x (handled by 
plain latex), do not understand some of your hyphens, and produce a 
document that does not compile.


So your best bet is probably to produce a file that will be imported as 
XeTeX/LuaTeX. This will happen when some characteristic packages are 
recognized, which will happen after the followinf patch is applied.


Georg, Juergen, I'd like some feedback on the soundness of the patch. I 
know next to nil about xetex, and I do not know what is the current 
state of the art wrt tex2lyx.


JMarc


Index: src/tex2lyx/Preamble.cpp
===
--- src/tex2lyx/Preamble.cpp	(révision 40747)
+++ src/tex2lyx/Preamble.cpp	(copie de travail)
@@ -401,6 +401,7 @@
 	h_font_sans   = default;
 	h_font_typewriter = default;
 	h_font_default_family = default;
+	h_use_non_tex_fonts   = false;
 	h_font_sc = false;
 	h_font_osf= false;
 	h_font_sf_scale   = 100;
@@ -581,8 +582,11 @@
 	add_package(name, options);
 	string scale;
 
-	if (is_known(name, known_xetex_packages))
+	if (is_known(name, known_xetex_packages)) {
 		xetex = true;
+		h_use_non_tex_fonts = true;
+		p.setEncoding(utf8);
+	}
 
 	// roman fonts
 	if (is_known(name, known_roman_fonts)) {
@@ -901,6 +905,7 @@
 	\\font_sans   h_font_sans  \n
 	\\font_typewriter   h_font_typewriter  \n
 	\\font_default_family   h_font_default_family  \n
+	\\use_non_tex_fonts   h_use_non_tex_fonts  \n
 	\\font_sc   h_font_sc  \n
 	\\font_osf   h_font_osf  \n
 	\\font_sf_scale   h_font_sf_scale  \n
Index: src/tex2lyx/Preamble.h
===
--- src/tex2lyx/Preamble.h	(révision 40747)
+++ src/tex2lyx/Preamble.h	(copie de travail)
@@ -90,6 +90,7 @@
 	std::string h_font_sans;
 	std::string h_font_typewriter;
 	std::string h_font_default_family;
+	std::string h_use_non_tex_fonts;
 	std::string h_font_sc;
 	std::string h_font_osf;
 	std::string h_font_sf_scale;


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

2012-02-14 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote:
 Georg, Juergen, I'd like some feedback on the soundness of the patch. I 
 know next to nil about xetex, and I do not know what is the current 
 state of the art wrt tex2lyx.

The latter I don't know either, but the patch looks sane. We set the encoding 
to utf8 internally as well if \use_non_tex_fonts is true.

Jürgen

Ma-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir

I'm attempting to use the workaround suggested by Stefano to get LyX to 
recognize a Unicoded document as Unicoded. The workaround  involves use of the 
tex2lyx command. 

I'm on a Mac. When I run the command I get a command not found message. When I 
do locate tex2lyx, however, the file  shows up in two locations: 
/Applications/LyX.app/Contents/MacOS and 
/Applications/TeX/LyX.app/Contents/MacOS

How do I get the command to run?

Thanks,
--
Eric Weir
eew...@bellsouth.net

Every moment is unique and discrete.

Eknath Eswaran



Re: is lyx really appropriate for my book.

2012-02-14 Thread Eric Weir

On Feb 14, 2012, at 7:19 AM, Jürgen Spitzmüller wrote:

 For monographs (or if I'm editing a book myself) I use LyX/LaTeX to make a 
 camera-ready PDF. This works pretty well, except that I have to import 
 colloborator's chapters from word usually (via LibreOffice's LaTeX export). I 
 have also used Word and InDesign for books in the past, but frankly, I never 
 want to do this again. These tools are just not prepared for books. I spent 
 more time with fixing glitches than I need for importing into LyX. And the 
 result looks much better with LyX/LaTeX, anyway (InDesign produces good 
 typography as well, but it is [or was, back then] deficient in terms of 
 hyphenation and things such as automatic running headers).
  
 For papers, I use LyX to write the first version, then export to Word (via 
 ODF/TeX4ht), polish it for submission and use Word/LibreOffice for further 
 revisions. This is the more annoying part. I could use Word from the 
 beginning, but I'm much faster with LyX, also I use BibTeX quite a lot.


Thanks, Jurgen. 

While I'm at it, do I recall correctly that you're in the humanities?

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

Hatred destroys. Love heals.

- Eknath Easwaran



Re: is lyx really appropriate for my book.

2012-02-14 Thread Jürgen Spitzmüller
Eric Weir wrote:
 While I'm at it, do I recall correctly that you're in the humanities?

Yes (linguistics, for that matter).

Jürgen

Re: Lyx und svn (or git)

2012-02-14 Thread Pavel Sanda
Sebastian Krämer wrote:
 Create, checkout from an svn repo in terminal. Then, when using lyx,
 commiting changes to the lyx file works trivially (from the menu). When

Just in case you are not aware: View-Toolbars-Version Control.

 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

It can do locking, but otherwise LyX abilities do not go beyond that what
you describe.

Pavel


Mac-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir

Just correcting a typo in the subject heading. 

--

I'm attempting to use the workaround suggested by Stefano to get LyX to 
recognize a Unicoded document as Unicoded. The workaround  involves use of the 
tex2lyx command. 

I'm on a Mac. When I run the command I get a command not found message. When I 
do locate tex2lyx, however, the file  shows up in two locations: 
/Applications/LyX.app/Contents/MacOS and 
/Applications/TeX/LyX.app/Contents/MacOS

How do I get the command to run?

Thanks,
--
Eric Weir
eew...@bellsouth.net

Every moment is unique and discrete.

Eknath Eswaran



Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread BH
On Tue, Feb 14, 2012 at 10:54 AM, Eric Weir eew...@bellsouth.net wrote:

 Just correcting a typo in the subject heading.

 --

 I'm attempting to use the workaround suggested by Stefano to get LyX to
 recognize a Unicoded document as Unicoded. The workaround  involves use of
 the tex2lyx command.

 I'm on a Mac. When I run the command I get a command not found message. When
 I do locate tex2lyx, however, the file  shows up in two
 locations: /Applications/LyX.app/Contents/MacOS
 and /Applications/TeX/LyX.app/Contents/MacOS

 How do I get the command to run?

I'm guessing the problem is that tex2lyx isn't in your PATH, which
means you must provide it yourself. So from the Terminal, you should
type, for example,

/Applications/LyX.app/Contents/MacOS/tex2lyx

to invoke it. (Or use the path to the version of LyX in your
/Applications/TeX folder -- whichever one you want to use.)

BH


Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir

On Feb 14, 2012, at 11:07 AM, BH wrote:

 I'm guessing the problem is that tex2lyx isn't in your PATH, which
 means you must provide it yourself. So from the Terminal, you should
 type, for example,
 
 /Applications/LyX.app/Contents/MacOS/tex2lyx

Thanks, Will do. But while I'm at it, is there a way to get it in my path. It 
appears I may be needing to use the command a fair bit.

Sincerely,
--
Eric Weir

With an ounce of willingness, everything can change.

- Kim





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

2012-02-14 Thread stefano franchi
On Tue, Feb 14, 2012 at 8:05 AM, Jean-Marc Lasgouttes
lasgout...@lyx.org wrote:
 Le 14/02/2012 00:47, Richard Heck a écrit :

 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.


 tex2lyx is not really the culprit. The file you attach is broken : it does
 not use xetex/luatex, but it does use Unicode (XeTeX) (utf8) as encoding.
 As a result, the latex export of the file does not specify any encoding, and
 tex2lyx is not able to guess it.

Sorry, but I don't understand what you mean by broken here. If I set
the encoding to pure Unicode (isn't that what Unicode (XeTeX) (utf8)
means?) shouldn't that be enough to specify that the file is
Unicode-encoded? That seems obvious to me (which of course may only
reflect my ignorance of Lyx code). If that's not true then I do not
understand what is the meaning of the
DocumentSettingsLanguageEncoding value.

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: Mac-specific: tex2lyx won't run

2012-02-14 Thread BH
On Tue, Feb 14, 2012 at 11:18 AM, Eric Weir eew...@bellsouth.net wrote:

 On Feb 14, 2012, at 11:07 AM, BH wrote:

 I'm guessing the problem is that tex2lyx isn't in your PATH, which
 means you must provide it yourself. So from the Terminal, you should
 type, for example,

 /Applications/LyX.app/Contents/MacOS/tex2lyx

 Thanks, Will do. But while I'm at it, is there a way to get it in my path. It 
 appears I may be needing to use the command a fair bit.

Here's one explanation:

http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/

BH


Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread Enrico Forestieri
Eric Weir writes:
 I'm attempting to use the workaround suggested by Stefano to get LyX to
 recognize a Unicoded document as Unicoded. The workaround  involves use
 of the tex2lyx command. 
 
 I'm on a Mac. When I run the command I get a command not found message.
 When I do locate tex2lyx, however, the file  shows up in two locations:
 /Applications/LyX.app/Contents/MacOS and
 /Applications/TeX/LyX.app/Contents/MacOS
 
 How do I get the command to run?

Why don't you simply modify the converter in
Tools-Preferences-File Handling-Converters-LaTeX (plain) - LyX
and then use File-Import-LaTeX (plain) ?

-- 
Enrico



Automated insertion of labeled sentences

2012-02-14 Thread sj03rd
Hello all,

Using LyX for a while now, I wonder whether LyX has a way to 
automatically insert labeled sentences in table descriptions.

Since tables are supposed to be self-sufficient, I find myself
repeatedly writing and correcting the same sentence that occurs 
in several tables. 

While I currently resort to copy-pasting, this is tedious 
and prone to errors. 

I can refer-and-insert table numbers/equation numbers 
using labels and cross-references throughout the text. 
Now, it would be extremely valuable if I could also 
refer-and-insert a full sentence.

Is this possible in Lyx, and how? 

Thanks,
Stewart.



RE: Automated insertion of labeled sentences

2012-02-14 Thread Scott Kostyshak
From: lyx-users@lists.lyx.org [lyx-users@lists.lyx.org] on behalf of sj03rd 
[sjoerd...@gmail.com]
Sent: Tuesday, February 14, 2012 5:15 PM

I can refer-and-insert table numbers/equation numbers
using labels and cross-references throughout the text.
Now, it would be extremely valuable if I could also
refer-and-insert a full sentence.

Is this possible in Lyx, and how?

Hi Stewart,

To insert Tex Code, either:
(1) go to Insert TeX Code
or
(2) type control L
This will give you a red box into which you can type latex commands directly. 
Type in something like: 
\newcommand{\mysentence}{This is a sentence that I want to use in many places.}
Note that this red box must be before you try to use this command, so put it in 
the preamble or near the top of your document.
Then, wherever you want to use that sentence, insert tex code again and put 
into the red box:
\mysentence
You should be able to do this in tables and mostly anywhere.

Is this what you were looking for?

Scott

Problem with Change tracking

2012-02-14 Thread Les Denham
I seem to have found an undocumented feature of LyX 2.02.

If I have Track Changes turned on

AND

have Show Changes in Output turned on

AND

have an embedded Gnumeric spreadsheet deleted in the current changes
awaiting acceptance or rejection

THEN

PDFLaTeX dies every time.

The solution for me is to make sure I accept the deletion of
spreadsheets before I try to make a PDF of the document to sent to my
colleagues for them to look at the changes before I accept them.

If I have Show Changes in Output turned off, there is no problem.

I'm running LyX 2.02 and TeXLive 2011 on Gentoo Linux.

Les


Re: Customizing stdmenus.inc to use git

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

On 13/02/12 21:50, Richard Heck wrote:
 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.

I am aware that it is not natively supported - but from time to time
it is mentioned that what one can do is to define your own commands
by using the vc-command lfuns in the stdmenus file (Vincent from
Ravenstein in the thread LyX version control with git)

So is it possible or not?

Rainer
 
 Richard
 


- -- 
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/

iEYEARECAAYFAk86G30ACgkQoYgNqgF2egoQuACggm7wxAl2G4RN3rGJBt2ijMEC
wYYAn1hzuVwi35kre+D2b9p9+cim2tTY
=k8Ra
-END PGP SIGNATURE-


Lyx Template for article submission to ACM

2012-02-14 Thread Bjorn Madsen
Hi lyx-users,
I'm looking for a quick way around converting my Lyx document to ACM
submission style.
Does anyone out there know an easy way to do that?

ACM have their style requirements on:
http://www.acm.org/publications/submissions/latex_style
and the LaTex package on:
http://www.acm.org/publications/latex_style/acm-small-v1-2.zip


Kind Regards

-- 
Bjorn Madsen
Ph.: (+44) 0 7792 030 720
bjorn.mad...@operationsresearchgroup.com


Roman numbering in bibliography

2012-02-14 Thread Emil Pavlov

Hello,

I have inserted an external bibtex bibliography in my lyx document and I 
would like to change the numbering in the bibliography section to 
capital roman numbers. The problem is that my document class is report 
(KOMA), so the command \backmatter isn't available.


Re: Roman numbering in bibliography

2012-02-14 Thread Jürgen Spitzmüller
Emil Pavlov wrote:
 I have inserted an external bibtex bibliography in my lyx document and I
 would like to change the numbering in the bibliography section to
 capital roman numbers. The problem is that my document class is report
 (KOMA), so the command \backmatter isn't available.

\pagenumbering{Roman}
\setcounter{page}{1}

Jürgen

Re: is lyx really appropriate for my book.

2012-02-14 Thread Eric Weir

On Feb 13, 2012, at 6:34 PM, Steve Litt wrote:

 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.

Advice well-taken, Steve. On both counts--using styles and front matter.

Your comment on the latter may be helpful to me. First, I've been off-and-on 
getting started with LyX for some time, now. Second, I've committed to the 
KOMA-Script document class, for now the article class. Third, I don't like what 
it does with the title and author information--huge bold title and huge author 
fonting centered. I want the first to be only slightly larger font size than 
body text and author the same size as body text, both flush-left, that I am 
less adamant about the latter.

Am I correct in understand you that I can just skip using the title and author 
environments and write and format the as if body text? Recently I tried 
formatting a title using the section environment and it would not compile to 
pdf without the title and author data.

Thanks,
--
Eric Weir
Decatur, GA
eew...@bellsouth.net

Style is truth. 

- Ray Bradbury



Re: is lyx really appropriate for my book.

2012-02-14 Thread Eric Weir

On Feb 14, 2012, at 2:01 AM, Jürgen Spitzmüller wrote:

 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.

How do you deal with this?

Thanks,
--
Eric Weir
eew...@bellsouth.net

The invincible shield of caring
Is a weapon sent from the sky 
against being dead. 

- Tao Te Ching 67









Re: is lyx really appropriate for my book.

2012-02-14 Thread Jürgen Spitzmüller
Eric Weir wrote:
 How do you deal with this?

For monographs (or if I'm editing a book myself) I use LyX/LaTeX to make a 
camera-ready PDF. This works pretty well, except that I have to import 
colloborator's chapters from word usually (via LibreOffice's LaTeX export). I 
have also used Word and InDesign for books in the past, but frankly, I never 
want to do this again. These tools are just not prepared for books. I spent 
more time with fixing glitches than I need for importing into LyX. And the 
result looks much better with LyX/LaTeX, anyway (InDesign produces good 
typography as well, but it is [or was, back then] deficient in terms of 
hyphenation and things such as automatic running headers).

For papers, I use LyX to write the first version, then export to Word (via 
ODF/TeX4ht), polish it for submission and use Word/LibreOffice for further 
revisions. This is the more annoying part. I could use Word from the 
beginning, but I'm much faster with LyX, also I use BibTeX quite a lot.

Jürgen

Re: Customizing stdmenus.inc to use git

2012-02-14 Thread Richard Heck

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

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 13/02/12 21:50, Richard Heck wrote:

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.

I am aware that it is not natively supported - but from time to time
it is mentioned that what one can do is to define your own commands
by using the vc-command lfuns in the stdmenus file (Vincent from
Ravenstein in the thread LyX version control with git)

So is it possible or not?

I'd not seen vc-command before, but it seems to work like a general 
shell escape. I'm not entirely sure it's a good idea, since

vc-command U $$p rm *
will work perfectly well. See HelpLyX Functions.

Richard



Re: is lyx really appropriate for my book.

2012-02-14 Thread Richard Heck

On 02/14/2012 02:01 AM, Jürgen Spitzmüller wrote:


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).



Oxford.

Richard



Re: is lyx really appropriate for my book.

2012-02-14 Thread Richard Heck

On 02/14/2012 07:01 AM, Eric Weir wrote:

On Feb 13, 2012, at 6:34 PM, Steve Litt wrote:


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.

Advice well-taken, Steve. On both counts--using styles and front matter.

Your comment on the latter may be helpful to me. First, I've been off-and-on 
getting started with LyX for some time, now. Second, I've committed to the 
KOMA-Script document class, for now the article class. Third, I don't like what 
it does with the title and author information--huge bold title and huge author 
fonting centered. I want the first to be only slightly larger font size than 
body text and author the same size as body text, both flush-left, that I am 
less adamant about the latter.

Am I correct in understand you that I can just skip using the title and author 
environments and write and format the as if body text? Recently I tried 
formatting a title using the section environment and it would not compile to 
pdf without the title and author data.

You just put them in as author and title, and fix the typography later. 
One easy way to do it is just to copy the code that sets the title from 
the document class, in this case scrartcl.cls, and modify it as you see 
fit. Depending upon whether you have a title page or not, this is either 
the \maketitle command or else the \@maketitle command.


Richard



Re: Customizing stdmenus.inc to use git

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

On 14/02/12 09:16, Richard Heck wrote:
 On 02/14/2012 03:29 AM, Rainer M Krug wrote:
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
 
 On 13/02/12 21:50, Richard Heck wrote:
 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.
 I am aware that it is not natively supported - but from time to
 time it is mentioned that what one can do is to define your own
 commands by using the vc-command lfuns in the stdmenus file
 (Vincent from Ravenstein in the thread LyX version control with
 git)
 
 So is it possible or not?
 
 I'd not seen vc-command before, but it seems to work like a
 general shell escape. I'm not entirely sure it's a good idea,
 since vc-command U $$p rm * will work perfectly well. See
 HelpLyX Functions.

Found it - thanks.

I'll look into it.


Thanks,

Rainer

 
 Richard
 


- -- 
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/

iEYEARECAAYFAk86Y+0ACgkQoYgNqgF2egoasgCeK5pNtko/qOKX5uAdaxLJXob9
jAsAoICWhGGvNHwQ9q0ncPNh4fQ7e0B0
=Qe8b
-END PGP SIGNATURE-


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

2012-02-14 Thread Jean-Marc Lasgouttes

Le 14/02/2012 00:47, Richard Heck a écrit :

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.


tex2lyx is not really the culprit. The file you attach is broken : it 
does not use xetex/luatex, but it does use Unicode (XeTeX) (utf8) as 
encoding. As a result, the latex export of the file does not specify any 
encoding, and tex2lyx is not able to guess it.


Even better, try to visualize the file: the encoding will be bogus, 
without any intervention of tex2lyx.


What happens in this case is that the encoding is set to latin1 (utf8 is 
a better default in some sense, but if you guess it wrong, you can bet 
convertion errors, see bug #7509).


Unfortuantely, it seems that the encodings utf8 and utf8x (handled by 
plain latex), do not understand some of your hyphens, and produce a 
document that does not compile.


So your best bet is probably to produce a file that will be imported as 
XeTeX/LuaTeX. This will happen when some characteristic packages are 
recognized, which will happen after the followinf patch is applied.


Georg, Juergen, I'd like some feedback on the soundness of the patch. I 
know next to nil about xetex, and I do not know what is the current 
state of the art wrt tex2lyx.


JMarc


Index: src/tex2lyx/Preamble.cpp
===
--- src/tex2lyx/Preamble.cpp	(révision 40747)
+++ src/tex2lyx/Preamble.cpp	(copie de travail)
@@ -401,6 +401,7 @@
 	h_font_sans   = default;
 	h_font_typewriter = default;
 	h_font_default_family = default;
+	h_use_non_tex_fonts   = false;
 	h_font_sc = false;
 	h_font_osf= false;
 	h_font_sf_scale   = 100;
@@ -581,8 +582,11 @@
 	add_package(name, options);
 	string scale;
 
-	if (is_known(name, known_xetex_packages))
+	if (is_known(name, known_xetex_packages)) {
 		xetex = true;
+		h_use_non_tex_fonts = true;
+		p.setEncoding(utf8);
+	}
 
 	// roman fonts
 	if (is_known(name, known_roman_fonts)) {
@@ -901,6 +905,7 @@
 	\\font_sans   h_font_sans  \n
 	\\font_typewriter   h_font_typewriter  \n
 	\\font_default_family   h_font_default_family  \n
+	\\use_non_tex_fonts   h_use_non_tex_fonts  \n
 	\\font_sc   h_font_sc  \n
 	\\font_osf   h_font_osf  \n
 	\\font_sf_scale   h_font_sf_scale  \n
Index: src/tex2lyx/Preamble.h
===
--- src/tex2lyx/Preamble.h	(révision 40747)
+++ src/tex2lyx/Preamble.h	(copie de travail)
@@ -90,6 +90,7 @@
 	std::string h_font_sans;
 	std::string h_font_typewriter;
 	std::string h_font_default_family;
+	std::string h_use_non_tex_fonts;
 	std::string h_font_sc;
 	std::string h_font_osf;
 	std::string h_font_sf_scale;


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

2012-02-14 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote:
 Georg, Juergen, I'd like some feedback on the soundness of the patch. I 
 know next to nil about xetex, and I do not know what is the current 
 state of the art wrt tex2lyx.

The latter I don't know either, but the patch looks sane. We set the encoding 
to utf8 internally as well if \use_non_tex_fonts is true.

Jürgen

Ma-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir

I'm attempting to use the workaround suggested by Stefano to get LyX to 
recognize a Unicoded document as Unicoded. The workaround  involves use of the 
tex2lyx command. 

I'm on a Mac. When I run the command I get a command not found message. When I 
do locate tex2lyx, however, the file  shows up in two locations: 
/Applications/LyX.app/Contents/MacOS and 
/Applications/TeX/LyX.app/Contents/MacOS

How do I get the command to run?

Thanks,
--
Eric Weir
eew...@bellsouth.net

Every moment is unique and discrete.

Eknath Eswaran



Re: is lyx really appropriate for my book.

2012-02-14 Thread Eric Weir

On Feb 14, 2012, at 7:19 AM, Jürgen Spitzmüller wrote:

 For monographs (or if I'm editing a book myself) I use LyX/LaTeX to make a 
 camera-ready PDF. This works pretty well, except that I have to import 
 colloborator's chapters from word usually (via LibreOffice's LaTeX export). I 
 have also used Word and InDesign for books in the past, but frankly, I never 
 want to do this again. These tools are just not prepared for books. I spent 
 more time with fixing glitches than I need for importing into LyX. And the 
 result looks much better with LyX/LaTeX, anyway (InDesign produces good 
 typography as well, but it is [or was, back then] deficient in terms of 
 hyphenation and things such as automatic running headers).
  
 For papers, I use LyX to write the first version, then export to Word (via 
 ODF/TeX4ht), polish it for submission and use Word/LibreOffice for further 
 revisions. This is the more annoying part. I could use Word from the 
 beginning, but I'm much faster with LyX, also I use BibTeX quite a lot.


Thanks, Jurgen. 

While I'm at it, do I recall correctly that you're in the humanities?

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

Hatred destroys. Love heals.

- Eknath Easwaran



Re: is lyx really appropriate for my book.

2012-02-14 Thread Jürgen Spitzmüller
Eric Weir wrote:
 While I'm at it, do I recall correctly that you're in the humanities?

Yes (linguistics, for that matter).

Jürgen

Re: Lyx und svn (or git)

2012-02-14 Thread Pavel Sanda
Sebastian Krämer wrote:
 Create, checkout from an svn repo in terminal. Then, when using lyx,
 commiting changes to the lyx file works trivially (from the menu). When

Just in case you are not aware: View-Toolbars-Version Control.

 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

It can do locking, but otherwise LyX abilities do not go beyond that what
you describe.

Pavel


Mac-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir

Just correcting a typo in the subject heading. 

--

I'm attempting to use the workaround suggested by Stefano to get LyX to 
recognize a Unicoded document as Unicoded. The workaround  involves use of the 
tex2lyx command. 

I'm on a Mac. When I run the command I get a command not found message. When I 
do locate tex2lyx, however, the file  shows up in two locations: 
/Applications/LyX.app/Contents/MacOS and 
/Applications/TeX/LyX.app/Contents/MacOS

How do I get the command to run?

Thanks,
--
Eric Weir
eew...@bellsouth.net

Every moment is unique and discrete.

Eknath Eswaran



Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread BH
On Tue, Feb 14, 2012 at 10:54 AM, Eric Weir eew...@bellsouth.net wrote:

 Just correcting a typo in the subject heading.

 --

 I'm attempting to use the workaround suggested by Stefano to get LyX to
 recognize a Unicoded document as Unicoded. The workaround  involves use of
 the tex2lyx command.

 I'm on a Mac. When I run the command I get a command not found message. When
 I do locate tex2lyx, however, the file  shows up in two
 locations: /Applications/LyX.app/Contents/MacOS
 and /Applications/TeX/LyX.app/Contents/MacOS

 How do I get the command to run?

I'm guessing the problem is that tex2lyx isn't in your PATH, which
means you must provide it yourself. So from the Terminal, you should
type, for example,

/Applications/LyX.app/Contents/MacOS/tex2lyx

to invoke it. (Or use the path to the version of LyX in your
/Applications/TeX folder -- whichever one you want to use.)

BH


Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir

On Feb 14, 2012, at 11:07 AM, BH wrote:

 I'm guessing the problem is that tex2lyx isn't in your PATH, which
 means you must provide it yourself. So from the Terminal, you should
 type, for example,
 
 /Applications/LyX.app/Contents/MacOS/tex2lyx

Thanks, Will do. But while I'm at it, is there a way to get it in my path. It 
appears I may be needing to use the command a fair bit.

Sincerely,
--
Eric Weir

With an ounce of willingness, everything can change.

- Kim





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

2012-02-14 Thread stefano franchi
On Tue, Feb 14, 2012 at 8:05 AM, Jean-Marc Lasgouttes
lasgout...@lyx.org wrote:
 Le 14/02/2012 00:47, Richard Heck a écrit :

 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.


 tex2lyx is not really the culprit. The file you attach is broken : it does
 not use xetex/luatex, but it does use Unicode (XeTeX) (utf8) as encoding.
 As a result, the latex export of the file does not specify any encoding, and
 tex2lyx is not able to guess it.

Sorry, but I don't understand what you mean by broken here. If I set
the encoding to pure Unicode (isn't that what Unicode (XeTeX) (utf8)
means?) shouldn't that be enough to specify that the file is
Unicode-encoded? That seems obvious to me (which of course may only
reflect my ignorance of Lyx code). If that's not true then I do not
understand what is the meaning of the
DocumentSettingsLanguageEncoding value.

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: Mac-specific: tex2lyx won't run

2012-02-14 Thread BH
On Tue, Feb 14, 2012 at 11:18 AM, Eric Weir eew...@bellsouth.net wrote:

 On Feb 14, 2012, at 11:07 AM, BH wrote:

 I'm guessing the problem is that tex2lyx isn't in your PATH, which
 means you must provide it yourself. So from the Terminal, you should
 type, for example,

 /Applications/LyX.app/Contents/MacOS/tex2lyx

 Thanks, Will do. But while I'm at it, is there a way to get it in my path. It 
 appears I may be needing to use the command a fair bit.

Here's one explanation:

http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/

BH


Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread Enrico Forestieri
Eric Weir writes:
 I'm attempting to use the workaround suggested by Stefano to get LyX to
 recognize a Unicoded document as Unicoded. The workaround  involves use
 of the tex2lyx command. 
 
 I'm on a Mac. When I run the command I get a command not found message.
 When I do locate tex2lyx, however, the file  shows up in two locations:
 /Applications/LyX.app/Contents/MacOS and
 /Applications/TeX/LyX.app/Contents/MacOS
 
 How do I get the command to run?

Why don't you simply modify the converter in
Tools-Preferences-File Handling-Converters-LaTeX (plain) - LyX
and then use File-Import-LaTeX (plain) ?

-- 
Enrico



Automated insertion of labeled sentences

2012-02-14 Thread sj03rd
Hello all,

Using LyX for a while now, I wonder whether LyX has a way to 
automatically insert labeled sentences in table descriptions.

Since tables are supposed to be self-sufficient, I find myself
repeatedly writing and correcting the same sentence that occurs 
in several tables. 

While I currently resort to copy-pasting, this is tedious 
and prone to errors. 

I can refer-and-insert table numbers/equation numbers 
using labels and cross-references throughout the text. 
Now, it would be extremely valuable if I could also 
refer-and-insert a full sentence.

Is this possible in Lyx, and how? 

Thanks,
Stewart.



RE: Automated insertion of labeled sentences

2012-02-14 Thread Scott Kostyshak
From: lyx-users@lists.lyx.org [lyx-users@lists.lyx.org] on behalf of sj03rd 
[sjoerd...@gmail.com]
Sent: Tuesday, February 14, 2012 5:15 PM

I can refer-and-insert table numbers/equation numbers
using labels and cross-references throughout the text.
Now, it would be extremely valuable if I could also
refer-and-insert a full sentence.

Is this possible in Lyx, and how?

Hi Stewart,

To insert Tex Code, either:
(1) go to Insert TeX Code
or
(2) type control L
This will give you a red box into which you can type latex commands directly. 
Type in something like: 
\newcommand{\mysentence}{This is a sentence that I want to use in many places.}
Note that this red box must be before you try to use this command, so put it in 
the preamble or near the top of your document.
Then, wherever you want to use that sentence, insert tex code again and put 
into the red box:
\mysentence
You should be able to do this in tables and mostly anywhere.

Is this what you were looking for?

Scott

Problem with Change tracking

2012-02-14 Thread Les Denham
I seem to have found an undocumented feature of LyX 2.02.

If I have Track Changes turned on

AND

have Show Changes in Output turned on

AND

have an embedded Gnumeric spreadsheet deleted in the current changes
awaiting acceptance or rejection

THEN

PDFLaTeX dies every time.

The solution for me is to make sure I accept the deletion of
spreadsheets before I try to make a PDF of the document to sent to my
colleagues for them to look at the changes before I accept them.

If I have Show Changes in Output turned off, there is no problem.

I'm running LyX 2.02 and TeXLive 2011 on Gentoo Linux.

Les


Re: Customizing stdmenus.inc to use git

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

On 13/02/12 21:50, Richard Heck wrote:
> 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.

I am aware that it is not natively supported - but from time to time
it is mentioned that what one can do is to "define your own commands
by using the vc-command lfuns in the stdmenus file" (Vincent from
Ravenstein in the thread "LyX version control with git")

So is it possible or not?

Rainer
> 
> Richard
> 


- -- 
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/

iEYEARECAAYFAk86G30ACgkQoYgNqgF2egoQuACggm7wxAl2G4RN3rGJBt2ijMEC
wYYAn1hzuVwi35kre+D2b9p9+cim2tTY
=k8Ra
-END PGP SIGNATURE-


Lyx Template for article submission to ACM

2012-02-14 Thread Bjorn Madsen
Hi lyx-users,
I'm looking for a quick way around converting my Lyx document to ACM
submission style.
Does anyone out there know an easy way to do that?

ACM have their style requirements on:
http://www.acm.org/publications/submissions/latex_style
and the LaTex package on:
http://www.acm.org/publications/latex_style/acm-small-v1-2.zip


Kind Regards

-- 
Bjorn Madsen
Ph.: (+44) 0 7792 030 720
bjorn.mad...@operationsresearchgroup.com


Roman numbering in bibliography

2012-02-14 Thread Emil Pavlov

Hello,

I have inserted an external bibtex bibliography in my lyx document and I 
would like to change the numbering in the bibliography section to 
capital roman numbers. The problem is that my document class is report 
(KOMA), so the command \backmatter isn't available.


Re: Roman numbering in bibliography

2012-02-14 Thread Jürgen Spitzmüller
Emil Pavlov wrote:
> I have inserted an external bibtex bibliography in my lyx document and I
> would like to change the numbering in the bibliography section to
> capital roman numbers. The problem is that my document class is report
> (KOMA), so the command \backmatter isn't available.

\pagenumbering{Roman}
\setcounter{page}{1}

Jürgen

Re: is lyx really appropriate for my book.

2012-02-14 Thread Eric Weir

On Feb 13, 2012, at 6:34 PM, Steve Litt wrote:

> 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.

Advice well-taken, Steve. On both counts--using styles and front matter.

Your comment on the latter may be helpful to me. First, I've been off-and-on 
getting started with LyX for some time, now. Second, I've committed to the 
KOMA-Script document class, for now the article class. Third, I don't like what 
it does with the title and author information--huge bold title and huge author 
fonting centered. I want the first to be only slightly larger font size than 
body text and author the same size as body text, both flush-left, that I am 
less adamant about the latter.

Am I correct in understand you that I can just skip using the title and author 
environments and write and format the as if body text? Recently I tried 
formatting a title using the section environment and it would not compile to 
pdf without the title and author data.

Thanks,
--
Eric Weir
Decatur, GA
eew...@bellsouth.net

"Style is truth." 

- Ray Bradbury



Re: is lyx really appropriate for my book.

2012-02-14 Thread Eric Weir

On Feb 14, 2012, at 2:01 AM, Jürgen Spitzmüller wrote:

> 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.

How do you deal with this?

Thanks,
--
Eric Weir
eew...@bellsouth.net

"The invincible shield of caring
Is a weapon sent from the sky 
against being dead." 

- Tao Te Ching 67









Re: is lyx really appropriate for my book.

2012-02-14 Thread Jürgen Spitzmüller
Eric Weir wrote:
> How do you deal with this?

For monographs (or if I'm editing a book myself) I use LyX/LaTeX to make a 
camera-ready PDF. This works pretty well, except that I have to import 
colloborator's chapters from word usually (via LibreOffice's LaTeX export). I 
have also used Word and InDesign for books in the past, but frankly, I never 
want to do this again. These tools are just not prepared for books. I spent 
more time with fixing glitches than I need for importing into LyX. And the 
result looks much better with LyX/LaTeX, anyway (InDesign produces good 
typography as well, but it is [or was, back then] deficient in terms of 
hyphenation and things such as automatic running headers).

For papers, I use LyX to write the first version, then export to Word (via 
ODF/TeX4ht), polish it for submission and use Word/LibreOffice for further 
revisions. This is the more annoying part. I could use Word from the 
beginning, but I'm much faster with LyX, also I use BibTeX quite a lot.

Jürgen

Re: Customizing stdmenus.inc to use git

2012-02-14 Thread Richard Heck

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

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 13/02/12 21:50, Richard Heck wrote:

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.

I am aware that it is not natively supported - but from time to time
it is mentioned that what one can do is to "define your own commands
by using the vc-command lfuns in the stdmenus file" (Vincent from
Ravenstein in the thread "LyX version control with git")

So is it possible or not?

I'd not seen vc-command before, but it seems to work like a general 
shell escape. I'm not entirely sure it's a good idea, since

vc-command U $$p "rm *"
will work perfectly well. See Help>LyX Functions.

Richard



Re: is lyx really appropriate for my book.

2012-02-14 Thread Richard Heck

On 02/14/2012 02:01 AM, Jürgen Spitzmüller wrote:


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).



Oxford.

Richard



Re: is lyx really appropriate for my book.

2012-02-14 Thread Richard Heck

On 02/14/2012 07:01 AM, Eric Weir wrote:

On Feb 13, 2012, at 6:34 PM, Steve Litt wrote:


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.

Advice well-taken, Steve. On both counts--using styles and front matter.

Your comment on the latter may be helpful to me. First, I've been off-and-on 
getting started with LyX for some time, now. Second, I've committed to the 
KOMA-Script document class, for now the article class. Third, I don't like what 
it does with the title and author information--huge bold title and huge author 
fonting centered. I want the first to be only slightly larger font size than 
body text and author the same size as body text, both flush-left, that I am 
less adamant about the latter.

Am I correct in understand you that I can just skip using the title and author 
environments and write and format the as if body text? Recently I tried 
formatting a title using the section environment and it would not compile to 
pdf without the title and author data.

You just put them in as author and title, and fix the typography later. 
One easy way to do it is just to copy the code that sets the title from 
the document class, in this case scrartcl.cls, and modify it as you see 
fit. Depending upon whether you have a title page or not, this is either 
the \maketitle command or else the \@maketitle command.


Richard



Re: Customizing stdmenus.inc to use git

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

On 14/02/12 09:16, Richard Heck wrote:
> On 02/14/2012 03:29 AM, Rainer M Krug wrote:
>> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
>> 
>> On 13/02/12 21:50, Richard Heck wrote:
>>> 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.
>> I am aware that it is not natively supported - but from time to
>> time it is mentioned that what one can do is to "define your own
>> commands by using the vc-command lfuns in the stdmenus file"
>> (Vincent from Ravenstein in the thread "LyX version control with
>> git")
>> 
>> So is it possible or not?
>> 
> I'd not seen vc-command before, but it seems to work like a
> general shell escape. I'm not entirely sure it's a good idea,
> since vc-command U $$p "rm *" will work perfectly well. See
> Help>LyX Functions.

Found it - thanks.

I'll look into it.


Thanks,

Rainer

> 
> Richard
> 


- -- 
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/

iEYEARECAAYFAk86Y+0ACgkQoYgNqgF2egoasgCeK5pNtko/qOKX5uAdaxLJXob9
jAsAoICWhGGvNHwQ9q0ncPNh4fQ7e0B0
=Qe8b
-END PGP SIGNATURE-


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

2012-02-14 Thread Jean-Marc Lasgouttes

Le 14/02/2012 00:47, Richard Heck a écrit :

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.


tex2lyx is not really the culprit. The file you attach is broken : it 
does not use xetex/luatex, but it does use "Unicode (XeTeX) (utf8)" as 
encoding. As a result, the latex export of the file does not specify any 
encoding, and tex2lyx is not able to guess it.


Even better, try to visualize the file: the encoding will be bogus, 
without any intervention of tex2lyx.


What happens in this case is that the encoding is set to latin1 (utf8 is 
a better default in some sense, but if you guess it wrong, you can bet 
convertion errors, see bug #7509).


Unfortuantely, it seems that the encodings utf8 and utf8x (handled by 
plain latex), do not understand some of your hyphens, and produce a 
document that does not compile.


So your best bet is probably to produce a file that will be imported as 
XeTeX/LuaTeX. This will happen when some characteristic packages are 
recognized, which will happen after the followinf patch is applied.


Georg, Juergen, I'd like some feedback on the soundness of the patch. I 
know next to nil about xetex, and I do not know what is the current 
state of the art wrt tex2lyx.


JMarc


Index: src/tex2lyx/Preamble.cpp
===
--- src/tex2lyx/Preamble.cpp	(révision 40747)
+++ src/tex2lyx/Preamble.cpp	(copie de travail)
@@ -401,6 +401,7 @@
 	h_font_sans   = "default";
 	h_font_typewriter = "default";
 	h_font_default_family = "default";
+	h_use_non_tex_fonts   = "false";
 	h_font_sc = "false";
 	h_font_osf= "false";
 	h_font_sf_scale   = "100";
@@ -581,8 +582,11 @@
 	add_package(name, options);
 	string scale;
 
-	if (is_known(name, known_xetex_packages))
+	if (is_known(name, known_xetex_packages)) {
 		xetex = true;
+		h_use_non_tex_fonts = "true";
+		p.setEncoding("utf8");
+	}
 
 	// roman fonts
 	if (is_known(name, known_roman_fonts)) {
@@ -901,6 +905,7 @@
 	   << "\\font_sans " << h_font_sans << "\n"
 	   << "\\font_typewriter " << h_font_typewriter << "\n"
 	   << "\\font_default_family " << h_font_default_family << "\n"
+	   << "\\use_non_tex_fonts " << h_use_non_tex_fonts << "\n"
 	   << "\\font_sc " << h_font_sc << "\n"
 	   << "\\font_osf " << h_font_osf << "\n"
 	   << "\\font_sf_scale " << h_font_sf_scale << "\n"
Index: src/tex2lyx/Preamble.h
===
--- src/tex2lyx/Preamble.h	(révision 40747)
+++ src/tex2lyx/Preamble.h	(copie de travail)
@@ -90,6 +90,7 @@
 	std::string h_font_sans;
 	std::string h_font_typewriter;
 	std::string h_font_default_family;
+	std::string h_use_non_tex_fonts;
 	std::string h_font_sc;
 	std::string h_font_osf;
 	std::string h_font_sf_scale;


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

2012-02-14 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote:
> Georg, Juergen, I'd like some feedback on the soundness of the patch. I 
> know next to nil about xetex, and I do not know what is the current 
> state of the art wrt tex2lyx.

The latter I don't know either, but the patch looks sane. We set the encoding 
to utf8 internally as well if \use_non_tex_fonts is true.

Jürgen

Ma-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir

I'm attempting to use the workaround suggested by Stefano to get LyX to 
recognize a Unicoded document as Unicoded. The workaround  involves use of the 
tex2lyx command. 

I'm on a Mac. When I run the command I get a command not found message. When I 
do locate tex2lyx, however, the file  shows up in two locations: 
/Applications/LyX.app/Contents/MacOS and 
/Applications/TeX/LyX.app/Contents/MacOS

How do I get the command to run?

Thanks,
--
Eric Weir
eew...@bellsouth.net

"Every moment is unique and discrete."

Eknath Eswaran



Re: is lyx really appropriate for my book.

2012-02-14 Thread Eric Weir

On Feb 14, 2012, at 7:19 AM, Jürgen Spitzmüller wrote:

> For monographs (or if I'm editing a book myself) I use LyX/LaTeX to make a 
> camera-ready PDF. This works pretty well, except that I have to import 
> colloborator's chapters from word usually (via LibreOffice's LaTeX export). I 
> have also used Word and InDesign for books in the past, but frankly, I never 
> want to do this again. These tools are just not prepared for books. I spent 
> more time with fixing glitches than I need for importing into LyX. And the 
> result looks much better with LyX/LaTeX, anyway (InDesign produces good 
> typography as well, but it is [or was, back then] deficient in terms of 
> hyphenation and things such as automatic running headers).
>  
> For papers, I use LyX to write the first version, then export to Word (via 
> ODF/TeX4ht), polish it for submission and use Word/LibreOffice for further 
> revisions. This is the more annoying part. I could use Word from the 
> beginning, but I'm much faster with LyX, also I use BibTeX quite a lot.


Thanks, Jurgen. 

While I'm at it, do I recall correctly that you're in the humanities?

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

"Hatred destroys. Love heals."

- Eknath Easwaran



Re: is lyx really appropriate for my book.

2012-02-14 Thread Jürgen Spitzmüller
Eric Weir wrote:
> While I'm at it, do I recall correctly that you're in the humanities?

Yes (linguistics, for that matter).

Jürgen

Re: Lyx und svn (or git)

2012-02-14 Thread Pavel Sanda
Sebastian Krämer wrote:
> Create, checkout from an svn repo in terminal. Then, when using lyx,
> commiting changes to the lyx file works trivially (from the menu). When

Just in case you are not aware: View->Toolbars->Version Control.

> 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

It can do locking, but otherwise LyX abilities do not go beyond that what
you describe.

Pavel


Mac-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir

Just correcting a typo in the subject heading. 

--

I'm attempting to use the workaround suggested by Stefano to get LyX to 
recognize a Unicoded document as Unicoded. The workaround  involves use of the 
tex2lyx command. 

I'm on a Mac. When I run the command I get a command not found message. When I 
do locate tex2lyx, however, the file  shows up in two locations: 
/Applications/LyX.app/Contents/MacOS and 
/Applications/TeX/LyX.app/Contents/MacOS

How do I get the command to run?

Thanks,
--
Eric Weir
eew...@bellsouth.net

"Every moment is unique and discrete."

Eknath Eswaran



Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread BH
On Tue, Feb 14, 2012 at 10:54 AM, Eric Weir  wrote:
>
> Just correcting a typo in the subject heading.
>
> --
>
> I'm attempting to use the workaround suggested by Stefano to get LyX to
> recognize a Unicoded document as Unicoded. The workaround  involves use of
> the tex2lyx command.
>
> I'm on a Mac. When I run the command I get a command not found message. When
> I do locate tex2lyx, however, the file  shows up in two
> locations: /Applications/LyX.app/Contents/MacOS
> and /Applications/TeX/LyX.app/Contents/MacOS
>
> How do I get the command to run?

I'm guessing the problem is that tex2lyx isn't in your PATH, which
means you must provide it yourself. So from the Terminal, you should
type, for example,

/Applications/LyX.app/Contents/MacOS/tex2lyx

to invoke it. (Or use the path to the version of LyX in your
/Applications/TeX folder -- whichever one you want to use.)

BH


Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir

On Feb 14, 2012, at 11:07 AM, BH wrote:

> I'm guessing the problem is that tex2lyx isn't in your PATH, which
> means you must provide it yourself. So from the Terminal, you should
> type, for example,
> 
> /Applications/LyX.app/Contents/MacOS/tex2lyx

Thanks, Will do. But while I'm at it, is there a way to get it in my path. It 
appears I may be needing to use the command a fair bit.

Sincerely,
--
Eric Weir

"With an ounce of willingness, everything can change."

- Kim





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

2012-02-14 Thread stefano franchi
On Tue, Feb 14, 2012 at 8:05 AM, Jean-Marc Lasgouttes
 wrote:
> Le 14/02/2012 00:47, Richard Heck a écrit :
>
>>> 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.
>
>
> tex2lyx is not really the culprit. The file you attach is broken : it does
> not use xetex/luatex, but it does use "Unicode (XeTeX) (utf8)" as encoding.
> As a result, the latex export of the file does not specify any encoding, and
> tex2lyx is not able to guess it.
>
Sorry, but I don't understand what you mean by "broken" here. If I set
the encoding to pure Unicode (isn't that what "Unicode (XeTeX) (utf8)"
means?) shouldn't that be enough to specify that the file is
Unicode-encoded? That seems obvious to me (which of course may only
reflect my ignorance of Lyx code). If that's not true then I do not
understand what is the meaning of the
Document>>Settings>Language>>Encoding value.

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: Mac-specific: tex2lyx won't run

2012-02-14 Thread BH
On Tue, Feb 14, 2012 at 11:18 AM, Eric Weir  wrote:
>
> On Feb 14, 2012, at 11:07 AM, BH wrote:
>
>> I'm guessing the problem is that tex2lyx isn't in your PATH, which
>> means you must provide it yourself. So from the Terminal, you should
>> type, for example,
>>
>> /Applications/LyX.app/Contents/MacOS/tex2lyx
>
> Thanks, Will do. But while I'm at it, is there a way to get it in my path. It 
> appears I may be needing to use the command a fair bit.

Here's one explanation:

http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/

BH


Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread Enrico Forestieri
Eric Weir writes:
> I'm attempting to use the workaround suggested by Stefano to get LyX to
> recognize a Unicoded document as Unicoded. The workaround  involves use
> of the tex2lyx command. 
> 
> I'm on a Mac. When I run the command I get a command not found message.
> When I do locate tex2lyx, however, the file  shows up in two locations:
> /Applications/LyX.app/Contents/MacOS and
> /Applications/TeX/LyX.app/Contents/MacOS
> 
> How do I get the command to run?

Why don't you simply modify the converter in
Tools->Preferences->File Handling->Converters->LaTeX (plain) -> LyX
and then use File->Import->LaTeX (plain) ?

-- 
Enrico



Automated insertion of labeled sentences

2012-02-14 Thread sj03rd
Hello all,

Using LyX for a while now, I wonder whether LyX has a way to 
automatically insert labeled sentences in table descriptions.

Since tables are supposed to be self-sufficient, I find myself
repeatedly writing and correcting the same sentence that occurs 
in several tables. 

While I currently resort to copy-pasting, this is tedious 
and prone to errors. 

I can "refer-and-insert" table numbers/equation numbers 
using labels and cross-references throughout the text. 
Now, it would be extremely valuable if I could also 
refer-and-insert a full sentence.

Is this possible in Lyx, and how? 

Thanks,
Stewart.



RE: Automated insertion of labeled sentences

2012-02-14 Thread Scott Kostyshak
From: lyx-users@lists.lyx.org [lyx-users@lists.lyx.org] on behalf of sj03rd 
[sjoerd...@gmail.com]
Sent: Tuesday, February 14, 2012 5:15 PM

>I can "refer-and-insert" table numbers/equation numbers
>using labels and cross-references throughout the text.
>Now, it would be extremely valuable if I could also
>refer-and-insert a full sentence.

>Is this possible in Lyx, and how?

Hi Stewart,

To insert Tex Code, either:
(1) go to Insert> TeX Code
or
(2) type control L
This will give you a red box into which you can type latex commands directly. 
Type in something like: 
\newcommand{\mysentence}{This is a sentence that I want to use in many places.}
Note that this red box must be before you try to use this command, so put it in 
the preamble or near the top of your document.
Then, wherever you want to use that sentence, insert tex code again and put 
into the red box:
\mysentence
You should be able to do this in tables and mostly anywhere.

Is this what you were looking for?

Scott

Problem with Change tracking

2012-02-14 Thread Les Denham
I seem to have found an undocumented "feature" of LyX 2.02.

If I have Track Changes turned on

AND

have Show Changes in Output turned on

AND

have an embedded Gnumeric spreadsheet deleted in the current changes
awaiting acceptance or rejection

THEN

PDFLaTeX dies every time.

The solution for me is to make sure I accept the deletion of
spreadsheets before I try to make a PDF of the document to sent to my
colleagues for them to look at the changes before I accept them.

If I have Show Changes in Output turned off, there is no problem.

I'm running LyX 2.02 and TeXLive 2011 on Gentoo Linux.

Les