caption under figure?
Hello I has a document formatted with Komascript in tables and figures captions to be above. How can I adjust the figure captions under the figure to be? Thanks jojo -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION Kein Einrichtungspreis nutzen: http://www.gmx.net/de/go/dsl
Re: caption under figure?
Hello I has a document formatted with Komascript in tables and figures captions to be above. How can I adjust the figure captions under the figure to be? Thanks jojo try to do the following command 1. Insert Floats Figure (as usual) 2. Type the caption of figure... 3. Put the pointer after Figure #: then press ENTER the pointer could be above the caption... then 4. insert the figure with command insert graphics Regards, Wayan
Re: tex2lyx for Linux
Sven Schreiber wrote: In contrast, the way you describe it, it sounds wonderful: Skip the manual pdf-graphics-creation and just have lyx/imagemagick create the necessary png's on the fly. Just need one .eps (like in the old days...). That is/would be great! It is like that also in 1.3, but: Unfortunately both in 1.3 and 1.4 the output type for pdflatex for automatic conversion is hardcoded to png. This is fine for bitmap images, but not for vector graphics. This problem has been discussed several times before, but to solve it we would need an algorithm to determine wether to convert to png or pdf from a given format, and up to now nobody came up with such a beast. I meant: which wiki page should it be added to? I don't know. Put it where you think it fits, if it turns out that there is a better place people will move it. Georg
preamble stuffs and macros
Dear List, I tried doing this... I went to document in Layout menu, then I went to preamble and put this \newcommand\Z{\mathbb{Z}} And went to my document and changed to mathmode and typed \Z in it.. in LaTeX this would be understood as \mathbb{Z} and everything would go fine.. but in LyX, apparently the preamble was disregarded .. an error occured when I tried to view this in dvi saying that \Z is an undefined control sequence (which would have happened in LaTeX had I not but \newcommand in the preamble) .. So later I learned by reading the userguide that I have to use math-macro .. the documentation is however a bit confusing, should I type the following in the minibuffer math-macro Z \mathbb{Z} or what? I don't quite get this part of the documentation. And the definition box that appears after I define a macro.. it looks wierd in the document, I do hope it doesnt appear on the pdf/dvi/etc. output... I would suggest that the devoloper allow the \newcommand in the preamble to work rather than having a math-macro. Because that way it looks cleaner. Sincerely, Jose Capco __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail
Re: tex2lyx for Linux
Georg == Georg Baum [EMAIL PROTECTED] writes: Georg This problem has been discussed several times Georg before, but to solve it we would need an algorithm to determine Georg wether to convert to png or pdf from a given format, and up to Georg now nobody came up with such a beast. I guess the best solution would be to associate a cost to each converter that tells how lossy conversion is. JMarc
replacing texts
Dear List, Regarding replacing texts in mathmode? how is it done.. or is it at all doable? Sometimes I want to change symbols in the middle of my article and then I go to deep hell if the replace function do not work in mathmode (which is another reason why I should know how to hack the .lyx text file. Sincerely, Jose Capco __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250
Re: tex2lyx for Linux
On Fri, 4 Feb 2005, Georg Baum wrote: I meant: which wiki page should it be added to? I don't know. Put it where you think it fits, if it turns out that there is a better place people will move it. If you create a new wiki page (anybody is welcome to do that) then please remember to edit the 'PageList'-page and add a link to the new page. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: tex2lyx for Linux
Jean-Marc Lasgouttes wrote: Georg == Georg Baum [EMAIL PROTECTED] writes: Georg This problem has been discussed several times Georg before, but to solve it we would need an algorithm to determine Georg wether to convert to png or pdf from a given format, and up to Georg now nobody came up with such a beast. Good point about the bitmap thing, I'm definitely a vector fan. After looking a little at the devel mailing archives to get an idea of the discussion: I may be wrong, but could it be that people wrongly equate pdf=vector? AFAIK, pdf can hold both types of graphics, and e.g. imagemagick can produce pdfs, but *only* with bitmaps (last time I checked, or am I wrong here?). To my knowledge the only vector ways to go eps-pdf is ghostscript or acrobat. Again, please correct me if I'm wrong. But maybe for output the bitmaps are not so bad as they seem at first. Most scholarly writing (the target group of lyx) is meant for something like 600dpi laser printer resolution, even if you never really print it out. You can convert your pngs in a way that looks good there. I mean for the same reason pngs mostly work well on the web, and many lyx users probably never noticed that it was being converted (?). See also my user option suggestion below. I guess the best solution would be to associate a cost to each converter that tells how lossy conversion is. Without any offense: As a user I would like to have control and not rely on some hidden fuzzy-logic algorithm. Why not an option in preferences-lookfeel-graphics? This preference pane is almost empty now. What about something like a tick box Warn when converting vector graphics to bitmap, and secondly an editable field approx. target resolution for bitmapped images if necessary. A completely different path of course would be to count on ghostscript, but maybe lyx shouldn't depend on that. Anyway, just my suggestions, no urgent need on my side (remember I just found out about the auto-conversion for pdflatex yesterday!) -sven
Re: tex2lyx for Linux
Sven Schreiber wrote: Good point about the bitmap thing, I'm definitely a vector fan. After looking a little at the devel mailing archives to get an idea of the discussion: I may be wrong, but could it be that people wrongly equate pdf=vector? No, at least I can't remember people doing that. AFAIK, pdf can hold both types of graphics, and e.g. Yes. imagemagick can produce pdfs, but *only* with bitmaps (last time I checked, or am I wrong here?). To my knowledge the only vector ways to go eps-pdf is ghostscript or acrobat. Again, please correct me if I'm wrong. And this is the problem: Since converters are user definable, we don't know wether a given eps - pdf conversion retains vector data or not. But maybe for output the bitmaps are not so bad as they seem at first. True, but the optimal solution that should be implemented some day would be to retain vector data. I guess the best solution would be to associate a cost to each converter that tells how lossy conversion is. Without any offense: As a user I would like to have control and not rely on some hidden fuzzy-logic algorithm. Why not an option in This is no fuzzy logic, and in order to be usable it would need to be documented. You have complete control over your converters, of course you would also be able to adjust the cost factor. I think it is indeed a useful approach. preferences-lookfeel-graphics? This preference pane is almost empty now. What about something like a tick box Warn when converting vector graphics to bitmap, and secondly an editable field approx. target resolution for bitmapped images if necessary. The problem is: We don't know always wether a given file contains vector or bitmap data. So we can't issue that warning. A completely different path of course would be to count on ghostscript, but maybe lyx shouldn't depend on that. Anyway, just my suggestions, no urgent need on my side (remember I just found out about the auto-conversion for pdflatex yesterday!) LyX depends heavily on ghostscript (at least in the default configuration). But again, this is configurable. Georg
how to newpage?
Dear List, Stupid question.. how do new page or page break? Sincerely, Jose Capco __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250
Re: Viewing eps/pdf within LyXWin on Windows 2000
Thanks for your response Uwe, I was originally using Image Magick 6.0.2 (I think). I upgraded it to 6.1.9 but I am still having the same problem! I am using AFPL Ghostscript 8.50 and LyXWin 1.3.5 win32 nc. - I can view .jpg and .ppm images inside LyX - I can not view .eps or .pdf images inside LyX - I can view the DVI, PDF(pdflatex)and Postscript outputs fine (but not the PDF (dvipdfm) output) I can run convert from the command line (convert eps:c:\aulogo.eps ppm:c:\test.ppm), and was able to convert the .eps image that LyX was having trouble with to a .ppm Any more ideas on what might be wrong?? I ran LyX in graphics debug mode and I have included the output at the end of this email. Thanks in advance Nick Burgan [EMAIL PROTECTED] wrote: Despite quite a bit of fiddling around I cant get .eps or .pdf files to display within LyX when I insert them into a document. When I insert such a figure I get the message Error conveting to loadable format in the box where the picture should be displayed. The output DVI is fine though. This is a ghostview/Imagemagick problem. Which version of ghostscript and Imagemagick are you using? If you can see other image formats than .eps, .ps, and .pdf inside LyX, an update to the newest Imagemagick version should help. regards Uwe Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\Documents and Settings\nburgancd c:\lyx\bin C:\lyx\binlyx -dbg graphics Setting debug level to graphics Debugging `graphics' (Graphics conversion and loading) Recognised Fileformat: ppm [GrahicsCacheItem::convertToDisplayFormat] Attempting to convert image file: C:/lyx/share/lyx/images/banner.ppm with displayed filename: C:/lyx/share/lyx/images/banner.ppm Recognised Fileformat: ppm The file contains ppm format data. The image loader can load the following directly: BMP JPEG MNG PBM PGM PNG PPM XBM XPM Of these, LyX recognises the following formats: bmp, jpg, pbm, pgm, png, ppm, xbm, xpm No conversion needed (from == to)! Loading image. just Loaded. pixmap isNull 0 xformed_pixmap_ isNull 0 Image loading succeeded. GraphicsImage::getScaledDImensions() params.scale : 100 width : 425 height : 290 pixmap isNull 0 xformed_pixmap_ isNull 0 setPixmap() Token: 'filename' Token: '\end_inset' Recognised Fileformat: eps [GrahicsCacheItem::convertToDisplayFormat] Attempting to convert image file: C:/Documents/graphics/aulogo.eps with displayed filename: C:/Documents/graphics/aulogo.eps Recognised Fileformat: eps The file contains eps format data. Unable to convert from eps to bmp Unable to convert from eps to jpg Unable to convert from eps to pbm Unable to convert from eps to pgm Unable to convert from eps to png Unable to convert from eps to ppm Unable to convert from eps to xbm Unable to convert from eps to xpm Converting it to ppm format. Converter c-tor: from_file: C:/Documents/graphics/aulogo.eps to_file_base: C:/lyx/tmp/lyx_tmpdir1040a00684/aulogo1040a00684 from_format: eps to_format:ppm build_script ... ready (edgepath.empty()) No converter defined! I use convertDefault.sh sh C:/lyx/share/lyx/scripts/convertDefault.sh eps:C:/Documents/graphics/ aulogo.eps ppm:C:/lyx/tmp/lyx_tmpdir1040a00684/aulogo1040a00684.ppm C:/lyx/share/lyx/scripts/convertDefault.sh ERROR Unable to find file C:/lyx/tmp/lyx_tmpdir1040a00684/aulogo1040a00684.ppm Image conversion failed. Unable to find converted file!
Re: replacing texts
On 4.02.05, Jose Capco wrote: Dear List, Regarding replacing texts in mathmode? how is it done.. or is it at all doable? Not from within LyX (= 1.3.n). (which is another reason why I should know how to hack the .lyx text file.) Actually, this is one of the few cases when I directly edit the .lyx source. Simply Save the buffer Open the file with a text editor Search and replace (math text looks like normal LaTeX) Open again in LyX Günter -- G.Milde web.de
Re: how to newpage?
On 4.02.05, Jose Capco wrote: Dear List, Stupid question.. how do new page or page break? FormatParagraph: Tab pagebreaks GM -- G.Milde web.de
Re: tex2lyx for Linux
Georg Baum wrote: And this is the problem: Since converters are user definable, we don't know wether a given eps - pdf conversion retains vector data or not. Ok, now (I think) I understand. True, but the optimal solution that should be implemented some day would be to retain vector data. But this seems to clash with user-definable converters, doesn't it? It almost seems like incompatible design choices: user-choices vs. automatic-good-choices-by-prgoram. No single one is superior per se, but should be followed consistently. This is no fuzzy logic, and in order to be usable it would need to be documented. You have complete control over your converters, of course you would also be able to adjust the cost factor. I think it is indeed a useful approach. I apologize, I didn't understand it properly before. Yes this would be very flexible. Maybe a little simpler would be to have priority rankings for each source format in a couple of drop-down lists. (The graphics preference pane is really empty...;-) ) Of course the user would need to be aware that the output also depends on her converter configuration. ok, have bothered you long enough, take care -sven
Re: Getting LyX to replace custom-defined symbols as if they were standard LaTeX symbols
Hello, Thanks for your reply and your example with \nicefraction. I did as you wrote but not get the instant preview to work, but the solution with math-macro works as wished and rocks! Thank you very much! D. Johan Ingvast wrote: On Wed, 2 Feb 2005, Davide Cescato wrote: Hello, I am writing a draft for an article and I am still unsure about the names of some variables I am going to use in my final version. In order to handle this situation, in LaTeX I would define \newcommand{\ntx}{N_T} \newcommand{\nrx}{N_R} and then use \ntx and \nrx in my formulas whenever needed. If I later decide to use M_T instead of N_T, I can just redefine \ntx correspondingly without replacing all occurrencies in the document. I can do the same in LyX, by adding the commands above to the document header or as LaTeX code within the document body. The point is that if I enter math mode and type \ntx\sigma\nrx , LyX will replace the LaTeX standard \sigma command with the Greek character, but not my custom-defined symbols, which will only appear with their command names in red. This makes my formulas almost as unreadable as if they were written in plain LaTeX! Is there a way to make LyX replace my commands as well, as it does with the standard LaTeX ones? I think that math-macro is what you really need. Math macro is like \newcommand and some more ... In the beginning of the document type: M-x math-macro ntx 0 Then you get a box at the cursor consisting of Macro: ntx and two boxes In the first box you fill in what shuld be displayed when processed by latex. The second box is what is shown in the lyx editor when you type \ntx. You can also add arguments to the math-macro by replacing the 0 to the number of arguments you want. The arguments are called by #no I sometimes defines a nicefraction by M-x math-macro nf 2 \nicefrac{#1}{#2} % first box #1/#2 % second box (with \usepackage{nicefrac} in preamble) Then i get nice looking fractions in the output when calling \nf Another maybe simpler solution is to turn on the instant-preview (in Preferences/Look and freel/graphics (qt-version)) and have your \newcommand's in the preamble. Then you will see the result in the lyx windown when you leave the equation. /johan
Re: beamer, pgf and anti-aliasing
Dear all, I am a happy user of LyX and latex-beamer. I would like to ask you all if someone has experienced my problem: the last week I've tried to insert a graphic logo of my university into a presentation. The only way in which \logo works is with the \pgfuseimage command. I work with lyx for windows and miktex. The problem is that everytime you use a \pgfuseimage command, you lost antialiasing. Fonts look not exactly pixelized and hard, but... primitive, maybe, with minor but annoying deformations. I am going to include to files, the .tex one and a zipped pdf output for illustrating my point. Any hint or advice? It is really sad, because PGF is GREAT with transparencies and other effects. On the other hand, a presentation is LIMITED in scope if you cannot include a corporative logo in every slide. If there is a (surely arcane) way to overrun this XOR dilemma, I would be happier than before. Thank you all in advance PS: the tex file is this: \documentclass[10pt,landscape,english]{beamer} \usepackage{helvet} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{color} \usepackage{graphicx} \usepackage{amssymb} \usepackage{pgf} \usepackage[english]{babel} \makeatletter %% LyX specific LaTeX commands. [EMAIL PROTECTED] \newcommand{\noun}[1]{\textsc{#1}} \newcommand{\lyxarrow}{\leavevmode\,$\triangleright$\,\allowbreak} %\usepackage{colortbl} %\usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps} \IfFileExists{url.sty}{\usepackage{url}} {\newcommand{\url}{\texttt}} \newcommand{\nsid}{\texttt{NS(I+D)}} %%% %\usefonttheme{structurebold} \setbeamertemplate{background canvas}[vertical shading][bottom=blue!10,top=red!30] \usetheme{PaloAlto} \usecolortheme{crane} \setbeamercovered{transparent} \usefonttheme{default} %%% \pgfdeclareimage[mask=fpvimask,width=13mm]{logofpvi}{logo7}%logo fpvi \pgfdeclareimage[mask=nsidmk,width=13mm]{nsidnano}{logonsid}%logo NSID pequeño \pgfdeclareimage[mask=nsidmk,width=38mm]{nsid}{logonsid}%logo NSID \pgfdeclareimage[mask=ruedamk,width=38mm]{rueda}{wheel2}%rueda \pgfdeclareimage[mask=sinermk,width=38mm]{sinergia}{tente}%sinergia-tente \pgfdeclareimage[mask=tikimk,width=38mm]{tiki}{tiki2}%logo tiki \pgfdeclareimage[mask=atlasmk,width=38mm]{atlas}{atlogwin}%atlas ti \pgfdeclareimage[mask=pdcamk,width=38mm]{pdca}{pdca01}%calidad \pgfdeclareimage[mask=tabletmk,width=38mm]{tablet}{tablet}%tablet \pgfdeclareimage[mask=camaramk,width=38mm]{camara}{sonydscv1}%visual \pgfdeclareimage[mask=gnumk,width=38mm]{gnu}{meditatinggnu}%gnu \pgfdeclareimage[mask=contextmk,width=38mm]{context}{contextresearch1}%context \pgfdeclareimage[mask=dicemk,width=38mm]{dice}{dicelaredcom}%dicelared \pgfdeclareimage[mask=cruce2mk,width=38mm]{cruce2}{crossroad1}%dicelared \pgfdeclareimage[mask=upsamask,width=13mm]{logoupsa}{logouni}%logo UPSA \pgfdeclareimage[width=38mm]{ciego}{blindfolded2}%ciegocalidad sin mascara \pgfdeclareimage[width=38mm]{bpunto}{barrapunto}%barrapunto sin mascara \pgfdeclareimage[width=38mm]{lyx}{lyxban}%lyx sin mascara \pgfdeclareimage[width=3.7cm]{cruce1}{crossroad-wt}%cruce1 sin mascara %\logo{\hbox{\pgfuseimage{logoupsa}}} %\hbox to 1cm{\hfil\pgfuseimage{logofpvi}}\vskip0.1cm %\logo{\pgfuseimage{logo}} \title[Presentación de NS(I+D)]{\texttt{NS(I+D)}: Presentación de resultados y condicionantes para un plan Estratégico} \date{Febrero 2005} %\institute[]{% % \hbox{\pgfuseimage{logoupsa}} \hfill \hbox{\pgfuseimage{logofpvi}} \hfill \hbox{\pgfuseimage{nsidnano}}} %\date{Fundamentals of Computation Theory 2003} \AtBeginSection[] { \begin{frame}beamer \frametitle{Índice} \tableofcontents[currentsection,currentsubsection] \end{frame} } \makeatother \begin{document} \begin{frame} \titlepage \end{frame} \begin{frame} \frametitle{Índice} \tableofcontents \end{frame} \section{Introducción} \begin{frame} \frametitle{Introducción} \begin{columns}%{} \begin{column}{40mm} \begin{center} \hbox{\pgfuseimage{nsid}} \end{center} \end{column} \begin{column}{6cm} \begin{block} {Introducción} \begin{itemize} \item 1-Con esta presentación se pretende exponer: \begin{itemize} \item 2-Las ventajas de nuestros desarrollos --- individuales y sinérgicas. \item 3-La interpretación del momento presente como ventana de oportunidad. \end{itemize} \item 4-Un contexto necesario para la toma de decisiones estratégicas. \end{itemize} \end{block} \end{column} \end{columns}%{} \end{frame} \begin{frame} \frametitle{Introducción} \begin{columns}%{} \begin{column}{40mm} \begin{center} \hbox{\pgfuseimage{rueda}} \end{center} \end{column} \begin{column}{6cm} \begin{block} {¿Qué es desarrollo para \nsid?} \begin{itemize} \item 1-Nuestra función no es desarrollar software sino \textbf{aprovecharlo}. \item 2-El estado actual de las \textsc{tic} permite dejar de reinventar la rueda. \item 3-$\Rightarrow$El examen
Re: preamble stuffs and macros
Jose Capco wrote: I went to document in Layout menu, then I went to preamble and put this \newcommand\Z{\mathbb{Z}} And went to my document and changed to mathmode and typed \Z in it.. in LaTeX this would be understood as \mathbb{Z} and everything would go fine.. but in LyX, apparently the preamble was disregarded .. an error occured when I tried to view this in dvi saying that \Z is an undefined control sequence (which would have happened in LaTeX had I not but \newcommand in the preamble) .. \Z is an undefined control sequence is an error message of LaTeX, not of LyX! So later I learned by reading the userguide that I have to use math-macro .. No, you mustn't. You can of course use all LaTeX commands. \newcommand{\Z}{\mathbb{Z}} works fine for me, see the attached example LyX-file. regards Uwe #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \newcommand{\Z}{\mathbb{Z}} \end_preamble \options fleqn \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize 12 \spacing single \papersize a4paper \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 german \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 \begin_inset Formula \[ \Z\] \end_inset \the_end
Re: Viewing eps/pdf within LyXWin on Windows 2000
[EMAIL PROTECTED] wrote: I was originally using Image Magick 6.0.2 (I think). I upgraded it to 6.1.9 but I am still having the same problem! I am using AFPL Ghostscript 8.50 and LyXWin 1.3.5 win32 nc. Hmm I'm using these versions too, but without problems. - I can view .jpg and .ppm images inside LyX - I can not view .eps or .pdf images inside LyX - I can view the DVI, PDF(pdflatex)and Postscript outputs fine (but not the PDF (dvipdfm) output) I can run convert from the command line (convert eps:c:\aulogo.eps ppm:c:\test.ppm), and was able to convert the .eps image that LyX was having trouble with to a .ppm OK, the instalation seems to be fine. Any more ideas on what might be wrong?? - assure that the installation folder of LyX and all files and subfolders have full permissions for everybody - assure that you don't use self defined convertes in the menu Edit - Preferences. (There should be only nine converters defined.) The converter EPS - PDF should use the command epstopdf --outfile=$$o $$i If this doesn't help, I have no idea what is going wrong. regards Uwe
Tex to Lyx
A colleague sent me a .tex file as an attachment to an email. How do I go about importing this into a LyX document? I saved the attachment as a text only file, but Import LateX doesn't see it. Bruce
latex2html doub t
Hello, I have installed debian testing on my machine, I install lyx also, my doubt what can I do in order to make lyx to convert my lyx files to html?, because debian does not have latex2html by default. can I mget latex2html by other ways and the install it on debian? will this work? Regards Thanks in advance. = -- Sergio Basurto J. If I have seen further it is by standing on the shoulders of giants. (Isaac Newton) -- __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com
Re: latex2html doub t
On Fri, Feb 04, 2005 at 02:07:39PM -0800, Sergio Basurto Juarez wrote: Hello, I have installed debian testing on my machine, I install lyx also, my doubt what can I do in order to make lyx to convert my lyx files to html?, because debian does not have latex2html by default. can I mget latex2html by other ways and the install it on debian? will this work? latex2html is available on debian. Simply install it (as root, of course), using apt-get update ; apt-get install latex2html or through the use of aptitude, etc. Kenward ps. I think you may believe that its non-free status on debian means it is not available, or that it may not be obtained without payment. This is not true, if so. It pertains to the nature of the license that latex2html has, which does not fit the requirements for belonging to the core of debian. It is still available thanks to a maintainer who recognizes its value despite its license. -- In a completely rational society, the best of us would aspire to be _teachers_ and the rest of us would have to settle for something less, because passing civilization along from one generation to the next ought to be the highest honor and the highest responsibility anyone could have. - Lee Iacocca
caption under figure?
Hello I has a document formatted with Komascript in tables and figures captions to be above. How can I adjust the figure captions under the figure to be? Thanks jojo -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION Kein Einrichtungspreis nutzen: http://www.gmx.net/de/go/dsl
Re: caption under figure?
Hello I has a document formatted with Komascript in tables and figures captions to be above. How can I adjust the figure captions under the figure to be? Thanks jojo try to do the following command 1. Insert Floats Figure (as usual) 2. Type the caption of figure... 3. Put the pointer after Figure #: then press ENTER the pointer could be above the caption... then 4. insert the figure with command insert graphics Regards, Wayan
Re: tex2lyx for Linux
Sven Schreiber wrote: In contrast, the way you describe it, it sounds wonderful: Skip the manual pdf-graphics-creation and just have lyx/imagemagick create the necessary png's on the fly. Just need one .eps (like in the old days...). That is/would be great! It is like that also in 1.3, but: Unfortunately both in 1.3 and 1.4 the output type for pdflatex for automatic conversion is hardcoded to png. This is fine for bitmap images, but not for vector graphics. This problem has been discussed several times before, but to solve it we would need an algorithm to determine wether to convert to png or pdf from a given format, and up to now nobody came up with such a beast. I meant: which wiki page should it be added to? I don't know. Put it where you think it fits, if it turns out that there is a better place people will move it. Georg
preamble stuffs and macros
Dear List, I tried doing this... I went to document in Layout menu, then I went to preamble and put this \newcommand\Z{\mathbb{Z}} And went to my document and changed to mathmode and typed \Z in it.. in LaTeX this would be understood as \mathbb{Z} and everything would go fine.. but in LyX, apparently the preamble was disregarded .. an error occured when I tried to view this in dvi saying that \Z is an undefined control sequence (which would have happened in LaTeX had I not but \newcommand in the preamble) .. So later I learned by reading the userguide that I have to use math-macro .. the documentation is however a bit confusing, should I type the following in the minibuffer math-macro Z \mathbb{Z} or what? I don't quite get this part of the documentation. And the definition box that appears after I define a macro.. it looks wierd in the document, I do hope it doesnt appear on the pdf/dvi/etc. output... I would suggest that the devoloper allow the \newcommand in the preamble to work rather than having a math-macro. Because that way it looks cleaner. Sincerely, Jose Capco __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail
Re: tex2lyx for Linux
Georg == Georg Baum [EMAIL PROTECTED] writes: Georg This problem has been discussed several times Georg before, but to solve it we would need an algorithm to determine Georg wether to convert to png or pdf from a given format, and up to Georg now nobody came up with such a beast. I guess the best solution would be to associate a cost to each converter that tells how lossy conversion is. JMarc
replacing texts
Dear List, Regarding replacing texts in mathmode? how is it done.. or is it at all doable? Sometimes I want to change symbols in the middle of my article and then I go to deep hell if the replace function do not work in mathmode (which is another reason why I should know how to hack the .lyx text file. Sincerely, Jose Capco __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250
Re: tex2lyx for Linux
On Fri, 4 Feb 2005, Georg Baum wrote: I meant: which wiki page should it be added to? I don't know. Put it where you think it fits, if it turns out that there is a better place people will move it. If you create a new wiki page (anybody is welcome to do that) then please remember to edit the 'PageList'-page and add a link to the new page. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: tex2lyx for Linux
Jean-Marc Lasgouttes wrote: Georg == Georg Baum [EMAIL PROTECTED] writes: Georg This problem has been discussed several times Georg before, but to solve it we would need an algorithm to determine Georg wether to convert to png or pdf from a given format, and up to Georg now nobody came up with such a beast. Good point about the bitmap thing, I'm definitely a vector fan. After looking a little at the devel mailing archives to get an idea of the discussion: I may be wrong, but could it be that people wrongly equate pdf=vector? AFAIK, pdf can hold both types of graphics, and e.g. imagemagick can produce pdfs, but *only* with bitmaps (last time I checked, or am I wrong here?). To my knowledge the only vector ways to go eps-pdf is ghostscript or acrobat. Again, please correct me if I'm wrong. But maybe for output the bitmaps are not so bad as they seem at first. Most scholarly writing (the target group of lyx) is meant for something like 600dpi laser printer resolution, even if you never really print it out. You can convert your pngs in a way that looks good there. I mean for the same reason pngs mostly work well on the web, and many lyx users probably never noticed that it was being converted (?). See also my user option suggestion below. I guess the best solution would be to associate a cost to each converter that tells how lossy conversion is. Without any offense: As a user I would like to have control and not rely on some hidden fuzzy-logic algorithm. Why not an option in preferences-lookfeel-graphics? This preference pane is almost empty now. What about something like a tick box Warn when converting vector graphics to bitmap, and secondly an editable field approx. target resolution for bitmapped images if necessary. A completely different path of course would be to count on ghostscript, but maybe lyx shouldn't depend on that. Anyway, just my suggestions, no urgent need on my side (remember I just found out about the auto-conversion for pdflatex yesterday!) -sven
Re: tex2lyx for Linux
Sven Schreiber wrote: Good point about the bitmap thing, I'm definitely a vector fan. After looking a little at the devel mailing archives to get an idea of the discussion: I may be wrong, but could it be that people wrongly equate pdf=vector? No, at least I can't remember people doing that. AFAIK, pdf can hold both types of graphics, and e.g. Yes. imagemagick can produce pdfs, but *only* with bitmaps (last time I checked, or am I wrong here?). To my knowledge the only vector ways to go eps-pdf is ghostscript or acrobat. Again, please correct me if I'm wrong. And this is the problem: Since converters are user definable, we don't know wether a given eps - pdf conversion retains vector data or not. But maybe for output the bitmaps are not so bad as they seem at first. True, but the optimal solution that should be implemented some day would be to retain vector data. I guess the best solution would be to associate a cost to each converter that tells how lossy conversion is. Without any offense: As a user I would like to have control and not rely on some hidden fuzzy-logic algorithm. Why not an option in This is no fuzzy logic, and in order to be usable it would need to be documented. You have complete control over your converters, of course you would also be able to adjust the cost factor. I think it is indeed a useful approach. preferences-lookfeel-graphics? This preference pane is almost empty now. What about something like a tick box Warn when converting vector graphics to bitmap, and secondly an editable field approx. target resolution for bitmapped images if necessary. The problem is: We don't know always wether a given file contains vector or bitmap data. So we can't issue that warning. A completely different path of course would be to count on ghostscript, but maybe lyx shouldn't depend on that. Anyway, just my suggestions, no urgent need on my side (remember I just found out about the auto-conversion for pdflatex yesterday!) LyX depends heavily on ghostscript (at least in the default configuration). But again, this is configurable. Georg
how to newpage?
Dear List, Stupid question.. how do new page or page break? Sincerely, Jose Capco __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250
Re: Viewing eps/pdf within LyXWin on Windows 2000
Thanks for your response Uwe, I was originally using Image Magick 6.0.2 (I think). I upgraded it to 6.1.9 but I am still having the same problem! I am using AFPL Ghostscript 8.50 and LyXWin 1.3.5 win32 nc. - I can view .jpg and .ppm images inside LyX - I can not view .eps or .pdf images inside LyX - I can view the DVI, PDF(pdflatex)and Postscript outputs fine (but not the PDF (dvipdfm) output) I can run convert from the command line (convert eps:c:\aulogo.eps ppm:c:\test.ppm), and was able to convert the .eps image that LyX was having trouble with to a .ppm Any more ideas on what might be wrong?? I ran LyX in graphics debug mode and I have included the output at the end of this email. Thanks in advance Nick Burgan [EMAIL PROTECTED] wrote: Despite quite a bit of fiddling around I cant get .eps or .pdf files to display within LyX when I insert them into a document. When I insert such a figure I get the message Error conveting to loadable format in the box where the picture should be displayed. The output DVI is fine though. This is a ghostview/Imagemagick problem. Which version of ghostscript and Imagemagick are you using? If you can see other image formats than .eps, .ps, and .pdf inside LyX, an update to the newest Imagemagick version should help. regards Uwe Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\Documents and Settings\nburgancd c:\lyx\bin C:\lyx\binlyx -dbg graphics Setting debug level to graphics Debugging `graphics' (Graphics conversion and loading) Recognised Fileformat: ppm [GrahicsCacheItem::convertToDisplayFormat] Attempting to convert image file: C:/lyx/share/lyx/images/banner.ppm with displayed filename: C:/lyx/share/lyx/images/banner.ppm Recognised Fileformat: ppm The file contains ppm format data. The image loader can load the following directly: BMP JPEG MNG PBM PGM PNG PPM XBM XPM Of these, LyX recognises the following formats: bmp, jpg, pbm, pgm, png, ppm, xbm, xpm No conversion needed (from == to)! Loading image. just Loaded. pixmap isNull 0 xformed_pixmap_ isNull 0 Image loading succeeded. GraphicsImage::getScaledDImensions() params.scale : 100 width : 425 height : 290 pixmap isNull 0 xformed_pixmap_ isNull 0 setPixmap() Token: 'filename' Token: '\end_inset' Recognised Fileformat: eps [GrahicsCacheItem::convertToDisplayFormat] Attempting to convert image file: C:/Documents/graphics/aulogo.eps with displayed filename: C:/Documents/graphics/aulogo.eps Recognised Fileformat: eps The file contains eps format data. Unable to convert from eps to bmp Unable to convert from eps to jpg Unable to convert from eps to pbm Unable to convert from eps to pgm Unable to convert from eps to png Unable to convert from eps to ppm Unable to convert from eps to xbm Unable to convert from eps to xpm Converting it to ppm format. Converter c-tor: from_file: C:/Documents/graphics/aulogo.eps to_file_base: C:/lyx/tmp/lyx_tmpdir1040a00684/aulogo1040a00684 from_format: eps to_format:ppm build_script ... ready (edgepath.empty()) No converter defined! I use convertDefault.sh sh C:/lyx/share/lyx/scripts/convertDefault.sh eps:C:/Documents/graphics/ aulogo.eps ppm:C:/lyx/tmp/lyx_tmpdir1040a00684/aulogo1040a00684.ppm C:/lyx/share/lyx/scripts/convertDefault.sh ERROR Unable to find file C:/lyx/tmp/lyx_tmpdir1040a00684/aulogo1040a00684.ppm Image conversion failed. Unable to find converted file!
Re: replacing texts
On 4.02.05, Jose Capco wrote: Dear List, Regarding replacing texts in mathmode? how is it done.. or is it at all doable? Not from within LyX (= 1.3.n). (which is another reason why I should know how to hack the .lyx text file.) Actually, this is one of the few cases when I directly edit the .lyx source. Simply Save the buffer Open the file with a text editor Search and replace (math text looks like normal LaTeX) Open again in LyX Günter -- G.Milde web.de
Re: how to newpage?
On 4.02.05, Jose Capco wrote: Dear List, Stupid question.. how do new page or page break? FormatParagraph: Tab pagebreaks GM -- G.Milde web.de
Re: tex2lyx for Linux
Georg Baum wrote: And this is the problem: Since converters are user definable, we don't know wether a given eps - pdf conversion retains vector data or not. Ok, now (I think) I understand. True, but the optimal solution that should be implemented some day would be to retain vector data. But this seems to clash with user-definable converters, doesn't it? It almost seems like incompatible design choices: user-choices vs. automatic-good-choices-by-prgoram. No single one is superior per se, but should be followed consistently. This is no fuzzy logic, and in order to be usable it would need to be documented. You have complete control over your converters, of course you would also be able to adjust the cost factor. I think it is indeed a useful approach. I apologize, I didn't understand it properly before. Yes this would be very flexible. Maybe a little simpler would be to have priority rankings for each source format in a couple of drop-down lists. (The graphics preference pane is really empty...;-) ) Of course the user would need to be aware that the output also depends on her converter configuration. ok, have bothered you long enough, take care -sven
Re: Getting LyX to replace custom-defined symbols as if they were standard LaTeX symbols
Hello, Thanks for your reply and your example with \nicefraction. I did as you wrote but not get the instant preview to work, but the solution with math-macro works as wished and rocks! Thank you very much! D. Johan Ingvast wrote: On Wed, 2 Feb 2005, Davide Cescato wrote: Hello, I am writing a draft for an article and I am still unsure about the names of some variables I am going to use in my final version. In order to handle this situation, in LaTeX I would define \newcommand{\ntx}{N_T} \newcommand{\nrx}{N_R} and then use \ntx and \nrx in my formulas whenever needed. If I later decide to use M_T instead of N_T, I can just redefine \ntx correspondingly without replacing all occurrencies in the document. I can do the same in LyX, by adding the commands above to the document header or as LaTeX code within the document body. The point is that if I enter math mode and type \ntx\sigma\nrx , LyX will replace the LaTeX standard \sigma command with the Greek character, but not my custom-defined symbols, which will only appear with their command names in red. This makes my formulas almost as unreadable as if they were written in plain LaTeX! Is there a way to make LyX replace my commands as well, as it does with the standard LaTeX ones? I think that math-macro is what you really need. Math macro is like \newcommand and some more ... In the beginning of the document type: M-x math-macro ntx 0 Then you get a box at the cursor consisting of Macro: ntx and two boxes In the first box you fill in what shuld be displayed when processed by latex. The second box is what is shown in the lyx editor when you type \ntx. You can also add arguments to the math-macro by replacing the 0 to the number of arguments you want. The arguments are called by #no I sometimes defines a nicefraction by M-x math-macro nf 2 \nicefrac{#1}{#2} % first box #1/#2 % second box (with \usepackage{nicefrac} in preamble) Then i get nice looking fractions in the output when calling \nf Another maybe simpler solution is to turn on the instant-preview (in Preferences/Look and freel/graphics (qt-version)) and have your \newcommand's in the preamble. Then you will see the result in the lyx windown when you leave the equation. /johan
Re: beamer, pgf and anti-aliasing
Dear all, I am a happy user of LyX and latex-beamer. I would like to ask you all if someone has experienced my problem: the last week I've tried to insert a graphic logo of my university into a presentation. The only way in which \logo works is with the \pgfuseimage command. I work with lyx for windows and miktex. The problem is that everytime you use a \pgfuseimage command, you lost antialiasing. Fonts look not exactly pixelized and hard, but... primitive, maybe, with minor but annoying deformations. I am going to include to files, the .tex one and a zipped pdf output for illustrating my point. Any hint or advice? It is really sad, because PGF is GREAT with transparencies and other effects. On the other hand, a presentation is LIMITED in scope if you cannot include a corporative logo in every slide. If there is a (surely arcane) way to overrun this XOR dilemma, I would be happier than before. Thank you all in advance PS: the tex file is this: \documentclass[10pt,landscape,english]{beamer} \usepackage{helvet} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{color} \usepackage{graphicx} \usepackage{amssymb} \usepackage{pgf} \usepackage[english]{babel} \makeatletter %% LyX specific LaTeX commands. [EMAIL PROTECTED] \newcommand{\noun}[1]{\textsc{#1}} \newcommand{\lyxarrow}{\leavevmode\,$\triangleright$\,\allowbreak} %\usepackage{colortbl} %\usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps} \IfFileExists{url.sty}{\usepackage{url}} {\newcommand{\url}{\texttt}} \newcommand{\nsid}{\texttt{NS(I+D)}} %%% %\usefonttheme{structurebold} \setbeamertemplate{background canvas}[vertical shading][bottom=blue!10,top=red!30] \usetheme{PaloAlto} \usecolortheme{crane} \setbeamercovered{transparent} \usefonttheme{default} %%% \pgfdeclareimage[mask=fpvimask,width=13mm]{logofpvi}{logo7}%logo fpvi \pgfdeclareimage[mask=nsidmk,width=13mm]{nsidnano}{logonsid}%logo NSID pequeño \pgfdeclareimage[mask=nsidmk,width=38mm]{nsid}{logonsid}%logo NSID \pgfdeclareimage[mask=ruedamk,width=38mm]{rueda}{wheel2}%rueda \pgfdeclareimage[mask=sinermk,width=38mm]{sinergia}{tente}%sinergia-tente \pgfdeclareimage[mask=tikimk,width=38mm]{tiki}{tiki2}%logo tiki \pgfdeclareimage[mask=atlasmk,width=38mm]{atlas}{atlogwin}%atlas ti \pgfdeclareimage[mask=pdcamk,width=38mm]{pdca}{pdca01}%calidad \pgfdeclareimage[mask=tabletmk,width=38mm]{tablet}{tablet}%tablet \pgfdeclareimage[mask=camaramk,width=38mm]{camara}{sonydscv1}%visual \pgfdeclareimage[mask=gnumk,width=38mm]{gnu}{meditatinggnu}%gnu \pgfdeclareimage[mask=contextmk,width=38mm]{context}{contextresearch1}%context \pgfdeclareimage[mask=dicemk,width=38mm]{dice}{dicelaredcom}%dicelared \pgfdeclareimage[mask=cruce2mk,width=38mm]{cruce2}{crossroad1}%dicelared \pgfdeclareimage[mask=upsamask,width=13mm]{logoupsa}{logouni}%logo UPSA \pgfdeclareimage[width=38mm]{ciego}{blindfolded2}%ciegocalidad sin mascara \pgfdeclareimage[width=38mm]{bpunto}{barrapunto}%barrapunto sin mascara \pgfdeclareimage[width=38mm]{lyx}{lyxban}%lyx sin mascara \pgfdeclareimage[width=3.7cm]{cruce1}{crossroad-wt}%cruce1 sin mascara %\logo{\hbox{\pgfuseimage{logoupsa}}} %\hbox to 1cm{\hfil\pgfuseimage{logofpvi}}\vskip0.1cm %\logo{\pgfuseimage{logo}} \title[Presentación de NS(I+D)]{\texttt{NS(I+D)}: Presentación de resultados y condicionantes para un plan Estratégico} \date{Febrero 2005} %\institute[]{% % \hbox{\pgfuseimage{logoupsa}} \hfill \hbox{\pgfuseimage{logofpvi}} \hfill \hbox{\pgfuseimage{nsidnano}}} %\date{Fundamentals of Computation Theory 2003} \AtBeginSection[] { \begin{frame}beamer \frametitle{Índice} \tableofcontents[currentsection,currentsubsection] \end{frame} } \makeatother \begin{document} \begin{frame} \titlepage \end{frame} \begin{frame} \frametitle{Índice} \tableofcontents \end{frame} \section{Introducción} \begin{frame} \frametitle{Introducción} \begin{columns}%{} \begin{column}{40mm} \begin{center} \hbox{\pgfuseimage{nsid}} \end{center} \end{column} \begin{column}{6cm} \begin{block} {Introducción} \begin{itemize} \item 1-Con esta presentación se pretende exponer: \begin{itemize} \item 2-Las ventajas de nuestros desarrollos --- individuales y sinérgicas. \item 3-La interpretación del momento presente como ventana de oportunidad. \end{itemize} \item 4-Un contexto necesario para la toma de decisiones estratégicas. \end{itemize} \end{block} \end{column} \end{columns}%{} \end{frame} \begin{frame} \frametitle{Introducción} \begin{columns}%{} \begin{column}{40mm} \begin{center} \hbox{\pgfuseimage{rueda}} \end{center} \end{column} \begin{column}{6cm} \begin{block} {¿Qué es desarrollo para \nsid?} \begin{itemize} \item 1-Nuestra función no es desarrollar software sino \textbf{aprovecharlo}. \item 2-El estado actual de las \textsc{tic} permite dejar de reinventar la rueda. \item 3-$\Rightarrow$El examen
Re: preamble stuffs and macros
Jose Capco wrote: I went to document in Layout menu, then I went to preamble and put this \newcommand\Z{\mathbb{Z}} And went to my document and changed to mathmode and typed \Z in it.. in LaTeX this would be understood as \mathbb{Z} and everything would go fine.. but in LyX, apparently the preamble was disregarded .. an error occured when I tried to view this in dvi saying that \Z is an undefined control sequence (which would have happened in LaTeX had I not but \newcommand in the preamble) .. \Z is an undefined control sequence is an error message of LaTeX, not of LyX! So later I learned by reading the userguide that I have to use math-macro .. No, you mustn't. You can of course use all LaTeX commands. \newcommand{\Z}{\mathbb{Z}} works fine for me, see the attached example LyX-file. regards Uwe #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \newcommand{\Z}{\mathbb{Z}} \end_preamble \options fleqn \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize 12 \spacing single \papersize a4paper \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 german \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 \begin_inset Formula \[ \Z\] \end_inset \the_end
Re: Viewing eps/pdf within LyXWin on Windows 2000
[EMAIL PROTECTED] wrote: I was originally using Image Magick 6.0.2 (I think). I upgraded it to 6.1.9 but I am still having the same problem! I am using AFPL Ghostscript 8.50 and LyXWin 1.3.5 win32 nc. Hmm I'm using these versions too, but without problems. - I can view .jpg and .ppm images inside LyX - I can not view .eps or .pdf images inside LyX - I can view the DVI, PDF(pdflatex)and Postscript outputs fine (but not the PDF (dvipdfm) output) I can run convert from the command line (convert eps:c:\aulogo.eps ppm:c:\test.ppm), and was able to convert the .eps image that LyX was having trouble with to a .ppm OK, the instalation seems to be fine. Any more ideas on what might be wrong?? - assure that the installation folder of LyX and all files and subfolders have full permissions for everybody - assure that you don't use self defined convertes in the menu Edit - Preferences. (There should be only nine converters defined.) The converter EPS - PDF should use the command epstopdf --outfile=$$o $$i If this doesn't help, I have no idea what is going wrong. regards Uwe
Tex to Lyx
A colleague sent me a .tex file as an attachment to an email. How do I go about importing this into a LyX document? I saved the attachment as a text only file, but Import LateX doesn't see it. Bruce
latex2html doub t
Hello, I have installed debian testing on my machine, I install lyx also, my doubt what can I do in order to make lyx to convert my lyx files to html?, because debian does not have latex2html by default. can I mget latex2html by other ways and the install it on debian? will this work? Regards Thanks in advance. = -- Sergio Basurto J. If I have seen further it is by standing on the shoulders of giants. (Isaac Newton) -- __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com
Re: latex2html doub t
On Fri, Feb 04, 2005 at 02:07:39PM -0800, Sergio Basurto Juarez wrote: Hello, I have installed debian testing on my machine, I install lyx also, my doubt what can I do in order to make lyx to convert my lyx files to html?, because debian does not have latex2html by default. can I mget latex2html by other ways and the install it on debian? will this work? latex2html is available on debian. Simply install it (as root, of course), using apt-get update ; apt-get install latex2html or through the use of aptitude, etc. Kenward ps. I think you may believe that its non-free status on debian means it is not available, or that it may not be obtained without payment. This is not true, if so. It pertains to the nature of the license that latex2html has, which does not fit the requirements for belonging to the core of debian. It is still available thanks to a maintainer who recognizes its value despite its license. -- In a completely rational society, the best of us would aspire to be _teachers_ and the rest of us would have to settle for something less, because passing civilization along from one generation to the next ought to be the highest honor and the highest responsibility anyone could have. - Lee Iacocca
caption under figure?
Hello I has a document formatted with Komascript in tables and figures captions to be above. How can I adjust the figure captions under the figure to be? Thanks jojo -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl
Re: caption under figure?
> Hello > I has a document formatted with Komascript in tables and figures captions > to be above. How can I adjust the figure captions under the figure to be? > Thanks jojo try to do the following command 1. Insert > Floats Figure (as usual) 2. Type the caption of figure... 3. Put the pointer after Figure #: then press ENTER the pointer could be above the caption... then 4. insert the figure with command insert > graphics Regards, Wayan
Re: tex2lyx for Linux
Sven Schreiber wrote: > In contrast, the way you describe it, it sounds wonderful: Skip the > manual pdf-graphics-creation and just have lyx/imagemagick create the > necessary png's on the fly. Just need one .eps (like in the old > days...). That is/would be great! It is like that also in 1.3, but: Unfortunately both in 1.3 and 1.4 the output type for pdflatex for automatic conversion is hardcoded to png. This is fine for bitmap images, but not for vector graphics. This problem has been discussed several times before, but to solve it we would need an algorithm to determine wether to convert to png or pdf from a given format, and up to now nobody came up with such a beast. > I meant: which wiki page should it be added to? I don't know. Put it where you think it fits, if it turns out that there is a better place people will move it. Georg
preamble stuffs and macros
Dear List, I tried doing this... I went to document in Layout menu, then I went to preamble and put this \newcommand\Z{\mathbb{Z}} And went to my document and changed to mathmode and typed \Z in it.. in LaTeX this would be understood as \mathbb{Z} and everything would go fine.. but in LyX, apparently the preamble was disregarded .. an error occured when I tried to view this in dvi saying that \Z is an undefined control sequence (which would have happened in LaTeX had I not but \newcommand in the preamble) .. So later I learned by reading the userguide that I have to use math-macro .. the documentation is however a bit confusing, should I type the following in the minibuffer math-macro Z \mathbb{Z} or what? I don't quite get this part of the documentation. And the definition box that appears after I define a macro.. it looks wierd in the document, I do hope it doesnt appear on the pdf/dvi/etc. output... I would suggest that the devoloper allow the \newcommand in the preamble to work rather than having a math-macro. Because that way it looks cleaner. Sincerely, Jose Capco __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail
Re: tex2lyx for Linux
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> This problem has been discussed several times Georg> before, but to solve it we would need an algorithm to determine Georg> wether to convert to png or pdf from a given format, and up to Georg> now nobody came up with such a beast. I guess the best solution would be to associate a cost to each converter that tells how lossy conversion is. JMarc
replacing texts
Dear List, Regarding replacing texts in mathmode? how is it done.. or is it at all doable? Sometimes I want to change symbols in the middle of my article and then I go to deep hell if the replace function do not work in mathmode (which is another reason why I should know how to hack the .lyx text file. Sincerely, Jose Capco __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250
Re: tex2lyx for Linux
On Fri, 4 Feb 2005, Georg Baum wrote: > > I meant: which wiki page should it be added to? > > I don't know. Put it where you think it fits, if it turns out that there is > a better place people will move it. If you create a new wiki page (anybody is welcome to do that) then please remember to edit the 'PageList'-page and add a link to the new page. /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
Re: tex2lyx for Linux
Jean-Marc Lasgouttes wrote: "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> This problem has been discussed several times Georg> before, but to solve it we would need an algorithm to determine Georg> wether to convert to png or pdf from a given format, and up to Georg> now nobody came up with such a beast. Good point about the bitmap thing, I'm definitely a vector fan. After looking a little at the devel mailing archives to get an idea of the discussion: I may be wrong, but could it be that people wrongly equate pdf=vector? AFAIK, pdf can hold both types of graphics, and e.g. imagemagick can produce pdfs, but *only* with bitmaps (last time I checked, or am I wrong here?). To my knowledge the only vector ways to go eps->pdf is ghostscript or acrobat. Again, please correct me if I'm wrong. But maybe for output the bitmaps are not so bad as they seem at first. Most scholarly writing (the target group of lyx) is meant for something like 600dpi laser printer resolution, even if you never really print it out. You can convert your pngs in a way that looks good there. I mean for the same reason pngs mostly work well on the web, and many lyx users probably never noticed that it was being converted (?). See also my user option suggestion below. I guess the best solution would be to associate a cost to each converter that tells how lossy conversion is. Without any offense: As a user I would like to have control and not rely on some hidden fuzzy-logic algorithm. Why not an option in preferences-look? This preference pane is almost empty now. What about something like a tick box "Warn when converting vector graphics to bitmap", and secondly an editable field "approx. target resolution for bitmapped images if necessary". A completely different path of course would be to count on ghostscript, but maybe lyx shouldn't depend on that. Anyway, just my suggestions, no urgent need on my side (remember I just found out about the auto-conversion for pdflatex yesterday!) -sven
Re: tex2lyx for Linux
Sven Schreiber wrote: > Good point about the bitmap thing, I'm definitely a vector fan. After > looking a little at the devel mailing archives to get an idea of the > discussion: I may be wrong, but could it be that people wrongly equate > pdf=vector? No, at least I can't remember people doing that. > AFAIK, pdf can hold both types of graphics, and e.g. Yes. > imagemagick can produce pdfs, but *only* with bitmaps (last time I > checked, or am I wrong here?). To my knowledge the only vector ways to > go eps->pdf is ghostscript or acrobat. Again, please correct me if I'm > wrong. And this is the problem: Since converters are user definable, we don't know wether a given eps -> pdf conversion retains vector data or not. > But maybe for output the bitmaps are not so bad as they seem at first. True, but the optimal solution that should be implemented some day would be to retain vector data. >> I guess the best solution would be to associate a cost to each >> converter that tells how lossy conversion is. >> > > Without any offense: As a user I would like to have control and not rely > on some hidden fuzzy-logic algorithm. Why not an option in This is no fuzzy logic, and in order to be usable it would need to be documented. You have complete control over your converters, of course you would also be able to adjust the cost factor. I think it is indeed a useful approach. > preferences-look? This preference pane is almost empty > now. What about something like a tick box "Warn when converting vector > graphics to bitmap", and secondly an editable field "approx. target > resolution for bitmapped images if necessary". The problem is: We don't know always wether a given file contains vector or bitmap data. So we can't issue that warning. > A completely different path of course would be to count on ghostscript, > but maybe lyx shouldn't depend on that. Anyway, just my suggestions, no > urgent need on my side (remember I just found out about the > auto-conversion for pdflatex yesterday!) LyX depends heavily on ghostscript (at least in the default configuration). But again, this is configurable. Georg
how to newpage?
Dear List, Stupid question.. how do new page or page break? Sincerely, Jose Capco __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250
Re: Viewing eps/pdf within LyXWin on Windows 2000
Thanks for your response Uwe, I was originally using Image Magick 6.0.2 (I think). I upgraded it to 6.1.9 but I am still having the same problem! I am using AFPL Ghostscript 8.50 and LyXWin 1.3.5 win32 nc. - I can view .jpg and .ppm images inside LyX - I can not view .eps or .pdf images inside LyX - I can view the DVI, PDF(pdflatex)and Postscript outputs fine (but not the PDF (dvipdfm) output) I can run convert from the command line ("convert eps:c:\aulogo.eps ppm:c:\test.ppm"), and was able to convert the .eps image that LyX was having trouble with to a .ppm Any more ideas on what might be wrong?? I ran LyX in graphics debug mode and I have included the output at the end of this email. Thanks in advance Nick Burgan > [EMAIL PROTECTED] wrote: > >> Despite quite a bit of fiddling around I cant get .eps or .pdf files to >> display within LyX when I insert them into a document. When I insert such >> a figure I get the message Error conveting to loadable format in the box >> where the picture should be displayed. The output DVI is fine though. > > This is a ghostview/Imagemagick problem. > Which version of ghostscript and Imagemagick are you using? > > If you can see other image formats than .eps, .ps, and .pdf inside LyX, an update to the newest Imagemagick version should help. > > regards Uwe > > Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\Documents and Settings\nburgan>cd c:\lyx\bin C:\lyx\bin>lyx -dbg graphics Setting debug level to graphics Debugging `graphics' (Graphics conversion and loading) Recognised Fileformat: ppm [GrahicsCacheItem::convertToDisplayFormat] Attempting to convert image file: C:/lyx/share/lyx/images/banner.ppm with displayed filename: C:/lyx/share/lyx/images/banner.ppm Recognised Fileformat: ppm The file contains ppm format data. The image loader can load the following directly: BMP JPEG MNG PBM PGM PNG PPM XBM XPM Of these, LyX recognises the following formats: bmp, jpg, pbm, pgm, png, ppm, xbm, xpm No conversion needed (from == to)! Loading image. just Loaded. pixmap isNull 0 xformed_pixmap_ isNull 0 Image loading succeeded. GraphicsImage::getScaledDImensions() params.scale : 100 width : 425 height : 290 pixmap isNull 0 xformed_pixmap_ isNull 0 setPixmap() Token: 'filename' Token: '\end_inset' Recognised Fileformat: eps [GrahicsCacheItem::convertToDisplayFormat] Attempting to convert image file: C:/Documents/graphics/aulogo.eps with displayed filename: C:/Documents/graphics/aulogo.eps Recognised Fileformat: eps The file contains eps format data. Unable to convert from eps to bmp Unable to convert from eps to jpg Unable to convert from eps to pbm Unable to convert from eps to pgm Unable to convert from eps to png Unable to convert from eps to ppm Unable to convert from eps to xbm Unable to convert from eps to xpm Converting it to ppm format. Converter c-tor: from_file: C:/Documents/graphics/aulogo.eps to_file_base: C:/lyx/tmp/lyx_tmpdir1040a00684/aulogo1040a00684 from_format: eps to_format:ppm build_script ... ready (edgepath.empty()) No converter defined! I use convertDefault.sh sh C:/lyx/share/lyx/scripts/convertDefault.sh eps:C:/Documents/graphics/ aulogo.eps ppm:C:/lyx/tmp/lyx_tmpdir1040a00684/aulogo1040a00684.ppm C:/lyx/share/lyx/scripts/convertDefault.sh ERROR Unable to find file "C:/lyx/tmp/lyx_tmpdir1040a00684/aulogo1040a00684.ppm" Image conversion failed. Unable to find converted file!
Re: replacing texts
On 4.02.05, Jose Capco wrote: > Dear List, > > Regarding replacing texts in mathmode? how is it > done.. or is it at all doable? Not from within LyX (<= 1.3.n). > (which is another reason why I should know how to hack the .lyx text > file.) Actually, this is one of the few cases when I directly edit the .lyx source. Simply Save the buffer Open the file with a text editor Search and replace (math text looks like "normal" LaTeX) Open again in LyX Günter -- G.Milde web.de
Re: how to newpage?
On 4.02.05, Jose Capco wrote: > Dear List, > > Stupid question.. how do new page or page break? Format>Paragraph: Tab pagebreaks GM -- G.Milde web.de
Re: tex2lyx for Linux
Georg Baum wrote: And this is the problem: Since converters are user definable, we don't know wether a given eps -> pdf conversion retains vector data or not. Ok, now (I think) I understand. True, but the optimal solution that should be implemented some day would be to retain vector data. But this seems to clash with user-definable converters, doesn't it? It almost seems like incompatible design choices: user-choices vs. automatic-good-choices-by-prgoram. No single one is superior per se, but should be followed consistently. This is no fuzzy logic, and in order to be usable it would need to be documented. You have complete control over your converters, of course you would also be able to adjust the cost factor. I think it is indeed a useful approach. I apologize, I didn't understand it properly before. Yes this would be very flexible. Maybe a little simpler would be to have priority rankings for each source format in a couple of drop-down lists. (The graphics preference pane is really empty...;-) ) Of course the user would need to be aware that the output also depends on her converter configuration. ok, have bothered you long enough, take care -sven
Re: Getting LyX to replace custom-defined symbols as if they were standard LaTeX symbols
Hello, Thanks for your reply and your example with \nicefraction. I did as you wrote but not get the instant preview to work, but the solution with math-macro works as wished and rocks! Thank you very much! D. Johan Ingvast wrote: On Wed, 2 Feb 2005, Davide Cescato wrote: Hello, I am writing a draft for an article and I am still unsure about the names of some variables I am going to use in my final version. In order to handle this situation, in LaTeX I would define \newcommand{\ntx}{N_T} \newcommand{\nrx}{N_R} and then use \ntx and \nrx in my formulas whenever needed. If I later decide to use M_T instead of N_T, I can just redefine \ntx correspondingly without replacing all occurrencies in the document. I can do the same in LyX, by adding the commands above to the document header or as LaTeX code within the document body. The point is that if I enter math mode and type \ntx\sigma\nrx , LyX will replace the LaTeX standard \sigma command with the Greek character, but not my custom-defined symbols, which will only appear with their command names in red. This makes my formulas almost as unreadable as if they were written in plain LaTeX! Is there a way to make LyX replace my commands as well, as it does with the standard LaTeX ones? I think that math-macro is what you really need. Math macro is like \newcommand and some more ... In the beginning of the document type: M-x math-macro ntx 0 Then you get a box at the cursor consisting of "Macro: ntx" and two boxes In the first box you fill in what shuld be displayed when processed by latex. The second box is what is shown in the lyx editor when you type \ntx. You can also add arguments to the math-macro by replacing the 0 to the number of arguments you want. The arguments are called by #no I sometimes defines a nicefraction by M-x math-macro nf 2 \nicefrac{#1}{#2} % first box #1/#2 % second box (with \usepackage{nicefrac} in preamble) Then i get nice looking fractions in the output when calling \nf Another maybe simpler solution is to turn on the instant-preview (in Preferences/Look and freel/graphics (qt-version)) and have your \newcommand's in the preamble. Then you will see the result in the lyx windown when you leave the equation. /johan
Re: beamer, pgf and anti-aliasing
Dear all, I am a happy user of LyX and latex-beamer. I would like to ask you all if someone has experienced my problem: the last week I've tried to insert a graphic logo of my university into a presentation. The only way in which \logo works is with the \pgfuseimage command. I work with lyx for windows and miktex. The problem is that everytime you use a \pgfuseimage command, you lost antialiasing. Fonts look not exactly pixelized and hard, but... "primitive", maybe, with minor but annoying deformations. I am going to include to files, the .tex one and a zipped pdf output for illustrating my point. Any hint or advice? It is really sad, because PGF is GREAT with transparencies and other effects. On the other hand, a presentation is LIMITED in scope if you cannot include a corporative logo in every slide. If there is a (surely arcane) way to overrun this XOR dilemma, I would be happier than before. Thank you all in advance PS: the tex file is this: \documentclass[10pt,landscape,english]{beamer} \usepackage{helvet} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{color} \usepackage{graphicx} \usepackage{amssymb} \usepackage{pgf} \usepackage[english]{babel} \makeatletter %% LyX specific LaTeX commands. [EMAIL PROTECTED] \newcommand{\noun}[1]{\textsc{#1}} \newcommand{\lyxarrow}{\leavevmode\,$\triangleright$\,\allowbreak} %\usepackage{colortbl} %\usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps} \IfFileExists{url.sty}{\usepackage{url}} {\newcommand{\url}{\texttt}} \newcommand{\nsid}{\texttt{NS(I+D)}} %%% %\usefonttheme{structurebold} \setbeamertemplate{background canvas}[vertical shading][bottom=blue!10,top=red!30] \usetheme{PaloAlto} \usecolortheme{crane} \setbeamercovered{transparent} \usefonttheme{default} %%% \pgfdeclareimage[mask=fpvimask,width=13mm]{logofpvi}{logo7}%logo fpvi \pgfdeclareimage[mask=nsidmk,width=13mm]{nsidnano}{logonsid}%logo NSID pequeño \pgfdeclareimage[mask=nsidmk,width=38mm]{nsid}{logonsid}%logo NSID \pgfdeclareimage[mask=ruedamk,width=38mm]{rueda}{wheel2}%rueda \pgfdeclareimage[mask=sinermk,width=38mm]{sinergia}{tente}%sinergia-tente \pgfdeclareimage[mask=tikimk,width=38mm]{tiki}{tiki2}%logo tiki \pgfdeclareimage[mask=atlasmk,width=38mm]{atlas}{atlogwin}%atlas ti \pgfdeclareimage[mask=pdcamk,width=38mm]{pdca}{pdca01}%calidad \pgfdeclareimage[mask=tabletmk,width=38mm]{tablet}{tablet}%tablet \pgfdeclareimage[mask=camaramk,width=38mm]{camara}{sonydscv1}%visual \pgfdeclareimage[mask=gnumk,width=38mm]{gnu}{meditatinggnu}%gnu \pgfdeclareimage[mask=contextmk,width=38mm]{context}{contextresearch1}%context \pgfdeclareimage[mask=dicemk,width=38mm]{dice}{dicelaredcom}%dicelared \pgfdeclareimage[mask=cruce2mk,width=38mm]{cruce2}{crossroad1}%dicelared \pgfdeclareimage[mask=upsamask,width=13mm]{logoupsa}{logouni}%logo UPSA \pgfdeclareimage[width=38mm]{ciego}{blindfolded2}%ciegocalidad sin mascara \pgfdeclareimage[width=38mm]{bpunto}{barrapunto}%barrapunto sin mascara \pgfdeclareimage[width=38mm]{lyx}{lyxban}%lyx sin mascara \pgfdeclareimage[width=3.7cm]{cruce1}{crossroad-wt}%cruce1 sin mascara %\logo{\hbox{\pgfuseimage{logoupsa}}} %\hbox to 1cm{\hfil\pgfuseimage{logofpvi}}\vskip0.1cm %\logo{\pgfuseimage{logo}} \title[Presentación de NS(I+D)]{\texttt{NS(I+D)}: Presentación de resultados y condicionantes para un plan Estratégico} \date{Febrero 2005} %\institute[]{% % \hbox{\pgfuseimage{logoupsa}} \hfill \hbox{\pgfuseimage{logofpvi}} \hfill \hbox{\pgfuseimage{nsidnano}}} %\date{Fundamentals of Computation Theory 2003} \AtBeginSection[] { \begin{frame} \frametitle{Índice} \tableofcontents[currentsection,currentsubsection] \end{frame} } \makeatother \begin{document} \begin{frame} \titlepage \end{frame} \begin{frame} \frametitle{Índice} \tableofcontents \end{frame} \section{Introducción} \begin{frame} \frametitle{Introducción} \begin{columns}%{} \begin{column}{40mm} \begin{center} \hbox{\pgfuseimage{nsid}} \end{center} \end{column} \begin{column}{6cm} \begin{block} {Introducción} \begin{itemize} \item <1->Con esta presentación se pretende exponer: \begin{itemize} \item <2->Las ventajas de nuestros desarrollos --- individuales y sinérgicas. \item <3->La interpretación del momento presente como <>. \end{itemize} \item <4->Un contexto necesario para la toma de decisiones estratégicas. \end{itemize} \end{block} \end{column} \end{columns}%{} \end{frame} \begin{frame} \frametitle{Introducción} \begin{columns}%{} \begin{column}{40mm} \begin{center} \hbox{\pgfuseimage{rueda}} \end{center} \end{column} \begin{column}{6cm} \begin{block} {¿Qué es desarrollo para \nsid?} \begin{itemize} \item <1->Nuestra función no es desarrollar software sino \textbf{aprovecharlo}. \item <2->El estado actual de las \textsc{tic} permite dejar de <>. \item <3->$\Rightarrow$El examen permanente y atento de
Re: preamble stuffs and macros
Jose Capco wrote: I went to document in Layout menu, then I went to preamble and put this \newcommand\Z{\mathbb{Z}} And went to my document and changed to mathmode and typed \Z in it.. in LaTeX this would be understood as \mathbb{Z} and everything would go fine.. but in LyX, apparently the preamble was disregarded .. an error occured when I tried to view this in dvi saying that \Z is an undefined control sequence (which would have happened in LaTeX had I not but \newcommand in the preamble) .. "\Z is an undefined control sequence" is an error message of LaTeX, not of LyX! So later I learned by reading the userguide that I have to use math-macro .. No, you mustn't. You can of course use all LaTeX commands. \newcommand{\Z}{\mathbb{Z}} works fine for me, see the attached example LyX-file. regards Uwe #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \newcommand{\Z}{\mathbb{Z}} \end_preamble \options fleqn \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize 12 \spacing single \papersize a4paper \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 german \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 \begin_inset Formula \[ \Z\] \end_inset \the_end
Re: Viewing eps/pdf within LyXWin on Windows 2000
[EMAIL PROTECTED] wrote: I was originally using Image Magick 6.0.2 (I think). I upgraded it to 6.1.9 but I am still having the same problem! I am using AFPL Ghostscript 8.50 and LyXWin 1.3.5 win32 nc. Hmm I'm using these versions too, but without problems. - I can view .jpg and .ppm images inside LyX - I can not view .eps or .pdf images inside LyX - I can view the DVI, PDF(pdflatex)and Postscript outputs fine (but not the PDF (dvipdfm) output) I can run convert from the command line ("convert eps:c:\aulogo.eps ppm:c:\test.ppm"), and was able to convert the .eps image that LyX was having trouble with to a .ppm OK, the instalation seems to be fine. Any more ideas on what might be wrong?? - assure that the installation folder of LyX and all files and subfolders have full permissions for "everybody" - assure that you don't use self defined convertes in the menu Edit -> Preferences. (There should be only nine converters defined.) The converter "EPS -> PDF" should use the command "epstopdf --outfile=$$o $$i" If this doesn't help, I have no idea what is going wrong. regards Uwe
Tex to Lyx
A colleague sent me a .tex file as an attachment to an email. How do I go about importing this into a LyX document? I saved the attachment as a text only file, but Import > LateX doesn't see it. Bruce
latex2html doub t
Hello, I have installed debian testing on my machine, I install lyx also, my doubt what can I do in order to make lyx to convert my lyx files to html?, because debian does not have latex2html by default. can I mget latex2html by other ways and the install it on debian? will this work? Regards Thanks in advance. = -- Sergio Basurto J. If I have seen further it is by standing on the shoulders of giants. (Isaac Newton) -- __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com
Re: latex2html doub t
On Fri, Feb 04, 2005 at 02:07:39PM -0800, Sergio Basurto Juarez wrote: > Hello, > > I have installed debian testing on my machine, I > install lyx also, my doubt what can I do in order to > make lyx to convert my lyx files to html?, because > debian does not have latex2html by default. > > can I mget latex2html by other ways and the install it > on debian? > > will this work? latex2html is available on debian. Simply install it (as root, of course), using apt-get update ; apt-get install latex2html or through the use of aptitude, etc. Kenward ps. I think you may believe that its non-free status on debian means it is not available, or that it may not be obtained without payment. This is not true, if so. It pertains to the nature of the license that latex2html has, which does not fit the requirements for belonging to the core of debian. It is still available thanks to a maintainer who recognizes its value despite its license. -- In a completely rational society, the best of us would aspire to be _teachers_ and the rest of us would have to settle for something less, because passing civilization along from one generation to the next ought to be the highest honor and the highest responsibility anyone could have. - Lee Iacocca