Re: eqnarray and topsep
M.B. Schiekel wrote: >>sorry, I meant insert the formula directly at the end of >>a line if you do not want additional space > > > >Dear Herbert, > >well, that's it. But why??? the additional newline inserts a \parsep, so you'll get more space above than below the formula. >I can see, that amsmath is redefining 'equation', so that 'equation' and >'eqnarray' both show the same additional space. eqnarray has a wrong spacing, never use it ... >But which parameter is responsible for this additional space? >If you don't know or don't have the time, do you know, what are the >relevant source files (LaTeX2e, AMS math), so that I can have a look on >this? look at third link below Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Lyx-qt Button icons
I'm using KDE now, and i wonder, how can i change the default icons in the toolbar of LyX? thanks in advance
Re: delimiter bracket margin offset
Patrick Greenwood wrote: In the example below I would like the margin of my "State of Wisconsin County of Milwaukee" text to line up flush left with the neighboring text but can't seem to make that happen. = Blah Blah Blah State of Wisconsin \ | > ss County of Milwaukee | / Before me, this day, came Joe Doaks Blah Blah Blah Blah Blah Blah Attached a possible solution. regards Uwe #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \options fleqn \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize 12 \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 4 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle empty \bullet 1 1 34 -1 \end_bullet \bullet 2 2 35 -1 \end_bullet \bullet 3 2 7 -1 \end_bullet \layout Standard Blah Blah Blah blah \begin_inset Note collapsed true \layout Standard type \series bold \backslash cases \series default for the brace and then \series bold C-Enter \series default for new lines and \series bold M-m m \series default for mathematical text: \end_inset \layout Standard \begin_inset Formula $\textrm{ss }\begin{cases} \textrm{Milwaukee}\\ \\\textrm{Wisconsin}\end{cases}$ \end_inset \layout Standard \begin_inset Note collapsed true \layout Standard type \series bold \backslash aligned \series default and then \series bold C-Enter \series default for new lines and \series bold M-m m \series default for mathematical text; before the blue boxes (at the beginning of the formula type \series bold \backslash left. \series default for the non-existing left brace, at the end of the formula type \series bold \backslash right} \series default for the brace: \end_inset \layout Standard \begin_inset Formula $\left.\begin{aligned}\textrm{Milwaukee}\\ \\\textrm{Wisconsin}\end{aligned} \right\}\textrm{ss}$ \end_inset \layout Standard Before me, this day, came Joe Doaks \newline Blah Blah Blah \newline Blah Blah Blah \the_end
Re: delimiter bracket margin offset
In the example below I would like the margin of my "State of Wisconsin County of Milwaukee" text to line up flush left with the neighboring text but can't seem to make that happen. I used the delimiter/brace from the math panel (with an empty, unmatched left delimiter) to set this up. I could send you code or a graphic of how this appears in LyX and YAP (MiTeX install) if you wish. Thank you. Your suggestions are appreciated. Pat = Blah Blah Blah State of Wisconsin \ | > ss County of Milwaukee | / Before me, this day, came Joe Doaks Blah Blah Blah Blah Blah Blah _ FindLaw - Free Case Law, Jobs, Library, Community http://www.FindLaw.com Get your FREE @JUSTICE.COM email! http://mail.Justice.com
Re: view ps
On Apr 7, 2005 5:57 PM, Subir Singh Lamba <[EMAIL PROTECTED]> wrote: > I am using lyx-1.3.4-1mdk92_qt on Mandrake 9.2. Due to system crash i had > to reinstall everything. Now whenever I try to view ps file of the > document generated by lyx. message appears "No information for viewing > Postscript". While earlier I was successfully view it. Subir, Try: Edit --> Preferences --> File Formats --> Postscript. Do you see there the viewer configuration? It should say: "gv -swap". Check also whether you have gv installed. Regards, Paul
view ps
I am using lyx-1.3.4-1mdk92_qt on Mandrake 9.2. Due to system crash i had to reinstall everything. Now whenever I try to view ps file of the document generated by lyx. message appears "No information for viewing Postscript". While earlier I was successfully view it. Can any one suggest the remedy. thanks in advance Subir
Re: Shortcuts
On Thu, 7 Apr 2005, G. Milde wrote: > On 7.04.05, [EMAIL PROTECTED] wrote: > > On Thu, 7 Apr 2005, G. Milde wrote: > > > On 6.04.05, Alfredo Braunstein wrote: > > > > Geoffrey Lloyd wrote: > > > > > > > > ... is there a list of all the in built keyboard shortcuts for lyx. > > > > > > The LyX Wiki has even a list of such lists at > > > > > >http://wiki.lyx.org/LyX/KeyboardShortcuts # Group LyX instead of > > > Tips! > > > > > > and a tcsh script to extract such a list from your bind files. > > > (The idea was that it could be used to generate a nice list of the > > keybindings for each new version of lyx - not that the keybindings > > change that often though). > > But such a script is nice to get a list of your customised keybindings > too. True.. to be honest, I don't really remember why I wrote.. > For people (like me) without tcsh, I'll append a python script > that parses the bind files recursively. The output is a plain ASCII > list, but it also provides 2 functions > where_is(lfun) > get_binding(key) > to grep in the keybindings list for a specific keybinding. I found the script, it's located here: http://wiki.lyx.org/Tools/LyxBindings Maybe you can also take advantage of the lyx-template and use the same way to generate a PDF file? If I remember correctly, all the script did was generate a file (bindings.inc) that looks like this for instance http://www.md.kth.se/~chr/lyx/t/bindings.inc Should be straight forward for your python script to do the same. Btw feel free to modfiy the wiki page as you see fit. Either link to your script from that page, or create a separate page and link to that page. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: eqnarray and topsep
Herbert Voss wrote: M.B. Schiekel wrote: Now it seems, that I do not really understand the paragraph managment in connection with equation/eqnarray and the diffences therein with/without AMS math. Please have a look at the attached sample file. use _only_ amsmath envoronments and when you are inside an enumerate environment then do not insert an additional newline. sorry, I meant insert the formula directly at the end of a line if you do not want additional space Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Re: eqnarray and topsep
M.B. Schiekel wrote: Now it seems, that I do not really understand the paragraph managment in connection with equation/eqnarray and the diffences therein with/without AMS math. Please have a look at the attached sample file. use _only_ amsmath envoronments and when you are inside an enumerate environment then do not insert an additional newline. HErbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass scrartcl \language german \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard 1. paragraph: x \newline y \layout Standard 2. paragraph: in the next paragraph will be an equation \newline (why is the following vertical space different with/without AMS math, and which LaTeX parameter controls this?) \begin_inset Formula \begin{flalign} x & =1\label{eq:1}\end{flalign} \end_inset \layout Standard 4. paragraph: x \layout Standard 5. paragraph: in the next paragraph will be an eqnarray \newline (which LaTeX parameter controls the following vertical extra space?) \begin_inset Formula \begin{flalign} y & =x\nonumber \\ & +1\label{eq:2}\end{flalign} \end_inset \layout Standard 7. paragraph: the following equation is part of this paragraph \begin_inset Formula \begin{equation} z=1\label{eq:3}\end{equation} \end_inset \layout Standard 8. paragraph: the following eqnarray is part of this paragraph \begin_inset Formula \begin{flalign} \textrm{zz} & =z\nonumber \\ & +1\label{eq:4}\end{flalign} \end_inset \layout Standard 9. paragraph: now, 7. & 8. is, what I wanted to arrive - hmm ... \the_end
Re: Shortcuts
On 7.04.05, [EMAIL PROTECTED] wrote: > On Thu, 7 Apr 2005, G. Milde wrote: > > On 6.04.05, Alfredo Braunstein wrote: > > > Geoffrey Lloyd wrote: > > > > > > ... is there a list of all the in built keyboard shortcuts for lyx. > > > > The LyX Wiki has even a list of such lists at > > > >http://wiki.lyx.org/LyX/KeyboardShortcuts # Group LyX instead of Tips! > > > > and a tcsh script to extract such a list from your bind files. > (The idea was that it could be used to generate a nice list of the > keybindings for each new version of lyx - not that the keybindings > change that often though). But such a script is nice to get a list of your customised keybindings too. For people (like me) without tcsh, I'll append a python script that parses the bind files recursively. The output is a plain ASCII list, but it also provides 2 functions where_is(lfun) get_binding(key) to grep in the keybindings list for a specific keybinding. Günter -- G.Milde web.de # -*- coding: iso-8859-1 -*- """ A dictionary of LyX keybindings Scans recursively for `\bind_file`s and stores keybindings in a dictionary `bindings`. Starts with the preferences file `rcfile`. Uses the following defaults from LyX.lyx_constants.py SYSTEM_DIR, USER_DIR, LYXRC_FILE Change this variables in `~/.lyx/pyclient/config.py`, if your settings differ Doesnot currently 'normalize' the keynames, i.e. if different spellings for the same key occure in different bind-files, both bindings will be reported. (Normally, the latter binding will overwrite the first one, get_bindings() will only overwrite bindings with equal spelling.) Copyright (c) 2005 Günter Milde Released under the terms of the GNU General Public License (ver. 2 or later) """ import os, sys, logging # Customizable values from LyX.lyx_constants import SYSTEM_DIR, USER_DIR, LYXRC_FILE, LOG_LEVEL # set up the logger instance logger = logging.getLogger("lyx_bindings") logging.basicConfig() #set verbosity to show all messages of severity >= LOG_LEVEL logger.setLevel(LOG_LEVEL) # debugging # logger.setLevel(logging.DEBUG) def bindfile_path(filename): """Return the full path for the bind file `filename` Return empty string, if file is not found. Like the LyX binary, this looks first in USER_DIR and then in SYSTEM_DIR """ # Add extension (if not present) ext = os.path.splitext(filename)[1] if not ext: filename += '.bind' for base_path in (USER_DIR, SYSTEM_DIR): path = os.path.join(base_path, 'bind', filename) if os.path.isfile(path): return path return '' def get_bindings(path=LYXRC_FILE): """Return a dictionary of keybindings. Scan `path` recursively for `\bind_file`s, collect bindings in a "keyname: binding" dictionary """ # if not path: # return {} bindings = {} logger.info(" scanning '%s'"%path) for line in file(path): # logger.debug(" get_bindigs: parsing %s"%line.strip) if line.startswith(r'\bind_file'): (command, bindfile) = line.split(None, 1) bindfile = bindfile_path(bindfile.strip()) bindings.update(get_bindings(bindfile)) elif line.startswith(r'\bind'): (command, key, binding) = line.split('"', 2) bindings[key] = binding.strip() return bindings def print_bindings(bindings): """Pretty print the keybindings dictionary with adjusted columns and TAB separated keyname and function (to facilitate reading as CSV data) """ keys = bindings.keys() keys.sort() # sort non-regarding case # tmplist = [(key.lower(), key) for key in keys] # tmplist.sort() # keys = [key for (lowkey, key) in tmplist] max_keylen = max(map(len, keys)) for key in keys: print "%s\t%s"%(key.ljust(max_keylen), bindings[key]) def where_is(lfun): """Print the key(s) a lfun is bound to Does a regexp search for `lfun` in the keybindings dictionary """ for key, value in lyx_bindings.bindings.iteritems(): if re.search(lfun, value): print "%s: %s"%(key, value) def get_binding(key): """Print the binding for a key Doesnot currently 'normalize' the keynames, i.e. only works for keynames as found in the *.bind files """ try: print "%s: %s"%(key, lyx_bindings.bindings[key]) except KeyError: print "Key %s undefined (maybe different spelling?)"%key # Code that is always run when importing the module bindings = get_bindings() if __name__ == '__main__': print_bindings(bindings) # -*- coding: iso-8859-1 -*- # lyx_constants.py """Customizable constants for the LyX package modules This module is loaded by all LyX-package modules that need customizable constants for values that might differ in different settings. - LyX settings and properties - pyLyX settings and properties CUSTOMIZATION: * per user: create ~/.lyx/pyclient/config.py w
Re: Instant Preview does not work
On Thursday 07 April 2005 04:15, Angus Leeming wrote: > Reuben D. Budiardja wrote: > > > > First, I am not sure if this is what is called "Instant Preview". > > Nope. "Instant Preview" is essentially a fudge to produce good looking > bitmap representations of your math formulae on the LyX screen. > > See http://wiki.lyx.org/LyX/InstantPreview Thank you. I just confirmed my self this after I tried compiling lyx on another machine running Redhat Enterprise 3. I got exactly what I've seen before without Instant Preview. > > It's a fudge because the LyX math editor should be able to display most > math itself. > > > Usually, when writing in Math mode in Lyx, greek symbols and math > > symbols, etc are converted into nice looking symbol graphic that you > > would see just like in the printed / ps version. I don't remember having > > to enabled anything, it just worked. Now, instead I got ERT. > > You're missing some fonts. > http://wiki.lyx.org/LyX/Troubleshooting Yep, it looks that way. This must have something to do with this new distro I use since usually I could just compile lyx and the fonts works fine. I'll try to install the missing fonts following the instruction there, and get back here when I have more questions. Thank you for the help. RDB -- Reuben D. Budiardja Dept. Physics and Astronomy University of Tennessee, Knoxville, TN -BEGIN GEEK CODE BLOCK- Version: 3.12 GIT/M/MU/P/S d-(++) s: a-- C++(+++) UL P-- L+++> E- W+++ N+ o? K- w--- !O M- V? !PS !PE Y PGP- t+ 5 X R- tv+ b++>+++ DI D(+) G e++> h+(*) r++ y-> --END GEEK CODE BLOCK--
Re: Shortcuts
On Thu, 7 Apr 2005, G. Milde wrote: > On 6.04.05, Alfredo Braunstein wrote: > > Geoffrey Lloyd wrote: > > > > ... is there a list of all the in built keyboard shortcuts for lyx. > > > > - The LyX Wiki (http://wiki.lyx.org/Tips/KeyboardShortcuts for instance) > > The LyX Wiki has even a list of such lists at > >http://wiki.lyx.org/LyX/KeyboardShortcuts # Group LyX instead of Tips! > > and a tcsh script to extract such a list from your bind files. > (I have a python script here, which is part of my LyX.py package.) It is also possible to generate a PDF with the current keybidnings using a template file and some script -- it's probably on the wiki somewhere. If it's of interest, let me know and I can dig it out. (The idea was that it could be used to generate a nice list of the keybindings for each new version of lyx - not that the keybindings change that often though). /C -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: Instant Preview does not work
Reuben D. Budiardja wrote: > > Hello, > I just upgraded my workstation to Red Hat Enteprise Linux 4, and so I had > to recompile and re-install Lyx. I grabbed the latest Lyx release > (lyx-1.3.5) and recompiled. I use Lyx with QT front-end. > > First, I am not sure if this is what is called "Instant Preview". Nope. "Instant Preview" is essentially a fudge to produce good looking bitmap representations of your math formulae on the LyX screen. See http://wiki.lyx.org/LyX/InstantPreview It's a fudge because the LyX math editor should be able to display most math itself. > Usually, when writing in Math mode in Lyx, greek symbols and math > symbols, etc are converted into nice looking symbol graphic that you > would see just like in the printed / ps version. I don't remember having > to enabled anything, it just worked. Now, instead I got ERT. You're missing some fonts. http://wiki.lyx.org/LyX/Troubleshooting > I am not sure what I did wrong, or what I should do to get this > functionality back. When I tried to enable the "Instant Preview" by > checking the box under Preference -> Look and Feel -> Graphics, and then > try to write some greek letter in Math mode using "\gamma", I see this in > console: > > latex failed to compile 1lyxpreview.tex You need to install some additional bits to get Instant Preview working, but really you should try and get the math editor to display your equation itself. -- Angus
Re: eqnarray and topsep
Uwe Stöhr schrieb: > That's not true, have a look at section 18.5 of > > http://wiki.lyx.org/uploads/LyX/LyXMathebefehle/LyXMathebefehle.pdf Ah, thank you, Uwe! Until now I used an older version of your helpful paper, and there was in Section 17 no hint on split and alike. kind regards, bernhard -- http://www.mb-schiekel.de/ GPG-Key available: GnuPG-1.4.0
Re: problems with language
G. Milde wrote: > On 6.04.05, Michael Creel wrote: >> I have a newly developed problem with the language LyX starts up in. If I >> start LyX from a konsole terminal, it comes up in English, which is what >> I want. But I have .lyx files associated with LyX in my KDE settings, >> too. When I click on a .lyx file it opens in LyX, but the LyX user >> interface is German (I think). This just started happening recently. I'm >> running Debian unstable, with a recently updated system. Thanks in >> advance for any advice. Michael > > LyX uses the LANG environment variable to determine the language to run > in. Usually, this variable is set in the .bashrc (or equivalent) script. > > I remember problems with KDE, as the X windomanager did not evaluate my > .bashrc. > > Maybe setting the command associated with a lyx file to "LANG=en_GB; lyx" Hello, thanks, this did work. I have no idea why this started happening. I have been using LyX with KDE for many years now and I've never seen this before. At any rate, this did the trick. Thanks. Michael
include graphics with pgf
Hi, I am creating a presentation with the beamer class, and I've seen that the figures are often included by means of pgfdeclareimage/pgfuseimage instead of the usual includegraphics. My question is if lyx can insert the pgf code when inserting a figure or if I must write it inside an ERT box. Which are the differences between the two ways? Which benefits can I expect when using pgf? Thanks in advance.
Re: eqnarray and topsep
Herbert Voss schrieb: > > ah, okay I missed the fleqn ... > See attached example. Dear Herbert and Uwe, again thank you both very much! Please excuse my (hopefully) last question in this matter. Now it seems, that I do not really understand the paragraph managment in connection with equation/eqnarray and the diffences therein with/without AMS math. Please have a look at the attached sample file. bernhard -- http://www.mb-schiekel.de/ GPG-Key available: GnuPG-1.4.0 #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass scrartcl \options fleqn \language german \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 1 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard 1. paragraph: x \newline y \layout Standard 2. paragraph: in the next paragraph will be an equation \newline (why is the following vertical space different with/without AMS math, and which LaTeX parameter controls this?) \layout Standard \begin_inset Formula \begin{equation} x=1\label{eq:1}\end{equation} \end_inset \layout Standard 4. paragraph: x \layout Standard 5. paragraph: in the next paragraph will be an eqnarray \newline (which LaTeX parameter controls the following vertical extra space?) \layout Standard \begin_inset Formula \begin{eqnarray} y & = & x\nonumber \\ & & +1\label{eq:2}\end{eqnarray} \end_inset \layout Standard 7. paragraph: the following equation is part of this paragraph \begin_inset Formula \begin{equation} z=1\label{eq:3}\end{equation} \end_inset \layout Standard 8. paragraph: the following eqnarray is part of this paragraph \begin_inset Formula \begin{eqnarray} \textrm{zz} & = & z\nonumber \\ & & +1\label{eq:4}\end{eqnarray} \end_inset \layout Standard 9. paragraph: now, 7. & 8. is, what I wanted to arrive - hmm ... \the_end
Re: switch keymaps to use cyrillic
On 6.04.05, Christopher Winkler wrote: > > My problem: Getting LyX to write Cyrillic and German in one text by > switching the keymaps... > In a message form Dekel Tsur to > this list from 20 Nov 2001 he then says to use the Alt-k 1/2 command to > switch between Russian and Latin keymaps. Sounds good, BUT: Since I use LyX > in German, the combination Alt-k is occupied, so that doesn't work. May be I > am blind - but I could't find help on that in the manual. > > So: How can I convince LyX to switch the keymaps? Try to find out the lyx-function responsible for the switch. Maybe Dekel Tsur mentioned it. If not, you can start lyx with LANG=en; lyx to get an English speaking lyx, try Alt-k 1/2 and look at the status line to see the called function. Or grep in the *.bind files for "M-k" Then you have to find a spare key and define the binding (see Help>Customization (Hilfe>Anpassung) and the LyX WiKi). Günter -- G.Milde web.de
Re: Shortcuts
On 6.04.05, Alfredo Braunstein wrote: > Geoffrey Lloyd wrote: > > ... is there a list of all the in built keyboard shortcuts for lyx. > > - The LyX Wiki (http://wiki.lyx.org/Tips/KeyboardShortcuts for instance) The LyX Wiki has even a list of such lists at http://wiki.lyx.org/LyX/KeyboardShortcuts # Group LyX instead of Tips! and a tcsh script to extract such a list from your bind files. (I have a python script here, which is part of my LyX.py package.) > In a nutshell, (but depending on your customizations), you'll find all > default shortcuts in a .bind file, usually cua.bind somewhere in the global > lyx directory. You can also change those bindings of course. It is a bit more complicated, as a *.bind file can include other *.bind files and keybindings can be overwritten. (The abovementioned scripts do a recursive parsing of the *.bind files to count for this.) Günter -- G.Milde web.de
Re: ERT out of box - 1.1.6 style?
On 6.04.05, Angus Leeming wrote: > Jean-Marc Lasgouttes wrote: > >Angus> You can do this for all ERT insets in your document with > >Angus> $ sed ... > > > >I guess you'll agree with me that being forced to do that is a bit > >silly :) The question is: what good binding could we have for that? I will not need a binding for conversion of all ERT insets if I could do it right the first time --> I'd like to be able to configure what "flavour" of ERT I get with Ctrl-L. > It's not so easy as that for 1.3.x. The dialog controller just invokes > the relevant inset member function. No LFUNs used. So, please consider LFUNS for 1.4.x. Maybe just an (optional?) argument to ert-inset, then I could bind \bind "C-l" "ert-insert open" or \bind "C-l" "ert-insert inline" Maybe the same function could be used to switch between open/inline if the cursor is in an ERT inset. Another possibility would be a new LFUN "ert-set" and the above becomes \bind "C-l" "ert-insert" # default is open or \bind "C-l" "command-sequence ert-insert; ert-set inline;" Günter -- G.Milde web.de