Re: Change settings of a float figure in a branch
Pavel Sanda schreef: alvaro wrote: I have added some branches to my text. In the text, and thus in the branches, there are some figures (floating). Now my problem is that when I try to change the settings of the figure, the menu of the branch pops up... I dont know if I am doing something wrong or if it is an error of lyx. this is bug of lyx. report it in our tracker. Do you also have the problem? what do your recommend to do? workaround for this moment is: go just ahead of float inset, alt + x, inset-settings, enter pavel Fixed in trunk at r29892. Vincent (P.S. Pavel, because you don't want to reply to all, I had to go through some PITA to get alvaro's e-mail address to be able to cc him. So, I think reply-to-all isn't that bad after all.)
Re: Change settings of a float figure in a branch
alvaro wrote: > I have added some branches to my text. In the text, and thus in the > branches, there are some figures (floating). Now my problem is that when I > try to change the settings of the figure, the menu of the branch pops up... > I dont know if I am doing something wrong or if it is an error of lyx. this is bug of lyx. report it in our tracker. > Do you also have the problem? what do your recommend to do? workaround for this moment is: go just ahead of float inset, alt + x, inset-settings, enter pavel
Custom Inset Issues
Hi, I'm new to the lists, and relatively new to lyx and latex. I'm trying to set up a module that allows me to have a new Character style inset for entering Hebrew and polytonic Greek in Lyx, and processing everything with XeTex. My situation is: * I have successfully set up Lyx (1.6.1) on my Mac, and I am able to typeset documents with XeTex. *I'm able to typeset the languages I need using ERT to specify fonts that have all the characters I need, but for various reasons I'm interested in avoiding ERT for the languages if possible. *Here is the preamble I'm using in the document settings, which has been working so far: \usepackage{fontspec}% \setromanfont[Mapping=tex-text]{Garamond}% \setsansfont[Mapping=tex-text]{Gill Sans}% \setmonofont[Mapping=tex-text]{Courier New}% \usepackage{xunicode} \usepackage{xltxtra} *Here is the module I've hacked together thus far. #\DeclareLyXModule{XeTeX-Hebrew and Greek} #DescriptionBegin #This module is an attempt to make basic Hebrew and Greek text styles available for use with lyx and xetex. It requires lyx to be set up to use xetex, either in the document preamble or as described on the lyx wiki at http://wiki.lyx.org/Mac/XeTeX. #The module only uses Lucida Grande to typeset the Hebrew and Greek. At this point, the actual module file will have to be changed any time a change in font is necessary. #DescriptionEnd #Author: Me Format 11 InsetLayout CharStyle:Greek LyxType charstyle LabelString greek LatexType command LatexName grk Preamble \newfontfamily{\G}{Lucida Grande} \newcommand{\grk}[1]{\G #1} EndPreamble End InsetLayout CharStyle:Hebrew LyxType charstyle LabelString hebrew LatexType command LatexName heb Preamble \newfontfamily{\H}{Lucida Grande} \newcommand{\heb}[1]{\H #1} EndPreamble End The LaTeX in the preamble sections above works perfectly for ERT if I copy it directly into the Document Settings > LaTeX Preamble. I can get the module to show up in Lyx, and the insets seem to be working as planned in Lyx. However, as soon as I try to typeset the document using the insets for the language, I get the following error: Undefined control sequence \newfontfamily {\G}{Lucida Grande} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. LaTeX Error: Missing \begin{document}. \newfontfamily{\G}{L ucida Grande} You're in trouble here. Try typing to proceed. If that doesn't work, type X to quit. As I mentioned above, the exact same LaTeX code does exactly what I want when placed directly in the preamble and used with ERT. I know that I'm overlooking something simple, but I can't seem to make any more progress here. Any help would be greatly appreciated. I've hacked out a couple of other modules that work fine, but this one is beating me about the head and shoulders. My situation is not really desperate, since I can always fall back on the ERT, but it's more about winning now than anything. Thanks for your time,
Re: Scale image using PDFLatex
Valter Filipe Silva schrieb: There it is. I use Lyx 1.6.2 Windows version. I try in a friend PC with Linux (I guess Ubuntu 9.04) and it works great. The problem is this line in your document preamble: \usepackage[usecolor,DETI]{uaThesis} When I comment it out, it works as it should. Your file contains a lot preamble commands that are not necessary and potentially only lead to problems. It is therefore strongly recommended to add there only things you understand. I cleaned your preamble and document and hope it still created what you want, see attached. Btw. It is better to scale images relative to the column width as I did in the attached file. This assures that your document will always look correct, even when you change the printspace, pages borders, and the like. You can also use any image format, not only EPS. For more infos see the EmbeddedObjects manual that you find in LyX's Help menu in Appendix B and in sec. 1.3. regards Uwe Copy (2) of newfile1.lyx Description: application/lyx
Re: Supporting Tabular-like features of Array environment in math mode.
Ronen Abravanel schrieb: Is there a way, In LyX, to create Horizontal\Vertical borders in array, Like those in Table? Right click in a matrix and then set the borders via the appearing context menu. See the attached example. regards Uwe newfile2.lyx Description: application/lyx
Supporting Tabular-like features of Array environment in math mode.
Is there a way, In LyX, to create Horizontal\Vertical borders in array, Like those in Table? In LaTeX code, it's exactly the same, But I could not find how to do that in LyX. Thanks, Ronen
Re: Import of LaTex file
Luca Brandolini wrote: Thank you Vincent. Is there any workaround for such a problem? Yes. Add lines to the appropriate layout file to import the theorems-ams.module file. I can give more detailed instructions later, but don't hav time now. Richard Best regards Luca Il giorno sab, 30/05/2009 alle 13.42 +0200, Vincent van Ravesteijn ha scritto: Luca Brandolini schreef: I am a new Lyx user and I would like to import LaTeX files into Lyx. Apparently the importer cannot recognize enviroment like theorem, lemma, remark, etc. Consider this simple example: % \documentclass{article}% \newtheorem{theorem}{Theorem} \newtheorem{remark}[theorem]{Remark} \begin{document} \title{prova} \author{prova} \maketitle \begin{abstract} Bla bla bla bla \end{abstract} \section{section1} Here is the theorem: \begin{theorem} \label{Thm1}This is Theorem 1. \end{theorem} \begin{remark} This is the Remark. \end{remark} \end{document} %%% If you import it into Lyx the \begin{theorem}, \end{theorem} \begin{remark}, \end{remark} are not recognized by the importer and you simple see it in red into the text. Am I missing something? Is there any workaround to force Lyx to recognize them? Best regards Luca This is bug 5702: http://www.lyx.org/trac/ticket/5702 Vincent
Re: Import of LaTex file
Thank you Vincent. Is there any workaround for such a problem? Best regards Luca Il giorno sab, 30/05/2009 alle 13.42 +0200, Vincent van Ravesteijn ha scritto: > Luca Brandolini schreef: > > I am a new Lyx user and I would like to import LaTeX files into Lyx. > > Apparently the importer cannot recognize enviroment like theorem, lemma, > > remark, etc. > > Consider this simple example: > > > > % > > \documentclass{article}% > > \newtheorem{theorem}{Theorem} > > \newtheorem{remark}[theorem]{Remark} > > \begin{document} > > \title{prova} > > \author{prova} > > \maketitle > > \begin{abstract} > > Bla bla bla bla > > \end{abstract} > > \section{section1} > > Here is the theorem: > > \begin{theorem} > > \label{Thm1}This is Theorem 1. > > \end{theorem} > > \begin{remark} > > This is the Remark. > > \end{remark} > > \end{document} > > %%% > > > > If you import it into Lyx the \begin{theorem}, \end{theorem} > > \begin{remark}, \end{remark} are not recognized by the importer and you > > simple see it in red into the text. > > > > Am I missing something? Is there any workaround to force Lyx to > > recognize them? > > > > Best regards > > Luca > > > > > > > This is bug 5702: http://www.lyx.org/trac/ticket/5702 > > Vincent > >
Re: Import of LaTex file
Luca Brandolini schreef: I am a new Lyx user and I would like to import LaTeX files into Lyx. Apparently the importer cannot recognize enviroment like theorem, lemma, remark, etc. Consider this simple example: % \documentclass{article}% \newtheorem{theorem}{Theorem} \newtheorem{remark}[theorem]{Remark} \begin{document} \title{prova} \author{prova} \maketitle \begin{abstract} Bla bla bla bla \end{abstract} \section{section1} Here is the theorem: \begin{theorem} \label{Thm1}This is Theorem 1. \end{theorem} \begin{remark} This is the Remark. \end{remark} \end{document} %%% If you import it into Lyx the \begin{theorem}, \end{theorem} \begin{remark}, \end{remark} are not recognized by the importer and you simple see it in red into the text. Am I missing something? Is there any workaround to force Lyx to recognize them? Best regards Luca This is bug 5702: http://www.lyx.org/trac/ticket/5702 Vincent