Hyperref in Yap, LyX 1.4.3-5,WindowsXP
For internal links (e.g. in Table of Contents, in Index entries) there are no links at all in Yap, I use Miktex2.5 . However pdflatex does the right job. In the same file in LyX 1.3.6-4 every link was live in Yap, in Miktex 2.4.something. Could you give me some hints? Regards, Sandor
LyX to latex encoding
When exporting a LyX file to latex (pdflatex) in MacOSX, the .tex file is encoded using Western MacOS Roman but the .tex file declares \usepackage[latin1]{inputenc} (it should be applemac and not latin1). I tried to specify applemac with no luck: one can only choose between latin1, latex default (ie nothing), and some codepages (no cp1252). Does anyone know how to do this? (of course, one solution is to set the encoding to 'latex default' then manually add inputenc in the preamble) Is there a way to teach LyX to use common characters when possible while exporting? Mine transforms double quotes to \char`\"{} instead of using the " char. Latin1, applemac, or whatever encoding you use, the double quote exists for all encoding and there is absolutely no need to make this transformation. Another problem with quotes: I checked the document option to use English opening and closing double quotes (``and '') but when exported to latex, my .tex file contains those "quotes" (straight). It would be great if either LyX exports ``quotes'' like this (latex style), or "quotes" like this and uses csquotes package, making double quotes active.
Re: Hyperref in Yap, LyX 1.4.3-5,WindowsXP
Sandor Szabo schrieb: For internal links (e.g. in Table of Contents, in Index entries) there are no links at all in Yap, I use Miktex2.5 . However pdflatex does the right job. For this you need to load the LaTeX-package hyperref in the document preamble. Perhaps this was lost by one of your modifications of the document. regards Uwe
Re: Hyperref in Yap, LyX 1.4.3-5,WindowsXP
Uwe Stöhr wrote: Sandor Szabo schrieb: For internal links (e.g. in Table of Contents, in Index entries) there are no links at all in Yap, I use Miktex2.5 . However pdflatex does the right job. For this you need to load the LaTeX-package hyperref in the document preamble. Perhaps this was lost by one of your modifications of the document. regards Uwe Sorry, but not at all. I have a small math document(without any modification), and wrote the hyperref into the preamble. Maybe it is a MikTex2.5 problem. I write the problem to a Miktex forum. Thanks, Sandor
Re: LyX to latex encoding
> "Kevin" == Kevin Paunovic <[EMAIL PROTECTED]> writes: Hello, Kevin> When exporting a LyX file to latex (pdflatex) in MacOSX, the Kevin> .tex file is encoded using Western MacOS Roman but the .tex Kevin> file declares \usepackage[latin1]{inputenc} (it should be Kevin> applemac and not latin1). I tried to specify applemac with no Kevin> luck: one can only choose between latin1, latex default (ie Kevin> nothing), and some codepages (no cp1252). Does anyone know how Kevin> to do this? I thought mac os x was latin1-based. Do you really need applemac? Kevin> Is there a way to teach LyX to use common characters when Kevin> possible while exporting? Mine transforms double quotes to Kevin> \char`\"{} instead of using the " char. This is a particular case, meant to work around the fact that babel/german likes to make " active for various uses (as a shortcut macro, actually), and this obviously does not fit well with what we want to do. We should definitely find a better solution, but nobody took the time to do that. Kevin> Another problem with quotes: I checked the document option to Kevin> use English opening and closing double quotes (``and '') but Kevin> when exported to latex, my .tex file contains those "quotes" Kevin> (straight). It would be great if either LyX exports ``quotes'' Kevin> like this (latex style), or "quotes" like this All the quotes entered inside LyX will be in the form you describe above. Kevin> and uses csquotes package, making double quotes active. I do not know much about this package, but packages that make characters active make me nervous as far as LyX is concerned. JMarc
Re: Having my own layout removes navigation in LyX 1.4.2
Steve Litt wrote: [...] Thanks Jean-Marc, It worked Both of the preceding alternatives brought back my navigation. In the first one, Format 2 was unnecessary -- I could toggle correct navigation strictly with Input numerport.inc. Interestingly, once I got navigation working right, even when I removed numreport.inc instead of giving no navigation, it gave this sort of single level navigation where all chapters and sections were grouped at a single level. I guess there's an intermediate file that needs to be built before you can see *any* navigation. The Input book.layout alternative, alone, seemed to work just like Format 2;Input stdclass.inc;Input numreport.inc alternative. What does Format 2 do? It tells which version of the layout-file language this layout file conforms to. Before 1.4 there were no such specification. 1.4 brought new options, the .layout files aren't entirely compatible, so "Format 2" is used to tell that it uses the new syntax. Obviously, there are more options in the new format. You can have layout files that aren't format 2 - that is nice if you sometimes use lyx 1.3 too. They can then use the same layout files, with all the limitations of the old format. I believe that when LyX 1.4 uses an old layout file, it does an implicit conversion to format 2 each time. If you include other layout files (.layout or .inc) from the lyx-1.4 distributions, then you really should use "format 2" because all that stuff is in format 2. I don't know if mixing layout formats might have some bad side effects. Using format 2 also avoid that conversion. What is numreport.inc? My file says: # This include file contains label definitions for a report-like numbering. That is, it defines how numbering of sections, chapters and so on should work inside LyX. I guess the "TocLevel" statements defines how navigation will work - i.e. things with same TocLevel is grouped, and things with a higher level goes deeper in the menus. Is there any way of having my table of contents go down only to the chapter level, but have navigation go all the way down to subparagraphs? I seem to remember that was possible in earlier LyX versions. This I don't know. The document settings has a place where you set what will show in the ToC and what will be numbered. These two settings are independent. I don't know if Navigation ties to one of them. Helge Hafting
Re: Entering foreign language characters
Neal Becker wrote: I'm using lyx-1.4.3 on Fedora with kde. What is the easiest way to enter a few special accented characters? My language and document is english, but let's say I'd like to enter a few spanish symbols. I know I can do this with special latex, but is there a more generic (and newbie friendly) way? * Pasting from somewhere else is an option. Open the userguide, use menu Navigate->List of tables->"Table 3: latin1 character set" You'll find quite a few symbols there. Or you can paste stuff in from anywhere else you find these symbols - such as emails, webpages and such. * Set your keyboard up so it will generate what you need. I use the dead key option (in the Xserver setup) So I can type ô by typing ^o, ä by typing "a and so on for all combinations of letters and accents. If I need just the ^ without a letter under it, I first type the ^ and then a space. (I.e. "accented space") An acceptable tradeoff, as lonely accents isn't used that much. And it is nice in that you don't need to know where everything is, "accent followed by letter" is easy to remember. If you only use a few symbols over and over, consider mapping them to unused function keys. That way, you don't disturb anything on the regular keyboard, but you have to remember which F-key does what. Some keyboards comes with extra "gaming keys" or "multimedia keys", these may be useful too if your xserver recognise them (test with xev) Helge Hafting
Re: Having my own layout removes navigation in LyX 1.4.2
Helge Hafting wrote: > You can have layout files that aren't format 2 - that is nice > if you sometimes use lyx 1.3 too. They can then use the same > layout files, with all the limitations of the old format. > I believe that when LyX 1.4 uses an old layout file, it does an > implicit conversion to format 2 each time. That is true. > If you include other layout files (.layout or .inc) from the > lyx-1.4 distributions, then you really should use "format 2" > because all that stuff is in format 2. I don't know if mixing > layout formats might have some bad side effects. Using format 2 > also avoid that conversion. There are no bad side effects, you can mix formats as you want, as long as each file either has the "Format 2" line (if it is in format 2) or does not have such a line (if it is in format 1). Georg
Re: LyX adds packages declaration I already use
Kevin Paunovic wrote: I've found the worst solution ever to solve my problem. Please forgive me and light a candle for me. Rest of the mail is coded in rot13 so common people won't read it for their own sake. 1) YlK -> Cersrerapr -> Ynathntr naq lbh erzbir rirelguvat (\hfrcnpxntr{onory}, \fryrpgynathntr{&&ynat} naq hapxrpx rirelguvat). abj, ab zber onory co 2) (guvf vf gur orfg cneg, V qrfreir n gevny sbe guvf), bcra YlK ovanel jvgu n urkn rqvgbe, svaq nfpvv fgevat 'tencuvpk' (naq bgure cnpxntr lbh jnag gb erzbir) naq ercynpr nyy gur punef ol n fvzcyr fcnpr. Guvf jvyy cebqhpr guvatf yvxr \hfrcnpxntr{ } va lbhe qbphzrag, ohg ng yrnfg vg jbexf. Ouch. I can see why you want to encrypt that. :-/ Consider export->latex and then run a little script that kills the lines you don't need. . . Helge Hafting
Re: LyX to latex encoding
Kevin Paunovic wrote: > When exporting a LyX file to latex (pdflatex) in MacOSX, the .tex > file is encoded using Western MacOS Roman but the .tex file declares > \usepackage[latin1]{inputenc} (it should be applemac and not latin1). If your exported text file is in applemac encoding then it comes from an invalid LyX file, since LyX files cannot be encoded in applemac encoding. LyX simply passes most characters 1:1 to the .tex file. You can easily convert your .lyx file from applemac to latin1 (e.g. with recode or iconv), and then everything will be perfect. Does by any chance your LyX file come from tex2lyx? I ask because tex2lyx doe not know anything about encodings, and will happily create invalid LyX files. > I tried to specify applemac with no luck: one can only choose > between latin1, latex default (ie nothing), and some codepages (no > cp1252). > Does anyone know how to do this? (of course, one solution is to set > the encoding to 'latex default' then manually add inputenc in the > preamble) > Is there a way to teach LyX to use common characters when possible > while exporting? There will be a way in 1.5 for most characters, but there is no such way in 1.4. Georg
Re: LyX adds packages declaration I already use
Kevin Paunovic wrote: On Feb 7, 2007, at 12:00 PM, Jean-Marc Lasgouttes wrote: "Kevin" == Kevin Paunovic <[EMAIL PROTECTED]> writes: Kevin> The problem now is that LyX automatically adds things like: Kevin> \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} Kevin> \usepackage{graphicx} \usepackage{babel} Kevin> so, as you might expect, this leads to crashes at compilation. Kevin> How to get rid of all those things LyX adds? I am not sure I understand. Do you really need to keep the things that are included in the preamble? Why? I would prefer, in my case, to have an option to tell LyX to stop putting things in the preamble except for the documentclass. LyX is smart enough to add required packages (ex. graphicx when a graphic is included) but unfortunatly, it can't see if a package was (or will be) already loaded by the user. In my case, I have a mystyle.sty file that contains: %% mystyle.sty \RequirePackage[pdftex]{graphicx} \RequirePackage[cmyk,fixpdftex,pdftex]{xcolor} %% Since you seem to like doing weird stuff . . . Lyx can do things differently depending on what kind of latex compiler you use. "latex" or "pdflatex" (view/export->latex, or view/export->pdflatex) I don't know if the layout files support this, but the "external inset" definitely support it, so that graphichs formats can be included in different ways for latex and pdflatex. The reason is that these two simply support different formats. pdflatex takes png which latex don't understand, and so on. So I think you can get this part working the way you want by inputting your graphichs as external insets - even if they happen to be in a supported format. You can then write your own file external_insets that will generate different \usepackage commands depending on wether pdflatex or latex is used. You can then have "pdf-ish" options and packages for pdf generation, and "dvips-ish" options and packages for ordinary latex. If you have no "plain" graphichs in the document, then lyx won't include "graphicx" on its own. So if your external inset want "graphics" instead, or some obscure option, then you will get that. Clearly, the external inset way won't solve all such problems, but you can at least have nice graphichs that work the way _you_ want with both pdflatex and dvips. Set the external inset up right and you will even get a view of the graphics inside the lyx editor. All this without editing the lyx executable. :-) Yep, I appreciate this feature, really. It will be perfect if one can have a checkbox that enable or disable this feature, and if the package names are written in a config file (and not hard-coded in the executable). For example, LyX uses "graphicx". You know that there is also a package called "graphics". What if one prefer using this one? And what if a new package called "gfx" is released on CTAN and improve greatly the old graphicx? This only is a suggestion, but giving a customization method here would be great. These cases are solvable by using a custom external inset that specifies "graphics" or "gfx", and then you don't use any "plain" graphics in the document so that LyX leaves out "graphicx". The external inset is just as easy to use as plain graphics - after the one-time job of customizing .lyx/external_templates Helge Hafting
Re: Do you like justified or ragged right?
John Kane wrote: It depends :) I think that there was some research in the 1980s suggesting that ragged is easier to read. I think, though, that it may depend on the width of the paper. I was having the devil of a time reading a research proposal my boss had handed me. It is justified and takes up almost the entire page. Margins are only about 1.4 cm left and right. Out of frustration, I finally did a cut & paste from Word to Lyx and set it in a two column format (APA) which is easy to read albeit justified. Justification alone does not guarantee readability. Overly long lines is indeed one way of ruining things. The rule of thumb is no more than 66 letters per line, which is why LyX seems to be a bit wasteful on normal paper. If you want to save paper, use columns or smaller paper. But note that very small margins might look ugly even if readability doesn't suffer. I think the wider the text the more useful ragged is since it serves as a cue to where the eyes are to move left after reaching the end of the line of text. Actually, you don't need ragged _right_ for this. The eyes don't have to find anything on the right side - you just follow the text. Your eyes need to find the correct place on the left side though, so ragged left could help a lot. Much more than ragged right. But it is terminally ugly - the reason why no document ever is printed right justified. Centered is even better - but yuck. Ragged right is also ugly - but people are more used to it. Many word processors (msword included) makes a too bad job of justification - that's why they don't default to justified. Latex does this well if the lines aren't too short. I'd say - use justified unless you have a very clear reason for not doing so. Ragged right has its place, but I don't think matters of taste alone is enough to warrant it. Extremely narrow columns might be a reason, but even newspapers tend to justify... Helge Hafting
Re[2]: Perl script for renumbering equations
http://blogs.ittoolbox.com/unix/bsd/archives/open-source-licensing-bsd-and-gpl-13990 fwiw, Alan Isaac
Re: Perl script for renumbering equations
Gerard Ateshian wrote: > Hi, > > I wrote a perl script, renumber.pl, for renumbering equations in LyX > (attached). It will take existing equation labels and renumber them > according to the section heading. For example, in Chapter 1, section > 4, subsection 2, equations will be labeled 1.4.2.1, 1.4.2.2, etc. > The script will not create equations labels where there were none. I don't understand why one would want to do this. Can you give an example? The reason why you use labels for referencing in LyX and LaTeX is that you don't want to think in terms of section numbers. I label my equations in such a way that I can remember the name, e.g. \label{maxwell-curl-diff}. Then it does not matter at all in what section it is. Georg
Re: Perl script for renumbering equations
On Friday 09 February 2007 10:20, Georg Baum wrote: > Gerard Ateshian wrote: > > Hi, > > > > I wrote a perl script, renumber.pl, for renumbering equations in LyX > > (attached). It will take existing equation labels and renumber them > > according to the section heading. For example, in Chapter 1, section > > 4, subsection 2, equations will be labeled 1.4.2.1, 1.4.2.2, etc. > > The script will not create equations labels where there were none. > > I don't understand why one would want to do this. Can you give an example? > The reason why you use labels for referencing in LyX and LaTeX is that you > don't want to think in terms of section numbers. I label my equations in > such a way that I can remember the name, e.g. \label{maxwell-curl-diff}. > Then it does not matter at all in what section it is. Here's one reason. Throughout all my books I have a graphic that represents binary search. It's used several times per book, in several chapters. If I named them all descriptively, they'd clash. But if I named them both descriptively AND according to where they occur, that problem's solved. SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: Perl script for renumbering equations
Steve Litt wrote: > Here's one reason. Throughout all my books I have a graphic that > represents binary search. It's used several times per book, in several > chapters. If I named them all descriptively, they'd clash. But if I named > them both descriptively AND according to where they occur, that problem's > solved. Yes, that is a good reason to add something section related to the label. But why should that be the section number, and why not the section name? Georg
Re: install and export
Levente Zsíros wrote: I've got exportation issues. I couldn't export to HTML or .odt, only to .tex or LaTeX. I'm running Lyx on WinXP. I was told, that Lyx doesn't like spaces in directory names, The Windows version of LyX does a good job (perhaps not perfect, but close) of dealing with spaces in paths. I have it installed under C:\Program Files with no problems. and as it was installed to the "Program Files" folder, I thought that's the problem, and tried to reinstall into another folder. Now Lyx doesn't start, instead it gives an error message: "LyXTextClassList::Read: no textclasses found!" (I've installed MikTex and ImageMagic, which came bundled) 1. Go to wherever you have your LyX user directory (default should be C:\Documents and Settings\\Application Data\LyX1.4.x) and delete everything there. Then try to start LyX again and see if you get the same error. 2. If so, open a DOS window in the parent of the user directory (C:\Documents and Settings\\Application Data if you're sticking to the default), and run \python\python.exe \Resources\configure.py (and cross your fingers). If that doesn't work, post the output (from the DOS window) here for further diagnosis. /Paul
Re: install and export
On 2/9/07, Levente Zsíros <[EMAIL PROTECTED]> wrote: I've got exportation issues. I couldn't export to HTML or .odt, only to .tex or LaTeX. I think tex4ht with miktex is broken (or tex4ht is generally broken). Last time I tried, tex4ht can not convert a simple tex file to openoffice format, with missing main XML file, and an error message like zip command is not found. odt format is a zipped XML file. tex4ht depends on a system zip utility to zip its output. I do not know where to get a zip executable though. Bo
Re: linenumbers for two-columns text?
Tobias Lochner wrote: Hello I'm trying to get linenumbers on a text with two columns using the "lineno"-package. It works fine for the left column, but for the right column the linenumbers are getting mixed with the text of the left column. I wished I could have the linenumbers for the left colum on the left side and the ones for the right column on the right side. Is this possible? Thank you. Bye, lochi Try \usepackage[switch*]{lineno} in the preamble. (Or omit the * to switch which margin is used.) Source: section 3.1 of the lineno manual. /Paul
cross-referecing to a section title in another file; is it possible?
I am still fighting with LyX/LaTeX cross-referencing facilities. While it's rather clear how to use it to refer to page numbers and equation numbers within a single file, I am in the dark on how: 1. cross-referencing to a separate file 2. having the section title appear in the cross-referencing document. In fact, I am not even sure whether (1) or (2) are possible at all. Here is what I am trying to do (assuming it's not clear enough from the above description): Say I have chapter 1 and chapter 2 in chapter1.lyx and chapter2.lyx. Chapter1.lyx has sections: 1. Introduction 2. First section 3. Third section Somewhere in Chapter 2, I want to say: "as I showed in ***Chapter 1, Third section***, etc.etc." I I would like to have the text between *** as a cross-reference, so that if I move the Chapter1.lyx section around, change its title, etcetera, the reference would still work. Is there any way to do this? Thanks for the help. Stefano __ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-8768 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand
Re: Referencing an appendix
curtis osterhoudt wrote: > However, when I reference them from within the text, the cross-references > always say "Chapter C" or whatever, instead of "Appendix C". Is there a > LyX-based way of providing an "Appendix" label, or should I do something > like using "\chapapp" in some ERT, instead? If the latter, how would I do > that relatively easily? In preamble, define: \newrefformat{app}{Appendix~\ref{#1}} and use the "app:" prefix in the appendix labels. Jürgen
Re: cross-referecing to a section title in another file; is it possible?
Stefano Franchi wrote: I am still fighting with LyX/LaTeX cross-referencing facilities. While it's rather clear how to use it to refer to page numbers and equation numbers within a single file, I am in the dark on how: 1. cross-referencing to a separate file 2. having the section title appear in the cross-referencing document. In fact, I am not even sure whether (1) or (2) are possible at all. (1) is easy, but not terribly intuitive. You need to have both files open in LyX: The one you want to reference and the one you're editing. Now Insert>Cross-reference, and at the top of the dialog box is a drop-down box marked "Labels in". Choose the target file, and the labels in that file will appear in the dialog box. Here is what I am trying to do (assuming it's not clear enough from the above description): Say I have chapter 1 and chapter 2 in chapter1.lyx and chapter2.lyx. Chapter1.lyx has sections: 1. Introduction 2. First section 3. Third section Somewhere in Chapter 2, I want to say: "as I showed in ***Chapter 1, Third section***, etc.etc." I would like to have the text between *** as a cross-reference, so that if I move the Chapter1.lyx section around, change its title, etcetera, the reference would still work. Is there any way to do this? You may have to play with the reference format to get exactly what you want. By default, I think you'll get something like "Section 1.3". References to section titles are handled by the nameref package, which is part of the hyperref bundle, so you presumably already have it. (I found this by searching for "cross-reference" on ctan.org and following a few links.) To reference a section by label, just do \nameref{label} in ERT. That, of course, is the downside: There's no native support for this in LyX. (I've file an enhancement request. It seems like this would be useful to a lot of people.) You'll need to add \usepackage{nameref} to the preamble, too. That said, however, there is a kludge via the prettyref package. If you're not otherwise using it, you can define \newrefformat{sec}{\nameref{#1}} and get the title if you choose "Formatted reference" in the cross-ref dialog box and your label is of the form "sec:label". If you are already using prettyref, you can define another format: \newrefformat{sect}{\nameref{#1}} but then you'll have to put both labels: "sec:label" and "sect:label". Richard -- Richard G Heck Jr [EMAIL PROTECTED] http://bobjweil.com/heck/
Custom export
I have LyX 1.3.7 installed on an XP platform. The problem is that I cannot figure out how to get LyX to export LaTeX in a custom way. What I really need is for LyX to work from one directory and output to another. The custom export was my approach to resolve this. Does anyone have an alternative way to solve this or advice as to how to get LyX to write LaTeX files into a directory different from where the .lyx files reside? TIA. BTW, I searched for many combinations of the keywords "custom" and "export" and found nothing that worked. This could be because I used invalid syntax or whatever. So if you have a suggestion like write something to my preferences, please let me know exactly what to write, because I have tried to no avail. Sincerely, -Jaime
Re: Referencing an appendix
curtis osterhoudt wrote: > However, when I reference them from within the text, the cross-references > always say "Chapter C" or whatever, instead of "Appendix C". Is there a > LyX-based way of providing an "Appendix" label, or should I do something > like using "\chapapp" in some ERT, instead? If the latter, how would I do > that relatively easily? In preamble, define: \newrefformat{app}{Appendix~\ref{#1}} and use the "app:" prefix in the appendix labels. Jürgen Works brilliantly, Jürgen. Thank you. --Curtis Don't get soaked. Take a quick peak at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather
Re: Do you like justified or ragged right?
On typographical matters, I generally seek advice from two sources: Robert Bringhurst, The Elements of Typographical Style James Felici, The Complete Manual of Typography Bringhurst, who generally prefers justified lines in setting books, has this to say about the occasions when ragged right might be preferable: "In justified text, there is always a trade-off between evenness of word spacing and frequency of hyphenation. The best available compromise will depend on the nature of the text as well as on the specifics of the design. Good compositors like to avoid consecutive hyphenated line-ends, but frequent hyphens are better than sloppy spacing, and ragged setting is better yet. Narrow measures - which prevent good justification - are commonly used when the text is set in multiple columns. Setting ragged right under these conditions will lighten the page and decrease its stiffness, as well as preventing an outbreak of hyphenation. Many unserifed faces look best when set ragged no matter what the length of the measure. And monospaced fonts, which are common on typewriters, always look better set ragged, in standard typewriter style. A typewriter (or a computer-driven printer of similar quality) that justifies its lines in imitation of typesetting is a presumptuous machine, mimicking the outer form instead of the inner truth of typography. When setting ragged right from a computer, take a moment to refine your software's understanding of what constitutes an honest rag. Many programs are predisposed to invoke a minimum as well as a maximum line. If permitted to do so, they will hyphenate words and adjust spaces regardless of whether they are ragging or justifying the text. Ragged setting under these conditions produces an orderly ripple down the righthand side, making the text look like a neatly pinched piecrust. This approach combines the worst features of justification with the worst features of ragged setting, while eliminating the principal virtues of both. Unless the measure is excruciatingly narrow, it is usually better to set a hard rag. This means a fixed word space, no minimum line, and no hyphenation beyond what is inherent in the text. In a hard rag, hyphenated linebreaks may occur in words like self-consciousness, which are hyphenated anyway, but they can only occur with manual intervention in words like hyphenation or pseudosophisticated, which are not." Bruce
Re: cross-referecing to a section title in another file; is it possible?
Hi Richard, thanks for the help, However I cannot even get to step 1. More precisely: On 9 Feb, 2007, at 12:42 PM, Richard Heck wrote: Stefano Franchi wrote: I am still fighting with LyX/LaTeX cross-referencing facilities. While it's rather clear how to use it to refer to page numbers and equation numbers within a single file, I am in the dark on how: 1. cross-referencing to a separate file 2. having the section title appear in the cross-referencing document. In fact, I am not even sure whether (1) or (2) are possible at all. (1) is easy, but not terribly intuitive. You need to have both files open in LyX: The one you want to reference and the one you're editing. Now Insert>Cross-reference, and at the top of the dialog box is a drop-down box marked "Labels in". Choose the target file, and the labels in that file will appear in the dialog box. I had gotten this far, but I cannot get it to work. I do see the label I defined in the other document and I can insert it into the cross-referencing doc, but the pdf file produced has question marks in it where the reference should appear. And indeed the LaTeX log complains of an undefined reference. So I assume I am doing something wrong, but I don't know what. I read in the LaTeX companion that external references are possible with the package xr. Is this the package LyX uses to achieve a similar effect? When I look at the raw LyX file I have produced, I can only see a simple \ref command. I must be missing something here. S. __ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-8768 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand
Re: cross-referecing to a section title in another file; is it possible?
Below Stefano Franchi wrote: Hi Richard, thanks for the help, However I cannot even get to step 1. More precisely: On 9 Feb, 2007, at 12:42 PM, Richard Heck wrote: Stefano Franchi wrote: I am still fighting with LyX/LaTeX cross-referencing facilities. While it's rather clear how to use it to refer to page numbers and equation numbers within a single file, I am in the dark on how: 1. cross-referencing to a separate file 2. having the section title appear in the cross-referencing document. In fact, I am not even sure whether (1) or (2) are possible at all. (1) is easy, but not terribly intuitive. You need to have both files open in LyX: The one you want to reference and the one you're editing. Now Insert>Cross-reference, and at the top of the dialog box is a drop-down box marked "Labels in". Choose the target file, and the labels in that file will appear in the dialog box. I had gotten this far, but I cannot get it to work. I do see the label I defined in the other document and I can insert it into the cross-referencing doc, but the pdf file produced has question marks in it where the reference should appear. And indeed the LaTeX log complains of an undefined reference. Sorry, I forgot to say something before. I was assuming that Chapters 1 and 2 (from your example) would be included in a single file on which you then ran LaTeX. If you're doing that, then it should be working. If not, send me that LyX files and I'll see what I can do. If, on the other hand, you are trying to compile JUST Chapter 2, with references also being made to Chapter 1, then you will see "?" unless you use the xr package. This isn't a huge issue, as it will be correct when the whole thing is compiled. But, as I said, you can use xr if you need to do so. Richard -- Richard G Heck Jr [EMAIL PROTECTED] http://bobjweil.com/heck/
Re: install and export
Is there any website where I could transform from tex to another formats? Configuring Lyx/LaTeX related stuff seems me a pain in the ass. 2007/2/9, Bo Peng <[EMAIL PROTECTED]>: On 2/9/07, Levente Zsíros <[EMAIL PROTECTED]> wrote: > I've got exportation issues. I couldn't export to HTML or .odt, only to .tex > or LaTeX. I think tex4ht with miktex is broken (or tex4ht is generally broken). Last time I tried, tex4ht can not convert a simple tex file to openoffice format, with missing main XML file, and an error message like zip command is not found. odt format is a zipped XML file. tex4ht depends on a system zip utility to zip its output. I do not know where to get a zip executable though. Bo -- Zsíros Levente
Re: install and export
Thanks 1) worked. (However I was wondering, why did it say those files are used by another process. There were python.exe, lyx.exe and a lot of processes running in the background, but there parent application died. ) 2007/2/9, Paul A. Rubin <[EMAIL PROTECTED]>: Levente Zsíros wrote: > I've got exportation issues. I couldn't export to HTML or .odt, only to > .tex > or LaTeX. I'm running Lyx on WinXP. I was told, that Lyx doesn't like > spaces > in directory names, The Windows version of LyX does a good job (perhaps not perfect, but close) of dealing with spaces in paths. I have it installed under C:\Program Files with no problems. > and as it was installed to the "Program Files" > folder, I > thought that's the problem, and tried to reinstall into another folder. Now > Lyx doesn't start, instead it gives an error message: > > "LyXTextClassList::Read: no textclasses found!" > > (I've installed MikTex and ImageMagic, which came bundled) > 1. Go to wherever you have your LyX user directory (default should be C:\Documents and Settings\\Application Data\LyX1.4.x) and delete everything there. Then try to start LyX again and see if you get the same error. 2. If so, open a DOS window in the parent of the user directory (C:\Documents and Settings\\Application Data if you're sticking to the default), and run \python\python.exe \Resources\configure.py (and cross your fingers). If that doesn't work, post the output (from the DOS window) here for further diagnosis. /Paul -- Zsíros Levente
Re: cross-referecing to a section title in another file; is it possible?
On 9 Feb, 2007, at 3:20 PM, Richard Heck wrote: Below Stefano Franchi wrote: Hi Richard, thanks for the help, However I cannot even get to step 1. More precisely: On 9 Feb, 2007, at 12:42 PM, Richard Heck wrote: Stefano Franchi wrote: I am still fighting with LyX/LaTeX cross-referencing facilities. While it's rather clear how to use it to refer to page numbers and equation numbers within a single file, I am in the dark on how: 1. cross-referencing to a separate file 2. having the section title appear in the cross-referencing document. In fact, I am not even sure whether (1) or (2) are possible at all. (1) is easy, but not terribly intuitive. You need to have both files open in LyX: The one you want to reference and the one you're editing. Now Insert>Cross-reference, and at the top of the dialog box is a drop-down box marked "Labels in". Choose the target file, and the labels in that file will appear in the dialog box. I had gotten this far, but I cannot get it to work. I do see the label I defined in the other document and I can insert it into the cross-referencing doc, but the pdf file produced has question marks in it where the reference should appear. And indeed the LaTeX log complains of an undefined reference. Sorry, I forgot to say something before. I was assuming that Chapters 1 and 2 (from your example) would be included in a single file on which you then ran LaTeX. If you're doing that, then it should be working. If not, send me that LyX files and I'll see what I can do. If, on the other hand, you are trying to compile JUST Chapter 2, with references also being made to Chapter 1, then you will see "?" unless you use the xr package. This isn't a huge issue, as it will be correct when the whole thing is compiled. But, as I said, you can use xr if you need to do so. Thanks, that makes sense. I tried playing around with xr and its commands, but couldn't get it to work, in LyX or Straight LaTeX. At any rate, even if it did, it would not have been a real solution. With the references to external files buried in the preamble it is a pain to maintain. I give up and will avoid such external cross-references in the future. Cheers, S. __ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-8768 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand
Fwd: "Ő" betű a Lyx-ben
I've got some problems with accented characters. Lyx writes it wrong if they are in a reference. (Central-European characters, Latin2; more specifically: Hungarian characters) -- Forwarded message -- From: Levente Zsíros <[EMAIL PROTECTED]> Date: 2007.01.13. 15:05 Subject: Re: "Ő" betű a Lyx-ben To: Alex <[EMAIL PROTECTED]> Még egy kis ékezet para. Az ékezeteket csak akkor szúrja el, ha hivatkozásban van. 2007/1/6, Alex <[EMAIL PROTECTED]>: Szia! Állítsd át a dokumentum nyelvét Magyar-ra és minden jó lesz! Alex UI: Melyik változatot használod? Milyen OS alatt? Levente Zsíros wrote: > Helló! > Nekem úgy tűnik, hogy a Lyx nem kezeli az "ő" betűt. > > OpenOffice-ban csináltam egy szöveget, amit LaTeX formátumban > exportáltam, és ezt importáltam a Lyx-ben. Eddig még minden rendnóben is > volt, a hiba akkor következett be, amikor megpróbáltam a doksit dvi-ként > megjelníteni: > > El\H{o}tte szö >veg > You need to provide a definition with \DeclareInputText > or \DeclareInputMath before using this key. > > > -- > Zsíros Levente -- Zsíros Levente -- Zsíros Levente posta.lyx Description: application/lyx posta.pdf Description: Adobe PDF document
Re: install and export
Levente Zsíros wrote: Thanks 1) worked. (However I was wondering, why did it say those files are used by another process. There were python.exe, lyx.exe and a lot of processes running in the background, but there parent application died. ) Not my area of expertise (if indeed one exists), but my impression is that when an application with a lock on a file dies, Windows doesn't always figure out to release the file lock (or at least not for quite a while). "In use by another process" is Windows-speak for "locked". /Paul
Re: Lyx cookbook template
On Mon, 8 Jan 2007, Jürgen Spitzmüller wrote: > stefan wrote: > > Could someone help me please? is there a template out there. > > http://texcatalogue.sarovar.org/bytopic.html#recipes > You probably will have to do the LyX layout file yourself. I deleted the email at http://www.mail-archive.com/lyx-users@lists.lyx.org/msg52771.html Can someone please send me those attachments (as the mail-archive corrupted them)? Or better yet can someone post them somewhere? My wife is starting a recipe book and remembered this thread. Jeremy C. Reed
Re: Perl script for renumbering equations
On Friday 09 February 2007 11:16, Georg Baum wrote: > Steve Litt wrote: > > Here's one reason. Throughout all my books I have a graphic that > > represents binary search. It's used several times per book, in several > > chapters. If I named them all descriptively, they'd clash. But if I named > > them both descriptively AND according to where they occur, that problem's > > solved. > > Yes, that is a good reason to add something section related to the label. > But why should that be the section number, and why not the section name? My initial reaction is that the section name would be better, but good luck creating a Perl script to do that. SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re: Perl script for renumbering equations
Georg, Renumbering/relabeling equations is useful when you have a large document (like a book) with very many equations (for example, more than fifty). You quickly run out of names to use for labeling the equations. So you might find that it is easier to simply number them according to the section in which they appear. Every once in a while you need to insert a section in the middle of other sections, or an equation in the middle of other equations, and a manual labeling scheme becomes messed up. This script helps to clean things up when needed. Using the section name makes the size of the label unpredictable, since some sections may have long names. That will mess up the display of equations on the screen. Truncating the section name may make it non-unique. However the section numbering scheme is always unique, which is why I picked it. Gerard
Re: cross-referecing to a section title in another file; is it possible?
On Friday 09 February 2007 12:59, Stefano Franchi wrote: > I am still fighting with LyX/LaTeX cross-referencing facilities. While > it's rather clear how to use it to refer to page numbers and equation > numbers within a single file, I am in the dark on how: > > 1. cross-referencing to a separate file > > 2. having the section title appear in the cross-referencing document. > > In fact, I am not even sure whether (1) or (2) are possible at all. > > Here is what I am trying to do (assuming it's not clear enough from the > above description): > Say I have chapter 1 and chapter 2 in chapter1.lyx and chapter2.lyx. > > Chapter1.lyx has sections: > > 1. Introduction > 2. First section > 3. Third section > > Somewhere in Chapter 2, I want to say: "as I showed in ***Chapter 1, > Third section***, etc.etc." I > I would like to have the text between *** as a cross-reference, so that > if I move the Chapter1.lyx section around, change its title, etcetera, > the reference would still work. Is there any way to do this? > > Thanks for the help. > > Stefano Hi Stefano, Assuming you're doing the whole book yourself and not sharing out chapters, consider putting the whole thing in a single file. I've got a 110,000 word book in a single file, and it performs just fine. SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/
Re[2]: Perl script for renumbering equations
Alan, That's great, thanks. Gerard
Re: install and export
Bo Peng wrote: I think tex4ht with miktex is broken (or tex4ht is generally broken). Last time I tried, tex4ht can not convert a simple tex file to openoffice format, with missing main XML file, and an error message like zip command is not found. odt format is a zipped XML file. tex4ht depends on a system zip utility to zip its output. I do not know where to get a zip executable though. Don't use it myself (so I haven't bothered to go through the configuration stuff), but have you checked out the instructions at http://facweb.knowlton.ohio-state.edu/pviton/support/tex4ht.html? /Paul
Re: cross-referecing to a section title in another file; is it possible?
On 9 Feb, 2007, at 5:38 PM, Steve Litt wrote: On Friday 09 February 2007 12:59, Stefano Franchi wrote: I am still fighting with LyX/LaTeX cross-referencing facilities. While it's rather clear how to use it to refer to page numbers and equation numbers within a single file, I am in the dark on how: 1. cross-referencing to a separate file 2. having the section title appear in the cross-referencing document. In fact, I am not even sure whether (1) or (2) are possible at all. Here is what I am trying to do (assuming it's not clear enough from the above description): Say I have chapter 1 and chapter 2 in chapter1.lyx and chapter2.lyx. Chapter1.lyx has sections: 1. Introduction 2. First section 3. Third section Somewhere in Chapter 2, I want to say: "as I showed in ***Chapter 1, Third section***, etc.etc." I I would like to have the text between *** as a cross-reference, so that if I move the Chapter1.lyx section around, change its title, etcetera, the reference would still work. Is there any way to do this? Thanks for the help. Stefano Hi Stefano, Assuming you're doing the whole book yourself and not sharing out chapters, consider putting the whole thing in a single file. I've got a 110,000 word book in a single file, and it performs just fine. Thanks Steve, but I have a different problem. I am trying to switch to LyX for all my writing, including my (intense) note-taking. I can't put all of that in a single file. Thanks anyway. S. SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/ __ Stefano Franchi Department of Philosophy Ph: (64) 9 373-7599 x83940 University Of Auckland Fax: (64) 9 373-8768 Private Bag 92019 [EMAIL PROTECTED] Auckland New Zealand
Re: Lyx cookbook template
I received it off list. Thanks. Is there a place to contribute these? Jeremy C. Reed
cit_thesis.cls problem
Hi, I installed cit_thesis template for lyx on my linux computer but it doesn't seem to work. Instructions on http://www.work.caltech.edu/ling/tips/cit_thesis.html. I did all the things listed on that website: 1. install the tex file: but it in .texmf/cit_thesis folder , and one extra thing: put it in usr/share/texmf/tex/latex/ and ran texhash. 2. installed the lyx file in ~/.lyx/templates and layout file in ~/.lyx/layouts. Extra: also copied those in usr/share/lyx/templates and layouts. It showed up on lyx ok until I viewed DVI. I received 9 errors. The first one: TeX capacity exceeded, sorry [save size=5000]. \begin{document} If you really absolutely need more capacity, you can ask a wizard to enlarge me Anyway, I don't know how to make this work. Can anybody help me with this? I tried installing other thesis classes in lyx but they didn't work either. This one is the closest one I got. Thanks. CW
Re: cross-referecing to a section title in another file; is it possible?
On Friday 09 February 2007 19:22, Stefano Franchi wrote: > On 9 Feb, 2007, at 5:38 PM, Steve Litt wrote: > > On Friday 09 February 2007 12:59, Stefano Franchi wrote: > >> I am still fighting with LyX/LaTeX cross-referencing facilities. While > >> it's rather clear how to use it to refer to page numbers and equation > >> numbers within a single file, I am in the dark on how: > >> > >> 1. cross-referencing to a separate file > >> > >> 2. having the section title appear in the cross-referencing document. > >> > >> In fact, I am not even sure whether (1) or (2) are possible at all. > >> > >> Here is what I am trying to do (assuming it's not clear enough from > >> the > >> above description): > >> Say I have chapter 1 and chapter 2 in chapter1.lyx and chapter2.lyx. > >> > >> Chapter1.lyx has sections: > >> > >> 1. Introduction > >> 2. First section > >> 3. Third section > >> > >> Somewhere in Chapter 2, I want to say: "as I showed in ***Chapter 1, > >> Third section***, etc.etc." I > >> I would like to have the text between *** as a cross-reference, so > >> that > >> if I move the Chapter1.lyx section around, change its title, etcetera, > >> the reference would still work. Is there any way to do this? > >> > >> Thanks for the help. > >> > >> Stefano > > > > Hi Stefano, > > > > Assuming you're doing the whole book yourself and not sharing out > > chapters, > > consider putting the whole thing in a single file. I've got a 110,000 > > word > > book in a single file, and it performs just fine. > > Thanks Steve, > > but I have a different problem. I am trying to switch to LyX for all > my writing, including my (intense) note-taking. I can't put all of that > in a single file. > > Thanks anyway. Hi Stephano, As far as intense note taking, for that I'd use VimOutliner (http://www.vimoutliner.org). SteveT Steve Litt Author: Universal Troubleshooting Process books and courseware http://www.troubleshooters.com/