Re: Opening a file in a running Lyx ?
Am Tue, 26 Nov 2002 14:51:20 -0500 schrieb Ronald Florence <[EMAIL PROTECTED]>: > Is there a helper application that will check for a running LyX, open > the file there if it is available, or start LyX if there is none > running? Gimp-remote, which does the same for gimp, is the model I'm > thinking of. Use the LyxServer-pipe: 1) in the menu-entry "Bearbeiten-Einstellungen-Eingabe-Pfade-LyXServer pipe"(I use the german translation) put something like "/home-xx/.lyx/lypipe" (replace /home-xx with your $HOME -path). 2) write a litte script like: - #!/bin/sh if [ -e ~/.lyx/.lyxpipe.in ] then echo "LYXCMD:test:file-open:$1" >~/.lyx/.lyxpipe.in read a <~/.lyx/.lyxpipe.out echo $a else lyx -geometry 690x715+0+0 $1 fi - 3) name the script as you like (perhaps lyxremote) and put it in a path where it will be found (like /usr/local/bin). Now you can load every lyx-file in an existing running LyX. If it's not started, the script will start a new one. Of course you have to call your *.lyx- files with lyxremote file.lyx 4) a little problem occurs, when lyx crashes: the files $HOME/.lyx/lyxpipe.* will not be deleted so that "lyxremote" thinks there exists a running lyx -- you will have to delete $HOME/.lyx/lyxpipe.* by yourself. This procedure works for me (lyx1.2.1): there is also help about the lyx Server-pipe in the helpfiles included with the lyx-package. hope it helps Peter
Re: Controlling figure and table placement
Am Sonntag, 21. April 2002 22:17 schrieb Kent Kostuk: > I have used Figure and Table floats throughout. There are times when the > text refers to a figure or table after it is mentioned in the text. Is > there a way to get these to "show up" after they are mentioned? in praeambel put: \usepackage{float} in menu put "H" as option; this should put all floats directly where they are mentioned. Hope it helps Peter
Re: Page breaks for double column
Am Don, 2002-03-14 um 23.59 schrieb Bob Gamble: > Hello, > > Originally, I had a single column paper using the article document > layout. I am required to convert this to a two-column layout. My > problem is that, when viewed in .dvi, it shows my table of contents and > bibliography on the same pages as the text of my research paper, even > though I have page breaks inserted to separate these parts of my paper. put \usepackage{multicols} in your praeambel; with \begin{multicols}{2} in ERT you can switch to the two column-layout. At the end of your document put an \end{multicols}. > I also need to start the numbering on the first page of the paper itself, > not on the table of contents page. Everything else about the article > layout is great. Any help appreciated. put \thispagestyle{empty} in RET on the first page (with the TOC). With \setcounter{page}{0} in RET you can reset the pagenumber to zero. Have a look to the short lyx-example-file. There a the commands above a little bit enhanced with the possibility to change the columnseparator-width. I hope this helps Peter #LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 218 \textclass article \begin_preamble \usepackage{multicol} \newcommand\myColumnSep[1]{% \setlength{\columnsep}{#1}} \newcommand\mymulticols[2]{% \myColumnSep{#2}\begin{multicols}{#1}% } \newcommand\multicolsoff{\end{multicols}} \end_preamble \language english \inputencoding latin1 \fontscheme palatino \graphics default \paperfontsize default \spacing single \papersize a4paper \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 Changing between one + X- column \latex latex \backslash thanks{this is a short example} \layout Abstract \noindent Here a short example of changing between one and twocolumn-layout. Have a look to the praeambel. \layout Standard \begin_inset LatexCommand \tableofcontents{} \end_inset \layout Standard \latex latex \backslash thispagestyle{empty} \backslash setcounter{page}{0} \backslash newpage \layout Standard \latex latex \backslash mymulticols{2}{0.5cm} \layout Section Columns \layout Itemize with \family typewriter \backslash usepackage{multicol} \family default you are ready to do it; \layout Itemize in the text use the command \family typewriter \backslash mymulticols {#number of colums}{#columnseparator-size} \family default you switch to your new layout. \layout Itemize the command \family typewriter \backslash multicolsoff \family default resets to the default value. \layout Section Changing the Pagenumber \layout Itemize with \family typewriter \backslash thispagestyle{empty} \family default you get your page with no numbers displayed. \layout Itemize \family typewriter \backslash setcounter{page}{0} \family default reset the pagecounter to 0. \layout Standard \latex latex \backslash multicolsoff \layout Standard \noindent bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \layout Standard \align left I hope this helps \layout Standard \added_space_top 2cm \align left Peter \the_end
Re: layout-problems
Am Samstag, 9. Februar 2002 16:34 schrieben Sie: > I want to write my "Facharbeit" ( I don't know, what the English word is - > it's something for school ) with LyX. > It has very strict layout rules ( I hope this is right - however sorry for > my English ) > I use the document-class "report", changed the size of char ( I don't know > the proper translation ) to 12 point, the space between lines to one and a > half and the margins using the Document Layout-Dialogue. > But there are some problems: > 1. The title-page has to include author, title, year ( no problem ) *and* > school, class. > How can I do this? Insert some lines with in the title paragraph, type in your text, perhaps format the lines with a smaller font. > 2. The table of contents may not have a page number. I tried > "\pagestyle{empty}". It works with every page, but not with the toc. > Does anyone know what to do? type at the position where the TOC should appear: \tableofcontents \addtocontents{toc}{\protect\thispagestyle{empty}} in RET. > 3. I use "Chapters" to structure my text. The Output is like: > Chapter > Title > But I want it like: > . -some horizontal space- Title Change the document-class to report(koma-script) -- then you will get it. Hope it helps, Peter
Re: Lyx (forwarded to lyx-users from a German user)
> > The Windows "Arial" font is essentially a lightly modified copy of > > Helvetica. Ask your teacher if Helvetica would be an acceptable > > substitute. If so, in your LyX document, set Layout->Document->Fonts to > > "helvet", and see if the output will be satisfactory. Hallo, der Versuch eine serifenlose Schrift wie helvetica als Standardschrift in LyX einzusetzen über Document-> Fonts funktioniert bei mir nicht; diese Einstellung wirkt sich nur auf die Darstellung der Überschriften aus, jedoch nicht auf den gesamten "Standard-Text"; obwohl helvetica aus Auswahlmöglichkeit angegeben wird, werden nur section, chapter etc. geändert. Fügt man jedoch im Latex-Vorspann \AtBeginDocument{ fontfamily{cmbr}\selectfont } ein, dann klappt es. Vielleicht kann mir jemand einen Tipp geben, wie man das auch über die Menüs erreichen kann (LyX 1.1.6fix1) Peter