Re: data sources
Torsdag 27. oktober 2005 16:29 skreiv Paolo Cavallini: At 15:55, giovedì 27 ottobre 2005, Paul A. Rubin has probably written: AFAIK, there is no way to dynamically link a LyX document to a database, unless you are willing to write a script that queries the DB and inserts the data directly into a LyX document. (LyX files are plain text with markup, so there would be no problem doing this.) Thanks Paul. This is interesting. Has anybody attempted to do something similar? It would be easier not to start from scratch, and avoid duplication (and of course, time is scarce...). Hi, How about sqltex, it works only for mysql but that shouldn't be the worst part to rewrite. It take a sql statement and replace it with the results from the db. It is written in perl as a latex preprocessor. http://www.tug.org/tex-archive/help/Catalogue/entries/sqltex.html Ingar
Re: Forget Windows
Tysdag 8. november 2005 15:57 skreiv Lars Gullik Bjønnes: Gour [EMAIL PROTECTED] writes: | Yes, there is code-share, but every individial port (win32, gtk) takes | away the energy time of devs, and that's why I'd prefer to e.g. have | gtk port which could (if) cover Win32, Linux-like OS-es MaC OS in one | stroke. Note that code share is in the very high 90's %. It is packaging that takes time, and you won't get that from just using a multi-platform lib. (qt-linux, qt-mac, qt-win) As a translator I have to say that the number of toolkits increase the amount of work for the translators as well. Different toolsets have different ways to specify shortcuts and each have to be translated manually. So as a translator I would like to have only one toolset to work with, and if I could have chosen I would loved a kde-frontend. There is so many things we could have gotten for free if we would made the plunge to kde instead of qt. (on the fly spell check, kio-slaves to name two from the top of my head). And offcourse as kde4 is going to be ported to win32 and osx it could be used on those architectures as well. ;) (packing work still remains, though) However, I can see why it is not going to happen as it would mean ripping out parts of lyx`s tookit independent parts and replacing them with kdelibs. So I am happy with the status quo. Ingar
Re: Forget Windows
Tysdag 8. november 2005 17:59 skreiv Gour: Lars Gullik Bjønnes ([EMAIL PROTECTED]) wrote: Note that code share is in the very high 90's %. So, it means that, in case qt goes non-gpl or something, it would not be too hard to port to another toolkit? Lyx source code was divided in 2000(-01?) into two parts, one which is gui-independent and similar for all toolkits and a part that was dependent on the toolkit. (the toolkits started at that time was xforms, qt and gtk). So it is possible to port to other tookits without to much work (Not that I could do it :) ). However, there have been little interest in gtk port it seems, judging by the speed of development. However, this gui-independence means, as far as I have understood it, that you have to code into lyx a lot of library-stuff, like spellchecker, as you can not rely on code that might not be present in some toolkits/environments. You do not need to worry about trolltech removing qt from its gpl license. It can't happen, the source code is out there covered by gpl. Trolltech might, if they turn bad, stop releasing new versions of qt under gpl. In that case the last gpl released qt-version turns to a bsd license. http://www.kde.org/whatiskde/kdefreeqtfoundation.php and even more kde myths debunked here :) http://kdemyths.urbanlizard.com/ Ingar
Re: Forget Windows
Tysdag 8. november 2005 18:48 skreiv Stephen Harris: SH: Hmmm. I like the KDE desktop and looked into the Cygwin port of KDE to Windows, which has been abandoned. Now the effort is to produce a native Windows KDE. I thought I read that this effort relied on Qt (3?) similar to LyX? For the time being kde on windows is vapor ware. As far as I know the only work being done is to make the buildsystem of kde working in windows. When that is done they would need a lot of dedicated windows developers to port the code. If those do not materialize there will never be a kde release for windows. http://www.kdedevelopers.org/node/1530#comment So you are correct that the upcoming kde on windows relies on Qt4 for windows. And that lyx as well depends on qt (at least for the qt-toolkit port of lyx :) ). But (for the time being) lyx do not depend on kde. Ingar
Re: Abstracts in multiple languages, preface and acknowledgements
On Friday 18 November 2005 16:31, Andreas Kofod-Hansen wrote: Hi I'm writing my masters thesis in lyx, and as I'm writing the thesis in danish, an abstract in english (as well as one in danish) is required. I have tried using the latex directive selectlanguage to select first English (or more correctly, British) and then Danish, and that has worked ok as far as selecting the language the abstract header is displayed in. However, the page numbering is ruined as it's reset every when reaching the second abstract. How do I solve this? Do I simply use unnumbered chapters for the abstracts, or is there another way around it using the abstract text class. I had to do this once when I was in a hurry. So I made a quick fix, there might be better methods, however it worked for me... Copy your two abstract together and set the language to danish. Then without using a linebreak put something like this in an ert box between the two abstracts: \newline %(\newpage might work as well, depend on your style, I guess) \begin{center} %(or flushleft/right, depending on your style) \large\bf{Abstract} %(change size and bold to mach the style) \end{center} \hfill What about roman numbers before the TOC, is that possible in Lyx, or do I need to use Latex directives? This depends on your style and you should look in the documentation for the style to see if the behaviour can be changed. Or you could do somthing like this in ert when you want to change pagenumberstyle: \clearpage \pagenumbering{roman} %or arabic \setcounter{page}{3} % the pagenumber is reset and you have to correct it It might give some surprising results though :). And. what about the preface and acknowledgements? I haven't found any way of selecting this in any of document classes, so how do I get around this? Again it depends on your style, if you use report(koma-skript) you have many different choices that you could use such as dedications, and upper and lower title backs etc. Ingar
Re: problem with minipages...
Somethig like this maybe? Latex does not break minipages ususally. So you may have to manually break them into two seperate minpages to get what you want. I also changed a little bit on the presentation part to fit it into 2 pages, you might want to change that back and move some other part around. Ingar cv_2006.lyx Description: application/lyx
Re: Some things I wonder how to do
on. 26. april 2006 16:53 skreiv Albert Pettersson: Hi! The easiest way is the increase the margin width and put a negative indentation in the document setup dialog. (-5 mm) I only want a small part of the document to be like that. If I do this, the whole document will change, won't it? Yes, it will. If you only want some text done this way you may use a minipage and some ERT :). start by putting \hfill in an ERT box. Then just behind the ERT box insert a minipage. Right click on the closed minipage and set the size to 90 %col. Add the text you want formatted to the minipage. Bofore the first word inside the minipage add another ERT box with \hspace{-10mm}. The sizes can be changed to your match your style. I hope this helps... Ingar
Re: import images
to. 4. mai 2006 08:44 skreiv Theo: Hi, i know this has been asked a thousand times and i've read many threads, but stil can't get it to work: i want to import images into lyx. - i have to use insert figure float first - insert into that box insert graphics, right? - i dont want the image to float and i dont want the title (Figure#) to be centered. it should be left aligned. - how do i make a image description? do i just write below the image with Standard selected? thanx for your help. theo Hi These are contoled by the LaTeX styles. You may want to find a style that are better for you or you may override the style by using LaTeX as described below. from: http://tug.org/TeXnik/mainFAQ.cgi?file=floats/caption Captions apart from Floats If you need your floats on own pages only with a caption like Figure # and additionally a list of corresponding captions, try the following (needs endfloat.sty): write in preamble: \usepackage{endfloat} \let\Caption\caption \renewcommand\caption[1]{% \Caption[#1]{}% } and insert your listoffigures in your text as usual. With this trick you can not use the short caption option like \caption[short for toc]{long for caption} and Left aligned Captions Write in preamble: \makeatletter [EMAIL PROTECTED] \vskip\abovecaptionskip [EMAIL PROTECTED]: #2}% \ifdim [EMAIL PROTECTED] \hsize #1: #2\par \else \global [EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED] \fi \vskip\belowcaptionskip} \makeatother Ingar
Re: Beamer / Lyx/ Handouts
fr. 22. september 2006 11:32 skreiv Paul Fenner: Can somebody please point me in the right direction to create handouts from my beamer presentation. I have tried to follow the Beamer Class Tutorial but I am getting hopelessly lost. I am using Windows XP / LyX 1.4. Thank you. Paul Install the beamer article layout in your lyx/layout directory. Reconfigure and change your document class to beamer article. You can find the beamer_article.layout here: http://wiki.lyx.org/Layouts/LaTeX-beamer Ingar
SV: How! -- Index with Balanced Columns
The code works for me in the standard book environment. However for book it might be a good idea to change the \clearpage to \cleardoublepage to be certain that it does not change the floats. Why it does not work for you is difficult to know? I would suggest that you make a copy of your book and remove all the hand painting and special stuff and see if you can get the index to work. If it works start adding back the hand painting and specials to it stops working :) Ingar
SV: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%
Hi -force Lyx to add my \usepackage{} command afterthis line? Is this possible? You can try using the \AtBeginDocument{} described in http://wiki.lyx.org/FAQ/Unsorted -use a workaround where I try to define in the custom package showcaptionsetup, so that the line does not run? You can try to put your command in an ERT box as the first thing in the LyX document. Might not work, depending on the environment. hth, Ingar Pareliussen
SV: SV: Prevent Lyx to add with pkg subfig line \@ifundefined{showcaptionsetup}{}{%
Hi The \AtBeginDocument seems indeed to be what I am looking for! But what is its expected behavior? I still see in both the Lyx-latex sources and exported .tex the command \AtBeginDocument before the babel/subfig lines... \AtBeginDocument is a LaTeX command and should ensure that the command is executed just before \begin{document} even if it is placed before the LyX internal command. The caveat is that some packages also use the command (natbib is one example) and then the last \AtBeginDocument is placed closes to \begin{document}... However, if this happens you have to try my other suggestion (the ERT box) or export to LaTeX and change the code and run LaTeX manually. hth, Ingar Pareliussen
Error in Latex output, LyX adds an extra brace
Hi I am working on a large document and there seem to be an error where LyX adds an extra brace to the LaTeX code. Removing the margin note from the paragraph-environment fixes the error, so the workaround is easy. However, I think this is an error, should I report it the bugtracker? Ingar braces_error.lyx Description: braces_error.lyx
SV: Error in Latex output, LyX adds an extra brace
Can you try to isolate the issue? I.e., remove everything you can until the problem is all that is left? It is difficult to remove anymore than the lyx file enclosed in the first email. :) However, I tried to make a a how to reproduce, and that were a little bit more complicated. But at least I succeeded: 1. make a margin note inset and put some text in it 2. Choose the text and chose anything other than plain layout environment and LyX adds an extra closing brace in the LaTeX-code Why this happened the first time, I do not know. It might happen in converting from an old file-format, as this file were started in the 1.3-series of LyX and have been converted as new LyX-version have come along, or It might have been an error when I made a new paragraph and accidentally marked the wrong part of the text... Ingar Pareliussen
SV: Error in Latex output, LyX adds an extra brace
Hi I think this is a bug in LaTeX rather than LyX, especially (1)+(2a). I googled for a (LaTeX) workaround, but I can't see one. Yes, you are right, it is a LaTeX error, I was blinded by the errormsg. Anyhow this is LyX, and LyX makes LaTeX code that do not compile if you make some unwise choices. I guess we could say that you should not make these choices, which is the easiest way :). However, if we could get LyX to end the environments before starting the marginpar the problem would go away. Contrast the LaTeX code outputed by LyX, which does not work: \paragraph{\emph{Elymus foliis mucronato-pungentibus, s. Elymus arenarius. }\textmd{\emph{}}% \protect\marginpar{ \paragraph{\textmd{\emph{\small Leymus arenarius}}}% }} With my hand written one that does work, (the only difference is that I moved the brace to end the paragraph before I start the marginpar): \paragraph{\emph{Elymus foliis mucronato-pungentibus, s. Elymus arenarius. }\textmd{\emph{}}}% --extra brace here \protect\marginpar{ \paragraph{\textmd {\emph{\small Leymus arenarius}}}% } %-- one less brace here I am not a programmer and do not understand the LaTeX lexer, however, I understand that this might be difficult to accomplish and thus I leave it to the programmers to decide if this is something that happens so often that we should use time to fix it. yours, Ingar Pareliussen.
SV: SV: Error in Latex output, LyX adds an extra brace
Hi First let me talk about your particular document; sorry if you already know everything I say. Then I'll talk about your suggested workaround. Don't be sorry for explaining things, even if I understand some LaTeX, it is much easier when we are certain that we understand each other. And my English is my second language and I do not always have enough time to express myself clearly :). As I said in my last email, I really don't think you mean to use the paragraph layout here, especially _inside_ the marginpar. Paragraph (in this context) means a type of heading. You should only use it if you have divided your document into sections, subsections, subsubsections, and now want to divide it into even smaller pieces. And by making the *inside* of marginal notes paragraph layout, you are saying that these are headings too. To put it another way, if you make the table of contents more detailed (you can do this in document settings under numbering and TOC), then *all text in paragraph layouts* will appear in the table of contents. Including these marginal notes, on their own lines. I agree, no sane person should do this. So with paragraph, atleast, it only happens by accident. snip Changed: \paragraph{ xxx } \protect\marginpar{ yyy } \paragraph { zzz } This is a paragraph-level heading xxx, followed by an empty paragraph (not a heading) with margin note yyy, followed by a paragraph-level heading zzz. Yes, I see what you mean. Paragraph is different, and a poor example. However, the same happens with other headings as well, where my work around makes sort of sense(?). Someone might want to put a subsection as a marginpar and have it show up in TOC. Maybe as an example box or something... Not that I would advise it though :). I think that perhaps \paragraph{\marginpar{\paragraph{ blah }}} could be disallowed in LyX, because it doesn't make any sense, but something like \paragraph{\marginpar{\itemize{ blah }}} makes sense and might one day work, if this LaTeX bug is fixed. So overall I don't think LyX should do anything about it. The easiest way would be to make it impossible to put a marginpar in a heading in LyX. As marginpars floats in the margin there should not be any big difference where it is put in the final document. Ingar
SV: Multi-column layout for multilingual documents (translations)
You probably should look into the ledmac and ledpar packages http://www.djdekker.net/ledmac/ As far as I know LyX does not support these packages from the GUI, however you may be content to use ERT to insert raw LaTeX, but it is also possible that this is easier to do in a good LaTeX editor... If you really want to use LyX you could probably make an module or an layout for ledpar, however this may be a bit tricky. If you you like a challenge have a look in Customizing in the Help menu in LyX. Ingar
SV: is there a way to get Enumerate to continue numbering between separate Enumerations?
Hi have a look at: http://wiki.lyx.org/FAQ/Numbering#toc14 hth Ingar
SV: RevTeX4 and prb
\documentclass[12pt,aps,prb,preprint]{revtex4} Presently the article is in the standard Article class with Plain style. If I can make this change from within LyX, exactly how would I do it? On LyX/Mac 1.6.5, TeXLive 2008. Go to the menu Document-Settings -- Document class Choose article(ReVTeX 4) from the document class drop down menu. Remove the chosen predefined and copy into the Custom field: 12pt,aps,prb,preprint I use a mix of citations in the text and endnotes, but the journal puts all citations in the endnotes. Is there an efficient way to make this change? Sorry, can't help you here.Maybe somebody else can. hth, Ingar Pareliussen
SV: SV: RevTeX4 and prb
Hi I didn't realize that the options 12pt,aps,prb,preprint could be inserted in the custom field. Thank you. But now I get a bunch of Undefined control sequence errors. The commands \doublespacing \the endnotes \@endanenote all create errors. That was the second time I tried to View PDF (pdflatex). The first time I got a whole bunch of errors related to bibliographic items. I am afraid that revtex are sometimes difficult to deal with and I am in deep water here but some suggestions: First of all be certain that you have not used double line spacing or other lines pacing in LyX. Also the endnotes must be made with the footnote command, the manual says :) https://authors.aps.org/revtex4/auguide4-1.pdf if this does not help, I will need a small example LyX file that displays the problem to help. Or maybe someone else on the list has worked more with revtex than me? hth, Ingar
VS: Installation of Lyx Using Windows
Hi What are the guidelines for determining whether one or the other should be chosen during the installation process? I would say it isn't much differnece when looking at LyX, it is more the number of helper program which is installed as well. I would guess that if you have a reasonably quick internet connection you are are safe with the LyXWinInstaller Read more details in: http://wiki.lyx.org/Windows/LyXWinInstaller hth, Ingar
SV: Help me out of .doc
Hi I made small edition to my final thesis in Word and now it looks terrible again. I want to get rid of it. I have more important things to do than keep document's layout in looking good. I feel your pain. It was a similar experience with word that made me change to LyX in 1999. However, if you do not have a week to familiarize yourself with LyX and LaTeX you should finish your thesis in word first, and then learn LyX. I have been playing with openoffice writer2latex and lyx for several hours without notable success. Sadly, writer2latex tries to conserve as much as possible of the layout and that makes the LaTeX code in my opinion ugly and not really compatible with LyX. So I would say that using writer2latex is a not an option, sorry :). Maybe somebody have other opinions about writer2latex, and how to make it behave, and I guess they will tell us so. :) The best way forward if you have the time is to find a thesis-lyx-layout that resembles your layout and put your text into it. You should also read the LyX Help-introduction and tutorial. Then when you find something you need to change, you can ask the mailing list (after checking the wiki ;-) ). Here are a starting point to some thesis-lyx-layouts: http://wiki.lyx.org/Examples/Thesis http://www.thesis-template.com/ Finally, dropping word is possible the best choice you can do, however, learning LyX is necessary to utilize it... But I have never met anybody not being happy after learning LyX :). hth, Ingar Pareliussen
SV: LyX: Saves edited version of document as a new version (new file) ?
Maybe what you really want to enable is something on the order of version control, or change tracking. I believe this is a possible solution; all I need is being able to revise the document for the latest if not all the editing that occurred, particularly in the case that the undo feature is no more applicable like when lyx is closed. Check the section 6.2 in the Help-additional functions in LyX, it takes you through how to use the revision control. It should fit your needs for undo etc, however, some knowledge of revisionsystems is helpful... hth, Ingar Pareliussen
SV: contrast of pdf files
Hi I just wondered if there was anything I could do about this, perhaps as its a pdf with black text and a white background is there a way to alter the back ground colour of the pdf file so its slightly off white, which could make it easier to read. In the preamble put something like: \definecolor{mycolor}{rgb}{0.8,0.9,0.9} \pagecolor{mycolor} Change the color to somthing you like... hth, ingar
Crash in rc_2
Hi I got a crash when trying to Save As. Save seems to work fine... I have made a small sample file that crashes every time for me with save as. The error is many:: lassert.cpp(21): ASSERTION contains(fmt, from_ascii(%1$s)) VIOLATED IN lstrings.cpp:1329 Assertion triggered in void lyx::doAssert(const char*, const char*, long int) by failing check false in file lassert.cpp:23 etc Segmentation fault (somtimes just one and Aborted...) It is similar to the one reported with shaded boxes, but I have no boxes. LyX 2.0.0rc2 (2011-03-29) Built on Apr 5 2011, 20:17:57 Configuration Host type:i686-pc-linux-gnu Special build flags: build=prerelease warnings assertions concept-checks C Compiler: gcc C Compiler LyX flags: C Compiler flags: -Wextra -Wall -g -O2 C++ Compiler: g++ (4.5) C++ Compiler LyX flags: C++ Compiler flags: -Wextra -Wall -g -O2 Linker flags: Linker user flags: Qt 4 Frontend: Qt 4 version: 4.7.2 Packaging:posix LyX binary dir: /usr/local/bin LyX files dir:/usr/local/share/lyx_rc2 Ingar Pareliussen test_crash_rc2.lyx Description: test_crash_rc2.lyx
SV: Crash in rc_2
This is not a crash, but an assertion. Most likely caused by an error in the translation. i just fixed some problematic strings, but maybe not the last ones... http://www.lyx.org/trac/changeset/38259 I'll go through the translations tomorrow, as I am going throuh the pocheck anyway. Pavel: I'm working on nn.po not nb.po. but there are probably some errors in nn as well :) Ingar
SV: Crash in rc_2
Hi I just tried some more small things: You do not need to change the language to anything other than away from default. Removing the \gui_language from the .lyx/preferences makes it seg.fault on save as: # # 2nd MISC SUPPORT SECTION ## # \gui_language nynorsk also changing the language the first time seems to give the following error sometimes: Application asked to unregister timer 0x3604 which is not registered in this thread. Fix application. If this is related I do not know, I tried to find out when it is triggered, but were not able to find an absoulte pattern... Ingar
SV: SV: Crash in rc_2
Hi aren't you by chance compiling lyx yourself? Yes, I am. we could test whether switching threads off makes difference... I recompiled without threads, and the problem with save as is not changed. Same behavior as before. The thread problem was not seen of course. Ingar
SV: Error in Lyx
Hi Hi everybody, I get those messages during compiling of the Lyx file: It is difficult just from the error messages to see what is going on, could you make a small example file in lyx, just enough to produce the error, and send it to the list? Ingar
SV: Page numbering
Hi Marit, Usually the article-class should have page-numbering on all pages, so probably something has been changed from the standard, which might make it difficult to know exactly what is wrong. However, the most probably is that Document-Settings...-Page-Layout-Headings-Style is somthing other than Standard If it is set to Standard try fancy. If this does not fix it, you have to send us a copy of your document, you can remove all text, but leave all markup and code (we call it ERT on the list :) ) Ingar
SV: unwanted blank page
Hi I am adding som images (not in floats) to my appendix on a report I am writing, and suddenly there is a blank page. Have been trying to find out why, but I just can't. The subsection just jumps over a whole page :S Probably one of the pictures are to large for page, even if it does not look that way. Try to reduce the size of the images. It might also be some other issues. One might be that LaTeX does not know where the pagebreak should go if there is to little text. Try insert a Document-formatting-clearpage where you want a page break. If this does not work we would need the LaTeX-log :) hth, Ingar Pareliussen
SV: Is it possible to distribute long headings on two lines in the text but on only one in the TOC?
Hi There are many ways to do this, but I suggest that you use chapter* and format the linebreaks (CTRL+ENTER) where you want them and then i ERT add just after chapter* add: \addcontentsline{toc}{chapter}{This a long text with the name of the Chapter} HTH Ingar
Re: How to Split Boxes when Using Multicolumns?
Hi Hi all, I am working on a document, which uses multicolumns. I am also using several boxes (Minipage, Simple frame) as well. The problem is: everytime a box -which is near to the end of a column- doesn't fit that column, where it has to be, Lyx (v.2.0.0 on macintosh) automatically transfers it to the next column and leaves the previous column with a huge gap. Is there any way to prevent this by splitting the frames? From the LyX help: LYX’s detailed Figure, Table, Floats, Notes, Boxes and External Material manual 5.2.3 When you use the decoration simple rectangular frame and no inner box, you can allow page breaks within a box. Note that then, unlike other framed boxes, the frame always uses the whole column width, the box is set as its own paragraph, and \fboxrule and \fboxsep have no effect on this box type. The frame line thickness has the size of \FrameRule. hth, Ingar P
SV: tufte class query
hi In https://dl.getdropbox.com/u/502901/haskell.pdf can anyone tell which font they might be using especially for code examples? The pdf says that it uses: Computer Modern roman Pallatino roman Nimbus Sans Bera Sans Mono I would guess the last is used for the code. The tufte class title and author name is slanted. How to get those upright? Have you tried to use emphasis or the text style dialog. Worked for me in my test of tufte book... hth, Ingar
SV: Fwd:
Hi writing a document, I encounter problems with unusual spaces introduced after lowercase letters. Is there any solution to supress these spaces ? Difficult without the LyX file. I guess there could be several reasons. The second may be caused by justified text, you can check this by trying by changing it to left-justified. If it is still there it is not the justified text inserting extra space. The first one, and maybe the second one, is probably caused by an extra space that should be easy to remove. Delete the lowered text, making sure that the punctuation is at the end of the word, and insert the lowered m again without touching the spacebar. This should not make any extra space. If they are still there we need a small example lyxfile that demonstrates the behavior :). hth, Ingar
indexes in texindy and utf8
Hi I make multiple indexes with the texindy, to get correct Norwegian sorting I use utf8 in lyx and run the texindy with the commands: -L norwegian -C utf8 -M lang/norwegian/utf8.xdy from lyx. But this does not work. In the .tex file exported from lyx i get: \sindex[nor]{Åkerkål} and then somthing goes wrong for in the idx file you find a encoding translation: \indexentry{\r Akerk\r al|hyperpage}{12} and in the .idx file it is put under A instead of Å \lettergroup{A} \item \r Akerk\r al, \hyperpage{12} Does anyone encountered this problem and found a soulution? Ingar
SV: indexes in texindy and utf8
Hi I have solved my problem, and learned somethings along the way, as it often goes :). (I use LyX 2.0.1 for Linux, btw) To help others with indexes in Lyx. It seems that indexes are very fragile, especially if they are placed in other environments than standard, and one should also be aware that marking the insets with emphasis could break indexes. emphasis inside the insets are fine, it seems. Another stumbling block is that there are two places to put the options for the texindy, one in the lyx-setup and one in the document-setup. I did not have them in the document and thus the language option was not passed on to texindy. I also learned that texindy uses LIRC format internally even if the TeX-file is in UTF8 when pdflatex is used. And thus only the language option needs to be passed along (-L norwegian). In XeTeX texindy uses utf8 and may need -C utf8 in addition but I have not tested this... I hope this will be helpful for someone :). Ingar Pareliussen
SV: Footnotes in longtables
Hi -Opprinnelig melding- Fra: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] På vegne av Lastalda Felina Sendt: 10. oktober 2011 11:03 Til: lyx-users@lists.lyx.org Emne: Footnotes in longtables Hello! I'm trying to insert a footnote in a longtable. The embedded objects manual as well as several sources on the web tell me this should not be a problem, or that's how I read them. But when I do it, the little number shows up but the footnote text doesn't. (Footnotes outside the table work fine, though!) You can not put a footnote in the repeated (first)header in a longtable. If you do LateX would have to put one at each page, and instead removes the whole thing. If you place the footnote elsewhere in the table it works. Maybe you could use some of the suggestion on these pages to make things work for you, I have not tried :). http://wiki.lyx.org/LyX/Tables http://www.tex.ac.uk/cgi-bin/texfaq2html?label=footintab HTH, Ingar Pareliussen
SV: Marginal Notes Font Size
Hi I use this in the preamble: \let\oldmarginpar\marginpar \renewcommand\marginpar[1]{\-\oldmarginpar[\raggedleft\footnotesize #1]% {\raggedright\footnotesize #1}} and it works like a charm :). I guess you could use another size instead of footnotesize, but it seem to about right for me :) HTH Ingar Pareliussen
SV: Help Formatting and fonts... Beggining Thesis! Critical...
Hi I'm not certain I got everything, but it is a start. I used Helvetica as most ordinary people does not notice the difference between Helvetica and Arial. But Helvetica is a lot nicer imho. Most of the other tricks you can see in the lyx file. hth Ingar Anteproyecto.lyx Description: Anteproyecto.lyx
SV: Many huge pictures - Memory problems?
Hi Without the file it is difficult to know precisely what is going on. I would say that I do not think it is likely that it is a memory problem, at least my experience is that lyx and latex work fine producing books with many hundreds of images (tif in the 100MB range), making pdfs of 10GBs... :). But then again, I might have been lucky :) (./000-sdl-buch.out ! Undefined control sequence. l.47 \BOOKM This is Latex telling you that you have a command \BOOKM that it does not know. 3. To compile just a part but to tell LyX it should include counter and references results in the same error. I guess this is a good hint. My money would be on that in one of your references have a included something you shouldn't. :) And then again this should have been triggered in draft mode as well... Could it be something in your file-names or file paths? And then again it might me something else, as I said it is difficult to know without your file. And then I guess you should try, as always, reproducing the error with the smallest possible file. Also you could try exporting to latex and run it through latex manually, this might give you some more information as well... Ingar
lyx latex-import problem
Hi I have a couple of hundred abstracts from a web form that produces simple LaTeX files. I have cat'ed them into one big LaTeX file and imported it to LyX. This works for the most part, but I have problem with \sindex that needs a option i [index_name] which is not recognized by LyX and therefor not put into ERT. I tried to get search replace it, but when LyX search within ERT it uses all memory and even if it seems to do the right thing it has been working on the file for a couple of hours... (file is only 300k and the box has 4G of ram, so something seems to be amiss) Is there some advice on how to do this more efficient? I could do it manually, but automated is better :) Linux and LyX 2.0.2 Ingar
SV: lyx latex-import problem
Hi Please file a bug report if the file is not secret (or if you can easily create a non-secret one). For the time it is secret :), but in a couple of weeks it would not be so I'll have a look at it then. Yes. You have two options: 1) Add the line \sindex[]{translate} %splitidx.sty to the file lib/syntax.default in your LyX installation, and import the file Zagain. This should produce correct ERT. I will try this when the next iteration of abstracts are ready. 2) Get the current BRANCH_2_0_X from svn or wait for 2.0.4. This will create real index insets for \sindex. or this if the first does not work :) Ingar
SV: Placing figures beside text in Beamer
Surely there is a way to do this. you need to specify align bottom in settings for the two boxes. See the attached file.(you may have to change the picture if you have another file layout) Ingar Pareliussen example.lyx Description: example.lyx
SV: Beamer, Buttons, and Fancy Footers
hi I'm working on a presentation, and I'd like to have a footer with a copyright notice and page number (if there's room). You need to adjust the outer theme of the beamer presentation. You might almost get what you want by adding \useoutertheme[footline=authorinstitute]{miniframes} to the preamble To get pagenumbers I think you need to make your own outertheme. You could copy and rename the miniframes and add \insertpagenumber to the theme. For more info read the beamerguide where all this is explained, however, with 250 pages it is a bit daunting :). Ingar Pareliussen
Re: Problem compiling document to Postscript
Just a thought: could it be that your /tmp directory almost full? If lyx does not have enough space to copy and convert all the image files in the tmp directory strange things may happen. Ingar - Reply message - From: Påvel Nicklasson pavel223...@gmail.com To: lyx-users@lists.lyx.org lyx-users@lists.lyx.org Subject: Problem compiling document to Postscript Date: Wed, May 30, 2012 09:30 I managed to get a postscript file once from Kubuntu, but then I tried again LyX refused. I have converted images to .eps and sometimes back to jpg when the log states that it stopped at those images and still no luck converting to postscript. In Windows I have done the conversion several times without any problems. I am beginning to suspect that it is a bug in the software handling the process or in how memory is handled by the different systems. The file is rather big with many big images so perhaps this is the problem. I must be content with the postscript file made in Windows and I don't think that I am able to solve the problem on Kubuntu. As I said it is very strange since I can convert other very similar big manuscripts that also contain a lot of jpg images.
Re: Parting line in table float with multicol
må. 27. november 2006 00:25 skreiv Detlev Humann: Thank you, Uwe. Probably I made my example not clear enough. The problem remains: the columns are not balanced without multicol. I need all 3 columns to begin and end on one horizontal line. In each column the space between the entries should be the same. So I would be very happy to have a solution with multicol (and parting lines in a float). Is there any? If I have understood your question, it has to do with the correct sequence of commands. You have to set the columnseprule length before you start the multicol-environment. See the attchment. Ingar example9.lyx Description: application/lyx
Re: Aspell with Lyx-1.4.3 in Mandriva2007
ty. 5. desember 2006 19:50 skreiv Ramon Flores: Hi: I have a problem at spell-checking in Lyx-1.4.3 (qt front-end), that seems related with the character encoding. Aspell continues using iso-8859-x, the operating system, Mandriva2007, uses utf-8, and Lyx... well I am not sure. On the other hand I use KDE, and the default locale is pt_PT.UTF-8 At spell-checking from within LyX, with Portuguese or Spanish, the list of suggestions of Aspell is full of strange characters, something like: snip Any idea how to solve the problem, i.e. how to spell-check non-English texts within LyX? Make a file that contains: #!/bin/bash export LOCALE=iso8859-1 export LANG=pt_PT lyx and start that one instad of lyx. That works for norwegian anyhow :) Ingar
Re: Newbie windows install problem class scrbook is unknown
on. 17. januar 2007 02:16 skreiv yanni papastavrou: Hi, “Using the default document class, because the class scrbook is unknown” Install the koma-script package. Your miktex installation should have a package handler, find this and search for koma and install it. After that reconfigure LyX and you should be set. And also, at the top of the User’s guide, there is a big yellow message saying: “To export this document as pdf, ps or dvi, the LaTeX-package hyperref has to be installed. This package should be part of all popular LaTeX-distributions” Just ignore this, miktex should have hyperref installled, if not LyX will give you a error-message that it does not find hyperref. Ingar
Re: LyX-Code env, bash source code, and Bad character code (-1)
on. 17. januar 2007 12:47 skreiv Santiago Romero: Hi, snip Then I select View - DVI and I get the following error in each of the - (minus) signs of the above code: Bad character code (-1) QMAILDUID=`id~-u ~qmaild` A character number must be between 0 and 255. I changed this one to zero. (The same error for each of the - signs in my code). If I remember correctly, I've used - signs in my source code into the Lyx-Code environment for years and I never got this message ... Any idea of what I'm doing wrong? :? Well, I do not know why, but I think it might be a language issue. Try to set the LyX-Code as english. Ingar
Re: Deriving a new LyX environment
ty. 16. januar 2007 23:10 skreiv Steve Litt: On Tuesday 16 January 2007 16:41, Steve Litt wrote: On Friday 21 January 2005 13:52, Matej Cepl wrote: Steve Litt wrote: snip What I want to know is this: where does \enddescription come from? I just realized neither \endolddescription nor \enddescription are used subsequently. What's the purpose of the line: \let\endolddescription=\enddescription Hi Steve, I am no LaTeX guru, but as I understand the two first lines: \let\olddescription=\description \let\endolddescription=\enddescription are just there to rename the start and end names of the envirnoment so the old and unchanges envirnoment still can be used. from http://www.personal.ceu.hu/tex/defs.htm: \newenvironment, \renewenvironment \newenvironment{nam}[args]{begdef}{enddef} \renewenvironment{nam}[args]{begdef}{enddef} These commands define or redefine an environment. nam The name of the environment. For \newenvironment there must be no currently defined environment by that name, and the command \nam must be undefined. args An integer from 1 to 9 denoting the number of arguments of the newly-defined environment. The default is no arguments. begdef The text substituted for every occurrence of \begin{name} or \begin{name}{arg1, arg2, }; a parameter of the form #n in cmd is replaced by the text of the nth argument when this substitution takes place. enddef The text substituted for every occurrence of \end{nam}. It may not contain any argument parameters. so (re)newenvionment constructs both \begin{environment} and \end{envirnoment} and both begin and end has to be renamed or be replaced be the renewcommand I hope this help. And if I am mistaken I hope someone with a better grasp of LaTeX corrects me. :) Ingar
Re: Custom text in enumerated list
to. 18. januar 2007 17:29 skreiv John Yamokoski: Greetings everyone, I was wondering if someone could tell me how to do the following: I want to add some custom text to an enumerated list so that it comes out looking something like: Outcome 1. First item. Outcome 2. Second item. Outcome 3. Third item. Hi If you want a list with Outcome before the number in the list, that is not difficult and the answer is given here: http://tug.org/TeXnik/mainFAQ.cgi?file=list/enumLabel or for the lazy ;) add \renewcommand\labelenumi{Outcome \arabic{enumi}.} to your preamble. and you get Outcome 1. your text Outcome 2. your text etc. To get LaTeX to automagically add first item and second item etc spelled out is more tricky... Ingar
Re: Font changes
ty. 23. januar 2007 14:39 skreiv Julio Rojas: Thanks Jürgen but what I would like is that all titles use the Roman font. If I use: \renewcommand{\familydefault}{\rmdefault} use \setkomafont{title}{\rmdefault} to set the title font in Koma-script. If you want more information read pages 50-52 (3.2.1 Changing Fonts) in the scrguien.pdf that came with your koma-script package. Ingar
Re: Font changes
ty. 23. januar 2007 14:49 skreiv Ingar Pareliussen: ty. 23. januar 2007 14:39 skreiv Julio Rojas: Thanks Jürgen but what I would like is that all titles use the Roman font. If I use: \renewcommand{\familydefault}{\rmdefault} use \setkomafont{title}{\rmdefault} oops a bit too quick there, the correct command is: \setkomafont{title}{\rmfamily) or \normalfont, \rmfamily, \sffamily, \ttfamily, \mdseries,\bfseries, \upshape, \itshape, \slshape, \scshape etc. Ingar
Re: Font changes
ty. 23. januar 2007 16:11 skreiv Julio Rojas: \setkomafont{section}{\rmfamily} \setkomafont{section}{\Huge\rmfamily} or \Large or \huge Ingar
Re: BibTeX and master documents
ty. 30. januar 2007 18:09 skreiv John Hughes: I have just discovered the Insert-File-Child Document option in LyX, which is useful for inserting several chapter documents into one master document. However, if I use BibTeX references in my chapter documents, they don't appear correctly in the master output. The best output I have managed so far inserts a bibliography at the end of each chapter but the individual bibliographies include all the references from the entire document (i.e. from all of the chapters). Is there a way of achieving either individual bibliographies that only include the references cited in their own chapters or a single bibliography at the end of the master document? Hi. When I wrote my thesis I used child documents and included the different articles I had written as children. To get the bibliography at the end of each article I think you needed to use the chapterbib. Add \usepackage{chapterbib} in the preamble. Ingar
Re: Beamer Class Handout/Speaker's Notes
ty. 13. mars 2007 17:10 skreiv Rich Shepard: The beamer user guide has details on specifying a different class when producing handouts or speaker's notes from the slide presentation. But, those additional classes are not available within LyX ... at least, not on what's installed here. What's the recommended way to print the slides on paper? I'll make my notes on that since I won't have my notebook sitting at the podium with me for this next talk. I use the beamer article class. The layout file is in wiki: http://wiki.lyx.org/Layouts/LaTeX-beamer Here you get the slides printed as an article without changing the file, only change the documents class to beamer article. There seem to be a spurious ] after each frame, but it haven't bothered me enough to do anything about it, yet :) Ingar
Re: key bindings on mac os x
fr. 16. mars 2007 05:48 skive Stefano Baroni: Why don't the default key bindings on mac osx follow the standard mac convention? (e.g. italicising could be opt-i, rather than opt-e). Not that it is that important, but it would be much nicer ... Thanks Hi, you can change the key bindings to your liking: http://wiki.lyx.org/LyX/KeyboardShortcuts However, I think it is important for lyx to use, as far as possible, the same key bindings on the different platforms it runs. This helps people using lyx on many platforms, and make it easier to teach and help people to use LyX. When it comes to opt-e, it is not italicising the text, it is emphasising the text. It might not seem as a big difference most of the time, but try to set your normal font to an italicised font, and the difference will become apparent. :) Ingar
Re: How to use Lucida fonts
må. 7. mai 2007 13:52 skreiv Nicolás: Hi! I would like to use Lucida fonts in one document, but I do not know how to do it. First of all, I would like to know if LyX can be somehow configured to include Lucida (or any other font) among the available family fonts in the Text Style dialog. If this is not possible, does anyone know the appropriate latex command(s) to use Lucida? Changing to arbitrary fonts for documents in LyX isn't easy. This involves afaik working with TeX and might be a bit scary. But here is a howto with truetypefonts: http://www.radamir.com/tex/ttf-tex.htm However Lucida is easier as someone has done the work for you :). ftp://tug.ctan.org/pub/tex-archive/help/Catalogue/entries/lucida.html ftp://tug.ctan.org/pub/tex-archive/help/Catalogue/entries/psnfssx-luc.html You might find this page interesting also: http://www.pctex.com/Lucida_Fonts.html Ingar
SV: Font in output.
-Opprinnelig melding- Fra: nikunj . [mailto:nikunjk...@gmail.com] Sendt: 9. desember 2009 11:56 Til: lyx-users@lists.lyx.org Emne: Font in output. Hi, Isn't there a Times New Roman font available in lyx ? I can see Times Roman, but there is no 'Times New Roman' . My document class is article. I am using Lyx 1.6.4 Use the Times roman font, it has the same root (the Times newspaper) and are similar to Times New Roman. I think wikipedia has an article about the fonts if you are interested in the differences. Ingar
SV: How to replicate the EXERCISE format from the TeXbook inKomsacript and lyx?
-Opprinnelig melding- Fra: Richard Brown [mailto:rich...@guidedelearning.com] Sendt: 10. februar 2010 09:29 Til: lyx list Emne: How to replicate the EXERCISE format from the TeXbook inKomsacript and lyx? How can a comparative newby adopt the EXERCISE format that Donald Knuth uses in the TeXbook? (key issues: correct numbering of exercises by chapter, and related answers written in the manuscript next to each exercise but printed elsewhere in a separately placed key) I've adopted komascript book format, and am happy and learning. But if I could just put an EXERCISE with its ANSWERS in my manuscript, and have lyx cope with the rest I'd be over the moon... I'm very willing to learn, but slow on the uptake because it's all so new... as always, TIA Hi, You could use the excersise package: http://www.ctan.org/tex-archive/macros/latex/contrib/exercise/ It needs to be installed in your latex-distribution, and then in the document preamble put: \usepackage{exercise} However, this does not integrate the packege into LyX, but you can use the exercise environment as ERT (http://wiki.lyx.org/FAQ/ERT). If you are going to use it a lot you may look into making a module for the package to integrate it into LyX. http://wiki.lyx.org/Layouts/Modules Ingar Pareliussen
RE: Beamer question: Addional infos for Teacher
It sound like branches are good fit for your problem. Make the presentation. Make new branch in Document-Setting --Branches. Make the changes for the students, change the document layout to handouts. Make a new branch and add the extra for the teachers. Choose the right branch you want when making the different handouts and the presentation. Some addition info can be fount in the lyxwiki: http://wiki.lyx.org/LyX/Presentations http://wiki.lyx.org/LyX/HumanitiesLyX#toc4 hth, Ingar
RE: Footnote location
If I understand your request correctly you want the footnotes always to appear on bottom of the page? This is what usually should happen, if you do not use \raggedbottom or similar (irrc). Try to use the footmisc package. It is probably in your latex-installation, if not install it from ctan. (http://mirror.ctan.org/macros/latex/contrib/footmisc) Write something like this is Documents-Settings--LaTeX Preamble \usepackage[bottom]{footmisc} To learn more about the footmisc (it has a lot of options): http://mirror.ctan.org/macros/latex/contrib/footmisc/footmisc.pdf If this don't work we would need a small lyx file demonstrating the problem. And please do not top post. It makes it less likely for some of us older folks to reply ;-). (and it is much easier to follow a thread in mail-archive when inline quoting is used, just try it :)) hth, Ingar Pareliussen
RE: Problem with Lyx multirows
Hi, I'm in the process of writing my thesis in Lyx, but I'm pretty new to it. I've been having some problems with creating multirows in tables. I tried to follow the instructions from http://wiki.lyx.org/LyX/Tables, but can't get it to work in my own lyx document. Whenever I want to watch the PDF view an error saying Undefined control sequence pops up with the following description: \multirow {2}{2.5cm}{multi row}\tabularnewline The control sequence at the end of the top line of your error message was never \def'ed. If you have You need to declare the multrow package. In Documents-Settings--Preamble write \usepackage{multirow} hth Ingar
Translations to nynorsk and bokmål
@ Ingar: LyX needs your translation help. LyX 1.6.6 comes out in 2 weeks and perhaps you find the time to update no.po and/or nn.po. Yes, I know. Sadly my schedule is the next month is quite full (edit one book, write one bookchapter and my regular work on top), and it might be difficult to find the time. It would be easier to find the time if I knew that there were people in addition to me that used these languages :). (send me a email). I promise anyway that I will come back and do better job for the next version. And as I have the stage I want to thank everyone following the userlist, translators and programmers. We have somthing good going here :). all the best, Ingar
RE: Lower-res PDFs
Is there some way I could create lower-res PDFs, if I want to share them via the Net? Hi-res photos meant for printing can make for slow transmission via the Net. Thanks! FN If you have contex installed you can use the scripts there to downsample the finished pdf. /usr/share/texmf/scripts/context/ruby/pstopdf.rb --method=5 finished.pdf If you need smaller pdfs use --method=4 Ingar
RE: Ital-sticking to roman text
Hi Palatino should have special italic fonts, and sticking should not happen. Probably there is something wrong with your LaTeX installation, or you hav added some special LaTeX code that causes the sticking. To help you further we need a short lyx file and pdf file showing the problem. Ingar
RE: Ital-sticking to roman text
Ingar, my lyx file is attached... FN A small lyx file would have been better. I removed the pictures from the first 100 pages of your book and cut the rest of the book. When I compiled it through pdfTeX I did not observe the problem you describe (tried both acroread and kpdf). However, I see you use \microtype. I have had big problems using that command with some publishers. (the glyphs were up and down 1/2 line, randomly) I never observed it on linux, but the publishers mac made a right mess of it. So try removing \microtype and see if that helps, if not I need a small (less than 10 pages) lyx sample and a corresponding pdf file where the errors are pointed out in text. Ingar
SV: \male \female as ERT - error in LyX pdf export
-Opprinnelig melding- Fra: lyx-users@lists.lyx.org [mailto:lyx-us...@lists.lyx.org] På vegne av Wolfgang Engelmann Sendt: 22. juni 2010 11:17 Til: LyX Users List Emne: \male \female as ERT - error in LyX pdf export Hallo, I get with \male \female as ERT an error in LyX pdf export: Text: am 10. Juli am Brandalpynten 3 Nester mit brütenden Weibchen, in Ny Ålesund ein Nest mit 4 Eiern, zwischen dem 11. und 18.Juli bei der Ragna Hytta bis zu 20\male,20\female ... Explanation: \male is like the mars sign in astrophysics and used in Biology, \female venus sign... Did you put the \male and \female in a math-environment (CTRL-M)? Ingar
SV: Long Table
Hi Hi, I'm using excel2latex to transfer a table of 1700 rows and 14 columns to lyx and compile the document gives me error. The file is attached. Looking at your file, you have put the \begin tabualr behind a %, where latex can not find it. In addition there seem to be some more problems with linebreaks. However, cutting the tex-code out and put in a plain text file, put the \begin{tabular} on a new line. Importing the file into lyx with the import LaTeX(plain) works flawlessly. You probably need to use longtable, and change the orientation of the table, and perhaps change the size of the font to make it fit. Ingar
SV: Long Table
Hi I'm trying to change the margins of the page and it gives me lyx errors. The adustwith command should be written in one ERT-box to get rid of some extra }. if this does not work, try to write the command in a fresh ERT-box in lyx. How can I do this? How can I put just a page horizontal? And put a caption on the table if I import as Latex(plain)? Put the table in a table-float should give you the possibility to both rotate the table 90 degrees and add a caption. This is explained in the help.menu in the topic Embedded Objects. You may consider to change the margins for the whole documents in the Document-Settings. instead of using adjustwidth Ingar
SV: Done something wrong
You have a $ extra at the end of this line: \hline 30-Oct M H Devonport Services Won $ 10-9 $$ \\ Ingar
SV: Low res PDF
I think you can achieve this by supplying option 'draft' to the class. If this does not work, you can use pspdftools and the --downsample option. Ingar
translated po for 2.0, nynorsk
Hi I have translated the lyx 2.0 po file to norsk(nynorsk), however I have forgotten who I should send i to. Could someone enlighten me? :) Ingar
SV: buffer view pdf2
I'm a absolutely happy with using Lyx since a couple of month, but there is the following small problem: I can't convert pdf anymore. When I press the button, I receive no error message, just nothing happens. The only indication is buffer view pdf2 in the bottom line. -Lyx Version: 1.6.5 -Operating system: Mac OS X 10.5.8 There are many possibilities of what has gone wrong, but most likely the latex compilation dies unexpected. This may happen if you add raw TeX commands and forget to close the braces (}), but there might be other problems. Have a look in menu Documents-latex-log and see if there is some error or warning there. Also ensure that you have enough space on your disc to handle your document (especially if there are a lot of pictures in your document). Ingar
SV: hidden texts
Have a a look at branches in the user guide. Hopefully it will fit your need. Or you can use LyX-notes to hide the text when producing the text for the students. I guess I would have used branches if this should be done in every chapter, especially if the book should be produced several times... Ingar
SV: Is there a lyx style that bolds only the first sentence of a paragraph?
Hi Use paragraph style on the first sentence in each paragraph, and standard on the rest of the paragraph. In lyx you need to put an enter after the first sentence, but in the input the enter will disappear. As far as I know there is no automatic method, but it should be possible... Ingar
SV: Linguistics module and glosses
Hi Stig, I am no a linguist, however as far I as I understand the covington styles does not support these kinds of aligned symbols, and you have to us kludges to do it, or you could use gb4e and ERT. If you do want gb4e but can't stand ERT you could make a gb4e module for lyx... But this demands some understanding of lyx and latex. I attach a lyx file that demonstrates both gb4e and covington (using CTRL+space). Ingar covington_gb4e.lyx Description: covington_gb4e.lyx
SV: Including SAS output in latex
Hi . If I use sas.sty generated by SAS, where do I put it so Lyx will recognize it? I put in a folder and Refreshed FCNB on MikTex as per the help manual, but Lyx still couldn't find it. This file needs to be recognised by LaTeX and should go somewhere MikTeX could find it. I guess this works? The next you have top tell lyx that it needs to use it. This is done in the LaTeX preamble in Document-settings. just add on these two lines:: \usepackage{sas} \usepackage{longtable} This will give you the sas specific commands that are used by sas.( And the longtableenvironment, may not be necessary if you import the file). Even if Lyx did find it, I think there would still be some issues because of the code in the latex file. get a million compilation errors like misplaced \noalign with any of the four latex files that can be generated by SAS. I have attached tablesonly.tex because I think this is the simplest file and also simple.tex. Most of the errors should go away if you add the \usepackage{longtable}. However the latex you send was also wrong. it should look something like this: \begin{longtable}{|c|c|c|c|} \hline 1 1 1 \\ \hline 1 1 1 \\ \hline 1 1 \\ \hline \end{longtable} You must move the \begin{longtable} to the start of the file. So I guess you have to make sas produce correct latex to make it work, or massage it in an editor. Then it should be easy to import it as a latex file in lyx. Or you could copy it into a ERT-box. I hope this helps. Ingar
SV: Writing style thesis
Hi first of all I really have to say this program is awesome. I am coming from a completely different area (Speech-Language Therapy), and a friend of mine has convinced me to use lyx for my Masterthesis and then later the phd (so I am not good in computers). It is nice to hear that you enjoy LyX. I am at the moment formatting my thesis, and I want to have it looking like a thesis design with the first page just being title and University, name and Date. If I choose in the Document- Setting-toolbar, article, it marks the first page, if I take book, it does shift and split all those things. I would love to have it looking like in the WORD document which I attached. How could I solve this problem, is there somewhere a tool choosing thesis??? Or anything else? The word-document disappeared along the way. The front matter (title,author, date, publisher etc) is decided by the document-class as you have found. To summarize: an article can not have chapters and collect all the front matter on the first page along with the text. An report or book will generate front-matter over several pages as you expect in a book, the main difference is that the book-class starts every new chapter on a new right-hand page. So based on this, you should choose an document-class to begin with. A report or book probably. Then there are a lot of different styles, but two of the more versatile is memoir and koma-script. Both can be changed quite easily, just have a look in their documentation: http://www.tex.ac.uk/ctan/macros/latex/contrib/memoir/memman.pdf http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/scrguien.pdf (look for title page and front matter) These are supported in LyX and changed in the document setting. Steve Litt would probably suggest finger-painting the title page, and this has also some merit, but does demand some knowledge of LaTeX. However you may learn useful things by searching for his name in the LyX-mailinglist and take a stop by his webpage: http://www.troubleshooters.com/linux/lyx/ Another mayor problem, I have around 20 Questionnaires which I made former for my study in Word, and I would like just to copy them over (as they have powerpoint graphs on them as well) without loosing all the formatting done former in the appendix. Is there any change how I can do this. This is how the questionnaires look like. This disappeared along the way as well. Word and powerpoints are not really possible to salvage, sorry. Your best bet is to save them as pdf and add them to the your thesis by a tool like pdfpages. http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/pdfpages.pdf Hopes this helps. Ingar
SV: Changing Mouse Cursor Color
Hi Rich Changing the cursor theme works within KDE so it probably xfce is doing something wrong :) Have you tried a restart of xcfe after you change the cursor theme, just write xfwm4 --replace in a command line (Alt-F2), after closing all documents of course :) Ingar
SV: problem to import LaTex document class for conf. paper
Now, I managed to see 'ws-procs9x6' in the drop-down list but empty output file was generated because of many LaTeX errors that I not understand. I guess you have install the latex-class correctly and made the lyx layout file correct :). There is another latex class from world scientific publisher in the wiki: http://wiki.lyx.org/Layouts/Layouts It states that you need to turn off babel support to make it work. Maybe your latex-class have the same requisites. If not we would need to see the errors to help. Ingar
SV: SV: problem to import LaTex document class for conf. paper
The layout from world scientific in lyx's wiki is not same in term of page margin. The one for this particular conference is slightly smaller. If this is the only difference you could try to set the correct margins in lyx, this should take precedence over the margin set in the class. But I guess there are some other more subtle differences... However, new problem appear. When I try to change setting in Lyx:Document Setting to 'manuscript (ws-procs9x6)', a dialog box The document class ws-procs9x6 could not be loaded.' Then another dialog box 'Unable to set document class.' What happen actually? Hard to know, I do not know mactex, however, from your description LyX is locating the .layout file fine. But when exporting to LaTeX, LaTeX could not find the .cls file. This is usually caused by LaTeX not having found the .cls file. So you need to be certain that it lies somewhere LaTeX can find it, and that MacTeX has been reconfigured after the the .cls file is installed. Maybe this could be a start for further reading: http://macosx-tex.576846.n2.nabble.com/Adding-new-class-td2319812.html hth, Ingar
SV: LyX LaTeX Error: File `subscript.sty' not found
Hi Hello, Im getting this error on LyX 2.0.5 working on windows. The package is called fragments, if it is not in MikTeX you could instal it from CTAN http://www.ctan.org/pkg/fragments Ingar
SV: logo
-Opprinnelig melding- Fra: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] På vegne av Jörg Kühne Sendt: 13. januar 2013 20:34 Til: lyx-users@lists.lyx.org Emne: logo Dear Lyx user list How I could insert a simple logo which would be displayed on each page? Following user specified commands interferes with the default settings, see Have yuo tried somthing like this in the latex-preamble? \lhead{Author} \chead{} \rhead{\includegraphics[height=1cm]{pic}} \lfoot{} \cfoot{} \rfoot{\thepage} or for a two-sided dokument use \fancyhead[RO,LE]{\includegraphics[height=1cm]{pic}} \fancyhead[LO,RE]{Author} \fancyfoot[LE,RO]{\thepage} Where first letter is one of: E Even page O Odd page And second letter is one of: L Left field C Center field R Right field Ingar
changing the default image editor away from GIMP
Hi After the Gimp crew desided to change its userbase away from casual changing pictures to more powerusers in gimp 2.8, gimp has become a pain in the *** to use with LyX. (for more info https://mail.gnome.org/archives/gimp-user-list/2012-May/msg9.html) I think it is time to look for an alternative. For me showfoto has turned out fine, however i guess it should be an alternative that are can be used in windows and osx as well. Ingar
SV: changing the default image editor away from GIMP
Hi What do you use Gimp for? I don't think it's being used for any converters. Do you mean as an editor/viewer for images that you insert? This can be changed to anything you want by going to Tools Preferences File Formats Editor/Viewer I know :), I have done this on my computers, however, I think it is time to change the defaults as gimp no longer is suitable as the default image editor/viewer. (and it is a pain when you have 3 computers and have to change for each image format :) ) regards Ingar
SV: Problem with text being inserted randomly
Hi I have never experienced that problem :). I guess it should be easy to fix, however, we probably need a minimal lyx file showing the problem. Try taking halves out and see how far you can get the text down to. (try removing external material as well, and remember to make a back up copy ;) ) If you do not want to post the resulting file to the public list you can email it to me and I will have a quick look at it :) Ingar Pareliussen
SV: pleading paper
I gather my request is a difficult one. I have tried myself but don't know latex well enough. Perhaps will figure it out in a couple of months, but would like the ability to do both indexes and pleading paper in the same document now. Not difficult, just a bit tedious. I have made a small effort to convert the latex example, and then I cleaned it up to make it more like your pdf. I hope this works for you :) You have to change some bits in the LaTeX preamble to get the correct name and phone numbers and stuff :) Anyways if you have some question or some need for tweaks just ask. Remember that you will need to have the LaTeX package quoting to make it work. I never do these things for money, but if you want to do a donation to LyX I know those are always welcome, but by no means necessary. In a couple of months I am certain you can help answering questions on the list and that is what this list is all about, helping each other. ingar Pareliussen pleading_paper.lyx Description: pleading_paper.lyx pleading_paper2.lyx Description: pleading_paper2.lyx
SV: Fancy cover page?
To get the header I would probably make the white text, the blue background and the logo in gimp or similar and make it a picture and then include it as a ERT-box at the beginning of my document with something like: \begin{minipage}[t]{1mm}\vspace{-30mm} \includegraphics[height=1.5cm]{/full/path/logo-jpg} \end{minipage} remember to add \usepackage{graphicx} in preamble if this is your only picture. Ingar Pareliussen
SV: SV: pleading paper
Hi Indexes is often very fragile, and the pleading paper template are quite crude. The problem is that an index pages are very different to a normal page (two columns etc). However, by moving the numbering to after the index I were able to get it working. If you need the numbering on the index pages as well, it would be more tricky... And you probably either need to find another way, or ask someone with more LaTeX-index knowledge than me. Ingar john.lyx Description: john.lyx
SV: Need some help figuring out LyX
I think you'll never be satisfied with LyX if you try to shoehorn LyX into something it is not, a LaTeX-editor. You are right that most what is written about LyX is not written for people coming from LaTeX, this might be a shortcoming from the LyX community. But I guess the most important is that understand that LyX is not meant to write LaTeX, but documents. For one coming from LaTeX the biggest change moving to LyX would be the removal of the LaTeX markup from the document. The reason of removing the markup is to read and write the text more quickly, even math. If you find writing the markup and reading/writing the document a non-issue you should get a LaTeX editor, there are plenty. Even online: https://www.writelatex.com/ However, if you want to try LyX as a document processor here is some thought from your experience: The preamble is a bit tucked away, but usually you only change it initially, when you have set it up you make a template of the document and use that when you start a new document. If you have a lot of beamer macroes there is several ways to integrate those into LyX. you could make a layout-file that magically incorporates the macros into the preamble and give you the macros along with the rest of the beamermacros in the gui. Or you could make a template and add the macros in the preamble and use ERT to access it (however, as you remarked this will stand out from the rest of the document, as it is only meant as a last resort), or you could add them as local styles connected to the document, but integrated into the menus. What to chose is down to the type of macros, I guess. It is all about the best way of hiding the markup away. Ingar Pareliussen
enhancment request for tex2lyx
When importing norwegian texts latex encoded special charcter get translated.{\aa} - {å} and [\o} - {ø} etc. However, the { and } are imported as ERT and makes the text very hard to read. Could tex2lyx removed the extra {} when importing? Ingar
SV: enhancment request for tex2lyx
I am not sure how to do this reliably. I do not see why one could use the markup you describe, except maybe in bibliography. The problem is that it is never possible to assume safely that a macro does not change its environment (think {\bf}). Hm: I'm probably missing something here. :) I thought that tex2lyx translated these macros away from macros to char-encodings, and thus is should be, in these cases, safe to remove the braces as part of the conversion. However, one could argue that the writer2latex is doing it wrong as you probably should write \ae{} instead of {\ae}. (tex2lyx does remove the {} after \ae{}, but I see how that is more safe to remove) Sadly this is not only a problem in the bibliography as we use these characters a lot. :) Ingar Dewey, J. (2001), Erfaring og tenking. (f{\o}rst utgitt 1916). I Dale E. L.: \emph{Om utdanning. Klassiske tekster.} Oslo: Gyldendal Norsk Forlag. Fuglestad, O. L. \ Wadel, C. C. (2011), Feltarbeid som prosess. Ny metodedel. I Wadel, C., Fuglestad, O. L. \ Wadel, C. C.: \emph{{\textquotedblright}Og kven si skuld er det?{\textquotedblright}} (s. 175-268). Gimlemoen: H{\o}yskoleforlaget. Furu, E. M. (2007), \emph{Rak l{\ae}rerygg: aksjonsl{\ae}ring i skolen}. Dr. grad avhandling, Universitetet i Troms{\o}. Halvorsen, A. (2009), Praktikerforskning -- legitimt og nyttig bidrag i kunnskapsutvikling. I Johnsen H. C. G, Halvorsen, A og Repstad, P (red.): \emph{{\AA} forske blant sine egne}. Kristiansand: H{\o}yskoleforlaget. Jarvis, P. (2002), \emph{Praktiker-forskere: utvikling af teori fra praksis}. K{\o}benhavn: Alinea. \ae{} \o{} \aa{} \AE{} \O{} \AA{} {\ae} {\o} {\aa} {\AE} {\O} {\AA}
indexing in 2.1
Hi I have some problems to get indexing to work in LyX 2.1. The attached lyx file should generate the same list as presented (in the same order) in Norwegian, however, it seem to be sorted in english in the index. It has been a couple of months since I last tried to index somthing, but then it worked flawessly out of the box :). Am I missing something? I see there is a new option field in the document-setting but putting -L norwegian for xindy, as a test, gave me no index :) I am on Linux and texlive 2013. Ingar index_21.lyx Description: index_21.lyx
RE: indexing in 2.1
Hi I have solved the problem, but I think there probably is a bug in LyX 2.1. The answer was to restart lyx (this is important or else xindy will fail). open the LyX file and chose texindy and add -L norwegian in the option field. This made lyx call texindy with the correct language. There seem to be something going on with the encoding as well... This with texindy and -L norwegian Reading indexstyle... Loading module /tmp/olOnxWlTf7... Loading module lang/norwegian/latin1-lang.xdy... Loading module lang/norwegian/latin1.xdy... Finished loading module lang/norwegian/latin1.xdy. Finished loading module lang/norwegian/latin1-lang.xdy. Loading module tex/inputenc/latin.xdy... Finished loading module tex/inputenc/latin.xdy. Loading module texindy.xdy... and this with standard. Reading indexstyle... Loading module /tmp/JsqoZC927W... Loading module lang/general/latin9-lang.xdy... Loading module lang/general/latin9.xdy... Finished loading module lang/general/latin9.xdy. Finished loading module lang/general/latin9-lang.xdy. Loading module tex/inputenc/latin.xdy... Finished loading module tex/inputenc/latin.xdy. Loading module texindy.xdy... regards, Ingar
RE: indexing in 2.1
Hi The question is, since your document setting had Standard for the index processor, which setting you have in Tools Preferences Output LaTeX. Maybe this settings changed since you used index last time. I do not know what it was in earlier versions of LyX, I have never changed it, now it says texindy and no extra options. Ingar
Some thoughts on lyx 1.6.1
Hi, I have just upgraded from 1.5.3 (lyx has evolved so rapidly lately that I have not been able to keep up, good show everyone!). All in all I love lyx 1.6.1 as I have loved every release of lyx, however there are a couple of things that I am not loving as much :). First of all 90% of my work in lyx is using beamer, and I know this isn't the main focus for lyx, however it realy shines with beamer and I just could not keep up with my lectures without it, so here it goes. 1. I not able to use the keyboard to select a box or an ERT. If you use shift+crtl+right-/left-arrow and release shift+ctrl the box/ert is no longer selected. 2. I think I understand the rationale that when one continue to add options the problem of how to present the options grow. This imples that some thing get more difficult to do. And as I use beamer I use some of the more esoteric options more often than other people do. Typically a presentation consists of 30-40 slides, each slide contains 2-3 boxes and between each box there is a horisontal-fill. Inserting a horisontal fill have increased from 3 mouse clicks to 6 mouse clicks. And changing the size of a box has changed from 3 to 4 clicks is adds up. I guess the horisontal-fill problem could be fixed by me adding a horisontal-fill button to the toolbar. And the box setting problem could been aliviated if there had been an option to use these settings as default like we have in the document settings, usually have all boxes at 33% or 50% depending on the document. Any thoughts? Is there a better way to reduce the number of mouse clicks? Would it be possible to add a change default button to box settings and maybe graphics setting also? Ingar
SV: Some thoughts on lyx 1.6.1
For graphics settings, you should have a look at graphics groups: just give a group name to several graphics insets and they share the same parameters. This could be extended to other insets. Is that what graphics groups are? I was a bit mystified about that option. 'Initialize group name' isn't all that clear :). Neither is 'group name to be set up from the current parameters'. How about: Add group name. The insets that have the same group name will share the same parameters ?. Could it be an idea to have a drop-down box instead, with the different groups to choose, and 'add new group' button? Ingar
SV: Some thoughts on lyx 1.6.1
This is supposed to work. Did you read this in the RELEASE_NOTES? Caveats when upgrading from earlier versions to 1.6.x --- Sadly, deleting the .lyx directory did not help. However, I am using kde 4.2beta and I guess that is the cause. So, sorry about that :). I'll use the mouse for now, and research it a bit more later on if it doesn't disappear by itself in a couple of months :). 2. I think I understand the rationale that when one As for the hfill: * Ctrl-space / context-menu / select hfill or create your own binding for this. I'll make my own binding. However, it is qute that protected space now have it's own context menu :) Ingar