Re: Check speller in LyX 2.0 alpha3

2010-05-28 Thread icebna

Hi

I have Mandriva in my computer and I have installed aspell-es and 
libaspell-devel and work fine.


Regards


On 27/05/10 22:13, Francisco J. Ruiz-Ruano Campaña wrote:

I have installed LyX 2.0 alpha3 in Ubuntu, but I check speller is
deactivated since I have installed it.

I have installed aspell, ispell and hunspell in spanish, but it doesn't work.

Some ideas?

Thanks.
   




Re: Save Date vs. Print Date

2010-05-28 Thread icebna
Under the title skip a row and write your date, and up to the left under 
file, edit ... where are the paragraphs of the document and press Date 
and that date is final.


Regards



On 28/05/10 00:30, Tim Wescott wrote:
Under the 'Article' document type, the title page will list the print 
date of a document.


But I vastly prefer to insert my own date, or to list the save date of 
the file -- it just makes more sense for tracking changes.


Is there a way to get LyX to do this? I didn't see it in the menus.





Re: LyX layout for tRES?

2010-05-28 Thread Nikos Alexandris
Nikos Alexandris:
   I started from the scratch with the content (Title, Section(s),
   Paragraphs and standard text) and still I had to revert to the default
   most of the
 
   settings to get it compile:
 ...
 
- no other spacing besides Single works
- Page Margins when set to custom 2, 2, 2, 2 are a mess. Default
   
   works ok.
 
Jean-Marc Lasgouttes wrote:
  Note that for journal/conference submissions you are supposed to stick
  to the defaults
  anyway... Many classes are not very tolerant to changes.
 
 Right. But what about the strange top-header? Should I assume this is the
 way it is designed?

It works fine with font(s) set to (Roman:) Times Roman.

(...how got this font established world-wide anyway? I think it is difficult 
to read comparing with other fonts... )

Nikos


Re: LyX layout for tRES?

2010-05-28 Thread Nikos Alexandris
On Friday 28 of May 2010 12:10:09 Nikos Alexandris wrote:
 Nikos Alexandris:
I started from the scratch with the content (Title, Section(s),
Paragraphs and standard text) and still I had to revert to the
default most of the
  
settings to get it compile:
  ...
  
 - no other spacing besides Single works
 - Page Margins when set to custom 2, 2, 2, 2 are a mess. Default

works ok.
 
 Jean-Marc Lasgouttes wrote:
   Note that for journal/conference submissions you are supposed to stick
   to the defaults
   anyway... Many classes are not very tolerant to changes.
  
  Right. But what about the strange top-header? Should I assume this is the
  way it is designed?
 
 It works fine with font(s) set to (Roman:) Times Roman.

Should (all) this info go to the wiki? Are there other things to test?

Nikos


Re: Save Date vs. Print Date

2010-05-28 Thread Daniel Lohmann

On 28.05.2010, at 00:30, Tim Wescott wrote:

 Under the 'Article' document type, the title page will list the print date of 
 a document.
 
 But I vastly prefer to insert my own date, or to list the save date of the 
 file -- it just makes more sense for tracking changes.
 
 Is there a way to get LyX to do this? I didn't see it in the menus.

Assuming you are compiling with pdftex as backend (which is most probably the 
case, as all more or less recent LaTeX-Distributions use it by default -- even 
when compiling to dvi), you can use the  \pdffilemoddate{filename} built-in 
command to retrieve the last modified date of filename. 

LyXically and applied for the own source file this comes down to the following 
two lines, which should be inserted into your document's preamble:

\def\parsedate #1:20#2#3#4#5#6#7#8\empty{20#2#3/#4#5/#6#7}
\date{\expandafter\parsedate\pdffilemoddate{\jobname.tex}\empty}

(You can alter the display format, e.g., to use full stops instead of hyphens 
as separators, by modifying the \empty{} part of the first line.

I have found the basics of this trick on the net some time ago, so I do not 
want claim authorship for it. Note that in its current form \parsedate only 
works for the years 2000 -- 2099.

Daniel
 

Re: LyX layout for tRES?

2010-05-28 Thread Nikos Alexandris
Nikos Alexandris:
  I started from the scratch with the content (Title, Section(s),
  Paragraphs and standard text) and still I had to revert to the default
  most of the settings

  to get it compile:
   - no other spacing besides Single works
   - Page Margins when set to custom 2, 2, 2, 2 are a mess. Default works
   ok.

On Thursday 27 of May 2010 23:24:35 Jean-Marc Lasgouttes wrote: 
 Note that for journal/conference submissions you are supposed to stick
 to the defaults
 anyway... Many classes are not very tolerant to changes.

JM,

thinking again, my idea about spacing is to have one-half or double spacing 
while reading it for corrections before the submission.

Nikos


Re: in Lyx-Code quote, double quote, and back-tic not as expected.

2010-05-28 Thread Paul Rubin
Try the following:

1. In the preamble, \usepackage{textcomp}.

2. Rather than LyX-Code, Insert  Program Listing and paste the code in there.

3. Right click anywhere in the listing, pick Settings..., go the Advanced tab,
and insert columns=fullflexible and upquote=true.  The former gets rid of
kerning and the latter gets you the backtick character.  (The vertical quote
seems to take care of itself.)

/Paul



Trouble compiling PDF

2010-05-28 Thread M
Hello guys,

I have a problem when I try to compile my beamer document in PDF, it appears
a popout and the message is something like this

Fichier inexistant : /tmp/lyx_tmpdir.MT4489/lyx_tmpbuf9/Defensa_Tesis2.pdf


I am using Kubuntu 10.04 and Lyx 1.6.6


Any idea???


Thanks


--

Sorry for my bad English


Re: Trouble compiling PDF

2010-05-28 Thread José Matos
On Friday 28 May 2010 16:37:24 M wrote:
 Hello guys,
 
 I have a problem when I try to compile my beamer document in PDF, it
 appears a popout and the message is something like this
 
 Fichier inexistant : /tmp/lyx_tmpdir.MT4489/lyx_tmpbuf9/Defensa_Tesis2.pdf
 
 
 I am using Kubuntu 10.04 and Lyx 1.6.6
 
 
 Any idea???
 
 
 Thanks

Add an EndFrame style (layout) as the last paragraph of the document.

-- 
José Abílio


Re: Trouble compiling PDF

2010-05-28 Thread Nikos Alexandris
M wrote:
 I have a problem when I try to compile my beamer document in PDF, it
 appears a popout and the message is something like this

 Fichier inexistant : /tmp/lyx_tmpdir.MT4489/lyx_tmpbuf9/Defensa_Tesis2.pdf
 I am using Kubuntu 10.04 and Lyx 1.6.6

Me too

 Any idea???

No. But I have seen this myself and I just reverted back the last 
modifications in the lyx document and then it worked. Unfortunately, I can't 
remember what was the change that caused the document not to compile.

I guess that the error is somehow misleading... ?
Nikos


Re: Trouble compiling PDF

2010-05-28 Thread Paul Rubin
M basu123ra at gmail.com writes:

 
 I have a problem when I try to compile my beamer document in PDF, it appears a
popout and the message is something like this 
 
 Fichier inexistant : /tmp/lyx_tmpdir.MT4489/lyx_tmpbuf9/Defensa_Tesis2.pdf

The message just means that the PDF file was not created; it says nothing about
what went wrong.  Things to try:

1.  Look at Document  LaTeX Log and see if you can find an error message.

2.  Export the document using File  Export  LaTeX (pdflatex), open a terminal,
run pdflatex against the .tex file, and look for error messages.

/Paul



Re: Trouble compiling PDF

2010-05-28 Thread M
Paul Rubin rubin at msu.edu writes:


 1.  Look at Document  LaTeX Log and see if you can find an error message.

 2.  Export the document using File  Export  LaTeX (pdflatex), open a
terminal,
 run pdflatex against the .tex file, and look for error messages.


Here it's the error. How can solve it???

Runaway argument?
 \end {document}
! File ended while scanning use of \@@lyxplainframe.
inserted text
\par
* Defensa_Tesis2.tex

I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.

! Emergency stop.
* Defensa_Tesis2.tex


Re: Trouble compiling PDF

2010-05-28 Thread José Matos
On Friday 28 May 2010 17:08:53 M wrote:
 Here it's the error. How can solve it???
 
 Runaway argument?
  \end {document}
 ! File ended while scanning use of \@@lyxplainframe.
 inserted text
 \par
 * Defensa_Tesis2.tex
 
 I suspect you have forgotten a `}', causing me
 to read past where you wanted me to stop.
 I'll try to recover; but if the error is serious,
 you'd better type `E' or `X' now and fix your file.
 
 ! Emergency stop.
 * Defensa_Tesis2.tex

Add an EndFrame style (layout) as the last paragraph of the document.

-- 
José Abílio


Re: Trouble compiling PDF

2010-05-28 Thread M
José Matos jamatos at fc.up.pt writes:


 
 Add an EndFrame style (layout) as the last paragraph of the document.
 


Yeah it really works!!!

Thanks!





LyTero and LyX 2

2010-05-28 Thread Rob Oakes
Dear LyX Users,

I've been toiling away on a book chapter about Reference Managers and 
Cite-While-You-Write software and I've run into a bit of a snag.  Does anyone 
know if Lytero currently supports the new version of LyX?  Whenever I try and 
use it (regardless of platform), it says that it is unable to either locate the 
LyX pipe or that it is unable to find the bibliography style.

I'm just wondering if anyone has had success getting it to work with one of the 
alpha builds of LyX or with the SVN versions.

Cheers,

Rob Oakes

Re: Wrap of long strings

2010-05-28 Thread Rainer Dorsch
Am Donnerstag, 27. Mai 2010 schrieb Liviu Andronic:
 On 5/27/10, Rainer Dorsch rdor...@web.de wrote:
   in some parts of a document I have texts with long words (e.g. directory
   names, etc.), which I want to wrap whenever I reach \textwidth (even in
  the middle of a word). Has anybody a suggestion how to do that
  efficiently for a limited small parts in a document? I would even be
  happy to just mark the word, that it can be broken up at any place

 One thing to is Insert  Formatting  Hyphenation point, which will be
 used if needed.

Thanks for that hint. I went with the special character breakable slash.

Rainer


-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


signature.asc
Description: This is a digitally signed message part.


Quotations after Headings

2010-05-28 Thread iustifico
In some books sometimes the author writes the Titel of a Topic, then under the 
titel in italic appears a nice slogan or citation of a famous person. I find 
this kind of nice. Is there a way to manage that in Lyx? I mean is there 
perhaps a builtin method, or do I have just to write some text and align it to 
the right and set it italic?

e.g.:


1. This is a title of a topic Titel

Though this be madness, yet there is method 
in't.
- Shakespeare, William (1564-1616)

Start of the Chapter...


Greatings,
iustifico



Re: Quotations after Headings

2010-05-28 Thread Rich Shepard

On Fri, 28 May 2010, iustifico wrote:


In some books sometimes the author writes the Titel of a Topic, then under
the titel in italic appears a nice slogan or citation of a famous person.
I find this kind of nice. Is there a way to manage that in Lyx? I mean is
there perhaps a builtin method, or do I have just to write some text and
align it to the right and set it italic?


  Look in The LaTeX Companion, Second Edition. There is a package for that
but I don't recall the name off the top of my head.

Rich


Re: Re: in Lyx-Code quote, double quote, and back-tic not as expected.

2010-05-28 Thread Todd Denniston
Paul Rubin wrote, On Fri, 28 May 2010 15:35:16 + (UTC):
 Try the following:
 
 1. In the preamble, \usepackage{textcomp}.
 
 2. Rather than LyX-Code, Insert  Program Listing and paste the code in there.
 
 3. Right click anywhere in the listing, pick Settings..., go the Advanced tab,
 and insert columns=fullflexible and upquote=true.  The former gets rid of
 kerning and the latter gets you the backtick character.  (The vertical quote
 seems to take care of itself.)
 
 /Paul
 
 

Thanks, I'll give those a try as soon as I get back to _that_ document.

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter


Re: Save Date vs. Print Date

2010-05-28 Thread stefano franchi
On Fri, May 28, 2010 at 5:33 AM, Daniel Lohmann 
daniel.lohm...@informatik.uni-erlangen.de wrote:


 On 28.05.2010, at 00:30, Tim Wescott wrote:


 Assuming you are compiling with pdftex as backend (which is most probably
 the case, as all more or less recent LaTeX-Distributions use it by default
 -- even when compiling to dvi), you can use the  \pdffilemoddate{filename}
 built-in command to retrieve the last modified date of filename.

 LyXically and applied for the own source file this comes down to the
 following two lines, which should be inserted into your document's preamble:

 \def\parsedate #1:20#2#3#4#5#6#7#8\empty{20#2#3/#4#5/#6#7}
 \date{\expandafter\parsedate\pdffilemoddate{\jobname.tex}\empty}

 (You can alter the display format, e.g., to use full stops instead of
 hyphens as separators, by modifying the \empty{} part of the first line.


Nice trick. But wouldn't the  final result be identical to the print date,
since pdftex checks the modification date of a tex file created on the fly
by lyx at print time? Or there is something more involved I don't
understand?

Cheers,

Stefano




-- 
__
Stefano Franchi
Department of Philosophy   Ph:   (1) 979 862-2211
Texas AM University Fax: (1) 979 845-0458
College Station, Texas, USA


Re: Spurious '}'

2010-05-28 Thread Tim Cook
On Fri, 2010-05-28 at 04:19 +0200, Uwe Stöhr wrote:
 
 Please send the next time a _small_ LyX example file.

Okay.  I wasn't sure WHERE the actual error was though. 

 
 The bug occurs because you sometimes set the tables as being part of the 
 paragraph headings. 
 Sometimes you also set the tables as description - which could cause problems 
 and is senseless. To 
 fix this, set the cursor in front of the tables and select the standard 
 environment.
 Attached is an excerpt of your document where I fixed this accordingly.

Thank you.  Of course the paragraph settings to anything other than
Standard was inadvertent. But I would have never looked for that as the
problem.

Thank you very much for your help and your time troubleshooting this.
Another great contribution to the spread of open source/open
content.  :-)

Cheers,
Tim



-- 
***
Timothy Cook, MSc

LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook 
Skype ID == (upon request)
Academic.Edu Profile: http://uff.academia.edu/TimothyCook

You may get my Public GPG key from  popular keyservers or
from this link http://timothywayne.cook.googlepages.com/home 



signature.asc
Description: This is a digitally signed message part


Help to create some custome made encironments in Lyx

2010-05-28 Thread Artimess
Could someone please either refer me to a how to do or show me how I can
build the following environment in Lyx.  They are borrowed from Ads-Wes.sty
Thanks,
Artimess
-

%

%% ENVIRONMENTS

%

%%

%% new environments, or new definitions of old ones

%%

%% - example : for displaying computer interaction

%% - wexample : as above, but full width

%% - cexample : as above, but centered

%% - pseudocode : for displaying pseudo-code

%% - outputstuff : for displaying computer output

%% - description : like description, but with equal left  right indents

%% - itemize : as above, for itemized lists

%% - enumerate : as above, for enumerated lists

%% - preface : for prefaces

%%

%%

%%

%% EXAMPLE environment

%%

\def\examplefont{\tb} %% font ( style) used for all example environments

\newdimen\exampletopsep %% white space to leave above an example

\exampletopsep\parskip

\def\example{\list{}{%

\topsep\exampletopsep

\rightmargin\leftmargin

\examplefont}

\item[]}

\let\endexample\endlist

%

%%

%% FULL WIDTH EXAMPLE ENVIRONMENT

%%

\def\wexample{\list{}{%

\topsep\exampletopsep

\leftmargin 0pt

\rightmargin \leftmargin

\examplefont}

\item[]}

\let\endwexample\endlist



%%

%% CENTERED EXAMPLE ENVIRONMENT

%%

\def\cexample{%

\begin{center}

\examplefont}

\def\endcexample{\end{center}}

%%%

%%

%% PSEUDO-PSUEDOCODE ENVIRONMENT

%%

%% usage:

%% \begin{pseudocode}

%% if (test clause) \\

%% \ action statement \\

%% else \\

%% \ alternative \\

%% endif

%% \end{pseudocode}

%% extra levels of indentation can be achieved with additional \'s.

\def\pseudocode{\list{}{%

\topsep \exampletopsep

\rightmargin \leftmargin

\examplefont}

\item[]

\begin{tabbing}

\hskip 1cm \= \hskip 1cm \= \hskip 1cm \= \hskip 1cm \= \hskip 1cm \= \kill}

\def\endpseudocode{\endtabbing\endlist}

%%

%%

%% OUTPUTSTUFF ENVIRONMENT

%%

%% for displaying the output from computer interaction

\def\outputfont{\op} %% font to use for outputstuff

\newdimen\outputstufftopsep %% space to leave above outputstuff

\outputstufftopsep\parskip

\def\outputstuff{\list{}{%

\rightmargin \leftmargin

\topsep\outputstufftopsep

\outputfont}

\item[]}

\let\endoutputstuff\endlist

 %

%%

%% DESCRIPTION ENVIRONMENT

%%

%% redefine the `description' environment

%% to give equal right and left margins,

%% and parametize its topsep

\newdimen\lrdesctopsep %% space to leave above a description

\lrdesctopsep\parskip

\def\description{\list{}{%

\topsep\lrdesctopsep

\rightmargin\leftmargin

\itemindent -\leftmargin

\divide\itemindent by 2

\labelwidth\z@

\let\makelabel\descriptionlabel

}}

\let\enddescription\endlist



%%

%% ITEMIZED LIST ENVIRONMENT

%%

\def\itemize{%

\ifnum \...@itemdepth 3%

\...@toodeep%

\else%

\advan...@itemdepth \...@ne%

\ed...@itemitem{labelitem\romannumeral\the\@itemdepth}%

\list{\csna...@itemitem\endcsname}%

{\def\makelabel##1{\hss\llap{##1}}%

\rightmargin\leftmargin}%

\fi}

%%%

%%

%% ENUMERATED LIST ENVIRONMENT

%%

\def\enumerate{%

\ifnum \...@enumdepth 3%

\...@toodeep%

\else

\advan...@enumdepth \...@ne%

\ed...@enumctr{enum\romannumeral\the\@enumdepth}%

\list{\csname lab...@enumctr\endcsname}%

{\usecounte...@enumctr}%

\def\makelabel##1{\hss\llap{##1}}%

\rightmargin\leftmargin}%

\fi}

%%%


Justifying figures to outer margin

2010-05-28 Thread george legge
In LyX memoir class, 2-sided, single column, how can I place figures so that
their outer edges line up with the outer edge of a wide (outer margin)? With
figures 1.2cm from the edge of the page, they then visually define the wide
outer margin. I want the captions (without caption numbers printed) placed
on the inside of the figures or, for wide figures, in the wide margin under
the figure.

I tried inserting the figure in a float, which then floats to the top of a
page, as desired. However the figure caption appears always on the left and
is justified to the left margin of the text, irrespective of whether the
page is recto or verso. The figure just gets pushed right in response to the
length of the caption. I need the caption on the “inside”, whether that is
left or right. If the caption is below the figure, the figure can be left or
right justified, but only to the text – not to the outer margin. How do I
get justification of the figure to the outer margin – not to the text?

Whether I set this up in LyX, in the LaTeX preamble or in TeX code, I feel
that it should be straightforward and probably a common layout; but I cannot
find the right documentation.

Any advice would be greatly appreciated.
Cheers, George (Legge)


latex_con_lyx

2010-05-28 Thread Artimess
Does anyone have access to the source of latex_con_lyx.pdf?  I like to learn
how the author created code segments of the following form:

Thanks in advance

Artimess


Re: Save Date vs. Print Date

2010-05-28 Thread Daniel Lohmann

On 28.05.2010, at 21:24, stefano franchi wrote:

 
 
 On Fri, May 28, 2010 at 5:33 AM, Daniel Lohmann 
 daniel.lohm...@informatik.uni-erlangen.de wrote:
 
 On 28.05.2010, at 00:30, Tim Wescott wrote:
 
 
 Assuming you are compiling with pdftex as backend (which is most probably the 
 case, as all more or less recent LaTeX-Distributions use it by default -- 
 even when compiling to dvi), you can use the  \pdffilemoddate{filename} 
 built-in command to retrieve the last modified date of filename.
 
 LyXically and applied for the own source file this comes down to the 
 following two lines, which should be inserted into your document's preamble:
 
 \def\parsedate #1:20#2#3#4#5#6#7#8\empty{20#2#3/#4#5/#6#7}
 \date{\expandafter\parsedate\pdffilemoddate{\jobname.tex}\empty}
 
 (You can alter the display format, e.g., to use full stops instead of hyphens 
 as separators, by modifying the \empty{} part of the first line.
 
 
 Nice trick. But wouldn't the  final result be identical to the print date, 
 since pdftex checks the modification date of a tex file created on the fly by 
 lyx at print time? Or there is something more involved I don't understand?

Stefano, you are right, of course!

We need the path to the LyX-File, not to the generated .tex file:

\date{\expandafter\parsedate\pdffilemoddate{/Users/lohmann/test.lyx}\empty}

However, I would prefer not to hard-code the absolute path to the LyX file. 
Fortunately, LyX defines \in...@path in the preamble as the file path to the 
LyX-file directory:

\def\in...@path{{/Users/lohmann//}}

However, the following does /not/ work:

\date{\expandafter\parsedate\pdffilemoddate{\in...@path\jobname.lyx}\empty}

Apparently, the problem is the double curly braces that LyX uses in the 
definition of \in...@path and that somehow influence the TeX-internal scanning; 
with the following definition it /would/ work: 

\def\in...@path{/Users/lohmann//}

Does anybody know, how to expand \in...@path in a way that the double curly 
braces do not cause these troubles?

 Daniel

Re: Save Date vs. Print Date

2010-05-28 Thread Daniel Lohmann

 Nice trick. But wouldn't the  final result be identical to the print date, 
 since pdftex checks the modification date of a tex file created on the fly 
 by lyx at print time? Or there is something more involved I don't understand?
 
 Stefano, you are right, of course!
 
 We need the path to the LyX-File, not to the generated .tex file:
 
 \date{\expandafter\parsedate\pdffilemoddate{/Users/lohmann/test.lyx}\empty}
 
 However, I would prefer not to hard-code the absolute path to the LyX file. 
 Fortunately, LyX defines \in...@path in the preamble as the file path to the 
 LyX-file directory:
 
 \def\in...@path{{/Users/lohmann//}}
 
 However, the following does /not/ work:
 
 \date{\expandafter\parsedate\pdffilemoddate{\in...@path\jobname.lyx}\empty}
 
 Apparently, the problem is the double curly braces that LyX uses in the 
 definition of \in...@path and that somehow influence the TeX-internal 
 scanning; with the following definition it /would/ work: 
 
 \def\in...@path{/Users/lohmann//}
 
 Does anybody know, how to expand \in...@path in a way that the double curly 
 braces do not cause these troubles?


I have found the xstring package, which provides a \StrRemoveBraces command 
that helps here:

\usepackage{xstring}
\strremovebraces{\in...@path\jobname.lyx}[\lyxfilepath]
\def\parsedate #1:20#2#3#4#5#6#7#8\empty{20#2#3/#4#5/#6#7}
\date{\expandafter\parsedate\pdffilemoddate{\lyxfilepath}\empty}

Attached is a .lyx-file that demonstrate this.

Nevertheless, I would prefer a solution that does not employ xstring.

Daniel




moddate.lyx
Description: Binary data


Re: Help to create some custome made encironments in Lyx

2010-05-28 Thread Paul Rubin
Have a look at the LyX Customization manual (Help  Customization), section
5.2.1, and then take a peek at some of the .module files in the LyX layout
folder to see some examples.  Basically, you define the environments in a module
(or modules), including the LaTeX command you will use to invoke the
environment, any LaTeX code needed to define that command (to be inserted into
the preamble), and details of how LyX should display the environment.

/Paul



Re: Justifying figures to outer margin

2010-05-28 Thread Julien Rioux

On 28/05/2010 5:09 PM, george legge wrote:

In LyX memoir class, 2-sided, single column, how can I place figures so that
their outer edges line up with the outer edge of a wide (outer margin)? With
figures 1.2cm from the edge of the page, they then visually define the wide
outer margin. I want the captions (without caption numbers printed) placed
on the inside of the figures or, for wide figures, in the wide margin under
the figure.

I tried inserting the figure in a float, which then floats to the top of a
page, as desired. However the figure caption appears always on the left and
is justified to the left margin of the text, irrespective of whether the
page is recto or verso. The figure just gets pushed right in response to the
length of the caption. I need the caption on the “inside”, whether that is
left or right. If the caption is below the figure, the figure can be left or
right justified, but only to the text – not to the outer margin. How do I
get justification of the figure to the outer margin – not to the text?

Whether I set this up in LyX, in the LaTeX preamble or in TeX code, I feel
that it should be straightforward and probably a common layout; but I cannot
find the right documentation.

Any advice would be greatly appreciated.
Cheers, George (Legge)



Hi,

I am not completely clear on what you want to accomplish, but you might 
want to have a look at the sidecap package [1]. I wrote a minimalistic 
module to use the package in LyX [2]. Maybe that would help. Otherwise, 
sorry for the noise.


[1] http://www.ctan.org/tex-archive/help/Catalogue/entries/sidecap.html
[2] http://www.physics.utoronto.ca/~jrioux/resources/lyx/

--
Julien



Re: Justifying figures to outer margin

2010-05-28 Thread george legge
On Sat, May 29, 2010 at 8:33 AM, Julien Rioux jri...@physics.utoronto.cawrote:
Hi,
I am not completely clear on what you want to accomplish, but you might want
to have a look at the sidecap package [1]. I wrote a minimalistic module to
use the package in LyX [2]. Maybe that would help. Otherwise, sorry for the
noise.

Thank you Julien for the prompt reply.
I have read your documentation.
Your package does allow figures to move into the margin and captions to be
placed on either side.
But it does not appear to tackle the major problem, which is:
How to get figures (of all widths) to justify to a boundary several cm
outside the text edge.

George


Re: Save Date vs. Print Date

2010-05-28 Thread Pavel Sanda
Tim Wescott wrote:
 But I vastly prefer to insert my own date, or to list the save date of  
 the file -- it just makes more sense for tracking changes.

it should not be hard to make inset info for file-date as we have for 
file-name/dir.
feel free to add it to bugzilla if it would solve your request.

pavel


Re: Justifying figures to outer margin

2010-05-28 Thread Uwe Stöhr

Am 29.05.2010 01:04, schrieb george legge:


But it does not appear to tackle the major problem, which is:
How to get figures (of all widths) to justify to a boundary several cm
outside the text edge.


Use a wrapped float. Its option Overhang is exactly what you need. Attached 
is a LyX example file.
For more infos about wrapped floats have a look at sec. 3.2.2 Wrap Floats of the EmbeddedObjects 
manual that you find in LyX#s Help menu.


regards Uwe


Figure-margin-protrude.lyx
Description: application/lyx


Re: latex_con_lyx

2010-05-28 Thread Uwe Stöhr

Am 28.05.2010 23:12, schrieb Artimess:


Does anyone have access to the source of latex_con_lyx.pdf?  I like to learn
how the author created code segments of the following form:


Can you please be more specific. What do you want to know? Where have you fond the file 
latex_con_lyx.pdf?


regards Uwe


Re: latex_con_lyx

2010-05-28 Thread Francisco J . Ruiz-Ruano Campaña
Hi!

LaTeX con LyX is an idea of Bioinformatiquillo (my blog).

http://bioinformatiquillo.wordpress.com/manual-latex-con-lyx/

If we are interesting in it,  we can contat with me in this page.

Bye.

On Sat, May 29, 2010 at 3:13 AM, Uwe Stöhr uwesto...@web.de wrote:
 Am 28.05.2010 23:12, schrieb Artimess:

 Does anyone have access to the source of latex_con_lyx.pdf?  I like to
 learn
 how the author created code segments of the following form:

 Can you please be more specific. What do you want to know? Where have you
 fond the file latex_con_lyx.pdf?

 regards Uwe




-- 
Más allá de la confusión, persiste la duda.


Re: Check speller in LyX 2.0 alpha3

2010-05-28 Thread icebna

Hi

I have Mandriva in my computer and I have installed aspell-es and 
libaspell-devel and work fine.


Regards


On 27/05/10 22:13, Francisco J. Ruiz-Ruano Campaña wrote:

I have installed LyX 2.0 alpha3 in Ubuntu, but I check speller is
deactivated since I have installed it.

I have installed aspell, ispell and hunspell in spanish, but it doesn't work.

Some ideas?

Thanks.
   




Re: Save Date vs. Print Date

2010-05-28 Thread icebna
Under the title skip a row and write your date, and up to the left under 
file, edit ... where are the paragraphs of the document and press Date 
and that date is final.


Regards



On 28/05/10 00:30, Tim Wescott wrote:
Under the 'Article' document type, the title page will list the print 
date of a document.


But I vastly prefer to insert my own date, or to list the save date of 
the file -- it just makes more sense for tracking changes.


Is there a way to get LyX to do this? I didn't see it in the menus.





Re: LyX layout for tRES?

2010-05-28 Thread Nikos Alexandris
Nikos Alexandris:
   I started from the scratch with the content (Title, Section(s),
   Paragraphs and standard text) and still I had to revert to the default
   most of the
 
   settings to get it compile:
 ...
 
- no other spacing besides Single works
- Page Margins when set to custom 2, 2, 2, 2 are a mess. Default
   
   works ok.
 
Jean-Marc Lasgouttes wrote:
  Note that for journal/conference submissions you are supposed to stick
  to the defaults
  anyway... Many classes are not very tolerant to changes.
 
 Right. But what about the strange top-header? Should I assume this is the
 way it is designed?

It works fine with font(s) set to (Roman:) Times Roman.

(...how got this font established world-wide anyway? I think it is difficult 
to read comparing with other fonts... )

Nikos


Re: LyX layout for tRES?

2010-05-28 Thread Nikos Alexandris
On Friday 28 of May 2010 12:10:09 Nikos Alexandris wrote:
 Nikos Alexandris:
I started from the scratch with the content (Title, Section(s),
Paragraphs and standard text) and still I had to revert to the
default most of the
  
settings to get it compile:
  ...
  
 - no other spacing besides Single works
 - Page Margins when set to custom 2, 2, 2, 2 are a mess. Default

works ok.
 
 Jean-Marc Lasgouttes wrote:
   Note that for journal/conference submissions you are supposed to stick
   to the defaults
   anyway... Many classes are not very tolerant to changes.
  
  Right. But what about the strange top-header? Should I assume this is the
  way it is designed?
 
 It works fine with font(s) set to (Roman:) Times Roman.

Should (all) this info go to the wiki? Are there other things to test?

Nikos


Re: Save Date vs. Print Date

2010-05-28 Thread Daniel Lohmann

On 28.05.2010, at 00:30, Tim Wescott wrote:

 Under the 'Article' document type, the title page will list the print date of 
 a document.
 
 But I vastly prefer to insert my own date, or to list the save date of the 
 file -- it just makes more sense for tracking changes.
 
 Is there a way to get LyX to do this? I didn't see it in the menus.

Assuming you are compiling with pdftex as backend (which is most probably the 
case, as all more or less recent LaTeX-Distributions use it by default -- even 
when compiling to dvi), you can use the  \pdffilemoddate{filename} built-in 
command to retrieve the last modified date of filename. 

LyXically and applied for the own source file this comes down to the following 
two lines, which should be inserted into your document's preamble:

\def\parsedate #1:20#2#3#4#5#6#7#8\empty{20#2#3/#4#5/#6#7}
\date{\expandafter\parsedate\pdffilemoddate{\jobname.tex}\empty}

(You can alter the display format, e.g., to use full stops instead of hyphens 
as separators, by modifying the \empty{} part of the first line.

I have found the basics of this trick on the net some time ago, so I do not 
want claim authorship for it. Note that in its current form \parsedate only 
works for the years 2000 -- 2099.

Daniel
 

Re: LyX layout for tRES?

2010-05-28 Thread Nikos Alexandris
Nikos Alexandris:
  I started from the scratch with the content (Title, Section(s),
  Paragraphs and standard text) and still I had to revert to the default
  most of the settings

  to get it compile:
   - no other spacing besides Single works
   - Page Margins when set to custom 2, 2, 2, 2 are a mess. Default works
   ok.

On Thursday 27 of May 2010 23:24:35 Jean-Marc Lasgouttes wrote: 
 Note that for journal/conference submissions you are supposed to stick
 to the defaults
 anyway... Many classes are not very tolerant to changes.

JM,

thinking again, my idea about spacing is to have one-half or double spacing 
while reading it for corrections before the submission.

Nikos


Re: in Lyx-Code quote, double quote, and back-tic not as expected.

2010-05-28 Thread Paul Rubin
Try the following:

1. In the preamble, \usepackage{textcomp}.

2. Rather than LyX-Code, Insert  Program Listing and paste the code in there.

3. Right click anywhere in the listing, pick Settings..., go the Advanced tab,
and insert columns=fullflexible and upquote=true.  The former gets rid of
kerning and the latter gets you the backtick character.  (The vertical quote
seems to take care of itself.)

/Paul



Trouble compiling PDF

2010-05-28 Thread M
Hello guys,

I have a problem when I try to compile my beamer document in PDF, it appears
a popout and the message is something like this

Fichier inexistant : /tmp/lyx_tmpdir.MT4489/lyx_tmpbuf9/Defensa_Tesis2.pdf


I am using Kubuntu 10.04 and Lyx 1.6.6


Any idea???


Thanks


--

Sorry for my bad English


Re: Trouble compiling PDF

2010-05-28 Thread José Matos
On Friday 28 May 2010 16:37:24 M wrote:
 Hello guys,
 
 I have a problem when I try to compile my beamer document in PDF, it
 appears a popout and the message is something like this
 
 Fichier inexistant : /tmp/lyx_tmpdir.MT4489/lyx_tmpbuf9/Defensa_Tesis2.pdf
 
 
 I am using Kubuntu 10.04 and Lyx 1.6.6
 
 
 Any idea???
 
 
 Thanks

Add an EndFrame style (layout) as the last paragraph of the document.

-- 
José Abílio


Re: Trouble compiling PDF

2010-05-28 Thread Nikos Alexandris
M wrote:
 I have a problem when I try to compile my beamer document in PDF, it
 appears a popout and the message is something like this

 Fichier inexistant : /tmp/lyx_tmpdir.MT4489/lyx_tmpbuf9/Defensa_Tesis2.pdf
 I am using Kubuntu 10.04 and Lyx 1.6.6

Me too

 Any idea???

No. But I have seen this myself and I just reverted back the last 
modifications in the lyx document and then it worked. Unfortunately, I can't 
remember what was the change that caused the document not to compile.

I guess that the error is somehow misleading... ?
Nikos


Re: Trouble compiling PDF

2010-05-28 Thread Paul Rubin
M basu123ra at gmail.com writes:

 
 I have a problem when I try to compile my beamer document in PDF, it appears a
popout and the message is something like this 
 
 Fichier inexistant : /tmp/lyx_tmpdir.MT4489/lyx_tmpbuf9/Defensa_Tesis2.pdf

The message just means that the PDF file was not created; it says nothing about
what went wrong.  Things to try:

1.  Look at Document  LaTeX Log and see if you can find an error message.

2.  Export the document using File  Export  LaTeX (pdflatex), open a terminal,
run pdflatex against the .tex file, and look for error messages.

/Paul



Re: Trouble compiling PDF

2010-05-28 Thread M
Paul Rubin rubin at msu.edu writes:


 1.  Look at Document  LaTeX Log and see if you can find an error message.

 2.  Export the document using File  Export  LaTeX (pdflatex), open a
terminal,
 run pdflatex against the .tex file, and look for error messages.


Here it's the error. How can solve it???

Runaway argument?
 \end {document}
! File ended while scanning use of \@@lyxplainframe.
inserted text
\par
* Defensa_Tesis2.tex

I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.

! Emergency stop.
* Defensa_Tesis2.tex


Re: Trouble compiling PDF

2010-05-28 Thread José Matos
On Friday 28 May 2010 17:08:53 M wrote:
 Here it's the error. How can solve it???
 
 Runaway argument?
  \end {document}
 ! File ended while scanning use of \@@lyxplainframe.
 inserted text
 \par
 * Defensa_Tesis2.tex
 
 I suspect you have forgotten a `}', causing me
 to read past where you wanted me to stop.
 I'll try to recover; but if the error is serious,
 you'd better type `E' or `X' now and fix your file.
 
 ! Emergency stop.
 * Defensa_Tesis2.tex

Add an EndFrame style (layout) as the last paragraph of the document.

-- 
José Abílio


Re: Trouble compiling PDF

2010-05-28 Thread M
José Matos jamatos at fc.up.pt writes:


 
 Add an EndFrame style (layout) as the last paragraph of the document.
 


Yeah it really works!!!

Thanks!





LyTero and LyX 2

2010-05-28 Thread Rob Oakes
Dear LyX Users,

I've been toiling away on a book chapter about Reference Managers and 
Cite-While-You-Write software and I've run into a bit of a snag.  Does anyone 
know if Lytero currently supports the new version of LyX?  Whenever I try and 
use it (regardless of platform), it says that it is unable to either locate the 
LyX pipe or that it is unable to find the bibliography style.

I'm just wondering if anyone has had success getting it to work with one of the 
alpha builds of LyX or with the SVN versions.

Cheers,

Rob Oakes

Re: Wrap of long strings

2010-05-28 Thread Rainer Dorsch
Am Donnerstag, 27. Mai 2010 schrieb Liviu Andronic:
 On 5/27/10, Rainer Dorsch rdor...@web.de wrote:
   in some parts of a document I have texts with long words (e.g. directory
   names, etc.), which I want to wrap whenever I reach \textwidth (even in
  the middle of a word). Has anybody a suggestion how to do that
  efficiently for a limited small parts in a document? I would even be
  happy to just mark the word, that it can be broken up at any place

 One thing to is Insert  Formatting  Hyphenation point, which will be
 used if needed.

Thanks for that hint. I went with the special character breakable slash.

Rainer


-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


signature.asc
Description: This is a digitally signed message part.


Quotations after Headings

2010-05-28 Thread iustifico
In some books sometimes the author writes the Titel of a Topic, then under the 
titel in italic appears a nice slogan or citation of a famous person. I find 
this kind of nice. Is there a way to manage that in Lyx? I mean is there 
perhaps a builtin method, or do I have just to write some text and align it to 
the right and set it italic?

e.g.:


1. This is a title of a topic Titel

Though this be madness, yet there is method 
in't.
- Shakespeare, William (1564-1616)

Start of the Chapter...


Greatings,
iustifico



Re: Quotations after Headings

2010-05-28 Thread Rich Shepard

On Fri, 28 May 2010, iustifico wrote:


In some books sometimes the author writes the Titel of a Topic, then under
the titel in italic appears a nice slogan or citation of a famous person.
I find this kind of nice. Is there a way to manage that in Lyx? I mean is
there perhaps a builtin method, or do I have just to write some text and
align it to the right and set it italic?


  Look in The LaTeX Companion, Second Edition. There is a package for that
but I don't recall the name off the top of my head.

Rich


Re: Re: in Lyx-Code quote, double quote, and back-tic not as expected.

2010-05-28 Thread Todd Denniston
Paul Rubin wrote, On Fri, 28 May 2010 15:35:16 + (UTC):
 Try the following:
 
 1. In the preamble, \usepackage{textcomp}.
 
 2. Rather than LyX-Code, Insert  Program Listing and paste the code in there.
 
 3. Right click anywhere in the listing, pick Settings..., go the Advanced tab,
 and insert columns=fullflexible and upquote=true.  The former gets rid of
 kerning and the latter gets you the backtick character.  (The vertical quote
 seems to take care of itself.)
 
 /Paul
 
 

Thanks, I'll give those a try as soon as I get back to _that_ document.

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter


Re: Save Date vs. Print Date

2010-05-28 Thread stefano franchi
On Fri, May 28, 2010 at 5:33 AM, Daniel Lohmann 
daniel.lohm...@informatik.uni-erlangen.de wrote:


 On 28.05.2010, at 00:30, Tim Wescott wrote:


 Assuming you are compiling with pdftex as backend (which is most probably
 the case, as all more or less recent LaTeX-Distributions use it by default
 -- even when compiling to dvi), you can use the  \pdffilemoddate{filename}
 built-in command to retrieve the last modified date of filename.

 LyXically and applied for the own source file this comes down to the
 following two lines, which should be inserted into your document's preamble:

 \def\parsedate #1:20#2#3#4#5#6#7#8\empty{20#2#3/#4#5/#6#7}
 \date{\expandafter\parsedate\pdffilemoddate{\jobname.tex}\empty}

 (You can alter the display format, e.g., to use full stops instead of
 hyphens as separators, by modifying the \empty{} part of the first line.


Nice trick. But wouldn't the  final result be identical to the print date,
since pdftex checks the modification date of a tex file created on the fly
by lyx at print time? Or there is something more involved I don't
understand?

Cheers,

Stefano




-- 
__
Stefano Franchi
Department of Philosophy   Ph:   (1) 979 862-2211
Texas AM University Fax: (1) 979 845-0458
College Station, Texas, USA


Re: Spurious '}'

2010-05-28 Thread Tim Cook
On Fri, 2010-05-28 at 04:19 +0200, Uwe Stöhr wrote:
 
 Please send the next time a _small_ LyX example file.

Okay.  I wasn't sure WHERE the actual error was though. 

 
 The bug occurs because you sometimes set the tables as being part of the 
 paragraph headings. 
 Sometimes you also set the tables as description - which could cause problems 
 and is senseless. To 
 fix this, set the cursor in front of the tables and select the standard 
 environment.
 Attached is an excerpt of your document where I fixed this accordingly.

Thank you.  Of course the paragraph settings to anything other than
Standard was inadvertent. But I would have never looked for that as the
problem.

Thank you very much for your help and your time troubleshooting this.
Another great contribution to the spread of open source/open
content.  :-)

Cheers,
Tim



-- 
***
Timothy Cook, MSc

LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook 
Skype ID == (upon request)
Academic.Edu Profile: http://uff.academia.edu/TimothyCook

You may get my Public GPG key from  popular keyservers or
from this link http://timothywayne.cook.googlepages.com/home 



signature.asc
Description: This is a digitally signed message part


Help to create some custome made encironments in Lyx

2010-05-28 Thread Artimess
Could someone please either refer me to a how to do or show me how I can
build the following environment in Lyx.  They are borrowed from Ads-Wes.sty
Thanks,
Artimess
-

%

%% ENVIRONMENTS

%

%%

%% new environments, or new definitions of old ones

%%

%% - example : for displaying computer interaction

%% - wexample : as above, but full width

%% - cexample : as above, but centered

%% - pseudocode : for displaying pseudo-code

%% - outputstuff : for displaying computer output

%% - description : like description, but with equal left  right indents

%% - itemize : as above, for itemized lists

%% - enumerate : as above, for enumerated lists

%% - preface : for prefaces

%%

%%

%%

%% EXAMPLE environment

%%

\def\examplefont{\tb} %% font ( style) used for all example environments

\newdimen\exampletopsep %% white space to leave above an example

\exampletopsep\parskip

\def\example{\list{}{%

\topsep\exampletopsep

\rightmargin\leftmargin

\examplefont}

\item[]}

\let\endexample\endlist

%

%%

%% FULL WIDTH EXAMPLE ENVIRONMENT

%%

\def\wexample{\list{}{%

\topsep\exampletopsep

\leftmargin 0pt

\rightmargin \leftmargin

\examplefont}

\item[]}

\let\endwexample\endlist



%%

%% CENTERED EXAMPLE ENVIRONMENT

%%

\def\cexample{%

\begin{center}

\examplefont}

\def\endcexample{\end{center}}

%%%

%%

%% PSEUDO-PSUEDOCODE ENVIRONMENT

%%

%% usage:

%% \begin{pseudocode}

%% if (test clause) \\

%% \ action statement \\

%% else \\

%% \ alternative \\

%% endif

%% \end{pseudocode}

%% extra levels of indentation can be achieved with additional \'s.

\def\pseudocode{\list{}{%

\topsep \exampletopsep

\rightmargin \leftmargin

\examplefont}

\item[]

\begin{tabbing}

\hskip 1cm \= \hskip 1cm \= \hskip 1cm \= \hskip 1cm \= \hskip 1cm \= \kill}

\def\endpseudocode{\endtabbing\endlist}

%%

%%

%% OUTPUTSTUFF ENVIRONMENT

%%

%% for displaying the output from computer interaction

\def\outputfont{\op} %% font to use for outputstuff

\newdimen\outputstufftopsep %% space to leave above outputstuff

\outputstufftopsep\parskip

\def\outputstuff{\list{}{%

\rightmargin \leftmargin

\topsep\outputstufftopsep

\outputfont}

\item[]}

\let\endoutputstuff\endlist

 %

%%

%% DESCRIPTION ENVIRONMENT

%%

%% redefine the `description' environment

%% to give equal right and left margins,

%% and parametize its topsep

\newdimen\lrdesctopsep %% space to leave above a description

\lrdesctopsep\parskip

\def\description{\list{}{%

\topsep\lrdesctopsep

\rightmargin\leftmargin

\itemindent -\leftmargin

\divide\itemindent by 2

\labelwidth\z@

\let\makelabel\descriptionlabel

}}

\let\enddescription\endlist



%%

%% ITEMIZED LIST ENVIRONMENT

%%

\def\itemize{%

\ifnum \...@itemdepth 3%

\...@toodeep%

\else%

\advan...@itemdepth \...@ne%

\ed...@itemitem{labelitem\romannumeral\the\@itemdepth}%

\list{\csna...@itemitem\endcsname}%

{\def\makelabel##1{\hss\llap{##1}}%

\rightmargin\leftmargin}%

\fi}

%%%

%%

%% ENUMERATED LIST ENVIRONMENT

%%

\def\enumerate{%

\ifnum \...@enumdepth 3%

\...@toodeep%

\else

\advan...@enumdepth \...@ne%

\ed...@enumctr{enum\romannumeral\the\@enumdepth}%

\list{\csname lab...@enumctr\endcsname}%

{\usecounte...@enumctr}%

\def\makelabel##1{\hss\llap{##1}}%

\rightmargin\leftmargin}%

\fi}

%%%


Justifying figures to outer margin

2010-05-28 Thread george legge
In LyX memoir class, 2-sided, single column, how can I place figures so that
their outer edges line up with the outer edge of a wide (outer margin)? With
figures 1.2cm from the edge of the page, they then visually define the wide
outer margin. I want the captions (without caption numbers printed) placed
on the inside of the figures or, for wide figures, in the wide margin under
the figure.

I tried inserting the figure in a float, which then floats to the top of a
page, as desired. However the figure caption appears always on the left and
is justified to the left margin of the text, irrespective of whether the
page is recto or verso. The figure just gets pushed right in response to the
length of the caption. I need the caption on the “inside”, whether that is
left or right. If the caption is below the figure, the figure can be left or
right justified, but only to the text – not to the outer margin. How do I
get justification of the figure to the outer margin – not to the text?

Whether I set this up in LyX, in the LaTeX preamble or in TeX code, I feel
that it should be straightforward and probably a common layout; but I cannot
find the right documentation.

Any advice would be greatly appreciated.
Cheers, George (Legge)


latex_con_lyx

2010-05-28 Thread Artimess
Does anyone have access to the source of latex_con_lyx.pdf?  I like to learn
how the author created code segments of the following form:

Thanks in advance

Artimess


Re: Save Date vs. Print Date

2010-05-28 Thread Daniel Lohmann

On 28.05.2010, at 21:24, stefano franchi wrote:

 
 
 On Fri, May 28, 2010 at 5:33 AM, Daniel Lohmann 
 daniel.lohm...@informatik.uni-erlangen.de wrote:
 
 On 28.05.2010, at 00:30, Tim Wescott wrote:
 
 
 Assuming you are compiling with pdftex as backend (which is most probably the 
 case, as all more or less recent LaTeX-Distributions use it by default -- 
 even when compiling to dvi), you can use the  \pdffilemoddate{filename} 
 built-in command to retrieve the last modified date of filename.
 
 LyXically and applied for the own source file this comes down to the 
 following two lines, which should be inserted into your document's preamble:
 
 \def\parsedate #1:20#2#3#4#5#6#7#8\empty{20#2#3/#4#5/#6#7}
 \date{\expandafter\parsedate\pdffilemoddate{\jobname.tex}\empty}
 
 (You can alter the display format, e.g., to use full stops instead of hyphens 
 as separators, by modifying the \empty{} part of the first line.
 
 
 Nice trick. But wouldn't the  final result be identical to the print date, 
 since pdftex checks the modification date of a tex file created on the fly by 
 lyx at print time? Or there is something more involved I don't understand?

Stefano, you are right, of course!

We need the path to the LyX-File, not to the generated .tex file:

\date{\expandafter\parsedate\pdffilemoddate{/Users/lohmann/test.lyx}\empty}

However, I would prefer not to hard-code the absolute path to the LyX file. 
Fortunately, LyX defines \in...@path in the preamble as the file path to the 
LyX-file directory:

\def\in...@path{{/Users/lohmann//}}

However, the following does /not/ work:

\date{\expandafter\parsedate\pdffilemoddate{\in...@path\jobname.lyx}\empty}

Apparently, the problem is the double curly braces that LyX uses in the 
definition of \in...@path and that somehow influence the TeX-internal scanning; 
with the following definition it /would/ work: 

\def\in...@path{/Users/lohmann//}

Does anybody know, how to expand \in...@path in a way that the double curly 
braces do not cause these troubles?

 Daniel

Re: Save Date vs. Print Date

2010-05-28 Thread Daniel Lohmann

 Nice trick. But wouldn't the  final result be identical to the print date, 
 since pdftex checks the modification date of a tex file created on the fly 
 by lyx at print time? Or there is something more involved I don't understand?
 
 Stefano, you are right, of course!
 
 We need the path to the LyX-File, not to the generated .tex file:
 
 \date{\expandafter\parsedate\pdffilemoddate{/Users/lohmann/test.lyx}\empty}
 
 However, I would prefer not to hard-code the absolute path to the LyX file. 
 Fortunately, LyX defines \in...@path in the preamble as the file path to the 
 LyX-file directory:
 
 \def\in...@path{{/Users/lohmann//}}
 
 However, the following does /not/ work:
 
 \date{\expandafter\parsedate\pdffilemoddate{\in...@path\jobname.lyx}\empty}
 
 Apparently, the problem is the double curly braces that LyX uses in the 
 definition of \in...@path and that somehow influence the TeX-internal 
 scanning; with the following definition it /would/ work: 
 
 \def\in...@path{/Users/lohmann//}
 
 Does anybody know, how to expand \in...@path in a way that the double curly 
 braces do not cause these troubles?


I have found the xstring package, which provides a \StrRemoveBraces command 
that helps here:

\usepackage{xstring}
\strremovebraces{\in...@path\jobname.lyx}[\lyxfilepath]
\def\parsedate #1:20#2#3#4#5#6#7#8\empty{20#2#3/#4#5/#6#7}
\date{\expandafter\parsedate\pdffilemoddate{\lyxfilepath}\empty}

Attached is a .lyx-file that demonstrate this.

Nevertheless, I would prefer a solution that does not employ xstring.

Daniel




moddate.lyx
Description: Binary data


Re: Help to create some custome made encironments in Lyx

2010-05-28 Thread Paul Rubin
Have a look at the LyX Customization manual (Help  Customization), section
5.2.1, and then take a peek at some of the .module files in the LyX layout
folder to see some examples.  Basically, you define the environments in a module
(or modules), including the LaTeX command you will use to invoke the
environment, any LaTeX code needed to define that command (to be inserted into
the preamble), and details of how LyX should display the environment.

/Paul



Re: Justifying figures to outer margin

2010-05-28 Thread Julien Rioux

On 28/05/2010 5:09 PM, george legge wrote:

In LyX memoir class, 2-sided, single column, how can I place figures so that
their outer edges line up with the outer edge of a wide (outer margin)? With
figures 1.2cm from the edge of the page, they then visually define the wide
outer margin. I want the captions (without caption numbers printed) placed
on the inside of the figures or, for wide figures, in the wide margin under
the figure.

I tried inserting the figure in a float, which then floats to the top of a
page, as desired. However the figure caption appears always on the left and
is justified to the left margin of the text, irrespective of whether the
page is recto or verso. The figure just gets pushed right in response to the
length of the caption. I need the caption on the “inside”, whether that is
left or right. If the caption is below the figure, the figure can be left or
right justified, but only to the text – not to the outer margin. How do I
get justification of the figure to the outer margin – not to the text?

Whether I set this up in LyX, in the LaTeX preamble or in TeX code, I feel
that it should be straightforward and probably a common layout; but I cannot
find the right documentation.

Any advice would be greatly appreciated.
Cheers, George (Legge)



Hi,

I am not completely clear on what you want to accomplish, but you might 
want to have a look at the sidecap package [1]. I wrote a minimalistic 
module to use the package in LyX [2]. Maybe that would help. Otherwise, 
sorry for the noise.


[1] http://www.ctan.org/tex-archive/help/Catalogue/entries/sidecap.html
[2] http://www.physics.utoronto.ca/~jrioux/resources/lyx/

--
Julien



Re: Justifying figures to outer margin

2010-05-28 Thread george legge
On Sat, May 29, 2010 at 8:33 AM, Julien Rioux jri...@physics.utoronto.cawrote:
Hi,
I am not completely clear on what you want to accomplish, but you might want
to have a look at the sidecap package [1]. I wrote a minimalistic module to
use the package in LyX [2]. Maybe that would help. Otherwise, sorry for the
noise.

Thank you Julien for the prompt reply.
I have read your documentation.
Your package does allow figures to move into the margin and captions to be
placed on either side.
But it does not appear to tackle the major problem, which is:
How to get figures (of all widths) to justify to a boundary several cm
outside the text edge.

George


Re: Save Date vs. Print Date

2010-05-28 Thread Pavel Sanda
Tim Wescott wrote:
 But I vastly prefer to insert my own date, or to list the save date of  
 the file -- it just makes more sense for tracking changes.

it should not be hard to make inset info for file-date as we have for 
file-name/dir.
feel free to add it to bugzilla if it would solve your request.

pavel


Re: Justifying figures to outer margin

2010-05-28 Thread Uwe Stöhr

Am 29.05.2010 01:04, schrieb george legge:


But it does not appear to tackle the major problem, which is:
How to get figures (of all widths) to justify to a boundary several cm
outside the text edge.


Use a wrapped float. Its option Overhang is exactly what you need. Attached 
is a LyX example file.
For more infos about wrapped floats have a look at sec. 3.2.2 Wrap Floats of the EmbeddedObjects 
manual that you find in LyX#s Help menu.


regards Uwe


Figure-margin-protrude.lyx
Description: application/lyx


Re: latex_con_lyx

2010-05-28 Thread Uwe Stöhr

Am 28.05.2010 23:12, schrieb Artimess:


Does anyone have access to the source of latex_con_lyx.pdf?  I like to learn
how the author created code segments of the following form:


Can you please be more specific. What do you want to know? Where have you fond the file 
latex_con_lyx.pdf?


regards Uwe


Re: latex_con_lyx

2010-05-28 Thread Francisco J . Ruiz-Ruano Campaña
Hi!

LaTeX con LyX is an idea of Bioinformatiquillo (my blog).

http://bioinformatiquillo.wordpress.com/manual-latex-con-lyx/

If we are interesting in it,  we can contat with me in this page.

Bye.

On Sat, May 29, 2010 at 3:13 AM, Uwe Stöhr uwesto...@web.de wrote:
 Am 28.05.2010 23:12, schrieb Artimess:

 Does anyone have access to the source of latex_con_lyx.pdf?  I like to
 learn
 how the author created code segments of the following form:

 Can you please be more specific. What do you want to know? Where have you
 fond the file latex_con_lyx.pdf?

 regards Uwe




-- 
Más allá de la confusión, persiste la duda.


Re: Check speller in LyX 2.0 alpha3

2010-05-28 Thread icebna

Hi

I have Mandriva in my computer and I have installed aspell-es and 
libaspell-devel and work fine.


Regards


On 27/05/10 22:13, Francisco J. Ruiz-Ruano Campaña wrote:

I have installed LyX 2.0 alpha3 in Ubuntu, but I check speller is
deactivated since I have installed it.

I have installed aspell, ispell and hunspell in spanish, but it doesn't work.

Some ideas?

Thanks.
   




Re: Save Date vs. Print Date

2010-05-28 Thread icebna
Under the title skip a row and write your date, and up to the left under 
file, edit ... where are the paragraphs of the document and press Date 
and that date is final.


Regards



On 28/05/10 00:30, Tim Wescott wrote:
Under the 'Article' document type, the title page will list the print 
date of a document.


But I vastly prefer to insert my own date, or to list the save date of 
the file -- it just makes more sense for tracking changes.


Is there a way to get LyX to do this? I didn't see it in the menus.





Re: LyX layout for tRES?

2010-05-28 Thread Nikos Alexandris
Nikos Alexandris:
> > > I started from the scratch with the content (Title, Section(s),
> > > Paragraphs and standard text) and still I had to revert to the default
> > > most of the
> 
> > > settings to get it compile:
> ...
> 
> > >  - no other spacing besides "Single" works
> > >  - Page Margins when set to custom 2, 2, 2, 2 are a mess. Default
> > > 
> > > works ok.
> 
Jean-Marc Lasgouttes wrote:
> > Note that for journal/conference submissions you are supposed to stick
> > to the defaults
> > anyway... Many classes are not very tolerant to changes.
> 
> Right. But what about the strange top-header? Should I assume this is the
> way it is designed?

It works fine with font(s) set to (Roman:) Times Roman.

(...how got this font established world-wide anyway? I think it is difficult 
to read comparing with other fonts... )

Nikos


Re: LyX layout for tRES?

2010-05-28 Thread Nikos Alexandris
On Friday 28 of May 2010 12:10:09 Nikos Alexandris wrote:
> Nikos Alexandris:
> > > > I started from the scratch with the content (Title, Section(s),
> > > > Paragraphs and standard text) and still I had to revert to the
> > > > default most of the
> > 
> > > > settings to get it compile:
> > ...
> > 
> > > >  - no other spacing besides "Single" works
> > > >  - Page Margins when set to custom 2, 2, 2, 2 are a mess. Default
> > > > 
> > > > works ok.
> 
> Jean-Marc Lasgouttes wrote:
> > > Note that for journal/conference submissions you are supposed to stick
> > > to the defaults
> > > anyway... Many classes are not very tolerant to changes.
> > 
> > Right. But what about the strange top-header? Should I assume this is the
> > way it is designed?
> 
> It works fine with font(s) set to (Roman:) Times Roman.

Should (all) this info go to the wiki? Are there other things to test?

Nikos


Re: Save Date vs. Print Date

2010-05-28 Thread Daniel Lohmann

On 28.05.2010, at 00:30, Tim Wescott wrote:

> Under the 'Article' document type, the title page will list the print date of 
> a document.
> 
> But I vastly prefer to insert my own date, or to list the save date of the 
> file -- it just makes more sense for tracking changes.
> 
> Is there a way to get LyX to do this? I didn't see it in the menus.

Assuming you are compiling with pdftex as backend (which is most probably the 
case, as all more or less recent LaTeX-Distributions use it by default -- even 
when compiling to dvi), you can use the  \pdffilemoddate{} built-in 
command to retrieve the "last modified" date of . 

LyXically and applied for the own source file this comes down to the following 
two lines, which should be inserted into your document's preamble:

\def\parsedate #1:20#2#3#4#5#6#7#8\empty{20#2#3/#4#5/#6#7}
\date{\expandafter\parsedate\pdffilemoddate{\jobname.tex}\empty}

(You can alter the display format, e.g., to use full stops instead of hyphens 
as separators, by modifying the \empty{} part of the first line.

I have found the basics of this trick on the net some time ago, so I do not 
want claim authorship for it. Note that in its current form \parsedate only 
works for the years 2000 -- 2099.

Daniel
 

Re: LyX layout for tRES?

2010-05-28 Thread Nikos Alexandris
Nikos Alexandris:
> > I started from the scratch with the content (Title, Section(s),
> > Paragraphs and standard text) and still I had to revert to the default
> > most of the settings

> > to get it compile:
> >  - no other spacing besides "Single" works
> >  - Page Margins when set to custom 2, 2, 2, 2 are a mess. Default works
> >  ok.

On Thursday 27 of May 2010 23:24:35 Jean-Marc Lasgouttes wrote: 
> Note that for journal/conference submissions you are supposed to stick
> to the defaults
> anyway... Many classes are not very tolerant to changes.

JM,

thinking again, my idea about spacing is to have one-half or double spacing 
while reading it for corrections before the submission.

Nikos


Re: in Lyx-Code quote, double quote, and back-tic not as expected.

2010-05-28 Thread Paul Rubin
Try the following:

1. In the preamble, \usepackage{textcomp}.

2. Rather than LyX-Code, Insert > Program Listing and paste the code in there.

3. Right click anywhere in the listing, pick Settings..., go the Advanced tab,
and insert columns=fullflexible and upquote=true.  The former gets rid of
kerning and the latter gets you the backtick character.  (The vertical quote
seems to take care of itself.)

/Paul



Trouble compiling PDF

2010-05-28 Thread M
Hello guys,

I have a problem when I try to compile my beamer document in PDF, it appears
a popout and the message is something like this

Fichier inexistant : /tmp/lyx_tmpdir.MT4489/lyx_tmpbuf9/Defensa_Tesis2.pdf


I am using Kubuntu 10.04 and Lyx 1.6.6


Any idea???


Thanks


--

Sorry for my bad English


Re: Trouble compiling PDF

2010-05-28 Thread José Matos
On Friday 28 May 2010 16:37:24 M wrote:
> Hello guys,
> 
> I have a problem when I try to compile my beamer document in PDF, it
> appears a popout and the message is something like this
> 
> Fichier inexistant : /tmp/lyx_tmpdir.MT4489/lyx_tmpbuf9/Defensa_Tesis2.pdf
> 
> 
> I am using Kubuntu 10.04 and Lyx 1.6.6
> 
> 
> Any idea???
> 
> 
> Thanks

Add an EndFrame style (layout) as the last paragraph of the document.

-- 
José Abílio


Re: Trouble compiling PDF

2010-05-28 Thread Nikos Alexandris
M wrote:
> I have a problem when I try to compile my beamer document in PDF, it
> appears a popout and the message is something like this

> Fichier inexistant : /tmp/lyx_tmpdir.MT4489/lyx_tmpbuf9/Defensa_Tesis2.pdf
> I am using Kubuntu 10.04 and Lyx 1.6.6

Me too

> Any idea???

No. But I have seen this myself and I just reverted back the last 
modifications in the lyx document and then it worked. Unfortunately, I can't 
remember what was the change that caused the document not to compile.

I guess that the error is somehow misleading... ?
Nikos


Re: Trouble compiling PDF

2010-05-28 Thread Paul Rubin
M  gmail.com> writes:

> 
> I have a problem when I try to compile my beamer document in PDF, it appears a
popout and the message is something like this 
> 
> Fichier inexistant : /tmp/lyx_tmpdir.MT4489/lyx_tmpbuf9/Defensa_Tesis2.pdf

The message just means that the PDF file was not created; it says nothing about
what went wrong.  Things to try:

1.  Look at Document > LaTeX Log and see if you can find an error message.

2.  Export the document using File > Export > LaTeX (pdflatex), open a terminal,
run pdflatex against the .tex file, and look for error messages.

/Paul



Re: Trouble compiling PDF

2010-05-28 Thread M
Paul Rubin  msu.edu> writes:

>
> 1.  Look at Document > LaTeX Log and see if you can find an error message.
>
> 2.  Export the document using File > Export > LaTeX (pdflatex), open a
terminal,
> run pdflatex against the .tex file, and look for error messages.
>

Here it's the error. How can solve it???

Runaway argument?
 \end {document}
! File ended while scanning use of \@@lyxplainframe.

\par
<*> Defensa_Tesis2.tex

I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.

! Emergency stop.
<*> Defensa_Tesis2.tex


Re: Trouble compiling PDF

2010-05-28 Thread José Matos
On Friday 28 May 2010 17:08:53 M wrote:
> Here it's the error. How can solve it???
> 
> Runaway argument?
>  \end {document}
> ! File ended while scanning use of \@@lyxplainframe.
> 
> \par
> <*> Defensa_Tesis2.tex
> 
> I suspect you have forgotten a `}', causing me
> to read past where you wanted me to stop.
> I'll try to recover; but if the error is serious,
> you'd better type `E' or `X' now and fix your file.
> 
> ! Emergency stop.
> <*> Defensa_Tesis2.tex

Add an EndFrame style (layout) as the last paragraph of the document.

-- 
José Abílio


Re: Trouble compiling PDF

2010-05-28 Thread M
José Matos  fc.up.pt> writes:


> 
> Add an EndFrame style (layout) as the last paragraph of the document.
> 


Yeah it really works!!!

Thanks!





LyTero and LyX 2

2010-05-28 Thread Rob Oakes
Dear LyX Users,

I've been toiling away on a book chapter about Reference Managers and 
Cite-While-You-Write software and I've run into a bit of a snag.  Does anyone 
know if Lytero currently supports the new version of LyX?  Whenever I try and 
use it (regardless of platform), it says that it is unable to either locate the 
LyX pipe or that it is unable to find the bibliography style.

I'm just wondering if anyone has had success getting it to work with one of the 
alpha builds of LyX or with the SVN versions.

Cheers,

Rob Oakes

Re: Wrap of long strings

2010-05-28 Thread Rainer Dorsch
Am Donnerstag, 27. Mai 2010 schrieb Liviu Andronic:
> On 5/27/10, Rainer Dorsch  wrote:
> >  in some parts of a document I have texts with long words (e.g. directory
> >  names, etc.), which I want to wrap whenever I reach \textwidth (even in
> > the middle of a word). Has anybody a suggestion how to do that
> > efficiently for a limited small parts in a document? I would even be
> > happy to just mark the word, that it can be broken up at any place
>
> One thing to is Insert > Formatting > Hyphenation point, which will be
> used if needed.

Thanks for that hint. I went with the "special character" "breakable slash".

Rainer


-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


signature.asc
Description: This is a digitally signed message part.


Quotations after Headings

2010-05-28 Thread iustifico
In some books sometimes the author writes the Titel of a Topic, then under the 
titel in italic appears a nice slogan or citation of a famous person. I find 
this kind of nice. Is there a way to manage that in Lyx? I mean is there 
perhaps a builtin method, or do I have just to write some text and align it to 
the right and set it italic?

e.g.:


1. This is a title of a topic Titel

Though this be madness, yet there is method 
in't.
- Shakespeare, William (1564-1616)

Start of the Chapter...


Greatings,
iustifico



Re: Quotations after Headings

2010-05-28 Thread Rich Shepard

On Fri, 28 May 2010, iustifico wrote:


In some books sometimes the author writes the Titel of a Topic, then under
the titel in italic appears a nice slogan or citation of a famous person.
I find this kind of nice. Is there a way to manage that in Lyx? I mean is
there perhaps a builtin method, or do I have just to write some text and
align it to the right and set it italic?


  Look in The LaTeX Companion, Second Edition. There is a package for that
but I don't recall the name off the top of my head.

Rich


Re: Re: in Lyx-Code quote, double quote, and back-tic not as expected.

2010-05-28 Thread Todd Denniston
Paul Rubin wrote, On Fri, 28 May 2010 15:35:16 + (UTC):
> Try the following:
> 
> 1. In the preamble, \usepackage{textcomp}.
> 
> 2. Rather than LyX-Code, Insert > Program Listing and paste the code in there.
> 
> 3. Right click anywhere in the listing, pick Settings..., go the Advanced tab,
> and insert columns=fullflexible and upquote=true.  The former gets rid of
> kerning and the latter gets you the backtick character.  (The vertical quote
> seems to take care of itself.)
> 
> /Paul
> 
> 

Thanks, I'll give those a try as soon as I get back to _that_ document.

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter


Re: Save Date vs. Print Date

2010-05-28 Thread stefano franchi
On Fri, May 28, 2010 at 5:33 AM, Daniel Lohmann <
daniel.lohm...@informatik.uni-erlangen.de> wrote:

>
> On 28.05.2010, at 00:30, Tim Wescott wrote:
>
>
> Assuming you are compiling with pdftex as backend (which is most probably
> the case, as all more or less recent LaTeX-Distributions use it by default
> -- even when compiling to dvi), you can use the  \pdffilemoddate{}
> built-in command to retrieve the "last modified" date of .
>
> LyXically and applied for the own source file this comes down to the
> following two lines, which should be inserted into your document's preamble:
>
> \def\parsedate #1:20#2#3#4#5#6#7#8\empty{20#2#3/#4#5/#6#7}
> \date{\expandafter\parsedate\pdffilemoddate{\jobname.tex}\empty}
>
> (You can alter the display format, e.g., to use full stops instead of
> hyphens as separators, by modifying the \empty{} part of the first line.
>
>
Nice trick. But wouldn't the  final result be identical to the print date,
since pdftex checks the modification date of a tex file created on the fly
by lyx at print time? Or there is something more involved I don't
understand?

Cheers,

Stefano




-- 
__
Stefano Franchi
Department of Philosophy   Ph:   (1) 979 862-2211
Texas A University Fax: (1) 979 845-0458
College Station, Texas, USA


Re: Spurious '}'

2010-05-28 Thread Tim Cook
On Fri, 2010-05-28 at 04:19 +0200, Uwe Stöhr wrote:
> 
> Please send the next time a _small_ LyX example file.

Okay.  I wasn't sure WHERE the actual error was though. 

> 
> The bug occurs because you sometimes set the tables as being part of the 
> paragraph headings. 
> Sometimes you also set the tables as description - which could cause problems 
> and is senseless. To 
> fix this, set the cursor in front of the tables and select the standard 
> environment.
> Attached is an excerpt of your document where I fixed this accordingly.

Thank you.  Of course the paragraph settings to anything other than
Standard was inadvertent. But I would have never looked for that as the
problem.

Thank you very much for your help and your time troubleshooting this.
Another great contribution to the spread of open source/open
content.  :-)

Cheers,
Tim



-- 
***
Timothy Cook, MSc

LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook 
Skype ID == (upon request)
Academic.Edu Profile: http://uff.academia.edu/TimothyCook

You may get my Public GPG key from  popular keyservers or
from this link http://timothywayne.cook.googlepages.com/home 



signature.asc
Description: This is a digitally signed message part


Help to create some custome made encironments in Lyx

2010-05-28 Thread Artimess
Could someone please either refer me to a how to do or show me how I can
build the following environment in Lyx.  They are borrowed from Ads-Wes.sty
Thanks,
Artimess
-

%

%% ENVIRONMENTS

%

%%

%% new environments, or new definitions of old ones

%%

%% - example : for displaying computer interaction

%% - wexample : as above, but full width

%% - cexample : as above, but centered

%% - pseudocode : for displaying pseudo-code

%% - outputstuff : for displaying computer output

%% - description : like description, but with equal left & right indents

%% - itemize : as above, for itemized lists

%% - enumerate : as above, for enumerated lists

%% - preface : for prefaces

%%

%%

%%

%% EXAMPLE environment

%%

\def\examplefont{\tb} %% font (& style) used for all example environments

\newdimen\exampletopsep %% white space to leave above an example

\exampletopsep\parskip

\def\example{\list{}{%

\topsep\exampletopsep

\rightmargin\leftmargin

\examplefont}

\item[]}

\let\endexample\endlist

%

%%

%% FULL WIDTH EXAMPLE ENVIRONMENT

%%

\def\wexample{\list{}{%

\topsep\exampletopsep

\leftmargin 0pt

\rightmargin \leftmargin

\examplefont}

\item[]}

\let\endwexample\endlist



%%

%% CENTERED EXAMPLE ENVIRONMENT

%%

\def\cexample{%

\begin{center}

\examplefont}

\def\endcexample{\end{center}}

%%%

%%

%% PSEUDO-PSUEDOCODE ENVIRONMENT

%%

%% usage:

%% \begin{pseudocode}

%% if (test clause) \\

%% \> action statement \\

%% else \\

%% \> alternative \\

%% endif

%% \end{pseudocode}

%% extra levels of indentation can be achieved with additional \>'s.

\def\pseudocode{\list{}{%

\topsep \exampletopsep

\rightmargin \leftmargin

\examplefont}

\item[]

\begin{tabbing}

\hskip 1cm \= \hskip 1cm \= \hskip 1cm \= \hskip 1cm \= \hskip 1cm \= \kill}

\def\endpseudocode{\endtabbing\endlist}

%%

%%

%% OUTPUTSTUFF ENVIRONMENT

%%

%% for displaying the output from computer interaction

\def\outputfont{\op} %% font to use for outputstuff

\newdimen\outputstufftopsep %% space to leave above outputstuff

\outputstufftopsep\parskip

\def\outputstuff{\list{}{%

\rightmargin \leftmargin

\topsep\outputstufftopsep

\outputfont}

\item[]}

\let\endoutputstuff\endlist

 %

%%

%% DESCRIPTION ENVIRONMENT

%%

%% redefine the `description' environment

%% to give equal right and left margins,

%% and parametize its topsep

\newdimen\lrdesctopsep %% space to leave above a description

\lrdesctopsep\parskip

\def\description{\list{}{%

\topsep\lrdesctopsep

\rightmargin\leftmargin

\itemindent -\leftmargin

\divide\itemindent by 2

\labelwidth\z@

\let\makelabel\descriptionlabel

}}

\let\enddescription\endlist



%%

%% ITEMIZED LIST ENVIRONMENT

%%

\def\itemize{%

\ifnum \...@itemdepth >3%

\...@toodeep%

\else%

\advan...@itemdepth \...@ne%

\ed...@itemitem{labelitem\romannumeral\the\@itemdepth}%

\list{\csna...@itemitem\endcsname}%

{\def\makelabel##1{\hss\llap{##1}}%

\rightmargin\leftmargin}%

\fi}

%%%

%%

%% ENUMERATED LIST ENVIRONMENT

%%

\def\enumerate{%

\ifnum \...@enumdepth >3%

\...@toodeep%

\else

\advan...@enumdepth \...@ne%

\ed...@enumctr{enum\romannumeral\the\@enumdepth}%

\list{\csname lab...@enumctr\endcsname}%

{\usecounte...@enumctr}%

\def\makelabel##1{\hss\llap{##1}}%

\rightmargin\leftmargin}%

\fi}

%%%


Justifying figures to outer margin

2010-05-28 Thread george legge
In LyX memoir class, 2-sided, single column, how can I place figures so that
their outer edges line up with the outer edge of a wide (outer margin)? With
figures 1.2cm from the edge of the page, they then visually define the wide
outer margin. I want the captions (without caption numbers printed) placed
on the inside of the figures or, for wide figures, in the wide margin under
the figure.

I tried inserting the figure in a float, which then floats to the top of a
page, as desired. However the figure caption appears always on the left and
is justified to the left margin of the text, irrespective of whether the
page is recto or verso. The figure just gets pushed right in response to the
length of the caption. I need the caption on the “inside”, whether that is
left or right. If the caption is below the figure, the figure can be left or
right justified, but only to the text – not to the outer margin. How do I
get justification of the figure to the outer margin – not to the text?

Whether I set this up in LyX, in the LaTeX preamble or in TeX code, I feel
that it should be straightforward and probably a common layout; but I cannot
find the right documentation.

Any advice would be greatly appreciated.
Cheers, George (Legge)


latex_con_lyx

2010-05-28 Thread Artimess
Does anyone have access to the source of latex_con_lyx.pdf?  I like to learn
how the author created code segments of the following form:

Thanks in advance

Artimess


Re: Save Date vs. Print Date

2010-05-28 Thread Daniel Lohmann

On 28.05.2010, at 21:24, stefano franchi wrote:

> 
> 
> On Fri, May 28, 2010 at 5:33 AM, Daniel Lohmann 
>  wrote:
> 
> On 28.05.2010, at 00:30, Tim Wescott wrote:
> 
> 
> Assuming you are compiling with pdftex as backend (which is most probably the 
> case, as all more or less recent LaTeX-Distributions use it by default -- 
> even when compiling to dvi), you can use the  \pdffilemoddate{} 
> built-in command to retrieve the "last modified" date of .
> 
> LyXically and applied for the own source file this comes down to the 
> following two lines, which should be inserted into your document's preamble:
> 
> \def\parsedate #1:20#2#3#4#5#6#7#8\empty{20#2#3/#4#5/#6#7}
> \date{\expandafter\parsedate\pdffilemoddate{\jobname.tex}\empty}
> 
> (You can alter the display format, e.g., to use full stops instead of hyphens 
> as separators, by modifying the \empty{} part of the first line.
> 
> 
> Nice trick. But wouldn't the  final result be identical to the print date, 
> since pdftex checks the modification date of a tex file created on the fly by 
> lyx at print time? Or there is something more involved I don't understand?

Stefano, you are right, of course!

We need the path to the LyX-File, not to the generated .tex file:

\date{\expandafter\parsedate\pdffilemoddate{/Users/lohmann/test.lyx}\empty}

However, I would prefer not to hard-code the absolute path to the LyX file. 
Fortunately, LyX defines \in...@path in the preamble as the file path to the 
LyX-file directory:

\def\in...@path{{/Users/lohmann//}}

However, the following does /not/ work:

\date{\expandafter\parsedate\pdffilemoddate{\in...@path\jobname.lyx}\empty}

Apparently, the problem is the double curly braces that LyX uses in the 
definition of \in...@path and that somehow influence the TeX-internal scanning; 
with the following definition it /would/ work: 

\def\in...@path{/Users/lohmann//}

Does anybody know, how to expand \in...@path in a way that the double curly 
braces do not cause these troubles?

 Daniel

Re: Save Date vs. Print Date

2010-05-28 Thread Daniel Lohmann

>> Nice trick. But wouldn't the  final result be identical to the print date, 
>> since pdftex checks the modification date of a tex file created on the fly 
>> by lyx at print time? Or there is something more involved I don't understand?
> 
> Stefano, you are right, of course!
> 
> We need the path to the LyX-File, not to the generated .tex file:
> 
> \date{\expandafter\parsedate\pdffilemoddate{/Users/lohmann/test.lyx}\empty}
> 
> However, I would prefer not to hard-code the absolute path to the LyX file. 
> Fortunately, LyX defines \in...@path in the preamble as the file path to the 
> LyX-file directory:
> 
> \def\in...@path{{/Users/lohmann//}}
> 
> However, the following does /not/ work:
> 
> \date{\expandafter\parsedate\pdffilemoddate{\in...@path\jobname.lyx}\empty}
> 
> Apparently, the problem is the double curly braces that LyX uses in the 
> definition of \in...@path and that somehow influence the TeX-internal 
> scanning; with the following definition it /would/ work: 
> 
> \def\in...@path{/Users/lohmann//}
> 
> Does anybody know, how to expand \in...@path in a way that the double curly 
> braces do not cause these troubles?


I have found the xstring package, which provides a \StrRemoveBraces command 
that helps here:

\usepackage{xstring}
\strremovebraces{\in...@path\jobname.lyx}[\lyxfilepath]
\def\parsedate #1:20#2#3#4#5#6#7#8\empty{20#2#3/#4#5/#6#7}
\date{\expandafter\parsedate\pdffilemoddate{\lyxfilepath}\empty}

Attached is a .lyx-file that demonstrate this.

Nevertheless, I would prefer a solution that does not employ xstring.

Daniel




moddate.lyx
Description: Binary data


Re: Help to create some custome made encironments in Lyx

2010-05-28 Thread Paul Rubin
Have a look at the LyX Customization manual (Help > Customization), section
5.2.1, and then take a peek at some of the .module files in the LyX layout
folder to see some examples.  Basically, you define the environments in a module
(or modules), including the LaTeX command you will use to invoke the
environment, any LaTeX code needed to define that command (to be inserted into
the preamble), and details of how LyX should display the environment.

/Paul



Re: Justifying figures to outer margin

2010-05-28 Thread Julien Rioux

On 28/05/2010 5:09 PM, george legge wrote:

In LyX memoir class, 2-sided, single column, how can I place figures so that
their outer edges line up with the outer edge of a wide (outer margin)? With
figures 1.2cm from the edge of the page, they then visually define the wide
outer margin. I want the captions (without caption numbers printed) placed
on the inside of the figures or, for wide figures, in the wide margin under
the figure.

I tried inserting the figure in a float, which then floats to the top of a
page, as desired. However the figure caption appears always on the left and
is justified to the left margin of the text, irrespective of whether the
page is recto or verso. The figure just gets pushed right in response to the
length of the caption. I need the caption on the “inside”, whether that is
left or right. If the caption is below the figure, the figure can be left or
right justified, but only to the text – not to the outer margin. How do I
get justification of the figure to the outer margin – not to the text?

Whether I set this up in LyX, in the LaTeX preamble or in TeX code, I feel
that it should be straightforward and probably a common layout; but I cannot
find the right documentation.

Any advice would be greatly appreciated.
Cheers, George (Legge)



Hi,

I am not completely clear on what you want to accomplish, but you might 
want to have a look at the sidecap package [1]. I wrote a minimalistic 
module to use the package in LyX [2]. Maybe that would help. Otherwise, 
sorry for the noise.


[1] http://www.ctan.org/tex-archive/help/Catalogue/entries/sidecap.html
[2] http://www.physics.utoronto.ca/~jrioux/resources/lyx/

--
Julien



Re: Justifying figures to outer margin

2010-05-28 Thread george legge
On Sat, May 29, 2010 at 8:33 AM, Julien Rioux wrote:
Hi,
I am not completely clear on what you want to accomplish, but you might want
to have a look at the sidecap package [1]. I wrote a minimalistic module to
use the package in LyX [2]. Maybe that would help. Otherwise, sorry for the
noise.

Thank you Julien for the prompt reply.
I have read your documentation.
Your package does allow figures to move into the margin and captions to be
placed on either side.
But it does not appear to tackle the major problem, which is:
How to get figures (of all widths) to justify to a boundary several cm
outside the text edge.

George


Re: Save Date vs. Print Date

2010-05-28 Thread Pavel Sanda
Tim Wescott wrote:
> But I vastly prefer to insert my own date, or to list the save date of  
> the file -- it just makes more sense for tracking changes.

it should not be hard to make inset info for file-date as we have for 
file-name/dir.
feel free to add it to bugzilla if it would solve your request.

pavel


Re: Justifying figures to outer margin

2010-05-28 Thread Uwe Stöhr

Am 29.05.2010 01:04, schrieb george legge:


But it does not appear to tackle the major problem, which is:
How to get figures (of all widths) to justify to a boundary several cm
outside the text edge.


Use a wrapped float. Its option "Overhang" is exactly what you need. Attached 
is a LyX example file.
For more infos about wrapped floats have a look at sec. 3.2.2 "Wrap Floats" of the EmbeddedObjects 
manual that you find in LyX#s Help menu.


regards Uwe


Figure-margin-protrude.lyx
Description: application/lyx


Re: latex_con_lyx

2010-05-28 Thread Uwe Stöhr

Am 28.05.2010 23:12, schrieb Artimess:


Does anyone have access to the source of latex_con_lyx.pdf?  I like to learn
how the author created code segments of the following form:


Can you please be more specific. What do you want to know? Where have you fond the file 
latex_con_lyx.pdf?


regards Uwe


Re: latex_con_lyx

2010-05-28 Thread Francisco J . Ruiz-Ruano Campaña
Hi!

LaTeX con LyX is an idea of Bioinformatiquillo (my blog).

http://bioinformatiquillo.wordpress.com/manual-latex-con-lyx/

If we are interesting in it,  we can contat with me in this page.

Bye.

On Sat, May 29, 2010 at 3:13 AM, Uwe Stöhr  wrote:
> Am 28.05.2010 23:12, schrieb Artimess:
>
>> Does anyone have access to the source of latex_con_lyx.pdf?  I like to
>> learn
>> how the author created code segments of the following form:
>
> Can you please be more specific. What do you want to know? Where have you
> fond the file latex_con_lyx.pdf?
>
> regards Uwe
>



-- 
Más allá de la confusión, persiste la duda.