Re: Spacing Between Columns
MH Lee wrote: > > Thanks Herbert, I managed to do as you mentioned. But my two eps files > insert through Insert/Floats/Figure Float not display on dvi but if I change > it to Wide Figure Float it will display nicely but figure will across two > columns. Any suggestion are appreciated. floats are not possible in multicol environment, only widefloats. the attached example-files show, how you can insert figures with captions \myFigure{1.0}{Pisa.eps}{Der schiefe Turm von PISA} the first option (1.0) is a factor of picturewidth in relation to columnwidth. 0.5 makes the image half as columnwidth. the second is the path and name for the image. the third option is the caption. this are not real floats, so you have to pay attention for right placing, which is in two-column mode not very difficult. Herbert #LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 2.16 \textclass article \begin_preamble \usepackage{multicol} %\usepackage{graphics} \newcounter{myFCounter}[section] \usepackage{graphicx} \newcommand{\myFigure}[3]{% \begin{center}\begin{minipage}[t]{\columnwidth}% \begin{center}\refstepcounter{myFCounter}\vspace{1ex}% \includegraphics[width=#1\columnwidth,keepaspectratio]{#2}\ \\% \sc Figure: \thesection .\arabic{myFCounter}\rm #3 \vspace{1ex}\end{center}% \end{minipage}\end{center}} \setlength{\columnsep}{1.3cm} \end_preamble \language english \inputencoding default \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Title my Title \layout Author Author \layout Date 31.12.00 \layout Address my adress comes here \layout Abstract text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and \layout Standard \latex latex \backslash begin{multicols}{2} \layout Section My First Section \layout Standard text and bla bla and text and bla bla text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text \layout Standard \latex latex \backslash myFigure{1.0}{texte/Pisa.eps}{Der schiefe Turm von PISA} \layout Standard bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text \layout Standard text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text \layout Standard text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text \layout Section My Second Section \layout Standard and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text and bla bla and text \layout Standard \latex latex \backslash myFigure{0.75}{texte/Pisa.eps}{my 2nd. Figure Caption for Pisa} \layout Standard and bla bla and text and bla bla and text and bla bla and text and bla bla and text
FW: Help with Bibliography.
-Original Message- From: Zailong Bian To: '[EMAIL PROTECTED]' Sent: 8/30/00 1:35 PM Subject: Help with Bibliography. I am using the latest lyx to write a report. I am using Koma-script report. Everything seems great from beginning and now I am getting close to finish the report...But I found there is big problem with bibliography! The number showing in the grey box at beginning of each bib item is NOT the same as the one in the key field when I click on it. This happened after I inserted some bib items and moved some others around! The numbers in grey box are ordered from 1 to ..., but the key fields of them are not! And the citation in the text doesn't change with the grey box but stay with the old key numbers. Now they seem totally messed up. I tried to change the key field to make it the same as showing in grey box, but after inserting some bib items, it got screwed again! And almost the all the references in the text are wrong. What can I do to fix it? I have left all the label field blank. I didn't think it is any useful... Thanks!
Re: endnotes
On 27 Aug 00, at 17:55, German Poo Caaman~o wrote: > thomas schönhoff wrote: > > I desperately trying to insert endnotes in my > > document, doing it like this: Just a question (not only to you, but rather to more general public on the list :-): What are the endnotes for in the first place? I am certain that there must be a reason for them, but it is very unclear to me -- I always hate when I have to browse repeatedly through a book just to read what could be easily placed (in the time of DTP or even LaTeX) in the bottom of the page, where it could be read instantly without any fuss. I am certain, that I must be wrong in my hate of endnotes (especially, the ones in the end of chapter -- these are the worst) when all those page-designers knowing much better than myself their job (I have just downloaded package kluwer from Kluwer Academic Publishers, which expressly forbids using footnotes at all -- everything should into endnotes), but I am totally confused, because I cannot see any clever reason for such policy. Any thoughts? Matej
Re: Document versions
Let me transfer a discussion from lyx-docs. I think, that it may be much more interesting here. On Tue, 18 May 1999 08:39:17 -0700 Amir Karger wrote on lyx- docs list: > > I was just thinking about comparing two documents and seeing > > additions/deletions, like diff does for text file. > > > This sounds Hard. Do tools like this exist for, say, HTML? If so, > we could probably steal them. I would like to give an info about ndiff (from Python 1.5.2 distribution -- see attached). Does it make any sense to you (IMJAL - I am just a lawyer, no programmer)? > - word wrap. I did some work on a perl diff (Algorithm::Diff in > CPAN). We had talked about the possibility of a "word-based" diff. > In fact, I think someone (Jean-Marc?) said a wdiff already exists. > Alternatively, we could make all paragraphs into one line and then > run the diff. If you want to display the differences as a LyX or to divide whole document into one-word-per-line format and then compare by regular diff. > - character formatting. Ouch. This is actually several problems. > (1) add an italicized word to a regular paragraph. (2) add a word > (in italics) to an italicized paragraph. (3) change a word from > regular print to italics. Um, I suppose you could remove all > character formatting and just compare text, which would be better > than nothing. In my experience fromatting is not so important as a content (actually, I am glad, checking differences in formatting is now optional in Word). > Ah. I've been thinking of doing the diff outside of LyX, of some > version of a diff on the text of a LyX file. To do it within LyX > has a different set of problems. For example, you have character > formatting information on each character, making comparison easier. > But you'll need to steal the GNUdiff algorithm and put it into LyX. > Ugh. Much better IMHO than making diffs on two files is some kind of mechanism, which records revisions while they are made. Actually, I almost never use "Compare versions" feauture in Word (I am sorry for talking so much about Word -- I really prefer LyX and real programms to toys, honestly!), or I am using it only when necessary (= our client is stupid and I haven't been successfull in explaining what are the revisions about). I know that it is much more work for LyX programmers (than just throwing something in diff), but I am afraid that diff is The Bad Thing for everything other than computer programs and silmilar stuff. Any comments? Matej #! /usr/bin/env python # Module ndiff version 1.4.0 # Released to the public domain 27-Mar-1999, # by Tim Peters ([EMAIL PROTECTED]). # Provided as-is; use at your own risk; no warranty; no promises; enjoy! """ndiff [-q] file1 file2 or ndiff (-r1 | -r2) < ndiff_output > file1_or_file2 Print a human-friendly file difference report to stdout. Both inter- and intra-line differences are noted. In the second form, recreate file1 (-r1) or file2 (-r2) on stdout, from an ndiff report on stdin. In the first form, if -q ("quiet") is not specified, the first two lines of output are -: file1 +: file2 Each remaining line begins with a two-letter code: "- "line unique to file1 "+ "line unique to file2 " "line common to both files "? "line not present in either input file Lines beginning with "? " attempt to guide the eye to intraline differences, and were not present in either input file. These lines can be confusing if the source files contain tab characters. The first file can be recovered by retaining only lines that begin with " " or "- ", and deleting those 2-character prefixes; use ndiff with -r1. The second file can be recovered similarly, but by retaining only " " and "+ " lines; use ndiff with -r2; or, on Unix, the second file can be recovered by piping the output through sed -n '/^[+ ] /s/^..//p' See module comments for details and programmatic interface. """ __version__ = 1, 4, 0 # SequenceMatcher tries to compute a "human-friendly diff" between # two sequences (chiefly picturing a file as a sequence of lines, # and a line as a sequence of characters, here). Unlike e.g. UNIX(tm) # diff, the fundamental notion is the longest *contiguous* & junk-free # matching subsequence. That's what catches peoples' eyes. The # Windows(tm) windiff has another interesting notion, pairing up elements # that appear uniquely in each sequence. That, and the method here, # appear to yield more intuitive difference reports than does diff. This # method appears to be the least vulnerable to synching up on blocks # of "junk lines", though (like blank lines in ordinary text files, # or maybe "" lines in HTML files). That may be because this is # the only method of the 3 that has a *concept* of "junk" . # # Note that ndiff makes no claim to produce a *minimal* diff. To the # contrary, minimal diffs are often counter-intuitive, because they # synch up anywhere p
Followup: Bibliography problems.
I am using the newest lyx. I use koma-script report class. The bibliography sesms having some problems. For example: The 7th bib item has key value 8. And where I refer to it in text, it appears as [8] in lyx. But when I print it, it prints out [7] in the paper. So, it seems that I can get around the problem by always refering to the key value, not the number showing in the grey box at beginning of each bib item. At least it is correct on printed copy. But the problem is: one single key valye can show up twice in different bib items! That happened so it is really a problem! Anyone has a fix? Thanks!!
Re: endnotes
Matej Cepl wrote: > > On 27 Aug 00, at 17:55, German Poo Caaman~o wrote: > > > thomas schönhoff wrote: > > > I desperately trying to insert endnotes in my > > > document, doing it like this: > > Just a question (not only to you, but rather to more general public > on the list :-): > > What are the endnotes for in the first place? I am certain that there > must be a reason for them, but it is very unclear to me -- I always > hate when I have to browse repeatedly through a book just to read > what could be easily placed (in the time of DTP or even LaTeX) in > the bottom of the page, where it could be read instantly without any > fuss. endnotes have a historical background. the first books had no foot- or endnotes. with the upcoming of the science of arts and humanities, books became an appendix and endnotes, no footnotes. footnotes came up later with books of nature science. so there is no real sense for foot- and/or endnotes. some people hate notes anyway, they want to read the book and not searching for notes. others want to read the text and don't want to know to whom the citation belongs, so they prefer endnotes. and others want to know the meaning of some abbreviations and they like it, when this is explained on the same page. > I am certain, that I must be wrong in my hate of endnotes > (especially, the ones in the end of chapter -- these are the worst) > when all those page-designers knowing much better than myself > their job (I have just downloaded package kluwer from Kluwer > Academic Publishers, which expressly forbids using footnotes at all -- > everything should into endnotes), but I am totally confused, > because I cannot see any clever reason for such policy. i think it's a bad habit, when the footnotes are sometimes a book in a book. so a compromise between text and and a few footnotes is the best way, but this is only my point of view. Herbert
dislplay of enumerations.
Hello, I have a request for a more neat solution, for producing enumerated lists of arbitrary type Lyx is able to display standard enumerations at the top level as \begin{enumerate}[(a)] \item \item ... \end{enumerate} However, if I \usepackage{enumerate} and try this: \begin{enumerate}[(i)] \item \item ... \end{enumerate} strange things happen with reLyx:ed code, i.e. neither reLyX nor LyX can as far as I know handle this issue by default. ReLyX adds the enumeration tag [(i)] to the visible text and switches the enumerations to 1. 2. instead of (i) (ii) The only way I have succeeded in producing enumarated list of the type, i,ii,iii,... is by forcing the plain LaTeX code into the text, and by deleting the code produced by ReLyX. Does anybody have a more decent solution? Best, Staffan