Re: Two dashes vs. en-dash
On Thu, 2 Jun 2005, ADT wrote: > Anyone know the magic keypress to create a double dash? What about typing two minuses in math mode? /johan -- Johan Ingvast, PhD student http://www.md.kth.se/~ingvast Department of Machine Design, Royal Institute of Technology, Sweden http://www.md.kth.se, http://www.md.kth.se/~cas <--- Walking robot proj tel +46 (0)8 790 95 36 mob. +46 (0)70 34 34 498
Two dashes vs. en-dash
I'm writing some technical documentation which covers the usage of GNU style long-opts where multi-character options are preceded with two dashes (--). However, when LyX sees two dashes together, it turns it into an elongated single dash (en-dash) which is confusing/wrong. I've looked in the Users Guide and it seems to be doing something like: -\/- to generate a double dash, but other then to copy/paste the \/ (which is in a red box), I can't figure out how to replicate the effect. Anyone know the magic keypress to create a double dash? Thanks, Aaron -- http://synfin.net/
installing a new TeX document class for LyXwin?
How would I go about installing a new TeX class and using it from within LyX? This class is "an extension of the standard article class," as quoted from the author. A copy is attached. Apparently, it has custom fields such as \name, \class, and \assignment. Can I fill these in from LyX? Am currently running LyXwin 1.3.5 and miktex 2.4. Thanks, Steven Felix, qui potuit rerum cognoscere causas, atque metus omnis et inexorabile fatum..."Blessed is he whose mind had power to probe the causes of things, and trample underfoot all terrors and inexorable fate..."-Vergil hmcpset.cls Description: Binary data
Re: Controlling space after full stop
On Thu, Jun 02, 2005 at 10:40:55PM +0100, Angus Leeming wrote: > > Given that "man dvi2tty" doesn't provide any clues, how about a sed script? > > sed 's/\. \([A-Z]\)/. \1/g' in.txt > out.txt Good idea. I'll try this. I think I'm going to see if I can hack on the dvi2tty stuff to do this, too; if I have any luck (wish me, please -- I'm a crappy programmer) I'll post a note. A -- Andrew Sullivan | [EMAIL PROTECTED] The whole tendency of modern prose is away from concreteness. --George Orwell
Re: Latex import...AGAIN!
Nicolas <[EMAIL PROTECTED]> writes: > > Hei! > > I know this issue has already been treated in this > list > (http://www.mail-archive.com/lyx-users- [EMAIL PROTECTED]/msg39543.html), > but I > still do not manage to make it work. > I am using Lyx 1.3.5 in windows. I have also installed Python 2.4.1. Perhaps the simplest solution is to follow the advice given in LyXWinTips, http://wiki.lyx.org/LyX/LyXWinTips in the section "latex import" simply adding the lyx2lyx.cmd file suggested there is enough. It runs on my WinXP and in Win2000 at school. It only uses the programs packed by Ruurd. No need to reconfigure, install, or whatever. To me this is like black magic, but it worked in my case... Luis.
Re: Controlling space after full stop
Andrew Sullivan wrote: Hi, I'm using the packages courier and stdpage in order to produce correctly-formatted pages for a certain ASCII-based format. I then use dvi2tty to create an actual ASCII document. This works, except that the usual typesetting rules produce one space, not two, after a full stop. This makes the resulting ASCII file harder to read? I'm sure there's some way to control this, but I've never wanted to before. Any clues? Given that "man dvi2tty" doesn't provide any clues, how about a sed script? sed 's/\. \([A-Z]\)/. \1/g' in.txt > out.txt Angus
Re: problem with multiline formula
- Original Message - From: "Paul A. Rubin" <[EMAIL PROTECTED]> To: Sent: Thursday, June 02, 2005 3:10 PM Subject: Re: problem with multiline formula > Srinivas Nedunuri wrote: > > I am unable to get the multiline formula format to work as described in the User Guide. It says that C-Enter ought to turn a formula into a multiline one, and that C-Tab allows you to seperate the left from the middle from the right. However, neither of these seem to be doing anything ("Unknown function"). I have to use the menu to insert a multiline formala. Unf that doesnt quite get around the problem: C-Enter is supposed to allow you to add a new line but that does nothing either. I checked my bindings and there doesnt seemt to be anything wierd going on there with C-Enter, tab or any of those chars > > > > While I'm at it, other special chars dont seem to be mapped correctly either for example protected break for a a protected space, is supposed to be C-space (I think) but that is ineffectual also > > > > I seem to have something systematically wrong > > > > thanks > > > What do you see in Edit->Preferences->Look and feel->User > interface->Bind file? I'm using a (modification of) Peng's customized bind file given at http://wiki.lyx.org/LyX/KeyboardShortcuts My modification just remaps some of the Greek letters and a couple of others. Nothing about C-Enter and C-Tab Also, what do you have in Edit->Preferences->Look > and feel->Keyboard? Nothing. The checkbox is unchcked Possibly something is reassigning C-Enter and C-Tab. > > -- Paul
Re: Reference manual and key bindings
Gunnar wrote: In the documentation "Customization.lyx" in section "3.3 Bindings" it says: All the LyX functions are listed in the Reference Guide. What reference guide I ask? The one neither you nor I have. :-) LFUNS are listed (with precious little detail) on the Wiki: http://wiki.lyx.org/LyX/LyxFunctionList1-3-3. I would like to press M-g u and then get two separate ERT boxes with \begin{ug} and \end{ug}. Try binding the following to M-g u: command-sequence ert-insert; self-insert \\begin{ug}; inset-toggle; ert-insert; self-insert \\end{ug}; inset-toggle (with thanks to Johan Ingvast, who gave a similar command sequence in a different thread). -- Paul
Re: problem with multiline formula
Srinivas Nedunuri wrote: I am unable to get the multiline formula format to work as described in the User Guide. It says that C-Enter ought to turn a formula into a multiline one, and that C-Tab allows you to seperate the left from the middle from the right. However, neither of these seem to be doing anything ("Unknown function"). I have to use the menu to insert a multiline formala. Unf that doesnt quite get around the problem: C-Enter is supposed to allow you to add a new line but that does nothing either. I checked my bindings and there doesnt seemt to be anything wierd going on there with C-Enter, tab or any of those chars While I'm at it, other special chars dont seem to be mapped correctly either for example protected break for a a protected space, is supposed to be C-space (I think) but that is ineffectual also I seem to have something systematically wrong thanks What do you see in Edit->Preferences->Look and feel->User interface->Bind file? Also, what do you have in Edit->Preferences->Look and feel->Keyboard? Possibly something is reassigning C-Enter and C-Tab. -- Paul
problem with multiline formula
I am unable to get the multiline formula format to work as described in the User Guide. It says that C-Enter ought to turn a formula into a multiline one, and that C-Tab allows you to seperate the left from the middle from the right. However, neither of these seem to be doing anything ("Unknown function"). I have to use the menu to insert a multiline formala. Unf that doesnt quite get around the problem: C-Enter is supposed to allow you to add a new line but that does nothing either. I checked my bindings and there doesnt seemt to be anything wierd going on there with C-Enter, tab or any of those chars While I'm at it, other special chars dont seem to be mapped correctly either for example protected break for a a protected space, is supposed to be C-space (I think) but that is ineffectual also I seem to have something systematically wrong thanks
Controlling space after full stop
Hi, I'm using the packages courier and stdpage in order to produce correctly-formatted pages for a certain ASCII-based format. I then use dvi2tty to create an actual ASCII document. This works, except that the usual typesetting rules produce one space, not two, after a full stop. This makes the resulting ASCII file harder to read? I'm sure there's some way to control this, but I've never wanted to before. Any clues? A -- Andrew Sullivan | [EMAIL PROTECTED] Information security isn't a technological problem. It's an economics problem. --Bruce Schneier
Re: latex question
>>Date: Thu, 2 Jun 2005 16:48:31 +0200 >>To: Juergen Spitzmueller <[EMAIL PROTECTED]> >>Cc: lyx-users@lists.lyx.org >>Subject: Re: latex question >>From: [EMAIL PROTECTED] (Martin A. Hansen) >>it is possible that publiographer is wrong here - but i have not been >>able to locate a precise description of the bibtex file format. Oren Patashnik's original doc, which comes with all teX distributions I guess. On TeXLive: /usr/local/TeX/texmf-dist/doc/bibtex/base/btxdoc.pdf pp 15-16 -- Jean-Pierre
Re[4]: hyperref + spaces in PDF title
> I useexplicit hypersetup command. > Maybe you could try ? Jean-Pierre, thanks a lot! I don't see the actual difference between \hypersetup and \usepackage[...]{hyperref}, but your suggestion worked nonetheless! Neat... =) -- WBR, Andrei Popov Using LyX 1.3.4 on Linux
Re: latex question (SOLVED)
you are beautiful people :o) a space between J.F. did the trick. if i ever was to cite you guys, your initials would now come out correct :o sincerely martin On Thu, Jun 02, 2005 at 05:12:08PM +0200, Juergen Spitzmueller wrote: > Martin A. Hansen wrote: > > now, the medline2bibtex convertions is done by pybliographer which gives > > bibtex files with: author = {Smith, J.F.} > > > > it is possible that publiographer is wrong here - but i have not been > > able to locate a precise description of the bibtex file format. > > It is. Bibtex knows three kinds of string separators: space, tilde and > hyphen. > Anway, you have to tell it that "J." and "F." are two strings. > > > so what are the correct format: > > > > 1) author = {Smith, J.F.} > > 2) author = {Smith, J. F.} > > 3) author = {Smith, J.\F.} > > 4) author = {Smith, J.~F.} > > In the bibfile: probably only 2 and 4. In the output: J.\,F. (note the comma!) > > > (what does \ and ~ mean, btw?) > > \, is a nonbreakable "thin space", to be used inside abbreviations (e.\,g.). > ~ is the LaTeX equivalent of LyX's nonbreakable (or protected) Space. > > Jürgen
Re: latex question
Martin A. Hansen wrote: > now, the medline2bibtex convertions is done by pybliographer which gives > bibtex files with: author = {Smith, J.F.} > > it is possible that publiographer is wrong here - but i have not been > able to locate a precise description of the bibtex file format. It is. Bibtex knows three kinds of string separators: space, tilde and hyphen. Anway, you have to tell it that "J." and "F." are two strings. > so what are the correct format: > > 1) author = {Smith, J.F.} > 2) author = {Smith, J. F.} > 3) author = {Smith, J.\F.} > 4) author = {Smith, J.~F.} In the bibfile: probably only 2 and 4. In the output: J.\,F. (note the comma!) > (what does \ and ~ mean, btw?) \, is a nonbreakable "thin space", to be used inside abbreviations (e.\,g.). ~ is the LaTeX equivalent of LyX's nonbreakable (or protected) Space. Jürgen
Re: latex question
I use JabRef and it imports as 2) author = {Smith, J. F.} This works and if I manually remove the spaces it doesn't. Seems Pybliographer is wrong - Original Message - From: "Martin A. Hansen" <[EMAIL PROTECTED]> To: "Juergen Spitzmueller" <[EMAIL PROTECTED]> Cc: Sent: Thursday, June 02, 2005 3:48 PM Subject: Re: latex question my bibtex file is generated from the medline format - a large bibliographic collection of life science publications - and there they truncate the names to initials and surname. now, the medline2bibtex convertions is done by pybliographer which gives bibtex files with: author = {Smith, J.F.} it is possible that publiographer is wrong here - but i have not been able to locate a precise description of the bibtex file format. so what are the correct format: 1) author = {Smith, J.F.} 2) author = {Smith, J. F.} 3) author = {Smith, J.\F.} 4) author = {Smith, J.~F.} (what does \ and ~ mean, btw?) call for votes ... :o) martin On Thu, Jun 02, 2005 at 04:36:18PM +0200, Juergen Spitzmueller wrote: Martin A. Hansen wrote: > author = {Smith, J.F.}, and ends up as Smith, J. > > now, it has not been possible for me to verify that the author format > in > the bibtex file is ok. (the problem is solved if i introduce a blank > between the initials -> J. F., but i think that is wrong and a freak > fluke makes the latex output correct). I think it should be Smith, J.~F. or rather Smith, J.\,F. Probably, bibtex interprets J.F. as one word as long as there is no space. Of course you can also write J. F. or John Frederic and let bibtex output J.F. (or J.\,F. or whatever). I think this is the ideal solution, since all formatting should be done by the bst file, not by you. Jürgen
Re: latex question
my bibtex file is generated from the medline format - a large bibliographic collection of life science publications - and there they truncate the names to initials and surname. now, the medline2bibtex convertions is done by pybliographer which gives bibtex files with: author = {Smith, J.F.} it is possible that publiographer is wrong here - but i have not been able to locate a precise description of the bibtex file format. so what are the correct format: 1) author = {Smith, J.F.} 2) author = {Smith, J. F.} 3) author = {Smith, J.\F.} 4) author = {Smith, J.~F.} (what does \ and ~ mean, btw?) call for votes ... :o) martin On Thu, Jun 02, 2005 at 04:36:18PM +0200, Juergen Spitzmueller wrote: > Martin A. Hansen wrote: > > author = {Smith, J.F.}, and ends up as Smith, J. > > > > now, it has not been possible for me to verify that the author format in > > the bibtex file is ok. (the problem is solved if i introduce a blank > > between the initials -> J. F., but i think that is wrong and a freak > > fluke makes the latex output correct). > > I think it should be Smith, J.~F. or rather Smith, J.\,F. > Probably, bibtex interprets J.F. as one word as long as there is no space. > > Of course you can also write J. F. or John Frederic and let bibtex output > J.F. > (or J.\,F. or whatever). I think this is the ideal solution, since all > formatting should be done by the bst file, not by you. > > Jürgen
Re: latex question
Martin A. Hansen wrote: > author = {Smith, J.F.}, and ends up as Smith, J. > > now, it has not been possible for me to verify that the author format in > the bibtex file is ok. (the problem is solved if i introduce a blank > between the initials -> J. F., but i think that is wrong and a freak > fluke makes the latex output correct). I think it should be Smith, J.~F. or rather Smith, J.\,F. Probably, bibtex interprets J.F. as one word as long as there is no space. Of course you can also write J. F. or John Frederic and let bibtex output J.F. (or J.\,F. or whatever). I think this is the ideal solution, since all formatting should be done by the bst file, not by you. Jürgen
latex question
hi i know this is not strictly on topic, but i am at my wits end: i am trying to format a .bst file using latex makebst, and it is not going very well. i select the resulting .bst file in lyx and renders a dvi, and the references looks nice BUT only the first initial in the author names is present - the rest are skipped! so the author in the .bib file looks like this: author = {Smith, J.F.}, and ends up as Smith, J. now, it has not been possible for me to verify that the author format in the bibtex file is ok. (the problem is solved if i introduce a blank between the initials -> J. F., but i think that is wrong and a freak fluke makes the latex output correct). in the dbj made by makebst i have the following enabled: ,nm-rvx%: Surname + pure initials (Smith JF) ideas are most welcome!!! martin
Re: Natbib sort and compress
Juergen Spitzmueller wrote: > First step would be a "class options manager". But there are so much > plans. Recently, I heard someone say "There's only so much I can do...". Yes, yes, yes, ... just release 1.4.0 soon and do not let yourself to be distracted by anyting else!!! Matej -- Matej Cepl, http://www.ceplovi.cz/matej GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC 138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488 Extremism in the defense of liberty is no vice; moderation in the pursuit of justice is no virtue. -- Barry Goldwater (actually written by Karl Hess)
slides formular super/subscript
Hi! I´m trying to designa slide-presentation from the default slide layout. There are a lot of formulars in the slides, and most of them use sub- and superscript letters. For example upper and lower bound of an integral. The problem is, that those letters in super and subscript are much to huge. The Intregral looks very ugly, if upper und lower bond have the half height of the Integral sign, as you can imagine. Due I can´t edit the Letter size in the document setup, I don´t know what to to... Anyone who has a tipp for me? thanks ibert
Re: 6.3 Short titles
> "Bruce" == Bruce Ernest Weller <[EMAIL PROTECTED]> writes: Bruce> J-Marc Happy to carry out the correspondence in the list but I Bruce> suspect that I am guilty of not providing enough Bruce> information.Not really sure of the etiquette and reluctant to Bruce> lead the list readers on a wild goose chase. Writing on the list is always better (I readded it) because: 1/ people actually learn from what we write 2/ maybe someone else will step up to help me :) Bruce> Plugged your script into >Layout>Document>LaTeX preamble like Bruce> this: Bruce> \usepackage{remreset} Bruce> \renewcommand{thesection}{Article \Roman{section}} Bruce> [EMAIL PROTECTED] Bruce> (Blind copying here as I do not understand apart from what I Bruce> read) So blind that you forgot a \ before "thesection" on the second line :) Bruce> Now, the bit that I did not clearly set out is that I am using Bruce> Document class 'book (mwbk)' which may have made a difference Bruce> to your response? Another point is that while the Section* do Bruce> not appear in Lyx's Content Table they are in the dvi and in Bruce> the page headings. (Which is the reason why I want the opt.) mwbk is a document class that is supposed to be tailored for books written in Polish. I doubt this is what you want to do. If you want a high quality and customizable class, I suggest to look up memoir. It has a great manual that first explains how to typeset a book and second how to use memoir commands. Note that some memoir commands are not (yet) supported transparently by LyX. Bruce> Would the purchase of the TeXbook be the next step? Or should I Bruce> just go back to the LyX Help files and chase down ERT Bruce> explanations? I think the fix I pointed above will be sufficient to get you started. If you want to read about LaTeX, the TeXbook is definitely not the first book to read. You could maybe try the not so short introduction to LaTeX http://www.tug.org/tex-archive/info/lshort/english/lshort.pdf or the memoir class documentation http://www.tug.org/tex-archive/macros/latex/contrib/memoir/memman.pdf JMarc
Reference manual and key bindings
In the documentation "Customization.lyx" in section "3.3 Bindings" it says: All the LyX functions are listed in the Reference Guide. What reference guide I ask? I would like to press M-g u and then get two separate ERT boxes with \begin{ug} and \end{ug}.
Re: Multipart documents
Geoffrey Lloyd wrote: > I have a multipart document where I use the Include function to create a > Main document that just has various layout bits in ERT and then the > sections. > > If I want to only print one section, for proof reading or layout checking > etc I comment out the sections I don't want using the Comment environment. > > THis works fine. I get an output with just the uncommented sections. > > However it still processes all the images in the unwanted sections. Is > there anyway to stop this happening as there are many images and indeed > this was part of the reason to do this in the first place. Instead of uncommenting the sections, write to the preamble \includeonly{section-so-and-so} Regards, Jürgen
Re: Natbib sort and compress
Angus Leeming wrote: > > Would it be possible in future version to have more natbib > > options in the layout menu? > > I believe that I heard Jürgen Spitzmüller drop a hint recently that he's > planning to work on a "proper" package manager in the next round of > development. > > Angus (causing trouble :)) Ahem. First step would be a "class options manager". But there are so much plans. Recently, I heard someone say "There's only so much I can do...". If I only remembered who it was... As to Geoffrey's question: For now,you can just write "sort&compress" in the document options widget (Layout->Document->Options). It will be passed thorugh to natbib. Regards, Jürgen
Re: 6.3 Specifying Short Titles with Optional Arguments
JMarc, Many thanks; I shall fire up and try your first recommended approach. Will post outcome here for future readers. Bruce W On Wed, 2005-06-01 at 13:15 +0200, Jean-Marc Lasgouttes wrote: > > "Bruce" == Bruce Ernest Weller <[EMAIL PROTECTED]> writes: > > Bruce> The captioned reference, from the User Guide, appears clear > Bruce> enough and works well in the "Section" environment but the > Bruce> option is, as far as I can see, not available in the "Section*" > Bruce> environment. > > Bruce> Not sure of the rationale for this decision. > > Section* layouts do not appear in the table of contents, and LaTeX > does not offer a way of specifying an optional caption in these cases. > Therefore there is not much we can do about it. > > Bruce> My problem is typesetting an old-fashioned book where, for the > Bruce> their pains, the authors- translators have chosen to head each > Bruce> separate article along the lines of "Article XXIV - The old > Bruce> system of wars of position and the modern system of marches" > Bruce> and the Roman numerals run sequentially (regardless of chapter) > Bruce> through the book. > > You can use normal Section and redefine at LaTeX level how sections > appear. Something like this in the preamble > \usepackage{remreset} > \renewcommand{\thesection}{Article \Roman{section}} > [EMAIL PROTECTED] > will do what you want with normal Section layout, although it will not > show on screen (in 1.4.0 it will be possible to see the right thing on > screen if you make a (short) layout file). > > Concerning not resetting sections, you can also use the article class > and use parts instead of chapters. Then your preamble can be just > \renewcommand{\thesection}{Article \Roman{section}} > > Hope this helps. > JMarc
Re: Converting from older version
Christian Payne wrote: > Ok, here is what happens when I run the python lyx2lyx script: > --- > C:\Program Files\lyx\share\lyx\lyx2lyx>python lyx2lyx thesis.lyx > > thesis-win.lyx > 'import site' failed; use -v for traceback > Traceback (most recent call last): >File "lyx2lyx", line 19, in ? > import getopt, sys, string, re > ImportError: No module named getopt You are using the stripped-down python that Ruurd packaged with LyX 1.3.5. Throw it away and get a proper distribution from http://www.python.org/download/ > Now if I run the lyx2lyx binary program then I get the following: > --- > C:\Program Files\lyx\bin>lyx2lyx thesis.lyx > thesis-win.lyx > Malformed LyX file: Missing 'collapsed'. > Malformed LyX file: Missing 'collapsed'. > Malformed lyx file: Missing 'wide'. > Malformed lyx file: Missing 'wide'. Interesting. Can you make your thesis publicly available for download, or can you reproduce the problem with a stripped-down snippet that you could post to the list? > is it worth trying to install a recent Linux version of LyX > and trying that? Nope. Stick with what you have and we'll try and fix the bugs that you've uncovered. -- Angus
RE: Converting from older version
Hei! Install the last version of Python, that is, 2.4.1. Download the tex2lyx package from the wiki (http://wiki.lyx.org/LaTeX/LatexToLyx). It comes with a lyx2lyx tool that works for sure (maintain tex2lyx files separate from Lyx files!). And then run the lyx2lyx tool using the full path to call python (e.g. C:\tools\Python24\python.exe). This may also help: http://wiki.lyx.org/LaTeX/Tex2LyxInvokedFromLyx Nicolás > -Original Message- > From: Christian Payne [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 02, 2005 8:46 AM > To: lyx-users@lists.lyx.org > Subject: Re: Converting from older version > > > Am Samstag, 28. Mai 2005 11:16 schrieb Christian Payne: > > Run lyx2lyx from the commandline on your file: > > > > python lyx2lyx yourfile.lyx > convertedfile.lyx > > > > Replace python with the full path to your python executable > if it is > > not in your path. > > If you get errors, post them to the list. > > > Ok, here is what happens when I run the python lyx2lyx script: > --- > C:\Program Files\lyx\share\lyx\lyx2lyx>python lyx2lyx > thesis.lyx > thesis-win.lyx 'import site' failed; use -v for > traceback Traceback (most recent call last): >File "lyx2lyx", line 19, in ? > import getopt, sys, string, re > ImportError: No module named getopt > --- > > > Result is obviously an empty .lyx file. > > > Now if I run the lyx2lyx binary program then I get the following: > --- > C:\Program Files\lyx\bin>lyx2lyx thesis.lyx > thesis-win.lyx > Malformed LyX file: Missing 'collapsed'. > Malformed LyX file: Missing 'collapsed'. > Malformed lyx file: Missing 'wide'. > Malformed lyx file: Missing 'wide'. > --- > > The resulting file opens up but is messed up. > > > Sorry if I'm not providing any extra information that I > should be but I > don't really know much about python (or Windows for that > matter). Since > in theory it is supposed to work, is it worth trying to > install a recent > Linux version of LyX and trying that? > > Thanks for all your help and any suggestions are appreciated! > > > Regards, > > Christian.