Re: href for footnote / endnote

2012-11-11 Thread Richard Heck

On 11/10/2012 02:54 AM, Andreas Paeffgen wrote:

On 2012-11-09 15:49:11 +, PhilipPirrip said:


On 11/09/2012 04:05 PM, Andreas Paeffgen wrote:

Hi Philip,
that works, but i do not want to insert manual labels and references. I
just want the footnotes to be klickable.


The footnotes in my example are clickable even without using labels.
What version of LyX are you using. Can you upload your minimal 
example that does (not) work.


i attached one example with modifications to the labels (deleted) and 
my configuration: module footnote to endnote  and documenttyp 
koma_book. Also is your example attached, where only the module 
footnote to endnote  and endnote is added.  Deleting the endnote 
module still breaks hyperref.



It seams that the module footnote to endnote breaks the hyperref 
function.


The footnote example without the labels and no module  worked properly.

Is it a lyx or latex problem? Any further suggestions?

I'm not sure it's really either, just a limitation. The hyperref stuff 
doesn't work with endnotes, so far as I know.


Richard



Re: Converting tables to HTML

2012-11-11 Thread Richard Heck

On 11/11/2012 10:36 AM, Myriam Abramson wrote:

I am exporting LyX document to html in order to convert them to
Word. Everything works fine except for the tables. Any ideas on how to
export those properly?


Are you using File>Export>HTML or File>Export>LyXHTML?

Richard



Re: LyX 2.0.5 & View Source

2012-11-09 Thread Richard Heck

On 11/09/2012 05:17 PM, Andrew Parsloe wrote:

I've just installed LyX 2.0.5 (Windows Vista).

The updating of View Source is a definite plus, with only the relevant 
formats now listed in the Format box, and both LyX's own format and 
plain text included in the options -- both of which I nagged for, so 
thank you.


However I note that if I select, say, plain text in the Format box, 
and then move the focus back to the main window, the entry in the 
Format box immediately jumps back to Default, even though it is still 
plain text being shown in the "LaTeX Source" window. This looks like a 
(little) bug to me. (And is "LaTeX Source" the right name? Perhaps 
just "Source" or "Source Code"? It is after all "View Source" rather 
than "View LaTeX Source" in the menu.)


I've seen this bug, but thought I'd fixed it. Apparently not. Please 
file a bug report, and I'll look at it again.


Richard



Re: href for footnote / endnote

2012-11-09 Thread Richard Heck

On 11/09/2012 10:05 AM, Andreas Paeffgen wrote:

On 2012-11-09 14:43:45 +, PhilipPirrip said:


Does the attached example work for you?




Hi Philip,
that works, but i do not want to insert manual labels and references. 
I just want the footnotes to be klickable. In a printed document it 
does not mater, but in a ebook /pdf it is more comfortable.


Do you have any suggestion how to achieve that in a preamble comand? 
Any other global document options i set the same to yours, but that 
did not work.



This works for me.

rh



fn.lyx
Description: application/lyx


Re: href for footnote / endnote

2012-11-09 Thread Richard Heck

On 11/09/2012 09:03 AM, Andreas Paeffgen wrote:
Is there a possibilty to get the footnote / endnote numbers in a pdf 
document as links?


Hyperref does this, I believe. You can turn it on under 
Document>Settings>PDF Options.


rh



Re: \includegraphics does not work the same from lyx1.3.3 to lyx2.0.2

2012-11-08 Thread Richard Heck

On 11/08/2012 06:03 AM, zia wrote:

Hi. I've using lyx 1.3.3 on linux and now I'm using lyx 2.0.2 on Ubuntu 10.4.
The trouble is that the same file is compiled on 1.3.3 and makes an error on
2.0.2. It seems that it is in the \includegraphics command. (Lyx 2.0.2
compiles the file when I take off this command).

Do you know what I can do?


Would you mind sending me the file? That's a lyx2lyx bug, then.

Regarding what to do, we may have failed to include \graphicx or 
something of the sort.


Richard



Re: "TeX capacity exceeded"

2012-11-06 Thread Richard Heck

On 11/06/2012 02:56 PM, Robert Adolle wrote:

I don't find "texmf.cnf" in /usr, /usr/bin, etc.
Where is it ? Is it the right file to raise tex capacity of LyX ?
Thanks you !


I'd suggest you try "locate texmf.cnf". Eg:

/home/rgheck/ > locate texmf.cnf
/usr/share/texlive/texmf/web2c/texmf.cnf

That said, unless you've got the sort of problem Yihui mentioned

rh



Re: TeX capacity exceeded

2012-11-05 Thread Richard Heck

On 11/05/2012 07:21 PM, Robert Adolle wrote:

Complete statement :

"tex capacity exceeded ; input stack size = 5000 ,

If you really absolutely need more capacity,

you can ask a wizard to enlarge me."
What wizard ? How to get it ?

If you really want to do this, then you should look in your texmf.cnf 
file and modify the value of stack_size. However, as several people have 
said, that may well not help. This error can be caused by all kinds of 
weird things that cause TeX to go into some kind of loop.


Richard



Re: TeX capacity exceeded

2012-11-05 Thread Richard Heck

On 11/05/2012 03:49 PM, Robert Adolle wrote:

How to extend this capacity ?
Thank you very much for help.

You almost never actually need to do this, and I'm not sure it's even 
possible. The problem is some kind of error elsewhere in the document.


Richard



Re: Lyx vs Kile

2012-11-05 Thread Richard Heck

On 11/05/2012 12:15 PM, Thomas Johansson wrote:

Hi
My name is Thomas, im helping a friend whos isn't particuarly home 
with computers even though he uses Mathematica and Kile on a Linux 
CentOS system to produce mathematical reports. He has some thoughts on 
moving to Win7 environment but he has concerns regarding the WYSIWYM 
editor, because he is used to struggle with the source based stuff :-)
So i short, are the any big differences regarding the potential output 
and/or limitations connected to the use of Lyx compared to for example 
the Kile editor?


In principle, you can do anything in LyX you can do in Kile, because you 
can enter raw LaTeX into LyX if you wish. But that's not really the 
point of LyX. Rather, this is:


How much time is it possible to save if the normal state of things is 
struggling with formatting, commands etc in the source based stuff?


Tons. The whole idea is to hide the details of LaTeX from the user, so 
that LyX works more like a traditional "word processor", though it's 
also different in lots of other ways.


Richard



Re: LaTeX Question

2012-10-29 Thread Richard Heck

On 10/29/2012 08:13 AM, Rob Oakes wrote:

Dear Group,

This is more of a LaTeX question rather than a LyX question, but I know
there are many LaTeX experts here, too, so here goes.

I'm currently working with a set of fluids equations which have both
velocity and volume terms. Given how frequently the variable v appears
in both (by convention), I would like to somehow distinguish them in my
notes. (Right now, I've been using an uppercase V for volume and
lowercase v for velocity.)

I've seen several texts use a variant of the V character, however, to
make the distinction more clear. Any idea how this might be done? What
is the best way to use a variant character in a math expression, or is
there a standard LaTeX symbol for volume? (Regular V appears to be used
for velocity, variant V for volume.)

I've already looked through the general LaTeX symbols list and the LyX
menus, but wasn't able to find the symbols used in the text.


Try looking here:
http://www.tex.ac.uk/tex-archive/info/symbols/comprehensive/symbols-a4.pdf

rh



Re: bibtex citation are converted to '?' in the output pdf

2012-10-26 Thread Richard Heck

On 10/26/2012 09:40 AM, Nasreddine Cheniki wrote:

hi,
I'm using Lyx on windows 7. I have a problem with bibliography.
I tried to add external .bib bibliography to my document, for the 
first time it worked, but now compiled pdf display question mark '?' 
instead of a citation.
Another strange problem, that the citation style display two list 
items : '[#ID]' and 'add to the bibliography only'.


Check Document>Settings>Bibliography, and see what style is selected. 
This is normal for numerical citations.


rh




Re: Endnote number size/position

2012-10-19 Thread Richard Heck

On 10/16/2012 01:05 PM, Maria Gouskova wrote:

Hi LyX users,

I have to turn all of my footnotes into endnotes and make their
numbers in the endnote section not be superscripts. Like this:

Notes

1. The text of the endnote

I loaded the Foot to End module, and added the following to the preamble:

\usepackage{endnotes}
\makeatletter
\renewcommand\@makeentext[1]{%
\noindent\makebox[0pt][r]{\@theenmark.\space}#1}
\makeatother
FootToEnd loads the endnotes package, so you shouldn't need to do so 
yourself.



This is on analogy with the suggestion on this page
http://www.latex-community.org/forum/viewtopic.php?f=44&t=5640&p=22079
, modified "fn" to "en" according to the endnotes.sty manual--which
says \makeentext is available, as is \theenmark. Yet LyX complains
that \@makeentext is undefined. I also tried some of the tricks
described here,

http://compgroups.net/comp.text.tex/style-of-endnotes/1909406

like \renewcommand\makeenmark{\theenmark. } in the preamble, and LyX
again says that \makeenmark is undefined. What am I doing wrong here?
Can you post a simple example file (handful of lines, few endnotes), 
including what you've tried to do? I can play with it then and try to 
make it work.


rh



Re: Please help!

2012-10-18 Thread Richard Heck

On 10/18/2012 08:06 AM, Scott Kostyshak wrote:

Hi jezzifer,

A couple of ideas:

1. did you subscribe with another email address that is being
forwarded to your gmail address?

2. gmail allows you to receive email from jez.z.if...@gmail.com . Did
you enter your address in a different way like this when you
subscribed?

To find out, search your inbox for the welcome message, which says
"Acknowledgment: I have added the address

"

and

"Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address."
I have found it impossible to unsubscribe one address from lyx-devel 
myself, though I have tried all of these options. I did manage to get 
that address off lyx-users.


Richard



Re: How to specify the style of the next environment in this environment?

2012-10-11 Thread Richard Heck

On 10/11/2012 05:45 PM, stefano franchi wrote:

On Thu, Oct 11, 2012 at 2:32 PM, Richard Heck  wrote:

On 10/11/2012 04:47 AM, Steve Litt wrote:

On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said:

Putting "LatexType Environment" in the LyX definition causes the next
paragraph to be of the same environment as the current one. This
doesn't give me the feature of the next paragraph after a DiaryHeader
being a DiaryParagraph, but at least consecutive DiaryParagraphs are
automatically the same style.


I don't think we have a "NextStyle" tag, but it would be useful. File
an enhancement request if you wish.

Richard,

is the behavior of the sectioning environments hardcoded then? They do
return to the "Standard" environment on the next paragraph, even
though the stdsections.inc layout file does not mention any
"NextStyle" tag, as you said.

That's just because it's the DefaultStyle. It's always the NextStyle, if 
you're not in an
environment or whatever. Environments always continue what was before; 
commands give you Default next.


rh



Re: footer on each page of a letter

2012-10-11 Thread Richard Heck

On 10/11/2012 04:37 PM, vv01f wrote:

Richard Heck  lyx.org> writes:

On 10/10/2012 10:43 AM, w01f  uni.de wrote:


\pagestyle{fancy}

I think the issue must be the page style on the first page of the
letter, which is probably empty or something like that. Not sure,
though.


I just know that \pagestyle{fancy} says to me it should not be
empty - how could that work out. Any method to falsify your
guess?
Here the complete source of a lyx file showing the (fancy)
footer only on 2nd page but now also if not commented out the
bottomtext on first page: http://pastebin.com/0e39JKmM
In the book class, for example, \chapter itself declares 
\pagestyle{empty}. It may

be that something similar happens on the first page of a letter.

rh



Re: How to specify the style of the next environment in this environment?

2012-10-11 Thread Richard Heck

On 10/11/2012 04:47 AM, Steve Litt wrote:

On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said:

Hi all,

My document class is created with a layout file derived from the Book
document class. This layout is over 600 lines long -- way too
long to change the parent document class and then change
everything else. My solution needs to keep the derivation from Book.

I need two environments with which to represent a diary. The first,
called diaryheader, has an indented first line and a large (5ex or so)
vertical space before it. The date and the following text goes on it.
Following paragraphs pertaining to the same date are in environment
diaryparagraph, which has no indentation or vertical space before it.
So far I made the following skeleton:

Style DiaryParagraph
CopyStyle Standard
End

Style DiaryHeader
CopyStyle DiaryParagraph
End

Later I'll be filling in the LyX and LaTeX to adopt the proper
appearance, and I'm not worried about that right now. But one thing
confuses me. How do I make sure that any DiaryHeader paragraph is
automatically, by default, followed by a DiaryParagraph paragraph, and
any DiaryParagraph paragraph is also followed, automatically by
default, by another DiaryParagraph paragraph?

I'm pretty sure this is possible because I could swear I've seen
paragraphs automatically followed by other types of paragraphs, or the
same type of paragraph.

So how do I do it?

Thanks

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance

Putting "LatexType Environment" in the LyX definition causes the next
paragraph to be of the same environment as the current one. This
doesn't give me the feature of the next paragraph after a DiaryHeader
being a DiaryParagraph, but at least consecutive DiaryParagraphs are
automatically the same style.


I don't think we have a "NextStyle" tag, but it would be useful. File
an enhancement request if you wish.

rh



Re: footer on each page of a letter

2012-10-11 Thread Richard Heck

On 10/10/2012 10:43 AM, w...@uni.de wrote:

I use dinbrief (version 0.2 from the lyx wiki pages) for German
business conversation and thought of just using the praeamble to set
the footer like this:


\usepackage{fancyhdr}
\pagestyle{fancy}

\fancyhf{}

\renewcommand\headrule{}
\renewcommand{\footrulewidth}{0pt}

\lfoot{{\scriptsize Name\\ Address \\ }}

\cfoot{{\scriptsize Bank Account Information \\ }}

\rfoot{{\scriptsize Contact Information \\ }}


But if I use this footers appear on 2nd page only, never on first.
If I use \bottomtext it only appears on first page. The combination
doesnt work either, \bottomtext is ignored when footers are used.
How to fix that?

I think the issue must be the page style on the first page of the
letter, which is probably empty or something like that. Not sure,
though.

rh



Re: Number of images in a Lyx file

2012-10-01 Thread Richard Heck
On 10/01/2012 02:08 PM, Frederick FN Noronha फ्रेड्रिक नोरोन्या *فريدريك 
نورونيا wrote:
Is there some way I could find out the number of images in a Lyx file, 
without haveing to physically count them? Thanks, FN



I'd try:

> grep "inset Graphics" yourfile.lyx | wc -l

rh



Re: Lyx on MacBook Pro retina

2012-09-28 Thread Richard Heck

On 09/28/2012 09:14 AM, Jacques Le Bourlot wrote:

Bonjour,

I just got a new MacBook Pro 15" with retina screen (which nobody care, I 
guess). However, LyX is one of the very few applications which does NOT scale to the 
new resolution. The result is both blurry and extremely ugly.

Is there a (VERY simple) way to fix that, or must I wait for an update?


I believe this is being fixed for 2.0.5. Stephan?

Richard



Re: Key - 1 [1]

2012-09-27 Thread Richard Heck

On 09/27/2012 01:12 PM, Les Denham wrote:

On Tue, 25 Sep 2012 17:37:06 -0400
Eric Weir  wrote:


The characters in the subject heading now appear in a LyX document
the bibliography between the heading and the bibliographic list. I do
not remember it being there before. When compiled "[1]" appears in
the same place in the compiled document. Again, I do not remember it
being there before.

If I delete the characters in the LyX document the heading is
deleted. How do I---can I?---get rid of these characters?


Eric,

I had exactly the same problem a few months ago, and I did eventually
fix it. But I was never sure exactly how I did it.

I think the problem arose when I did some cutting and pasting among the
references.

I'm guessing something is weird with Eric's file. Is it possible to post 
it? Or send

it to me privately?

rh



Re: Cross referencing problem

2012-09-26 Thread Richard Heck

On 09/26/2012 10:01 AM, Patrick Dempster wrote:

Hi,

I've recently had to reinstall Windows 7 onto my main home machine and 
in the process had to install the current versions of Lyx (2.0.4) and 
Miktex (2.9) on it. However it appears that in the process of 
reinstalling my system I've broken Lyx in an odd way, namely when I 
create a fresh "Article" style document cross-referencing in the 
output PDF or DVI for that matter doesn't work, even though it appears 
that the latex (when view source is enabled) is correct.


I was wondering if anyone can point me in the direction of what I've 
gotten wrong in my setup or what I'm missing? I've included a sample 
document which on this machine doesn't generate the cross referencing 
as expected.


The references aren't working because there's nothing there to 
reference. If you use a page reference, then you'll get something. Or if 
you put a section heading at the start of the file, then you'll get 
references to that.


rh



Re: where is the error?

2012-09-22 Thread Richard Heck

On 09/22/2012 04:09 AM, Jürgen Spitzmüller wrote:

Julia Schäfer wrote:

So please help me!!! How can I make Lyx guide me to the problem in the
document and show me at least the paragraph containing the errors again?

Do bisecting. Make a copy of your document, then cut off half, if the error
disappears, go on with the other half. If the error persists, again cut off
half. And so on until you can identify the culprit.
And I'd suggest you pay special attention to the preamble. Did you put 
anything there? Errors LyX can't "locate" are often before the document 
actually starts.


Richard



Re: Appendix in AMS book

2012-09-20 Thread Richard Heck

On 09/20/2012 08:09 AM, Sandor Szabo wrote:

Hi,

I use LyX 1.6.5 on Windows XP.
I use book(AMS) document class and
want to insert Appendix instead of Chapter.
How is it possible?


Go to Document, and choose "Start Appendix Here". Then
insert chapters, etc, as normal. They will be treated as
appendices. See the attached.

Richard



ap.lyx
Description: application/lyx


Re: Errors when opening LyX files? - caused by module?

2012-09-20 Thread Richard Heck

On 09/20/2012 07:32 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 20/09/12 13:23, Rainer M Krug wrote:

Hi

when I start LyX it restres the last session and everything looks fine, but in 
the terminal
from which I start LyX, I get abunch of errors:


LyX: Unknown InsetLayout tag [around line 21 of file
/tmp/lyx_tmpdir.T17549/convert_layout.h17549 current token: 'LabelType' 
context: ''] LyX:
Unknown InsetLayout tag [around line 22 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.h17549
current token: 'Static' context: ''] LyX: Unknown InsetLayout tag [around line 
34 of file
/tmp/lyx_tmpdir.T17549/convert_layout.h17549 current token: 'Align' context: 
''] LyX: Unknown
InsetLayout tag [around line 35 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.h17549 current
token: 'Center' context: ''] LyX: Unknown InsetLayout tag [around line 38 of 
file
/tmp/lyx_tmpdir.T17549/convert_layout.h17549 current token: 'OptionalArgs' 
context: ''] LyX:
Unknown InsetLayout tag [around line 39 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.h17549
current token: '0' context: ''] LyX: Unknown InsetLayout tag [around line 127 
of file
/tmp/lyx_tmpdir.T17549/convert_layout.h17549 current token: 'OptionalArgs' 
context: ''] LyX:
Unknown InsetLayout tag [around line 128 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.h17549
current token: '1' context: ''] LyX: Unknown InsetLayout tag [around line 31 of 
file
/tmp/lyx_tmpdir.T17549/convert_layout.L17549 current token: 'OptionalArgs' 
context: ''] LyX:
Unknown InsetLayout tag [around line 32 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.L17549
current token: '0' context: ''] LyX: Unknown InsetLayout tag [around line 44 of 
file
/tmp/lyx_tmpdir.T17549/convert_layout.L17549 current token: 'OptionalArgs' 
context: ''] LyX:
Unknown InsetLayout tag [around line 45 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.L17549
current token: '0' context: ''] LyX: Unknown InsetLayout tag [around line 57 of 
file
/tmp/lyx_tmpdir.T17549/convert_layout.L17549 current token: 'OptionalArgs' 
context: ''] LyX:
Unknown InsetLayout tag [around line 58 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.L17549
current token: '0' context: ''] LyX: Unknown InsetLayout tag [around line 70 of 
file
/tmp/lyx_tmpdir.T17549/convert_layout.L17549 current token: 'OptionalArgs' 
context: ''] LyX:
Unknown InsetLayout tag [around line 71 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.L17549
current token: '0' context: ''] LyX: Unknown InsetLayout tag [around line 83 of 
file
/tmp/lyx_tmpdir.T17549/convert_layout.L17549 current token: 'OptionalArgs' 
context: ''] LyX:
Unknown InsetLayout tag [around line 84 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.L17549
current token: '0' context: ''] LyX: Unknown InsetLayout tag [around line 96 of 
file
/tmp/lyx_tmpdir.T17549/convert_layout.L17549 current token: 'OptionalArgs' 
context: ''] LyX:
Unknown InsetLayout tag [around line 97 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.L17549
current token: '0' context: ''] LyX: Unknown InsetLayout tag [around line 109 
of file
/tmp/lyx_tmpdir.T17549/convert_layout.L17549 current token: 'OptionalArgs' 
context: ''] LyX:
Unknown InsetLayout tag [around line 110 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.L17549
current token: '0' context: ''] LyX: Unknown InsetLayout tag [around line 122 
of file
/tmp/lyx_tmpdir.T17549/convert_layout.L17549 current token: 'OptionalArgs' 
context: ''] LyX:
Unknown InsetLayout tag [around line 123 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.L17549
current token: '0' context: '']

Running: svn proplist "AS_BC_manuscrip.lyx">  
"/tmp/lyx_tmpdir.T17549/lyxvcout.S17549" LyX:
Unknown InsetLayout tag [around line 21 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.n17549
current token: 'LabelType' context: ''] LyX: Unknown InsetLayout tag [around 
line 22 of file
/tmp/lyx_tmpdir.T17549/convert_layout.n17549 current token: 'Static' context: 
''] LyX: Unknown
InsetLayout tag [around line 34 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.n17549 current
token: 'Align' context: ''] LyX: Unknown InsetLayout tag [around line 35 of file
/tmp/lyx_tmpdir.T17549/convert_layout.n17549 current token: 'Center' context: 
''] LyX: Unknown
InsetLayout tag [around line 38 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.n17549 current
token: 'OptionalArgs' context: ''] LyX: Unknown InsetLayout tag [around line 39 
of file
/tmp/lyx_tmpdir.T17549/convert_layout.n17549 current token: '0' context: ''] 
LyX: Unknown
InsetLayout tag [around line 127 of file 
/tmp/lyx_tmpdir.T17549/convert_layout.n17549 current
token: 'OptionalArgs' context: ''] LyX: Unknown InsetLayout tag [around line 
128 of file
/tmp/lyx_tmpdir.T17549/convert_layout.n17549 current token: '1' context: ''] 
This is dvips(k)
5.992 Copyright 2012 Radical Eye Software (www.radicaleye.com) ' TeX output 
2012.09.20:1319' ->
0lyxpreview.ps (->  
0lyxpreview.001)



  
[1] GPL
Ghostscript 9.05: Unrecoverable error, exit code 1


Any ideas what is c

Re: Export to lyxhtml - format of \todo items

2012-09-19 Thread Richard Heck

On 09/19/2012 10:18 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 19/09/12 16:16, Richard Heck wrote:

On 09/19/2012 06:29 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE- Hash: SHA1

On 19/09/12 11:45, Jürgen Spitzmüller wrote:

Rainer M Krug wrote:

Hi

I have a document which contains todo items I would like to format \todo items 
not in

div.flex_todo_inline_ { font-family: monospace; } div.flex_todo_margin_ { 
font-family:
monospace; }

as defined in the resulting xhtml, but formated as e.g. bold and in red.

How can I define these formats so that they are automatically used, or do I 
have to do
this manually?

In the todosalternate module, you can define the XHTML output of the insets via 
the
HTMLStyle tag. I.e., add something such as the following to the respective style
definitions:

HTMLStyle div.flex_todo_inline_ { border: 2px solid black; padding: 1ex; 
margin: 1ex;
background-color: #F0F0F0; font-weight: bold; font-family: serif; font-variant: 
normal;
font-style: normal; } EndHTMLStyle

(not tested)

And works like a charm

May I suggest to add this to the todosalternate module layout?

Where is that?

Sorry:

http://wiki.lyx.org/Layouts/Modules#toc2

and the actual layout file

http://wiki.lyx.org/uploads/Modules/todonotesalternate.module

In that case, you can update it, though I guess we have to figure out 
the upload problem


Richard



Re: import ms word

2012-09-19 Thread Richard Heck

On 09/19/2012 08:05 AM, Csikos Bela wrote:

Hello:

In openSUSE 11.2 system lyx 2.0.2 had File->
Import->MS Word option. In openSUSE 12.1 lyx
2.0.4 this option is missing.
Was it removed from lyx, or does it require some
dependency?

Seems to require wvCleanLatex.

rh



Re: Export to lyxhtml - format of \todo items

2012-09-19 Thread Richard Heck

On 09/19/2012 06:29 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 19/09/12 11:45, Jürgen Spitzmüller wrote:

Rainer M Krug wrote:

Hi

I have a document which contains todo items I would like to format \todo items 
not in

div.flex_todo_inline_ { font-family: monospace; } div.flex_todo_margin_ { 
font-family:
monospace; }

as defined in the resulting xhtml, but formated as e.g. bold and in red.

How can I define these formats so that they are automatically used, or do I 
have to do this
manually?

In the todosalternate module, you can define the XHTML output of the insets via 
the HTMLStyle
tag. I.e., add something such as the following to the respective style 
definitions:

HTMLStyle div.flex_todo_inline_ { border: 2px solid black; padding: 1ex; 
margin: 1ex;
background-color: #F0F0F0; font-weight: bold; font-family: serif; font-variant: 
normal;
font-style: normal; } EndHTMLStyle

(not tested)

And works like a charm

May I suggest to add this to the todosalternate module layout?

Where is that?

rh



Re: Structured Derivations

2012-09-18 Thread Richard Heck

On 09/18/2012 04:39 PM, Tilles, Joshua wrote:
Does anyone know anything about the fork of LyX for Structured 
Derivations? The research group driving Structured Derivations offers 
a version of LyX that's been extended to make working with proofs 
especially easy [here][imped.fi ] but it's only 
available as a Windows executable. I need something that will run on 
Mac or Linux, and I'm happy to build it on my own---I just can't 
figure out where to go to get more information.


In case it's relevant, I'm running LyX 2.0.4 on Mac OS X Mountain Lion.

The LyX license requires that any "derived work" be offered as source 
code. This would definitely count. I'd write these folks and ask them to 
provide you with the source. (Indeed, they really ought to have put it 
on the web.) If they refuse, please let us know, and we will contact 
them to inform them that they are in violation of the license.


Richard



Re: Separately export all child documents

2012-09-14 Thread Richard Heck

On 09/14/2012 03:13 AM, Tim Head wrote:

Hello all,

I have a large document consisting of one master document and several
child documents. Is there a convenient way to export all child
documents to separate documents?

Currently I open each child document and export it to (say) pdf
separately. I then have chapter1.pdf, chapter2.pdf chapter3.pdf etc.
This is a bit tedious so I was wondering if there was a way to define
a shortcut to do this or use the lyx-server?

Personally, if I had to do this, I'd export the whole thing and then use 
pdftk to slice up the resulting pdf. I've attached a very simple script 
I have to do this kind of thing (just because I can never remember the 
pdftk syntax needed). Of course, the page numbers etc will be those in 
the whole document. But maybe that's better. This solution needs to have 
pdftk installed, though. I'll guess you can get it through MacPorts.


You could presumably also do something from the command line, e.g.:
for i in *.lyx; do lyx -e pdf2 $i; done
will export all the LyX files in the current directory to "PDF (pdflatex)".

There's a new buffer-forall LFUN, I believe, though only in trunk, that 
allows one to do something for every buffer from within LyX. But I don't 
think it will turn up in branch.


Richard

#!/bin/bash

INFILE="$1";
PAGES="$2";
OUTFILE="$3";

if [ -z "$OUTFILE" ]; then
  echo "pdfextract INFILE PAGES OUTFILE";
  exit 1;
fi

pdftk "$1" cat $2 output "$3"



Re: Lyx misplacing brackets when converting to latex, cannot produce pdf

2012-09-12 Thread Richard Heck

On 09/12/2012 01:48 PM, Christian Obst wrote:

Hi,

I have this strange problem. A document which was previously working
cannot be compiled anymore because latex complains about "unbalanced
brackets or parentheses in a foot- or endnote". If I manually convert
to .tex and look at the resulting file, I find passages like this:

texttexttext.%
\footnote{Texinfootnote.%
}

First, I dont understand why lyx is putting the percentage signs there,
they are regular footnotes, not comments. Also, I thought they
are supposed to xcomment out the rest of the line, not what is enclosed
between two of them. However, they leave one bracket out, so I think
this is what produces my error.
That is perfectly OK code. The %s do exactly what you say, so there's 
nothing unbalanced there (and nothing in that part of the LyX code has 
changed recently). The problem is surely elsewhere. I'd suggest you try 
bisecting: removing chunks until you get something that works, then 
adding stuff back, etc.


Richard



Re: Problem with citation

2012-09-12 Thread Richard Heck

On 09/12/2012 10:56 AM, Harold Mouras wrote:

Dear Lyx Users,
I have a Lyx file with citations and .bib bibliography. I just made 
citations in the main text and used natbib as usual. However, when 
compiling the file, the following error message is coming back for 
several references:



...emph{affectives \citep{Panksepp:2003uq}}

, s'intressant aux

The control sequence marked  should

not appear between \csname and \endcsname.



Is the problem that it is emphasized?

Richard



Re: Getting table of TODOS into lyxhtml export?

2012-09-06 Thread Richard Heck

On 09/06/2012 09:44 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I am using the "ToDo Notes Environments" module and export to LyXHTML, but the 
table of ToDos does
not show (and the actual todo notes are in courier, which is fine, but a 
different colour and in a
box as in the PDF export would be nicer).

Is there any way of getting the table of ToDos into the LyXHTML?

I am guessing that there is no XHTML-related code in the module. I'll 
try to have a look.


Richard



Re: Change Bibliography style and name

2012-09-05 Thread Richard Heck

On 09/05/2012 07:09 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

In the attached file, I would like to do two things:

1) replace the automatic name "Bibliography" with "Literature" and

At the very beginning of the document:
\addto\captionsenglish{\renewcommand\bibname{Literature}}
You have to do it this way because you are using babel.


2) change the style to "Section"

To do that, you will need to copy the declaration of \thebibliography 
from book.cls to your preamble, change it from \newenvironment to 
\renewenvironment, and change the line that makes it a chapter* to one 
that makes it a section*.


rh



Re: ! File ended while scanning use of \@@BOOKMARK

2012-09-02 Thread Richard Heck

On 09/02/2012 02:44 PM, Imran wrote:

Helloo i am new to using latex in linux. I don't know much about it i have come
accross following problem and i don't know why it suddenly happend like this .

earlier when i was running the same file it wasn\t giving me any error but now
when i am compiling my document it gives me following message i have tried to
exclude all chapters but still it gives me the same error :(


Runaway argument?
{section.2
! File ended while scanning use of \@@BOOKMARK.

 \par
l.49 \begin{document}
///

how can i solve it ?

Please post the smallest version of the file that still causes the error.

rh



Re: Alphabetically sorting a table in Lyx

2012-09-02 Thread Richard Heck

On 09/02/2012 09:52 AM, Marc Wijnand wrote:

Hello

Is it possible to sort a table alphabetically in Lyx? This seems to be a 
problem according to the internet.
I can't copy the table to MS Excel to sort it there, since it contains ERT.


There's no automated way to do this, so far as I know.

rh



Re: Export LyX notes/comments

2012-08-28 Thread Richard Heck

On 08/28/2012 11:54 AM, Michael Bach wrote:

On 8/28/2012 4:15 PM, Richard Heck wrote:


Just create a new inset by copying, e.g., the comment inset, and then
changing what needs changing. E.g., change the LaTeXName to "note", and
the name of the inset to "My Note".



[snip]

Then I tried to create an inset:

InsetLayout "Note:MyNote"
  LyXType custom
  LabelString"MyNote:"
  Decorationclassic
  MarginDynamic
  LatexTypecommand
  LatexNamenote[item]
  NextNoIndent1
  LeftMarginMMM
  RightMarginMMM
  AlignBlock
  AlignPossibleBlock, Left, Right, Center
  LabelSep:x
  LabelFont
ShapeItalic
SeriesBold
Colorcollapsable
  EndFont

  TextFont
Colormagenta
ShapeItalic
  EndFont
End

But I cannot find it under Insert > Note > ...


It will be under Insert>Custom Inset.

rh



Re: Export LyX notes/comments

2012-08-28 Thread Richard Heck

On 08/28/2012 09:23 AM, Michael Bach wrote:

Dear LyX Users and Developers,

I understand that notes are only for the LyX documents, not the 
exported pdf documents. The comment inset exports to comment 
environments in tex.


I am using the presentation (beamer) class and wondered how to use one 
of the insets to export to a \note macro. Did someone set that up 
already? This would be nice because of the option to include the notes 
in the export if one wants to and also to e.g. use the nice enumerate 
markup in LyX.


Just create a new inset by copying, e.g., the comment inset, and then 
changing what needs changing. E.g., change the LaTeXName to "note", and 
the name of the inset to "My Note".


Richard



Re: Trouble with Lyx: Latex Error

2012-08-22 Thread Richard Heck

On 08/22/2012 07:17 PM, Daniel Schuster wrote:

Hi,

I discovered Lyx a week ago and I
am fascinated about the effectiveness
and simplicity.

But there are two things that make working with
it very frustrating.

First thing is that I recieve this error message
when I use some Layout options an click in the PDF
preview button.

Latex Error: document style/class '*' error

The other is with floating graphics. When I paste
them Lyx says that it is about to convert them...
When i run the PDF only half of the graphic is in
the document and it covers Text.


In both cases, you will need to be a little more specific before
we will be able to help you. Which "Layout options" give you this
error specifically?

Better yet, can you post an example file (preferably as small as
possible, so as not to confuse matters) that causes these errors?

Richard



Re: Is there a way to change the header font to san serif?

2012-08-17 Thread Richard Heck

On 08/17/2012 01:06 PM, Daisuke Koya wrote:

Hello all,

I am using LyX 2.0.4 on Mac OS 10.7.4.

I am using the "fancy" headings style to display headings (LyX: Document Settings >> 
Page Layout >> Headings style).

I'd like to know whether the header font can be changed from the default serif 
font to a san-serif one.
Is this possible, and if so how is it done?
Yes, just use the corresponding LaTeX command, in this case, \sffamily, 
or \textsf, depending.


rh



Re: enumitem.module in Lyx 2

2012-08-14 Thread Richard Heck

On 08/14/2012 02:22 AM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 3:21 PM, Richard Heck  wrote:

On 08/13/2012 06:11 PM, Jane Shevtsov wrote:

Just to make sure I'm not doing anything stupid: the instructions say to
put the cursor after the blue number in the enumerate-resume environment and
choose Insert > Short Title. There's actually a gap between the number and
the cursor, right?


So you are trying to add a "short title" in the enumerate-resume
environment? In that case, the patch Guenter had posted doesn't address this
issue, but rather something to do with Labeling.

If you look at enumitem.module, you'll see that it explicitly sets
OptionalArgs to 0 for the Enumerate-Resume environment. This is because we
are in effect forcing the short title to be "resume", which we have to do to
get the numbering to resume. There's no way at present to add anything else
to the short title.

Where are these instructions you mentioned?

The instructions I refer to are the ones at
<http://wiki.lyx.org/Tips/Enumitem>. The relevant part is:

"Start your list, break it to insert some text, then start the list
again. This will restart the numbering a 1. Place the cursor after the
1., Select Insert>Short Title and put start=x in the red box, where x
is the number you wish to restart the list at. Instead of start=x you
can just type resume and it will resume the numbering."

This is all out of date. You can just choose Enumerate-Resume, and this 
happens automatically now. You don't need to add anything else.


I've updated the wiki.

Richard



Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/13/2012 06:11 PM, Jane Shevtsov wrote:
Just to make sure I'm not doing anything stupid: the instructions say 
to put the cursor after the blue number in the enumerate-resume 
environment and choose Insert > Short Title. There's actually a gap 
between the number and the cursor, right?


So you are trying to add a "short title" in the enumerate-resume 
environment? In that case, the patch Guenter had posted doesn't address 
this issue, but rather something to do with Labeling.


If you look at enumitem.module, you'll see that it explicitly sets 
OptionalArgs to 0 for the Enumerate-Resume environment. This is because 
we are in effect forcing the short title to be "resume", which we have 
to do to get the numbering to resume. There's no way at present to add 
anything else to the short title.


Where are these instructions you mentioned?

Richard



Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/13/2012 01:01 PM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 9:53 AM, Richard Heck  wrote:

On 08/13/2012 12:23 PM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 6:30 AM, Richard Heck  wrote:

On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck  wrote:

Find the enumitem.module file, and put
   OptionalArgs 1
into the appropriate place. You can find it by just looking through the
file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.


Is there more than one version of this file on your system? I.e., one in
the
LyX system directory and one in your user directory?

There only seems to be one. And I know Lyx is using the file I edited
because when I renamed it as an experiment and tried to include
enumitem in a document, I got an error message.


The attached works for me.

But not for me. Time to reinstall Lyx?
That's very strange. I guess you could try re-installing, but you might 
first try running from a terminal and seeing if you get some kind of 
error message when you try to use it.


Richard



Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/13/2012 12:23 PM, Jane Shevtsov wrote:

On Mon, Aug 13, 2012 at 6:30 AM, Richard Heck  wrote:

On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck  wrote:

Find the enumitem.module file, and put
  OptionalArgs 1
into the appropriate place. You can find it by just looking through the
file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.


Is there more than one version of this file on your system? I.e., one in the
LyX system directory and one in your user directory?

There only seems to be one. And I know Lyx is using the file I edited
because when I renamed it as an experiment and tried to include
enumitem in a document, I got an error message.


The attached works for me.

Richard

#\DeclareLyXModule[enumitem.sty]{enumitem}
#DescriptionBegin
# Controls the layout of enumerate, itemize, description, and list/labeling.
# See section Customized Lists of the User's Guide for a detailed description.
#DescriptionEnd
# Author: Günter Milde 
# 
# 2008-12-04 first published version.
# 2009-02-02 use name Labeling for "LyX-List/Labeling" list type,
#copy standard layout verbatim for failsave working with 
#both KOMA and non-KOMA document classes.
# 2011-01-12 bugfix: set elabeling label font to \normalfont.

Format 35

# The package enumitem provides user control over the layout of the three
# basic list environments: enumerate, itemize and description. It supersedes
# both enumerate and mdwlist (providing well-structured replacements for all
# their funtionality), and in addition provides functions to compute the
# layout of labels, and to ‘clone’ the standard environments, to create new
# environments with counters of their own.
#
# - fancy labels and fancy refs,
# - leftmargin, labelsep and labelwidth automatically set,
# - changes applied globally or only in one of the three
#   types or even in a single list (including topsep),
# - several description styles (which fix some bad spacing, too),
# - starting value and counter resuming,
# - trivlists properly formatted,
# - control on page breaking
#
# Styling the basic lists is possible 
#
# a) generally in the LaTeX preamble and 
# b) per environment with optional arguments
#
# See enumitem.pdf_ for details and examples.
#
# TODO: since version 2.0, enumitem supports "cloning" of lists.
#   Producing a labeling as clone of a description allows
#   Preamble-Styling specific to this list type.

AddToPreamble
\usepackage{enumitem}   % customizable list environments
\newlength{\lyxlabelwidth}  % auxiliary length 
EndPreamble


# Customisable Basic Lists
# 

# With enumitem, the three standard list environments take an optional
# argument. See enumitem.pdf_ for possible values.

IfStyle Itemize
OptionalArgs  1
End

IfStyle Enumerate
OptionalArgs  1
End

IfStyle Description
OptionalArgs  1
End


# Customisable LyX List
# -

Input stdlyxlist.inc

Style Labeling
LatexName elabeling
OptionalArgs  1
# FIXME This should probably be defined using \newlist instead
Preamble
% labeling-like list based on enumitem's description list with
% mandatory second argument (label-pattern):
\newenvironment{elabeling}[2][]%
{\settowidth{\lyxlabelwidth}{#2}
\begin{description}[font=\normalfont,style=sameline,
leftmargin=\lyxlabelwidth,#1]}
{\end{description}}
EndPreamble
End


# List Variants
# -
#
# Styles with pre-defined optional arguments for ease of use

Style Enumerate-Resume
CopyStyle Enumerate
LatexParam[resume]
OptionalArgs  0
# a blue label to indicate that this is not a WYSIWYG label
# because the numbering differs in the output
LabelFont
  Color blue
EndFont
End

# References
# --
#
# .. _enumitem.pdf:
#http://dante.ctan.org/CTAN/macros/latex/contrib/enumitem/enumitem.pdf



Re: enumitem.module in Lyx 2

2012-08-13 Thread Richard Heck

On 08/12/2012 10:29 PM, Jane Shevtsov wrote:

On Sun, Aug 12, 2012 at 9:56 AM, Richard Heck  wrote:

On 08/11/2012 08:44 PM, Jane Shevtsov wrote:

On Mon, Dec 12, 2011 at 12:37 AM, Guenter Milde 
wrote:

In my local ~/.lyx-svn/layouts folder, I have the previous version that
fully defines the Labeling style while the 2011-01-12 version seems to
inherit from stdlists.inc.

The following patch should fix the issue:

@@ -72,6 +72,7 @@ Input stdlyxlist.inc

   Style Labeling
  LatexName elabeling
+   OptionalArgs  1
  # FIXME This should probably be defined using \newlist instead
  Preamble
  % labeling-like list based on enumitem's description list with

How do I use this fix? Where do I put the code?


Find the enumitem.module file, and put
 OptionalArgs 1
into the appropriate place. You can find it by just looking through the
file.

I did that, but it doesn't help. I still can't use Insert Short Title,
despite restarting Lyx.

Is there more than one version of this file on your system? I.e., one in 
the LyX system directory and one in your user directory?


Richard



Re: enumitem.module in Lyx 2

2012-08-12 Thread Richard Heck

On 08/11/2012 08:44 PM, Jane Shevtsov wrote:

On Mon, Dec 12, 2011 at 12:37 AM, Guenter Milde  wrote:

In my local ~/.lyx-svn/layouts folder, I have the previous version that
fully defines the Labeling style while the 2011-01-12 version seems to
inherit from stdlists.inc.

The following patch should fix the issue:

@@ -72,6 +72,7 @@ Input stdlyxlist.inc

  Style Labeling
 LatexName elabeling
+   OptionalArgs  1
 # FIXME This should probably be defined using \newlist instead
 Preamble
 % labeling-like list based on enumitem's description list with

How do I use this fix? Where do I put the code?


Find the enumitem.module file, and put
OptionalArgs 1
into the appropriate place. You can find it by just looking through the 
file.


Richard



Re: 'Show changes in output' doesn't work

2012-08-11 Thread Richard Heck

On 08/11/2012 02:12 PM, Scott Kostyshak wrote:

From: Zohar [zoha...@yahoo.com]
Sent: Saturday, August 11, 2012 1:58 PM


I turned on the track changes, and I can see the changes tracking in the editor,
and when I click 'Show changes in output' the changes are still shown. I would
like lyx to track my changes without showing them to me (and clatter the 
editor).
What am I missing?

"Show changes in output" refers to, for example, the pdf output.

There is already a feature request for what you want, but I don't think it will 
be implemented in the near future (the ticket is 5 years old):
http://www.lyx.org/trac/ticket/4140
Vincent and I did some work on this, which can be found in our private 
repos on git.lyx.org. But then we both got busy with other things.


Richard



Re: List manipulations

2012-08-08 Thread Richard Heck

On 08/08/2012 06:38 PM, Andrew Parsloe wrote:
When working recently with some fairly long lists, in which sub-lists 
occurred within items, I found myself wanting to re-order some of the 
items. Okay, copy and paste did the trick, but it would be convenient 
to have buttons that would move an item (with its sub-items) up or 
down a list. There are already buttons to increase or decrease nesting 
depth. The extra up/down buttons would bring list manipulations into 
line with what is available for the sectioning hierarchy in the 
Outline window.



Please file an enhancement request, so this is not forgotten.

That said, isn't there some "move this paragraph up or down" function in 
LyX? If so, does it work here?


Richard



Re: Quotes begin with end quote. Why? What can I do about it?

2012-08-06 Thread Richard Heck

On 08/06/2012 01:20 PM, Eric Weir wrote:

On Aug 6, 2012, at 12:01 PM, Eric Weir wrote:


  I need a solution.

Suggestions on the Vim list lead me to this wikipedia article on the Option key. 
 With it's help I learned that 
Option+[ gives “ and Shitf+Option+[ gives ”.

I'd avoid this one, as you're now using Unicode, I believe, which can 
lead to other problems.



It's also been pointed out to me that pretty double quotes are entered in 
TeX/LaTeX by `` and ''. Petty quotes entered this way don't display in LyX but 
they compile.

This is probably the best way. It would then be easy, once the issue 
about Advanced F&R is resolved, to replace these by pretty quotes.


Richard



Re: Quotes begin with end quote. Why? What can I do about it?

2012-08-06 Thread Richard Heck

On 08/06/2012 12:01 PM, Eric Weir wrote:




I recommend to
check out the csquotes LaTeX package. This is not natively supported
by LyX but provides dynamic quotation marks.

I've skimmed the manual. Will take a closer look before I dump my next document 
in lyx. I need a solution. Strange to me that lyx is inflexible in this way.


There's nothing unusual about LyX here. If I take this
this is "a quote"
and paste it into LibreOffice, I get exactly that, despite the fact that 
typing a double quote there gives me an open or close quote, depending 
upon context. This is really correct behavior. LyX should not (and does 
not) prohibit you from entering the double quote character, if that is 
what you want to do. As well you might if you were entering lengths, say.


Richard



Re: Margins in LyX

2012-08-06 Thread Richard Heck

On 08/05/2012 10:26 PM, David L. Johnson wrote:

On 08/05/2012 10:19 PM, Irucka Embry wrote:

Hi, how are you?

How do I properly set different page margins in LyX?

For example, I have to have a specific top, bottom, left, and right 
margin for my Thesis and each margin is different.


Also, what does inner and outer margin mean?


This applies to double-sided documents, where you would want a larger 
"inner" margin to accommodate binding or stapling of the document



And for single-sided documents, the inner margin is the left margin.

Richard



Re: Quotes begin with end quote. Why? What can I do about it?

2012-08-04 Thread Richard Heck

On 08/04/2012 05:27 AM, Jürgen Spitzmüller wrote:

2012/8/3 Richard Heck:

How hard do you think it would be to give LyX support for csquotes? I've
thought about it from time to time

Depends on how advanced this support is. Basic support should be
rather easy. However, I remember that in discussions in the past,
there were objections to supporting csquotes (instead of rather
rolling our own dynamic quotes framework that isn't restricted to
LaTeX).
Presumably we could use csquotes for LaTeX output and do something else 
for other

cases.

Richard



Re: Quotes begin with end quote. Why? What can I do about it?

2012-08-03 Thread Richard Heck

On 08/03/2012 11:31 AM, Jürgen Spitzmüller wrote:

2012/8/3 Eric Weir:

I notice that under documents > settings > language there are two buttons
labeled "language default" and "other," with a dropdown list of options for
the latter. The former shows as selected, but both are greyed out. Might one
of the options under "other" affect encoding of quote characters?

No. These quote settings are static and only affect the form of the
quotes you insert, not the form of already inserted quotes (we have an
old enhancement request for the latter). For the time being, you need
to do some search/replace (Advances Search will help). I recommend to
check out the csquotes LaTeX package. This is not natively supported
by LyX but provides dynamic quotation marks.
How hard do you think it would be to give LyX support for csquotes? I've 
thought about it from time to time


Richard



Re: LyZ paths not working in Ubuntu or Windows

2012-08-03 Thread Richard Heck

On 08/03/2012 10:24 AM, John Kane wrote:




*From:* Richard Heck 
*To:* John Kane 
*Cc:* "lyx-users@lists.lyx.org" 
*Sent:* Thursday, August 2, 2012 12:21:24 PM
*Subject:* Re: LyZ paths not working in Ubuntu or Windows

On 08/02/2012 12:20 PM, John Kane wrote:
A couple of months ago a power surge fried my laptop. I now have a 
new laptop with a dual-boot Ubuntu 12.04 / Windows 7 setup.   Lyx 
2.0.3, Firefox 14.01 with  Lyz 2.1.4 & Zotero 3.0.8 .


Since then I have not been doing anything with LyX and just noticed 
that I cannot sent citations from Zotero to Lyx.


I have tried setting the path using:
ubuntu
/home/john/lyx/.lyxpipe
/home/john/.lyxpipe

Windows
\\.\pipe\lyxpipe

I am very new to Linux and thought my path might be wrong but the 
\\.\pipe\lyxpipe has worked for me n previous 1.6.7 and 2.x.x in 
Windows.


Error message starts out as:

"Exception ...component returned failure code 0x8052001" (Ubuntu and 
either same or similar under windows and continued on to say "Could 
not contact server at \\.\pipe\lyxpipe.


Just as a precaution I have done a reconfigure and rebooted LyX after 
each path change in Ubuntu and Windows.


Any suggestions on where I'm going wrong?


Did you set the lyxpipe location in LyX itself?

Richard

Yes see paths above.  Does this mean I missed setting a path in Firefox?

I don't use Zotero myself, but I do use JabRef, and you have to get the 
paths co-ordinated between all the various programs that are involved 
here. So maybe you did miss one.


Richard



Re: Quotes begin with end quote. Why? What can I do about it?

2012-08-03 Thread Richard Heck

On 08/03/2012 05:51 AM, Eric Weir wrote:


On Aug 2, 2012, at 3:31 PM, Richard Heck wrote:

The problem here is that these are entered into the file as 
double-quote characters, whereas they should be in there as LyX's 
quote inset, which will actually appear on screen as opening and 
closing quotes. If you type a double-quote character (i.e., 
Shift-single quote, on a US keyboard, anyway), do you get that 
character, or do you get something else? I get an opening or closing 
quote, on screen, depending upon the context.


Thanks, Richard. As I indicated, this document was composed in Vim. 
When I open it in a word processor, the beginning and ending quotes 
are also identical but neutral, i.e., straight up and down without any 
curvature either way. If I enter quotes in lyx, there is a correct 
differentiation of the beginning and ending quote. However, the 
characters look different, i.e., the ending character is not the same 
one that appears elsewhere in the document.


This is a problem I'd like to solve. I am going to be composing in 
Vim. Only when I'm close to being ready to a final draft will I move 
to lyx.


That's the issue, then. LyX just treats the " character as itself, and 
doesn't try to do anything to convert it to a quote inset. I guess you 
could file an enhancement request about this. For the time being, you'll 
have to figure out a way to change all those characters to the 
appropriate sort of quote, either manually, or by writing a script to do it.


Richard



Re: Quotes begin with end quote. Why? What can I do about it?

2012-08-02 Thread Richard Heck

On 08/02/2012 02:30 PM, Eric Weir wrote:


On Aug 2, 2012, at 9:51 AM, Richard Heck wrote:


On 08/02/2012 09:09 AM, Eric Weir wrote:


Since my original post got no response, I decided to try a more 
descriptive subject heading. Thanks for helping if you can.


--

I am using the memoir article class. Quotes are appearing with 
closing quotes at the beginning and the end of the quote. When try 
to change that under document/settings/language it has no effect. 
The document was composed in Vim, I believe with UTF-8 encoding.


How can I change the quote style?


Can you post a small example file?


Thanks Richard,

I'm guessing you wanted the lyx file. The is the document I'm working 
on. It's not very big. I've italicized the first occurence of a quote. 
It's on the first page.


The problem here is that these are entered into the file as double-quote 
characters, whereas they should be in there as LyX's quote inset, which 
will actually appear on screen as opening and closing quotes. If you 
type a double-quote character (i.e., Shift-single quote, on a US 
keyboard, anyway), do you get that character, or do you get something 
else? I get an opening or closing quote, on screen, depending upon the 
context.


Richard



Re: LyZ paths not working in Ubuntu or Windows

2012-08-02 Thread Richard Heck

On 08/02/2012 12:20 PM, John Kane wrote:
A couple of months ago a power surge fried my laptop. I now have a new 
laptop with a dual-boot Ubuntu 12.04 / Windows 7 setup.   Lyx 2.0.3, 
Firefox 14.01 with  Lyz 2.1.4 & Zotero 3.0.8 .


Since then I have not been doing anything with LyX and just noticed 
that I cannot sent citations from Zotero to Lyx.


I have tried setting the path using:
ubuntu
/home/john/lyx/.lyxpipe
/home/john/.lyxpipe

Windows
\\.\pipe\lyxpipe

I am very new to Linux and thought my path might be wrong but the 
\\.\pipe\lyxpipe has worked for me n previous 1.6.7 and 2.x.x in Windows.


Error message starts out as:

"Exception ...component returned failure code 0x8052001" (Ubuntu and 
either same or similar under windows and continued on to say "Could 
not contact server at \\.\pipe\lyxpipe.


Just as a precaution I have done a reconfigure and rebooted LyX after 
each path change in Ubuntu and Windows.


Any suggestions on where I'm going wrong?


Did you set the lyxpipe location in LyX itself?

Richard



Web Server Issues

2012-08-02 Thread Richard Heck


I am hopeful that the issues with the web server have finally been 
resolved. It appears that trac was getting overwhelmed by the googlebot, 
so I've put a robots.txt file into the root of the relevant directory, 
and things look to be a lot more stable now. I'm still monitoring the 
situation. Please let me know if you see any problems and, if you do, 
please do so immediately, noting the exact time the server became 
unresponsive. This will help us pinpoint what requests are causing the 
problem.


Richard





Re: Quotes begin with end quote. Why? What can I do about it?

2012-08-02 Thread Richard Heck

On 08/02/2012 09:09 AM, Eric Weir wrote:


Since my original post got no response, I decided to try a more 
descriptive subject heading. Thanks for helping if you can.


--

I am using the memoir article class. Quotes are appearing with closing 
quotes at the beginning and the end of the quote. When try to change 
that under document/settings/language it has no effect. The document 
was composed in Vim, I believe with UTF-8 encoding.


How can I change the quote style?


Can you post a small example file?

Richard



Re: 403 forbidden access to lyx.org

2012-08-01 Thread Richard Heck

On 08/01/2012 08:19 AM, Eric Weir wrote:


On Jul 31, 2012, at 9:33 PM, Scott Kostyshak wrote:


For me it was back up for a bit and now I'm back to getting a timeout.


I have been unable to get on the site since yesterday afternoon.


Obviously, we have some problem. I'll see if I can sort out what it is.

Richard



Re: 403 forbidden access to lyx.org

2012-07-31 Thread Richard Heck

On 07/31/2012 03:19 PM, Graham Smith wrote:

Thanks, but..

Unfortunately, it is also timing out for me now as well, but I assume 
that is a step better than a 403 forbidden access.


Yeah, that timeout problem is different, and one we've had on several 
other occasions. The guess is that it has something to do with trac. 
Sometimes it resolves itself; sometimes I have to restart httpd.


Richard


Graham

On 31 July 2012 15:26, Richard Heck <mailto:rgh...@lyx.org>> wrote:


On 07/31/2012 06:32 AM, Graham Smith wrote:

Hello all,

Anyone any suggestions what this problem might be.

Trying to access lyx.org <http://lyx.org> I get this message


  Forbidden

You don't have permission to access / on this server.


Apache/2.2.15 (CentOS) Server at www.lyx.org <http://www.lyx.org>
Port 80



Is this a temporary problem,. There doesn't seem to be any
mention of it on the forums.



I seem to have fixed it.

Richard







Re: Working in LyX from the get-go---more or less

2012-07-31 Thread Richard Heck

On 07/31/2012 07:10 AM, Eric Weir wrote:


I've been away from LyX for a while, writing in Vim. I now have a 
document that I need to cut down to 3,500 words from just under 5,000, 
put references in, and get into APA format in Word. Normally, I would 
dump the draft in Scrivener, do this work, then compile for Word. I 
really want to get completely over into working within Vim/LyX/LaTeX. 
I'm considering dumping the draft in LyX and working from within it. 
My deadline---probably not a hard one---is tomorrow.


Having been away from LyX for a while, I'm a little rusty. I don't 
know if this is even possible. When I click on "View other formats," 
the RTF format is greyed out. If in fact I can compile for or export 
to RTF, I'd like to give it a try.


Es posible?

If you want to export to RTF, then you need to install latex2rtf or some 
similar program. But I've had better luck lately exporting to the 
LyXHTML format, and then loading that in LibreOffice.


Richard



Re: 403 forbidden access to lyx.org

2012-07-31 Thread Richard Heck

On 07/31/2012 06:32 AM, Graham Smith wrote:

Hello all,

Anyone any suggestions what this problem might be.

Trying to access lyx.org  I get this message


  Forbidden

You don't have permission to access / on this server.


Apache/2.2.15 (CentOS) Server at www.lyx.org  Port 80



Is this a temporary problem,. There doesn't seem to be any mention of 
it on the forums.




I seem to have fixed it.

Richard



Re: Problem with customized lists

2012-07-30 Thread Richard Heck

On 07/30/2012 10:42 AM, CP wrote:

I would like to use roman numerals for lists and be able to cross-reference them
in the document.

Example:

i) blah
ii) blah

The elements in the text i) and ii) refer to gibberish.

<

I added the following line to the preamble

\renewcommand{\theenumi}{\roman{enumi})}

This achieves almost exactly what I want, except that the list has dots after
the parentheses, e.g.

i). blah
ii). blah

Does anyone know how to remove those?

Look into the enumitem package, which LyX already uses for some lists. 
It makes it much easier to do this kind of thing.


Richard



Re: How to create new items?

2012-07-30 Thread Richard Heck

On 07/28/2012 07:02 PM, chi pro wrote:
Well that revealed my ignorance. I would like to add a new "heading" 
called "Implication" that Lyx is then supposed to number for me, just 
like Propositions, Lemmas, etc.


Hope this helps.

You need to create some new layout. If this is something you think you 
will use again in another paper, then put it into a module of your own. 
If not, if it's just a one-off sort of thing, then you can put it into 
Local Layout, under Document>Settings. You can read about layout and 
modules and such in Chapter 5 of the Customization manual.


In this case, though, we can just crib off what's already in LyX. In the 
theorems.inc file, we have, e.g.:


Style Fact
CopyStyle Theorem
DependsOn  Theorem
LatexName fact
LabelString   "Fact \thetheorem."
Preamble
\theoremstyle{plain}
\newtheorem{fact}[thm]{\protect\factname}
EndPreamble
LangPreamble
\providecommand{\factname}{_(Fact)}
EndLangPreamble
BabelPreamble
\addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
EndBabelPreamble
End

We can just copy it over change the obvious parts to make it an 
"Implication", leaving out the translation-related stuff (which won't do 
anything for you).


So the module might look like this:

#\DeclareLyXModule{New Theorem Styles}
#DescriptionBegin
#Defines some additional theorem-like environments, including Implication.
#DescriptionEnd
#Requries: theorems-ams | theorems-std
#Category: theorems

# Author: Richard Heck 

Format 35

Style Implication
CopyStyle Theorem
DependsOn  Theorem
LatexName fact
LabelString   "Implication \thetheorem."
Preamble
\theoremstyle{plain}
\newtheorem{implic}[thm]{Implication}
EndPreamble
End

Put that in a file newtheorems.module, save it in your local LyX user 
directory, reconfigure LyX, and you should see the module as one of your 
choices.


Richard



Re: How to create new items?

2012-07-28 Thread Richard Heck

On 07/27/2012 05:46 PM, CP wrote:

I'd like to create a new item like "Section, Part, Proposition,..." that gets
numbered by type. Anyone?


Well, these are different. Propositions are theorem-like entities, where
Parts and Sections are structural units. They're done differently. Which
one do you need?

Richard



Re: Make text appear with formula on same page

2012-07-28 Thread Richard Heck

On 07/27/2012 05:35 PM, CP wrote:

I have a multi-line formula that I would like to be shown with some text in
front. Example:
The math is as follows

X = Y + Z
2X = 2Y + A

The whole passage is supposed to appear together on one page. Help?!

Is the problem that it isn't necessarily on one page? If so, then put it 
in a minipage (Box).


Richard



Re: problem loading pdf

2012-07-25 Thread Richard Heck

On 07/25/2012 03:45 PM, Kruyen, A.H.J. wrote:


Dear sir/madam,

Please can you tell me how to solve the error message I get when I try 
to load my pdf file (see attached file). I tried different changes in 
my document, by deleting and pasting different parts (whole sections, 
images or references). I still can not find the common reason why 
sometimes I get a pdf file and other times my program gets an error 
message. Thank you!


Without seeing the file there is no way anyone can solve this problem. 
Please post it, and try deleting as much as you can while still getting 
the problem before you do.


Richard



Re: Cross-reference "figure X" using newref in lyx 2.0 - newref command ignored - no "figure" in the pdf - example from the manual

2012-07-25 Thread Richard Heck

On 07/25/2012 03:08 PM, Tim Meke wrote:

Hello,

I would like to use crossreferences like "That statistics leads to see 
the same conclusion (figure 3)."
The word "figure" should be included automatically. I read the manual 
and tried the formatted cross-reference.



The example from the German manual (EmbeddedObjects, 3.4.1) is, which 
is my whole preamble :


\newref{abb}{refcmd={Bild auf Seite \pageref{#1}}}


The shortcut I refer to is within the caption of the figure. I use a 
formatted reference.



In the document preferences I have checked "Use refstyle (instead of 
prettyref)...".


But in the pdf in just says "(3.1)".

Tested in lyx 2.0.0 and 2.0.4 using Ubuntu 11.10.


How can I accomplish this?

Please post a stripped down, minimal file exhibiting the problem. E.g, 
one figure, one cross-reference, not much else.


rh




Re: lyx crashed

2012-07-24 Thread Richard Heck

On 07/24/2012 03:43 AM, Wolfgang Engelmann wrote:

I had a crash of lyx after trying to paste a cut text into a lyx note which
contained a reference. I got this:

p: inset: 0xa54eed8 idx: 0 par: 0 pos: 0
q: inset: 0xa553720 idx: 0 par: 0 pos: 0
lassert.cpp(35): ASSERTION false VIOLATED IN CursorSlice.cpp:188
Assertion triggered in void lyx::doAssert(const char*, const char*, long
int) by failing check "false" in file lassert.cpp:37
Buffer.cpp(1252):
/home/wolfgang/Photobiology2013/PB-20072012.lyx.emergency

[1]+  Abgebrochen lyx

I use Version 2.1.0 under Debian
Unless you are doing this just for testing purposes, we really do not 
advise it. Trunk (i.e., what will

become 2.1.0) is not guaranteed to be stable.

Regarding the crash, you can report it on trac:
http://www.lyx.org/trac
You'll need to create an account first if you don't have one. What would 
really help is if you could

figure out a way to reproduce the crash.

Richard



Re: math macros via LaTex preamble

2012-07-22 Thread Richard Heck

On 07/21/2012 11:34 PM, Allen Barker wrote:

On 07/20/2012 03:40 AM, Guenter Milde wrote:

Also, math-macros are document specific - defining a math-macro in one
document does not make it available in other ones. This is why my
documents include a file of commonly used math macros -- just like I
\input a file with commonly used preamble definitions in my LaTeX
documents.


Could you elaborate on the best way to include a file of
commonly-used math macros, in a way which is compatible
with Lyx?  I tend to use a lot of \DeclareMathOperator
commands in the preamble, for example.


These kinds of commands do not (now) have any LyX equivalent, so they are
just entered as raw LaTeX and naturally go in the preamble. So put them in
some file mycmds.tex, and input it into your LyX preamble in the usual way.


I've avoided the Lyx macro stuff so far because it has
seemed to me to be *too* document specific.  I don't know
if it actually is, but I haven't found that information in
the preliminary searches I've conducted.

I have several files, for different projects, that contain nothing but 
math macros.

This gets input into my other documents, using Insert>File>Child Document.

Note that LyX doesn't know anything about what you put in the preamble (it
just gets output raw into your document preamble), so if you use your new
math operators in LyX, they'll work, but not look nice. So the attached 
shows
a way around this problem. The difference between \test and \lest 
doesn't show

up inside LyX, but it does in the output.

Richard



mathop.lyx
Description: application/lyx


Re: configure.py exiting prematurely

2012-07-18 Thread Richard Heck

On 07/18/2012 04:29 AM, Erik Hammel wrote:


sorry for the runaround, but i finally discovered the problem -- something that
might want to be looked into for future development. i stepped through
configure.py in a debugger, and when it gets to processing chklayouts.tex (line
1195), there were some missing styles and classes from my MiKTeX installation.
Being in the debugger, the interface popped up telling me the files were
missing. I have to assume then that when the configure script is running
automatically, that there's some problem with waiting for the script to download
the packages if the dialog box pops up. All i had to do was accept the downloads
for the missing packages, and they along with the existing packages were loaded
into the appropriate files correctly.

now i just have to figure out why the article class has put the invalid
"defskip" value in the margin specification. but that's for a different thread.

Can you please file a bug about this in trac? This sounds relevant to 
some discussions we have been having about how the Windows installer 
should work.


Richard



Re: Unable to export to OpenDocument ODF

2012-07-17 Thread Richard Heck

On 07/12/2012 11:52 PM, Ray Rashif wrote:

On 13 July 2012 05:09, Richard Heck  wrote:

On 07/12/2012 02:45 PM, Ray Rashif wrote:

I'm trying to export my entire document to a format which can be
edited in conventional word processing software (OpenOffice, MS Word).
As RTF does not support images, and HTML export does not retain much
of the formatting (e.g. citations, sometimes not even appearing),


Have you tried using LyX's own XHTML export? I've had very good luck using
it for this
purpose.

Yes, that works well. However, I'm not able to open it (the xhtml
file) with any word processor. Most obvioously, MS Word does not
recognise "ldquote". I gave up at that point. Do you have any
suggestion for this?

Where is ldquote coming from?

Perhaps you should try opening the file in Libre Office, or some other 
program.


Richard



Re: Keeping lists together?

2012-07-14 Thread Richard Heck

On 07/14/2012 03:32 PM, Steve Litt wrote:

On Sat, 14 Jul 2012 18:49:28 + (UTC), Paul A. Rubin said:

Put the list in a minipage?

Paul


Hi Paul,

That ain't a half bad idea.

Lately I've explored LyX environments with a LatexType of "Command",
which bestows unbelieveable power and configurablity, which I could
probably use to make these lists.

If I did this, I'd probably start from scratch, as described here:

http://www.troubleshooters.com/linux/lyx/ownlists.htm

I'm still considering, rather than completely strongarming it by using
a minipage (great idea, Paul) to use some sort of rubber lengths to
bias it against page-splitting, but if I have a 30 item list, it will
split it rather than having almost-blank pages before and after.

You could try adding some kind of page-splitting penalty to the item 
commands. Something like that must work. (Or you could try asking on 
comp.text.tex. That would almost certainly work.)


Richard



Re: Keeping lists together?

2012-07-14 Thread Richard Heck

On 07/14/2012 02:49 PM, Paul A. Rubin wrote:

Put the list in a minipage?

That would be the standard way.

rh



Re: Help with paragraph breaks on LyX 2.0.4 (Mac)

2012-07-14 Thread Richard Heck

On 07/14/2012 12:23 PM, Daisuke Koya wrote:

Hello,

Many thanks for replying.

Sorry if I didn't explain my problem well.

What I would like to do is to force LyX from breaking up paragraphs.

I would like to know whether each paragraph could be kept within each page.

This is a LaTeX question, not a LyX question.

I'm sure there is a way to do it, but I'd not know what it was. 
Manually, you could force a page break after each paragraph.


Richard


Cheers,

Daisuke

On 14 Jul 2012, at 17:21, Richard Heck wrote:


On 07/14/2012 07:41 AM, Daisuke Koya wrote:

Hello,

I am using LyX 2.0.4 on Mac OS 10.7.4.

I would like to know whether there is a way LyX won't break up paragraphs 
between pages.

Sorry, I'm not sure what you want here. You want LyX never to put a single 
paragraph on different pages?

Richard






Re: Help with paragraph breaks on LyX 2.0.4 (Mac)

2012-07-14 Thread Richard Heck

On 07/14/2012 07:41 AM, Daisuke Koya wrote:

Hello,

I am using LyX 2.0.4 on Mac OS 10.7.4.

I would like to know whether there is a way LyX won't break up paragraphs 
between pages.
Sorry, I'm not sure what you want here. You want LyX never to put a 
single paragraph on different pages?


Richard



Re: Lyx .layout language for nagauth.cls (esp. abstract)

2012-07-13 Thread Richard Heck

On 07/13/2012 01:07 PM, Allen Wilkinson wrote:

Richard,

I have Address and KeyWords working okay now tweaking your sample.

But abstract is still trouble.

my nagauth.layout now
NoStyle Abstract
Style Abstract
LaTeXType   command
LaTeXName   abstract
CategoryFrontMatter
InTitle 1
End

nagauth.cls
\newbox\absbox
\def\abstract{\lrbox\absbox\minipage{\textwidth}%
  \small\normalfont%
  \centerline{{SUMMARY}}\par\vspace{8pt}%
  }
\def\endabstract{\copyrightline\endminipage\endlrbox}

How do I create layout language for this .cls case and have it come 
before \maketitle via .layout file?


This is actually an environment, though it looks like a command, so you 
need to make it LaTeXType envrionment. (This is a very good example of 
what Peter was saying about the problem of trying to read these things.)


The "InTitle 1" tag tells LyX that this comes before \maketitle. LyX 
issues \maketitle when it sees something that doesn't have "InTitle 1". 
E.g., a section heading, or whatever.


Richard



Re: Layouts vs cls file definition

2012-07-13 Thread Richard Heck

On 07/13/2012 08:24 AM, Allen Wilkinson wrote:
To do the manual layout creation (or substantial editing of existing 
layout) I need a language definition. What are all the possible 
structure and elements, along with their meaning, of the style 
sections defined? How does one control the placement of these style 
sections in the larger document.


The language itself is defined and documented in Chapter 5 of the 
Customization manual. You can see what styles a given layout defines 
simply by looking at the combo box you use to choose them, though there 
may also be insets that the layout defines that appear on other menus.


Could LyX offer a layout editor as a high level interface to managing 
layouts?



That's a dream many of us have long had.

What might be useful here, short of the dream, would be some way to dump 
all the layout information to a terminal.


Richard



Re: Is this a bug?

2012-07-13 Thread Richard Heck
On 07/13/2012 06:32 AM, Frederick FN Noronha फ्रेड्रिक नोरोन्या *فريدريك 
نورونيا wrote:

Place two (duplicate) index-entries for the same word/s and the entire
index doesn't show up. If anyone wants to study this, I could send you
a copy of the file where it happened. FN

Best would be the simplest possible file that illustrates the problem.

Richard



Re: Unable to export to OpenDocument ODF

2012-07-12 Thread Richard Heck

On 07/12/2012 02:45 PM, Ray Rashif wrote:

I'm trying to export my entire document to a format which can be
edited in conventional word processing software (OpenOffice, MS Word).
As RTF does not support images, and HTML export does not retain much
of the formatting (e.g. citations, sometimes not even appearing),

Have you tried using LyX's own XHTML export? I've had very good luck 
using it for this

purpose.


I am left with ODF. However, I have not been successful. This is the final
dialog:

An error occurred while running:
mk4ht oolatex "thesis.tex"

If it's important, this is a master-child doc, with images formatted
in PDF (vector), JPG and PNG, some of them resized, scaled, rotated. I
also have foreign characters, but the document is in English. The
encoding for some child docs are utf8 extended, where there are some
accents and umlauts (mainly names and such).

The oolatex program, which is what LyX is trying to use for conversion, 
is pretty famously
a difficult beast. If the document is complicated, then I'd definitely 
suggest you export it to
LaTeX and try using oolatex manually. It'll be easier to see what the 
problem is.


Richard



Re: using LyX to write AGU journal articles

2012-07-12 Thread Richard Heck

On 07/10/2012 07:33 PM, Kristoffer Walker wrote:

Folks,

I am trying to write an AGU journal article using the AGU document class in 
LyX, a front-end to MacTex.  I have been able to generate a good looking 
manuscript with LyX, with one important caveat: the compiled manuscript fails 
to include the Abstract.  I have determined the problem is that the AGU 
document class expects the following missing statement just after the abstract 
definition:

/begin{article}

Similarly, a /end{article} is needed at the end of the document, just before 
the /end{document}.

I can of course write in LyX and then ultimately export to *.tex in the end, 
add the lines, recompile, and submit the manuscript, but is there a better way 
to fix this?  For example, can I edit a Layout file or similar to have these 
things done automatically so that the Abstract will show up from a compilation 
within LyX?

Please post a simple file illustrating the problem. We probably need to 
hack the layout file.


rh



Re: Table of Contents and naming the sections

2012-07-12 Thread Richard Heck

On 07/12/2012 11:23 AM, Nergis wrote:

Hi,

I would like to ask two questions. I am using the article format for my
thesis

First, I would like to add the abstract, acknowledgements to the table of
content which I can not do right now.

http://www.personal.ceu.hu/tex/toc.htm

Richard



Re: Lyx .layout language for nagauth.cls

2012-07-12 Thread Richard Heck

On 07/11/2012 09:19 PM, Allen Wilkinson wrote:

Richard,

I read all of Section 5.2 on layouts. I used it to modify the 
article.layout file to nagauth.layout, which is poor for nagauth.cls.


There are a tons of things being set in layout files, especially when 
you drill down into stdclass.inc and its included .inc files.


In the linked file lyxmacros.inc the "Style Address" is noted. How can 
I control the nagauth.cls \address definition be used {placing author 
addresses right after the authors on the title page} and not the 
\lyxaddress definition?



If you don't want to use that definition, then start with:
NoStyle Address
and then redefine it as you wish, e.g.:
Style Address
LaTeXType command
LaTeXName address
InTitle 1
End
Pretty basic, but it should come close to working. LaTeX will take care 
of putting the address in the right place.


The same goes for "Style Abstract" in the stdstruct.inc file. How can 
I force the abstract to happen on the title page right after the 
\address content? nagauth.cls renames the 'abstract' to 'Summary' LyX 
output seems to botch that renaming.


I'd have to see nagauth.cls to be sure about this. In the article class, 
the abstract appears on a separate page when the titlepage option is 
given, and LyX's default definition is for that case.


I am looking for a manual on the structure and meaning of all elements 
used in layout files. Customization help file doesn't come close to 
that need.


I still don't understand what it is you want. You want something that 
says what each and every style that is defined does? If so, then I'm not 
sure why looking at the layout files themselves isn't sufficient. That's 
what I do.


Richard



Re: Layouts vs cls file definition

2012-07-12 Thread Richard Heck

On 07/12/2012 11:05 AM, Alex Vergara Gil wrote:

El 11/07/2012 07:19 p.m., Allen Wilkinson escribió:

(...)
Why doesn't LyX just default to the .cls files definitions and 
abandon the need for layout files?


(...)


Dear Lyxers

I half agree with this question, layout files are very useful when you 
have to get more than one cls file definition (i.e a master document 
is a book and a child document is an article and so on), but when you 
are writting just an article the editors often offer you a cls file 
already (ElSevier for example). I propose one of two solutions: isn't 
a way to get layout files automatically from cls file definitions, if 
this is too overwhelming I can handle with just the basics and then 
add manually the rest for the first glance (a python script would be 
nice, suggested name "cls2layout.py"); second solution could be that 
lyx can actually read the cls file as an option to the layout file, 
this is not in lyx philosophy but why not? It would be helpful in some 
specific cases like this which is used a lot. Probably this is solved 
someway or someone has already found a solution so it would be nice if 
it is published here, I'm open at suggestions.


If someone wants to figure out a way to generate a layout file from a 
LaTeX class file, then I don't see why this would be impossible, but I 
think it would prove to be a whole ton of work.


As always, if you have an itch, then open source gives you a chance to 
scratch it.


Richard



Re: Lyx .layout language for nagauth.cls

2012-07-11 Thread Richard Heck

On 07/10/2012 10:51 PM, Allen Wilkinson wrote:
I am writing a paper for Wiley's journal "INTERNATIONAL JOURNAL FOR 
NUMERICAL AND ANALYTICAL METHODS IN GEOMECHANICS" that uses the 
nagauth.cls LaTeX class.


The generic article.layout re-used for nagauth.layout file does not 
produce a very compatible layout. It puts \maketitle command in the 
wrong place with respect to author addresses (oddly defaulting to 
\lyaddress{} alternative to the \address{} function in nagauth.cls) 
and the abstract. There may be other anomalies as I progress in 
writing the paper.


I suspect that a proper .layout file would fix this.

Where can I find the language definitions used for creating .layout 
files?


Chapter 5 of the Customization manual. Feel free to ask lots of 
questions, too, and I'd recommend looking through other layout files 
that perhaps work more like this one.


rh



Re: LyX 2.0.4 and View Source

2012-07-10 Thread Richard Heck

On 07/10/2012 06:04 PM, Andrew Parsloe wrote:


But I do still find myself wondering why LyX's own file format is not 
offered as an option for the View Source window. For anyone writing a 
converter from or to LyX, it would be helpful to see at a glance how 
particular constructs were rendered in LyX's own format.


This is in trunk. There wasn't enough time to test it for branch. It 
should be in 2.0.5.


Richard



Re: newbie question

2012-07-10 Thread Richard Heck

On 07/10/2012 01:53 PM, Kristoffer Walker wrote:

Mac 10.7.4.  I installed the LyX binary 2.0.3), as installing the source 
required three missing libraries.

I think, then, that the reconfigure item is somewhere else. Maybe on the 
Apple menu? But I don't use Mac


FYI, the 2.0.4 binaries are available now.

Richard


On Jul 10, 2012, at 5:47 PM, Richard Heck wrote:


On 07/10/2012 01:23 PM, Kristoffer Walker wrote:

I have been using Lyx now happily for the last several months, but I recently found a need 
to do a "Tools->Reconfigure".  I do not see this option under Tools.  I cannot 
find a URL with Google that explains why this is missing, nor did I see this mentioned in 
the user manuals.  Can someone point out the obvious to me?

What sort of computer are you using?

Richard








Re: newbie question

2012-07-10 Thread Richard Heck

On 07/10/2012 01:23 PM, Kristoffer Walker wrote:

I have been using Lyx now happily for the last several months, but I recently found a need 
to do a "Tools->Reconfigure".  I do not see this option under Tools.  I cannot 
find a URL with Google that explains why this is missing, nor did I see this mentioned in 
the user manuals.  Can someone point out the obvious to me?

What sort of computer are you using?

Richard



Re: Restate Theorems

2012-07-09 Thread Richard Heck

On 07/08/2012 03:05 PM, Mehrdad Oveisi wrote:

Hello,

How can I restate a theorem in different parts of a document?
I prefer that the entire theorem text is duplicated, but I can live 
with a solution that only repeats the theorem number and I copy and 
paste the theorem text.

Also, the more LyX-compatible the solution is, the better!

One example for repeating theorems can be found on page 6 of Thmtools 
Users’ Guide:

http://mirror.its.dal.ca/ctan/macros/latex/exptl/thmtools/thmtools.pdf

They define a "restatable" environment, and I am not sure how easy it 
is to use this in LyX. Is it?


If the restate key-val argument mentioned on p. 8 of the thmtools docs 
works, then you can probably do this with just a little bit of ERT.


Richard



Re: Restate Theorems

2012-07-09 Thread Richard Heck

On 07/08/2012 03:05 PM, Mehrdad Oveisi wrote:

Hello,

How can I restate a theorem in different parts of a document?
I prefer that the entire theorem text is duplicated, but I can live 
with a solution that only repeats the theorem number and I copy and 
paste the theorem text.

Also, the more LyX-compatible the solution is, the better!

One example for repeating theorems can be found on page 6 of Thmtools 
Users’ Guide:

http://mirror.its.dal.ca/ctan/macros/latex/exptl/thmtools/thmtools.pdf

They define a "restatable" environment, and I am not sure how easy it 
is to use this in LyX. Is it?


You can use anything of course via ERT. A quick look at this makes me 
think it won't be trivial to get native LyX support for it. You could 
certainly define a Restatable layout style, but you'd have to have some 
required arguments and perhaps also an optional argument. Something like:

Style Restatable
CopyStyle theorem
LatexName restatable
RequiredArgs 2
OptionalArgs 1
Preamble
\usepackage{thmtools}
EndPreamble
End
will probably get you close. But even if that worked, the command to 
print the theorem depends upon what name you choose for it, and that 
will have to be ERT.


Richard



Re: Lyx 2.0.4 for Linux

2012-07-09 Thread Richard Heck

On 07/09/2012 11:07 AM, Rich Shepard wrote:

On Mon, 9 Jul 2012, UD wrote:

I keep forgetting where I might be able to get the latest Lyx 
releases for Linux.


  The main site, www.lyx.org, has the source.

Liviu has a PPA, I think, but I'm not sure where it is. It's mentioned 
in the archives, I'm sure. Try searching for Ubuntu PPA or something.


When you find it, please let me know. I meant to put it on the wiki.

rh



Re: Refference error when creatinmg pdf: keyboard character used is undefined

2012-07-06 Thread Richard Heck

On 07/06/2012 05:58 AM, Kasper Jermiin Knudsen wrote:
Re: Refference error when creatinmg pdf: keyboard character used is 
undefined Hi Richard


Thank you for your reply.

I dont know how any unknown character slipped in. The exact name of 
the file is "Role of the TMPRSS2--ERG Gene Fusion in Prostate Cancer". 
Any bad characters here?


The dash. If you look at the error, you can see that's the one it's 
choking on. It's some kind of Unicode character.


I use Mendeley reference manager to create a bibtex file from my 
references. Do you think that the probles lies here? And is there 
anyway to circumvent this in Lyx?


This is a common problem. Mendeley, JabRef, etc, are perfectly happy to 
save your file as Unicode, but BibTeX does not like it. Really, the 
BibTeX file has to be in the same encoding as the original file, and 
there is even a bug about this on trac. But it turns out it is actually 
impossible to detect file encoding reliably.


Richard

PS Keep discussions on the list, so it will be available to others.




On 7/5/12 5:47 PM, "Richard Heck"  wrote:


On 07/05/2012 07:33 AM, Kasper Jermiin Knudsen wrote:


Refference error when creatinmg pdf: keyboard character used
is undefined Hi

 I have a problem whit one of my bibtex references, when
making a pdf from my lyx document.

 I get 2 error messages that each reads:

 1:
 Package inputenc Error: Keyboard character used is undefined

  \newblock {Role of the TMPRSS2

   ERG Gene Fusion in
Prostate Cancer}.

 You need to provide a definition with \DeclareInputText

 or \DeclareInputMath before using this key.



 2:
 Package inputenc Error: Keyboard character used is undefined
  \newblock {Role of the TMPRSS2--

ERG Gene Fusion in
Prostate Cancer}.

 You need to provide a definition with \DeclareInputText

 or \DeclareInputMath before using this key.

 How do make a definition for the unknown character that the
error message mentions?


The better solution is not to use that character. BibTeX files
should be pure ASCII.

 Richard




Kasper Jermiin Knudsen
PhD student
BRIC -- Biotech Research and Innovation Centre
Ole Maaløesvej 5
2200 København N
35325633






Re: Refference error when creatinmg pdf: keyboard character used is undefined

2012-07-05 Thread Richard Heck

On 07/05/2012 07:33 AM, Kasper Jermiin Knudsen wrote:
Refference error when creatinmg pdf: keyboard character used is 
undefined Hi


I have a problem whit one of my bibtex references, when making a pdf 
from my lyx document.


I get 2 error messages that each reads:

1:
Package inputenc Error: Keyboard character used is undefined

 \newblock {Role of the TMPRSS2

  ERG Gene Fusion in Prostate Cancer}.

You need to provide a definition with \DeclareInputText

or \DeclareInputMath before using this key.



2:
Package inputenc Error: Keyboard character used is undefined
 \newblock {Role of the TMPRSS2--

   ERG Gene Fusion in Prostate 
Cancer}.


You need to provide a definition with \DeclareInputText

or \DeclareInputMath before using this key.

How do make a definition for the unknown character that the error 
message mentions?


The better solution is not to use that character. BibTeX files should be 
pure ASCII.


Richard



Re: File does not exist error

2012-07-02 Thread Richard Heck

On 07/02/2012 02:24 PM, Jim Maas wrote:
I've updated texlive to 2011 and am now using lyx 2.0.4 on Ubuntu 
linux 12.04.


I've got a small toy file that it says it compiles ok but then I can 
not view it, get an error that

says
"File does not exist:
/tmp/lyx .. /jm_example.pdf

Any suggestions to diagnose where the problem is?  Seems rather 
strange considering the compiling stage seems to work.


There's probably some kind of compilation error. Try running LyX from a 
terminal, and watch the output as you compile. You can also look at the 
LaTeX log.


Richard



Re: How to insert LaTeX commands without ERT?

2012-07-02 Thread Richard Heck

On 07/02/2012 03:36 PM, Steve Litt wrote:

Hi all,

I want to insert time passage markers in my book. They're something
like a centered:

-x-x-

I want them visible both in LyX and in the PDF output.

It's easy enough to make a new command to do this, but then it wouldn't
be visible in LyX. I know I have LabelString to mess with -- anyone
have an idea how to do this from LyX without ERT?


Style TimePasses
Category  MainText
KeepEmpty 1
MarginDynamic
LatexType Command
LatexName ticktock
ParIndent MM
Align Block
LabelType Static
LabelString   "-x-x-"
LabelFont
  Family  Roman
  Series  Medium
  SizeNormal
  Color   Black
EndFont
Preamble
\newcommand\ticktock{\begin{centering}-x-x-\end{centering}}
EndPreamble
End

This was just cribbed from the ---Separator--- style in stdlayouts.inc.

Richard



Re: problem installing new .cls file

2012-07-02 Thread Richard Heck

On 07/02/2012 11:02 AM, Jim Maas wrote:

It seems quite difficult to install new .cls files and get them to work.

I'm using Lyx 2.03 on Ubuntu linux 12.04 64-bit

I'm attempting to create a document using a new .cls and .layout file.
The new class files and other files are supplied by a journal called
Biostatistics, from Oxford publishing and the files supplied comprise:

bio.cls  color.sty  fig2.eps  fig4.eps  samplebibtex.pdf
biorefs.bst  fig1.eps   fig3.eps  refs.bib  samplebibtex.tex


I found some instructions and attempted to install the .cls, .bib, and
.bst files in the correct locations

/usr/share/texmf/tex/latex/bio/bio.cls
/usr/share/texmf/bibtex/bst/bio/biorefs.bst
/usr/share/texmf/bibtex/bib/bio/refs.bib


I then did texhash, reconfigured Lyx and I still get this error

\section*{First Introductory Section}

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.


We'll need to see the layout file.

Richard



Re: How to remove a citation from the reference list without deleting it from BibTeX?

2012-06-30 Thread Richard Heck

On 06/30/2012 03:32 PM, Roey Angel wrote:

Hi Richard thanks for your answer.
Yes, the BibTeX bibliography settings is set for 'all cited references'.
I also tried to rescan the database before running latex but that did 
not change anything.
I should mention that I am using biber-natbib for my references (maybe 
that's the reason).


In my preamble I have:

\usepackage[style=geb,natbib=true, backend=biber]{biblatex}


Then in the document:
Note: BibTeX Generated Bibliography
\printbibliography

Any ideas?

Well, something's being cached somewhere, and it's probably got to do 
with biber-natbib or biblatex. I don't use either, however, so won't be 
any more help.


rh



Re: How to remove a citation from the reference list without deleting it from BibTeX?

2012-06-30 Thread Richard Heck

On 06/29/2012 07:44 PM, Roey Angel wrote:

Hi,
If I want to remove a citation from a document in Lyx I typically simply delete
the field.
Trouble is that doesn't prevent the citation from appearing in the reference
list (although it's no longer cited anywhere in the document).
Instead I also have to edit my BibTeX file and delete it there as well.

Why is it behaving like this? shouldn't LaTeX only include in the reference list
those entries in the BibTeX record that were actually cited in the paper? Isn't
that one of the major reasons why reference managers exist?

Here's a guess. Click on the bibliography inset (which lists the BibTeX
databases you are using). Toward the bottom, there is a combo box that
is labelled "content". There are two choices: (i) All cited references; 
(ii) All

references. The former does what you want; the latter prints all citations
from the BibTeX file, whether they are used or not.

If that's not the problem, then we'll talk more.

Richard



Re: Possible bug: LyX archive excludes files with space

2012-06-14 Thread Richard Heck

On 06/14/2012 07:50 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I just realised, that LyxArchive seem to ignore graphs with fioenames which 
include spaces.

Lyx version: 2.0.3 from ppa
Ubuntu Precise Pangolin

Could somebody confirm before I file a bug report?

I think this has been fixed for 2.0.4.

Richard



<    3   4   5   6   7   8   9   10   11   12   >