about python3 and lyx
Hi lyxers! I have lyx 2.1.2 in both Windows 7 x64 and Ubuntu 14.04 x64, it runs fine when installing. Now my work depends a lot on python, specifically on python 3.4 which is the default in both of my systems. I have managed to run python scripts within lyx and then the problem arises: lyx have its own bundled python distribution in windows, so every python script runs in the bundled version which is python 2.7, so my scripts doesn´t run on windows. I tried to change the default python version in lyx so it is forced to us python3 and then it crashed because a lot of its default scripts doesn´t run anymore (ie, the reconfigure.py script). I know in linux there is both python 2.7 and 3.4 living together and you can select between them, but in windows I can´t manage to achieve this behavior. My questions are exclusive (or not) 1. Is there a plan to move everything to python3 so we can finally forget the old python2? Or 2. Is there a way to have both python3 and bundled python version in lyx living together in windows? Any hints? Best Regards Descripción: firma_Alex Alex Vergara Gil MSc Nuclear Physics Center for Radiation Protection and Hygiene Secondary Standard Dosimetry Laboratory Havana, Cuba
RE: figure covering two pages
> -Mensaje original- De: Wolfgang Engelmann Enviado el: Lunes, 30 de Junio de 2014 08:19 p.m. > > Am 30.06.2014 19:21, schrieb Alex Vergara Gil: > > Open the figure in Krita/GIMP > > create two new figures by cutting the original in two halves insert > > each half into a new graphic, using fit 100% to page and definitively > > here as position > Thanks, Alex, > The upper half of the figure is rather broad, it therefore is not reaching the > lower rim of the page, not to speak of the legend. This should be placed > underneath the second part of the figure on the page opposing the first part. > Proposals? > Wolfgang > Yes I forgot to mention to rotate the two halves by 90 degres so they will fit your page, sorry!
RE: figure covering two pages
> -Mensaje original- De: Wolfgang Engelmann Enviado el: Lunes, 30 de Junio de 2014 05:55 p.m. > > How can I insert a large figure which expands over two pages? > I use Debian and Koma script book style A5 format. > The figure should be landscape on both pages Wolfgang > Open the figure in Krita/GIMP create two new figures by cutting the original in two halves insert each half into a new graphic, using fit 100% to page and definitively here as position good luck! Alex
Re: Python Graphics in LyX [was: Python bindings]
- Original Message - From: "Ross Reyes" Sent: Thursday, June 12, 2014 12:50 PM On 6/11/2014 12:41 PM, Rainer M Krug wrote: Envoyé de mon iPhone Le 11 juin 2014 à 16:07, Ross Reyes a écrit : Hi Alex, I still get the "error converting to loadable format" message. I can run the python script from the command line and it does work. I can and have modified the .pygr script to produce other outputs in .png, .jpg, .ps, etc. without problem. If the scripts work fine outside LyX then your problem is with your LyX instalation. The only thing I can suggest is to update at least to version 2.0.3 which is the one I have tested in my debian system. But inside LyX, regardless of what I do to define the converter, I can not get the image to render nor can I produce a .pdf output from the LyX doc. Something is not right. I am using LyX 2.0.1 The converters are defined in the configuration file LyX. If you could take a loom at it and post the lines where you file formats and the converters are defined, one could see if there is something wrong. I don't have LyX at hand, so I can't give you the location of the config file. Cheers, Rainer Hi Rainer, I have this in my preferences file for pygr fomat and converter. # # FORMATS SECTION ## # \format "pdf4" "pdf" "PDF (xelatex)" "" "" "" "document,vector,menu=export" \format "pygr" "pygr" "Python Graphics" "" "auto" "auto" "vector" \default_view_format ps # # CONVERTERS SECTION ## # \converter "pdflatex" "pdf4" "xelatex $$i" "latex=pdflatex" \converter "eps" "png" "epstopng.bat $$i" "" \converter "pygr" "png" "python $$i $$o" "" All of this seems ok, take into account that if you are on Windows the correct converter line should be \converter "pygr" "png" "python -tt $$i $$o" "" but it would be better if you to have \converter "pygr" "eps" "python $$i $$o" "" on Linux \converter "pygr" "eps" "python -tt $$i $$o" "" on Windows
Re: Python Graphics in LyX [was: Python bindings]
- Original Message - From: Wolfgang Engelmann Sent: Tuesday, June 10, 2014 2:19 PM Thanks, Alex, for the new lyx file. I now realized, that I had to load the matplotlib and pandas packages, which I did. I followed your advices Define a new file format in tools>preferences, name it Python graphics, extension pygr and vector image format ticked Define a new converter from the format Python graphics to the format EPS as ... After reconfigure (necessary?) and making sure the two example graphics (in pygr format) are found in the path I get this error No, reconfigure is not necessary LaTeX Warning: File `0_home_we_Lyx_PhytonGraphics_example.eps' not found on input line 83. Why is it expecting an eps file instead of taking the pygr files? indeed a eps file is expected What am I missing? Wolfgang Did you can see the graphic within LyX? Did LyX display it correctly in your system? if not the case check that the example script is located at the same path than the lyx file, another way is to click in the inserted graphic and look for the example.pygr path Another possible explanation is that your system doesn't handle with eps, in this case you should change the definition and instead of eps, put pdf or png as final format, whichever work for you, you can check that because it will display the graphic within LyX even before you export anything! Regards Alex
Re: Inserting text (instead of graphics) from code into LyX?
- Original Message - From: "Rainer M Krug" Sent: Tuesday, June 10, 2014 9:09 AM OK - spreadsheets work via the "external documents". But have you found a way of including "normal" txt files as verbatim? One could always use good old ert (e.g. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=verbfile) But this would not provide preview. Rainer No, no preview in the case of text I fear. It should be implemented in the LyX code. Developers should handle this kind of things, if they already support image preview, why not supporting external material preview as well? They should answer this. TAIK! Cheers Alex
Re: Inserting text (instead of graphics) from code into LyX?
Better than ever I've found that the pandas package in python handles with excel files and produces tables in csv too, so it can be used to read excel files as input, process a little and output csv tables which can be read by LyX as external documents (child) The panorama becomes interesting! Alex
Re: Inserting text (instead of graphics) from code into LyX?
- Original Message - From: "Rainer M Krug" Sent: Tuesday, June 10, 2014 3:26 AM Hi In the thread "Python Graphics in LyX" it was shown nicely how other programming languages can be used to include grahics generated by these into a LyX Document. That made me thinking: How can I do the same for text files generated by these external code blocks? Obviously, this depends on the format of the text (ascii, LaTeX, others?). What would be the workflow? Does the text has to be in a file (I assume) or could it be redirected directly into LyX? Somehow I have the feeling I am missing something trivial here... Cheers, Rainer Indeed! It can be produced as well, just define a python normal text file format type (as pytxt) and in the converter just add from the pytxt format to simple text format as python $$i $$o in the python script you have to output everything to a text file using the lines import sys outputfile = open(sys.argv[1]) outputfile.write('testing') outputfile.close Voilá! it works with text too Moreover in the converter you can define a csv output format and python handles well with csv, so I give you the rod, now fish something ;) Cheers, Alex
Re: Python Graphics in LyX [was: Python bindings]
Dear all I have rewritten a little the procedure using recommendations from several users that doesn´t understand the original one. I hope this time everyone can understand the procedure. Regards Alex - Original Message - From: Wolfgang Engelmann To: lyx-users@lists.lyx.org Sent: Tuesday, June 10, 2014 2:56 AM Subject: Re: Python Graphics in LyX [was: Python bindings] I retryed again and now got the PythonGraphics>LyX converter after reconfiguring, but running it gives me: LaTeX Warning: File `0_home_we_Lyx_PhytonGraphics_example.pdf' not found on inp ut line 80. shouldn't it load example.pygr, which I selected in my folder PhytonGraphics containing all the files supplied by Alex? Do I have to use instead of view>pdflatex something else for export? Wolfgang ! Package pdftex.def Error: File `0_home_we_Lyx_PhytonGraphics_example.pdf' not found. See the pdftex.def package documentation for explanation. Type H for immediate help. ... Am 10.06.2014 09:00, schrieb Wolfgang Engelmann: Am 09.06.2014 21:42, schrieb Alex Vergara Gil: - Original Message - From: Wolfgang Engelmann To: lyx-users@lists.lyx.org Sent: Monday, June 09, 2014 12:55 PM Subject: Re: Python Graphics in LyX [was: Python bindings] where in lyx is this done?--> Define a new converter from Python graphics to EPS as python $$i $$o Wolfgang If you have followed the little manual you know in tools - preferences there is two options, one that says file types and the other says converters in the first you define the Python graphics file type in the second you define the converter regards Alex Thanks Alex, still not there. First: Could one change in the instruction of the PythonGraphics.lyx Define a new file format, name it Python graphics, extension pygr and vector image format ticked to: Define a new file format in tools>preferences, name it Python graphics, extension pygr and vector image format ticked Second: in Converters - Converter Definitions I guess I have to add python $$i $$o in the Converter: line. However, Add on the right side of the Converter Definitions is greyed out. So, how do I do that? Wolfgang __ Información de ESET NOD32 Antivirus, versión de la base de firmas de virus 9900 (20140605) __ ESET NOD32 Antivirus ha comprobado este mensaje. http://www.eset.com Python Graphics.lyx Description: Binary data
Re: Python Graphics in LyX [was: Python bindings]
- Original Message - From: Wolfgang Engelmann To: lyx-users@lists.lyx.org Sent: Monday, June 09, 2014 12:55 PM Subject: Re: Python Graphics in LyX [was: Python bindings] where in lyx is this done?--> Define a new converter from Python graphics to EPS as python $$i $$o Wolfgang If you have followed the little manual you know in tools - preferences there is two options, one that says file types and the other says converters in the first you define the Python graphics file type in the second you define the converter regards Alex
Re: Python Graphics in LyX [was: Python bindings]
- Original Message - From: "Kornel Benko" Sent: Monday, June 09, 2014 8:40 AM Am Montag, 9. Juni 2014 um 08:07:16, schrieb Alex Vergara Gil > Dear Lyxers! > > Studying a little of python and LyX I have reached to this feature that makes > LyX show and process python graphics. Thanks to Rainer M Krug for the hints. > I share this contribution for LyX under LGPL license, so everyone benefits > from it. Good luck and happy lyxing! > > Alex Vergara Gil > MSc Nuclear Physics > SSDL, CPHR, Havana Cuba > > PS: If Rainer agree, pass him from acknowledgements to author list, please. Trying # python example.pygr x.eps I saw, I had to install matplotlib and pandas. Thats OK, this example shows now in lyx too. Fortunately it was included in debian package manager. Indeed, to obtain python graphics matplotlib is required, pandas is a robust library to handle with complex data. Both are in any package manager. The fact that this displays in lyx too is a very nice extra. My first intention was to have a module that insert python code and executes it, but this way is far simpler and reaches the same objective. But the try # python example2.pygr x.eps leads to ImportError: No module named seaborn After installing also python-pip and using # sudo pip install seaborn I got the expected output. This should be documented somewhere I think. Nice work. Kornel In this case my intention was to show that any other python library can be used as well, and it is expected a little knowledge of python from the user, since it is the user itself who will build its own graphic script. But your hint is valid, it should be documented how to obtain extra python packages too. Regards Alex
Re: [Feature Request] python binding
This might work!! Thanks for the suggestions, I will try it extensively and I will comments my experiences afterwards. It seems it also renders the graphic inside LyX itself! That's what I was talking about. Regards Alex - Original Message - From: "Rainer M Krug" To: "Alex Vergara Gil" Cc: "Richard Heck" ; "lyx-users Users" ; Sent: Monday, June 02, 2014 8:31 AM Subject: Re: [Feature Request] python binding I just add comments inline Let's see if I understand: -1. You define a *file type* in LyX under Preferences > File Handling > File Formats for the file type .pygr in which "Vector graphics format" is ticked! 0. You define a converter under Preferences > File Handling > Converters which calls a script which executed files with the extension .pygr and generates, as you suggest below, an svg. 1. I wrote a python script that produces the graphic I want Exactly - and you give it a specific extension .pygr for "python script which generates a graphic" which you defined above. 2. I insert it in LyX somehow I don't know, perhaps defining a converter from .py to svg, but this needs to be inside a module or every python script in LyX will try to be converted into a svg!! So a module is also needed Use insert graphic and select *your .pygr* file as graphic - and Lyx will do the rest of the conversion - i.e. use your converter to convert the .pygr to an svg and other existing converters to generate the png for the preview and the pdf / eps / ... for the final copmpilation of the document. 3. LyX is the one who knows the correct size of the graphic so in principle if I produce a svg should be enough but in this way I need to produce a new svg every time the data change Correct - if the input data changes, you have to generate the graph again manually, or, if the "Converter file cache" is disabled, you just have to close the document and open it again. Hope this helps, Rainer
Re: [Feature Request] python binding
From: "Richard Heck" Sent: Thursday, May 29, 2014 5:05 PM >> I might be *completely* off, but couldn't you achieve exactly this via >> defining converters? I have for example a converter defined, which >> "converts" plantuml source fields into uml graphs, i.e. it defines the >> call to compile them and return the graphs which are then inserted in >> the document? > > Yes, that's more or less what I was suggesting. > > rh > Let's see if I understand: 1. I wrote a python script that produces the graphic I want 2. I insert it in LyX somehow I don't know, perhaps defining a converter from .py to svg, but this needs to be inside a module or every python script in LyX will try to be converted into a svg!! So a module is also needed 3. LyX is the one who knows the correct size of the graphic so in principle if I produce a svg should be enough but in this way I need to produce a new svg every time the data change Take this simple script as example import numpy as np from numpy.random import randn import matplotlib as mpl import matplotlib.pyplot as plt np.random.seed(9221999) data = randn(75) plt.hist(data) which produce a graphic like this in spyder So basically I save this graphic to a svg and then I load it into LyX, but why not letting LyX doing this automatically if it already handles with python?? This is my question. Regards Alex
Re: [Feature Request] python binding
From: Richard Heck Sent: Thursday, May 29, 2014 3:26 PM On 05/29/2014 03:36 PM, Alex Vergara Gil wrote: Hello Lyxers I wonder why LyX is not available to process little pieces of python code within its own framework, like ipython notebook for instance?? This feature allows us to have beautiful graphics such the one produced by matplotlib package. I know there already exists a similar binding for R through knitr module, so why not a binding for python too?? Is there a way, like modules or whatever, to achieve the same functionality or at least some basic functionality of ipython notebook within LyX?? Can you be more precise about what you want to do? I've never heard of ipython notebook. sudo aptitude install ipython-notebook ipython notebook and there you can write even thesis in a web environment with python commands being executed inlined, exporting to pdf and latex too, it is a wonder of our times, so why not letting LyX do this miracle too?? Sweave works by our having an output format (sweave) for such documents and then our declaring Rscript as a sweave --> LaTeX converter, so PDF export (say) goes via Rscript and pdflatex. There's a special script in lib/scripts/ that "sets up some things for LyX" first, or so it claims. It would be reasonably easy to do the same sort of thing for Python, if you wanted to do so. You'd just need to set up an appropriate format and then declare an appropriate script as a whatever -> latex converter. Then LyX will run the script and do as you wish with the embedded python code. Of course, as we've discussed on the list with respect to R, there are large security issues here, too. Richard you obviously miss the point here, or I was not very clear! it is not a different format, is a facility to have python scripts running within LyX framework, you have to see ipython notebook to understand what I mean, you will be surprised!! Basically to build graphs, for instance (and only a piece of what can be done), you add the (let's call it) "knitpy" module and then place a knitpy insert, write some python code that produces a matplotlib graphic and then when lyx compiles the document, instead of the code it is shown the graph, it also can be done in the lyx editing window, but thats a more dificult request. Regards Alex
[Feature Request] python binding
From: "Steve Litt" Sent: Thursday, May 29, 2014 2:35 PM On Thu, 29 May 2014 14:36:29 -0500 "Alex Vergara Gil" wrote: Hello Lyxers I wonder why LyX is not available to process little pieces of python code within its own framework, like ipython notebook for instance?? This feature allows us to have beautiful graphics such the one produced by matplotlib package. I know there already exists a similar binding for R through knitr module, so why not a binding for python too?? Is there a way, like modules or whatever, to achieve the same functionality or at least some basic functionality of ipython notebook within LyX?? Oh, if we're going consider requests for difficult additions to handle a small subset of needs like beautiful graphics, how about filling the GAPING HOLE that there's no practical way to export to ePub, without massive human intervention and end-user programming? None of LyX's HTML and xHtml exports are remotely suitable for flowing-text eBook production, especially because different people have different ideas of how eBooks should be built. I don´t think this is a "dificult addition" since there is already a module that does something similar for what I've asked, knitr module does this but accepting R commands instead of python ones, so maybe the knitr author can put some light to this discussion. Again there should be no need to touch the code, just build a module similar to knitr that can be named "knitpy" This is my original motivation (...) SteveT Regards Alex
[Feature Request] python binding
Hello Lyxers I wonder why LyX is not available to process little pieces of python code within its own framework, like ipython notebook for instance?? This feature allows us to have beautiful graphics such the one produced by matplotlib package. I know there already exists a similar binding for R through knitr module, so why not a binding for python too?? Is there a way, like modules or whatever, to achieve the same functionality or at least some basic functionality of ipython notebook within LyX?? Regards Alex Vergara MSc Nuclear Physics SSDL, CPHR, Havana, Cuba
Re: workaround enumerated lists
On Tuesday, April 08, 2014 9:32 PM, Richard Heck wrote: On 04/08/2014 05:31 PM, Alex Vergara Gil wrote: Dear lyxers! Is there a better way to switch between enumerated lists from a); b) ... to 1.; 2. ... and so on without the need of the tex hack \renewcommand{\labelenumi{alph | roman | arabic{enumi}} ) | . | .- | - } ??? Shouldn't there exists a gui to handle this??? The Customized Lists module contains some lists to do this. You can easily add more by following the same pattern. I'm attaching my hacked version. Richard I have played with your hacked module and it is better than the one installed, but it lacks some features I need which I can do with tex hacks like sublists formating, ie: \renewcommand{\labelenumi{arabic{enumi}}.-} \renewcommand{\labelenumii{alph{enumii}})} \renewcommand{\labelenumiii{roman{enumiii}}-} This provides the lists as following 1.- first item a) sublist1 i- subsublist1 ii- subsublist2 b) sublist2 2.- second item but I only see lists in your module, is there a way to add sublist formatting too? Regards Alex
workaround enumerated lists
Dear lyxers! Is there a better way to switch between enumerated lists from a); b) ... to 1.; 2. ... and so on without the need of the tex hack \renewcommand{\labelenumi{alph | roman | arabic{enumi}} ) | . | .- | - } ??? Shouldn't there exists a gui to handle this??? Regards Alex
Re: Templates from LyX-207-Bundle-3 Windows Installer
- Original Message - From: "José Alejandro Lugo García" -In Ubuntu repositories there are full LaTeX engine? If so, I will think about migrate completely and use LyX on that enviroment. Actually I 'm not doing that because the problem I have with accent in LyX version 2.0.2 from my Ubuntu 12.04 already installed on my machine. But, if at Ubuntu 14.04 will be put a latest version that solve most of my current problems then yes, I would love to use LyX on Ubuntu OS. Bests, José. The accents problem is not a lyx issue, but wrong keyboard configuration, so even if you upgrade to the newest OS you will remain with that problem, so I recommend you to check your keyboard layouth been in spanish, any version (traditional sort, Latin American sort or Spain sort). That problem will vanish then. Even if you have an english keyboard you will have access to accents there. Best Alex
Re: Templates from LyX-207-Bundle-3 Windows Installer
Dear José As you I don´t have full internet conection, but LyX works very well if you manage to install miktex correctly in your system, mainly miktex 2.9 which is the last version I have works as a charm. Greetings and good luck Alex - Original Message - From: "José Alejandro Lugo García" To: Sent: Friday, March 21, 2014 8:16 PM Subject: Templates from LyX-207-Bundle-3 Windows Installer Hi: I don’t have the possibility of a full internet connection, so with some help, I reached the LyX-207-Bundle-3 installer for Windows. Install perfect. All great until I try to open some templates from File/New from Template (see “ 0 showing_templates.png”). Sadly many templates from this collection shows “errors” with missing dependencies that needs to be downloaded from internet (see “1 Show_error.png”). This problem don’t happen with Lyx on Ubuntu 12.04, where it seems that all dependencies are downloading automatically from the OS repositories during the installation process. ¿What is the possibility to fix this for people like me who has not full connection to the internet from Windows? Regards, José. I Conferencia Científica Internacional UCIENCIA 2014 en la UCI del 24 al 26 de abril de 2014, La Habana, Cuba. Ver http://uciencia.uci.cu __ Informacin de ESET NOD32 Antivirus, versin de la base de firmas de virus 9568 (20140320) __ ESET NOD32 Antivirus ha comprobado este mensaje. http://www.eset.com
Re: LyX + CAS
> >> Unfortunately the two CAS able to interact with LyX in Win7 are paid. > >> Maybe there is also a workaround for Maxima, which would help the > >> freeware and open source cause :) AFAIK, LyX is open source software, also Octave is open source, so why not supporting Octave as the standard CAS for LyX. The QtOctave works very good on Windows and it has a lot of compatibility with MatLab with a lot of plugins and interactions with Qt. I don´t think supporting a paid software is a good idea because we will be away of the GPL License. Just my 2c Alex
Re: Pasting graphics in LyX 2.1 beta on Mac
- Original Message - I noticed when I had to paste some graphics with a lot of text that LyX (or rather the libraries used by LyX) seem to reduce the resolution of the pasted graphics (copied selection from Preview and pasted as a png-file in LyX). Anyone else experienced it, or could it be a setting somewhere in my environment? If so, does anyone have an idea of how to solve it (save the cropped file as a png in Preview of course works, but is several additional steps). All the best! Anders The best you can do in these cases is save the graphic in svg format whenever posible. Otherwise you must edit your graphic on inkscape to add the text manually and then export it as svg. If you doesn´t go into vectorial graphics you will definetively lose resolution and then the text will look awful. regards! Alex
Re: formula numbering
El Viernes, 09 de Agosto de 2013 08:59 a.m., Richard Heck escribió: On 08/09/2013 09:42 AM, Alex Vergara Gil wrote: I have written my MSc thesis in LyX and the way references are handled helps me a lot, but I got only one suggestion: when I set my own labels LyX also asigns a number to the equation which is automatically changed but doesn´t correspond to the "real" equation number that appears in the final text, so when I finally got about 120 pages written I detect one wrong equation and I have to spend a few time to detect which equation is in the LyX document because I didn´t find the equation 2.4 instead it was equation 17. So I think this behaviour is wrong and must be fixed. Do you remember what document class, etc, you were using? It sounds like it set "number equations by section", and the layout file did not know about that. Richard The class I used was book (KOMA-Script) with the following preamble % increase link area for cross-references and autoname them \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1 \newlength{\abc} \settowidth{\abc}{\space} \AtBeginDocument{% \addto\shorthandsspanish{ \renewcommand{\equationautorefname}{\hspace{-\abc}} \renewcommand{\sectionautorefname}{sec.\negthinspace} \renewcommand{\subsectionautorefname}{sec.\negthinspace} \renewcommand{\subsubsectionautorefname}{sec.\negthinspace} \renewcommand{\figureautorefname}{Fig.\negthinspace} \renewcommand{\tableautorefname}{Tab.\negthinspace} } } % in case somebody want to have the label "equation" %\renewcommand{\eqref}[1]{equation~(\negthinspace\autoref{#1})} \def\es@tablename{Ttabla} \def\es@appendixname{Aanexo} % that links to image floats jumps to the beginning % of the float and not to its caption \usepackage[figure]{hypcap} % the pages of the TOC is numbered roman % and a pdf-bookmark for the TOC is added \let\myTOC\tableofcontents \renewcommand\tableofcontents{% \frontmatter \pdfbookmark[1]{\contentsname}{} \myTOC \mainmatter } % make caption labels bold \setkomafont{captionlabel}{\bfseries} \setcapindent{1em} % enable calculations \usepackage{calc} % fancy page header/footer settings \renewcommand{\chaptermark}[1]{\markboth{#1}{#1}} \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} % increase the bottom float placement fraction \renewcommand{\bottomfraction}{0.5} % avoid that floats are placed above its sections \let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
Re: formula numbering
El Jueves, 08 de Agosto de 2013 12:24 p.m., Richard Heck escribió: On 08/08/2013 01:19 PM, curtis osterhoudt wrote: I *like* the way LyX handles it. I give my equations labels which _make_sense_ to me as a physicist---like "Poisson-Eqn"---not having to coddle to the structure of the paper. If I want to refer to the equation 20 pages later, I don't have to go back and find the number and adapt the label or the references, nor do I have to worry about renumbering if anything changes. The cross-reference system built into Lyx/LaTeX takes care of that. My only objection is the (perhaps apocryphal, but lodged in my brain since I've used LyX for about a decade now) requirement/suggestion to put dashes in place of spaces in one's labels. Yes, LaTeX regards the space as separating tokens, and as things now are labels get entered as raw LaTeX, not as something that gets processed by LyX. So no spaces. That, however, would be easy to fix. Richard I have written my MSc thesis in LyX and the way references are handled helps me a lot, but I got only one suggestion: when I set my own labels LyX also asigns a number to the equation which is automatically changed but doesn´t correspond to the "real" equation number that appears in the final text, so when I finally got about 120 pages written I detect one wrong equation and I have to spend a few time to detect which equation is in the LyX document because I didn´t find the equation 2.4 instead it was equation 17. So I think this behaviour is wrong and must be fixed. Best Regards Alex
Re: latex to lyx
I'm new using lyx to write articles and I found a perfect template for my paper in this web for latex templates: http://www.latextemplates.com/ My question is if anyone knows how to use them in lyx? Thanks in advance Miquel You should name the template itself since there should be an equivalence already in lyx, or perhaps not, but somebody may already made the required module
Re: document statistics
Hello: Occasionally it is necessary to count the total word or character number in a document. Lyx has Tools->Statistics option for the document, but how can I make statistics that includes the text in the Bibliography which is not edited in lyx? Thanks, bcsikos If is not edited in LyX there is no way LyX can count the words, so I use Okular to do this kind of things once the document is ready. Alex
Re: conflict between LyX and Gimp for the use of python
On 11/05/2012 10:50 AM, Alex Vergara Gil wrote: I have a system with windows 7 which have previously installed python 2.6 for the use of GIMP, this sofware do use python for a lot of things so I cannot remove it from the system. I want to install LyX in this system but when I do that all goes wrong because all the python scripts refers to the python 2.6 already installed instead of the correct python inside LyX This should be fixed since a while. Please test it out by reinstalling LyX using the latest version. Reopen bug http://www.lyx.org/trac/ticket/8691 if you still have problems. regards Uwe Dear Uwe This is an old message, nevertheless I have solved it by updating both GIMP and LyX to the newest versions so both now use the same python sources. Anyway if LyX still refer statically to python under it directory I see no reason for the conflict. I think this is an already solved bug. Alex
Re: feature request: ribbon menus
- Original Message - From: "Jürgen Spitzmüller" To: Sent: Friday, April 05, 2013 11:16 AM Subject: Re: feature request: ribbon menus Well, this is an open source project. So if there are no license issues, everybody who is motivated enough to implement and maintain such an UI is of course allowed to go ahead and propose a patch. This was my initial intention, but I was exploring in this list to see if there are some users who actually want this. Not the case, so the intention seems to have wrong fundations. My bad :( At the moment, nobody seems to be really enthusiastic, so one consequence could be that you do it yourself (this is actually exactly how I came into LyX development). Jürgen I am learning Qt right now but I have some experience developing, especially with UI. My concept of a text editor software always include ribbon menus and thats why I shout this proposition, but without community acceptance any purpose is a nonsense! So next time will be. Alex
Re: feature request: ribbon menus
- Original Message - From: "Steve Litt" To: Sent: Thursday, April 04, 2013 7:38 PM Subject: Re: feature request: ribbon menus On Thu, 4 Apr 2013 14:31:07 +0200 (CEST) Csikos Bela wrote: Alex Vergara Gil írta: >Hello developers! > >I have a feature request if this is not already > >requested to you: Ribbon Menus.> I don't know what ribbon menus is, and I may not be the only one. You should have explained it, attached an image, or given a link where it is explained. The way I see it, if LyX developers were to have enough time to put in this UI eye candy, that time would be much better spent, for instance, finishing the job of making LyX a full outliner that can add, delete, change and move nodes. Or something else necessary or highly desirable for someone who actually uses it to create large volumes of content. Next thing you know, somebody will ask for an io/s looking interface to match his iPhone. SteveT Changes in UI like this one takes to anyone just 1 day, it is just a matter of decide to make it or not, however the changes you mentioned take a lot of coding and a lot of man-hour work, so the time scale is not comparable. On the other hand ribbon menus once you get use to them you find your productivity increasing, actually LyX has something that is like this: "The math toolbar", which groups several common operators in just one menu and have several menus grouped by functionality. If the ribbon appearance is problematic then you can create something like the math toolbar for every toolbar and put them in just one toolbar. I see people here who argue with this because they would not have everything in front of their eyes, really!! then why don´t you complain of not having every single option visible in toolbars? What I beg is an UI organization grouping icons by functionality, so the resulting toolbar (or ribbon menu) should be smaller and highly configurable. Come on people, not only M$ do this, even Apple and there are some linux programs that are using a similar approach right now. Static toolbars are obsolete in terms of modern GUIs. This request is not for beautyness but for increasing productivity. As I said this is my personal opinion so I migth be wrong, but I haven´t received any useful opinion (besides M$ patent) of why not doing such a thing just a few user complaining they will affect some how what they feel is comfortable. Regarding the patent believe me that if they patent 0s and 1s then we are definitively lost.:) Alex
Re: feature request: ribbon menus
Alex Vergara Gil wrote: I don´t know if thi request can be made inside Qt (I think there should be some package for this in the nokia library!). Pavel Sanda wrote: No it isn't. Mr Google suggest that "Qt team at one point stopped developing the control due to Microsoft licensing." This sounds funny given the fact that tabbed toolbar was already around in 90s and I remember it from Borland's Delphi UI. Pavel Yes indeed, this sounds like we should not be able to build frames at all because they look like Microsoft´s Windows and these are licensed by Microsoft ;) so what kind of things are legal or not? This point puts even more fuzzy to my logic! I thougth graphic design as long as it is not equal are not the same and we can make the ribbon as different as we want, just keeping the idea and even better, instead of putting it in the top we can put then at the left so we can avoid the vertical space eating that Jacob mentioned. So I don´t understand that logic. Just my POW Alex
feature request: ribbon menus
Hello developers! I have a feature request if this is not already requested to you: Ribbon Menus. The actual look of lyx makes duplicate functions in text menus and icon menus, besides there is a lot of space wasted by allocating the icon menus. This has nothing to do with intrinsic code but to UI graphic design. This modern approach is the best to maximize functionality and avoid duplicating functionality. I don´t know if thi request can be made inside Qt (I think there should be some package for this in the nokia library!). What are your opinions about this? Is this approach correct to you? Best Regards Alex
Re: Creating pdf forms template
- Original Message - From: "Rainer M Krug" -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am really looking forward to a working example - but could we please keep this discussion on lyx-users, as it has nothing to do with devel? Thanks, Rainer Dear Rainer This discussion was made in both user and developers lists because my questions has two purposes: 1. to have a working example of forms in lyx and 2. To make developers realize that a toolbox for form design should be made for native support for this inside lyx (as you can see my example is full of ERT code) Regards Alex
Re: Creating pdf forms template
- Original Message - From: John Kane To: Alex Vergara Gil ; lyx-users Users ; lyx-de...@lists.lyx.org Sent: Thursday, March 21, 2013 12:32 PM Subject: Re: Creating pdf forms template It works or at least I managed to type some text into the text box. I made a couple of changes to the text which I think makes it a bit more idiomatic in English (see attached. I hope you don't mind. I spent what seemed like forever installing the blasted insdljs.sty and it worked. For those having the same problem in Ubuntu I 1) created a texmf folder at root level following these directions http://nmv.stat.cmu.edu/2012/06/14/managing-latex-packages-manually-in-ubuntu-12-04/ and then following instructions from http://www.latex-community.org/forum/viewtopic.php?f=5&t=8886 2. cd'd to the texmf/tex/latex/acrotex directory 3. ran sudo texhash 4 ran latex acrotex.ins Reconfigured LyX and everything ran nicely. Dear John Thanks for your reply and your idiomatic suggestions. Now I notice that it must be told in the document that for make it to work the AcroTeX package must be instaled also (it contains the insdljs.sty file), this specific package allows javascript code inside a pdf, so you can manage actions like (onselect, onkeypress, etc). It is also part of MikTeX if you run this on Windows so this should works on every platform. The problem is that if you just put {this.getField("Escuelat").readonly=false;} it works in one way, but when you uncheck the box the linked text field should become uneditable and empty. For this I expect that the code {this.getField("Escuelat").readonly=!this.getField("Escuelac").checked; this.getField("Escuelat").value="";} shall do the job, but it isn´t. I even made this as a function, but nothing happened. The rest of the objects work very nice but this kind of behaviour is critical for the next step of creating action buttons. Regards Alex
Creating pdf forms template
Hello Lyxers! In the lasts days I was learning how to create PDF forms using LyX. But this process require a few javascript knowledge. I´ve tried my best to translate to english the attached template (an improvement of previous in spanish) in which you will see that objects are actually created but the scripts doesn´t behave as I expect. Someone please help me to set this to work. I think this is a first step to make a good template and if we manage to obtain an impresive one and people starts using it then it should be a feature request to support form creation natively in LyX, hopely as a new toolbox. What do you think about this? Please don´t feel offended by my (bad) english, I really make my best effort to translate it. Regards Alex pdf-forms-en.lyx Description: application/lyx
Re: How to create a pdf template?
ping! Hello all! I have tried to make this template to work, but there is something wrong with my javascript. Could anyone please help me to get this running Best Regards Alex pdf-forms.lyx Description: application/lyx
Re: How to create a pdf template?
Hello all! I have tried to make this template to work, but there is something wrong with my javascript. Could anyone please help me to get this running Best Regards Alex pdf-forms.lyx Description: application/lyx
Re: Article class: KOMA + Beamer
On Wed, 20 Mar 2013, Rich Shepard wrote: Template? Is this different from the .sty file? I find /usr/share/lyx/templates/ but nothing in there for article (koma+beamer). Rich File-New from template select the file "beamer-conference-ornate-20min.lyx" which is also translated to spanish, french and german this is the template I refer HTH Alex
Re: Article class: KOMA + Beamer
I'm preparing a half-hour presentation and want to outline the talk before preparing the beamer-class slides. I see there is an document class 'article (koma + beamer)' but I cannot find documentation about use of this class in the built-in manuals or on the Web. While I assume that this class facilitates preparation of notes and slides this may not be correct. Where do I find details of what this class provides and how to effectively use it? TIA, Rich Add this to your preamble, remove the % from the one you want, I prefer Dresden. % Select only one %\usetheme{AnnArbor} %\usetheme{Antibes} %\usetheme{Bergen} %\usetheme{Berkeley} %\usetheme{Berlin} %\usetheme{Boadilla} %\usetheme{boxes} %\usetheme{CambridgeUS} %\usetheme{Copenhagen} %\usetheme{Darmstadt} %\usetheme{default} \usetheme{Dresden} %\usetheme{EastLansing} %\usetheme{Frankfurt} %\usetheme{Goettingen} %\usetheme{Hannover} %\usetheme{Ilmenau} %\usetheme{JuanLesPins} %\usetheme{Luebeck} %\usetheme{Madrid} %\usetheme{Malmoe} %\usetheme{Marburg} %\usetheme{Montpellier} %\usetheme{PaloAlto} %\usetheme{Pittsburgh} %\usetheme{Rochester} %\usetheme{Singapore} %\usetheme{Szeged} %\usetheme{Warsaw} The rest is very well explained in the template, just one hint, when you add a new column environment you must press enter and then tab to be inserted into the column itself. HTH Alex
Re: editing math in lyx
- Original Message - From: Neal Becker To: Alex Vergara Gil Cc: lyx-de...@lists.lyx.org ; lyx-users@lists.lyx.org Sent: Wednesday, March 20, 2013 10:01 AM Subject: Re: editing math in lyx Any convenient shortcut to select the content of the formula? I thought clicking inside the math formula and choosing 'select whole inset' from edit menu would do it, but seems to insist on selecting entire document! Yes, select one of the following a.. triple click inside the formula, b.. select from the begining of the formula with the left click pressed c.. add a shortcut to your preferences as in http://tex.stackexchange.com/questions/84031/making-an-edit-to-an-inline-equation-that-went-off-of-the-screen/84060#84060 I prefer the first one, is just quicker HTH Alex
Re: How to create a pdf template?
Sorry for the wrong thread answer! This is the correct one Attached there is a MWE of how to produce this forms in LyX (is in spanish but the idea remains for every language). HTH, if anyone is so kind to translate this and upload to the wiki please be welcome Alex pdf-forms.lyx Description: application/lyx
Re: editing math in lyx
I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. OOps, sorry wrong thread! You can edit directly the TeX code by selecting the equation inside math mode (ctrl+C) and paste outside math mode (ctrl+V) then you will have the TeX code directly (you can also place TeX code directly without to enter math mode). When you finished select again your Tex code and press Ctrl+M. Voilá. HTH Alex
Re: editing math in lyx
I would really love to be able to conveniently edit the TeX code directly - I'd be vastly more productive. I find lyx gui editing - as all other math editors - to be terribly frustrating and unproductive. I used LaTeX since 1980s, and the lack of this is the only thing that makes me think twice before deciding to use LyX instead of just using LaTeX. Attached there is a MWE of how to produce this forms in LyX (is in spanish but the idea remains for every language). HTH, if anyone is so kind to translate this and upload to the wiki please be welcome Alex pdf-forms.lyx Description: application/lyx
Re: How to create a pdf template?
As a starting point: http://tex.stackexchange.com/questions/14842/creating-fillable-pdfs but also: http://www.ctan.org/tex-archive/info/pdf-forms-tutorial And as an example: http://martin-thoma.com/creating-pdf-forms-with-latex/ WOW! Very nice example. It is just be needed to add hyperref support as Kornel says: 1.) enable hyperref in document settings Document->Settings->PDF options->use package hyperref 2.) in ERT add on appropriate place add ERT as in the example from: begin{Form}[action=mailtoi...@example.com,encoding=html,method=post] to end{Form} I am quite sure that you have to use ert in Lyx. This is not an issue, although it would be nice to have it on a module, but I can use it as it is now. Thank you all! Cheers, Rainer Alex
Re: How to create a pdf template?
- Original Message - From: "Liviu Andronic" Subject: Re: How to create a pdf template? On Tue, Mar 19, 2013 at 2:34 PM, Alex Vergara Gil wrote: I need to create a pdf template for users to fill some boxes like a poll (actually I need to create a client satisfaction poll). Is there a way to do this? What is the best approach in this case. I'm curious how this could be done, but wouldn't it be easier to use an internet service like SurveyMonkey or limesurvey? Liviu I live in Cuba so I have very little internet bandwith, so I prefer something out of line, if were possible: LyX! I know people can use adobe acrobat to do this and I have seen many pdf in this form, but I want to learn how to do this in LaTeX (prefereable LyX) because I don´t want to buy adobe´s licence (and actually I can´t because some law restrictions - See "cuban embargo law"). Regards Alex
How to create a pdf template?
Hello LyXers! Hello Developers! I need to create a pdf template for users to fill some boxes like a poll (actually I need to create a client satisfaction poll). Is there a way to do this? What is the best approach in this case. Basically I need to place some text boxes (for the user to write something), a few Comboboxes (for the user to select a single option) and some Radio/Check Groups (for the user to select one/many among some options). Thanks for your time Best Regards Alex Vergara Gil MSc Nuclear Physics SSDL, CPHR, Havana, Cuba http://www.cphr.edu.cu
Re: editing math in lyx
- Original Message - From: "Scott Kostyshak" To: "Abdelrazak Younes" Cc: "Alex Vergara Gil" ; ; Sent: Sunday, March 17, 2013 12:11 PM Subject: Re: editing math in lyx This sounds like a not very hard feature to implement, maybe without touching C++ even. So why don't you implement this yourself and propose a patch? There are not many active developers these days so LyX users must participate to the development if they want to see LyX evolve. +1. See the link below for a start. One of the solutions does basically what you suggest but using shortcuts. http://tex.stackexchange.com/questions/84031/making-an-edit-to-an-inline-equation-that-went-off-of-the-screen/84060#84060 Scott Scott This saves my day, actually I have no idea that LyX can actually can copy in rendered math mode and paste outside it as TeX code and then go backwards. The solution I prefer is then manually select your equation inside math mode, cut and paste outside math mode (it will be displayed as TeX code). These can be automated by the shortcut: command-sequence char-forward; line-end-select ; cut; char-backward; paste; char-delete-forward. hen you finish to edit select the whole code and press ctrl+m. Voilá, Everything goes as expected. So thankyou very much Scott for pointing me in the right direction. Alex
Re: editing math in lyx
- Original Message - From: "Guenter Milde" To: Sent: Thursday, March 14, 2013 3:35 AM Subject: Re: editing math in lyx Third method: * select and cut the fraction * paste into text - will appear as LaTeX macros * edit * cut and paste back to the formula This also works for complete formulas. Then, alternatively, you can select the LaTeX-macros-text and convert to a math box via Ctrl-M (or Alt-M D for a display formula). Günter Isn´t there a better way to do this inside LyX? I think this is a good feature request for developers, is not that hard to put a button inside the math environment that switches between TeX and rendered math mode, and when exited you see only rendered. I don´t know if I am making myself clear, so I will explain this a little more. 1 Enter in math mode and add some equation/whatever. 2 Now I want to add some TeX code directly or edit what I have introduced, so I press the (requested) switch button and I could see all in TeX code. 3 I edit the TeX code and when finished press the switch button again (or just leave math mode), the result should be the new rendered equation/whatever I have edited. This feature would be great for middle to power users, off course one should only expect math code inside the math mode so it would be nice to clarify this in the manual if it is actually included. I know I can do this in a ERT environment but then I need to copy to math but that´s not an optimal approach. Regards Alex
Re: issues with tufte-book on LyX
Although this works on linux I cannot handle to make it work under win7+MiKTeX2.9+LyX2.0.4 I don´t know why but the same file show chapters and sections compiled in linux(debian7testing) and only chapters compiled under windows, so this is a big ?W?T?H? If someone else has any other advice on this it would be appreciated Regards Alex - Original Message - From: John Kane To: Alex Vergara Gil ; lyx-users Users Sent: Thursday, March 07, 2013 11:30 AM Subject: Re: issues with tufte-book on LyX Thanks Alex. It's nice to have a solution. -- From: Alex Vergara Gil To: John Kane ; lyx-users Users Sent: Tuesday, March 5, 2013 2:28:16 PM Subject: Re: issues with tufte-book on LyX Hi John! I deeply search into my problem and find out that by adding the line \setcounter{secnumdepth}{3} in the preamble solves the problem of no section in TOC. But I have no good results in adding some pictures in front page, I have solved this by making the front in another document and forgoting the cover in tufte. HTH for anyone with the same issue Alex - Original Message - From: John Kane To: Alex Vergara Gil ; lyx-users Users Sent: Saturday, March 02, 2013 8:21 AM Subject: Re: issues with tufte-book on LyX I just tried to run the example and I see what you mean. There are no sections in the ToC and yes, when I stick a graphic in the title the program returns all kinds of error messages . Of course I don't know if it is because the class won't allow a graphic or my stolen cartoon is too big. Unfortunately mucking around with the tufte-book in Latex does not seem to even give me a ToC! My simple-minded example works in LaTeX and when imported into LyX but without the ToC!
Re: issues with tufte-book on LyX
Hi John! I deeply search into my problem and find out that by adding the line \setcounter{secnumdepth}{3} in the preamble solves the problem of no section in TOC. But I have no good results in adding some pictures in front page, I have solved this by making the front in another document and forgoting the cover in tufte. HTH for anyone with the same issue Alex - Original Message - From: John Kane To: Alex Vergara Gil ; lyx-users Users Sent: Saturday, March 02, 2013 8:21 AM Subject: Re: issues with tufte-book on LyX I just tried to run the example and I see what you mean. There are no sections in the ToC and yes, when I stick a graphic in the title the program returns all kinds of error messages . Of course I don't know if it is because the class won't allow a graphic or my stolen cartoon is too big. Unfortunately mucking around with the tufte-book in Latex does not seem to even give me a ToC! My simple-minded example works in LaTeX and when imported into LyX but without the ToC!
Fw: issues with tufte-book on LyX
- Original Message - From: "Alex Vergara Gil" To: Sent: Monday, February 25, 2013 11:18 AM Subject: issues with tufte-book on LyX Hello LyXers!! I´m managing some issues when I use tufte-book on my LyX 2.0.4 in windows 7 x64 SP1. 1. Section labels doesn´t appear on Contents Table (nor there is an option to force this under document->properties->numbering and IG). 2. Cannot add figures as title (I need an icon and a caption in the title, it returns an error of some a.cfg and at.cfg files missing, but I have a full MikTeX 2.9 installation. Only with the caption works fine but when I add an inline figure it crash). I need the figure only in the title in the first page, not in the rest, but why not? At the end it is hust the icon of my app with 32x32 bits size. (Yeah I'm writing an user manual) 3. Date, address and address_right doesn´t appear in front page, so WTH are these? again if I use them with a figure it crash with the same errors mentioned above. For the minimal example you can refer to the tufte-book.lyx that appears in the example folder, so I think the issue is in the tufte-book module. Is this an intended behaviour?? In this case how can I change this? Do I need to rewrite the module? I'm not a LaTeX expert so I don't know if all these can be achieved in LaTeX. Best regards Alex Vergara MSc. Nuclear Physics SSDL, CPHR, Cuba http://www.cphr.edu.cu Ping!
issues with tufte-book on LyX
Hello LyXers!! I´m managing some issues when I use tufte-book on my LyX 2.0.4 in windows 7 x64 SP1. 1. Section labels doesn´t appear on Contents Table (nor there is an option to force this under document->properties->numbering and IG). 2. Cannot add figures as title (I need an icon and a caption in the title, it returns an error of some a.cfg and at.cfg files missing, but I have a full MikTeX 2.9 installation. Only with the caption works fine but when I add an inline figure it crash). I need the figure only in the title in the first page, not in the rest, but why not? At the end it is hust the icon of my app with 32x32 bits size. (Yeah I'm writing an user manual) 3. Date, address and address_right doesn´t appear in front page, so WTH are these? again if I use them with a figure it crash with the same errors mentioned above. For the minimal example you can refer to the tufte-book.lyx that appears in the example folder, so I think the issue is in the tufte-book module. Is this an intended behaviour?? In this case how can I change this? Do I need to rewrite the module? I'm not a LaTeX expert so I don't know if all these can be achieved in LaTeX. Best regards Alex Vergara MSc. Nuclear Physics SSDL, CPHR, Cuba http://www.cphr.edu.cu
Re: Text in certain colours
Hi I have line graphs generated in R, where each line is in a different colour (the colours are generated in R by using rainbow(8)). Due to space problems in the graph, I can not put the legend into the grapgh itself, but want to put it into the caption. Therefore I would like to reproduce the colours in LaTeX. I know how to set the text colour via LyX to one of the pre-defined colours, but hjow can I set them to these specific colours? In addition, I would like to have the colours as filled squares in the text - any suggestions? Oh you mean by adding \textcolor{yourcolor}{$\blacksquare$yourcaption} in an ERT Regards Alex
Re: Copy and paste images from other programs to Lyx
On 12/18/2012 11:08 AM, GSC wrote: Is it possible to paste images without asking for save path and Lyx choose one automatically for me ? I believe many people use image pasting heavily and it's a waste of time to open the save file dialog every time. So I really hope there's an option for this. There is an existing one which is marked as implemented as follows: Paste graphic from clipboard: prompt for filename/location (but have reasonable defaults to allow things to go quickly), save clipboard picture, and include into the lyx document at the cursor location. (Motivation: I take notes in LyX during mathematical lectures, and I often want to include figures. With a tablet PC, it's quite easy to get the figure into the computer in real-time, but there are many steps to get that figure into LyX -- it's difficult to do it in real-time. How can that process be streamlined? May also help to allow graphics to be stored within the LyX file, so the user doesn't have to bother coming up with path/filename for each figure?) → New in 1.6 but as the statement says, "have reasonable defaults to allow things to go quickly" It's not implemented completely , we can go quicker by not showing the save dialog at all, and allow for some default image display parameters to be set somewhere. (for example, I almost edit the width to 15 cm every time). Should I edit the Feature Request poll wiki page to get my wish delivered ? I think this request lies in the same feature request for a XML native .lyx format; since including images inside an xml is so easy and does not require aditional files to be saved. Read the thread about the XML native format named "Would a native LyX XML schema be accepted?". Regards Alex
Re: Would a native LyX XML schema be accepted?
On Mon, Dec 17, 2012 at 2:25 PM, Richard Heck wrote: I'm not so sure. If someone were to write a converter that mapped LyX's XML onto ODT's, or whatever, then yes. But that would still need doing. Yes, of course. However, I think it should be easier to write such XSLs to map from a straightforward LyX XML schema than from LyXHTML output. The latter depends too much on the document class and has issues, while the former should preserve everything about the original .lyx as much as possible. Nico -- And it would be easier for the final user the fact that all converters can operate automatically inside the LyX, instead of calling them, so you would see that copying a MathML equation in LOWriter and then pasting in LyX would result in a LyX equation where you insert them instead of having to convert it to latex using whatever script you have and the copy paste inside an equation box (is there an easier way right now? I think my way is too much omplicated), the same for figures (you don't need to save the image and then load it from LyX, just paste it where you want it) and tables (I think this is a lot more complicated example, but there is XLST converter). Alex
Re: Would a native LyX XML schema be accepted?
Sounds like a great idea. One question: would having an external but faithful XML Lyx file allow XLS-translations to XML-based word-processing formats? That would solve once and for all (hopefully) the problem of the Lyx-->Word conversion that still plagues those of us working in the Humanities (At least, it still affects me). Stefano -- Yes!!! This is the whole idea behind a native XML schema .lyx file. Not only word but also excel, powerpoint, copy-paste inline, ... , and so on would be solved easily in this way. Alex
Re: Would a native LyX XML schema be accepted?
There still are long-term plans to convert the native LyX format to XML. But it turns out to be more work than one might expect. rh Really nice to hear about this, is there any schedule??? Alex
Re: Would a native LyX XML schema be accepted?
Would this be accepted? Mind if I use a BSD license? Nico -- +1 with this. This is what LyX really needs to handle native XML schema in .lyx files. Please hurry up the desition of having this in LyX. I really want to see an outstanding WYSIWYM program that can handle metapackages, figures, etc inside a single file and fully compatible with other office products in a copy-paste schema. Isn't there anyone who think this would be great??? Alex
Re: Show line numbers in the sources
Hello, I would like to make a suggestion for a new feature. When I try to compile a file using LyX and there is a syntax error, the LaTeX protocol tells me in which line the error occurred. If there were line numbers displayed in the sources window, it would give me a clue where in my LyX document the cause for this error is located. What is your opinion on this, and what is the 'official' way to make a feature request? +1 with this. Definitively there must be an enhacement on the LyX debugger. This can save a lot of time of erasing_the_half common procedure. Alex
Re: about the .lyx formt
On Wed, Dec 5, 2012 at 8:15 AM, Alex Vergara Gil wrote: The question is why to have a .lyx format in plain text? Isn't xml a better one? .. There's a wiki where this is discussed. I agree, XML is better, not because XML is great, but because of tools like XSLT. If there was a loss-free, bi-directional conversion between LyX and some XML schema (XHTML, say), then that'd be good enough for now. There is an export to XHTML function, but I don't think there's an import from XHTML Nico -- Can you point me the address to the wiki please. I agree that having a bidirectional conversion is nice at first glance (or first step approximation lets say) but what I really expect in the future is to have the .lyx format natively use the xml scheme. So then there would be no need for an importer-exporter tool (except for compatibility with previous versions) and with all the benefits of xml then LyX will overwhelm any other word processing software. Alex
about the .lyx formt
Hi everyone! I am a user of LyX, not a developer, but somehow I feel I must do things to contribute to it. So I want to open a thread about the .lyx format. The question is why to have a .lyx format in plain text? Isn't xml a better one? I know plain text is easy to edit but we really doesn't work with it since LyX do this for us. The advantages would be obvious: Insertion/Deletion of metadata, a better way of handling everything, etc. This is my point of view, so I might be wrong but I doesn't feel like that. Best Regards Alex
Re: Custom metadata
On Tue, Dec 4, 2012 at 8:21 PM, Nico Williams wrote: It'd also be nice to be able to define a filter that must be applied before rendering. Such a filter might convert metadata into LyX directives, thus pre-rendering said metadata. Did you look into the possibility of adding a new file format (say, .xml2rfc) and a converter from .lyx to .xml2rfc and a 2nd one from .xml2rfc to .lyx? I think current LyX infrastructure allows you to do what you want. Liviu Liviu I think Nico means to have a classic CTRL+C -> CTRL+V approach of typical Office products. In this case it should be say that LyX is not implemented to do this since the .lyx format is only plain text, so you have no way to add an image, for instance, inside it. The way lyx works (which is correct) is to have external images and then insert them in view by rendering. I also think this is a feature that can be done by creating the image (this is the classic metadata inset) in the .lyx file directory and then create the reference to it. Of course there is the complication of what happens if you want to delete it, this is a gray area. I hope this clarifies the question Alex
Re: various fonts in math equations
Guenter Milde users.sf.net> writes: I recommend using the LaTeX package "isomath" (http://www.ctan.org/pkg/isomath): Will this work with MikTeX and LyX? I do not see a version for MikTeX there. Leslaw I use miktex 2.9 in mswindows and this work for me eq_wihbold.lyx Description: application/lyx
Re: Biber documentation
Am Mittwoch, 28. November 2012, 20:02:55 schrieb stefano franchi: Thanks, Stefano, for your help and advices and references. Will work on it. By the way, Springer publisher wants the Vancouver style. In the net it is mentioned: by TeXnical Designs on Tue Aug 30th, 2011 LaTeX has a Vancouver citation style which you can use and can be found here. As far as doing it in LyX, it is possible. This PDF should explain things. But the PDF mentioned does not mention LyX at all. Is there a Vancouver.layout file available? Wolfgang You don't need the layout because it is present in latex, if you use bibtex just double click in the gray box and choose the vancouver style Regards Alex
Re: various fonts in math equations
Hi, I am using LyX on a PC operating under Windows XP, with MikTeX. I need to have math equations containing symbols written with various fonts. By using the terminology of MS Word/Windows, I need the following combinations: 1) Italic 2) Bold 3) Italic+Bold I have been able to have 1 in Lyx (this in fact appears by default while typing the formulae). I have also been able to have 2, which can be done if I change the font to /mathbf in the equation editor. But I have not been able to achieve 3. Is there any way to do this? The point is that I'd like to see these effects not only in LyX itself, but also (or maybe in the first place) in the pdf file generated by LyX. Leslaw attached you have an example of an equation with several tipographies in it eq_wihbold.lyx Description: application/lyx
Re: Getting rid of "You cannot type two spaces this way" message?
On Wed, Nov 21, 2012 at 03:08:27PM +, Alan R. Bleier sort of wrote: On Apr 15, 2012, at 3:59 PM, Trevor Jenkins wrote: > if the key sequence has no meaning in LyX then I'd argue that there is > absolutely no need for a message at all. Just have it drop the second > space quietly and move on. > Sorry I'm late joining this conversation, but it was sufficiently > annoying to me today that I searched for information about it and > found this thread. I agree completely with Trevor. If you are serious about "what you see is what you mean" and "LyX lets you concentrate on writing" (from http://www.lyx.org/WhatIsLyX ), the message should not be displayed. So you volunteer to handle the bug reports saying "LyX doesn't accept what I type" ... ... ... "Ah, two spaces... won't work."? Andre' Oh like the "bug repots" of "LyX doesn't put my images where I want", etc. Come on guys, this is ridiculous. If some thing one should do before using anything is to read the manual, and there it is well written: "LyX is WYSIWYM", so meaningless thing won't work, like two consecutive spaces unless you really want them and then you can just do CTRL+space, voila! two spaces. So I join the one who thinks meaningless messages must be ridded out of LyX. +1 with Trevor Alex A really useful message that doesn't appear is when you type carriage return without line break or paragraph break, it shoud appear as "detected line without line break" or something else. By line breaks I mean the "." or ":" or "...", etc. What is the sense of a line without period? Alex
Re: Getting rid of "You cannot type two spaces this way" message?
On Wed, Nov 21, 2012 at 03:08:27PM +, Alan R. Bleier sort of wrote: On Apr 15, 2012, at 3:59 PM, Trevor Jenkins wrote: > if the key sequence has no meaning in LyX then I'd argue that there is > absolutely no need for a message at all. Just have it drop the second > space quietly and move on. > Sorry I'm late joining this conversation, but it was sufficiently > annoying to me today that I searched for information about it and > found this thread. I agree completely with Trevor. If you are serious about "what you see is what you mean" and "LyX lets you concentrate on writing" (from http://www.lyx.org/WhatIsLyX ), the message should not be displayed. So you volunteer to handle the bug reports saying "LyX doesn't accept what I type" ... ... ... "Ah, two spaces... won't work."? Andre' Oh like the "bug repots" of "LyX doesn't put my images where I want", etc. Come on guys, this is ridiculous. If some thing one should do before using anything is to read the manual, and there it is well written: "LyX is WYSIWYM", so meaningless thing won't work, like two consecutive spaces unless you really want them and then you can just do CTRL+space, voila! two spaces. So I join the one who thinks meaningless messages must be ridded out of LyX. +1 with Trevor Alex
Layouts vs cls file definition (was: Lyx .layout language for nagauth.cls)
El 11/07/2012 07:19 p.m., Allen Wilkinson escribió: (...) Why doesn't LyX just default to the .cls files definitions and abandon the need for layout files? (...) Dear Lyxers I half agree with this question, layout files are very useful when you have to get more than one cls file definition (i.e a master document is a book and a child document is an article and so on), but when you are writting just an article the editors often offer you a cls file already (ElSevier for example). I propose one of two solutions: isn't a way to get layout files automatically from cls file definitions, if this is too overwhelming I can handle with just the basics and then add manually the rest for the first glance (a python script would be nice, suggested name "cls2layout.py"); second solution could be that lyx can actually read the cls file as an option to the layout file, this is not in lyx philosophy but why not? It would be helpful in some specific cases like this which is used a lot. Probably this is solved someway or someone has already found a solution so it would be nice if it is published here, I'm open at suggestions. -- Regards ~-o--{____}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165
Re: Making a tab read-only?
El 26/06/2012 07:24 a.m., Kornel Benko escribió: And how about the command buffer-toggle-read-only ? You may enter the command in the lyx-command line, or bind it to some key. Kornel I have found a solution copy from Lyx_directory/Resources/ui/stdmenus.inc to userdir/personalLyx/ui add the following line wherever you want inside the file menu in the copied file Item "Make Read Only" "buffer-toggle-read-only" voilá, it works! Thanks to Kornel for the hint -- Greetings ~-o--{____}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165
Re: Making a tab read-only?
El 26/06/2012 07:03 a.m., Roger Burton West escribió: On Tue, Jun 26, 2012 at 02:43:51PM +0200, Rainer M Krug wrote: My Problem: I would like to avoid that I accidentally change something in the other documents and save it. Failing an in-program solution, how about marking the _file_ read-only? (chmod a-w filename) Oh, but this is a linux-only solution, and definitely not for user who wants to write without knowing too much of technical details, otherwise we will use plain latex instead of lyx. ;) A simple menu entry won't hurt anyone and will be helpful -- greetings ~-o--{}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165
Re: Inserting Citations
Dear William If you doesn't see any grey rectangle mentioning BibTeX bibliography then you have not inserted it yet, so you cannot expect to have references when you try to add a citation. So first of all you must insert your BibTeX Bibliography into your project Alex
Re: Lyx bibliography
El 15/05/2012 06:23 p.m., Daniel escribió: Hi, I am writing my PhD thesis in Lyx and I'm using Jabref to manage my references and produce the .bib file. When I compile my file Lyx correctly produces the bibliography at the end of the document but the citations are messed up. I get things like "l [e,?]" where the citation should go (but the corresponding reference in the bibliography is there. Any ideas on how to fix this would be greatly appreciated. Daniel Hi Daniel! I strongly recommend you Andrew Parsloe bib importer to LyX, on which you can reedit in LyX your bib file erasing all unnecessary characters. You will found this very useful. There is also a posibility that your citation style is not what you espect, you could check that by right clicking the cite itself. Alex
conflict between LyX and Gimp for the use of python
Hello LyXers! I have a system with windows 7 which have previously installed python 2.6 for the use of GIMP, this sofware do use python for a lot of things so I cannot remove it from the system. I want to install LyX in this system but when I do that all goes wrong because all the python scripts refers to the python 2.6 already installed instead of the correct python inside LyX. Is there a way to tell LyX that he must use the python located inside it and not the python of the system? I cannot found anything such a "python executable location" variable neither in LyX nor in registry. My problem goes further than just converters, which behaves wrong in almost all the cases, it refers to the entire LyX system which use a lot of python scripts and there are a lot of errors when for example reconfiguring. LyX 2.0.0, GIMP 2.6.11, python 2.6 in the system, windows 7... if you need anything else to answer let me know. Greetings ~-o--{____}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165
Re: Embedding arrows & stuff
El 10/05/2012 09:02 a.m., Paul A. Rubin escribió: Guenter Milde users.sf.net> writes: It would be nice, if a math inset would behave like a float, minipage or branch: if you go to the first position inside the inset and press backspace, the inset is dissolved and the content inlined. This would give a consistent user experience. I'll second that motion. Paul And when it is inlined you go to the first position, press TAB and the inline should go back to inset. The reverse case would be great too! Alex
Re: color url ONLY
El 10/05/2012 08:33 a.m., Paul A. Rubin escribió: UD gmail.com> writes: Is there a way to color (and make clickable) only URLs, but not citations? When I use the Document/Settings/PDF properties, both URLs and citations are colored and are clickable. Thanks, Ehud Kaplan Assuming your text is black, you can add 'citecolor=black' as an additional option for hyperref. Citations will still be clickable, but they'll be "colored" black. Paul I think Mr. Ehud means to have the citation in one color i.e black as you suppose, but the URL in another color i.e blue as in: some authors, title, publication, available at _http://somewhere.com_ I agree that the full citation should be clickable. Alex
Re: References appear with
Do you mean the setting in Documents> Settings> Language? Mine is set to English. Then select the reference section and check the language, the best solution should be to look at the lyx file into a text editor such as notepad++ (win2) or gedit (linux) and search for \language, you must have declared this only once in the entire document otherwise erase every other appearance than the first.
Re: References appear with "et" instead of "and" between authors
El 07/05/2012 01:41 p.m., ChiPro escribió: Hi all, I'm using BibDesk as my reference package in Lyx. I have set the Lyx options (Documents> Settings) to "Natbib: Author-year" and the citation style to "[author1] and [author2] ([year])". Unfortunately, when I produce my PDF file, the reference appears as [Author1] et [Author2] (2000) instead of the desired [Author1] and [Author2] (2000). Any help would be appreciated. Thanks, CP You have your document language in French? If is the case change it to English Alex
Re: Layout for changing font within a paragraph?
El 04/05/2012 11:06 a.m., James Sutherland escribió: LyX users, I am trying to create a "local layout" that allows me to change the font. This is what I have so far: Format 35 Style Revision CopyStyle Standard LatexName textcolor{red} LatexType Command Font Color Red EndFont End The problem is that this applies to an entire paragraph. How do I apply this to only a few words/sentences within a paragraph? Thanks, James I don't see the point for doing this. Is it not easier to select the text you want to change, then press the style button (the "ab" one) and finally choose whatever you want? I mean I can change font family, color , style etc Alex
Re: Using LyX to edit & organise bibliographies
El 20/04/2012 08:22 a.m., Manolo Martínez escribió: On 04/20/12 at 09:57am, Alex Vergara Gil wrote: El 20/04/2012 07:46 a.m., PhilipPirrip escribió: On 04/20/2012 04:30 PM, Alex Vergara Gil wrote: why should I move out of LyX to edit my Bib files? Because, as I said, you *don't* need to edit your bib files. You can have a program (if your OS is multitasking) to make bib database for you, by downloading all the data from the internet. Do you browse the web also from LyX, or you have to move out of it perhaps? Ok now I see your point! Nevertheless the fact that you must be available to have your references from internet doesn't seem to be always right for me, in several cases what you have are the articles because you have the magazine or the authors sent them to you, and then your approach isn't good at all. This is why LyX should have a reference manager. However if you get all your article from internet then you can use your approach. It's a matter of users choice and possibilities, and LyX should fit to every user need. I think Philip's point was simply that there are many tasks you don't use LyX for. Browsing the web or checking your email are two of them; managing your bibtex files could be another. I might have missed the beginning of this thread but, when you have used JabRef or some such, what have you found missing? Manolo This is the first time I've heard about JabRef, but if it is that nice then it should be integrated into LyX as Gnumeric is
Re: Using LyX to edit & organise bibliographies
El 20/04/2012 08:18 a.m., Liviu Andronic escribió: On Fri, Apr 20, 2012 at 5:57 PM, Alex Vergara Gil wrote: at all. This is why LyX should have a reference manager. However if you get Perhaps it _should_ not. LyX has evolved, in the spirit of Linux apps development, to be very flexible and interact with a myriad of 3rd party tools (LaTeX, docbook, HTML, Inkscape, various converters, Sweave, Gnumeric, etc.), and thankfully so. It does not try to do everything and all, as monolithic Windows programs usually do. Instead, it delegates many low-level tasks to external programs. If you have a preference for a reference manager in particular, then use it to manage your references: LyX will automatically pick up the changes. In this point I am not fully agree. LyX integrates Gnumeric spreadsheets into it, can edit LaTeX command directly and so on, off course you must have the external programs to do this but they are integrated with LyX. So why not to integrate a Bibliography manager also? It may be nice, perhaps, for LyX to provide an 'Edit BibTeX refs' button that would allow to easily launch your preferred reference manager on your ref library. But that is a different matter. I'm ok with this last point, but actually lyx doesn't have this. So "it may be nice" yes. of users choice and possibilities, and LyX should fit to every user need. Most certainly not. LyX is a document processor, and as such provides an efficient environment to author documents. It also provides facilities to use references. However, it is not in the reference management business; if you want to manage your references, use a specialized app (or a text editor). But is not LyX a "text editor" or a "specialized app" also? or I am missing something. Regards Liviu
Re: LyX on Ubuntu Precise (12.04): big download size!
El 20/04/2012 01:34 a.m., El Merehbi, Ibrahim escribió: I do have a cxn, but I am writing a document with someone& I'd like to install it for him so we can work on the editing together, but he doesn't have a cxn (weird as it may be) + to save time in installing. And yes, that's what I was thinking; I just wanted to know how to find what packages (dependencies incl. of course) I needed& where to find them (for Ubuntu!) The best approach for ubuntu users which doesn't have a cxn is to create a local repository with debmirror in a place that you have cxn and then transport it to the place where you doesn't have the cxn. This is tedious but is the best way to do it. Alex
Re: Using LyX to edit & organise bibliographies
El 20/04/2012 07:46 a.m., PhilipPirrip escribió: On 04/20/2012 04:30 PM, Alex Vergara Gil wrote: why should I move out of LyX to edit my Bib files? Because, as I said, you *don't* need to edit your bib files. You can have a program (if your OS is multitasking) to make bib database for you, by downloading all the data from the internet. Do you browse the web also from LyX, or you have to move out of it perhaps? Ok now I see your point! Nevertheless the fact that you must be available to have your references from internet doesn't seem to be always right for me, in several cases what you have are the articles because you have the magazine or the authors sent them to you, and then your approach isn't good at all. This is why LyX should have a reference manager. However if you get all your article from internet then you can use your approach. It's a matter of users choice and possibilities, and LyX should fit to every user need.
Re: Using LyX to edit & organise bibliographies
El 18/04/2012 03:03 a.m., PhilipPirrip escribió: On 04/17/2012 04:23 PM, Alex Vergara Gil wrote: Secondly, why should I move out of LyX to edit my Bib files? My question was, actually, why should you edit your bib files at all. Let the reference manager produce them for you. And then let LaTeX do all the formatting. By "reference manager" you mean a software out of LyX? if so then my question remains: why should I move out of LyX to edit my Bib files? LyX should and must have a reference manager, it should at least integrate some one. Mr Parsloe's work can be considered a first step into this direction and is a very good one, what remains is to make it more usable Alex
Re: Using LyX to edit & organise bibliographies
El 17/04/2012 03:39 a.m., Andrew Parsloe escribió: On 17/04/2012 8:43 p.m., PhilipPirrip wrote: Excuse me for not trying what you've done, but I have to ask first: why do you think this is better than using Mendeley, for instance, or some other bibliography management software? Tha answer to this is easy, because LyX can actually do it, is just a matter of correct implementation. Secondly, why should I move out of LyX to edit my Bib files? Is not LyX a full text editor? Right now it isn't, because of some deficiencies like this that can be solved. I don't (not that I've ever tried any bibliography manager) but it is better than editing a bibliography in a text editor, which is what I used before. So why don't I get Mendeley (or whatever)? There are many answers to that: life is short and there are lots of things I want to learn other than new software; I already know how to use LyX, I don't know how to use Mendeley; my needs in this area are likely to be sporadic at most -- plenty of time between uses to forget how to use unfamiliar software. I'm fully agree with you The same kind of issue arose last year in relation to spreadsheet capabilities for LyX. I've spent considerable effort getting the LaTeX spreadtab package to work harmoniously with LyX. It means now that on those sporadic occasions when I have columns of figures to add up (for the accountant for instance), I can stay with familiar software -- LyX -- to do something that simply doesn't require the heavy machinery of Gnumeric, and trying to remember how to use it. (The struggle -- even anguish? -- of the LyX developers getting to grips with git has been fascinating to observe.) Once one has moved out of the professional or academic environment, the need for professional software in many secondary fields evaporates. All one needs is something with which one is familiar and that will do an adequate job on those sporadic occasions when it is called for. And this is the reason why most scientist, authors and redactors want something like LyX, because it allows you to focus in content and not in the edition. The same applies for most softwares. A bit of a rant, I know, but it touches a sensitive spot with me (but thanks for the question). Andrew
Re: Using LyX to edit & organise bibliographies
El 16/04/2012 04:49 p.m., Andrew Parsloe escribió: On 17/04/2012 7:21 a.m., Alex Vergara Gil wrote: > I want to personally congratulate Mr Andrew Parsloe for this piece of > art. It's outstanding and is what I'm looking for a few days ago, there > are off course some issues I want to discuss: > > 1. when you import from BibTeX the coding as \textsc{} or \'{} are > imported as text, I know this is a first approximation but it will be > desirable that all the coding are imported as their meaning (to > acomplish LyX phylosophy) and then exported again as coding. I mean when > you have an accronym ABCD then the exported line should be \textsc{ABCD} > and when you have accents like ó then the exported character should be > \'{o}, and so on. Thanks for the kind comments. I did wonder about importing the bib files as LaTeX files so that commands like \textsc{blahblah} meant blahblah was displayed as small caps in LyX, and correspondingly, exporting as LaTeX so that the reverse happened, but it seemed *much* more complicated: some formatting, like the small caps, to be translated into LaTeX, some formatting, like the list environments used for the overall display of the records, not to be translated into LaTeX. A few thoughts of this kind convinced me that converting to and from *text* rather than LaTeX was the way to go (i.e. was within my technical competence). Ok, but is still posible to do, perhaps in the future someone can. > 2. It will be desirable to have the standard sections of a bibliography > in the definitions, so when you add a new reference you must just only > fill the sections such as author, journal, title, and so on. > If you mean having a blank record available like @book{, author = {}, title = {}, ... Yes this is what I meant then you could create one in a yellow note (or a deactivated branch) and simply copy and paste as required. In biblatex there are so many possible fields that having a blank record containing all possibilities would be a hindrance rather than a help. I found it helpful to associate a shortcut key (Ctrl+=) with Yes, there are many posibilities but there are also some of them that are mandatory (author, title, year, for articles journal, for books editor, and so on). I will try on yellow notes and I tell you later what I get. command-sequence self-insert = {},; char-left; char-left; which inserts ={}, and puts the cursor between the braces, waiting for stuff to be typed. Andrew > my best regards > ~-o--{}--o-~ > Alex Vergara Gil
Re: Using LyX to edit & organise bibliographies
I'm still trying Mr Andrew Parsloe's work and there are to new thing I have discovered 3. The math insets such as $^{90}$ are imported as text when they should be imported as math, see point 1. 4. The coding \textemdash is imported as text when it should be imported as -- and the -- characters should be exported as \textemdash, this is a large dash Oh! I'm using MS Windows, MikTeX 2.8 and LyX 2.0.0. best regards ~-o--{____}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 16/04/2012 01:21 p.m., Alex Vergara Gil escribió: I want to personally congratulate Mr Andrew Parsloe for this piece of art. It's outstanding and is what I'm looking for a few days ago, there are off course some issues I want to discuss: 1. when you import from BibTeX the coding as \textsc{} or \'{} are imported as text, I know this is a first approximation but it will be desirable that all the coding are imported as their meaning (to acomplish LyX phylosophy) and then exported again as coding. I mean when you have an accronym ABCD then the exported line should be \textsc{ABCD} and when you have accents like ó then the exported character should be \'{o}, and so on. 2. It will be desirable to have the standard sections of a bibliography in the definitions, so when you add a new reference you must just only fill the sections such as author, journal, title, and so on. my best regards ~-o--{}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 16/04/2012 04:19 a.m., Andrew Parsloe escribió: A few months ago I finished working on a project involving a 289 item bibliography. All the work on the bibliography was done in a text editor. It irritated me that I couldn't use LyX -- or so I thought at the time. Now, without the pressure of doing the work, I've had time to think about it, and to tinker, and I find that LyX is an excellent tool for creating, editing and organising bibliographies. You can do all kinds of *cosmetic* things to the bibliography in LyX to make it more readable and navigable, but these are stripped from the file on plain text export, so that they don't interfere with the use of the *.bib file by biblatex (or BibTeX). I've attached 6 files: bibliography.layout, an explanatory document EditingBibsInLyX.lyx, two Python scripts txt2bib.py and bib2lyx.py, a pretty picture, BibRecords.png showing what it's all about, and a module, bibliography.module, for viewing selected records in a biblatex style. The layout file redefines some sectional styles (some in a major way) to enable the initial lines or entry types of records (@book, @report, @collection etc.) to show up in the Outline window, enabling easy navigation throughout the bibliography. The up and down arrows at the bottom of the Outline window allow the easy repositioning of records. Part and Part* divide the bibliography into major divisions and allow blocks of records to be moved up or down. The Labeling and Description list environments are lightly redefined to style data types (things like author = {foo}, title = {blah},) for easy readability, by indentation (Labeling) or colour (Description). BibRecords.png shows the results. The Python script txt2bib.py does the plain text export, changes the extension from .txt to .bib and does some tidying up. To work, this script needs a new format to be defined, Plain text (bib) -- see EditingBibsInLyX.lyx. In the other direction bib2lyx.py imports a bib file into LyX 2.0.3 and formats it `prettily'. (These are the first two Python scripts I've written; I welcome suggested improvements. I work in Windows so there may be Linux or Mac things that need doing.) Other advantages of editing bibliographies in LyX are yellow notes, which allow annotations and reminders to be added exactly where required without consequence for the exported bib file; branches, which allow the *selective* export of records; and master and child documents which allow the large-scale organising of bibliographies. Whereas a pdf is `prettier' than the LyX file from which it is derived, for a bib file it is the other way around, but otherwise the relationship is much the same: you work on the LyX file and shouldn't have to touch the bib file any more you do the pdf. Andrew
Re: Using LyX to edit & organise bibliographies
I want to personally congratulate Mr Andrew Parsloe for this piece of art. It's outstanding and is what I'm looking for a few days ago, there are off course some issues I want to discuss: 1. when you import from BibTeX the coding as \textsc{} or \'{} are imported as text, I know this is a first approximation but it will be desirable that all the coding are imported as their meaning (to acomplish LyX phylosophy) and then exported again as coding. I mean when you have an accronym ABCD then the exported line should be \textsc{ABCD} and when you have accents like ó then the exported character should be \'{o}, and so on. 2. It will be desirable to have the standard sections of a bibliography in the definitions, so when you add a new reference you must just only fill the sections such as author, journal, title, and so on. my best regards ~-o--{____}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 20 No. 4113 e/ 18A y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 16/04/2012 04:19 a.m., Andrew Parsloe escribió: A few months ago I finished working on a project involving a 289 item bibliography. All the work on the bibliography was done in a text editor. It irritated me that I couldn't use LyX -- or so I thought at the time. Now, without the pressure of doing the work, I've had time to think about it, and to tinker, and I find that LyX is an excellent tool for creating, editing and organising bibliographies. You can do all kinds of *cosmetic* things to the bibliography in LyX to make it more readable and navigable, but these are stripped from the file on plain text export, so that they don't interfere with the use of the *.bib file by biblatex (or BibTeX). I've attached 6 files: bibliography.layout, an explanatory document EditingBibsInLyX.lyx, two Python scripts txt2bib.py and bib2lyx.py, a pretty picture, BibRecords.png showing what it's all about, and a module, bibliography.module, for viewing selected records in a biblatex style. The layout file redefines some sectional styles (some in a major way) to enable the initial lines or entry types of records (@book, @report, @collection etc.) to show up in the Outline window, enabling easy navigation throughout the bibliography. The up and down arrows at the bottom of the Outline window allow the easy repositioning of records. Part and Part* divide the bibliography into major divisions and allow blocks of records to be moved up or down. The Labeling and Description list environments are lightly redefined to style data types (things like author = {foo}, title = {blah},) for easy readability, by indentation (Labeling) or colour (Description). BibRecords.png shows the results. The Python script txt2bib.py does the plain text export, changes the extension from .txt to .bib and does some tidying up. To work, this script needs a new format to be defined, Plain text (bib) -- see EditingBibsInLyX.lyx. In the other direction bib2lyx.py imports a bib file into LyX 2.0.3 and formats it `prettily'. (These are the first two Python scripts I've written; I welcome suggested improvements. I work in Windows so there may be Linux or Mac things that need doing.) Other advantages of editing bibliographies in LyX are yellow notes, which allow annotations and reminders to be added exactly where required without consequence for the exported bib file; branches, which allow the *selective* export of records; and master and child documents which allow the large-scale organising of bibliographies. Whereas a pdf is `prettier' than the LyX file from which it is derived, for a bib file it is the other way around, but otherwise the relationship is much the same: you work on the LyX file and shouldn't have to touch the bib file any more you do the pdf. Andrew
Re: Thesis Layout for LyX
they also look very nice for reports of some complexity, manuals, ... so yeah thesis layouts are very highly appreciated!! Saludos ~-o--{}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 18A No. 4113 e/ 41 y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 12/04/2012 12:39 p.m., Julio Rojas escribió: They look nice for books? - Julio Rojas jcredbe...@gmail.com <mailto:jcredbe...@gmail.com> On Thu, Apr 12, 2012 at 8:34 PM, Steve Litt <mailto:sl...@troubleshooters.com>> wrote: On Thu, 12 Apr 2012 13:38:59 +0200 PhilipPirrip mailto:p...@net.hr>> wrote: > On 04/12/2012 07:29 AM, jdre...@berkeley.edu <mailto:jdre...@berkeley.edu> wrote: > > Hello- > > > > I have a thesis layout that I would like to contribute to the > > http://wiki.lyx.org/Layouts/Layouts page. What is the best way to > > go about this? > > You can either edit the page (there's a link at the top of the page), > or submit your template to http://www.thesis-template.com/ where some > other templates reside. > Are there conditions under which a non-academic might find a Thesis layout handy? Thanks SteveT
Re: Open second LyX window (equivalent to split window)
El 12/04/2012 07:08 a.m., Rainer M Krug escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/04/12 16:39, Alex Vergara Gil wrote: Dear developers Regarding this topic I have an enhancement request: I can do open a new window and edit the same article in both windows at the same time but for that I must reload the article, why does this is not done automatically? This is not trivial for the newcomers and if it hasn't see the light here then I wouldn't even know if it is possible at all. At least you can add an option or a hint. If you open the window via he menue File -> New Window , you don't have to. All edits in the one are also in the second. Yes, one can edit in two windows the same article without any problem, what you say is true, but when you do File -> New Window, LyX just open an empty window when it should open the same article in the new window, or at least give an option to do that. You must then reopen the article in the new empty window to do what we want. This is not a bug, is an enhacement request. Cheers, Rainer Keep the good work! Best regards ~-o--{____}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 18A No. 4113 e/ 41 y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 11/04/2012 07:45 a.m., Rainer M Krug escribió: On 11/04/12 15:39, Richard Heck wrote: On 04/11/2012 08:01 AM, Rainer M Krug wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/04/12 13:56, Richard Heck wrote: On 04/11/2012 07:37 AM, Rainer M Krug wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi is it possible to hav ing the same document open in two windows, instead of splitting the document in one window? I know I could open a second instance, but the risk of editing accidentally in both is always there... Yes. Just open a new window, and re-open the document. That's what I am doing right now - but then I am open to edits in both and conflicts when saving. At the moment I set the background of one LyX instance to red to remind me: DO NOT EDIT! Not a new instance. A new *window*, via File>New Window. Try it. Oh no - I should have opened my eyes this morning.. That is exactly what I was looking for... shame on me. Cheers and thanks a lot, Rainer Richard -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+G0+cACgkQoYgNqgF2egprRQCfdqe8xvBYAABKC7aLLVLn/zWU F8YAoIReBchP1bh7bX/H1bmO7uvi5AYq =zIwd -END PGP SIGNATURE-
Re: Open second LyX window (equivalent to split window)
Dear developers Regarding this topic I have an enhancement request: I can do open a new window and edit the same article in both windows at the same time but for that I must reload the article, why does this is not done automatically? This is not trivial for the newcomers and if it hasn't see the light here then I wouldn't even know if it is possible at all. At least you can add an option or a hint. Keep the good work! Best regards ~-o--{____}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle 18A No. 4113 e/ 41 y 47 Playa La Habana, Cuba A.P.6195 C.P.10600 Telf: (537)6824892, (537)6821803 Fax: (537)2030165 El 11/04/2012 07:45 a.m., Rainer M Krug escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/04/12 15:39, Richard Heck wrote: On 04/11/2012 08:01 AM, Rainer M Krug wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/04/12 13:56, Richard Heck wrote: On 04/11/2012 07:37 AM, Rainer M Krug wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi is it possible to hav ing the same document open in two windows, instead of splitting the document in one window? I know I could open a second instance, but the risk of editing accidentally in both is always there... Yes. Just open a new window, and re-open the document. That's what I am doing right now - but then I am open to edits in both and conflicts when saving. At the moment I set the background of one LyX instance to red to remind me: DO NOT EDIT! Not a new instance. A new *window*, via File>New Window. Try it. Oh no - I should have opened my eyes this morning.. That is exactly what I was looking for... shame on me. Cheers and thanks a lot, Rainer Richard - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+Fit4ACgkQoYgNqgF2egqlUQCeJBcNE+EqfSY9TuNAeYWpSVtO IN8An1IDhcHXCZQV2hajXZihEh22nRaZ =pSJO -END PGP SIGNATURE-
Re: Article layout for plos?
El 26/03/2012 10:11 a.m., Richard Heck escribió: On 03/26/2012 10:48 AM, Alex Vergara Gil wrote: El 23/03/2012 12:33 a.m., Niklas Huldén escribió: On 22.3.2012 20:36, David L. Johnson wrote: On 03/22/2012 02:08 PM, Alex Vergara Gil wrote: I have an objection to the use of bibitems in LyX: If you use BibTeX you can choose the bibliographic standard such as Vancouver, etc, besides the BibTeX sorts bibliography items in the required order acordingly to the standard; with LyX's bibitems you simply cannot do this and is like turning back to MS Office. Is this a bug? No, it's not a bug. Perhaps it's old-fashioned, but I've never seen the need to bother with bibtex. Most of my papers have maybe 5-10 references, that is certainly easy enough to do "by hand". The bibitems are also extremely convenient to use if you have to cite more odd sources like interviews from certain archives and so on. I usually have two environments for my sources; first the oddballs from different archives as bibitems, followed by the literature references as a BibTeX bibliography. Both can be seen in the LyX citing menus. Niklas Huldén Imagine now that you have finished your work, but then your editor tells you that he wants the bibliography in Vancouver format, but you have write it in consecutive order of appearance format, then you must re-sort one by one all the cites, imagine now that your work is a book with 1e3 cites... You cannot educate all the editors in the planet, so they agree from what they ask in the beginning and what they ask for your final work (in thet period his/her taste might have changed, or the publisher might change the requirements, etc) I simply cannot imagine doing this right now with LyX without BibTeX. My objective with this discussion is that BibTex must be integrated into LyX in a way it is transparent for editors. Remember, as a general rule editors doesn't want more than one file to read or to compile. As an advantage we gain is to have the behaviour you mentioned but now with the power of BibTeX to re-sort and re-format cites. So the way to get what you want most easily, it seems to me, is to use BibTeX from the beginning, and then when you need to send the MS to the editor, you export to LaTeX and run the script discussed here: http://www.lyx.org/trac/ticket/4624 Ok, this is definitively what I meant, :) , thanks to Richard for this script, it is included into my LyX 2.0.0 by default but it is not setted up by default so I don't knew about it existence, my bad. I was trying to run it but up to now I have no luck. I followed these steps 1. I create a ltxbbl file format with the "document" and "appear in export" marks setted 2. I define a conversor from LaTeX to ltxbbl with the "needaux" flag 3. I run the conversor in my file but, although it gave me no error, it doesn't integrate the bibtex into the latex file I have read the script and it looks for a bbl file, what I have is a bib file. Did I must define a conversor for bib->bbl too??? Is not this already done by bibtex? How must I proceed now? which is included with LyX. As also mentioned there, you can configure an export format so that the script will run automatically. What it does is embed the contents of the bbl file into the exported document in place of the BibTeX stuff. If you reimport the generated file into LyX, these will now appear as bibitems. Of course, you can undo the process later, if you wish, by deleting all of them and re-inserting the BibTeX stuff. Building what is effectively a BibTeX editor into LyX does not look worth the effort to me, given that one can do what I just described. Richard
Re: References out of order
El 26/03/2012 05:36 a.m., Chris Hennick escribió: Hi all, I'm using the IEEEtran template. Since the numbered references aren't alphabetical in the bibliography, I assume they're intended to be in order of first citation. But sometimes they aren't, if the citation order changes during editing. How do I re-sort and renumber the references when necessary? Sincerely, Chris Hennick Trent University Peterborough, ON, Canada http://softwetware.blogspot.com/ Hi Lyxers: This is the main reason why I still use BibTeX, it do all this job with just one click. See my other discussion already active Alex
Re: Article layout for plos?
El 23/03/2012 12:33 a.m., Niklas Huldén escribió: On 22.3.2012 20:36, David L. Johnson wrote: On 03/22/2012 02:08 PM, Alex Vergara Gil wrote: I have an objection to the use of bibitems in LyX: If you use BibTeX you can choose the bibliographic standard such as Vancouver, etc, besides the BibTeX sorts bibliography items in the required order acordingly to the standard; with LyX's bibitems you simply cannot do this and is like turning back to MS Office. Is this a bug? No, it's not a bug. Perhaps it's old-fashioned, but I've never seen the need to bother with bibtex. Most of my papers have maybe 5-10 references, that is certainly easy enough to do "by hand". The bibitems are also extremely convenient to use if you have to cite more odd sources like interviews from certain archives and so on. I usually have two environments for my sources; first the oddballs from different archives as bibitems, followed by the literature references as a BibTeX bibliography. Both can be seen in the LyX citing menus. Niklas Huldén Imagine now that you have finished your work, but then your editor tells you that he wants the bibliography in Vancouver format, but you have write it in consecutive order of appearance format, then you must re-sort one by one all the cites, imagine now that your work is a book with 1e3 cites... You cannot educate all the editors in the planet, so they agree from what they ask in the beginning and what they ask for your final work (in thet period his/her taste might have changed, or the publisher might change the requirements, etc) I simply cannot imagine doing this right now with LyX without BibTeX. My objective with this discussion is that BibTex must be integrated into LyX in a way it is transparent for editors. Remember, as a general rule editors doesn't want more than one file to read or to compile. As an advantage we gain is to have the behaviour you mentioned but now with the power of BibTeX to re-sort and re-format cites. Cheers Alex
Re: Bibliography handling by LyX
Dear Richard Sorry for the weekend delay, comments below. Saludos ~-o--{}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle No. 4113 e/ 41 y 47 Playa, C de la Habana C.P.11300 La Habana, Cuba Dirección postal A.P.6195 C.P.10600 Telf: (537)6829681, (537)6821803 Fax: (537)2030165 El 22/03/2012 04:38 p.m., Richard Heck escribió: On 03/22/2012 06:51 PM, Alex Vergara Gil wrote: El 22/03/2012 02:50 p.m., Richard Heck escribió: On 03/22/2012 04:02 PM, Alex Vergara Gil wrote: El 22/03/2012 12:36 p.m., David L. Johnson escribió: On 03/22/2012 02:08 PM, Alex Vergara Gil wrote: I have an objection to the use of bibitems in LyX: If you use BibTeX you can choose the bibliographic standard such as Vancouver, etc, besides the BibTeX sorts bibliography items in the required order acordingly to the standard; with LyX's bibitems you simply cannot do this and is like turning back to MS Office. Is this a bug? No, it's not a bug. Perhaps it's old-fashioned, but I've never seen the need to bother with bibtex. Most of my papers have maybe 5-10 references, that is certainly easy enough to do "by hand". When I wrote my MSc thesis I must handled with 80 citations in a 100 page piece of work, imagine sort them one by one and changing from order of apearance to alphabetical just to adjust your work to the requirements of the institute!!! It is indeed old fashioned, you must tell the software what kind of bibliography you need and it must automatically reshape and sort it. BibTeX does this work, why LyX can't? Sorry, I don't understand. Of course you can use BibTeX with LyX. Or you can just use bibitems. It's up to you. If you use bibitems, though, then you have to sort them. Why? Because Off course I can use BibTeX with LyX, but to generalize the use of it as a redaction system editors will prefer, it is better to have all the main things in a solely archive, not figures off course, but the bibliography... Hopefully for 2.1, we are going to have a "LyX bundle" that will solve all such problems, including figures, to *make it easy to exchange data with others*. Right now, we have the ability to export a LyX archive that will bundle all these things, too. This is the main purpose of this discusion As initial step I would like to recommend developers to include an option to export bibitems to BibTeX, and a final option should be the use of BibTeX to produce the bibliography from bibitems. This is not too hard to do since most of the work is already done! To do this, you'd have to be able to figure out who the author is, what the title is, etc, etc, etc. It is not going to be possible to figure that out in any reliable way. By using the same algoritms that are already used for the modernCV example (separators }{) If this means writing everything as ERT, it doesn't look good. I can imagine making LyX's internal storage of bibitems look more like BibTeX, then creating a BibTeX file on the fly for compilation, etc. There's already a bug about this, partly, to make bibitems easier to use with natbib. But it doesn't make much sense to me to go much farther. BibTeX isn't that hard to use, and one can exchange files using LyX's existing archive format, or just exchange two files. It isn't that hard. Richard No, you missunderstand me, in the modernCV example you must just use ERT for the }{ separator, the rest is normal text, internally you should make the assumption that for example the first segment is ID, the second are authors, and so on. For a more general bibliography then you should create new bibliography kinds (like the modernCV list, language, computer, etc) such as book, article, etc with different representations. Now about BibTeX, I am 100% with you, it is not hard at all, but try to tell this to editors. Unless we convince editors to accept more than one file we are doomed to export our work to LaTeX, which is not the objective of LyX at all.
Re: Bibliography handling by LyX
El 22/03/2012 02:50 p.m., Richard Heck escribió: On 03/22/2012 04:02 PM, Alex Vergara Gil wrote: El 22/03/2012 12:36 p.m., David L. Johnson escribió: On 03/22/2012 02:08 PM, Alex Vergara Gil wrote: I have an objection to the use of bibitems in LyX: If you use BibTeX you can choose the bibliographic standard such as Vancouver, etc, besides the BibTeX sorts bibliography items in the required order acordingly to the standard; with LyX's bibitems you simply cannot do this and is like turning back to MS Office. Is this a bug? No, it's not a bug. Perhaps it's old-fashioned, but I've never seen the need to bother with bibtex. Most of my papers have maybe 5-10 references, that is certainly easy enough to do "by hand". When I wrote my MSc thesis I must handled with 80 citations in a 100 page piece of work, imagine sort them one by one and changing from order of apearance to alphabetical just to adjust your work to the requirements of the institute!!! It is indeed old fashioned, you must tell the software what kind of bibliography you need and it must automatically reshape and sort it. BibTeX does this work, why LyX can't? Sorry, I don't understand. Of course you can use BibTeX with LyX. Or you can just use bibitems. It's up to you. If you use bibitems, though, then you have to sort them. Why? Because Off course I can use BibTeX with LyX, but to generalize the use of it as a redaction system editors will prefer, it is better to have all the main things in a solely archive, not figures off course, but the bibliography... As initial step I would like to recommend developers to include an option to export bibitems to BibTeX, and a final option should be the use of BibTeX to produce the bibliography from bibitems. This is not too hard to do since most of the work is already done! To do this, you'd have to be able to figure out who the author is, what the title is, etc, etc, etc. It is not going to be possible to figure that out in any reliable way. Richard By using the same algoritms that are already used for the modernCV example (separators }{) Alex
Bibliography handling by LyX (was: Article layout for plos?)
El 22/03/2012 12:36 p.m., David L. Johnson escribio': On 03/22/2012 02:08 PM, Alex Vergara Gil wrote: I have an objection to the use of bibitems in LyX: If you use BibTeX you can choose the bibliographic standard such as Vancouver, etc, besides the BibTeX sorts bibliography items in the required order acordingly to the standard; with LyX's bibitems you simply cannot do this and is like turning back to MS Office. Is this a bug? No, it's not a bug. Perhaps it's old-fashioned, but I've never seen the need to bother with bibtex. Most of my papers have maybe 5-10 references, that is certainly easy enough to do "by hand". When I wrote my MSc thesis I must handled with 80 citations in a 100 page piece of work, imagine sort them one by one and changing from order of apearance to alphabetical just to adjust your work to the requirements of the institute!!! It is indeed old fashioned, you must tell the software what kind of bibliography you need and it must automatically reshape and sort it. BibTeX does this work, why LyX can't? As initial step I would like to recommend developers to include an option to export bibitems to BibTeX, and a final option should be the use of BibTeX to produce the bibliography from bibitems. This is not too hard to do since most of the work is already done! -- David L. Johnson Anyone who is capable of getting themselves made President should on no account be allowed to do the job. -- Douglas Adams Saludos ~-o--{}--o-~ Alex Vergara Gil MSc. Fi'sica Nuclear Laboratorio Secundario de Calibracio'n Dosime'trica Centro de Proteccio'n e Higiene de las Radiaciones Calle No. 4113 e/ 41 y 47 Playa, C de la Habana C.P.11300 La Habana, Cuba Direccio'n postal A.P.6195 C.P.10600 Telf: (537)6829681, (537)6821803 Fax: (537)2030165
Re: Article layout for plos?
I have an objection to the use of bibitems in LyX: If you use BibTeX you can choose the bibliographic standard such as Vancouver, etc, besides the BibTeX sorts bibliography items in the required order acordingly to the standard; with LyX's bibitems you simply cannot do this and is like turning back to MS Office. Is this a bug? does some other guy hasn't see this behaviour of the bibliography environment? For me it is clearly a bug, but that is just my opinion. So I only use BibTeX right now. Saludos ~-o--{____}--o-~ Alex Vergara Gil MSc. Fi'sica Nuclear Laboratorio Secundario de Calibracio'n Dosime'trica Centro de Proteccio'n e Higiene de las Radiaciones Calle No. 4113 e/ 41 y 47 Playa, C de la Habana C.P.11300 La Habana, Cuba Direccio'n postal A.P.6195 C.P.10600 Telf: (537)6829681, (537)6821803 Fax: (537)2030165 El 22/03/2012 10:59 a.m., Richard Heck escribio': On 03/22/2012 12:53 PM, UD wrote: -/-If journals want LaTeX, not LyX, then you have to export to LaTeX./ Some publishers are willing to accept Lyx instead of Latex (MIT press, for instance). If authors knew that they have to handle Latex in addition to Lyx it might appear to some (many?) as too much to handle. As I said, IF a journal wants LaTeX, then you just export to LaTeX. No other special handling is required, except possibly embedding bibliography information (see below). -/-I don't understand. They don't have to be in separate files. You can just use the bibliography environment if you want. / If I insert/list/bibliography I just get a link to the bibtex database, and the actual citation entries are not part of the file that I can send to a publisher or a colleague. There is a bibliography style, in the same place you choose Section, Chapter, etc, so you don't have to use BibTeX. We keep meaning to finish this bugfix that would automatically include the contents of the BBL file on export. There is a simple script that will do so attached to that bug, but getting it to work in the general case is hard. Richard
Re: How to create a more than one page long table
Thanks Ignacio I will do it but I partially solve the problem by unfloating the table, what happens now is that I cannot referentiate it as I do in the floating table and I have an additional issue which is common: have a table description personalized for each page adding the word "Continuation..." in the description except in the first page, does anyone know how to proceed in this case Saludos ~-o--{____}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle No. 4113 e/ 41 y 47 Playa, C de la Habana C.P.11300 La Habana, Cuba Dirección postal A.P.6195 C.P.10600 Telf: (537)6829681, (537)6821803 Fax: (537)2030165 El 21/03/2012 11:02 a.m., Ignacio García escribió: Alex Vergara Gil wrote on Wed, 21 Mar 2012 > Hello lyxers! > I'm not quite new to lyx but I'm still considering myself as newbie, may anyone tell > me how can I set up a long table which occupy more than one page, so it has (the same) > headings on every page? I'm refusing to create more than one table guessing > where it start a new page. Take a look at section 2.6 of the 'Embedded Objects', menu 'Help' Saludos Ignacio García
Re: How to create a more than one page long table
OK, that works!! It was the floating table which doesn't behave as I want, but now I have a new issue with this: in the floating table I was able to produce the table description with a label to reference (for example as table 1), how do I do this now?? And more how can I produce a table description on each page with a personalized foot (for example adding the word Continuation... on every page but first). I'm sorry if these are naive questions but I'm stuck on this. Saludos ~-o--{____}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle No. 4113 e/ 41 y 47 Playa, C de la Habana C.P.11300 La Habana, Cuba Dirección postal A.P.6195 C.P.10600 Telf: (537)6829681, (537)6821803 Fax: (537)2030165 El 21/03/2012 07:42 a.m., Gerhardus Geldenhuis escribió: Hi Firstly I discovered that if the table is in a float you can't make it a long table. Select the line that you want to be the header, right click more -> settings. Go to the long table tab and play around with the settings there. It is fairly self explanatory and I managed to get done what you are asking. Regards On 21 March 2012 14:16, Alex Vergara Gil <mailto:a...@cphr.edu.cu>> wrote: Hello lyxers! I'm not quite new to lyx but I'm still considering myself as newbie, may anyone tell me how can I set up a long table which occupy more than one page, so it has (the same) headings on every page? I'm refusing to create more than one table guessing where it start a new page. thnx in advance -- Saludos ~-o--{}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle No. 4113 e/ 41 y 47 Playa, C de la Habana C.P.11300 La Habana, Cuba Dirección postal A.P.6195 C.P.10600 Telf: (537)6829681, (537)6821803 Fax: (537)2030165 -- Gerhardus Geldenhuis
How to create a more than one page long table
Hello lyxers! I'm not quite new to lyx but I'm still considering myself as newbie, may anyone tell me how can I set up a long table which occupy more than one page, so it has (the same) headings on every page? I'm refusing to create more than one table guessing where it start a new page. thnx in advance -- Saludos ~-o--{____}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle No. 4113 e/ 41 y 47 Playa, C de la Habana C.P.11300 La Habana, Cuba Dirección postal A.P.6195 C.P.10600 Telf: (537)6829681, (537)6821803 Fax: (537)2030165
Re: How to set off a subsection without using a heading
Eric --"I don't like the look. It's too intrusive." Can you send a short example file to see what is your problem Anyway I use to format a specific line as bold with bigger text size when I want an emphasis on a line which I don't want to set up as subchapter. Saludos ~-o--{____}--o-~ Alex Vergara Gil MSc. Física Nuclear Laboratorio Secundario de Calibración Dosimétrica Centro de Protección e Higiene de las Radiaciones Calle No. 4113 e/ 41 y 47 Playa, C de la Habana C.P.11300 La Habana, Cuba Dirección postal A.P.6195 C.P.10600 Telf: (537)6829681, (537)6821803 Fax: (537)2030165 El 20/02/2012 07:21 a.m., Eric Weir escribió: In one section of an article I'm working on I have several subsections that I want to call attention to without using headings. Currently I'm using a centered 3" line between subsections. I don't like the look. It's too intrusive. One possibility would be to add an extra line between subsections, but I think I'd like to give the break a little more emphasis than that. Any suggestions? Thanks, -- Eric Weir Decatur, GA USA eew...@bellsouth.net