Re: LinguistLyx: label on group of subexamples
2010/2/24 Maria Gouskova : > I haven't found a way to do it using Covington numbering, which is > what I usually use. You can either have all examples numbered as > sub-examples and not have a group heading for them, or just use crude > manual numbering for your (a) and (b) sub-examples and use automatic > labeling and cross-referencing for the main example. > > Maria > > 2010/2/23 Petr Šimon : >> 2010/2/23 Jürgen Spitzmüller : >>> Petr Šimon wrote: I have in mind something like this: \begin{example} \label{1} \begin{enumerate} \item a \label{1a} \item b label{1b} So that I can refer to all the subexamples by 1 and to each individually, 1a and 1b. I would hope that when I add a subexample a group label would be inserted. Is this possible from the layout definitions? I tried to look at it briefly, but it wasn't clear to me how that would be possible. >>> >>> No. You will need to use ERT. >>> >>> Jürgen >>> >> >> Ok, thanks. >> Perhaps it could be added later? Right now the subexamples make little >> sense when they can't be referred to as a group. >> Petr >> > Thanks Maria. Yes, I know. I was wandering if it would be possible to do it the way subequations are done (only without the "super" equation). I came up with the following, only if it was possible to do it without ERT \renewcommand{\labelenumi}{(\arabic{enumi})} \begin{enumerate} \item \label{1} \begin{enumerate} \item \label{1a} example a \item \label{1b} example b \end{enumerate} \end{enumerate} (\ref{1}) and (\ref{1a}) and (\ref{1b}) Petr
Re: LinguistLyx: label on group of subexamples
I haven't found a way to do it using Covington numbering, which is what I usually use. You can either have all examples numbered as sub-examples and not have a group heading for them, or just use crude manual numbering for your (a) and (b) sub-examples and use automatic labeling and cross-referencing for the main example. Maria 2010/2/23 Petr Šimon : > 2010/2/23 Jürgen Spitzmüller : >> Petr Šimon wrote: >>> I have in mind something like this: >>> \begin{example} \label{1} >>> \begin{enumerate} >>> \item a \label{1a} >>> \item b label{1b} >>> >>> So that I can refer to all the subexamples by 1 and to each >>> individually, 1a and 1b. >>> I would hope that when I add a subexample a group label would be inserted. >>> Is this possible from the layout definitions? I tried to look at it >>> briefly, but it wasn't clear to me how that would be possible. >> >> No. You will need to use ERT. >> >> Jürgen >> > > Ok, thanks. > Perhaps it could be added later? Right now the subexamples make little > sense when they can't be referred to as a group. > Petr >
Re: Pre-reform Russian characters in LyX
Hi Andrey, The general answer for LaTeX is here: http://www.christopherculver.com/en/computing/latexocs.php and here: http://www.christopherculver.com/en/computing/latex.php I'll leave it to people who know how the encoding works in LyX, since that can be tricky. The other problem is that Unicode fonts do not automatically work in LyX--it can only render symbols it knows about. Whatever you discover, we should add some instructions on the LinguistLyX page (http://wiki.lyx.org/LyX/LinguistLyX). Maria On Tue, Feb 23, 2010 at 7:09 PM, Andrey wrote: > (here is another attempt to write to this mail list; I am not sure my first > attempt worked; this time I am writing from the blog at Gmane) > > > Dear LyX usres, > > This is my first post to this mailing list, and it's been just a couple of > days > since I started exploring LyX to see if it can suit my needs. I'm also > Latex-illiterate. So please be patient with me ;-) > > I am writing papers that are mostly in Russian, but may have some passages in > English or in Greek. I didn't have any problems typesetting texts in these > languages in LyX under Ubuntu Karmic. The problem arouse when I needed to > insert > some obsolete Russian characters that were used before the 20th century. > Namely, > the letters yat (http://en.wikipedia.org/wiki/Yat), fita > (http://en.wikipedia.org/wiki/Fita) or izhitsa > (http://en.wikipedia.org/wiki/Izhitsa): if I insert them to LyX via Character > Map, LyX refuses to produce a pdf, complaining that it can't recognize these > characters. Is there any way to solve this problem? > > Thanks in advance, > > Andrey > > >
Pre-reform Russian characters in LyX
(here is another attempt to write to this mail list; I am not sure my first attempt worked; this time I am writing from the blog at Gmane) Dear LyX usres, This is my first post to this mailing list, and it's been just a couple of days since I started exploring LyX to see if it can suit my needs. I'm also Latex-illiterate. So please be patient with me ;-) I am writing papers that are mostly in Russian, but may have some passages in English or in Greek. I didn't have any problems typesetting texts in these languages in LyX under Ubuntu Karmic. The problem arouse when I needed to insert some obsolete Russian characters that were used before the 20th century. Namely, the letters yat (http://en.wikipedia.org/wiki/Yat), fita (http://en.wikipedia.org/wiki/Fita) or izhitsa (http://en.wikipedia.org/wiki/Izhitsa): if I insert them to LyX via Character Map, LyX refuses to produce a pdf, complaining that it can't recognize these characters. Is there any way to solve this problem? Thanks in advance, Andrey
Re: LinguistLyx: label on group of subexamples
2010/2/23 Jürgen Spitzmüller : > Petr Šimon wrote: >> I have in mind something like this: >> \begin{example} \label{1} >> \begin{enumerate} >> \item a \label{1a} >> \item b label{1b} >> >> So that I can refer to all the subexamples by 1 and to each >> individually, 1a and 1b. >> I would hope that when I add a subexample a group label would be inserted. >> Is this possible from the layout definitions? I tried to look at it >> briefly, but it wasn't clear to me how that would be possible. > > No. You will need to use ERT. > > Jürgen > Ok, thanks. Perhaps it could be added later? Right now the subexamples make little sense when they can't be referred to as a group. Petr
Re: Branches in 1.6.5 on OSX…
On Tue, Feb 23, 2010 at 1:15 PM, rgheck wrote: > On 02/23/2010 12:59 PM, BH wrote: >> >> I'm not sure what the German translation would be here, but here's how >> to find it in English: >> >> Document> Settings> Branches (the option just above LaTeX Preamble >> on the left-hand side of the dialog). >> >> Then on the right side, you can type a new branch name into the text >> box at the top (labeled "New:") and then click on the "Add" button >> immediately to its right to add that branch. >> >> Is that enough to find it? >> >> > > I think the issue was that "Branches" wasn't appearing under > Document>Insert. Does it not appear if no branches are defined? Sorry, I misunderstood. If branches are already defined, it should be Insert > Branch > [branch name]. (I'm attaching a sample document that works for me, just in case.) Here are some troubleshooting questions: Are you, by any chance, using any non-standard characters (with accents, e.g.) in your branch names? Are you using anything other than the default .ui file? If you quit LyX, move aside the preferences file in your user directory, and then restart LyX, do things work? BH (Note: I'm bringing this back onto the list.) #LyX 1.6.6svn created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass article \use_default_options true \begin_modules hanging todonotes biblatex enumitem \end_modules \language american \inputencoding auto \font_roman palatino \font_sans helvet \font_typewriter lmtt \font_default_family default \font_sc true \font_osf true \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize 11 \spacing single \use_hyperref true \pdf_bookmarks true \pdf_bookmarksnumbered true \pdf_bookmarksopen true \pdf_bookmarksopenlevel 3 \pdf_breaklinks true \pdf_pdfborder true \pdf_colorlinks true \pdf_backref false \pdf_pdfusetitle true \pdf_quoted_options "urlcolor=blue" \papersize letterpaper \use_geometry true \use_amsmath 1 \use_esint 1 \cite_engine natbib_authoryear \use_bibtopic false \paperorientation portrait \branch test branch 1 \selected 0 \color #ff \end_branch \branch test branch 2 \selected 1 \color #ff \end_branch \leftmargin 1.5in \topmargin 1.5in \rightmargin 1.5in \bottommargin 1.5in \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \author "" \author "" \end_header \begin_body \begin_layout Standard \begin_inset Branch test branch 1 status collapsed \begin_layout Standard This is test branch 1. \end_layout \end_inset This is outside any branch. \begin_inset Branch test branch 2 status open \begin_layout Standard This is test branch 2. \end_layout \end_inset \end_layout \end_body \end_document
Re: a few "chapter*"s between TOC and chapter 1 (NOT part of TOC)???
It would appear that on Feb 23, Helge Hafting did say: > This works for document class "book": > > Immediately after the TOC (before your chapter*), an ERT box with > \pagestyle{plain} > This gets rid of the running header you didn't want. You will still > get "contents" on TOC pages, if your TOC spans more than one page. > > The first normal text in the first chapter should start with an ERT box with: > \pagestyle{headings} > in order to reinstate the running headers that you probably want for your > numbered chapters. -snipped. . . .. . . .. .stuff Thanks Helge, that was even better than my old notes. I'm betting that most of the details I'd need if'n I chose to get "fancy" with those headings could be found by googleing (or since I don't like google tracking me scroogleing) some of the keywords in your reply. That would likely lead to LaTeX solutions which for me would simply be wrapped in ERT boxes... But as it is, You already gave me the exact solution I wanted for the current project. Thanks! -- | ~^~ ~^~ | <*> <*> Joe (theWordy) Philbrook | ^ J(tWdy)P | \___/ <>
Re: [help]: lyx 1.6.5: document classes not configured
franck.me...@orange-ftgroup.com schrieb: Thanks for your answer. I am behind a firewall but the installation of Lyx on my desktop computer (also behind the firewall) was OK: I had just to install after manually the dictionaries. I will try this evening at home, without firewall, but it seems to be another problem (otherwise my desktop installation wouldn't work). Currently (at my office), I've just retried but I have the same problem. I have attached the (French, sorry) error message... Same symptom in the texclass.lst: all layouts set to "false". This means that MiKTeX was not correctly installed. As I wrote, the safest way is to use inly the LyX installer, that automatically installs MiKTeX for you and also does the configuration for you. NOTE, you must have Admin permissions for a proper installation. regards Uwe
RE: [help]: lyx 1.6.5: document classes not configured
Thanks for your answer. I am behind a firewall but the installation of Lyx on my desktop computer (also behind the firewall) was OK: I had just to install after manually the dictionaries. I will try this evening at home, without firewall, but it seems to be another problem (otherwise my desktop installation wouldn't work). Currently (at my office), I've just retried but I have the same problem. I have attached the (French, sorry) error message... Same symptom in the texclass.lst: all layouts set to "false". Regards, Frank. Frank Meyer France Telecom R&D/TECH/ASAP(LD128) 2 avenue Pierre Marzin 22307 Lannion Cedex E-mail : franck.me...@orange-ftgroup.com Telephone : +33 (0)2 96 05 28 89 http://www.francetelecom.com/rd -Message d'origine- De : uwesto...@web.de [mailto:uwesto...@web.de] Envoyé : mardi 23 février 2010 14:04 À : MEYER Franck RD-TECH-LAN Cc : lyx-users@lists.lyx.org Objet : Re: [help]: lyx 1.6.5: document classes not configured franck.me...@orange-ftgroup.com schrieb: > The second one, my laptop, didn't have latex so I installed miktex 2.8 > (complete version) first. > Then I have installed Lyx 1..6.5 but I had a problem: all the layouts > are not recognized so I can't view neither print documents ("document > class not available" says Lyx when loading the file) It is important that you have an open Internet connection when installing LyX. This assures that all LaTeX text classes are installed. The easiest way to fix your problem would be to - uninstall LyX _completely_ - uninstall MiKTeX _completely_ - uninstall Aspell and its dictionaries (if this program was installed) - open an Internet connection - reinstall LyX using the complete version of this installer: http://wiki.lyx.org/Windows/LyXWinInstaller - (drink a coffee or make a break because the installation process will take several minutes) This will automatically installs MiKTeX and all other third-party programs needed by LyX (spell checker, image converter, etc.) regards Uwe * This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. Messages are susceptible to alteration. France Telecom Group shall not be liable for the message if altered, changed or falsified. If you are not the intended addressee of this message, please cancel it immediately and inform the sender. <>
Re: resize table, caption
Mike Martell wrote: Hi: I have tables that are too large to output to one table. I am trying to make the tables fit one page and have found tips to use in ERT \resizebox{0.95\textwidth}{!}{% When I do this, the table is the right size. However, the caption of the table no longer shows up. Is there a way to resize the table and have the caption still work? Many thanks, Mike I'm using 1.5.6 on a MAC If this is inside a table float, just put the initial ERT block inside the float (not outside the float), along with the table and the closing brace (in ERT). From what I've seen on the web, \resizebox is designed to squish graphics, not text. What usually works for me is to highlight the entire contents of the table (just the table, not including the caption) and reduce the size of the font. You didn't indicate whether your tables are too wide, too long or both. For tables that fit the page width but are too long, you can switch to a longtable. /Paul
Re: [help]: lyx 1.6.5: document classes not configured
franck.me...@orange-ftgroup.com schrieb: The second one, my laptop, didn't have latex so I installed miktex 2.8 (complete version) first. Then I have installed Lyx 1..6.5 but I had a problem: all the layouts are not recognized so I can't view neither print documents ("document class not available" says Lyx when loading the file) It is important that you have an open Internet connection when installing LyX. This assures that all LaTeX text classes are installed. The easiest way to fix your problem would be to - uninstall LyX _completely_ - uninstall MiKTeX _completely_ - uninstall Aspell and its dictionaries (if this program was installed) - open an Internet connection - reinstall LyX using the complete version of this installer: http://wiki.lyx.org/Windows/LyXWinInstaller - (drink a coffee or make a break because the installation process will take several minutes) This will automatically installs MiKTeX and all other third-party programs needed by LyX (spell checker, image converter, etc.) regards Uwe
Re: LinguistLyx: label on group of subexamples
Petr Šimon wrote: > I have in mind something like this: > \begin{example} \label{1} > \begin{enumerate} > \item a \label{1a} > \item b label{1b} > > So that I can refer to all the subexamples by 1 and to each > individually, 1a and 1b. > I would hope that when I add a subexample a group label would be inserted. > Is this possible from the layout definitions? I tried to look at it > briefly, but it wasn't clear to me how that would be possible. No. You will need to use ERT. Jürgen
Re: LinguistLyx: label on group of subexamples
2010/2/23 Jürgen Spitzmüller : > Petr Šimon wrote: >> (I am not on the list, please CC) >> Hello, >> would it be possible to change the subexamples so that a group label >> is provided. In fact would it be possible to automatically add a label >> for each subexample (just empty label with prefix such as "ex:" ) and >> one for the group? > > I do not quite understand what you want, but you can redefine the subexamples > environment. The original definiton is: > > \newenvironment{subexample}{% > \begin{example}\begin{enumerate}[leftmargin=1.7em] > \renewcommand\theenumi{\alph{enumi}} > \renewcommand\labelenumi{(\theenumi)} > \renewcomman...@enumi{\theequation\,}}% > {\end{enumerate}\end{example}} > > >> Many thanks >> Petr > > > Jürgen > I have in mind something like this: \begin{example} \label{1} \begin{enumerate} \item a \label{1a} \item b label{1b} So that I can refer to all the subexamples by 1 and to each individually, 1a and 1b. I would hope that when I add a subexample a group label would be inserted. Is this possible from the layout definitions? I tried to look at it briefly, but it wasn't clear to me how that would be possible. Many thanks Petr
Re: [help]: lyx 1.6.5: document classes not configured
franck.me...@orange-ftgroup.com wrote: Hi, I have installed Lyx 1.6.5 on 2 computers (both on Windows xp). The first one was with an old Miktex 2.7 and I have no problem. The second one, my laptop, didn't have latex so I installed miktex 2.8 (complete version) first. Then I have installed Lyx 1..6.5 but I had a problem: all the layouts are not recognized so I can't view neither print documents ("document class not available" says Lyx when loading the file) When I look at the texclass.lst, all layouts seem to be set at "false". I 've just tried to desinstall Miktek and Lyx, and to reinstall (first Miktex then Lyx as previously): but I still have the same problem (and the same texclass.lst, see attached file). When I use Texworks (installed with Miktex) on a short example the layouts (book, article) seem to work and Texworks generates the pdf, so Miktex doesn't seem to be the problem? What's wrong with my installation? Most likely, LyX could not find Miktex at the time LyX configured itself. If things have changed, just do a Tools->Reconfigure in LyX, and it might fix itself. If it still doesn't find anything, check that the miktex executables is in the PATH. (LyX does not try to find it anywhere else.) Test: Open a cmd.exe window, try a command like "pdflatex". If that fails, you have found the problem. Correct the PATH so it includes whatever folder the miktex program files resides in. Then, restart LyX and do the Tools->Reconfigure. Restart LyX again, and it ought to work. Helge Hafting
Re: Howto disable use of temporary directory?
Andreas Steffens wrote: Hi, i'm using LyX with MikTex on Windows and am having problems embedding images using \includegraphics after specifying a search path using \graphicspath. Even setting absolute path doesn't work. Found a couple of posts on the net that hinted turning off temporary directory and generating temporary files in the document directory while only using relative paths with \graphicspath would help. Unfortunately i can't find a setting in LyX that allows to turn off temporary directory. Already tried nulling tempdir which didn't work. Anyone had the same issues and knows a solution or workaround? Why do you need to do this? If you insert graphichs with Insert->graphichs (instead of using \includegraphics directly) then the temp directory shouldn't cause you trouble. Are you sure you need to use \includegraphics? Helge Hafting
Re: a few "chapter*"s between TOC and chapter 1 (NOT part of TOC)???
Joe(theWordy)Philbrook wrote: The sequence is the TOC followed by a tex code box containing: \mainmatter \pagenumbering{roman} Then a few short chapter*(s) That are not part of the numbered chapters. And it is not desired for them to be labeled as "contents" in the output (pdf) Then there is another tex code box containing: \pagenumbering{arabic} And finally Chapter 1... How can I stop "output" from inserting the word "contents" into the the page header of the "chapter*{s} without relocating them to before the TOC, nor after chapter 1??? This works for document class "book": Immediately after the TOC (before your chapter*), an ERT box with \pagestyle{plain} This gets rid of the running header you didn't want. You will still get "contents" on TOC pages, if your TOC spans more than one page. The first normal text in the first chapter should start with an ERT box with: \pagestyle{headings} in order to reinstate the running headers that you probably want for your numbered chapters. The page styles: empty - nothing, not even a page number plain - a page number, nothing more headings - page number and running header (with the chapter name, usually) myheadings- user defined by using more ERT (\markright or \markboth whenever you want the running headers to change) fancy - Even more user defined. Maybe you want a logo in the heading, a colored page number, anything goes but more ERT is needed. Note that the \pagestyle command is only necessary if you want running headers in the normal chapters but not elsewhere. If you don't want any running headers at all, just turn them off in document settings, page style set to "plain". No need for ERT then. To style a single page differently: \thispagestyle{plain} in an ERT box anywhere on that page. Helge Hafting
Re: Adding a text box over an image?
KimberlyQ wrote: I am a new Lyx user, hoping to write a technical manual using this wonderful program. Beyond the introduction and first chapter, most of the entire manual consists of a table on every page. The table covers the full page. The table itself is the same on every page. Only the data within the table changes from page to page. I have created all the table pages and data in Ms Word. I can insert them into Lyx as a screenshot image. The body of the manual will be one or more text boxes overlaying the table on each page. The text boxes explain the changing data in the table. Of course, I could finish my book by adding the text boxes to the tables in Word, but I was hoping to take advantage of the formatting, indexing, and cross-referencing ease of Lyx. My research as a novice Lyx user indicates that adding a text box to an image can't be done. Before I give up and stick with Word for this project, I wanted to ask the group of experts if it is possible, or if any workable alternatives come to mind. I assume your table-images doesn't cover the width of the page, so that there is room for text on the side? Or at least some of the image is blank, so you want text to go there? One approach: Insert a box, and put the image inside that. Set the box width to something less than 100% of the line length. (For example, 60%) This leave room for another box beside it, whose width you set to the remaining (such as 40% of the line length.) Don't use "textwidth" because that includes margins. But boxes are not supposed to stick into the margins. Type your text inside the second box. Note that the table-image can be wider than the box containing the image. In that case, the box of text will partially overlay the image. This will work if your image is blank in the overlapping region. Or if you don't mind text on top of the image. (Lightly colored image with low detail doesn't ruin the text.) I would not recommend combining word & lyx this way, as LyX can do better most of what word can do anyway. But since you already has these table-images . . . perhaps you don't want to re-create the tables in LyX. You may want to consider a LyX-only solution the next time though, as LyX has good support for tables. Using boxes is only one way of setting text and images/tables side by side. The box way doesn't work well with page breaking, but I got the impression that the text on one page is supposed to match the image on that page. So you probably don't want automatic page breaking here anyway? Some other ways: * Use the multicol package, have images in one column and text in another. * Use a float per table-image, and put the accompagnying text inside the float. Either under the image, or to the side by using boxes. Useful to get automatic cross-referencing, as figure references (almost) require floats. * use text-wrap floats to put text to the side of images. This doesn't always work though, so might be trick for a book that contain lots of these constructs. * Use a two-cell table. Put the image inside one cell, and the text in the cell beside it. * If you re-do the tables in LyX, simply have an extra table cell with the text inside it. This text-cell could be large. Helge Hafting
[help]: lyx 1.6.5: document classes not configured
Hi, I have installed Lyx 1.6.5 on 2 computers (both on Windows xp). The first one was with an old Miktex 2.7 and I have no problem. The second one, my laptop, didn't have latex so I installed miktex 2.8 (complete version) first. Then I have installed Lyx 1..6.5 but I had a problem: all the layouts are not recognized so I can't view neither print documents ("document class not available" says Lyx when loading the file) When I look at the texclass.lst, all layouts seem to be set at "false". I 've just tried to desinstall Miktek and Lyx, and to reinstall (first Miktex then Lyx as previously): but I still have the same problem (and the same texclass.lst, see attached file). When I use Texworks (installed with Miktex) on a short example the layouts (book, article) seem to work and Texworks generates the pdf, so Miktex doesn't seem to be the problem? What's wrong with my installation? Thanks in advance, Frank. <> Frank Meyer France Telecom R&D/TECH/ASAP(LD128) 2 avenue Pierre Marzin 22307 Lannion Cedex E-mail : franck.me...@orange-ftgroup.com Telephone : +33 (0)2 96 05 28 89 http://www.francetelecom.com/rd * This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. Messages are susceptible to alteration. France Telecom Group shall not be liable for the message if altered, changed or falsified. If you are not the intended addressee of this message, please cancel it immediately and inform the sender. textclass.lst Description: textclass.lst