RE: slight misbehavior of math typesetting

2009-04-21 Thread Vincent van Ravesteijn - TNW
 Hi! When I enter math mode in LyX 1.6.x, a math
palette appears on the bottom of the window. That's
cool. However, the palette hides the bottom part of
the text, whereas the intended (I presume) behavior
would be to scroll up the text, so that it is the
upper portion of the text that disapperas, instead
of the bottom ... Cheers (and thanks to
all) - SB

This is fixed in the next release (1.6.3).

Vincent


slight misbehavior of math typesetting

2009-04-21 Thread Stefano Baroni
Hi! When I enter math mode in LyX 1.6.x, a math palette appears on the  
bottom of the window. That's cool. However, the palette hides the  
bottom part of the text, whereas the intended (I presume) behavior  
would be to scroll up the text, so that it is the upper portion of the  
text that disapperas, instead of the bottom ... Cheers (and thanks to  
all) - SB


---
Stefano Baroni - SISSADEMOCRITOS National Simulation Center -  
Trieste

[+39] 040 3787 406 (tel) -528 (fax) / stefanobaroni (skype)

La morale est une logique de l'action comme la logique est une morale  
de la pensée - Jean Piaget


Please, if possible, don't  send me MS Word or PowerPoint attachments
Why? See:  http://www.gnu.org/philosophy/no-word-attachments.html






Double Line in Table

2009-04-21 Thread Bruce Pourciau

How do I make a vertical line in a table into a double line?

Bruce


hyphenation does not show up

2009-04-21 Thread Tomás Revilla
Hi, I'm running 1.6.2 in Debian. My problem is that after changing
from 1.6.1 to 1.6.2 all of a sudden hyphenation does not work any
more. I am using english as the document language.

Since didn't see any warning and I ran a test with a file that I
converted from LyX to LateX. Everything goes without warnings/errors
(Babel v3.8h and hyphenation patterns for loaded.), but still the
document does no hyphenate.

I suspect that something went wrong when in the update of the whole
latex thing since synaptic showed a lot xargs warnings when
configuring texlive. Still, the only thing that fails is apparently,
the babel thing. My question is, which files should I edit to restore
the hyphenation functionality? There is a

/usr/share/texmf-texlive/tex/generic/config/language.dat

and a bunch of files in /etc/texmf/language.d/

Thanks

Tomas


Re: Double Line in Table

2009-04-21 Thread Florian Rubach

Bruce Pourciau schrieb:

How do I make a vertical line in a table into a double line?

Bruce



Usually, only the left vertical line of a cell is set. When you set the 
right one as well, you get a double line.


Regards, Florian


Re: Double Line in Table

2009-04-21 Thread Bruce Pourciau


On Apr 21, 2009, at 9:28 AM, Florian Rubach wrote:


Bruce Pourciau schrieb:

How do I make a vertical line in a table into a double line?

Bruce



Usually, only the left vertical line of a cell is set. When you set  
the right one as well, you get a double line.


Regards, Florian


Thanks, Florian.


ams-book double-sided!

2009-04-21 Thread Niko Schwarz
hi!
how do i make my ams-book document double-sided? the page numbers should
appear left and right alternating, and the chapters should only start on
right-side pages.

niko


How to change Lyx numbering styles with modules

2009-04-21 Thread Stefano Franchi
Hi all,

I am trying to write a few very simple modules that will change the labels Lyx 
displays for sectioning and enumerate environments to reflect the final output.
However, I cannot figure out how to do it.
For instance, let's say that I want to redefine subsubsections to show just the 
subsubsection number followed by a period with this declaration:

\renewcommand\thesubsubsection{\arabic{subsubsection}.}

I thought I could put this bit of code in a module within the AddToPreamble 
block and then change the actual appearance within Lyx in the Style 
Subsubsection block. But I am stumped. The relevant style block in the 
standard file stdsections.inc shows:


Style Subsubsection
CopyStyle Subsection
LabelCountersubsubsection
TocLevel  3
LatexName subsubsection
TopSep0.7
BottomSep 0.4
Font
  Series  Bold
  SizeNormal
EndFont
End

which I assume means that the label is produced from the Latex label 
subsubsection. Since I just instructed LyX to redefine it, shouldn't LyX pick 
up the correct label? But it does not. What should I change in the 
LabelCounter field of that block to produce the proper label?
I am clearly missing something about how modules work (or, rather, LyX). 
Reading the Customization manual did not provide any enlightenment.


Cheers,

S.


__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



Re: ams-book double-sided!

2009-04-21 Thread Niko Schwarz
ahh, it's in the menu! found it!

On Tue, Apr 21, 2009 at 5:53 PM, Niko Schwarz
niko.schw...@googlemail.comwrote:

 hi!
 how do i make my ams-book document double-sided? the page numbers should
 appear left and right alternating, and the chapters should only start on
 right-side pages.

 niko



Upgrading to 1.6.2

2009-04-21 Thread Ehud Kaplan

  1.   In trying to upgrade from 1.6.1 under Kubuntu 8.10 64 bits I
 found only packages that could not be installed since it was the
 wrong architecture.  Is there a place where I can find Lyx 1.6.2
 for 64 bits Linux?
  2. When trying to import a Latex file into Lyx it gagged on the
 umlauts in the Latex file ( W\assle )


How do I get around it?

EK



Re: Crash Reports

2009-04-21 Thread Pavel Sanda
Ken wrote:
 Is there some other way of reporting crashes? 

if you are linux user and know howto build lyx from sources,
you can compile lyx with debug symbols and run lyx under gdb.
each time lyx crashes you can have 'bakctrace' (by 'bt' command)
which gives developers insights what happens and how to fix it.

pavel


Re: LyX 1.6.2 -- does it provide inverse search via Yap ?

2009-04-21 Thread Pavel Sanda
sykes wrote:
 
 hi,
 
 I'm running LyX 1.6.2 on Windows XP.  I would like to perform inverse
 searches from Yap back to the actual line in LyX.  Is this possible?  

this currently doesn't work. we have some patch in bugzilla for older version
of lyx.

pavel


Want to show URLs in printed version

2009-04-21 Thread Drew Kime
I've seen lots of questions about how to make clickable hyperlinks, but I'm
trying to go the opposite direction. I'm using the Hyperlink inset in 1.6
and it is correctly creating the hyperlink in the PDF. But I need the option
to output a PDF which has both the title text and the URL displayed so that
it can be printed.

I've solved this in the past by simply having the title as standard text,
and using a URL inset next to it. This works fine for the printed version,
but as a result also shows the URL text in the electronic version.

Is it possible to add an option -- I'm guessing it would be a hyperref
option -- that will cause the URL text to be displayed?

Thanks in advance for any help.

Drew


Document Tabs

2009-04-21 Thread Rich Shepard

  When multiple documents are open in 1.6.2 there is a tab for each one.
However, they are the same color and the tab frame of the selected/active
document is so subtly different that it's easy to mistake which one it is.

  Is there a way to clearly and unambiguously determine which document is the
current one by looking at the tabs rather than the window frame?

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Want to show URLs in printed version

2009-04-21 Thread Uwe Stöhr

Drew Kime schrieb:


I've seen lots of questions about how to make clickable hyperlinks, but I'm
trying to go the opposite direction. I'm using the Hyperlink inset in 1.6
and it is correctly creating the hyperlink in the PDF. But I need the option
to output a PDF which has both the title text and the URL displayed so that
it can be printed.


The hyperlink dialog provides you to enter a special name for the URL. If you leave it empty, the 
link is then also the name, see attached.


regards Uwe


newfile1.lyx
Description: application/lyx


Re: nomenclature

2009-04-21 Thread Uwe Stöhr

Norhaliza Abdul Wahab schrieb:

I 'm not sure how to alter the space between the symbols 
and the descriptions, in particular when we have different length of 
symbols, i.e.


ASM...Activated sludge model
WWTPs.Wastewater treatment plants


To achieve this, you have to use TeX code instead of the menu Insert-Lists/TOC-Nomenclature. When 
the nomenclature support was implemented it was forgotten that the \printnomenclature command has an 
optional argument - the space you want to set.


Attached is an example how it works.

I created now http://www.lyx.org/trac/ticket/5909 and try to implement this feature for the next 
major release LyX 2.0.


regards Uwe


newfile2.lyx
Description: application/lyx


Re: Want to show URLs in printed version

2009-04-21 Thread Drew Kime
On Tue, Apr 21, 2009 at 1:53 PM, Uwe Stöhr uwesto...@web.de wrote:

 Drew Kime schrieb:

  I've seen lots of questions about how to make clickable hyperlinks, but
 I'm
 trying to go the opposite direction. I'm using the Hyperlink inset in 1.6
 and it is correctly creating the hyperlink in the PDF. But I need the
 option
 to output a PDF which has both the title text and the URL displayed so
 that
 it can be printed.


 The hyperlink dialog provides you to enter a special name for the URL. If
 you leave it empty, the link is then also the name, see attached.

 regards Uwe

Thanks for the reply, but that's not what I'm trying to do. I *want* the
special name in the electronic version. Pseudocode example: Please visit
[my blog|http://blogname.com] for more details. In the electronic versions,
I want the current behavior, where my blog is displayed, highlighted as a
link to http://blogname.com;. But I'd like to be able to create a version
for print that would show the special name *and* the URL, since you
obviously can't click on a book.

Drew


language and master and child documents

2009-04-21 Thread Giovanni Bacci

  Hi all. I've discovered a (maybe) strange behaviour:
- master document, language=italian
- child document, language=english

  When i pdflatex the master document, the resulting document follow
the italian setting til the point where the child document it's
inserted, then starting with english. And it looks like that, if a
third child document (with lang=italian) it's included after the
second one, it still follow the english setting. All this whit lyx
1.6.2.
  So i'm just wondering:
- the master document setting should't be applied to the whole
document? I mean, master language=it, sot all the doc is IT, ignoring
the child docs settings
-  if the latter it's wrong, then when a third doc, whit lang=IT it's
loaded, the resulting doc should be IT-EN-IT again.

Thanks,
  Giovanni

-- 
By the time they had diminished from 50 to 8, the other dwarves began
to suspect Hungry.
-- a Larson cartoon


Re: language and master and child documents

2009-04-21 Thread Jean-Marc Lasgouttes
Giovanni Bacci s206...@studenti.ing.unipi.it writes:
   Hi all. I've discovered a (maybe) strange behaviour:
 - master document, language=italian
 - child document, language=english

   When i pdflatex the master document, the resulting document follow
 the italian setting til the point where the child document it's
 inserted, then starting with english. And it looks like that, if a
 third child document (with lang=italian) it's included after the
 second one, it still follow the english setting. All this whit lyx
 1.6.2.
   So i'm just wondering:
 - the master document setting should't be applied to the whole
 document? I mean, master language=it, sot all the doc is IT, ignoring
 the child docs settings

The language is a property of the text, not tthe document, so this is normal.

 -  if the latter it's wrong, then when a third doc, whit lang=IT it's
 loaded, the resulting doc should be IT-EN-IT again.

This seems wrong indeed. Could you provide an example file?

JMarc


Re: Want to show URLs in printed version

2009-04-21 Thread Uwe Stöhr

Drew Kime schrieb:


But I'd like to be able to create a version
for print that would show the special name *and* the URL, since you
obviously can't click on a book.


Then write the name in front of the link like I did in the Bibliography of the 
LyX UserGuide.

regards Uwe


Re: Want to show URLs in printed version

2009-04-21 Thread Drew Kime
On Tue, Apr 21, 2009 at 4:12 PM, Uwe Stöhr uwesto...@web.de wrote:

 Drew Kime schrieb:

  But I'd like to be able to create a version
 for print that would show the special name *and* the URL, since you
 obviously can't click on a book.


 Then write the name in front of the link like I did in the Bibliography of
 the LyX UserGuide.

 regards Uwe

So you're confirming that it's *not* possible to do pretty links for
electronic documents, but add something in the preamble that will render the
link after the title?

Drew


Re: language and master and child documents

2009-04-21 Thread Giovanni Bacci

  martedì 21 aprile 2009, 22:17, Jean-Marc Lasgouttes:

 Giovanni Bacci s206...@studenti.ing.unipi.it writes:
  
  - the master document setting should't be applied to the whole
  document? I mean, master language=it, sot all the doc is IT,
  ignoring the child docs settings
 
 The language is a property of the text, not tthe document, so this is
 normal.

  Well, if the language setting is in the document setting, i think
letting the master setting prevale will be a more reasonable meaning.

  -  if the latter it's wrong, then when a third doc, whit lang=IT
  it's loaded, the resulting doc should be IT-EN-IT again.
 
 This seems wrong indeed. Could you provide an example file?

  Attached it's a simple example. It should be Figura 1 Figure 2
and Figura 3 again.

Thanks,
  Giovanni


LyX_test.tar.gz
Description: GNU Zip compressed data


Re: Want to show URLs in printed version

2009-04-21 Thread Florian Rubach


Drew Kime schrieb:

On Tue, Apr 21, 2009 at 1:53 PM, Uwe Stöhr uwesto...@web.de wrote:

  

Drew Kime schrieb:

 I've seen lots of questions about how to make clickable hyperlinks, but


I'm
trying to go the opposite direction. I'm using the Hyperlink inset in 1.6
and it is correctly creating the hyperlink in the PDF. But I need the
option
to output a PDF which has both the title text and the URL displayed so
that
it can be printed.

  

The hyperlink dialog provides you to enter a special name for the URL. If
you leave it empty, the link is then also the name, see attached.

regards Uwe



Thanks for the reply, but that's not what I'm trying to do. I *want* the
special name in the electronic version. Pseudocode example: Please visit
[my blog|http://blogname.com] for more details. In the electronic versions,
I want the current behavior, where my blog is displayed, highlighted as a
link to http://blogname.com;. But I'd like to be able to create a version
for print that would show the special name *and* the URL, since you
obviously can't click on a book.

Drew

  


If I get you right, you want two different outputs, number one for 
printing with both title and URL and number two as electronic version 
with just the clickable title and nothing more.

There is a workaround for that... It's not quite beautiful, but it works.
You have to make a distinction between your two cases printed  and 
pdf. For that, you can define your own latex-command, say 
\myprintversion, by \def\myprintversion{} in Latex-Code.
In front of every hyperlink, you can check whether \myprintversion is 
defined or not and use that to decide what output to generate. To stick 
with your example, you could write \ifdefined\myprintversion (in 
Latex-Code), then add the hyperlink in the way you want it in the 
printversion. After that in Latex-Code \else, then add the hyperlink in 
the way you want it in the electronic version. To finalize the 
if-clause, you need to add the statement \fi in Latex-Code.
Now all you have to do to switch between print-version and electronic 
version is to keep the definition of \myprintversion or delete/comment it.


If you need an example-file, I'll send you one.
Regards,

Florian


Re: Want to show URLs in printed version

2009-04-21 Thread Drew Kime
On Tue, Apr 21, 2009 at 4:40 PM, Florian Rubach florian.rub...@gmx.dewrote:


 If I get you right, you want two different outputs, number one for printing
 with both title and URL and number two as electronic version with just the
 clickable title and nothing more.
 There is a workaround for that... It's not quite beautiful, but it works.
 You have to make a distinction between your two cases printed  and pdf.
 For that, you can define your own latex-command, say \myprintversion, by
 \def\myprintversion{} in Latex-Code.
 In front of every hyperlink, you can check whether \myprintversion is
 defined or not and use that to decide what output to generate. To stick with
 your example, you could write \ifdefined\myprintversion (in Latex-Code),
 then add the hyperlink in the way you want it in the printversion. After
 that in Latex-Code \else, then add the hyperlink in the way you want it in
 the electronic version. To finalize the if-clause, you need to add the
 statement \fi in Latex-Code.
 Now all you have to do to switch between print-version and electronic
 version is to keep the definition of \myprintversion or delete/comment it.

 If you need an example-file, I'll send you one.
 Regards,

 Florian

Yes, that's exactly what I was looking for. But it sounds like I'd need to
manually add the if - else code before every URL. If that's the case, I'm
more comfortable writing macros in vim, so I'll handle it in the lyx code
directly, not through the GUI. Thanks for the help.

Drew


Automating Index Entry Removal

2009-04-21 Thread Rich Shepard

  I'm using text from one document (which has an index) in another document
(which will not have an index). Is there a way I can bulk delete all the
[Idx] insertions in the copied text? The standard search-and-replace dialog
box doesn't recognize the three-character string as a valid search term.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Automating Index Entry Removal

2009-04-21 Thread rgheck

Rich Shepard wrote:

I'm using text from one document (which has an index) in another document
(which will not have an index). Is there a way I can bulk delete all the
[Idx] insertions in the copied text? The standard search-and-replace 
dialog

box doesn't recognize the three-character string as a valid search term.

Open the LyX file in a text editor and you'll see the format of these. 
You can then write a simple script that will remove them: sed, perl, 
python, whatever.


rh



Re: Automating Index Entry Removal

2009-04-21 Thread Rich Shepard

On Tue, 21 Apr 2009, rgheck wrote:


Open the LyX file in a text editor and you'll see the format of these. You
can then write a simple script that will remove them: sed, perl, python,
whatever.


  That's what I thought the default would be. :-) I was wondering if there
was a way within LyX to do the job. Regardless, emacs will do it just fine.

Many thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Automating Index Entry Removal

2009-04-21 Thread rgheck

Rich Shepard wrote:

On Tue, 21 Apr 2009, rgheck wrote:

Open the LyX file in a text editor and you'll see the format of 
these. You

can then write a simple script that will remove them: sed, perl, python,
whatever.


That's what I thought the default would be. :-) I was wondering if there
was a way within LyX to do the job. Regardless, emacs will do it just 
fine.


No, not in 1.6. There's been work for the next version that will provide 
this kind of facility, so you could try doing this in 2.0.svn and then 
exporting to 1.6. It'd be interesting to know if it worked.


rh



A simple question

2009-04-21 Thread Adrian Diaz
Friends of Lyx


Sometime i have to write long titles for chapters, sections etc.
Ho do i manage justify to left, center, rigth or simply justify?

Any advice?

  Greetings Adrián


Lyx question

2009-04-21 Thread Nathalia Monteiro
I am starting to use Lyx and I'm still struggling on how to do things...

I imported the layout of a beamer presentation from Latex and after editing
it on Lyx, I couldn't see it as a PDF due to some errors:
The Lyx - Latex error box pops up saying:

Error:
Undefined control sequence.

Definition:
\makebeamertitle

 The control sequence at the end of the top line

of your error message was never \def'ed. If you have

misspelled it (e.g., `\hobx'), type `I' and the correct

spelling (e.g., `I\hbox'). Otherwise just continue,

and I'll forget about whatever was undefined.


Error:
LaTeX Error: Cannot determine size of graphic in ../../A
Tese/Presentation/Fi


Definition:

\end{frame}

\subsubsection{Starting $s0$} \begin{frame} \frametitle{Case


Then, I tried to export the file I had altered on Lyx to Latex plain to try
to open it using TexnicCenter, however, I couldn't figure where the files
are exported to. I couldn't find the file I exported.


Can someone help me out?


Thanks,

-- 
Nathalia Monteiro


Re: Automating Index Entry Removal

2009-04-21 Thread Rich Shepard

On Tue, 21 Apr 2009, rgheck wrote:


No, not in 1.6. There's been work for the next version that will provide
this kind of facility, so you could try doing this in 2.0.svn and then
exporting to 1.6. It'd be interesting to know if it worked.


rh,

  Already done with emacs. Perhaps there will be a next time.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Want to show URLs in printed version

2009-04-21 Thread BH
On Tue, Apr 21, 2009 at 5:52 PM, Drew Kime drew.k...@gmail.com wrote:
 On Tue, Apr 21, 2009 at 4:40 PM, Florian Rubach florian.rub...@gmx.dewrote:


 If I get you right, you want two different outputs, number one for printing
 with both title and URL and number two as electronic version with just the
 clickable title and nothing more.
 There is a workaround for that... It's not quite beautiful, but it works.
 You have to make a distinction between your two cases printed  and pdf.
 For that, you can define your own latex-command, say \myprintversion, by
 \def\myprintversion{} in Latex-Code.
 In front of every hyperlink, you can check whether \myprintversion is
 defined or not and use that to decide what output to generate. To stick with
 your example, you could write \ifdefined\myprintversion (in Latex-Code),
 then add the hyperlink in the way you want it in the printversion. After
 that in Latex-Code \else, then add the hyperlink in the way you want it in
 the electronic version. To finalize the if-clause, you need to add the
 statement \fi in Latex-Code.
 Now all you have to do to switch between print-version and electronic
 version is to keep the definition of \myprintversion or delete/comment it.

 If you need an example-file, I'll send you one.
 Regards,

 Florian

 Yes, that's exactly what I was looking for. But it sounds like I'd need to
 manually add the if - else code before every URL. If that's the case, I'm
 more comfortable writing macros in vim, so I'll handle it in the lyx code
 directly, not through the GUI. Thanks for the help.

 Drew


Perhaps you should take a look at the Branch feature: section 6.8 of
the User's Guide.

Bennett


LyX 1.6.2 -- svn on Windows

2009-04-21 Thread sykes

hi, 

I'm running LyX 1.6.2 on Windows XP.  I use the Tortoise SVN client for
subversion.  I'm getting an error when I try to commit from within LyX: 

Some problem occured while running the command: 
'svn commit -m  ...  

I'm assuming I need a command line client for svn to execute... is there a
way to make Tortoise SVN handle this...or is there another application that
will do it...or do I need to install cygwin and run LyX through it? 

thanks in advance. 

Cheers, 
Ed Sykes 
-- 
View this message in context: 
http://n2.nabble.com/LyX-1.6.2svn-on-Windows-tp2673847p2673847.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Can I please have an example of conditional ERT in LyX

2009-04-21 Thread Paul Johnson
Can I please have an example of how to use the ifelse package for
LaTeX with LyX?  I want to manage a NoWeb/Literate programming
document so that some commands are included in the document only
sometimes.  (I'm sending LyX documents to R through Sweave:
http://wiki.lyx.org/LyX/LyxWithRThroughSweave.

This ERT makes sure that R- Sweave drops the images in a folder foo
and prefixes all with bar.

\SweaveOpts{prefix.string=foo/bar}

This is a NoWeb code chunk that will create an image in foo called
bar-testfn.eps.

testfn, fig=true, include=false=
curve(sin, from = 1, to = 5)
@


Then the image can be used later with some LaTeX:

\includegraphics{foo/bar-testfn}

I would like to conditionalize the figure creation, so that only when
I really want new figures will the code chunk be executed.

In the r-help list I asked about ways to avoid re-doing calculations,
but the answers were focused on ways in which R calculations can be
cached, rather than avoiding asking R for calculations in the first
place. Since I am doing this work within LyX, and LyX has its own way
of handling the temporary LaTeX files, it is not immediately apparent
that the caching strategies proposed from within R are going to help
(the LyX current working directory is an unpredictable directory
inside /tmp while the R working directory is inside there, and the R
stuff disappears once LyX exits.

I'm sorry, this is hard to explain.  If you can just give me a
concrete ifthen example in ERT, I think I can make it work.  I just
don't understand the ifelse package instructions because they assume a
person is fluent in LaTeX.

pj




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


Re: Want to show URLs in printed version

2009-04-21 Thread Drew Kime
On Tue, Apr 21, 2009 at 10:36 PM, BH bewih...@gmail.com wrote:

 On Tue, Apr 21, 2009 at 5:52 PM, Drew Kime drew.k...@gmail.com wrote:
  Yes, that's exactly what I was looking for. But it sounds like I'd need
 to
  manually add the if - else code before every URL. If that's the case,
 I'm
  more comfortable writing macros in vim, so I'll handle it in the lyx code
  directly, not through the GUI. Thanks for the help.
 
  Drew
 

 Perhaps you should take a look at the Branch feature: section 6.8 of
 the User's Guide.

 Bennett

Bennett, that's even better. Gives much better flexibility and control when
doing one version for print and one version for electronic. I always
wondered what Branches were for.

Drew


Re: Can I please have an example of conditional ERT in LyX

2009-04-21 Thread BH
On Tue, Apr 21, 2009 at 11:06 PM, Paul Johnson pauljoh...@gmail.com wrote:
 Can I please have an example of how to use the ifelse package for
 LaTeX with LyX?  I want to manage a NoWeb/Literate programming
 document so that some commands are included in the document only
 sometimes.  (I'm sending LyX documents to R through Sweave:
 http://wiki.lyx.org/LyX/LyxWithRThroughSweave.

 This ERT makes sure that R- Sweave drops the images in a folder foo
 and prefixes all with bar.

 \SweaveOpts{prefix.string=foo/bar}

 This is a NoWeb code chunk that will create an image in foo called
 bar-testfn.eps.

 testfn, fig=true, include=false=
 curve(sin, from = 1, to = 5)
 @


 Then the image can be used later with some LaTeX:

 \includegraphics{foo/bar-testfn}

 I would like to conditionalize the figure creation, so that only when
 I really want new figures will the code chunk be executed.

 In the r-help list I asked about ways to avoid re-doing calculations,
 but the answers were focused on ways in which R calculations can be
 cached, rather than avoiding asking R for calculations in the first
 place. Since I am doing this work within LyX, and LyX has its own way
 of handling the temporary LaTeX files, it is not immediately apparent
 that the caching strategies proposed from within R are going to help
 (the LyX current working directory is an unpredictable directory
 inside /tmp while the R working directory is inside there, and the R
 stuff disappears once LyX exits.

 I'm sorry, this is hard to explain.  If you can just give me a
 concrete ifthen example in ERT, I think I can make it work.  I just
 don't understand the ifelse package instructions because they assume a
 person is fluent in LaTeX.

Perhaps you should take a look at the Branch feature: section 6.8 of
the User's Guide.

Clearly this feature should be better publicized

Bennett


Re: Can I please have an example of conditional ERT in LyX

2009-04-21 Thread Steve Litt
On Tuesday 21 April 2009 11:06:31 pm Paul Johnson wrote:
 Can I please have an example of how to use the ifelse package for
 LaTeX with LyX?  

http://www.troubleshooters.com/linux/lyx/self_publish_lyx.htm#SimulatingCharacterStylesWithColorPseudostyles

This is Dekl Tsur's famous color pseudostyle workaround for back in the days 
when LyX had no character styles. It saved my rear end while 
writing Troubleshooting Techniques of the Successful Technologist.

STeveT


RE: slight misbehavior of math typesetting

2009-04-21 Thread Vincent van Ravesteijn - TNW
 Hi! When I enter math mode in LyX 1.6.x, a math
palette appears on the bottom of the window. That's
cool. However, the palette hides the bottom part of
the text, whereas the intended (I presume) behavior
would be to scroll up the text, so that it is the
upper portion of the text that disapperas, instead
of the bottom ... Cheers (and thanks to
all) - SB

This is fixed in the next release (1.6.3).

Vincent


slight misbehavior of math typesetting

2009-04-21 Thread Stefano Baroni
Hi! When I enter math mode in LyX 1.6.x, a math palette appears on the  
bottom of the window. That's cool. However, the palette hides the  
bottom part of the text, whereas the intended (I presume) behavior  
would be to scroll up the text, so that it is the upper portion of the  
text that disapperas, instead of the bottom ... Cheers (and thanks to  
all) - SB


---
Stefano Baroni - SISSADEMOCRITOS National Simulation Center -  
Trieste

[+39] 040 3787 406 (tel) -528 (fax) / stefanobaroni (skype)

La morale est une logique de l'action comme la logique est une morale  
de la pensée - Jean Piaget


Please, if possible, don't  send me MS Word or PowerPoint attachments
Why? See:  http://www.gnu.org/philosophy/no-word-attachments.html






Double Line in Table

2009-04-21 Thread Bruce Pourciau

How do I make a vertical line in a table into a double line?

Bruce


hyphenation does not show up

2009-04-21 Thread Tomás Revilla
Hi, I'm running 1.6.2 in Debian. My problem is that after changing
from 1.6.1 to 1.6.2 all of a sudden hyphenation does not work any
more. I am using english as the document language.

Since didn't see any warning and I ran a test with a file that I
converted from LyX to LateX. Everything goes without warnings/errors
(Babel v3.8h and hyphenation patterns for loaded.), but still the
document does no hyphenate.

I suspect that something went wrong when in the update of the whole
latex thing since synaptic showed a lot xargs warnings when
configuring texlive. Still, the only thing that fails is apparently,
the babel thing. My question is, which files should I edit to restore
the hyphenation functionality? There is a

/usr/share/texmf-texlive/tex/generic/config/language.dat

and a bunch of files in /etc/texmf/language.d/

Thanks

Tomas


Re: Double Line in Table

2009-04-21 Thread Florian Rubach

Bruce Pourciau schrieb:

How do I make a vertical line in a table into a double line?

Bruce



Usually, only the left vertical line of a cell is set. When you set the 
right one as well, you get a double line.


Regards, Florian


Re: Double Line in Table

2009-04-21 Thread Bruce Pourciau


On Apr 21, 2009, at 9:28 AM, Florian Rubach wrote:


Bruce Pourciau schrieb:

How do I make a vertical line in a table into a double line?

Bruce



Usually, only the left vertical line of a cell is set. When you set  
the right one as well, you get a double line.


Regards, Florian


Thanks, Florian.


ams-book double-sided!

2009-04-21 Thread Niko Schwarz
hi!
how do i make my ams-book document double-sided? the page numbers should
appear left and right alternating, and the chapters should only start on
right-side pages.

niko


How to change Lyx numbering styles with modules

2009-04-21 Thread Stefano Franchi
Hi all,

I am trying to write a few very simple modules that will change the labels Lyx 
displays for sectioning and enumerate environments to reflect the final output.
However, I cannot figure out how to do it.
For instance, let's say that I want to redefine subsubsections to show just the 
subsubsection number followed by a period with this declaration:

\renewcommand\thesubsubsection{\arabic{subsubsection}.}

I thought I could put this bit of code in a module within the AddToPreamble 
block and then change the actual appearance within Lyx in the Style 
Subsubsection block. But I am stumped. The relevant style block in the 
standard file stdsections.inc shows:


Style Subsubsection
CopyStyle Subsection
LabelCountersubsubsection
TocLevel  3
LatexName subsubsection
TopSep0.7
BottomSep 0.4
Font
  Series  Bold
  SizeNormal
EndFont
End

which I assume means that the label is produced from the Latex label 
subsubsection. Since I just instructed LyX to redefine it, shouldn't LyX pick 
up the correct label? But it does not. What should I change in the 
LabelCounter field of that block to produce the proper label?
I am clearly missing something about how modules work (or, rather, LyX). 
Reading the Customization manual did not provide any enlightenment.


Cheers,

S.


__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas AM University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



Re: ams-book double-sided!

2009-04-21 Thread Niko Schwarz
ahh, it's in the menu! found it!

On Tue, Apr 21, 2009 at 5:53 PM, Niko Schwarz
niko.schw...@googlemail.comwrote:

 hi!
 how do i make my ams-book document double-sided? the page numbers should
 appear left and right alternating, and the chapters should only start on
 right-side pages.

 niko



Upgrading to 1.6.2

2009-04-21 Thread Ehud Kaplan

  1.   In trying to upgrade from 1.6.1 under Kubuntu 8.10 64 bits I
 found only packages that could not be installed since it was the
 wrong architecture.  Is there a place where I can find Lyx 1.6.2
 for 64 bits Linux?
  2. When trying to import a Latex file into Lyx it gagged on the
 umlauts in the Latex file ( W\assle )


How do I get around it?

EK



Re: Crash Reports

2009-04-21 Thread Pavel Sanda
Ken wrote:
 Is there some other way of reporting crashes? 

if you are linux user and know howto build lyx from sources,
you can compile lyx with debug symbols and run lyx under gdb.
each time lyx crashes you can have 'bakctrace' (by 'bt' command)
which gives developers insights what happens and how to fix it.

pavel


Re: LyX 1.6.2 -- does it provide inverse search via Yap ?

2009-04-21 Thread Pavel Sanda
sykes wrote:
 
 hi,
 
 I'm running LyX 1.6.2 on Windows XP.  I would like to perform inverse
 searches from Yap back to the actual line in LyX.  Is this possible?  

this currently doesn't work. we have some patch in bugzilla for older version
of lyx.

pavel


Want to show URLs in printed version

2009-04-21 Thread Drew Kime
I've seen lots of questions about how to make clickable hyperlinks, but I'm
trying to go the opposite direction. I'm using the Hyperlink inset in 1.6
and it is correctly creating the hyperlink in the PDF. But I need the option
to output a PDF which has both the title text and the URL displayed so that
it can be printed.

I've solved this in the past by simply having the title as standard text,
and using a URL inset next to it. This works fine for the printed version,
but as a result also shows the URL text in the electronic version.

Is it possible to add an option -- I'm guessing it would be a hyperref
option -- that will cause the URL text to be displayed?

Thanks in advance for any help.

Drew


Document Tabs

2009-04-21 Thread Rich Shepard

  When multiple documents are open in 1.6.2 there is a tab for each one.
However, they are the same color and the tab frame of the selected/active
document is so subtly different that it's easy to mistake which one it is.

  Is there a way to clearly and unambiguously determine which document is the
current one by looking at the tabs rather than the window frame?

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Want to show URLs in printed version

2009-04-21 Thread Uwe Stöhr

Drew Kime schrieb:


I've seen lots of questions about how to make clickable hyperlinks, but I'm
trying to go the opposite direction. I'm using the Hyperlink inset in 1.6
and it is correctly creating the hyperlink in the PDF. But I need the option
to output a PDF which has both the title text and the URL displayed so that
it can be printed.


The hyperlink dialog provides you to enter a special name for the URL. If you leave it empty, the 
link is then also the name, see attached.


regards Uwe


newfile1.lyx
Description: application/lyx


Re: nomenclature

2009-04-21 Thread Uwe Stöhr

Norhaliza Abdul Wahab schrieb:

I 'm not sure how to alter the space between the symbols 
and the descriptions, in particular when we have different length of 
symbols, i.e.


ASM...Activated sludge model
WWTPs.Wastewater treatment plants


To achieve this, you have to use TeX code instead of the menu Insert-Lists/TOC-Nomenclature. When 
the nomenclature support was implemented it was forgotten that the \printnomenclature command has an 
optional argument - the space you want to set.


Attached is an example how it works.

I created now http://www.lyx.org/trac/ticket/5909 and try to implement this feature for the next 
major release LyX 2.0.


regards Uwe


newfile2.lyx
Description: application/lyx


Re: Want to show URLs in printed version

2009-04-21 Thread Drew Kime
On Tue, Apr 21, 2009 at 1:53 PM, Uwe Stöhr uwesto...@web.de wrote:

 Drew Kime schrieb:

  I've seen lots of questions about how to make clickable hyperlinks, but
 I'm
 trying to go the opposite direction. I'm using the Hyperlink inset in 1.6
 and it is correctly creating the hyperlink in the PDF. But I need the
 option
 to output a PDF which has both the title text and the URL displayed so
 that
 it can be printed.


 The hyperlink dialog provides you to enter a special name for the URL. If
 you leave it empty, the link is then also the name, see attached.

 regards Uwe

Thanks for the reply, but that's not what I'm trying to do. I *want* the
special name in the electronic version. Pseudocode example: Please visit
[my blog|http://blogname.com] for more details. In the electronic versions,
I want the current behavior, where my blog is displayed, highlighted as a
link to http://blogname.com;. But I'd like to be able to create a version
for print that would show the special name *and* the URL, since you
obviously can't click on a book.

Drew


language and master and child documents

2009-04-21 Thread Giovanni Bacci

  Hi all. I've discovered a (maybe) strange behaviour:
- master document, language=italian
- child document, language=english

  When i pdflatex the master document, the resulting document follow
the italian setting til the point where the child document it's
inserted, then starting with english. And it looks like that, if a
third child document (with lang=italian) it's included after the
second one, it still follow the english setting. All this whit lyx
1.6.2.
  So i'm just wondering:
- the master document setting should't be applied to the whole
document? I mean, master language=it, sot all the doc is IT, ignoring
the child docs settings
-  if the latter it's wrong, then when a third doc, whit lang=IT it's
loaded, the resulting doc should be IT-EN-IT again.

Thanks,
  Giovanni

-- 
By the time they had diminished from 50 to 8, the other dwarves began
to suspect Hungry.
-- a Larson cartoon


Re: language and master and child documents

2009-04-21 Thread Jean-Marc Lasgouttes
Giovanni Bacci s206...@studenti.ing.unipi.it writes:
   Hi all. I've discovered a (maybe) strange behaviour:
 - master document, language=italian
 - child document, language=english

   When i pdflatex the master document, the resulting document follow
 the italian setting til the point where the child document it's
 inserted, then starting with english. And it looks like that, if a
 third child document (with lang=italian) it's included after the
 second one, it still follow the english setting. All this whit lyx
 1.6.2.
   So i'm just wondering:
 - the master document setting should't be applied to the whole
 document? I mean, master language=it, sot all the doc is IT, ignoring
 the child docs settings

The language is a property of the text, not tthe document, so this is normal.

 -  if the latter it's wrong, then when a third doc, whit lang=IT it's
 loaded, the resulting doc should be IT-EN-IT again.

This seems wrong indeed. Could you provide an example file?

JMarc


Re: Want to show URLs in printed version

2009-04-21 Thread Uwe Stöhr

Drew Kime schrieb:


But I'd like to be able to create a version
for print that would show the special name *and* the URL, since you
obviously can't click on a book.


Then write the name in front of the link like I did in the Bibliography of the 
LyX UserGuide.

regards Uwe


Re: Want to show URLs in printed version

2009-04-21 Thread Drew Kime
On Tue, Apr 21, 2009 at 4:12 PM, Uwe Stöhr uwesto...@web.de wrote:

 Drew Kime schrieb:

  But I'd like to be able to create a version
 for print that would show the special name *and* the URL, since you
 obviously can't click on a book.


 Then write the name in front of the link like I did in the Bibliography of
 the LyX UserGuide.

 regards Uwe

So you're confirming that it's *not* possible to do pretty links for
electronic documents, but add something in the preamble that will render the
link after the title?

Drew


Re: language and master and child documents

2009-04-21 Thread Giovanni Bacci

  martedì 21 aprile 2009, 22:17, Jean-Marc Lasgouttes:

 Giovanni Bacci s206...@studenti.ing.unipi.it writes:
  
  - the master document setting should't be applied to the whole
  document? I mean, master language=it, sot all the doc is IT,
  ignoring the child docs settings
 
 The language is a property of the text, not tthe document, so this is
 normal.

  Well, if the language setting is in the document setting, i think
letting the master setting prevale will be a more reasonable meaning.

  -  if the latter it's wrong, then when a third doc, whit lang=IT
  it's loaded, the resulting doc should be IT-EN-IT again.
 
 This seems wrong indeed. Could you provide an example file?

  Attached it's a simple example. It should be Figura 1 Figure 2
and Figura 3 again.

Thanks,
  Giovanni


LyX_test.tar.gz
Description: GNU Zip compressed data


Re: Want to show URLs in printed version

2009-04-21 Thread Florian Rubach


Drew Kime schrieb:

On Tue, Apr 21, 2009 at 1:53 PM, Uwe Stöhr uwesto...@web.de wrote:

  

Drew Kime schrieb:

 I've seen lots of questions about how to make clickable hyperlinks, but


I'm
trying to go the opposite direction. I'm using the Hyperlink inset in 1.6
and it is correctly creating the hyperlink in the PDF. But I need the
option
to output a PDF which has both the title text and the URL displayed so
that
it can be printed.

  

The hyperlink dialog provides you to enter a special name for the URL. If
you leave it empty, the link is then also the name, see attached.

regards Uwe



Thanks for the reply, but that's not what I'm trying to do. I *want* the
special name in the electronic version. Pseudocode example: Please visit
[my blog|http://blogname.com] for more details. In the electronic versions,
I want the current behavior, where my blog is displayed, highlighted as a
link to http://blogname.com;. But I'd like to be able to create a version
for print that would show the special name *and* the URL, since you
obviously can't click on a book.

Drew

  


If I get you right, you want two different outputs, number one for 
printing with both title and URL and number two as electronic version 
with just the clickable title and nothing more.

There is a workaround for that... It's not quite beautiful, but it works.
You have to make a distinction between your two cases printed  and 
pdf. For that, you can define your own latex-command, say 
\myprintversion, by \def\myprintversion{} in Latex-Code.
In front of every hyperlink, you can check whether \myprintversion is 
defined or not and use that to decide what output to generate. To stick 
with your example, you could write \ifdefined\myprintversion (in 
Latex-Code), then add the hyperlink in the way you want it in the 
printversion. After that in Latex-Code \else, then add the hyperlink in 
the way you want it in the electronic version. To finalize the 
if-clause, you need to add the statement \fi in Latex-Code.
Now all you have to do to switch between print-version and electronic 
version is to keep the definition of \myprintversion or delete/comment it.


If you need an example-file, I'll send you one.
Regards,

Florian


Re: Want to show URLs in printed version

2009-04-21 Thread Drew Kime
On Tue, Apr 21, 2009 at 4:40 PM, Florian Rubach florian.rub...@gmx.dewrote:


 If I get you right, you want two different outputs, number one for printing
 with both title and URL and number two as electronic version with just the
 clickable title and nothing more.
 There is a workaround for that... It's not quite beautiful, but it works.
 You have to make a distinction between your two cases printed  and pdf.
 For that, you can define your own latex-command, say \myprintversion, by
 \def\myprintversion{} in Latex-Code.
 In front of every hyperlink, you can check whether \myprintversion is
 defined or not and use that to decide what output to generate. To stick with
 your example, you could write \ifdefined\myprintversion (in Latex-Code),
 then add the hyperlink in the way you want it in the printversion. After
 that in Latex-Code \else, then add the hyperlink in the way you want it in
 the electronic version. To finalize the if-clause, you need to add the
 statement \fi in Latex-Code.
 Now all you have to do to switch between print-version and electronic
 version is to keep the definition of \myprintversion or delete/comment it.

 If you need an example-file, I'll send you one.
 Regards,

 Florian

Yes, that's exactly what I was looking for. But it sounds like I'd need to
manually add the if - else code before every URL. If that's the case, I'm
more comfortable writing macros in vim, so I'll handle it in the lyx code
directly, not through the GUI. Thanks for the help.

Drew


Automating Index Entry Removal

2009-04-21 Thread Rich Shepard

  I'm using text from one document (which has an index) in another document
(which will not have an index). Is there a way I can bulk delete all the
[Idx] insertions in the copied text? The standard search-and-replace dialog
box doesn't recognize the three-character string as a valid search term.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Automating Index Entry Removal

2009-04-21 Thread rgheck

Rich Shepard wrote:

I'm using text from one document (which has an index) in another document
(which will not have an index). Is there a way I can bulk delete all the
[Idx] insertions in the copied text? The standard search-and-replace 
dialog

box doesn't recognize the three-character string as a valid search term.

Open the LyX file in a text editor and you'll see the format of these. 
You can then write a simple script that will remove them: sed, perl, 
python, whatever.


rh



Re: Automating Index Entry Removal

2009-04-21 Thread Rich Shepard

On Tue, 21 Apr 2009, rgheck wrote:


Open the LyX file in a text editor and you'll see the format of these. You
can then write a simple script that will remove them: sed, perl, python,
whatever.


  That's what I thought the default would be. :-) I was wondering if there
was a way within LyX to do the job. Regardless, emacs will do it just fine.

Many thanks,

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Automating Index Entry Removal

2009-04-21 Thread rgheck

Rich Shepard wrote:

On Tue, 21 Apr 2009, rgheck wrote:

Open the LyX file in a text editor and you'll see the format of 
these. You

can then write a simple script that will remove them: sed, perl, python,
whatever.


That's what I thought the default would be. :-) I was wondering if there
was a way within LyX to do the job. Regardless, emacs will do it just 
fine.


No, not in 1.6. There's been work for the next version that will provide 
this kind of facility, so you could try doing this in 2.0.svn and then 
exporting to 1.6. It'd be interesting to know if it worked.


rh



A simple question

2009-04-21 Thread Adrian Diaz
Friends of Lyx


Sometime i have to write long titles for chapters, sections etc.
Ho do i manage justify to left, center, rigth or simply justify?

Any advice?

  Greetings Adrián


Lyx question

2009-04-21 Thread Nathalia Monteiro
I am starting to use Lyx and I'm still struggling on how to do things...

I imported the layout of a beamer presentation from Latex and after editing
it on Lyx, I couldn't see it as a PDF due to some errors:
The Lyx - Latex error box pops up saying:

Error:
Undefined control sequence.

Definition:
\makebeamertitle

 The control sequence at the end of the top line

of your error message was never \def'ed. If you have

misspelled it (e.g., `\hobx'), type `I' and the correct

spelling (e.g., `I\hbox'). Otherwise just continue,

and I'll forget about whatever was undefined.


Error:
LaTeX Error: Cannot determine size of graphic in ../../A
Tese/Presentation/Fi


Definition:

\end{frame}

\subsubsection{Starting $s0$} \begin{frame} \frametitle{Case


Then, I tried to export the file I had altered on Lyx to Latex plain to try
to open it using TexnicCenter, however, I couldn't figure where the files
are exported to. I couldn't find the file I exported.


Can someone help me out?


Thanks,

-- 
Nathalia Monteiro


Re: Automating Index Entry Removal

2009-04-21 Thread Rich Shepard

On Tue, 21 Apr 2009, rgheck wrote:


No, not in 1.6. There's been work for the next version that will provide
this kind of facility, so you could try doing this in 2.0.svn and then
exporting to 1.6. It'd be interesting to know if it worked.


rh,

  Already done with emacs. Perhaps there will be a next time.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Want to show URLs in printed version

2009-04-21 Thread BH
On Tue, Apr 21, 2009 at 5:52 PM, Drew Kime drew.k...@gmail.com wrote:
 On Tue, Apr 21, 2009 at 4:40 PM, Florian Rubach florian.rub...@gmx.dewrote:


 If I get you right, you want two different outputs, number one for printing
 with both title and URL and number two as electronic version with just the
 clickable title and nothing more.
 There is a workaround for that... It's not quite beautiful, but it works.
 You have to make a distinction between your two cases printed  and pdf.
 For that, you can define your own latex-command, say \myprintversion, by
 \def\myprintversion{} in Latex-Code.
 In front of every hyperlink, you can check whether \myprintversion is
 defined or not and use that to decide what output to generate. To stick with
 your example, you could write \ifdefined\myprintversion (in Latex-Code),
 then add the hyperlink in the way you want it in the printversion. After
 that in Latex-Code \else, then add the hyperlink in the way you want it in
 the electronic version. To finalize the if-clause, you need to add the
 statement \fi in Latex-Code.
 Now all you have to do to switch between print-version and electronic
 version is to keep the definition of \myprintversion or delete/comment it.

 If you need an example-file, I'll send you one.
 Regards,

 Florian

 Yes, that's exactly what I was looking for. But it sounds like I'd need to
 manually add the if - else code before every URL. If that's the case, I'm
 more comfortable writing macros in vim, so I'll handle it in the lyx code
 directly, not through the GUI. Thanks for the help.

 Drew


Perhaps you should take a look at the Branch feature: section 6.8 of
the User's Guide.

Bennett


LyX 1.6.2 -- svn on Windows

2009-04-21 Thread sykes

hi, 

I'm running LyX 1.6.2 on Windows XP.  I use the Tortoise SVN client for
subversion.  I'm getting an error when I try to commit from within LyX: 

Some problem occured while running the command: 
'svn commit -m  ...  

I'm assuming I need a command line client for svn to execute... is there a
way to make Tortoise SVN handle this...or is there another application that
will do it...or do I need to install cygwin and run LyX through it? 

thanks in advance. 

Cheers, 
Ed Sykes 
-- 
View this message in context: 
http://n2.nabble.com/LyX-1.6.2svn-on-Windows-tp2673847p2673847.html
Sent from the LyX - Users mailing list archive at Nabble.com.



Can I please have an example of conditional ERT in LyX

2009-04-21 Thread Paul Johnson
Can I please have an example of how to use the ifelse package for
LaTeX with LyX?  I want to manage a NoWeb/Literate programming
document so that some commands are included in the document only
sometimes.  (I'm sending LyX documents to R through Sweave:
http://wiki.lyx.org/LyX/LyxWithRThroughSweave.

This ERT makes sure that R- Sweave drops the images in a folder foo
and prefixes all with bar.

\SweaveOpts{prefix.string=foo/bar}

This is a NoWeb code chunk that will create an image in foo called
bar-testfn.eps.

testfn, fig=true, include=false=
curve(sin, from = 1, to = 5)
@


Then the image can be used later with some LaTeX:

\includegraphics{foo/bar-testfn}

I would like to conditionalize the figure creation, so that only when
I really want new figures will the code chunk be executed.

In the r-help list I asked about ways to avoid re-doing calculations,
but the answers were focused on ways in which R calculations can be
cached, rather than avoiding asking R for calculations in the first
place. Since I am doing this work within LyX, and LyX has its own way
of handling the temporary LaTeX files, it is not immediately apparent
that the caching strategies proposed from within R are going to help
(the LyX current working directory is an unpredictable directory
inside /tmp while the R working directory is inside there, and the R
stuff disappears once LyX exits.

I'm sorry, this is hard to explain.  If you can just give me a
concrete ifthen example in ERT, I think I can make it work.  I just
don't understand the ifelse package instructions because they assume a
person is fluent in LaTeX.

pj




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


Re: Want to show URLs in printed version

2009-04-21 Thread Drew Kime
On Tue, Apr 21, 2009 at 10:36 PM, BH bewih...@gmail.com wrote:

 On Tue, Apr 21, 2009 at 5:52 PM, Drew Kime drew.k...@gmail.com wrote:
  Yes, that's exactly what I was looking for. But it sounds like I'd need
 to
  manually add the if - else code before every URL. If that's the case,
 I'm
  more comfortable writing macros in vim, so I'll handle it in the lyx code
  directly, not through the GUI. Thanks for the help.
 
  Drew
 

 Perhaps you should take a look at the Branch feature: section 6.8 of
 the User's Guide.

 Bennett

Bennett, that's even better. Gives much better flexibility and control when
doing one version for print and one version for electronic. I always
wondered what Branches were for.

Drew


Re: Can I please have an example of conditional ERT in LyX

2009-04-21 Thread BH
On Tue, Apr 21, 2009 at 11:06 PM, Paul Johnson pauljoh...@gmail.com wrote:
 Can I please have an example of how to use the ifelse package for
 LaTeX with LyX?  I want to manage a NoWeb/Literate programming
 document so that some commands are included in the document only
 sometimes.  (I'm sending LyX documents to R through Sweave:
 http://wiki.lyx.org/LyX/LyxWithRThroughSweave.

 This ERT makes sure that R- Sweave drops the images in a folder foo
 and prefixes all with bar.

 \SweaveOpts{prefix.string=foo/bar}

 This is a NoWeb code chunk that will create an image in foo called
 bar-testfn.eps.

 testfn, fig=true, include=false=
 curve(sin, from = 1, to = 5)
 @


 Then the image can be used later with some LaTeX:

 \includegraphics{foo/bar-testfn}

 I would like to conditionalize the figure creation, so that only when
 I really want new figures will the code chunk be executed.

 In the r-help list I asked about ways to avoid re-doing calculations,
 but the answers were focused on ways in which R calculations can be
 cached, rather than avoiding asking R for calculations in the first
 place. Since I am doing this work within LyX, and LyX has its own way
 of handling the temporary LaTeX files, it is not immediately apparent
 that the caching strategies proposed from within R are going to help
 (the LyX current working directory is an unpredictable directory
 inside /tmp while the R working directory is inside there, and the R
 stuff disappears once LyX exits.

 I'm sorry, this is hard to explain.  If you can just give me a
 concrete ifthen example in ERT, I think I can make it work.  I just
 don't understand the ifelse package instructions because they assume a
 person is fluent in LaTeX.

Perhaps you should take a look at the Branch feature: section 6.8 of
the User's Guide.

Clearly this feature should be better publicized

Bennett


Re: Can I please have an example of conditional ERT in LyX

2009-04-21 Thread Steve Litt
On Tuesday 21 April 2009 11:06:31 pm Paul Johnson wrote:
 Can I please have an example of how to use the ifelse package for
 LaTeX with LyX?  

http://www.troubleshooters.com/linux/lyx/self_publish_lyx.htm#SimulatingCharacterStylesWithColorPseudostyles

This is Dekl Tsur's famous color pseudostyle workaround for back in the days 
when LyX had no character styles. It saved my rear end while 
writing Troubleshooting Techniques of the Successful Technologist.

STeveT


RE: slight misbehavior of math typesetting

2009-04-21 Thread Vincent van Ravesteijn - TNW
> Hi! When I enter math mode in LyX 1.6.x, a math
>palette appears on the bottom of the window. That's
>cool. However, the palette hides the bottom part of
>the text, whereas the intended (I presume) behavior
>would be to scroll up the text, so that it is the
>upper portion of the text that disapperas, instead
>of the bottom ... Cheers (and thanks to
>all) - SB

This is fixed in the next release (1.6.3).

Vincent


slight misbehavior of math typesetting

2009-04-21 Thread Stefano Baroni
Hi! When I enter math mode in LyX 1.6.x, a math palette appears on the  
bottom of the window. That's cool. However, the palette hides the  
bottom part of the text, whereas the intended (I presume) behavior  
would be to scroll up the text, so that it is the upper portion of the  
text that disapperas, instead of the bottom ... Cheers (and thanks to  
all) - SB


---
Stefano Baroni - SISSA  &  DEMOCRITOS National Simulation Center -  
Trieste

[+39] 040 3787 406 (tel) -528 (fax) / stefanobaroni (skype)

La morale est une logique de l'action comme la logique est une morale  
de la pensée - Jean Piaget


Please, if possible, don't  send me MS Word or PowerPoint attachments
Why? See:  http://www.gnu.org/philosophy/no-word-attachments.html






Double Line in Table

2009-04-21 Thread Bruce Pourciau

How do I make a vertical line in a table into a double line?

Bruce


hyphenation does not show up

2009-04-21 Thread Tomás Revilla
Hi, I'm running 1.6.2 in Debian. My problem is that after changing
from 1.6.1 to 1.6.2 all of a sudden hyphenation does not work any
more. I am using "english" as the document language.

Since didn't see any warning and I ran a test with a file that I
converted from LyX to LateX. Everything goes without warnings/errors
("Babel  and hyphenation patterns for loaded.)", but still the
document does no hyphenate.

I suspect that something went wrong when in the update of the whole
latex thing since synaptic showed a lot "xargs" warnings when
configuring texlive. Still, the only thing that fails is apparently,
the babel thing. My question is, which files should I edit to restore
the hyphenation functionality? There is a

/usr/share/texmf-texlive/tex/generic/config/language.dat

and a bunch of files in /etc/texmf/language.d/

Thanks

Tomas


Re: Double Line in Table

2009-04-21 Thread Florian Rubach

Bruce Pourciau schrieb:

How do I make a vertical line in a table into a double line?

Bruce



Usually, only the left vertical line of a cell is set. When you set the 
right one as well, you get a double line.


Regards, Florian


Re: Double Line in Table

2009-04-21 Thread Bruce Pourciau


On Apr 21, 2009, at 9:28 AM, Florian Rubach wrote:


Bruce Pourciau schrieb:

How do I make a vertical line in a table into a double line?

Bruce



Usually, only the left vertical line of a cell is set. When you set  
the right one as well, you get a double line.


Regards, Florian


Thanks, Florian.


ams-book double-sided!

2009-04-21 Thread Niko Schwarz
hi!
how do i make my ams-book document double-sided? the page numbers should
appear left and right alternating, and the chapters should only start on
right-side pages.

niko


How to change Lyx numbering styles with modules

2009-04-21 Thread Stefano Franchi
Hi all,

I am trying to write a few very simple modules that will change the labels Lyx 
displays for sectioning and enumerate environments to reflect the final output.
However, I cannot figure out how to do it.
For instance, let's say that I want to redefine subsubsections to show just the 
subsubsection number followed by a period with this declaration:

\renewcommand\thesubsubsection{\arabic{subsubsection}.}

I thought I could put this bit of code in a module within the AddToPreamble 
block and then change the actual appearance within Lyx in the Style 
Subsubsection block. But I am stumped. The relevant style block in the 
standard file stdsections.inc shows:


Style Subsubsection
CopyStyle Subsection
LabelCountersubsubsection
TocLevel  3
LatexName subsubsection
TopSep0.7
BottomSep 0.4
Font
  Series  Bold
  SizeNormal
EndFont
End

which I assume means that the label is produced from the Latex label 
subsubsection. Since I just instructed LyX to redefine it, shouldn't LyX pick 
up the correct label? But it does not. What should I change in the 
LabelCounter field of that block to produce the proper label?
I am clearly missing something about how modules work (or, rather, LyX). 
Reading the Customization manual did not provide any enlightenment.


Cheers,

S.


__
Stefano Franchi
Department of Philosophy  Ph:  (979) 862-2211
Texas A University  Fax: (979) 845-0458
305B Bolton Hall  fran...@philosophy.tamu.edu
College Station, TX 77843-4237



Re: ams-book double-sided!

2009-04-21 Thread Niko Schwarz
ahh, it's in the menu! found it!

On Tue, Apr 21, 2009 at 5:53 PM, Niko Schwarz
wrote:

> hi!
> how do i make my ams-book document double-sided? the page numbers should
> appear left and right alternating, and the chapters should only start on
> right-side pages.
>
> niko
>


Upgrading to 1.6.2

2009-04-21 Thread Ehud Kaplan

  1.   In trying to upgrade from 1.6.1 under Kubuntu 8.10 64 bits I
 found only packages that could not be installed since it was "the
 wrong architecture".  Is there a place where I can find Lyx 1.6.2
 for 64 bits Linux?
  2. When trying to import a Latex file into Lyx it gagged on the
 umlauts in the Latex file ( W\"assle )


How do I get around it?

EK



Re: Crash Reports

2009-04-21 Thread Pavel Sanda
Ken wrote:
> Is there some other way of reporting crashes? 

if you are linux user and know howto build lyx from sources,
you can compile lyx with debug symbols and run lyx under gdb.
each time lyx crashes you can have 'bakctrace' (by 'bt' command)
which gives developers insights what happens and how to fix it.

pavel


Re: LyX 1.6.2 -- does it provide inverse search via Yap ?

2009-04-21 Thread Pavel Sanda
sykes wrote:
> 
> hi,
> 
> I'm running LyX 1.6.2 on Windows XP.  I would like to perform inverse
> searches from Yap back to the actual line in LyX.  Is this possible?  

this currently doesn't work. we have some patch in bugzilla for older version
of lyx.

pavel


Want to show URLs in printed version

2009-04-21 Thread Drew Kime
I've seen lots of questions about how to make clickable hyperlinks, but I'm
trying to go the opposite direction. I'm using the Hyperlink inset in 1.6
and it is correctly creating the hyperlink in the PDF. But I need the option
to output a PDF which has both the title text and the URL displayed so that
it can be printed.

I've solved this in the past by simply having the title as standard text,
and using a URL inset next to it. This works fine for the printed version,
but as a result also shows the URL text in the electronic version.

Is it possible to add an option -- I'm guessing it would be a hyperref
option -- that will cause the URL text to be displayed?

Thanks in advance for any help.

Drew


Document Tabs

2009-04-21 Thread Rich Shepard

  When multiple documents are open in 1.6.2 there is a tab for each one.
However, they are the same color and the tab frame of the selected/active
document is so subtly different that it's easy to mistake which one it is.

  Is there a way to clearly and unambiguously determine which document is the
current one by looking at the tabs rather than the window frame?

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Want to show URLs in printed version

2009-04-21 Thread Uwe Stöhr

Drew Kime schrieb:


I've seen lots of questions about how to make clickable hyperlinks, but I'm
trying to go the opposite direction. I'm using the Hyperlink inset in 1.6
and it is correctly creating the hyperlink in the PDF. But I need the option
to output a PDF which has both the title text and the URL displayed so that
it can be printed.


The hyperlink dialog provides you to enter a special name for the URL. If you leave it empty, the 
link is then also the name, see attached.


regards Uwe


newfile1.lyx
Description: application/lyx


Re: nomenclature

2009-04-21 Thread Uwe Stöhr

Norhaliza Abdul Wahab schrieb:

I 'm not sure how to alter the space between the symbols 
and the descriptions, in particular when we have different length of 
symbols, i.e.


ASM...Activated sludge model
WWTPs.Wastewater treatment plants


To achieve this, you have to use TeX code instead of the menu Insert->Lists/TOC->Nomenclature. When 
the nomenclature support was implemented it was forgotten that the \printnomenclature command has an 
optional argument - the space you want to set.


Attached is an example how it works.

I created now http://www.lyx.org/trac/ticket/5909 and try to implement this feature for the next 
major release LyX 2.0.


regards Uwe


newfile2.lyx
Description: application/lyx


Re: Want to show URLs in printed version

2009-04-21 Thread Drew Kime
On Tue, Apr 21, 2009 at 1:53 PM, Uwe Stöhr  wrote:

> Drew Kime schrieb:
>
>  I've seen lots of questions about how to make clickable hyperlinks, but
>> I'm
>> trying to go the opposite direction. I'm using the Hyperlink inset in 1.6
>> and it is correctly creating the hyperlink in the PDF. But I need the
>> option
>> to output a PDF which has both the title text and the URL displayed so
>> that
>> it can be printed.
>>
>
> The hyperlink dialog provides you to enter a special name for the URL. If
> you leave it empty, the link is then also the name, see attached.
>
> regards Uwe
>
Thanks for the reply, but that's not what I'm trying to do. I *want* the
special name in the electronic version. Pseudocode example: "Please visit
[my blog|http://blogname.com] for more details." In the electronic versions,
I want the current behavior, where "my blog" is displayed, highlighted as a
link to "http://blogname.com;. But I'd like to be able to create a version
for print that would show the special name *and* the URL, since you
obviously can't click on a book.

Drew


language and master and child documents

2009-04-21 Thread Giovanni Bacci

  Hi all. I've discovered a (maybe) strange behaviour:
- master document, language=italian
- child document, language=english

  When i pdflatex the master document, the resulting document follow
the italian setting til the point where the child document it's
inserted, then starting with english. And it looks like that, if a
third child document (with lang=italian) it's included after the
second one, it still follow the english setting. All this whit lyx
1.6.2.
  So i'm just wondering:
- the master document setting should't be applied to the whole
document? I mean, master language=it, sot all the doc is IT, ignoring
the child docs settings
-  if the latter it's wrong, then when a third doc, whit lang=IT it's
loaded, the resulting doc should be IT-EN-IT again.

Thanks,
  Giovanni

-- 
"By the time they had diminished from 50 to 8, the other dwarves began
to suspect "Hungry."
-- a Larson cartoon


Re: language and master and child documents

2009-04-21 Thread Jean-Marc Lasgouttes
Giovanni Bacci  writes:
>   Hi all. I've discovered a (maybe) strange behaviour:
> - master document, language=italian
> - child document, language=english
>
>   When i pdflatex the master document, the resulting document follow
> the italian setting til the point where the child document it's
> inserted, then starting with english. And it looks like that, if a
> third child document (with lang=italian) it's included after the
> second one, it still follow the english setting. All this whit lyx
> 1.6.2.
>   So i'm just wondering:
> - the master document setting should't be applied to the whole
> document? I mean, master language=it, sot all the doc is IT, ignoring
> the child docs settings

The language is a property of the text, not tthe document, so this is normal.

> -  if the latter it's wrong, then when a third doc, whit lang=IT it's
> loaded, the resulting doc should be IT-EN-IT again.

This seems wrong indeed. Could you provide an example file?

JMarc


Re: Want to show URLs in printed version

2009-04-21 Thread Uwe Stöhr

Drew Kime schrieb:


But I'd like to be able to create a version
for print that would show the special name *and* the URL, since you
obviously can't click on a book.


Then write the name in front of the link like I did in the Bibliography of the 
LyX UserGuide.

regards Uwe


Re: Want to show URLs in printed version

2009-04-21 Thread Drew Kime
On Tue, Apr 21, 2009 at 4:12 PM, Uwe Stöhr  wrote:

> Drew Kime schrieb:
>
>  But I'd like to be able to create a version
>> for print that would show the special name *and* the URL, since you
>> obviously can't click on a book.
>>
>
> Then write the name in front of the link like I did in the Bibliography of
> the LyX UserGuide.
>
> regards Uwe
>
So you're confirming that it's *not* possible to do "pretty" links for
electronic documents, but add something in the preamble that will render the
link after the title?

Drew


Re: language and master and child documents

2009-04-21 Thread Giovanni Bacci

  martedì 21 aprile 2009, 22:17, Jean-Marc Lasgouttes:

> Giovanni Bacci  writes:
> > 
> > - the master document setting should't be applied to the whole
> > document? I mean, master language=it, sot all the doc is IT,
> > ignoring the child docs settings
> 
> The language is a property of the text, not tthe document, so this is
> normal.

  Well, if the language setting is in the document setting, i think
letting the master setting prevale will be a more reasonable meaning.

> > -  if the latter it's wrong, then when a third doc, whit lang=IT
> > it's loaded, the resulting doc should be IT-EN-IT again.
> 
> This seems wrong indeed. Could you provide an example file?

  Attached it's a simple example. It should be "Figura 1" "Figure 2"
and "Figura 3" again.

Thanks,
  Giovanni


LyX_test.tar.gz
Description: GNU Zip compressed data


Re: Want to show URLs in printed version

2009-04-21 Thread Florian Rubach


Drew Kime schrieb:

On Tue, Apr 21, 2009 at 1:53 PM, Uwe Stöhr  wrote:

  

Drew Kime schrieb:

 I've seen lots of questions about how to make clickable hyperlinks, but


I'm
trying to go the opposite direction. I'm using the Hyperlink inset in 1.6
and it is correctly creating the hyperlink in the PDF. But I need the
option
to output a PDF which has both the title text and the URL displayed so
that
it can be printed.

  

The hyperlink dialog provides you to enter a special name for the URL. If
you leave it empty, the link is then also the name, see attached.

regards Uwe



Thanks for the reply, but that's not what I'm trying to do. I *want* the
special name in the electronic version. Pseudocode example: "Please visit
[my blog|http://blogname.com] for more details." In the electronic versions,
I want the current behavior, where "my blog" is displayed, highlighted as a
link to "http://blogname.com;. But I'd like to be able to create a version
for print that would show the special name *and* the URL, since you
obviously can't click on a book.

Drew

  


If I get you right, you want two different outputs, number one for 
printing with both title and URL and number two as electronic version 
with just the clickable title and nothing more.

There is a workaround for that... It's not quite beautiful, but it works.
You have to make a distinction between your two cases "printed"  and 
"pdf". For that, you can define your own latex-command, say 
\myprintversion, by \def\myprintversion{} in Latex-Code.
In front of every hyperlink, you can check whether \myprintversion is 
defined or not and use that to decide what output to generate. To stick 
with your example, you could write \ifdefined\myprintversion (in 
Latex-Code), then add the hyperlink in the way you want it in the 
printversion. After that in Latex-Code \else, then add the hyperlink in 
the way you want it in the electronic version. To finalize the 
if-clause, you need to add the statement \fi in Latex-Code.
Now all you have to do to switch between print-version and electronic 
version is to keep the definition of \myprintversion or delete/comment it.


If you need an example-file, I'll send you one.
Regards,

Florian


Re: Want to show URLs in printed version

2009-04-21 Thread Drew Kime
On Tue, Apr 21, 2009 at 4:40 PM, Florian Rubach wrote:

>
> If I get you right, you want two different outputs, number one for printing
> with both title and URL and number two as electronic version with just the
> clickable title and nothing more.
> There is a workaround for that... It's not quite beautiful, but it works.
> You have to make a distinction between your two cases "printed"  and "pdf".
> For that, you can define your own latex-command, say \myprintversion, by
> \def\myprintversion{} in Latex-Code.
> In front of every hyperlink, you can check whether \myprintversion is
> defined or not and use that to decide what output to generate. To stick with
> your example, you could write \ifdefined\myprintversion (in Latex-Code),
> then add the hyperlink in the way you want it in the printversion. After
> that in Latex-Code \else, then add the hyperlink in the way you want it in
> the electronic version. To finalize the if-clause, you need to add the
> statement \fi in Latex-Code.
> Now all you have to do to switch between print-version and electronic
> version is to keep the definition of \myprintversion or delete/comment it.
>
> If you need an example-file, I'll send you one.
> Regards,
>
> Florian
>
Yes, that's exactly what I was looking for. But it sounds like I'd need to
manually add the "if - else" code before every URL. If that's the case, I'm
more comfortable writing macros in vim, so I'll handle it in the lyx code
directly, not through the GUI. Thanks for the help.

Drew


Automating Index Entry Removal

2009-04-21 Thread Rich Shepard

  I'm using text from one document (which has an index) in another document
(which will not have an index). Is there a way I can bulk delete all the
[Idx] insertions in the copied text? The standard search-and-replace dialog
box doesn't recognize the three-character string as a valid search term.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Automating Index Entry Removal

2009-04-21 Thread rgheck

Rich Shepard wrote:

I'm using text from one document (which has an index) in another document
(which will not have an index). Is there a way I can bulk delete all the
[Idx] insertions in the copied text? The standard search-and-replace 
dialog

box doesn't recognize the three-character string as a valid search term.

Open the LyX file in a text editor and you'll see the format of these. 
You can then write a simple script that will remove them: sed, perl, 
python, whatever.


rh



  1   2   >